update work in progress rewritten bcm947xx code. wifi and usb seem to be working...
[openwrt-10.03/.git] / target / linux / brcm47xx-2.6 / files / include / linux / ssb / ssb_driver_mips.h
1 #ifndef LINUX_SSB_MIPSCORE_H_
2 #define LINUX_SSB_MIPSCORE_H_
3
4 #ifdef __KERNEL__
5
6 #ifdef CONFIG_BCM947XX
7
8 struct ssb_device;
9
10 struct ssb_serial_port {
11         void *regs;
12         unsigned long clockspeed;
13         unsigned int irq;
14         unsigned int baud_base;
15         unsigned int reg_shift;
16 };
17
18
19 struct ssb_mipscore {
20         struct ssb_device *dev;
21
22         int nr_serial_ports;
23         struct ssb_serial_port serial_ports[4];
24
25         u32 flash_window;
26         u32 flash_window_size;
27 };
28
29 extern void ssb_mipscore_init(struct ssb_mipscore *mcore);
30 extern u32 ssb_cpu_clock(struct ssb_mipscore *mcore);
31 extern unsigned int ssb_mips_irq(struct ssb_device *dev);
32
33
34 #else /* CONFIG_BCM947XX */
35
36 struct ssb_mipscore {
37 };
38
39 static inline
40 void ssb_mipscore_init(struct ssb_mipscore *mcore)
41 {
42 }
43
44 #endif /* CONFIG_BCM947XX */
45
46 #endif /* __KERNEL__ */
47 #endif /* LINUX_SSB_MIPSCORE_H_ */