Go to the documentation of this file.
26 #define SDIOD_FBR_SIZE 0x100
29 #define SDIO_FUNC_ENABLE_1 0x02
30 #define SDIO_FUNC_ENABLE_2 0x04
33 #define SDIO_FUNC_READY_1 0x02
34 #define SDIO_FUNC_READY_2 0x04
37 #define INTR_STATUS_FUNC1 0x2
38 #define INTR_STATUS_FUNC2 0x4
41 #define SDIOD_MAX_IOFUNCS 7
44 #define REG_F0_REG_MASK 0x7FF
45 #define REG_F1_MISC_MASK 0x1FFFF
48 #define SBSDIO_NUM_FUNCTION 3
51 #define SDIO_CCCR_BRCM_SEPINT 0xf2
53 #define SDIO_SEPINT_MASK 0x01
54 #define SDIO_SEPINT_OE 0x02
55 #define SDIO_SEPINT_ACT_HI 0x04
60 #define SBSDIO_SPROM_CS 0x10000
62 #define SBSDIO_SPROM_INFO 0x10001
64 #define SBSDIO_SPROM_DATA_LOW 0x10002
66 #define SBSDIO_SPROM_DATA_HIGH 0x10003
68 #define SBSDIO_SPROM_ADDR_LOW 0x10004
70 #define SBSDIO_SPROM_ADDR_HIGH 0x10005
72 #define SBSDIO_CHIP_CTRL_DATA 0x10006
74 #define SBSDIO_CHIP_CTRL_EN 0x10007
76 #define SBSDIO_WATERMARK 0x10008
78 #define SBSDIO_DEVICE_CTL 0x10009
81 #define SBSDIO_FUNC1_SBADDRLOW 0x1000A
83 #define SBSDIO_FUNC1_SBADDRMID 0x1000B
85 #define SBSDIO_FUNC1_SBADDRHIGH 0x1000C
87 #define SBSDIO_FUNC1_FRAMECTRL 0x1000D
89 #define SBSDIO_FUNC1_CHIPCLKCSR 0x1000E
91 #define SBSDIO_FUNC1_SDIOPULLUP 0x1000F
93 #define SBSDIO_FUNC1_WFRAMEBCLO 0x10019
95 #define SBSDIO_FUNC1_WFRAMEBCHI 0x1001A
97 #define SBSDIO_FUNC1_RFRAMEBCLO 0x1001B
99 #define SBSDIO_FUNC1_RFRAMEBCHI 0x1001C
101 #define SBSDIO_FUNC1_MISC_REG_START 0x10000
102 #define SBSDIO_FUNC1_MISC_REG_LIMIT 0x1001C
107 #define SBSDIO_SB_OFT_ADDR_MASK 0x07FFF
108 #define SBSDIO_SB_OFT_ADDR_LIMIT 0x08000
110 #define SBSDIO_SB_ACCESS_2_4B_FLAG 0x08000
114 #define SBSDIO_SBADDRLOW_MASK 0x80
115 #define SBSDIO_SBADDRMID_MASK 0xff
116 #define SBSDIO_SBADDRHIGH_MASK 0xffU
118 #define SBSDIO_SBWINDOW_MASK 0xffff8000
121 #define SDIOH_WRITE 1
123 #define SDIOH_DATA_FIX 0
124 #define SDIOH_DATA_INC 1
131 #define BRCMF_SDALIGN (1 << 6)
134 #define BRCMF_WD_POLL_MS 10
157 #ifdef CONFIG_BRCMFMAC_SDIO_OOB
159 unsigned long irq_flags;
212 #define SDIO_REQ_4BYTE 0x1
214 #define SDIO_REQ_FIXED 0x2
216 #define SDIO_REQ_ASYNC 0x4