at v4.14-rc1 6.1 kB view raw
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 23#include <linux/serial.h> 24 25/* 26 * The type definitions. These are from Ted Ts'o's serial.h 27 */ 28#define PORT_UNKNOWN 0 29#define PORT_8250 1 30#define PORT_16450 2 31#define PORT_16550 3 32#define PORT_16550A 4 33#define PORT_CIRRUS 5 34#define PORT_16650 6 35#define PORT_16650V2 7 36#define PORT_16750 8 37#define PORT_STARTECH 9 38#define PORT_16C950 10 39#define PORT_16654 11 40#define PORT_16850 12 41#define PORT_RSA 13 42#define PORT_NS16550A 14 43#define PORT_XSCALE 15 44#define PORT_RM9000 16 /* PMC-Sierra RM9xxx internal UART */ 45#define PORT_OCTEON 17 /* Cavium OCTEON internal UART */ 46#define PORT_AR7 18 /* Texas Instruments AR7 internal UART */ 47#define PORT_U6_16550A 19 /* ST-Ericsson U6xxx internal UART */ 48#define PORT_TEGRA 20 /* NVIDIA Tegra internal UART */ 49#define PORT_XR17D15X 21 /* Exar XR17D15x UART */ 50#define PORT_LPC3220 22 /* NXP LPC32xx SoC "Standard" UART */ 51#define PORT_8250_CIR 23 /* CIR infrared port, has its own driver */ 52#define PORT_XR17V35X 24 /* Exar XR17V35x UARTs */ 53#define PORT_BRCM_TRUMANAGE 25 54#define PORT_ALTR_16550_F32 26 /* Altera 16550 UART with 32 FIFOs */ 55#define PORT_ALTR_16550_F64 27 /* Altera 16550 UART with 64 FIFOs */ 56#define PORT_ALTR_16550_F128 28 /* Altera 16550 UART with 128 FIFOs */ 57#define PORT_RT2880 29 /* Ralink RT2880 internal UART */ 58#define PORT_16550A_FSL64 30 /* Freescale 16550 UART with 64 FIFOs */ 59 60/* 61 * ARM specific type numbers. These are not currently guaranteed 62 * to be implemented, and will change in the future. These are 63 * separate so any additions to the old serial.c that occur before 64 * we are merged can be easily merged here. 65 */ 66#define PORT_PXA 31 67#define PORT_AMBA 32 68#define PORT_CLPS711X 33 69#define PORT_SA1100 34 70#define PORT_UART00 35 71#define PORT_OWL 36 72#define PORT_21285 37 73 74/* Sparc type numbers. */ 75#define PORT_SUNZILOG 38 76#define PORT_SUNSAB 39 77 78/* Intel EG20 */ 79#define PORT_PCH_8LINE 44 80#define PORT_PCH_2LINE 45 81 82/* DEC */ 83#define PORT_DZ 46 84#define PORT_ZS 47 85 86/* Parisc type numbers. */ 87#define PORT_MUX 48 88 89/* Atmel AT91 SoC */ 90#define PORT_ATMEL 49 91 92/* Macintosh Zilog type numbers */ 93#define PORT_MAC_ZILOG 50 /* m68k : not yet implemented */ 94#define PORT_PMAC_ZILOG 51 95 96/* SH-SCI */ 97#define PORT_SCI 52 98#define PORT_SCIF 53 99#define PORT_IRDA 54 100 101/* Samsung S3C2410 SoC and derivatives thereof */ 102#define PORT_S3C2410 55 103 104/* SGI IP22 aka Indy / Challenge S / Indigo 2 */ 105#define PORT_IP22ZILOG 56 106 107/* Sharp LH7a40x -- an ARM9 SoC series */ 108#define PORT_LH7A40X 57 109 110/* PPC CPM type number */ 111#define PORT_CPM 58 112 113/* MPC52xx (and MPC512x) type numbers */ 114#define PORT_MPC52xx 59 115 116/* IBM icom */ 117#define PORT_ICOM 60 118 119/* Samsung S3C2440 SoC */ 120#define PORT_S3C2440 61 121 122/* Motorola i.MX SoC */ 123#define PORT_IMX 62 124 125/* Marvell MPSC */ 126#define PORT_MPSC 63 127 128/* TXX9 type number */ 129#define PORT_TXX9 64 130 131/* NEC VR4100 series SIU/DSIU */ 132#define PORT_VR41XX_SIU 65 133#define PORT_VR41XX_DSIU 66 134 135/* Samsung S3C2400 SoC */ 136#define PORT_S3C2400 67 137 138/* M32R SIO */ 139#define PORT_M32R_SIO 68 140 141/*Digi jsm */ 142#define PORT_JSM 69 143 144#define PORT_PNX8XXX 70 145 146/* Hilscher netx */ 147#define PORT_NETX 71 148 149/* SUN4V Hypervisor Console */ 150#define PORT_SUNHV 72 151 152#define PORT_S3C2412 73 153 154/* Xilinx uartlite */ 155#define PORT_UARTLITE 74 156 157/* Blackfin bf5xx */ 158#define PORT_BFIN 75 159 160/* Micrel KS8695 */ 161#define PORT_KS8695 76 162 163/* Broadcom SB1250, etc. SOC */ 164#define PORT_SB1250_DUART 77 165 166/* Freescale ColdFire */ 167#define PORT_MCF 78 168 169/* Blackfin SPORT */ 170#define PORT_BFIN_SPORT 79 171 172/* MN10300 on-chip UART numbers */ 173#define PORT_MN10300 80 174#define PORT_MN10300_CTS 81 175 176#define PORT_SC26XX 82 177 178/* SH-SCI */ 179#define PORT_SCIFA 83 180 181#define PORT_S3C6400 84 182 183/* NWPSERIAL, now removed */ 184#define PORT_NWPSERIAL 85 185 186/* MAX3100 */ 187#define PORT_MAX3100 86 188 189/* Timberdale UART */ 190#define PORT_TIMBUART 87 191 192/* Qualcomm MSM SoCs */ 193#define PORT_MSM 88 194 195/* BCM63xx family SoCs */ 196#define PORT_BCM63XX 89 197 198/* Aeroflex Gaisler GRLIB APBUART */ 199#define PORT_APBUART 90 200 201/* Altera UARTs */ 202#define PORT_ALTERA_JTAGUART 91 203#define PORT_ALTERA_UART 92 204 205/* SH-SCI */ 206#define PORT_SCIFB 93 207 208/* MAX310X */ 209#define PORT_MAX310X 94 210 211/* TI DA8xx/66AK2x */ 212#define PORT_DA830 95 213 214/* TI OMAP-UART */ 215#define PORT_OMAP 96 216 217/* VIA VT8500 SoC */ 218#define PORT_VT8500 97 219 220/* Cadence (Xilinx Zynq) UART */ 221#define PORT_XUARTPS 98 222 223/* Atheros AR933X SoC */ 224#define PORT_AR933X 99 225 226/* Energy Micro efm32 SoC */ 227#define PORT_EFMUART 100 228 229/* ARC (Synopsys) on-chip UART */ 230#define PORT_ARC 101 231 232/* Rocketport EXPRESS/INFINITY */ 233#define PORT_RP2 102 234 235/* Freescale lpuart */ 236#define PORT_LPUART 103 237 238/* SH-SCI */ 239#define PORT_HSCIF 104 240 241/* ST ASC type numbers */ 242#define PORT_ASC 105 243 244/* Tilera TILE-Gx UART */ 245#define PORT_TILEGX 106 246 247/* MEN 16z135 UART */ 248#define PORT_MEN_Z135 107 249 250/* SC16IS74xx */ 251#define PORT_SC16IS7XX 108 252 253/* MESON */ 254#define PORT_MESON 109 255 256/* Conexant Digicolor */ 257#define PORT_DIGICOLOR 110 258 259/* SPRD SERIAL */ 260#define PORT_SPRD 111 261 262/* Cris v10 / v32 SoC */ 263#define PORT_CRIS 112 264 265/* STM32 USART */ 266#define PORT_STM32 113 267 268/* MVEBU UART */ 269#define PORT_MVEBU 114 270 271/* Microchip PIC32 UART */ 272#define PORT_PIC32 115 273 274/* MPS2 UART */ 275#define PORT_MPS2UART 116 276 277/* MediaTek BTIF */ 278#define PORT_MTK_BTIF 117 279 280#endif /* _UAPILINUX_SERIAL_CORE_H */