aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-op-mode.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-03-05 14:24:39 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-03-06 15:16:12 -0500
commit48a2d66f58d2bf1818acf5ff7ed9897a9977a96e (patch)
tree9154cf363233d28c97b584df19052e0f8e5ab577 /drivers/net/wireless/iwlwifi/iwl-op-mode.h
parent65b94a4abfd55b3304be25ffed9832455d41e1dd (diff)
iwlwifi: don't pass iwl_rx_mem_buffer to upper layers
struct iwl_rx_mem_buffer implementation details (DMA address, list pointers) that the upper layers don't need. Introduce iwl_rx_cmd_buffer that is passed upstream and only contains the needed data (the page). Additionally, access this data only via accessor functions, allowing us to change the implementation in the future. These accessors are rxb_addr() (as before) and rxb_steal_page() to take ownership of the data. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-op-mode.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-op-mode.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-op-mode.h b/drivers/net/wireless/iwlwifi/iwl-op-mode.h
index d4fc9be2d2f3..41e58a136715 100644
--- a/drivers/net/wireless/iwlwifi/iwl-op-mode.h
+++ b/drivers/net/wireless/iwlwifi/iwl-op-mode.h
@@ -67,7 +67,7 @@ struct iwl_op_mode;
67struct iwl_trans; 67struct iwl_trans;
68struct sk_buff; 68struct sk_buff;
69struct iwl_device_cmd; 69struct iwl_device_cmd;
70struct iwl_rx_mem_buffer; 70struct iwl_rx_cmd_buffer;
71 71
72/** 72/**
73 * DOC: Operational mode - what is it ? 73 * DOC: Operational mode - what is it ?
@@ -125,7 +125,7 @@ struct iwl_rx_mem_buffer;
125struct iwl_op_mode_ops { 125struct iwl_op_mode_ops {
126 struct iwl_op_mode *(*start)(struct iwl_trans *trans); 126 struct iwl_op_mode *(*start)(struct iwl_trans *trans);
127 void (*stop)(struct iwl_op_mode *op_mode); 127 void (*stop)(struct iwl_op_mode *op_mode);
128 int (*rx)(struct iwl_op_mode *op_mode, struct iwl_rx_mem_buffer *rxb, 128 int (*rx)(struct iwl_op_mode *op_mode, struct iwl_rx_cmd_buffer *rxb,
129 struct iwl_device_cmd *cmd); 129 struct iwl_device_cmd *cmd);
130 void (*queue_full)(struct iwl_op_mode *op_mode, u8 ac); 130 void (*queue_full)(struct iwl_op_mode *op_mode, u8 ac);
131 void (*queue_not_full)(struct iwl_op_mode *op_mode, u8 ac); 131 void (*queue_not_full)(struct iwl_op_mode *op_mode, u8 ac);
@@ -156,7 +156,7 @@ static inline void iwl_op_mode_stop(struct iwl_op_mode *op_mode)
156} 156}
157 157
158static inline int iwl_op_mode_rx(struct iwl_op_mode *op_mode, 158static inline int iwl_op_mode_rx(struct iwl_op_mode *op_mode,
159 struct iwl_rx_mem_buffer *rxb, 159 struct iwl_rx_cmd_buffer *rxb,
160 struct iwl_device_cmd *cmd) 160 struct iwl_device_cmd *cmd)
161{ 161{
162 return op_mode->ops->rx(op_mode, rxb, cmd); 162 return op_mode->ops->rx(op_mode, rxb, cmd);