diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-04-23 14:43:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-23 14:43:45 -0400 |
commit | 3b51cc996e81d8a113416d8094fa4a88f8360a51 (patch) | |
tree | e75b98b228bb4e456c30673fcc4b56ffa1d09cf5 /drivers/net/wireless/ath/ath9k/wmi.h | |
parent | c68ed255265968c3948fa2678bf59d15c471b055 (diff) | |
parent | 672724403b42da1d276c6cf811e8e34d15efd964 (diff) |
Merge branch 'master' into for-davem
Conflicts:
drivers/net/wireless/ath/ath9k/phy.c
drivers/net/wireless/iwlwifi/iwl-6000.c
drivers/net/wireless/iwlwifi/iwl-debugfs.c
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/wmi.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/wmi.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/wmi.h b/drivers/net/wireless/ath/ath9k/wmi.h index 39ef926f27c2..167e15c50062 100644 --- a/drivers/net/wireless/ath/ath9k/wmi.h +++ b/drivers/net/wireless/ath/ath9k/wmi.h | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | 20 | ||
21 | struct wmi_event_txrate { | 21 | struct wmi_event_txrate { |
22 | u32 txrate; | 22 | __be32 txrate; |
23 | struct { | 23 | struct { |
24 | u8 rssi_thresh; | 24 | u8 rssi_thresh; |
25 | u8 per; | 25 | u8 per; |
@@ -27,8 +27,8 @@ struct wmi_event_txrate { | |||
27 | } __packed; | 27 | } __packed; |
28 | 28 | ||
29 | struct wmi_cmd_hdr { | 29 | struct wmi_cmd_hdr { |
30 | u16 command_id; | 30 | __be16 command_id; |
31 | u16 seq_no; | 31 | __be16 seq_no; |
32 | } __packed; | 32 | } __packed; |
33 | 33 | ||
34 | struct wmi_swba { | 34 | struct wmi_swba { |
@@ -84,12 +84,20 @@ enum wmi_event_id { | |||
84 | WMI_TXRATE_EVENTID, | 84 | WMI_TXRATE_EVENTID, |
85 | }; | 85 | }; |
86 | 86 | ||
87 | #define MAX_CMD_NUMBER 62 | ||
88 | |||
89 | struct register_write { | ||
90 | __be32 reg; | ||
91 | __be32 val; | ||
92 | }; | ||
93 | |||
87 | struct wmi { | 94 | struct wmi { |
88 | struct ath9k_htc_priv *drv_priv; | 95 | struct ath9k_htc_priv *drv_priv; |
89 | struct htc_target *htc; | 96 | struct htc_target *htc; |
90 | enum htc_endpoint_id ctrl_epid; | 97 | enum htc_endpoint_id ctrl_epid; |
91 | struct mutex op_mutex; | 98 | struct mutex op_mutex; |
92 | struct completion cmd_wait; | 99 | struct completion cmd_wait; |
100 | enum wmi_cmd_id last_cmd_id; | ||
93 | u16 tx_seq_id; | 101 | u16 tx_seq_id; |
94 | u8 *cmd_rsp_buf; | 102 | u8 *cmd_rsp_buf; |
95 | u32 cmd_rsp_len; | 103 | u32 cmd_rsp_len; |
@@ -97,6 +105,11 @@ struct wmi { | |||
97 | 105 | ||
98 | struct sk_buff *wmi_skb; | 106 | struct sk_buff *wmi_skb; |
99 | spinlock_t wmi_lock; | 107 | spinlock_t wmi_lock; |
108 | |||
109 | atomic_t mwrite_cnt; | ||
110 | struct register_write multi_write[MAX_CMD_NUMBER]; | ||
111 | u32 multi_write_idx; | ||
112 | struct mutex multi_write_mutex; | ||
100 | }; | 113 | }; |
101 | 114 | ||
102 | struct wmi *ath9k_init_wmi(struct ath9k_htc_priv *priv); | 115 | struct wmi *ath9k_init_wmi(struct ath9k_htc_priv *priv); |