Skip to content

Commit c9d5c53

Browse files
sudeepduttgregkh
authored andcommitted
misc: mic: Common MIC header file changes in preparation for SCIF
Update mic_bootparam and define the maximum number of DMA channels Reviewed-by: Nikhil Rao <[email protected]> Reviewed-by: Ashutosh Dixit <[email protected]> Signed-off-by: Sudeep Dutt <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b55f035 commit c9d5c53

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

drivers/misc/mic/common/mic_dev.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,7 @@ struct mic_mw {
4848
#define MIC_VIRTIO_PARAM_DEV_REMOVE 0x1
4949
#define MIC_VIRTIO_PARAM_CONFIG_CHANGED 0x2
5050

51+
/* Maximum number of DMA channels */
52+
#define MIC_MAX_DMA_CHAN 4
53+
5154
#endif

include/uapi/linux/mic_common.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ struct mic_device_ctrl {
8080
* @h2c_config_db: Host to Card Virtio config doorbell set by card
8181
* @shutdown_status: Card shutdown status set by card
8282
* @shutdown_card: Set to 1 by the host when a card shutdown is initiated
83+
* @tot_nodes: Total number of nodes in the SCIF network
84+
* @node_id: Unique id of the node
85+
* @h2c_scif_db - Host to card SCIF doorbell set by card
86+
* @c2h_scif_db - Card to host SCIF doorbell set by host
87+
* @scif_host_dma_addr - SCIF host queue pair DMA address
88+
* @scif_card_dma_addr - SCIF card queue pair DMA address
8389
*/
8490
struct mic_bootparam {
8591
__le32 magic;
@@ -88,6 +94,12 @@ struct mic_bootparam {
8894
__s8 h2c_config_db;
8995
__u8 shutdown_status;
9096
__u8 shutdown_card;
97+
__u8 tot_nodes;
98+
__u8 node_id;
99+
__u8 h2c_scif_db;
100+
__u8 c2h_scif_db;
101+
__u64 scif_host_dma_addr;
102+
__u64 scif_card_dma_addr;
91103
} __attribute__ ((aligned(8)));
92104

93105
/**

0 commit comments

Comments
 (0)