diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-01-06 17:39:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:09:24 -0500 |
commit | 042671040db95a896c5ca960b9b656692a787892 (patch) | |
tree | b96a4e931b65c912f2800b02480b14008125c01b /drivers/net/wireless/rt2x00/rt2x00ring.h | |
parent | 3867705bb773818b39e0ca8d02ccb71fb4d2ffb8 (diff) |
rt2x00: Store queue idx and entry idx in data_ring and data_entry
Store the queue idx inside structure data_ring
Store the entry idx inside structure data_entry
This saves us a few calls to ARRAY_INDEX() which is now unused.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00ring.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00ring.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00ring.h b/drivers/net/wireless/rt2x00/rt2x00ring.h index 5b32f3ef2a73..e9a564863127 100644 --- a/drivers/net/wireless/rt2x00/rt2x00ring.h +++ b/drivers/net/wireless/rt2x00/rt2x00ring.h | |||
@@ -143,6 +143,11 @@ struct data_entry { | |||
143 | */ | 143 | */ |
144 | void *data_addr; | 144 | void *data_addr; |
145 | dma_addr_t data_dma; | 145 | dma_addr_t data_dma; |
146 | |||
147 | /* | ||
148 | * Entry identification number (index). | ||
149 | */ | ||
150 | unsigned int entry_idx; | ||
146 | }; | 151 | }; |
147 | 152 | ||
148 | /* | 153 | /* |
@@ -181,6 +186,13 @@ struct data_ring { | |||
181 | void *data_addr; | 186 | void *data_addr; |
182 | 187 | ||
183 | /* | 188 | /* |
189 | * Queue identification number: | ||
190 | * RX: 0 | ||
191 | * TX: IEEE80211_TX_* | ||
192 | */ | ||
193 | unsigned int queue_idx; | ||
194 | |||
195 | /* | ||
184 | * Index variables. | 196 | * Index variables. |
185 | */ | 197 | */ |
186 | u16 index; | 198 | u16 index; |