Commit | Line | Data |
---|---|---|
6b6941f6 TG |
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef LINUX_MSI_API_H | |
3 | #define LINUX_MSI_API_H | |
4 | ||
5 | /* | |
6 | * APIs which are relevant for device driver code for allocating and | |
7 | * freeing MSI interrupts and querying the associations between | |
8 | * hardware/software MSI indices and the Linux interrupt number. | |
9 | */ | |
10 | ||
11 | struct device; | |
12 | ||
f1139f90 TG |
13 | /* |
14 | * Per device interrupt domain related constants. | |
15 | */ | |
16 | enum msi_domain_ids { | |
17 | MSI_DEFAULT_DOMAIN, | |
18 | MSI_MAX_DEVICE_IRQDOMAINS, | |
19 | }; | |
20 | ||
6b6941f6 TG |
21 | unsigned int msi_get_virq(struct device *dev, unsigned int index); |
22 | ||
23 | #endif |