serial_core.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  2. /*
  3. * linux/drivers/char/serial_core.h
  4. *
  5. * Copyright (C) 2000 Deep Blue Solutions Ltd.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. #ifndef _UAPILINUX_SERIAL_CORE_H
  22. #define _UAPILINUX_SERIAL_CORE_H
  23. #include <linux/serial.h>
  24. /*
  25. * The type definitions. These are from Ted Ts'o's serial.h
  26. */
  27. #define PORT_UNKNOWN 0
  28. #define PORT_8250 1
  29. #define PORT_16450 2
  30. #define PORT_16550 3
  31. #define PORT_16550A 4
  32. #define PORT_CIRRUS 5
  33. #define PORT_16650 6
  34. #define PORT_16650V2 7
  35. #define PORT_16750 8
  36. #define PORT_STARTECH 9
  37. #define PORT_16C950 10
  38. #define PORT_16654 11
  39. #define PORT_16850 12
  40. #define PORT_RSA 13
  41. #define PORT_NS16550A 14
  42. #define PORT_XSCALE 15
  43. #define PORT_RM9000 16 /* PMC-Sierra RM9xxx internal UART */
  44. #define PORT_OCTEON 17 /* Cavium OCTEON internal UART */
  45. #define PORT_AR7 18 /* Texas Instruments AR7 internal UART */
  46. #define PORT_U6_16550A 19 /* ST-Ericsson U6xxx internal UART */
  47. #define PORT_TEGRA 20 /* NVIDIA Tegra internal UART */
  48. #define PORT_XR17D15X 21 /* Exar XR17D15x UART */
  49. #define PORT_LPC3220 22 /* NXP LPC32xx SoC "Standard" UART */
  50. #define PORT_8250_CIR 23 /* CIR infrared port, has its own driver */
  51. #define PORT_XR17V35X 24 /* Exar XR17V35x UARTs */
  52. #define PORT_BRCM_TRUMANAGE 25
  53. #define PORT_ALTR_16550_F32 26 /* Altera 16550 UART with 32 FIFOs */
  54. #define PORT_ALTR_16550_F64 27 /* Altera 16550 UART with 64 FIFOs */
  55. #define PORT_ALTR_16550_F128 28 /* Altera 16550 UART with 128 FIFOs */
  56. #define PORT_RT2880 29 /* Ralink RT2880 internal UART */
  57. #define PORT_16550A_FSL64 30 /* Freescale 16550 UART with 64 FIFOs */
  58. /*
  59. * ARM specific type numbers. These are not currently guaranteed
  60. * to be implemented, and will change in the future. These are
  61. * separate so any additions to the old serial.c that occur before
  62. * we are merged can be easily merged here.
  63. */
  64. #define PORT_PXA 31
  65. #define PORT_AMBA 32
  66. #define PORT_CLPS711X 33
  67. #define PORT_SA1100 34
  68. #define PORT_UART00 35
  69. #define PORT_OWL 36
  70. #define PORT_21285 37
  71. /* Sparc type numbers. */
  72. #define PORT_SUNZILOG 38
  73. #define PORT_SUNSAB 39
  74. /* Intel EG20 */
  75. #define PORT_PCH_8LINE 44
  76. #define PORT_PCH_2LINE 45
  77. /* DEC */
  78. #define PORT_DZ 46
  79. #define PORT_ZS 47
  80. /* Parisc type numbers. */
  81. #define PORT_MUX 48
  82. /* Atmel AT91 SoC */
  83. #define PORT_ATMEL 49
  84. /* Macintosh Zilog type numbers */
  85. #define PORT_MAC_ZILOG 50 /* m68k : not yet implemented */
  86. #define PORT_PMAC_ZILOG 51
  87. /* SH-SCI */
  88. #define PORT_SCI 52
  89. #define PORT_SCIF 53
  90. #define PORT_IRDA 54
  91. /* Samsung S3C2410 SoC and derivatives thereof */
  92. #define PORT_S3C2410 55
  93. /* SGI IP22 aka Indy / Challenge S / Indigo 2 */
  94. #define PORT_IP22ZILOG 56
  95. /* Sharp LH7a40x -- an ARM9 SoC series */
  96. #define PORT_LH7A40X 57
  97. /* PPC CPM type number */
  98. #define PORT_CPM 58
  99. /* MPC52xx (and MPC512x) type numbers */
  100. #define PORT_MPC52xx 59
  101. /* IBM icom */
  102. #define PORT_ICOM 60
  103. /* Samsung S3C2440 SoC */
  104. #define PORT_S3C2440 61
  105. /* Motorola i.MX SoC */
  106. #define PORT_IMX 62
  107. /* Marvell MPSC */
  108. #define PORT_MPSC 63
  109. /* TXX9 type number */
  110. #define PORT_TXX9 64
  111. /* NEC VR4100 series SIU/DSIU */
  112. #define PORT_VR41XX_SIU 65
  113. #define PORT_VR41XX_DSIU 66
  114. /* Samsung S3C2400 SoC */
  115. #define PORT_S3C2400 67
  116. /* M32R SIO */
  117. #define PORT_M32R_SIO 68
  118. /*Digi jsm */
  119. #define PORT_JSM 69
  120. #define PORT_PNX8XXX 70
  121. /* Hilscher netx */
  122. #define PORT_NETX 71
  123. /* SUN4V Hypervisor Console */
  124. #define PORT_SUNHV 72
  125. #define PORT_S3C2412 73
  126. /* Xilinx uartlite */
  127. #define PORT_UARTLITE 74
  128. /* Blackfin bf5xx */
  129. #define PORT_BFIN 75
  130. /* Micrel KS8695 */
  131. #define PORT_KS8695 76
  132. /* Broadcom SB1250, etc. SOC */
  133. #define PORT_SB1250_DUART 77
  134. /* Freescale ColdFire */
  135. #define PORT_MCF 78
  136. /* Blackfin SPORT */
  137. #define PORT_BFIN_SPORT 79
  138. /* MN10300 on-chip UART numbers */
  139. #define PORT_MN10300 80
  140. #define PORT_MN10300_CTS 81
  141. #define PORT_SC26XX 82
  142. /* SH-SCI */
  143. #define PORT_SCIFA 83
  144. #define PORT_S3C6400 84
  145. /* NWPSERIAL, now removed */
  146. #define PORT_NWPSERIAL 85
  147. /* MAX3100 */
  148. #define PORT_MAX3100 86
  149. /* Timberdale UART */
  150. #define PORT_TIMBUART 87
  151. /* Qualcomm MSM SoCs */
  152. #define PORT_MSM 88
  153. /* BCM63xx family SoCs */
  154. #define PORT_BCM63XX 89
  155. /* Aeroflex Gaisler GRLIB APBUART */
  156. #define PORT_APBUART 90
  157. /* Altera UARTs */
  158. #define PORT_ALTERA_JTAGUART 91
  159. #define PORT_ALTERA_UART 92
  160. /* SH-SCI */
  161. #define PORT_SCIFB 93
  162. /* MAX310X */
  163. #define PORT_MAX310X 94
  164. /* TI DA8xx/66AK2x */
  165. #define PORT_DA830 95
  166. /* TI OMAP-UART */
  167. #define PORT_OMAP 96
  168. /* VIA VT8500 SoC */
  169. #define PORT_VT8500 97
  170. /* Cadence (Xilinx Zynq) UART */
  171. #define PORT_XUARTPS 98
  172. /* Atheros AR933X SoC */
  173. #define PORT_AR933X 99
  174. /* Energy Micro efm32 SoC */
  175. #define PORT_EFMUART 100
  176. /* ARC (Synopsys) on-chip UART */
  177. #define PORT_ARC 101
  178. /* Rocketport EXPRESS/INFINITY */
  179. #define PORT_RP2 102
  180. /* Freescale lpuart */
  181. #define PORT_LPUART 103
  182. /* SH-SCI */
  183. #define PORT_HSCIF 104
  184. /* ST ASC type numbers */
  185. #define PORT_ASC 105
  186. /* Tilera TILE-Gx UART */
  187. #define PORT_TILEGX 106
  188. /* MEN 16z135 UART */
  189. #define PORT_MEN_Z135 107
  190. /* SC16IS74xx */
  191. #define PORT_SC16IS7XX 108
  192. /* MESON */
  193. #define PORT_MESON 109
  194. /* Conexant Digicolor */
  195. #define PORT_DIGICOLOR 110
  196. /* SPRD SERIAL */
  197. #define PORT_SPRD 111
  198. /* Cris v10 / v32 SoC */
  199. #define PORT_CRIS 112
  200. /* STM32 USART */
  201. #define PORT_STM32 113
  202. /* MVEBU UART */
  203. #define PORT_MVEBU 114
  204. /* Microchip PIC32 UART */
  205. #define PORT_PIC32 115
  206. /* MPS2 UART */
  207. #define PORT_MPS2UART 116
  208. /* MediaTek BTIF */
  209. #define PORT_MTK_BTIF 117
  210. #endif /* _UAPILINUX_SERIAL_CORE_H */