aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00pci.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00pci.h45
1 files changed, 9 insertions, 36 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.h b/drivers/net/wireless/rt2x00/rt2x00pci.h
index b41967ecbf6d..80bf97c03e2d 100644
--- a/drivers/net/wireless/rt2x00/rt2x00pci.h
+++ b/drivers/net/wireless/rt2x00/rt2x00pci.h
@@ -87,44 +87,26 @@ rt2x00pci_register_multiwrite(struct rt2x00_dev *rt2x00dev,
87 memcpy_toio(rt2x00dev->csr.base + offset, value, length); 87 memcpy_toio(rt2x00dev->csr.base + offset, value, length);
88} 88}
89 89
90/*
91 * TX data handlers.
92 */
93int rt2x00pci_write_tx_data(struct rt2x00_dev *rt2x00dev,
94 struct data_queue *queue, struct sk_buff *skb,
95 struct ieee80211_tx_control *control);
96
97/** 90/**
98 * struct queue_entry_priv_pci_rx: Per RX entry PCI specific information 91 * rt2x00pci_write_tx_data - Initialize data for TX operation
92 * @entry: The entry where the frame is located
99 * 93 *
100 * @desc: Pointer to device descriptor. 94 * This function will initialize the DMA and skb descriptor
101 * @data: Pointer to device's entry memory. 95 * to prepare the entry for the actual TX operation.
102 * @dma: DMA pointer to &data.
103 */ 96 */
104struct queue_entry_priv_pci_rx { 97int rt2x00pci_write_tx_data(struct queue_entry *entry);
105 __le32 *desc;
106 dma_addr_t desc_dma;
107
108 void *data;
109 dma_addr_t data_dma;
110};
111 98
112/** 99/**
113 * struct queue_entry_priv_pci_tx: Per TX entry PCI specific information 100 * struct queue_entry_priv_pci: Per entry PCI specific information
114 * 101 *
115 * @desc: Pointer to device descriptor 102 * @desc: Pointer to device descriptor
103 * @desc_dma: DMA pointer to &desc.
116 * @data: Pointer to device's entry memory. 104 * @data: Pointer to device's entry memory.
117 * @dma: DMA pointer to &data. 105 * @data_dma: DMA pointer to &data.
118 * @control: mac80211 control structure used to transmit data.
119 */ 106 */
120struct queue_entry_priv_pci_tx { 107struct queue_entry_priv_pci {
121 __le32 *desc; 108 __le32 *desc;
122 dma_addr_t desc_dma; 109 dma_addr_t desc_dma;
123
124 void *data;
125 dma_addr_t data_dma;
126
127 struct ieee80211_tx_control control;
128}; 110};
129 111
130/** 112/**
@@ -133,15 +115,6 @@ struct queue_entry_priv_pci_tx {
133 */ 115 */
134void rt2x00pci_rxdone(struct rt2x00_dev *rt2x00dev); 116void rt2x00pci_rxdone(struct rt2x00_dev *rt2x00dev);
135 117
136/**
137 * rt2x00pci_txdone - Handle TX done events
138 * @rt2x00dev: Device pointer, see &struct rt2x00_dev.
139 * @entry: Entry which has completed the transmission of a frame.
140 * @desc: TX done descriptor
141 */
142void rt2x00pci_txdone(struct rt2x00_dev *rt2x00dev, struct queue_entry *entry,
143 struct txdone_entry_desc *desc);
144
145/* 118/*
146 * Device initialization handlers. 119 * Device initialization handlers.
147 */ 120 */