Go to the documentation of this file.
26 #define BUS_REQUEST_MAX_NUM 64
27 #define HIF_MBOX_BLOCK_SIZE 128
28 #define HIF_MBOX0_BLOCK_SIZE 1
30 #define HIF_DMA_BUFFER_SIZE (32 * 1024)
31 #define CMD53_FIXED_ADDRESS 1
32 #define CMD53_INCR_ADDRESS 2
34 #define MAX_SCATTER_REQUESTS 4
35 #define MAX_SCATTER_ENTRIES_PER_REQ 16
36 #define MAX_SCATTER_REQ_TRANSFER_SIZE (32 * 1024)
38 #define MANUFACTURER_ID_AR6003_BASE 0x300
39 #define MANUFACTURER_ID_AR6004_BASE 0x400
41 #define MANUFACTURER_ID_ATH6KL_BASE_MASK 0xFF00
42 #define MANUFACTURER_CODE 0x271
45 #define HIF_MBOX_BASE_ADDR 0x800
46 #define HIF_MBOX_WIDTH 0x800
48 #define HIF_MBOX_END_ADDR (HTC_MAILBOX_NUM_MAX * HIF_MBOX_WIDTH - 1)
51 #define HIF_MBOX0_EXT_BASE_ADDR 0x4000
52 #define HIF_MBOX0_EXT_WIDTH (12*1024)
55 #define HIF_GMBOX_BASE_ADDR 0x7000
56 #define HIF_GMBOX_WIDTH 0x4000
59 #define CCCR_SDIO_IRQ_MODE_REG 0xF0
62 #define SDIO_IRQ_MODE_ASYNC_4BIT_IRQ (1 << 0)
67 #define ATH6KL_TARGET_DEBUG_INTR_MASK 0x01
70 #define ATH6KL_SCATTER_ENTRIES_PER_REQ 16
71 #define ATH6KL_MAX_TRANSFER_SIZE_PER_SCATTER (16 * 1024)
72 #define ATH6KL_SCATTER_REQS 4
74 #define ATH6KL_HIF_COMMUNICATION_TIMEOUT 1000
93 #define HIF_READ 0x00000001
94 #define HIF_WRITE 0x00000002
95 #define HIF_DIR_MASK (HIF_READ | HIF_WRITE)
108 #define HIF_SYNCHRONOUS 0x00000010
109 #define HIF_ASYNCHRONOUS 0x00000020
110 #define HIF_EMODE_MASK (HIF_SYNCHRONOUS | HIF_ASYNCHRONOUS)
122 #define HIF_BYTE_BASIS 0x00000040
123 #define HIF_BLOCK_BASIS 0x00000080
124 #define HIF_DMODE_MASK (HIF_BYTE_BASIS | HIF_BLOCK_BASIS)
131 #define HIF_FIXED_ADDRESS 0x00000100
132 #define HIF_INCREMENTAL_ADDRESS 0x00000200
133 #define HIF_AMODE_MASK (HIF_FIXED_ADDRESS | HIF_INCREMENTAL_ADDRESS)
135 #define HIF_WR_ASYNC_BYTE_INC \
136 (HIF_WRITE | HIF_ASYNCHRONOUS | \
137 HIF_BYTE_BASIS | HIF_INCREMENTAL_ADDRESS)
139 #define HIF_WR_ASYNC_BLOCK_INC \
140 (HIF_WRITE | HIF_ASYNCHRONOUS | \
141 HIF_BLOCK_BASIS | HIF_INCREMENTAL_ADDRESS)
143 #define HIF_WR_SYNC_BYTE_FIX \
144 (HIF_WRITE | HIF_SYNCHRONOUS | \
145 HIF_BYTE_BASIS | HIF_FIXED_ADDRESS)
147 #define HIF_WR_SYNC_BYTE_INC \
148 (HIF_WRITE | HIF_SYNCHRONOUS | \
149 HIF_BYTE_BASIS | HIF_INCREMENTAL_ADDRESS)
151 #define HIF_WR_SYNC_BLOCK_INC \
152 (HIF_WRITE | HIF_SYNCHRONOUS | \
153 HIF_BLOCK_BASIS | HIF_INCREMENTAL_ADDRESS)
155 #define HIF_RD_SYNC_BYTE_INC \
156 (HIF_READ | HIF_SYNCHRONOUS | \
157 HIF_BYTE_BASIS | HIF_INCREMENTAL_ADDRESS)
159 #define HIF_RD_SYNC_BYTE_FIX \
160 (HIF_READ | HIF_SYNCHRONOUS | \
161 HIF_BYTE_BASIS | HIF_FIXED_ADDRESS)
163 #define HIF_RD_ASYNC_BLOCK_FIX \
164 (HIF_READ | HIF_ASYNCHRONOUS | \
165 HIF_BLOCK_BASIS | HIF_FIXED_ADDRESS)
167 #define HIF_RD_SYNC_BLOCK_FIX \
168 (HIF_READ | HIF_SYNCHRONOUS | \
169 HIF_BLOCK_BASIS | HIF_FIXED_ADDRESS)
271 u32 *lk_ahd,
int timeout);