serial.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * include/asm-ppc/serial.h
  3. */
  4. #ifdef __KERNEL__
  5. #ifndef __ASM_SERIAL_H__
  6. #define __ASM_SERIAL_H__
  7. #include <linux/config.h>
  8. #if defined(CONFIG_EV64260)
  9. #include <platforms/ev64260.h>
  10. #elif defined(CONFIG_CHESTNUT)
  11. #include <platforms/chestnut.h>
  12. #elif defined(CONFIG_GEMINI)
  13. #include <platforms/gemini_serial.h>
  14. #elif defined(CONFIG_POWERPMC250)
  15. #include <platforms/powerpmc250.h>
  16. #elif defined(CONFIG_LOPEC)
  17. #include <platforms/lopec.h>
  18. #elif defined(CONFIG_MVME5100)
  19. #include <platforms/mvme5100.h>
  20. #elif defined(CONFIG_PAL4)
  21. #include <platforms/pal4_serial.h>
  22. #elif defined(CONFIG_PRPMC750)
  23. #include <platforms/prpmc750.h>
  24. #elif defined(CONFIG_PRPMC800)
  25. #include <platforms/prpmc800.h>
  26. #elif defined(CONFIG_SANDPOINT)
  27. #include <platforms/sandpoint.h>
  28. #elif defined(CONFIG_SPRUCE)
  29. #include <platforms/spruce.h>
  30. #elif defined(CONFIG_4xx)
  31. #include <asm/ibm4xx.h>
  32. #elif defined(CONFIG_83xx)
  33. #include <asm/mpc83xx.h>
  34. #elif defined(CONFIG_85xx)
  35. #include <asm/mpc85xx.h>
  36. #elif defined(CONFIG_RADSTONE_PPC7D)
  37. #include <platforms/radstone_ppc7d.h>
  38. #else
  39. /*
  40. * XXX Assume for now it has PC-style ISA serial ports.
  41. * This is true for PReP and CHRP at least.
  42. */
  43. #include <asm/pc_serial.h>
  44. #if defined(CONFIG_MAC_SERIAL)
  45. #define SERIAL_DEV_OFFSET ((_machine == _MACH_prep || _machine == _MACH_chrp) ? 0 : 2)
  46. #endif
  47. #endif /* !CONFIG_GEMINI and others */
  48. #endif /* __ASM_SERIAL_H__ */
  49. #endif /* __KERNEL__ */