2017-11-01 15:09:13 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
|
2012-10-13 10:46:48 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2000 Deep Blue Solutions Ltd.
|
|
|
|
|
*/
|
|
|
|
|
#ifndef _UAPILINUX_SERIAL_CORE_H
|
|
|
|
|
#define _UAPILINUX_SERIAL_CORE_H
|
|
|
|
|
|
|
|
|
|
#include <linux/serial.h>
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* The type definitions. These are from Ted Ts'o's serial.h
|
2023-08-21 11:38:57 +03:00
|
|
|
* By historical reasons the values from 0 to 13 are defined
|
|
|
|
|
* in the include/uapi/linux/serial.h, do not define them here.
|
2023-09-22 08:36:42 +02:00
|
|
|
* Values 0 to 19 are used by setserial from busybox and must never
|
|
|
|
|
* be modified.
|
2012-10-13 10:46:48 +01:00
|
|
|
*/
|
|
|
|
|
#define PORT_NS16550A 14
|
|
|
|
|
#define PORT_XSCALE 15
|
|
|
|
|
#define PORT_RM9000 16 /* PMC-Sierra RM9xxx internal UART */
|
|
|
|
|
#define PORT_OCTEON 17 /* Cavium OCTEON internal UART */
|
|
|
|
|
#define PORT_AR7 18 /* Texas Instruments AR7 internal UART */
|
|
|
|
|
#define PORT_U6_16550A 19 /* ST-Ericsson U6xxx internal UART */
|
|
|
|
|
#define PORT_TEGRA 20 /* NVIDIA Tegra internal UART */
|
|
|
|
|
#define PORT_XR17D15X 21 /* Exar XR17D15x UART */
|
|
|
|
|
#define PORT_LPC3220 22 /* NXP LPC32xx SoC "Standard" UART */
|
|
|
|
|
#define PORT_8250_CIR 23 /* CIR infrared port, has its own driver */
|
2012-11-19 09:12:04 -06:00
|
|
|
#define PORT_XR17V35X 24 /* Exar XR17V35x UARTs */
|
2013-01-29 17:54:44 -08:00
|
|
|
#define PORT_BRCM_TRUMANAGE 25
|
2013-03-07 10:28:37 +08:00
|
|
|
#define PORT_ALTR_16550_F32 26 /* Altera 16550 UART with 32 FIFOs */
|
|
|
|
|
#define PORT_ALTR_16550_F64 27 /* Altera 16550 UART with 64 FIFOs */
|
|
|
|
|
#define PORT_ALTR_16550_F128 28 /* Altera 16550 UART with 128 FIFOs */
|
2014-10-16 21:48:21 +02:00
|
|
|
#define PORT_RT2880 29 /* Ralink RT2880 internal UART */
|
2015-01-05 21:14:42 +05:30
|
|
|
#define PORT_16550A_FSL64 30 /* Freescale 16550 UART with 64 FIFOs */
|
2012-10-13 10:46:48 +01:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* ARM specific type numbers. These are not currently guaranteed
|
|
|
|
|
* to be implemented, and will change in the future. These are
|
|
|
|
|
* separate so any additions to the old serial.c that occur before
|
|
|
|
|
* we are merged can be easily merged here.
|
|
|
|
|
*/
|
|
|
|
|
#define PORT_PXA 31
|
|
|
|
|
#define PORT_AMBA 32
|
|
|
|
|
#define PORT_CLPS711X 33
|
|
|
|
|
#define PORT_SA1100 34
|
|
|
|
|
#define PORT_UART00 35
|
2017-07-09 22:29:42 +02:00
|
|
|
#define PORT_OWL 36
|
2012-10-13 10:46:48 +01:00
|
|
|
#define PORT_21285 37
|
|
|
|
|
|
|
|
|
|
/* Sparc type numbers. */
|
|
|
|
|
#define PORT_SUNZILOG 38
|
|
|
|
|
#define PORT_SUNSAB 39
|
|
|
|
|
|
2018-03-05 22:17:38 +10:30
|
|
|
/* Nuvoton UART */
|
|
|
|
|
#define PORT_NPCM 40
|
|
|
|
|
|
2019-01-23 11:28:19 +01:00
|
|
|
/* NVIDIA Tegra Combined UART */
|
|
|
|
|
#define PORT_TEGRA_TCU 41
|
|
|
|
|
|
2022-02-10 16:42:03 -08:00
|
|
|
/* ASPEED AST2x00 virtual UART */
|
|
|
|
|
#define PORT_ASPEED_VUART 42
|
|
|
|
|
|
2017-08-22 16:58:20 +03:00
|
|
|
/* Intel EG20 */
|
|
|
|
|
#define PORT_PCH_8LINE 44
|
|
|
|
|
#define PORT_PCH_2LINE 45
|
|
|
|
|
|
2012-10-13 10:46:48 +01:00
|
|
|
/* DEC */
|
|
|
|
|
#define PORT_DZ 46
|
|
|
|
|
#define PORT_ZS 47
|
|
|
|
|
|
|
|
|
|
/* Parisc type numbers. */
|
|
|
|
|
#define PORT_MUX 48
|
|
|
|
|
|
2017-06-07 18:19:31 +03:00
|
|
|
/* Atmel AT91 SoC */
|
2012-10-13 10:46:48 +01:00
|
|
|
#define PORT_ATMEL 49
|
|
|
|
|
|
|
|
|
|
/* Macintosh Zilog type numbers */
|
|
|
|
|
#define PORT_MAC_ZILOG 50 /* m68k : not yet implemented */
|
|
|
|
|
#define PORT_PMAC_ZILOG 51
|
|
|
|
|
|
|
|
|
|
/* SH-SCI */
|
|
|
|
|
#define PORT_SCI 52
|
|
|
|
|
#define PORT_SCIF 53
|
|
|
|
|
#define PORT_IRDA 54
|
|
|
|
|
|
|
|
|
|
/* SGI IP22 aka Indy / Challenge S / Indigo 2 */
|
|
|
|
|
#define PORT_IP22ZILOG 56
|
|
|
|
|
|
|
|
|
|
/* PPC CPM type number */
|
|
|
|
|
#define PORT_CPM 58
|
|
|
|
|
|
|
|
|
|
/* MPC52xx (and MPC512x) type numbers */
|
|
|
|
|
#define PORT_MPC52xx 59
|
|
|
|
|
|
|
|
|
|
/* IBM icom */
|
|
|
|
|
#define PORT_ICOM 60
|
|
|
|
|
|
|
|
|
|
/* Motorola i.MX SoC */
|
|
|
|
|
#define PORT_IMX 62
|
|
|
|
|
|
|
|
|
|
/* TXX9 type number */
|
|
|
|
|
#define PORT_TXX9 64
|
|
|
|
|
|
|
|
|
|
/*Digi jsm */
|
|
|
|
|
#define PORT_JSM 69
|
|
|
|
|
|
|
|
|
|
/* SUN4V Hypervisor Console */
|
|
|
|
|
#define PORT_SUNHV 72
|
|
|
|
|
|
|
|
|
|
/* Xilinx uartlite */
|
|
|
|
|
#define PORT_UARTLITE 74
|
|
|
|
|
|
2023-08-21 11:52:51 -07:00
|
|
|
/* Broadcom BCM7271 UART */
|
|
|
|
|
#define PORT_BCM7271 76
|
|
|
|
|
|
2012-10-13 10:46:48 +01:00
|
|
|
/* Broadcom SB1250, etc. SOC */
|
|
|
|
|
#define PORT_SB1250_DUART 77
|
|
|
|
|
|
|
|
|
|
/* Freescale ColdFire */
|
|
|
|
|
#define PORT_MCF 78
|
|
|
|
|
|
|
|
|
|
#define PORT_SC26XX 82
|
|
|
|
|
|
|
|
|
|
/* SH-SCI */
|
|
|
|
|
#define PORT_SCIFA 83
|
|
|
|
|
|
|
|
|
|
#define PORT_S3C6400 84
|
|
|
|
|
|
|
|
|
|
/* MAX3100 */
|
|
|
|
|
#define PORT_MAX3100 86
|
|
|
|
|
|
|
|
|
|
/* Timberdale UART */
|
|
|
|
|
#define PORT_TIMBUART 87
|
|
|
|
|
|
|
|
|
|
/* Qualcomm MSM SoCs */
|
|
|
|
|
#define PORT_MSM 88
|
|
|
|
|
|
|
|
|
|
/* BCM63xx family SoCs */
|
|
|
|
|
#define PORT_BCM63XX 89
|
|
|
|
|
|
|
|
|
|
/* Aeroflex Gaisler GRLIB APBUART */
|
|
|
|
|
#define PORT_APBUART 90
|
|
|
|
|
|
|
|
|
|
/* Altera UARTs */
|
|
|
|
|
#define PORT_ALTERA_JTAGUART 91
|
|
|
|
|
#define PORT_ALTERA_UART 92
|
|
|
|
|
|
|
|
|
|
/* SH-SCI */
|
|
|
|
|
#define PORT_SCIFB 93
|
|
|
|
|
|
|
|
|
|
/* MAX310X */
|
|
|
|
|
#define PORT_MAX310X 94
|
|
|
|
|
|
2017-08-22 16:58:22 +03:00
|
|
|
/* TI DA8xx/66AK2x */
|
|
|
|
|
#define PORT_DA830 95
|
|
|
|
|
|
2012-10-13 10:46:48 +01:00
|
|
|
/* TI OMAP-UART */
|
|
|
|
|
#define PORT_OMAP 96
|
|
|
|
|
|
|
|
|
|
/* VIA VT8500 SoC */
|
|
|
|
|
#define PORT_VT8500 97
|
|
|
|
|
|
2014-04-04 17:23:43 -07:00
|
|
|
/* Cadence (Xilinx Zynq) UART */
|
2012-10-13 10:46:48 +01:00
|
|
|
#define PORT_XUARTPS 98
|
|
|
|
|
|
|
|
|
|
/* Atheros AR933X SoC */
|
|
|
|
|
#define PORT_AR933X 99
|
|
|
|
|
|
2023-02-07 22:18:12 +05:30
|
|
|
/* MCHP 16550A UART with 256 byte FIFOs */
|
|
|
|
|
#define PORT_MCHP16550A 100
|
|
|
|
|
|
2012-10-27 12:47:12 +05:30
|
|
|
/* ARC (Synopsys) on-chip UART */
|
|
|
|
|
#define PORT_ARC 101
|
2012-10-13 10:46:48 +01:00
|
|
|
|
2013-01-16 20:28:40 -08:00
|
|
|
/* Rocketport EXPRESS/INFINITY */
|
|
|
|
|
#define PORT_RP2 102
|
|
|
|
|
|
2013-06-07 09:20:40 +08:00
|
|
|
/* Freescale lpuart */
|
|
|
|
|
#define PORT_LPUART 103
|
|
|
|
|
|
2013-05-31 17:57:01 +02:00
|
|
|
/* SH-SCI */
|
2013-07-02 14:42:51 -07:00
|
|
|
#define PORT_HSCIF 104
|
2013-05-31 17:57:01 +02:00
|
|
|
|
2013-07-15 12:39:23 +01:00
|
|
|
/* ST ASC type numbers */
|
|
|
|
|
#define PORT_ASC 105
|
|
|
|
|
|
2014-04-17 15:47:58 +02:00
|
|
|
/* MEN 16z135 UART */
|
|
|
|
|
#define PORT_MEN_Z135 107
|
|
|
|
|
|
2023-08-21 11:38:57 +03:00
|
|
|
/* SC16IS7xx */
|
2014-04-24 20:56:06 -04:00
|
|
|
#define PORT_SC16IS7XX 108
|
|
|
|
|
|
2014-08-17 12:49:49 +02:00
|
|
|
/* MESON */
|
|
|
|
|
#define PORT_MESON 109
|
|
|
|
|
|
2014-12-18 21:45:24 +02:00
|
|
|
/* Conexant Digicolor */
|
|
|
|
|
#define PORT_DIGICOLOR 110
|
|
|
|
|
|
2015-01-28 19:08:44 +08:00
|
|
|
/* SPRD SERIAL */
|
|
|
|
|
#define PORT_SPRD 111
|
|
|
|
|
|
2015-06-10 21:19:36 +02:00
|
|
|
/* STM32 USART */
|
|
|
|
|
#define PORT_STM32 113
|
|
|
|
|
|
2016-02-16 19:14:53 +01:00
|
|
|
/* MVEBU UART */
|
|
|
|
|
#define PORT_MVEBU 114
|
|
|
|
|
|
2016-01-13 18:15:43 -07:00
|
|
|
/* Microchip PIC32 UART */
|
2016-05-19 10:02:26 -07:00
|
|
|
#define PORT_PIC32 115
|
2016-01-13 18:15:43 -07:00
|
|
|
|
2016-04-25 09:47:47 +01:00
|
|
|
/* MPS2 UART */
|
2016-05-20 20:57:27 -07:00
|
|
|
#define PORT_MPS2UART 116
|
2016-04-25 09:47:47 +01:00
|
|
|
|
2017-08-21 01:17:56 +08:00
|
|
|
/* MediaTek BTIF */
|
|
|
|
|
#define PORT_MTK_BTIF 117
|
|
|
|
|
|
2018-12-18 20:32:37 +05:30
|
|
|
/* RDA UART */
|
|
|
|
|
#define PORT_RDA 118
|
|
|
|
|
|
2019-04-15 20:31:40 +09:00
|
|
|
/* Socionext Milbeaut UART */
|
|
|
|
|
#define PORT_MLB_USIO 119
|
|
|
|
|
|
2019-04-12 19:01:13 -07:00
|
|
|
/* SiFive UART */
|
|
|
|
|
#define PORT_SIFIVE_V0 120
|
|
|
|
|
|
2019-08-10 03:01:29 +08:00
|
|
|
/* Sunix UART */
|
|
|
|
|
#define PORT_SUNIX 121
|
|
|
|
|
|
2019-10-16 15:48:25 +03:00
|
|
|
/* Freescale LINFlexD UART */
|
2019-10-04 13:51:13 +00:00
|
|
|
#define PORT_LINFLEXUART 122
|
2019-08-09 11:29:16 +00:00
|
|
|
|
2022-02-22 17:36:03 +08:00
|
|
|
/* Sunplus UART */
|
|
|
|
|
#define PORT_SUNPLUS 123
|
|
|
|
|
|
2023-10-07 17:18:04 -07:00
|
|
|
/* Generic type identifier for ports which type is not important to userspace. */
|
|
|
|
|
#define PORT_GENERIC (-1)
|
|
|
|
|
|
2012-10-13 10:46:48 +01:00
|
|
|
#endif /* _UAPILINUX_SERIAL_CORE_H */
|