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

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  *  drivers/char/serial_tx3912.h
  3.  *
  4.  *  Copyright (C) 2001 Steven J. Hill (sjhill@realitydiluted.com)
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License version 2 as
  8.  * published by the Free Software Foundation.
  9.  *
  10.  *  Serial driver for TMPR3912/05 and PR31700 processors
  11.  */
  12. #include <linux/serialP.h>
  13. #include <linux/generic_serial.h>
  14. #undef TX3912_UART_DEBUG
  15. #ifdef TX3912_UART_DEBUG
  16. #define TX3912_UART_DEBUG_OPEN 0x00000001
  17. #define TX3912_UART_DEBUG_SETTING 0x00000002
  18. #define TX3912_UART_DEBUG_FLOW 0x00000004
  19. #define TX3912_UART_DEBUG_MODEMSIGNALS 0x00000008
  20. #define TX3912_UART_DEBUG_TERMIOS 0x00000010
  21. #define TX3912_UART_DEBUG_TRANSMIT 0x00000020
  22. #define TX3912_UART_DEBUG_RECEIVE 0x00000040
  23. #define TX3912_UART_DEBUG_INTERRUPTS 0x00000080
  24. #define TX3912_UART_DEBUG_PROBE 0x00000100
  25. #define TX3912_UART_DEBUG_INIT 0x00000200
  26. #define TX3912_UART_DEBUG_CLEANUP 0x00000400
  27. #define TX3912_UART_DEBUG_CLOSE 0x00000800
  28. #define TX3912_UART_DEBUG_FIRMWARE 0x00001000
  29. #define TX3912_UART_DEBUG_MEMTEST 0x00002000
  30. #define TX3912_UART_DEBUG_THROTTLE 0x00004000
  31. #define TX3912_UART_DEBUG_NO_TX 0xffffffdf
  32. #define TX3912_UART_DEBUG_ALL 0xffffffff
  33. #define rs_dprintk(f, str...) if(TX3912_UART_DEBUG_NO_TX & f) printk(str)
  34. #define func_enter() rs_dprintk(TX3912_UART_DEBUG_FLOW,
  35. "rs: enter " __FUNCTION__ "n")
  36. #define func_exit() rs_dprintk(TX3912_UART_DEBUG_FLOW,
  37. "rs: exit " __FUNCTION__ "n")
  38. #else
  39. #define rs_dprintk(f, str...)
  40. #define func_enter()
  41. #define func_exit()
  42. #endif
  43. /*
  44.  * Hardware specific serial port structure
  45.  */
  46. struct rs_port { 
  47. struct gs_port gs; /* Must be first field! */
  48. struct wait_queue *shutdown_wait; 
  49. int stat_flags;
  50. struct async_icount icount; /* Counters for 4 input IRQs */
  51. int read_status_mask;
  52. int ignore_status_mask;
  53. int x_char; /* XON/XOFF character */
  54. };