gemini_serial.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * BK Id: %F% %I% %G% %U% %#%
  3.  */
  4. #ifdef __KERNEL__
  5. #ifndef __ASMPPC_GEMINI_SERIAL_H
  6. #define __ASMPPC_GEMINI_SERIAL_H
  7. #include <linux/config.h>
  8. #include <platforms/gemini.h>
  9. #ifdef CONFIG_SERIAL_MANY_PORTS
  10. #define RS_TABLE_SIZE  64
  11. #else
  12. #define RS_TABLE_SIZE  4
  13. #endif
  14. /* Rate for the 24.576 Mhz clock for the onboard serial chip */
  15. #define BASE_BAUD  (24576000 / 16)
  16. #ifdef CONFIG_SERIAL_DETECT_IRQ
  17. #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
  18. #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ)
  19. #else
  20. #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
  21. #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF)
  22. #endif
  23. #define STD_SERIAL_PORT_DEFNS 
  24.         { 0, BASE_BAUD, GEMINI_SERIAL_A, 15, STD_COM_FLAGS }, /* ttyS0 */ 
  25.         { 0, BASE_BAUD, GEMINI_SERIAL_B, 14, STD_COM_FLAGS }, /* ttyS1 */ 
  26. #ifdef CONFIG_GEMINI_PU32
  27. #define PU32_SERIAL_PORT_DEFNS 
  28.         { 0, BASE_BAUD, NULL, 0, STD_COM_FLAGS },
  29. #else
  30. #define PU32_SERIAL_PORT_DEFNS
  31. #endif
  32. #define SERIAL_PORT_DFNS 
  33.         STD_SERIAL_PORT_DEFNS 
  34.         PU32_SERIAL_PORT_DEFNS
  35. #endif
  36. #endif /* __KERNEL__ */