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.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/msi_api.h b/include/linux/msi_api.h
index 4cb7f4c9a3ae..2e4456ec9f6b 100644
--- a/include/linux/msi_api.h
+++ b/include/linux/msi_api.h
@@ -19,6 +19,23 @@ enum msi_domain_ids {
};
/**
+ * union msi_instance_cookie - MSI instance cookie
+ * @value: u64 value store
+ * @ptr: Pointer to usage site specific data
+ *
+ * This cookie is handed to the IMS allocation function and stored in the
+ * MSI descriptor for the interrupt chip callbacks.
+ *
+ * The content of this cookie is MSI domain implementation defined. For
+ * PCI/IMS implementations this could be a PASID or a pointer to queue
+ * memory.
+ */
+union msi_instance_cookie {
+ u64 value;
+ void *ptr;
+};
+
+/**
* msi_map - Mapping between MSI index and Linux interrupt number
* @index: The MSI index, e.g. slot in the MSI-X table or
* a software managed index if >= 0. If negative