misc: mic: Common MIC header file changes in preparation for SCIF
authorSudeep Dutt <sudeep.dutt@intel.com>
Wed, 29 Apr 2015 12:32:32 +0000 (05:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 19:13:36 +0000 (12:13 -0700)
Update mic_bootparam and define the maximum number of DMA channels

Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/common/mic_dev.h
include/uapi/linux/mic_common.h

index 92999c2bbf8275a2dc962dc87f7b71379bafce98..0b58c46045dc572b3f1e5fa0f69b3aa53876a9fa 100644 (file)
@@ -48,4 +48,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
index 6eb40244e0194110ce6c7e3878f738227ddfb013..302a2ced373c4fecbf6d397af9e7af79a88874d2 100644 (file)
@@ -80,6 +80,12 @@ struct mic_device_ctrl {
  * @h2c_config_db: Host to Card Virtio config doorbell set by card
  * @shutdown_status: Card shutdown status set by card
  * @shutdown_card: Set to 1 by the host when a card shutdown is initiated
+ * @tot_nodes: Total number of nodes in the SCIF network
+ * @node_id: Unique id of the node
+ * @h2c_scif_db - Host to card SCIF doorbell set by card
+ * @c2h_scif_db - Card to host SCIF doorbell set by host
+ * @scif_host_dma_addr - SCIF host queue pair DMA address
+ * @scif_card_dma_addr - SCIF card queue pair DMA address
  */
 struct mic_bootparam {
        __le32 magic;
@@ -88,6 +94,12 @@ struct mic_bootparam {
        __s8 h2c_config_db;
        __u8 shutdown_status;
        __u8 shutdown_card;
+       __u8 tot_nodes;
+       __u8 node_id;
+       __u8 h2c_scif_db;
+       __u8 c2h_scif_db;
+       __u64 scif_host_dma_addr;
+       __u64 scif_card_dma_addr;
 } __attribute__ ((aligned(8)));
 
 /**