2 * linux/include/linux/hcdp_serial.h
4 * Copyright (C) 2002 Hewlett-Packard Co.
5 * Copyright (C) 2002 Khalid Aziz <khalid_aziz@hp.com>
7 * Definitions for HCDP defined serial ports (Serial console and
11 #ifndef _LINUX_HCDP_SERIAL_H
12 #define _LINUX_HCDP_SERIAL_H
14 /* ACPI table signatures */
15 #define HCDP_SIG_LEN 4
16 #define HCDP_SIGNATURE "HCDP"
18 /* Space ID as defined in ACPI generic address structure */
19 #define ACPI_MEM_SPACE 0
20 #define ACPI_IO_SPACE 1
21 #define ACPI_PCICONF_SPACE 2
24 * Maximum number of HCDP devices we want to read in
26 #define MAX_HCDP_DEVICES 6
29 * Default base baud rate if clock rate is 0 in HCDP table.
31 #define DEFAULT_BAUD_BASE 115200
34 * ACPI Generic Address Structure
45 /* HCDP Device descriptor entry types */
46 #define HCDP_DEV_CONSOLE 0
47 #define HCDP_DEV_DEBUG 1
49 /* HCDP Device descriptor type */
60 acpi_gen_addr base_addr;
69 /* HCDP Table format */
81 hcdp_dev_t hcdp_dev[MAX_HCDP_DEVICES];
84 #endif /* _LINUX_HCDP_SERIAL_H */