aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/4965.h
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2011-11-15 08:45:59 -0500
committerStanislaw Gruszka <sgruszka@redhat.com>2011-11-15 08:45:59 -0500
commite7392364fcd1004a5e495f15cf21b1e0ef874215 (patch)
tree5275a1aed29aedc11e09c6bcfff331b90f95686e /drivers/net/wireless/iwlegacy/4965.h
parentf02579e3a81954c8f0944c7d2a95159ee48f052d (diff)
iwlegacy: indentions and whitespaces
Process iwlegacy source files using: indent -npro -l500 -nhnl indent -npro -kr -i8 -ts8 -sob -l80 -nbbo -ss -ncs -cp1 -il0 -psl Plus manual compilation fixes. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/4965.h')
-rw-r--r--drivers/net/wireless/iwlegacy/4965.h184
1 files changed, 81 insertions, 103 deletions
diff --git a/drivers/net/wireless/iwlegacy/4965.h b/drivers/net/wireless/iwlegacy/4965.h
index a4e256bb506..78eae22c8f2 100644
--- a/drivers/net/wireless/iwlegacy/4965.h
+++ b/drivers/net/wireless/iwlegacy/4965.h
@@ -44,19 +44,17 @@ extern struct il_mod_params il4965_mod_params;
44extern struct ieee80211_ops il4965_hw_ops; 44extern struct ieee80211_ops il4965_hw_ops;
45 45
46/* tx queue */ 46/* tx queue */
47void il4965_free_tfds_in_queue(struct il_priv *il, 47void il4965_free_tfds_in_queue(struct il_priv *il, int sta_id, int tid,
48 int sta_id, int tid, int freed); 48 int freed);
49 49
50/* RXON */ 50/* RXON */
51void il4965_set_rxon_chain(struct il_priv *il, 51void il4965_set_rxon_chain(struct il_priv *il, struct il_rxon_context *ctx);
52 struct il_rxon_context *ctx);
53 52
54/* uCode */ 53/* uCode */
55int il4965_verify_ucode(struct il_priv *il); 54int il4965_verify_ucode(struct il_priv *il);
56 55
57/* lib */ 56/* lib */
58void il4965_check_abort_status(struct il_priv *il, 57void il4965_check_abort_status(struct il_priv *il, u8 frame_count, u32 status);
59 u8 frame_count, u32 status);
60 58
61void il4965_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq); 59void il4965_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq);
62int il4965_rx_init(struct il_priv *il, struct il_rx_queue *rxq); 60int il4965_rx_init(struct il_priv *il, struct il_rx_queue *rxq);
@@ -70,30 +68,24 @@ void il4965_rx_replenish_now(struct il_priv *il);
70void il4965_rx_queue_free(struct il_priv *il, struct il_rx_queue *rxq); 68void il4965_rx_queue_free(struct il_priv *il, struct il_rx_queue *rxq);
71int il4965_rxq_stop(struct il_priv *il); 69int il4965_rxq_stop(struct il_priv *il);
72int il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band); 70int il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band);
73void il4965_hdl_rx(struct il_priv *il, 71void il4965_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb);
74 struct il_rx_buf *rxb); 72void il4965_hdl_rx_phy(struct il_priv *il, struct il_rx_buf *rxb);
75void il4965_hdl_rx_phy(struct il_priv *il,
76 struct il_rx_buf *rxb);
77void il4965_rx_handle(struct il_priv *il); 73void il4965_rx_handle(struct il_priv *il);
78 74
79/* tx */ 75/* tx */
80void il4965_hw_txq_free_tfd(struct il_priv *il, struct il_tx_queue *txq); 76void il4965_hw_txq_free_tfd(struct il_priv *il, struct il_tx_queue *txq);
81int il4965_hw_txq_attach_buf_to_tfd(struct il_priv *il, 77int il4965_hw_txq_attach_buf_to_tfd(struct il_priv *il, struct il_tx_queue *txq,
82 struct il_tx_queue *txq, 78 dma_addr_t addr, u16 len, u8 reset, u8 pad);
83 dma_addr_t addr, u16 len, u8 reset, u8 pad); 79int il4965_hw_tx_queue_init(struct il_priv *il, struct il_tx_queue *txq);
84int il4965_hw_tx_queue_init(struct il_priv *il,
85 struct il_tx_queue *txq);
86void il4965_hwrate_to_tx_control(struct il_priv *il, u32 rate_n_flags, 80void il4965_hwrate_to_tx_control(struct il_priv *il, u32 rate_n_flags,
87 struct ieee80211_tx_info *info); 81 struct ieee80211_tx_info *info);
88int il4965_tx_skb(struct il_priv *il, struct sk_buff *skb); 82int il4965_tx_skb(struct il_priv *il, struct sk_buff *skb);
89int il4965_tx_agg_start(struct il_priv *il, struct ieee80211_vif *vif, 83int il4965_tx_agg_start(struct il_priv *il, struct ieee80211_vif *vif,
90 struct ieee80211_sta *sta, u16 tid, u16 *ssn); 84 struct ieee80211_sta *sta, u16 tid, u16 * ssn);
91int il4965_tx_agg_stop(struct il_priv *il, struct ieee80211_vif *vif, 85int il4965_tx_agg_stop(struct il_priv *il, struct ieee80211_vif *vif,
92 struct ieee80211_sta *sta, u16 tid); 86 struct ieee80211_sta *sta, u16 tid);
93int il4965_txq_check_empty(struct il_priv *il, 87int il4965_txq_check_empty(struct il_priv *il, int sta_id, u8 tid, int txq_id);
94 int sta_id, u8 tid, int txq_id); 88void il4965_hdl_compressed_ba(struct il_priv *il, struct il_rx_buf *rxb);
95void il4965_hdl_compressed_ba(struct il_priv *il,
96 struct il_rx_buf *rxb);
97int il4965_tx_queue_reclaim(struct il_priv *il, int txq_id, int idx); 89int il4965_tx_queue_reclaim(struct il_priv *il, int txq_id, int idx);
98void il4965_hw_txq_ctx_free(struct il_priv *il); 90void il4965_hw_txq_ctx_free(struct il_priv *il);
99int il4965_txq_ctx_alloc(struct il_priv *il); 91int il4965_txq_ctx_alloc(struct il_priv *il);
@@ -112,28 +104,23 @@ void il4965_set_wr_ptrs(struct il_priv *il, int txq_id, u32 idx);
112 * 104 *
113 * NOTE: Acquire il->lock before calling this function ! 105 * NOTE: Acquire il->lock before calling this function !
114 */ 106 */
115void il4965_tx_queue_set_status(struct il_priv *il, 107void il4965_tx_queue_set_status(struct il_priv *il, struct il_tx_queue *txq,
116 struct il_tx_queue *txq, 108 int tx_fifo_id, int scd_retry);
117 int tx_fifo_id, int scd_retry);
118 109
119u8 il4965_toggle_tx_ant(struct il_priv *il, u8 ant_idx, u8 valid); 110u8 il4965_toggle_tx_ant(struct il_priv *il, u8 ant_idx, u8 valid);
120 111
121/* rx */ 112/* rx */
122void il4965_hdl_missed_beacon(struct il_priv *il, 113void il4965_hdl_missed_beacon(struct il_priv *il, struct il_rx_buf *rxb);
123 struct il_rx_buf *rxb); 114bool il4965_good_plcp_health(struct il_priv *il, struct il_rx_pkt *pkt);
124bool il4965_good_plcp_health(struct il_priv *il, 115void il4965_hdl_stats(struct il_priv *il, struct il_rx_buf *rxb);
125 struct il_rx_pkt *pkt); 116void il4965_hdl_c_stats(struct il_priv *il, struct il_rx_buf *rxb);
126void il4965_hdl_stats(struct il_priv *il,
127 struct il_rx_buf *rxb);
128void il4965_hdl_c_stats(struct il_priv *il,
129 struct il_rx_buf *rxb);
130 117
131/* scan */ 118/* scan */
132int il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif); 119int il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif);
133 120
134/* station mgmt */ 121/* station mgmt */
135int il4965_manage_ibss_station(struct il_priv *il, 122int il4965_manage_ibss_station(struct il_priv *il, struct ieee80211_vif *vif,
136 struct ieee80211_vif *vif, bool add); 123 bool add);
137 124
138/* hcmd */ 125/* hcmd */
139int il4965_send_beacon_cmd(struct il_priv *il); 126int il4965_send_beacon_cmd(struct il_priv *il);
@@ -142,59 +129,57 @@ int il4965_send_beacon_cmd(struct il_priv *il);
142const char *il4965_get_tx_fail_reason(u32 status); 129const char *il4965_get_tx_fail_reason(u32 status);
143#else 130#else
144static inline const char * 131static inline const char *
145il4965_get_tx_fail_reason(u32 status) { return ""; } 132il4965_get_tx_fail_reason(u32 status)
133{
134 return "";
135}
146#endif 136#endif
147 137
148/* station management */ 138/* station management */
149int il4965_alloc_bcast_station(struct il_priv *il, 139int il4965_alloc_bcast_station(struct il_priv *il, struct il_rxon_context *ctx);
150 struct il_rxon_context *ctx); 140int il4965_add_bssid_station(struct il_priv *il, struct il_rxon_context *ctx,
151int il4965_add_bssid_station(struct il_priv *il, 141 const u8 * addr, u8 * sta_id_r);
152 struct il_rxon_context *ctx,
153 const u8 *addr, u8 *sta_id_r);
154int il4965_remove_default_wep_key(struct il_priv *il, 142int il4965_remove_default_wep_key(struct il_priv *il,
155 struct il_rxon_context *ctx, 143 struct il_rxon_context *ctx,
144 struct ieee80211_key_conf *key);
145int il4965_set_default_wep_key(struct il_priv *il, struct il_rxon_context *ctx,
156 struct ieee80211_key_conf *key); 146 struct ieee80211_key_conf *key);
157int il4965_set_default_wep_key(struct il_priv *il,
158 struct il_rxon_context *ctx,
159 struct ieee80211_key_conf *key);
160int il4965_restore_default_wep_keys(struct il_priv *il, 147int il4965_restore_default_wep_keys(struct il_priv *il,
161 struct il_rxon_context *ctx); 148 struct il_rxon_context *ctx);
162int il4965_set_dynamic_key(struct il_priv *il, 149int il4965_set_dynamic_key(struct il_priv *il, struct il_rxon_context *ctx,
163 struct il_rxon_context *ctx, 150 struct ieee80211_key_conf *key, u8 sta_id);
164 struct ieee80211_key_conf *key, u8 sta_id); 151int il4965_remove_dynamic_key(struct il_priv *il, struct il_rxon_context *ctx,
165int il4965_remove_dynamic_key(struct il_priv *il, 152 struct ieee80211_key_conf *key, u8 sta_id);
166 struct il_rxon_context *ctx, 153void il4965_update_tkip_key(struct il_priv *il, struct il_rxon_context *ctx,
167 struct ieee80211_key_conf *key, u8 sta_id); 154 struct ieee80211_key_conf *keyconf,
168void il4965_update_tkip_key(struct il_priv *il, 155 struct ieee80211_sta *sta, u32 iv32,
169 struct il_rxon_context *ctx, 156 u16 * phase1key);
170 struct ieee80211_key_conf *keyconf, 157int il4965_sta_tx_modify_enable_tid(struct il_priv *il, int sta_id, int tid);
171 struct ieee80211_sta *sta, u32 iv32, u16 *phase1key);
172int il4965_sta_tx_modify_enable_tid(struct il_priv *il,
173 int sta_id, int tid);
174int il4965_sta_rx_agg_start(struct il_priv *il, struct ieee80211_sta *sta, 158int il4965_sta_rx_agg_start(struct il_priv *il, struct ieee80211_sta *sta,
175 int tid, u16 ssn); 159 int tid, u16 ssn);
176int il4965_sta_rx_agg_stop(struct il_priv *il, struct ieee80211_sta *sta, 160int il4965_sta_rx_agg_stop(struct il_priv *il, struct ieee80211_sta *sta,
177 int tid); 161 int tid);
178void il4965_sta_modify_sleep_tx_count(struct il_priv *il, 162void il4965_sta_modify_sleep_tx_count(struct il_priv *il, int sta_id, int cnt);
179 int sta_id, int cnt);
180int il4965_update_bcast_stations(struct il_priv *il); 163int il4965_update_bcast_stations(struct il_priv *il);
181 164
182/* rate */ 165/* rate */
183static inline u8 il4965_hw_get_rate(__le32 rate_n_flags) 166static inline u8
167il4965_hw_get_rate(__le32 rate_n_flags)
184{ 168{
185 return le32_to_cpu(rate_n_flags) & 0xFF; 169 return le32_to_cpu(rate_n_flags) & 0xFF;
186} 170}
187 171
188static inline __le32 il4965_hw_set_rate_n_flags(u8 rate, u32 flags) 172static inline __le32
173il4965_hw_set_rate_n_flags(u8 rate, u32 flags)
189{ 174{
190 return cpu_to_le32(flags|(u32)rate); 175 return cpu_to_le32(flags | (u32) rate);
191} 176}
192 177
193/* eeprom */ 178/* eeprom */
194void il4965_eeprom_get_mac(const struct il_priv *il, u8 *mac); 179void il4965_eeprom_get_mac(const struct il_priv *il, u8 * mac);
195int il4965_eeprom_acquire_semaphore(struct il_priv *il); 180int il4965_eeprom_acquire_semaphore(struct il_priv *il);
196void il4965_eeprom_release_semaphore(struct il_priv *il); 181void il4965_eeprom_release_semaphore(struct il_priv *il);
197int il4965_eeprom_check_version(struct il_priv *il); 182int il4965_eeprom_check_version(struct il_priv *il);
198 183
199/* mac80211 handlers (for 4965) */ 184/* mac80211 handlers (for 4965) */
200void il4965_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb); 185void il4965_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb);
@@ -202,30 +187,26 @@ int il4965_mac_start(struct ieee80211_hw *hw);
202void il4965_mac_stop(struct ieee80211_hw *hw); 187void il4965_mac_stop(struct ieee80211_hw *hw);
203void il4965_configure_filter(struct ieee80211_hw *hw, 188void il4965_configure_filter(struct ieee80211_hw *hw,
204 unsigned int changed_flags, 189 unsigned int changed_flags,
205 unsigned int *total_flags, 190 unsigned int *total_flags, u64 multicast);
206 u64 multicast);
207int il4965_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, 191int il4965_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
208 struct ieee80211_vif *vif, struct ieee80211_sta *sta, 192 struct ieee80211_vif *vif, struct ieee80211_sta *sta,
209 struct ieee80211_key_conf *key); 193 struct ieee80211_key_conf *key);
210void il4965_mac_update_tkip_key(struct ieee80211_hw *hw, 194void il4965_mac_update_tkip_key(struct ieee80211_hw *hw,
211 struct ieee80211_vif *vif, 195 struct ieee80211_vif *vif,
212 struct ieee80211_key_conf *keyconf, 196 struct ieee80211_key_conf *keyconf,
213 struct ieee80211_sta *sta, 197 struct ieee80211_sta *sta, u32 iv32,
214 u32 iv32, u16 *phase1key); 198 u16 * phase1key);
215int il4965_mac_ampdu_action(struct ieee80211_hw *hw, 199int il4965_mac_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
216 struct ieee80211_vif *vif,
217 enum ieee80211_ampdu_mlme_action action, 200 enum ieee80211_ampdu_mlme_action action,
218 struct ieee80211_sta *sta, u16 tid, u16 *ssn, 201 struct ieee80211_sta *sta, u16 tid, u16 * ssn,
219 u8 buf_size); 202 u8 buf_size);
220int il4965_mac_sta_add(struct ieee80211_hw *hw, 203int il4965_mac_sta_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
221 struct ieee80211_vif *vif,
222 struct ieee80211_sta *sta); 204 struct ieee80211_sta *sta);
223void il4965_mac_channel_switch(struct ieee80211_hw *hw, 205void il4965_mac_channel_switch(struct ieee80211_hw *hw,
224 struct ieee80211_channel_switch *ch_switch); 206 struct ieee80211_channel_switch *ch_switch);
225 207
226void il4965_led_enable(struct il_priv *il); 208void il4965_led_enable(struct il_priv *il);
227 209
228
229/* EEPROM */ 210/* EEPROM */
230#define IL4965_EEPROM_IMG_SIZE 1024 211#define IL4965_EEPROM_IMG_SIZE 1024
231 212
@@ -255,7 +236,8 @@ void il4965_led_enable(struct il_priv *il);
255/* Size of uCode instruction memory in bootstrap state machine */ 236/* Size of uCode instruction memory in bootstrap state machine */
256#define IL49_MAX_BSM_SIZE BSM_SRAM_SIZE 237#define IL49_MAX_BSM_SIZE BSM_SRAM_SIZE
257 238
258static inline int il4965_hw_valid_rtc_data_addr(u32 addr) 239static inline int
240il4965_hw_valid_rtc_data_addr(u32 addr)
259{ 241{
260 return (addr >= IL49_RTC_DATA_LOWER_BOUND && 242 return (addr >= IL49_RTC_DATA_LOWER_BOUND &&
261 addr < IL49_RTC_DATA_UPPER_BOUND); 243 addr < IL49_RTC_DATA_UPPER_BOUND);
@@ -588,8 +570,8 @@ static inline int il4965_hw_valid_rtc_data_addr(u32 addr)
588 * present during factory calibration). A 5 Ghz EEPROM idx of "40" 570 * present during factory calibration). A 5 Ghz EEPROM idx of "40"
589 * corresponds to the 49th entry in the table used by the driver. 571 * corresponds to the 49th entry in the table used by the driver.
590 */ 572 */
591#define MIN_TX_GAIN_IDX (0) /* highest gain, lowest idx, 2.4 */ 573#define MIN_TX_GAIN_IDX (0) /* highest gain, lowest idx, 2.4 */
592#define MIN_TX_GAIN_IDX_52GHZ_EXT (-9) /* highest gain, lowest idx, 5 */ 574#define MIN_TX_GAIN_IDX_52GHZ_EXT (-9) /* highest gain, lowest idx, 5 */
593 575
594/** 576/**
595 * 2.4 GHz gain table 577 * 2.4 GHz gain table
@@ -810,7 +792,6 @@ static inline int il4965_hw_valid_rtc_data_addr(u32 addr)
810 * 98 78 0x00 792 * 98 78 0x00
811 */ 793 */
812 794
813
814/** 795/**
815 * Sanity checks and default values for EEPROM regulatory levels. 796 * Sanity checks and default values for EEPROM regulatory levels.
816 * If EEPROM values fall outside MIN/MAX range, use default values. 797 * If EEPROM values fall outside MIN/MAX range, use default values.
@@ -894,7 +875,6 @@ enum {
894 875
895/********************* END TXPOWER *****************************************/ 876/********************* END TXPOWER *****************************************/
896 877
897
898/** 878/**
899 * Tx/Rx Queues 879 * Tx/Rx Queues
900 * 880 *
@@ -920,7 +900,6 @@ enum {
920#define IL49_NUM_QUEUES 16 900#define IL49_NUM_QUEUES 16
921#define IL49_NUM_AMPDU_QUEUES 8 901#define IL49_NUM_AMPDU_QUEUES 8
922 902
923
924/** 903/**
925 * struct il4965_schedq_bc_tbl 904 * struct il4965_schedq_bc_tbl
926 * 905 *
@@ -944,7 +923,6 @@ struct il4965_scd_bc_tbl {
944 u8 pad[1024 - (TFD_QUEUE_BC_SIZE) * sizeof(__le16)]; 923 u8 pad[1024 - (TFD_QUEUE_BC_SIZE) * sizeof(__le16)];
945} __packed; 924} __packed;
946 925
947
948#define IL4965_RTC_INST_LOWER_BOUND (0x000000) 926#define IL4965_RTC_INST_LOWER_BOUND (0x000000)
949 927
950/* RSSI to dBm */ 928/* RSSI to dBm */
@@ -971,28 +949,31 @@ void il4965_calib_free_results(struct il_priv *il);
971 949
972/* Debug */ 950/* Debug */
973#ifdef CONFIG_IWLEGACY_DEBUGFS 951#ifdef CONFIG_IWLEGACY_DEBUGFS
974ssize_t il4965_ucode_rx_stats_read(struct file *file, char __user *user_buf, 952ssize_t il4965_ucode_rx_stats_read(struct file *file, char __user * user_buf,
975 size_t count, loff_t *ppos); 953 size_t count, loff_t * ppos);
976ssize_t il4965_ucode_tx_stats_read(struct file *file, char __user *user_buf, 954ssize_t il4965_ucode_tx_stats_read(struct file *file, char __user * user_buf,
977 size_t count, loff_t *ppos); 955 size_t count, loff_t * ppos);
978ssize_t il4965_ucode_general_stats_read(struct file *file, 956ssize_t il4965_ucode_general_stats_read(struct file *file,
979 char __user *user_buf, size_t count, loff_t *ppos); 957 char __user * user_buf, size_t count,
958 loff_t * ppos);
980#else 959#else
981static ssize_t 960static ssize_t
982il4965_ucode_rx_stats_read(struct file *file, char __user *user_buf, 961il4965_ucode_rx_stats_read(struct file *file, char __user * user_buf,
983 size_t count, loff_t *ppos) 962 size_t count, loff_t * ppos)
984{ 963{
985 return 0; 964 return 0;
986} 965}
966
987static ssize_t 967static ssize_t
988il4965_ucode_tx_stats_read(struct file *file, char __user *user_buf, 968il4965_ucode_tx_stats_read(struct file *file, char __user * user_buf,
989 size_t count, loff_t *ppos) 969 size_t count, loff_t * ppos)
990{ 970{
991 return 0; 971 return 0;
992} 972}
973
993static ssize_t 974static ssize_t
994il4965_ucode_general_stats_read(struct file *file, char __user *user_buf, 975il4965_ucode_general_stats_read(struct file *file, char __user * user_buf,
995 size_t count, loff_t *ppos) 976 size_t count, loff_t * ppos)
996{ 977{
997 return 0; 978 return 0;
998} 979}
@@ -1028,7 +1009,6 @@ il4965_ucode_general_stats_read(struct file *file, char __user *user_buf,
1028 */ 1009 */
1029#define FH49_KW_MEM_ADDR_REG (FH49_MEM_LOWER_BOUND + 0x97C) 1010#define FH49_KW_MEM_ADDR_REG (FH49_MEM_LOWER_BOUND + 0x97C)
1030 1011
1031
1032/** 1012/**
1033 * TFD Circular Buffers Base (CBBC) addresses 1013 * TFD Circular Buffers Base (CBBC) addresses
1034 * 1014 *
@@ -1047,7 +1027,6 @@ il4965_ucode_general_stats_read(struct file *file, char __user *user_buf,
1047/* Find TFD CB base pointer for given queue (range 0-15). */ 1027/* Find TFD CB base pointer for given queue (range 0-15). */
1048#define FH49_MEM_CBBC_QUEUE(x) (FH49_MEM_CBBC_LOWER_BOUND + (x) * 0x4) 1028#define FH49_MEM_CBBC_QUEUE(x) (FH49_MEM_CBBC_LOWER_BOUND + (x) * 0x4)
1049 1029
1050
1051/** 1030/**
1052 * Rx SRAM Control and Status Registers (RSCSR) 1031 * Rx SRAM Control and Status Registers (RSCSR)
1053 * 1032 *
@@ -1144,7 +1123,6 @@ il4965_ucode_general_stats_read(struct file *file, char __user *user_buf,
1144#define FH49_RSCSR_CHNL0_RBDCB_WPTR_REG (FH49_MEM_RSCSR_CHNL0 + 0x008) 1123#define FH49_RSCSR_CHNL0_RBDCB_WPTR_REG (FH49_MEM_RSCSR_CHNL0 + 0x008)
1145#define FH49_RSCSR_CHNL0_WPTR (FH49_RSCSR_CHNL0_RBDCB_WPTR_REG) 1124#define FH49_RSCSR_CHNL0_WPTR (FH49_RSCSR_CHNL0_RBDCB_WPTR_REG)
1146 1125
1147
1148/** 1126/**
1149 * Rx Config/Status Registers (RCSR) 1127 * Rx Config/Status Registers (RCSR)
1150 * Rx Config Reg for channel 0 (only channel used) 1128 * Rx Config Reg for channel 0 (only channel used)
@@ -1177,12 +1155,12 @@ il4965_ucode_general_stats_read(struct file *file, char __user *user_buf,
1177 1155
1178#define FH49_MEM_RCSR_CHNL0_CONFIG_REG (FH49_MEM_RCSR_CHNL0) 1156#define FH49_MEM_RCSR_CHNL0_CONFIG_REG (FH49_MEM_RCSR_CHNL0)
1179 1157
1180#define FH49_RCSR_CHNL0_RX_CONFIG_RB_TIMEOUT_MSK (0x00000FF0) /* bits 4-11 */ 1158#define FH49_RCSR_CHNL0_RX_CONFIG_RB_TIMEOUT_MSK (0x00000FF0) /* bits 4-11 */
1181#define FH49_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_MSK (0x00001000) /* bits 12 */ 1159#define FH49_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_MSK (0x00001000) /* bits 12 */
1182#define FH49_RCSR_CHNL0_RX_CONFIG_SINGLE_FRAME_MSK (0x00008000) /* bit 15 */ 1160#define FH49_RCSR_CHNL0_RX_CONFIG_SINGLE_FRAME_MSK (0x00008000) /* bit 15 */
1183#define FH49_RCSR_CHNL0_RX_CONFIG_RB_SIZE_MSK (0x00030000) /* bits 16-17 */ 1161#define FH49_RCSR_CHNL0_RX_CONFIG_RB_SIZE_MSK (0x00030000) /* bits 16-17 */
1184#define FH49_RCSR_CHNL0_RX_CONFIG_RBDBC_SIZE_MSK (0x00F00000) /* bits 20-23 */ 1162#define FH49_RCSR_CHNL0_RX_CONFIG_RBDBC_SIZE_MSK (0x00F00000) /* bits 20-23 */
1185#define FH49_RCSR_CHNL0_RX_CONFIG_DMA_CHNL_EN_MSK (0xC0000000) /* bits 30-31*/ 1163#define FH49_RCSR_CHNL0_RX_CONFIG_DMA_CHNL_EN_MSK (0xC0000000) /* bits 30-31 */
1186 1164
1187#define FH49_RCSR_RX_CONFIG_RBDCB_SIZE_POS (20) 1165#define FH49_RCSR_RX_CONFIG_RBDCB_SIZE_POS (20)
1188#define FH49_RCSR_RX_CONFIG_REG_IRQ_RBTH_POS (4) 1166#define FH49_RCSR_RX_CONFIG_REG_IRQ_RBTH_POS (4)