Go to the documentation of this file.
34 #include <linux/types.h>
40 #define CB_MAX_BUF_SIZE 2900U // max buffer size
43 #define CB_MAX_TX_BUF_SIZE CB_MAX_BUF_SIZE // max Tx buffer size
44 #define CB_MAX_RX_BUF_SIZE_NORMAL CB_MAX_BUF_SIZE // max Rx buffer size when not use Multi-RD
46 #define CB_BEACON_BUF_SIZE 512U // default beacon buffer size
48 #define MAX_TOTAL_SIZE_WITH_ALL_HEADERS CB_MAX_BUF_SIZE
50 #define MAX_INTERRUPT_SIZE 32
52 #define RX_BLOCKS 64 // form 0x60 to 0xA0
53 #define TX_BLOCKS 32 // from 0xA0 to 0xC0
55 #define CB_MAX_RX_DESC 128 // max # of descriptor
56 #define CB_MIN_RX_DESC 16 // min # of rx descriptor
57 #define CB_MAX_TX_DESC 128 // max # of descriptor
58 #define CB_MIN_TX_DESC 16 // min # of tx descriptor
60 #define CB_RD_NUM 64 // default # of RD
61 #define CB_TD_NUM 64 // default # of TD
66 #define RSR_ADDRBROAD 0x80 // 1000 0000
67 #define RSR_ADDRMULTI 0x40 // 0100 0000
68 #define RSR_ADDRUNI 0x00 // 0000 0000
69 #define RSR_IVLDTYP 0x20 // 0010 0000 , invalid packet type
70 #define RSR_IVLDLEN 0x10 // 0001 0000 , invalid len (> 2312 byte)
71 #define RSR_BSSIDOK 0x08 // 0000 1000
72 #define RSR_CRCOK 0x04 // 0000 0100
73 #define RSR_BCNSSIDOK 0x02 // 0000 0010
74 #define RSR_ADDROK 0x01 // 0000 0001
79 #define NEWRSR_DECRYPTOK 0x10 // 0001 0000
80 #define NEWRSR_CFPIND 0x08 // 0000 1000
81 #define NEWRSR_HWUTSF 0x04 // 0000 0100
82 #define NEWRSR_BCNHITAID 0x02 // 0000 0010
83 #define NEWRSR_BCNHITAID0 0x01 // 0000 0001
88 #define TSR_RETRYTMO 0x08 // 0000 1000
89 #define TSR_TMO 0x04 // 0000 0100
90 #define TSR_ACKDATA 0x02 // 0000 0010
91 #define TSR_VALID 0x01 // 0000 0001
93 #define CB_PROTOCOL_RESERVED_SECTION 16
98 #define CB_MAX_TX_ABORT_RETRY 3
100 #define FIFOCTL_AUTO_FB_1 0x1000 // 0001 0000 0000 0000
101 #define FIFOCTL_AUTO_FB_0 0x0800 // 0000 1000 0000 0000
102 #define FIFOCTL_GRPACK 0x0400 // 0000 0100 0000 0000
103 #define FIFOCTL_11GA 0x0300 // 0000 0011 0000 0000
104 #define FIFOCTL_11GB 0x0200 // 0000 0010 0000 0000
105 #define FIFOCTL_11B 0x0100 // 0000 0001 0000 0000
106 #define FIFOCTL_11A 0x0000 // 0000 0000 0000 0000
107 #define FIFOCTL_RTS 0x0080 // 0000 0000 1000 0000
108 #define FIFOCTL_ISDMA0 0x0040 // 0000 0000 0100 0000
109 #define FIFOCTL_GENINT 0x0020 // 0000 0000 0010 0000
110 #define FIFOCTL_TMOEN 0x0010 // 0000 0000 0001 0000
111 #define FIFOCTL_LRETRY 0x0008 // 0000 0000 0000 1000
112 #define FIFOCTL_CRCDIS 0x0004 // 0000 0000 0000 0100
113 #define FIFOCTL_NEEDACK 0x0002 // 0000 0000 0000 0010
114 #define FIFOCTL_LHEAD 0x0001 // 0000 0000 0000 0001
117 #define FRAGCTL_AES 0x0300 // 0000 0011 0000 0000
118 #define FRAGCTL_TKIP 0x0200 // 0000 0010 0000 0000
119 #define FRAGCTL_LEGACY 0x0100 // 0000 0001 0000 0000
120 #define FRAGCTL_NONENCRYPT 0x0000 // 0000 0000 0000 0000
121 #define FRAGCTL_ENDFRAG 0x0003 // 0000 0000 0000 0011
122 #define FRAGCTL_MIDFRAG 0x0002 // 0000 0000 0000 0010
123 #define FRAGCTL_STAFRAG 0x0001 // 0000 0000 0000 0001
124 #define FRAGCTL_NONFRAG 0x0000 // 0000 0000 0000 0000
126 #define TYPE_TXDMA0 0
127 #define TYPE_AC0DMA 1
128 #define TYPE_ATIMDMA 2
129 #define TYPE_SYNCDMA 3
132 #define TYPE_BEACONDMA 4
134 #define TYPE_RXDMA0 0
135 #define TYPE_RXDMA1 1
139 #define TD_FLAGS_NETIF_SKB 0x01 // check if need release skb
140 #define TD_FLAGS_PRIV_SKB 0x02 // check if called from private skb(hostap)
141 #define TD_FLAGS_PS_RETRY 0x04 // check if PS STA frame re-transmit