2 * Definitions for PCDP-defined console devices
4 * v1.0a: http://www.dig64.org/specifications/DIG64_HCDPv10a_01.pdf
5 * v2.0: http://www.dig64.org/specifications/DIG64_HCDPv20_042804.pdf
7 * (c) Copyright 2002, 2004 Hewlett-Packard Development Company, L.P.
8 * Khalid Aziz <khalid.aziz@hp.com>
9 * Bjorn Helgaas <bjorn.helgaas@hp.com>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
16 #define PCDP_CONSOLE 0
18 #define PCDP_CONSOLE_OUTPUT 2
19 #define PCDP_CONSOLE_INPUT 3
21 #define PCDP_UART (0 << 3)
22 #define PCDP_VGA (1 << 3)
23 #define PCDP_USB (2 << 3)
25 /* pcdp_uart.type and pcdp_device.type */
26 #define PCDP_CONSOLE_UART (PCDP_UART | PCDP_CONSOLE)
27 #define PCDP_DEBUG_UART (PCDP_UART | PCDP_DEBUG)
28 #define PCDP_CONSOLE_VGA (PCDP_VGA | PCDP_CONSOLE_OUTPUT)
29 #define PCDP_CONSOLE_USB (PCDP_USB | PCDP_CONSOLE_INPUT)
32 #define PCDP_UART_EDGE_SENSITIVE (1 << 0)
33 #define PCDP_UART_ACTIVE_LOW (1 << 1)
34 #define PCDP_UART_PRIMARY_CONSOLE (1 << 2)
35 #define PCDP_UART_IRQ (1 << 6) /* in pci_func for rev < 3 */
36 #define PCDP_UART_PCI (1 << 7) /* in pci_func for rev < 3 */
48 struct acpi_generic_address addr
;
58 u8 count
; /* address space descriptors */
61 /* pcdp_device.flags */
62 #define PCDP_PRIMARY_CONSOLE 1
74 u8 rev
; /* PCDP v2.0 is rev 3 */
82 struct pcdp_uart uart
[0]; /* actual size is num_uarts */
83 /* remainder of table is pcdp_device structures */