diff options
author | Albert Herranz <albert_herranz@yahoo.es> | 2009-09-08 13:30:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-09-09 11:19:00 -0400 |
commit | 24ea602e183ca20a7577ebe253323d0e5d0f9847 (patch) | |
tree | 9cd9c0b3832cac2f155e633fbed1ce2bf3331f9a /drivers/ssb/ssb_private.h | |
parent | f020979d5d7c9816c071d0aedf60a889fa4fae40 (diff) |
ssb: Implement SDIO host bus support
Add support for communicating with a Sonics Silicon Backplane through a
SDIO interface, as found in the Nintendo Wii WLAN daughter card.
The Nintendo Wii WLAN card includes a custom Broadcom 4318 chip with
a SDIO host interface.
Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb/ssb_private.h')
-rw-r--r-- | drivers/ssb/ssb_private.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/drivers/ssb/ssb_private.h b/drivers/ssb/ssb_private.h index 57fa482abb94..25433565dfda 100644 --- a/drivers/ssb/ssb_private.h +++ b/drivers/ssb/ssb_private.h | |||
@@ -114,6 +114,46 @@ static inline int ssb_pcmcia_init(struct ssb_bus *bus) | |||
114 | } | 114 | } |
115 | #endif /* CONFIG_SSB_PCMCIAHOST */ | 115 | #endif /* CONFIG_SSB_PCMCIAHOST */ |
116 | 116 | ||
117 | /* sdio.c */ | ||
118 | #ifdef CONFIG_SSB_SDIOHOST | ||
119 | extern int ssb_sdio_get_invariants(struct ssb_bus *bus, | ||
120 | struct ssb_init_invariants *iv); | ||
121 | |||
122 | extern u32 ssb_sdio_scan_read32(struct ssb_bus *bus, u16 offset); | ||
123 | extern int ssb_sdio_switch_core(struct ssb_bus *bus, struct ssb_device *dev); | ||
124 | extern int ssb_sdio_scan_switch_coreidx(struct ssb_bus *bus, u8 coreidx); | ||
125 | extern int ssb_sdio_hardware_setup(struct ssb_bus *bus); | ||
126 | extern void ssb_sdio_exit(struct ssb_bus *bus); | ||
127 | extern int ssb_sdio_init(struct ssb_bus *bus); | ||
128 | |||
129 | extern const struct ssb_bus_ops ssb_sdio_ops; | ||
130 | #else /* CONFIG_SSB_SDIOHOST */ | ||
131 | static inline u32 ssb_sdio_scan_read32(struct ssb_bus *bus, u16 offset) | ||
132 | { | ||
133 | return 0; | ||
134 | } | ||
135 | static inline int ssb_sdio_switch_core(struct ssb_bus *bus, | ||
136 | struct ssb_device *dev) | ||
137 | { | ||
138 | return 0; | ||
139 | } | ||
140 | static inline int ssb_sdio_scan_switch_coreidx(struct ssb_bus *bus, u8 coreidx) | ||
141 | { | ||
142 | return 0; | ||
143 | } | ||
144 | static inline int ssb_sdio_hardware_setup(struct ssb_bus *bus) | ||
145 | { | ||
146 | return 0; | ||
147 | } | ||
148 | static inline void ssb_sdio_exit(struct ssb_bus *bus) | ||
149 | { | ||
150 | } | ||
151 | static inline int ssb_sdio_init(struct ssb_bus *bus) | ||
152 | { | ||
153 | return 0; | ||
154 | } | ||
155 | #endif /* CONFIG_SSB_SDIOHOST */ | ||
156 | |||
117 | 157 | ||
118 | /* scan.c */ | 158 | /* scan.c */ |
119 | extern const char *ssb_core_name(u16 coreid); | 159 | extern const char *ssb_core_name(u16 coreid); |