Intel MIC Host Driver Changes for Virtio Devices.
[firefly-linux-kernel-4.4.55.git] / drivers / misc / mic / host / mic_device.h
index 50b8b88d70d3e5a6179eb25ec10be81f9e9455cc..dcba2a59e77f31faf737d8dc61807bdbdbe31379 100644 (file)
@@ -21,6 +21,7 @@
 #ifndef _MIC_DEVICE_H_
 #define _MIC_DEVICE_H_
 
+#include <linux/cdev.h>
 #include <linux/idr.h>
 
 #include "mic_intr.h"
@@ -80,6 +81,8 @@ enum mic_stepping {
  * @dp_dma_addr: virtio device page DMA address.
  * @shutdown_db: shutdown doorbell.
  * @shutdown_cookie: shutdown cookie.
+ * @cdev: Character device for MIC.
+ * @vdev_list: list of virtio devices.
  */
 struct mic_device {
        struct mic_mw mmio;
@@ -113,6 +116,8 @@ struct mic_device {
        dma_addr_t dp_dma_addr;
        int shutdown_db;
        struct mic_irq *shutdown_cookie;
+       struct cdev cdev;
+       struct list_head vdev_list;
 };
 
 /**