aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00pci.h
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-05-10 07:46:03 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-21 21:47:35 -0400
commitb8be63ffa5dc44324e7f507997870fa3e4b17619 (patch)
treead9ef1c3e4e09111ad93b003baaec325bd5e40e0 /drivers/net/wireless/rt2x00/rt2x00pci.h
parentdec13b6bda600c7e7da993e634562873112af50b (diff)
rt2x00: Merge RX and TX entry private data
With the pending removal of the tx_control structure we can merge the RX and TX entry private data structure in advance. This will temporarily increase the required memory for the queue, but that overhead will only be limited. 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/rt2x00pci.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00pci.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.h b/drivers/net/wireless/rt2x00/rt2x00pci.h
index 2b0ef17bba6e..557d15a888ab 100644
--- a/drivers/net/wireless/rt2x00/rt2x00pci.h
+++ b/drivers/net/wireless/rt2x00/rt2x00pci.h
@@ -95,31 +95,15 @@ int rt2x00pci_write_tx_data(struct rt2x00_dev *rt2x00dev,
95 struct ieee80211_tx_control *control); 95 struct ieee80211_tx_control *control);
96 96
97/** 97/**
98 * struct queue_entry_priv_pci_rx: Per RX entry PCI specific information 98 * struct queue_entry_priv_pci: Per entry PCI specific information
99 *
100 * @desc: Pointer to device descriptor.
101 * @desc_dma: DMA pointer to @desc.
102 * @data: Pointer to device's entry memory.
103 * @data_dma: DMA pointer to &data.
104 */
105struct queue_entry_priv_pci_rx {
106 __le32 *desc;
107 dma_addr_t desc_dma;
108
109 void *data;
110 dma_addr_t data_dma;
111};
112
113/**
114 * struct queue_entry_priv_pci_tx: Per TX entry PCI specific information
115 * 99 *
116 * @desc: Pointer to device descriptor 100 * @desc: Pointer to device descriptor
117 * @desc_dma: DMA pointer to @desc. 101 * @desc_dma: DMA pointer to &desc.
118 * @data: Pointer to device's entry memory. 102 * @data: Pointer to device's entry memory.
119 * @data_dma: DMA pointer to &data. 103 * @data_dma: DMA pointer to &data.
120 * @control: mac80211 control structure used to transmit data. 104 * @control: mac80211 control structure used to transmit data.
121 */ 105 */
122struct queue_entry_priv_pci_tx { 106struct queue_entry_priv_pci {
123 __le32 *desc; 107 __le32 *desc;
124 dma_addr_t desc_dma; 108 dma_addr_t desc_dma;
125 109