linux/include/uapi/linux/serial_core.h

/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
/*
 *  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
 * By historical reasons the values from 0 to 13 are defined
 * in the include/uapi/linux/serial.h, do not define them here.
 * Values 0 to 19 are used by setserial from busybox and must never
 * be modified.
 */
#define PORT_NS16550A
#define PORT_XSCALE
#define PORT_RM9000
#define PORT_OCTEON
#define PORT_AR7
#define PORT_U6_16550A
#define PORT_TEGRA
#define PORT_XR17D15X
#define PORT_LPC3220
#define PORT_8250_CIR
#define PORT_XR17V35X
#define PORT_BRCM_TRUMANAGE
#define PORT_ALTR_16550_F32
#define PORT_ALTR_16550_F64
#define PORT_ALTR_16550_F128
#define PORT_RT2880
#define PORT_16550A_FSL64

/*
 * 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
#define PORT_AMBA
#define PORT_CLPS711X
#define PORT_SA1100
#define PORT_UART00
#define PORT_OWL
#define PORT_21285

/* Sparc type numbers.  */
#define PORT_SUNZILOG
#define PORT_SUNSAB

/* Nuvoton UART */
#define PORT_NPCM

/* NVIDIA Tegra Combined UART */
#define PORT_TEGRA_TCU

/* ASPEED AST2x00 virtual UART */
#define PORT_ASPEED_VUART

/* Intel EG20 */
#define PORT_PCH_8LINE
#define PORT_PCH_2LINE

/* DEC */
#define PORT_DZ
#define PORT_ZS

/* Parisc type numbers. */
#define PORT_MUX

/* Atmel AT91 SoC */
#define PORT_ATMEL

/* Macintosh Zilog type numbers */
#define PORT_MAC_ZILOG
#define PORT_PMAC_ZILOG

/* SH-SCI */
#define PORT_SCI
#define PORT_SCIF
#define PORT_IRDA

/* SGI IP22 aka Indy / Challenge S / Indigo 2 */
#define PORT_IP22ZILOG

/* PPC CPM type number */
#define PORT_CPM

/* MPC52xx (and MPC512x) type numbers */
#define PORT_MPC52xx

/* IBM icom */
#define PORT_ICOM

/* Motorola i.MX SoC */
#define PORT_IMX

/* TXX9 type number */
#define PORT_TXX9

/*Digi jsm */
#define PORT_JSM

/* SUN4V Hypervisor Console */
#define PORT_SUNHV

/* Xilinx uartlite */
#define PORT_UARTLITE

/* Broadcom BCM7271 UART */
#define PORT_BCM7271

/* Broadcom SB1250, etc. SOC */
#define PORT_SB1250_DUART

/* Freescale ColdFire */
#define PORT_MCF

#define PORT_SC26XX

/* SH-SCI */
#define PORT_SCIFA

#define PORT_S3C6400

/* MAX3100 */
#define PORT_MAX3100

/* Timberdale UART */
#define PORT_TIMBUART

/* Qualcomm MSM SoCs */
#define PORT_MSM

/* BCM63xx family SoCs */
#define PORT_BCM63XX

/* Aeroflex Gaisler GRLIB APBUART */
#define PORT_APBUART

/* Altera UARTs */
#define PORT_ALTERA_JTAGUART
#define PORT_ALTERA_UART

/* SH-SCI */
#define PORT_SCIFB

/* MAX310X */
#define PORT_MAX310X

/* TI DA8xx/66AK2x */
#define PORT_DA830

/* TI OMAP-UART */
#define PORT_OMAP

/* VIA VT8500 SoC */
#define PORT_VT8500

/* Cadence (Xilinx Zynq) UART */
#define PORT_XUARTPS

/* Atheros AR933X SoC */
#define PORT_AR933X

/* MCHP 16550A UART with 256 byte FIFOs */
#define PORT_MCHP16550A

/* ARC (Synopsys) on-chip UART */
#define PORT_ARC

/* Rocketport EXPRESS/INFINITY */
#define PORT_RP2

/* Freescale lpuart */
#define PORT_LPUART

/* SH-SCI */
#define PORT_HSCIF

/* ST ASC type numbers */
#define PORT_ASC

/* MEN 16z135 UART */
#define PORT_MEN_Z135

/* SC16IS7xx */
#define PORT_SC16IS7XX

/* MESON */
#define PORT_MESON

/* Conexant Digicolor */
#define PORT_DIGICOLOR

/* SPRD SERIAL  */
#define PORT_SPRD

/* STM32 USART */
#define PORT_STM32

/* MVEBU UART */
#define PORT_MVEBU

/* Microchip PIC32 UART */
#define PORT_PIC32

/* MPS2 UART */
#define PORT_MPS2UART

/* MediaTek BTIF */
#define PORT_MTK_BTIF

/* RDA UART */
#define PORT_RDA

/* Socionext Milbeaut UART */
#define PORT_MLB_USIO

/* SiFive UART */
#define PORT_SIFIVE_V0

/* Sunix UART */
#define PORT_SUNIX

/* Freescale LINFlexD UART */
#define PORT_LINFLEXUART

/* Sunplus UART */
#define PORT_SUNPLUS

/* Generic type identifier for ports which type is not important to userspace. */
#define PORT_GENERIC

#endif /* _UAPILINUX_SERIAL_CORE_H */