2 * Copyright (C) 2002, 2004 Hewlett-Packard Co.
3 * Khalid Aziz <khalid_aziz@hp.com>
4 * Bjorn Helgaas <bjorn.helgaas@hp.com>
6 * Definitions for PCDP-defined console devices
8 * v1.0a: http://www.dig64.org/specifications/DIG64_HCDPv10a_01.pdf
9 * v2.0: http://www.dig64.org/specifications/DIG64_HCDPv20_042804.pdf
12 #define PCDP_CONSOLE 0
14 #define PCDP_CONSOLE_OUTPUT 2
15 #define PCDP_CONSOLE_INPUT 3
17 #define PCDP_UART (0 << 3)
18 #define PCDP_VGA (1 << 3)
19 #define PCDP_USB (2 << 3)
21 /* pcdp_uart.type and pcdp_device.type */
22 #define PCDP_CONSOLE_UART (PCDP_UART | PCDP_CONSOLE)
23 #define PCDP_DEBUG_UART (PCDP_UART | PCDP_DEBUG)
24 #define PCDP_CONSOLE_VGA (PCDP_VGA | PCDP_CONSOLE_OUTPUT)
25 #define PCDP_CONSOLE_USB (PCDP_USB | PCDP_CONSOLE_INPUT)
28 #define PCDP_UART_EDGE_SENSITIVE (1 << 0)
29 #define PCDP_UART_ACTIVE_LOW (1 << 1)
30 #define PCDP_UART_PRIMARY_CONSOLE (1 << 2)
31 #define PCDP_UART_IRQ (1 << 6) /* in pci_func for rev < 3 */
32 #define PCDP_UART_PCI (1 << 7) /* in pci_func for rev < 3 */
44 struct acpi_generic_address addr;
54 u8 count; /* address space descriptors */
57 /* pcdp_device.flags */
58 #define PCDP_PRIMARY_CONSOLE 1
70 u8 rev; /* PCDP v2.0 is rev 3 */
78 struct pcdp_uart uart[0]; /* actual size is num_uarts */
79 /* remainder of table is pcdp_device structures */