linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / include / asm-ppc / serial.h
index 8a59f88..485a924 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef __ASM_SERIAL_H__
 #define __ASM_SERIAL_H__
 
+#include <linux/config.h>
 
 #if defined(CONFIG_EV64260)
 #include <platforms/ev64260.h>
 #else
 
 /*
- * XXX Assume it has PC-style ISA serial ports - true for PReP at least.
+ * XXX Assume for now it has PC-style ISA serial ports.
+ * This is true for PReP and CHRP at least.
  */
 #include <asm/pc_serial.h>
 
+#if defined(CONFIG_MAC_SERIAL)
+#define SERIAL_DEV_OFFSET      ((_machine == _MACH_prep || _machine == _MACH_chrp) ? 0 : 2)
+#endif
+
 #endif /* !CONFIG_GEMINI and others */
 #endif /* __ASM_SERIAL_H__ */
 #endif /* __KERNEL__ */