2 * linux/include/linux/acpi_serial.h
4 * Copyright (C) 2000 Hewlett-Packard Co.
5 * Copyright (C) 2000 Khalid Aziz <khalid_aziz@hp.com>
7 * Definitions for ACPI defined serial ports (headless console and
12 #include <linux/serial.h>
14 extern void setup_serial_acpi(void *);
16 #define ACPI_SIG_LEN 4
18 /* ACPI table signatures */
19 #define ACPI_SPCRT_SIGNATURE "SPCR"
20 #define ACPI_DBGPT_SIGNATURE "DBGP"
22 /* Interface type as defined in ACPI serial port tables */
23 #define ACPI_SERIAL_INTFC_16550 0
24 #define ACPI_SERIAL_INTFC_16450 1
26 /* Interrupt types for ACPI serial port tables */
27 #define ACPI_SERIAL_INT_PCAT 0x01
28 #define ACPI_SERIAL_INT_APIC 0x02
29 #define ACPI_SERIAL_INT_SAPIC 0x04
31 /* Baud rates as defined in ACPI serial port tables */
32 #define ACPI_SERIAL_BAUD_9600 3
33 #define ACPI_SERIAL_BAUD_19200 4
34 #define ACPI_SERIAL_BAUD_57600 6
35 #define ACPI_SERIAL_BAUD_115200 7
37 /* Parity as defined in ACPI serial port tables */
38 #define ACPI_SERIAL_PARITY_NONE 0
40 /* Flow control methods as defined in ACPI serial port tables */
41 #define ACPI_SERIAL_FLOW_DCD 0x01
42 #define ACPI_SERIAL_FLOW_RTS 0x02
43 #define ACPI_SERIAL_FLOW_XON 0x04
45 /* Terminal types as defined in ACPI serial port tables */
46 #define ACPI_SERIAL_TERM_VT100 0
47 #define ACPI_SERIAL_TERM_VT100X 1
49 /* PCI Flags as defined by SPCR table */
50 #define ACPI_SERIAL_PCIFLAG_PNP 0x00000001
52 /* Space ID as defined in base address structure in ACPI serial port tables */
53 #define ACPI_SERIAL_MEM_SPACE 0
54 #define ACPI_SERIAL_IO_SPACE 1
55 #define ACPI_SERIAL_PCICONF_SPACE 2
58 * Generic Register Address Structure - as defined by Microsoft
59 * in http://www.microsoft.com/hwdev/onnow/download/LFreeACPI.doc
71 /* Space ID for generic register address structure */
72 #define REGADDR_SPACE_SYSMEM 0
73 #define REGADDR_SPACE_SYSIO 1
74 #define REGADDR_SPACE_PCICONFIG 2
76 /* Serial Port Console Redirection and Debug Port Table formats */
89 gen_regaddr base_addr;