aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_dev.h')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_dev.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_dev.h b/drivers/infiniband/hw/mthca/mthca_dev.h
index 7f0dc221fa47..b2aea80a683f 100644
--- a/drivers/infiniband/hw/mthca/mthca_dev.h
+++ b/drivers/infiniband/hw/mthca/mthca_dev.h
@@ -110,9 +110,17 @@ enum {
110 MTHCA_OPCODE_INVALID = 0xff 110 MTHCA_OPCODE_INVALID = 0xff
111}; 111};
112 112
113enum {
114 MTHCA_CMD_USE_EVENTS = 1 << 0,
115 MTHCA_CMD_POST_DOORBELLS = 1 << 1
116};
117
118enum {
119 MTHCA_CMD_NUM_DBELL_DWORDS = 8
120};
121
113struct mthca_cmd { 122struct mthca_cmd {
114 struct pci_pool *pool; 123 struct pci_pool *pool;
115 int use_events;
116 struct mutex hcr_mutex; 124 struct mutex hcr_mutex;
117 struct semaphore poll_sem; 125 struct semaphore poll_sem;
118 struct semaphore event_sem; 126 struct semaphore event_sem;
@@ -121,6 +129,9 @@ struct mthca_cmd {
121 int free_head; 129 int free_head;
122 struct mthca_cmd_context *context; 130 struct mthca_cmd_context *context;
123 u16 token_mask; 131 u16 token_mask;
132 u32 flags;
133 void __iomem *dbell_map;
134 u16 dbell_offsets[MTHCA_CMD_NUM_DBELL_DWORDS];
124}; 135};
125 136
126struct mthca_limits { 137struct mthca_limits {