genirq/msi: Make MSI descriptor iterators device domain aware
[linux-2.6-block.git] / include / linux / msi_api.h
CommitLineData
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
11struct device;
12
f1139f90
TG
13/*
14 * Per device interrupt domain related constants.
15 */
16enum msi_domain_ids {
17 MSI_DEFAULT_DOMAIN,
18 MSI_MAX_DEVICE_IRQDOMAINS,
19};
20
6b6941f6
TG
21unsigned int msi_get_virq(struct device *dev, unsigned int index);
22
23#endif