summaryrefslogtreecommitdiff
path: root/include/linux/msi_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/msi_api.h')
-rw-r--r--include/linux/msi_api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/msi_api.h b/include/linux/msi_api.h
index 2e4456ec9f6b..5ae72d1912c4 100644
--- a/include/linux/msi_api.h
+++ b/include/linux/msi_api.h
@@ -48,6 +48,13 @@ struct msi_map {
int virq;
};
+/*
+ * Constant to be used for dynamic allocations when the allocation is any
+ * free MSI index, which is either an entry in a hardware table or a
+ * software managed index.
+ */
+#define MSI_ANY_INDEX UINT_MAX
+
unsigned int msi_domain_get_virq(struct device *dev, unsigned int domid, unsigned int index);
/**