1 #ifndef LINUX_SSB_MIPSCORE_H_
2 #define LINUX_SSB_MIPSCORE_H_
4 #ifdef CONFIG_SSB_DRIVER_MIPS
8 struct ssb_serial_port {
10 unsigned long clockspeed;
12 unsigned int baud_base;
13 unsigned int reg_shift;
23 #ifdef CONFIG_SSB_SFLASH
36 struct ssb_device *dev;
39 struct ssb_serial_port serial_ports[4];
41 struct ssb_pflash pflash;
42 #ifdef CONFIG_SSB_SFLASH
43 struct ssb_sflash sflash;
47 extern void ssb_mipscore_init(struct ssb_mipscore *mcore);
48 extern u32 ssb_cpu_clock(struct ssb_mipscore *mcore);
50 extern unsigned int ssb_mips_irq(struct ssb_device *dev);
53 #else /* CONFIG_SSB_DRIVER_MIPS */
59 void ssb_mipscore_init(struct ssb_mipscore *mcore)
63 static inline unsigned int ssb_mips_irq(struct ssb_device *dev)
68 #endif /* CONFIG_SSB_DRIVER_MIPS */
70 #endif /* LINUX_SSB_MIPSCORE_H_ */