serial_core.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. /*
  2. * linux/drivers/char/serial_core.h
  3. *
  4. * Copyright (C) 2000 Deep Blue Solutions Ltd.
  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 as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. */
  20. #ifndef _UAPILINUX_SERIAL_CORE_H
  21. #define _UAPILINUX_SERIAL_CORE_H
  22. #include <linux/serial.h>
  23. /*
  24. * The type definitions. These are from Ted Ts'o's serial.h
  25. */
  26. #define PORT_UNKNOWN 0
  27. #define PORT_8250 1
  28. #define PORT_16450 2
  29. #define PORT_16550 3
  30. #define PORT_16550A 4
  31. #define PORT_CIRRUS 5
  32. #define PORT_16650 6
  33. #define PORT_16650V2 7
  34. #define PORT_16750 8
  35. #define PORT_STARTECH 9
  36. #define PORT_16C950 10
  37. #define PORT_16654 11
  38. #define PORT_16850 12
  39. #define PORT_RSA 13
  40. #define PORT_NS16550A 14
  41. #define PORT_XSCALE 15
  42. #define PORT_RM9000 16 /* PMC-Sierra RM9xxx internal UART */
  43. #define PORT_OCTEON 17 /* Cavium OCTEON internal UART */
  44. #define PORT_AR7 18 /* Texas Instruments AR7 internal UART */
  45. #define PORT_U6_16550A 19 /* ST-Ericsson U6xxx internal UART */
  46. #define PORT_TEGRA 20 /* NVIDIA Tegra internal UART */
  47. #define PORT_XR17D15X 21 /* Exar XR17D15x UART */
  48. #define PORT_LPC3220 22 /* NXP LPC32xx SoC "Standard" UART */
  49. #define PORT_8250_CIR 23 /* CIR infrared port, has its own driver */
  50. #define PORT_MAX_8250 23 /* max port ID */
  51. /*
  52. * ARM specific type numbers. These are not currently guaranteed
  53. * to be implemented, and will change in the future. These are
  54. * separate so any additions to the old serial.c that occur before
  55. * we are merged can be easily merged here.
  56. */
  57. #define PORT_PXA 31
  58. #define PORT_AMBA 32
  59. #define PORT_CLPS711X 33
  60. #define PORT_SA1100 34
  61. #define PORT_UART00 35
  62. #define PORT_21285 37
  63. /* Sparc type numbers. */
  64. #define PORT_SUNZILOG 38
  65. #define PORT_SUNSAB 39
  66. /* DEC */
  67. #define PORT_DZ 46
  68. #define PORT_ZS 47
  69. /* Parisc type numbers. */
  70. #define PORT_MUX 48
  71. /* Atmel AT91 / AT32 SoC */
  72. #define PORT_ATMEL 49
  73. /* Macintosh Zilog type numbers */
  74. #define PORT_MAC_ZILOG 50 /* m68k : not yet implemented */
  75. #define PORT_PMAC_ZILOG 51
  76. /* SH-SCI */
  77. #define PORT_SCI 52
  78. #define PORT_SCIF 53
  79. #define PORT_IRDA 54
  80. /* Samsung S3C2410 SoC and derivatives thereof */
  81. #define PORT_S3C2410 55
  82. /* SGI IP22 aka Indy / Challenge S / Indigo 2 */
  83. #define PORT_IP22ZILOG 56
  84. /* Sharp LH7a40x -- an ARM9 SoC series */
  85. #define PORT_LH7A40X 57
  86. /* PPC CPM type number */
  87. #define PORT_CPM 58
  88. /* MPC52xx (and MPC512x) type numbers */
  89. #define PORT_MPC52xx 59
  90. /* IBM icom */
  91. #define PORT_ICOM 60
  92. /* Samsung S3C2440 SoC */
  93. #define PORT_S3C2440 61
  94. /* Motorola i.MX SoC */
  95. #define PORT_IMX 62
  96. /* Marvell MPSC */
  97. #define PORT_MPSC 63
  98. /* TXX9 type number */
  99. #define PORT_TXX9 64
  100. /* NEC VR4100 series SIU/DSIU */
  101. #define PORT_VR41XX_SIU 65
  102. #define PORT_VR41XX_DSIU 66
  103. /* Samsung S3C2400 SoC */
  104. #define PORT_S3C2400 67
  105. /* M32R SIO */
  106. #define PORT_M32R_SIO 68
  107. /*Digi jsm */
  108. #define PORT_JSM 69
  109. #define PORT_PNX8XXX 70
  110. /* Hilscher netx */
  111. #define PORT_NETX 71
  112. /* SUN4V Hypervisor Console */
  113. #define PORT_SUNHV 72
  114. #define PORT_S3C2412 73
  115. /* Xilinx uartlite */
  116. #define PORT_UARTLITE 74
  117. /* Blackfin bf5xx */
  118. #define PORT_BFIN 75
  119. /* Micrel KS8695 */
  120. #define PORT_KS8695 76
  121. /* Broadcom SB1250, etc. SOC */
  122. #define PORT_SB1250_DUART 77
  123. /* Freescale ColdFire */
  124. #define PORT_MCF 78
  125. /* Blackfin SPORT */
  126. #define PORT_BFIN_SPORT 79
  127. /* MN10300 on-chip UART numbers */
  128. #define PORT_MN10300 80
  129. #define PORT_MN10300_CTS 81
  130. #define PORT_SC26XX 82
  131. /* SH-SCI */
  132. #define PORT_SCIFA 83
  133. #define PORT_S3C6400 84
  134. /* NWPSERIAL */
  135. #define PORT_NWPSERIAL 85
  136. /* MAX3100 */
  137. #define PORT_MAX3100 86
  138. /* Timberdale UART */
  139. #define PORT_TIMBUART 87
  140. /* Qualcomm MSM SoCs */
  141. #define PORT_MSM 88
  142. /* BCM63xx family SoCs */
  143. #define PORT_BCM63XX 89
  144. /* Aeroflex Gaisler GRLIB APBUART */
  145. #define PORT_APBUART 90
  146. /* Altera UARTs */
  147. #define PORT_ALTERA_JTAGUART 91
  148. #define PORT_ALTERA_UART 92
  149. /* SH-SCI */
  150. #define PORT_SCIFB 93
  151. /* MAX310X */
  152. #define PORT_MAX310X 94
  153. /* High Speed UART for Medfield */
  154. #define PORT_MFD 95
  155. /* TI OMAP-UART */
  156. #define PORT_OMAP 96
  157. /* VIA VT8500 SoC */
  158. #define PORT_VT8500 97
  159. /* Xilinx PSS UART */
  160. #define PORT_XUARTPS 98
  161. /* Atheros AR933X SoC */
  162. #define PORT_AR933X 99
  163. /* Energy Micro efm32 SoC */
  164. #define PORT_EFMUART 100
  165. #endif /* _UAPILINUX_SERIAL_CORE_H */