Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
0002 /*
0003  *  linux/drivers/char/serial_core.h
0004  *
0005  *  Copyright (C) 2000 Deep Blue Solutions Ltd.
0006  *
0007  * This program is free software; you can redistribute it and/or modify
0008  * it under the terms of the GNU General Public License as published by
0009  * the Free Software Foundation; either version 2 of the License, or
0010  * (at your option) any later version.
0011  *
0012  * This program is distributed in the hope that it will be useful,
0013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0015  * GNU General Public License for more details.
0016  *
0017  * You should have received a copy of the GNU General Public License
0018  * along with this program; if not, write to the Free Software
0019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
0020  */
0021 #ifndef _UAPILINUX_SERIAL_CORE_H
0022 #define _UAPILINUX_SERIAL_CORE_H
0023 
0024 #include <linux/serial.h>
0025 
0026 /*
0027  * The type definitions.  These are from Ted Ts'o's serial.h
0028  */
0029 #define PORT_NS16550A   14
0030 #define PORT_XSCALE 15
0031 #define PORT_RM9000 16  /* PMC-Sierra RM9xxx internal UART */
0032 #define PORT_OCTEON 17  /* Cavium OCTEON internal UART */
0033 #define PORT_AR7    18  /* Texas Instruments AR7 internal UART */
0034 #define PORT_U6_16550A  19  /* ST-Ericsson U6xxx internal UART */
0035 #define PORT_TEGRA  20  /* NVIDIA Tegra internal UART */
0036 #define PORT_XR17D15X   21  /* Exar XR17D15x UART */
0037 #define PORT_LPC3220    22  /* NXP LPC32xx SoC "Standard" UART */
0038 #define PORT_8250_CIR   23  /* CIR infrared port, has its own driver */
0039 #define PORT_XR17V35X   24  /* Exar XR17V35x UARTs */
0040 #define PORT_BRCM_TRUMANAGE 25
0041 #define PORT_ALTR_16550_F32 26  /* Altera 16550 UART with 32 FIFOs */
0042 #define PORT_ALTR_16550_F64 27  /* Altera 16550 UART with 64 FIFOs */
0043 #define PORT_ALTR_16550_F128 28 /* Altera 16550 UART with 128 FIFOs */
0044 #define PORT_RT2880 29  /* Ralink RT2880 internal UART */
0045 #define PORT_16550A_FSL64 30    /* Freescale 16550 UART with 64 FIFOs */
0046 
0047 /*
0048  * ARM specific type numbers.  These are not currently guaranteed
0049  * to be implemented, and will change in the future.  These are
0050  * separate so any additions to the old serial.c that occur before
0051  * we are merged can be easily merged here.
0052  */
0053 #define PORT_PXA    31
0054 #define PORT_AMBA   32
0055 #define PORT_CLPS711X   33
0056 #define PORT_SA1100 34
0057 #define PORT_UART00 35
0058 #define PORT_OWL    36
0059 #define PORT_21285  37
0060 
0061 /* Sparc type numbers.  */
0062 #define PORT_SUNZILOG   38
0063 #define PORT_SUNSAB 39
0064 
0065 /* Nuvoton UART */
0066 #define PORT_NPCM   40
0067 
0068 /* NVIDIA Tegra Combined UART */
0069 #define PORT_TEGRA_TCU  41
0070 
0071 /* ASPEED AST2x00 virtual UART */
0072 #define PORT_ASPEED_VUART   42
0073 
0074 /* Intel EG20 */
0075 #define PORT_PCH_8LINE  44
0076 #define PORT_PCH_2LINE  45
0077 
0078 /* DEC */
0079 #define PORT_DZ     46
0080 #define PORT_ZS     47
0081 
0082 /* Parisc type numbers. */
0083 #define PORT_MUX    48
0084 
0085 /* Atmel AT91 SoC */
0086 #define PORT_ATMEL  49
0087 
0088 /* Macintosh Zilog type numbers */
0089 #define PORT_MAC_ZILOG  50  /* m68k : not yet implemented */
0090 #define PORT_PMAC_ZILOG 51
0091 
0092 /* SH-SCI */
0093 #define PORT_SCI    52
0094 #define PORT_SCIF   53
0095 #define PORT_IRDA   54
0096 
0097 /* Samsung S3C2410 SoC and derivatives thereof */
0098 #define PORT_S3C2410    55
0099 
0100 /* SGI IP22 aka Indy / Challenge S / Indigo 2 */
0101 #define PORT_IP22ZILOG  56
0102 
0103 /* Sharp LH7a40x -- an ARM9 SoC series */
0104 #define PORT_LH7A40X    57
0105 
0106 /* PPC CPM type number */
0107 #define PORT_CPM        58
0108 
0109 /* MPC52xx (and MPC512x) type numbers */
0110 #define PORT_MPC52xx    59
0111 
0112 /* IBM icom */
0113 #define PORT_ICOM   60
0114 
0115 /* Samsung S3C2440 SoC */
0116 #define PORT_S3C2440    61
0117 
0118 /* Motorola i.MX SoC */
0119 #define PORT_IMX    62
0120 
0121 /* Marvell MPSC (obsolete unused) */
0122 #define PORT_MPSC   63
0123 
0124 /* TXX9 type number */
0125 #define PORT_TXX9   64
0126 
0127 /* Samsung S3C2400 SoC */
0128 #define PORT_S3C2400    67
0129 
0130 /* M32R SIO */
0131 #define PORT_M32R_SIO   68
0132 
0133 /*Digi jsm */
0134 #define PORT_JSM        69
0135 
0136 /* SUN4V Hypervisor Console */
0137 #define PORT_SUNHV  72
0138 
0139 #define PORT_S3C2412    73
0140 
0141 /* Xilinx uartlite */
0142 #define PORT_UARTLITE   74
0143 
0144 /* Blackfin bf5xx */
0145 #define PORT_BFIN   75
0146 
0147 /* Broadcom SB1250, etc. SOC */
0148 #define PORT_SB1250_DUART   77
0149 
0150 /* Freescale ColdFire */
0151 #define PORT_MCF    78
0152 
0153 /* Blackfin SPORT */
0154 #define PORT_BFIN_SPORT     79
0155 
0156 /* MN10300 on-chip UART numbers */
0157 #define PORT_MN10300        80
0158 #define PORT_MN10300_CTS    81
0159 
0160 #define PORT_SC26XX 82
0161 
0162 /* SH-SCI */
0163 #define PORT_SCIFA  83
0164 
0165 #define PORT_S3C6400    84
0166 
0167 /* NWPSERIAL, now removed */
0168 #define PORT_NWPSERIAL  85
0169 
0170 /* MAX3100 */
0171 #define PORT_MAX3100    86
0172 
0173 /* Timberdale UART */
0174 #define PORT_TIMBUART   87
0175 
0176 /* Qualcomm MSM SoCs */
0177 #define PORT_MSM    88
0178 
0179 /* BCM63xx family SoCs */
0180 #define PORT_BCM63XX    89
0181 
0182 /* Aeroflex Gaisler GRLIB APBUART */
0183 #define PORT_APBUART    90
0184 
0185 /* Altera UARTs */
0186 #define PORT_ALTERA_JTAGUART    91
0187 #define PORT_ALTERA_UART    92
0188 
0189 /* SH-SCI */
0190 #define PORT_SCIFB  93
0191 
0192 /* MAX310X */
0193 #define PORT_MAX310X    94
0194 
0195 /* TI DA8xx/66AK2x */
0196 #define PORT_DA830  95
0197 
0198 /* TI OMAP-UART */
0199 #define PORT_OMAP   96
0200 
0201 /* VIA VT8500 SoC */
0202 #define PORT_VT8500 97
0203 
0204 /* Cadence (Xilinx Zynq) UART */
0205 #define PORT_XUARTPS    98
0206 
0207 /* Atheros AR933X SoC */
0208 #define PORT_AR933X 99
0209 
0210 /* ARC (Synopsys) on-chip UART */
0211 #define PORT_ARC       101
0212 
0213 /* Rocketport EXPRESS/INFINITY */
0214 #define PORT_RP2    102
0215 
0216 /* Freescale lpuart */
0217 #define PORT_LPUART 103
0218 
0219 /* SH-SCI */
0220 #define PORT_HSCIF  104
0221 
0222 /* ST ASC type numbers */
0223 #define PORT_ASC       105
0224 
0225 /* Tilera TILE-Gx UART */
0226 #define PORT_TILEGX 106
0227 
0228 /* MEN 16z135 UART */
0229 #define PORT_MEN_Z135   107
0230 
0231 /* SC16IS74xx */
0232 #define PORT_SC16IS7XX   108
0233 
0234 /* MESON */
0235 #define PORT_MESON  109
0236 
0237 /* Conexant Digicolor */
0238 #define PORT_DIGICOLOR  110
0239 
0240 /* SPRD SERIAL  */
0241 #define PORT_SPRD   111
0242 
0243 /* Cris v10 / v32 SoC */
0244 #define PORT_CRIS   112
0245 
0246 /* STM32 USART */
0247 #define PORT_STM32  113
0248 
0249 /* MVEBU UART */
0250 #define PORT_MVEBU  114
0251 
0252 /* Microchip PIC32 UART */
0253 #define PORT_PIC32  115
0254 
0255 /* MPS2 UART */
0256 #define PORT_MPS2UART   116
0257 
0258 /* MediaTek BTIF */
0259 #define PORT_MTK_BTIF   117
0260 
0261 /* RDA UART */
0262 #define PORT_RDA    118
0263 
0264 /* Socionext Milbeaut UART */
0265 #define PORT_MLB_USIO   119
0266 
0267 /* SiFive UART */
0268 #define PORT_SIFIVE_V0  120
0269 
0270 /* Sunix UART */
0271 #define PORT_SUNIX  121
0272 
0273 /* Freescale LINFlexD UART */
0274 #define PORT_LINFLEXUART    122
0275 
0276 /* Sunplus UART */
0277 #define PORT_SUNPLUS    123
0278 
0279 #endif /* _UAPILINUX_SERIAL_CORE_H */