Go to the documentation of this file. 1 #ifndef LINUX_SSB_PRIVATE_H_
2 #define LINUX_SSB_PRIVATE_H_
5 #include <linux/types.h>
10 #ifdef CONFIG_SSB_SILENT
11 # define ssb_printk(fmt, x...) do { } while (0)
13 # define ssb_printk printk
17 #ifdef CONFIG_SSB_DEBUG
18 # define ssb_dprintk(fmt, x...) ssb_printk(fmt , ##x)
20 # define ssb_dprintk(fmt, x...) do { } while (0)
23 #ifdef CONFIG_SSB_DEBUG
24 # define SSB_WARN_ON(x) WARN_ON(x)
25 # define SSB_BUG_ON(x) BUG_ON(x)
27 static inline int __ssb_do_nothing(
int x) {
return x; }
28 # define SSB_WARN_ON(x) __ssb_do_nothing(unlikely(!!(x)))
29 # define SSB_BUG_ON(x) __ssb_do_nothing(unlikely(!!(x)))
34 #ifdef CONFIG_SSB_PCIHOST
75 #ifdef CONFIG_SSB_PCMCIAHOST
118 #ifdef CONFIG_SSB_SDIOHOST
125 extern int ssb_sdio_hardware_setup(
struct ssb_bus *
bus);
144 static inline int ssb_sdio_hardware_setup(
struct ssb_bus *
bus)
161 unsigned long baseaddr);
168 int (*sprom_read)(
struct ssb_bus *bus,
u16 *sprom));
171 const char *buf,
size_t count,
172 int (*sprom_check_crc)(
const u16 *sprom,
size_t size),
173 int (*sprom_write)(
struct ssb_bus *bus,
const u16 *sprom));
182 int (*
func)(
struct ssb_bus *bus,
unsigned long data));
197 #ifdef CONFIG_SSB_B43_PCI_BRIDGE