diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-10-13 22:41:23 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-10-13 22:41:23 +0000 |
commit | 562bdcae2cf1f01f8d6e70c3580f3864b103aa5f (patch) | |
tree | d19bcf8fcc7e7046b938fedfc72d39170d551d17 /package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_pio.h | |
parent | 31f26ea82172ff4a99136a4e664a2f6655a3e641 (diff) |
remove old bcm43xx-mac80211... will be replaced by b43
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9291 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_pio.h')
-rw-r--r-- | package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_pio.h | 170 |
1 files changed, 0 insertions, 170 deletions
diff --git a/package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_pio.h b/package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_pio.h deleted file mode 100644 index b9d919b75..000000000 --- a/package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_pio.h +++ /dev/null @@ -1,170 +0,0 @@ -#ifndef BCM43xx_PIO_H_ -#define BCM43xx_PIO_H_ - -#include "bcm43xx.h" - -#include <linux/interrupt.h> -#include <linux/list.h> -#include <linux/skbuff.h> - - -#define BCM43xx_PIO_TXCTL 0x00 -#define BCM43xx_PIO_TXDATA 0x02 -#define BCM43xx_PIO_TXQBUFSIZE 0x04 -#define BCM43xx_PIO_RXCTL 0x08 -#define BCM43xx_PIO_RXDATA 0x0A - -#define BCM43xx_PIO_TXCTL_WRITELO (1 << 0) -#define BCM43xx_PIO_TXCTL_WRITEHI (1 << 1) -#define BCM43xx_PIO_TXCTL_COMPLETE (1 << 2) -#define BCM43xx_PIO_TXCTL_INIT (1 << 3) -#define BCM43xx_PIO_TXCTL_SUSPEND (1 << 7) - -#define BCM43xx_PIO_RXCTL_DATAAVAILABLE (1 << 0) -#define BCM43xx_PIO_RXCTL_READY (1 << 1) - -/* PIO constants */ -#define BCM43xx_PIO_MAXTXDEVQPACKETS 31 -#define BCM43xx_PIO_TXQADJUST 80 - -/* PIO tuning knobs */ -#define BCM43xx_PIO_MAXTXPACKETS 256 - - - -#ifdef CONFIG_BCM43XX_MAC80211_PIO - - -struct bcm43xx_pioqueue; -struct bcm43xx_xmitstatus; - -struct bcm43xx_pio_txpacket { - struct bcm43xx_pioqueue *queue; - struct sk_buff *skb; - struct ieee80211_tx_status txstat; - struct list_head list; -}; - -#define pio_txpacket_getindex(packet) ((int)((packet) - (packet)->queue->tx_packets_cache)) - -struct bcm43xx_pioqueue { - struct bcm43xx_wldev *dev; - u16 mmio_base; - - u8 tx_suspended:1, - tx_frozen:1, - need_workarounds:1; /* Workarounds needed for core.rev < 3 */ - - /* Adjusted size of the device internal TX buffer. */ - u16 tx_devq_size; - /* Used octets of the device internal TX buffer. */ - u16 tx_devq_used; - /* Used packet slots in the device internal TX buffer. */ - u8 tx_devq_packets; - /* Packets from the txfree list can - * be taken on incoming TX requests. - */ - struct list_head txfree; - unsigned int nr_txfree; - /* Packets on the txqueue are queued, - * but not completely written to the chip, yet. - */ - struct list_head txqueue; - /* Packets on the txrunning queue are completely - * posted to the device. We are waiting for the txstatus. - */ - struct list_head txrunning; - /* Total number or packets sent. - * (This counter can obviously wrap). - */ - unsigned int nr_tx_packets; - struct tasklet_struct txtask; - struct bcm43xx_pio_txpacket tx_packets_cache[BCM43xx_PIO_MAXTXPACKETS]; -}; - -static inline -u16 bcm43xx_pio_read(struct bcm43xx_pioqueue *queue, - u16 offset) -{ - return bcm43xx_read16(queue->dev, queue->mmio_base + offset); -} - -static inline -void bcm43xx_pio_write(struct bcm43xx_pioqueue *queue, - u16 offset, u16 value) -{ - bcm43xx_write16(queue->dev, queue->mmio_base + offset, value); - mmiowb(); -} - - -int bcm43xx_pio_init(struct bcm43xx_wldev *dev); -void bcm43xx_pio_free(struct bcm43xx_wldev *dev); - -int bcm43xx_pio_tx(struct bcm43xx_wldev *dev, - struct sk_buff *skb, - struct ieee80211_tx_control *ctl); -void bcm43xx_pio_handle_txstatus(struct bcm43xx_wldev *dev, - const struct bcm43xx_txstatus *status); -void bcm43xx_pio_get_tx_stats(struct bcm43xx_wldev *dev, - struct ieee80211_tx_queue_stats *stats); -void bcm43xx_pio_rx(struct bcm43xx_pioqueue *queue); - -/* Suspend TX queue in hardware. */ -void bcm43xx_pio_tx_suspend(struct bcm43xx_pioqueue *queue); -void bcm43xx_pio_tx_resume(struct bcm43xx_pioqueue *queue); -/* Suspend (freeze) the TX tasklet (software level). */ -void bcm43xx_pio_freeze_txqueues(struct bcm43xx_wldev *dev); -void bcm43xx_pio_thaw_txqueues(struct bcm43xx_wldev *dev); - -#else /* CONFIG_BCM43XX_MAC80211_PIO */ - -static inline -int bcm43xx_pio_init(struct bcm43xx_wldev *dev) -{ - return 0; -} -static inline -void bcm43xx_pio_free(struct bcm43xx_wldev *dev) -{ -} -static inline -int bcm43xx_pio_tx(struct bcm43xx_wldev *dev, - struct sk_buff *skb, - struct ieee80211_tx_control *ctl) -{ - return 0; -} -static inline -void bcm43xx_pio_handle_txstatus(struct bcm43xx_wldev *dev, - const struct bcm43xx_txstatus *status) -{ -} -static inline -void bcm43xx_pio_get_tx_stats(struct bcm43xx_wldev *dev, - struct ieee80211_tx_queue_stats *stats) -{ -} -static inline -void bcm43xx_pio_rx(struct bcm43xx_pioqueue *queue) -{ -} -static inline -void bcm43xx_pio_tx_suspend(struct bcm43xx_pioqueue *queue) -{ -} -static inline -void bcm43xx_pio_tx_resume(struct bcm43xx_pioqueue *queue) -{ -} -static inline -void bcm43xx_pio_freeze_txqueues(struct bcm43xx_wldev *dev) -{ -} -static inline -void bcm43xx_pio_thaw_txqueues(struct bcm43xx_wldev *dev) -{ -} - -#endif /* CONFIG_BCM43XX_MAC80211_PIO */ -#endif /* BCM43xx_PIO_H_ */ |