hwmon: (s3c) Initialize sysfs attributes
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / ssb / ssb_driver_mips.h
blob5f44e9740cd2a3453da6767778911fb3aa59eab1
1 #ifndef LINUX_SSB_MIPSCORE_H_
2 #define LINUX_SSB_MIPSCORE_H_
4 #ifdef CONFIG_SSB_DRIVER_MIPS
6 struct ssb_device;
8 struct ssb_serial_port {
9 void *regs;
10 unsigned long clockspeed;
11 unsigned int irq;
12 unsigned int baud_base;
13 unsigned int reg_shift;
17 struct ssb_mipscore {
18 struct ssb_device *dev;
20 int nr_serial_ports;
21 struct ssb_serial_port serial_ports[4];
23 u8 flash_buswidth;
24 u32 flash_window;
25 u32 flash_window_size;
28 extern void ssb_mipscore_init(struct ssb_mipscore *mcore);
29 extern u32 ssb_cpu_clock(struct ssb_mipscore *mcore);
31 extern unsigned int ssb_mips_irq(struct ssb_device *dev);
34 #else /* CONFIG_SSB_DRIVER_MIPS */
36 struct ssb_mipscore {
39 static inline
40 void ssb_mipscore_init(struct ssb_mipscore *mcore)
44 #endif /* CONFIG_SSB_DRIVER_MIPS */
46 #endif /* LINUX_SSB_MIPSCORE_H_ */