1 /* 2 * include/asm-ppc/serial.h 3 */ 4 5 #ifdef __KERNEL__ 6 #ifndef __ASM_SERIAL_H__ 7 #define __ASM_SERIAL_H__ 8 9 #include <linux/config.h> 10 11 #if defined(CONFIG_GEMINI) 12 #include <platforms/gemini_serial.h> 13 #elif defined(CONFIG_LOPEC) 14 #include <platforms/lopec_serial.h> 15 #elif defined(CONFIG_SANDPOINT) 16 #include <platforms/sandpoint_serial.h> 17 #elif defined(CONFIG_SPRUCE) 18 #include <platforms/spruce.h> 19 #elif defined(CONFIG_PRPMC750) 20 #include <platforms/prpmc750_serial.h> 21 #elif defined(CONFIG_4xx) 22 #include <asm/ibm4xx.h> 23 #else 24 25 /* 26 * XXX Assume for now it has PC-style ISA serial ports. 27 * This is true for PReP and CHRP at least. 28 */ 29 #include <asm/pc_serial.h> 30 #include <asm/processor.h> 31 32 #if defined(CONFIG_MAC_SERIAL) 33 #define SERIAL_DEV_OFFSET ((_machine == _MACH_prep || _machine == _MACH_chrp) ? 0 : 2) 34 #endif 35 36 #endif /* !CONFIG_GEMINI and others */ 37 #endif /* __ASM_SERIAL_H__ */ 38 #endif /* __KERNEL__ */ 39