summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/misc/mic/common
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/misc/mic/common')
-rw-r--r--kernel/drivers/misc/mic/common/mic_dev.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/drivers/misc/mic/common/mic_dev.h b/kernel/drivers/misc/mic/common/mic_dev.h
index 92999c2bb..50776772e 100644
--- a/kernel/drivers/misc/mic/common/mic_dev.h
+++ b/kernel/drivers/misc/mic/common/mic_dev.h
@@ -21,6 +21,19 @@
#ifndef __MIC_DEV_H__
#define __MIC_DEV_H__
+/* The maximum number of MIC devices supported in a single host system. */
+#define MIC_MAX_NUM_DEVS 128
+
+/**
+ * enum mic_hw_family - The hardware family to which a device belongs.
+ */
+enum mic_hw_family {
+ MIC_FAMILY_X100 = 0,
+ MIC_FAMILY_X200,
+ MIC_FAMILY_UNKNOWN,
+ MIC_FAMILY_LAST
+};
+
/**
* struct mic_mw - MIC memory window
*
@@ -48,4 +61,7 @@ struct mic_mw {
#define MIC_VIRTIO_PARAM_DEV_REMOVE 0x1
#define MIC_VIRTIO_PARAM_CONFIG_CHANGED 0x2
+/* Maximum number of DMA channels */
+#define MIC_MAX_DMA_CHAN 4
+
#endif