aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/pcdp.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/firmware/pcdp.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'drivers/firmware/pcdp.h')
-rw-r--r--drivers/firmware/pcdp.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/drivers/firmware/pcdp.h b/drivers/firmware/pcdp.h
new file mode 100644
index 000000000000..863bb6f768c3
--- /dev/null
+++ b/drivers/firmware/pcdp.h
@@ -0,0 +1,84 @@
1/*
2 * Definitions for PCDP-defined console devices
3 *
4 * v1.0a: http://www.dig64.org/specifications/DIG64_HCDPv10a_01.pdf
5 * v2.0: http://www.dig64.org/specifications/DIG64_HCDPv20_042804.pdf
6 *
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>
10 *
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.
14 */
15
16#define PCDP_CONSOLE 0
17#define PCDP_DEBUG 1
18#define PCDP_CONSOLE_OUTPUT 2
19#define PCDP_CONSOLE_INPUT 3
20
21#define PCDP_UART (0 << 3)
22#define PCDP_VGA (1 << 3)
23#define PCDP_USB (2 << 3)
24
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)
30
31/* pcdp_uart.flags */
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 */
37
38struct pcdp_uart {
39 u8 type;
40 u8 bits;
41 u8 parity;
42 u8 stop_bits;
43 u8 pci_seg;
44 u8 pci_bus;
45 u8 pci_dev;
46 u8 pci_func;
47 u64 baud;
48 struct acpi_generic_address addr;
49 u16 pci_dev_id;
50 u16 pci_vendor_id;
51 u32 gsi;
52 u32 clock_rate;
53 u8 pci_prog_intfc;
54 u8 flags;
55};
56
57struct pcdp_vga {
58 u8 count; /* address space descriptors */
59};
60
61/* pcdp_device.flags */
62#define PCDP_PRIMARY_CONSOLE 1
63
64struct pcdp_device {
65 u8 type;
66 u8 flags;
67 u16 length;
68 u16 efi_index;
69};
70
71struct pcdp {
72 u8 signature[4];
73 u32 length;
74 u8 rev; /* PCDP v2.0 is rev 3 */
75 u8 chksum;
76 u8 oemid[6];
77 u8 oem_tabid[8];
78 u32 oem_rev;
79 u8 creator_id[4];
80 u32 creator_rev;
81 u32 num_uarts;
82 struct pcdp_uart uart[0]; /* actual size is num_uarts */
83 /* remainder of table is pcdp_device structures */
84};