1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 /* 3 * Copyright (C) 2000 Deep Blue Solutions Ltd. 4 */ 5 #ifndef _UAPILINUX_SERIAL_CORE_H 6 #define _UAPILINUX_SERIAL_CORE_H 7 8 #include <linux/serial.h> 9 10 /* 11 * The type definitions. These are from Ted Ts'o's serial.h 12 * By historical reasons the values from 0 to 13 are defined 13 * in the include/uapi/linux/serial.h, do not define them here. 14 * Values 0 to 19 are used by setserial from busybox and must never 15 * be modified. 16 */ 17 #define PORT_NS16550A 14 18 #define PORT_XSCALE 15 19 #define PORT_RM9000 16 /* PMC-Sierra RM9xxx internal UART */ 20 #define PORT_OCTEON 17 /* Cavium OCTEON internal UART */ 21 #define PORT_AR7 18 /* Texas Instruments AR7 internal UART */ 22 #define PORT_U6_16550A 19 /* ST-Ericsson U6xxx internal UART */ 23 #define PORT_TEGRA 20 /* NVIDIA Tegra internal UART */ 24 #define PORT_XR17D15X 21 /* Exar XR17D15x UART */ 25 #define PORT_LPC3220 22 /* NXP LPC32xx SoC "Standard" UART */ 26 #define PORT_8250_CIR 23 /* CIR infrared port, has its own driver */ 27 #define PORT_XR17V35X 24 /* Exar XR17V35x UARTs */ 28 #define PORT_BRCM_TRUMANAGE 25 29 #define PORT_ALTR_16550_F32 26 /* Altera 16550 UART with 32 FIFOs */ 30 #define PORT_ALTR_16550_F64 27 /* Altera 16550 UART with 64 FIFOs */ 31 #define PORT_ALTR_16550_F128 28 /* Altera 16550 UART with 128 FIFOs */ 32 #define PORT_RT2880 29 /* Ralink RT2880 internal UART */ 33 #define PORT_16550A_FSL64 30 /* Freescale 16550 UART with 64 FIFOs */ 34 35 /* 36 * ARM specific type numbers. These are not currently guaranteed 37 * to be implemented, and will change in the future. These are 38 * separate so any additions to the old serial.c that occur before 39 * we are merged can be easily merged here. 40 */ 41 #define PORT_PXA 31 42 #define PORT_AMBA 32 43 #define PORT_CLPS711X 33 44 #define PORT_SA1100 34 45 #define PORT_UART00 35 46 #define PORT_OWL 36 47 #define PORT_21285 37 48 49 /* Sparc type numbers. */ 50 #define PORT_SUNZILOG 38 51 #define PORT_SUNSAB 39 52 53 /* Nuvoton UART */ 54 #define PORT_NPCM 40 55 56 /* NVIDIA Tegra Combined UART */ 57 #define PORT_TEGRA_TCU 41 58 59 /* ASPEED AST2x00 virtual UART */ 60 #define PORT_ASPEED_VUART 42 61 62 /* Intel EG20 */ 63 #define PORT_PCH_8LINE 44 64 #define PORT_PCH_2LINE 45 65 66 /* DEC */ 67 #define PORT_DZ 46 68 #define PORT_ZS 47 69 70 /* Parisc type numbers. */ 71 #define PORT_MUX 48 72 73 /* Atmel AT91 SoC */ 74 #define PORT_ATMEL 49 75 76 /* Macintosh Zilog type numbers */ 77 #define PORT_MAC_ZILOG 50 /* m68k : not yet implemented */ 78 #define PORT_PMAC_ZILOG 51 79 80 /* SH-SCI */ 81 #define PORT_SCI 52 82 #define PORT_SCIF 53 83 #define PORT_IRDA 54 84 85 /* SGI IP22 aka Indy / Challenge S / Indigo 2 */ 86 #define PORT_IP22ZILOG 56 87 88 /* PPC CPM type number */ 89 #define PORT_CPM 58 90 91 /* MPC52xx (and MPC512x) type numbers */ 92 #define PORT_MPC52xx 59 93 94 /* IBM icom */ 95 #define PORT_ICOM 60 96 97 /* Motorola i.MX SoC */ 98 #define PORT_IMX 62 99 100 /* TXX9 type number */ 101 #define PORT_TXX9 64 102 103 /* Moxa MUEx50 UART */ 104 #define PORT_MUEX50 65 105 106 /*Digi jsm */ 107 #define PORT_JSM 69 108 109 /* SUN4V Hypervisor Console */ 110 #define PORT_SUNHV 72 111 112 /* Xilinx uartlite */ 113 #define PORT_UARTLITE 74 114 115 /* Broadcom BCM7271 UART */ 116 #define PORT_BCM7271 76 117 118 /* Broadcom SB1250, etc. SOC */ 119 #define PORT_SB1250_DUART 77 120 121 /* Freescale ColdFire */ 122 #define PORT_MCF 78 123 124 #define PORT_SC26XX 82 125 126 /* SH-SCI */ 127 #define PORT_SCIFA 83 128 129 #define PORT_S3C6400 84 130 131 /* MAX3100 */ 132 #define PORT_MAX3100 86 133 134 /* Timberdale UART */ 135 #define PORT_TIMBUART 87 136 137 /* Qualcomm MSM SoCs */ 138 #define PORT_MSM 88 139 140 /* BCM63xx family SoCs */ 141 #define PORT_BCM63XX 89 142 143 /* Aeroflex Gaisler GRLIB APBUART */ 144 #define PORT_APBUART 90 145 146 /* Altera UARTs */ 147 #define PORT_ALTERA_JTAGUART 91 148 #define PORT_ALTERA_UART 92 149 150 /* SH-SCI */ 151 #define PORT_SCIFB 93 152 153 /* MAX310X */ 154 #define PORT_MAX310X 94 155 156 /* TI DA8xx/66AK2x */ 157 #define PORT_DA830 95 158 159 /* TI OMAP-UART */ 160 #define PORT_OMAP 96 161 162 /* VIA VT8500 SoC */ 163 #define PORT_VT8500 97 164 165 /* Cadence (Xilinx Zynq) UART */ 166 #define PORT_XUARTPS 98 167 168 /* Atheros AR933X SoC */ 169 #define PORT_AR933X 99 170 171 /* MCHP 16550A UART with 256 byte FIFOs */ 172 #define PORT_MCHP16550A 100 173 174 /* ARC (Synopsys) on-chip UART */ 175 #define PORT_ARC 101 176 177 /* Rocketport EXPRESS/INFINITY */ 178 #define PORT_RP2 102 179 180 /* Freescale lpuart */ 181 #define PORT_LPUART 103 182 183 /* SH-SCI */ 184 #define PORT_HSCIF 104 185 186 /* ST ASC type numbers */ 187 #define PORT_ASC 105 188 189 /* MEN 16z135 UART */ 190 #define PORT_MEN_Z135 107 191 192 /* SC16IS7xx */ 193 #define PORT_SC16IS7XX 108 194 195 /* MESON */ 196 #define PORT_MESON 109 197 198 /* Conexant Digicolor */ 199 #define PORT_DIGICOLOR 110 200 201 /* SPRD SERIAL */ 202 #define PORT_SPRD 111 203 204 /* STM32 USART */ 205 #define PORT_STM32 113 206 207 /* MVEBU UART */ 208 #define PORT_MVEBU 114 209 210 /* Microchip PIC32 UART */ 211 #define PORT_PIC32 115 212 213 /* MPS2 UART */ 214 #define PORT_MPS2UART 116 215 216 /* MediaTek BTIF */ 217 #define PORT_MTK_BTIF 117 218 219 /* RDA UART */ 220 #define PORT_RDA 118 221 222 /* Socionext Milbeaut UART */ 223 #define PORT_MLB_USIO 119 224 225 /* SiFive UART */ 226 #define PORT_SIFIVE_V0 120 227 228 /* Sunix UART */ 229 #define PORT_SUNIX 121 230 231 /* Freescale LINFlexD UART */ 232 #define PORT_LINFLEXUART 122 233 234 /* Sunplus UART */ 235 #define PORT_SUNPLUS 123 236 237 /* Generic type identifier for ports which type is not important to userspace. */ 238 #define PORT_GENERIC (-1) 239 240 #endif /* _UAPILINUX_SERIAL_CORE_H */ 241