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