diff options
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/sdio_host.h')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/sdio_host.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/sdio_host.h b/drivers/net/wireless/brcm80211/brcmfmac/sdio_host.h index 0281d207d998..7010eaf71f99 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/sdio_host.h +++ b/drivers/net/wireless/brcm80211/brcmfmac/sdio_host.h | |||
@@ -43,6 +43,13 @@ | |||
43 | /* as of sdiod rev 0, supports 3 functions */ | 43 | /* as of sdiod rev 0, supports 3 functions */ |
44 | #define SBSDIO_NUM_FUNCTION 3 | 44 | #define SBSDIO_NUM_FUNCTION 3 |
45 | 45 | ||
46 | /* function 0 vendor specific CCCR registers */ | ||
47 | #define SDIO_CCCR_BRCM_SEPINT 0xf2 | ||
48 | |||
49 | #define SDIO_SEPINT_MASK 0x01 | ||
50 | #define SDIO_SEPINT_OE 0x02 | ||
51 | #define SDIO_SEPINT_ACT_HI 0x04 | ||
52 | |||
46 | /* function 1 miscellaneous registers */ | 53 | /* function 1 miscellaneous registers */ |
47 | 54 | ||
48 | /* sprom command and status */ | 55 | /* sprom command and status */ |
@@ -144,13 +151,18 @@ struct brcmf_sdio_dev { | |||
144 | wait_queue_head_t request_buffer_wait; | 151 | wait_queue_head_t request_buffer_wait; |
145 | struct device *dev; | 152 | struct device *dev; |
146 | struct brcmf_bus *bus_if; | 153 | struct brcmf_bus *bus_if; |
154 | #ifdef CONFIG_BRCMFMAC_SDIO_OOB | ||
155 | unsigned int irq; /* oob interrupt number */ | ||
156 | unsigned long irq_flags; /* board specific oob flags */ | ||
157 | bool irq_en; /* irq enable flags */ | ||
158 | spinlock_t irq_en_lock; | ||
159 | bool irq_wake; /* irq wake enable flags */ | ||
160 | #endif /* CONFIG_BRCMFMAC_SDIO_OOB */ | ||
147 | }; | 161 | }; |
148 | 162 | ||
149 | /* Register/deregister device interrupt handler. */ | 163 | /* Register/deregister interrupt handler. */ |
150 | extern int | 164 | extern int brcmf_sdio_intr_register(struct brcmf_sdio_dev *sdiodev); |
151 | brcmf_sdcard_intr_reg(struct brcmf_sdio_dev *sdiodev); | 165 | extern int brcmf_sdio_intr_unregister(struct brcmf_sdio_dev *sdiodev); |
152 | |||
153 | extern int brcmf_sdcard_intr_dereg(struct brcmf_sdio_dev *sdiodev); | ||
154 | 166 | ||
155 | /* Access SDIO address space (e.g. CCCR) using CMD52 (single-byte interface). | 167 | /* Access SDIO address space (e.g. CCCR) using CMD52 (single-byte interface). |
156 | * fn: function number | 168 | * fn: function number |