acpi-defs.h (9f0369efb0f2a200f18b1aacd2ef493e22da5351) acpi-defs.h (7dd0b070fa09311a0330d0309c8cd9afeb081e79)
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of

--- 76 unchanged lines hidden (view full) ---

85 * NULL if table doesn't exist (in that case field's value
86 * won't be patched by linker and will be kept set to 0)
87 */
88 unsigned *facs_tbl_offset; /* FACS offset in */
89 unsigned *dsdt_tbl_offset;
90 unsigned *xdsdt_tbl_offset;
91} AcpiFadtData;
92
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of

--- 76 unchanged lines hidden (view full) ---

85 * NULL if table doesn't exist (in that case field's value
86 * won't be patched by linker and will be kept set to 0)
87 */
88 unsigned *facs_tbl_offset; /* FACS offset in */
89 unsigned *dsdt_tbl_offset;
90 unsigned *xdsdt_tbl_offset;
91} AcpiFadtData;
92
93typedef struct AcpiGas {
94 uint8_t id; /* Address space ID */
95 uint8_t width; /* Register bit width */
96 uint8_t offset; /* Register bit offset */
97 uint8_t size; /* Access size */
98 uint64_t addr; /* Address */
99} AcpiGas;
100
101/* SPCR (Serial Port Console Redirection table) */
102typedef struct AcpiSpcrData {
103 uint8_t interface_type;
104 uint8_t reserved[3];
105 struct AcpiGas base_addr;
106 uint8_t interrupt_type;
107 uint8_t pc_interrupt;
108 uint32_t interrupt; /* Global system interrupt */
109 uint8_t baud_rate;
110 uint8_t parity;
111 uint8_t stop_bits;
112 uint8_t flow_control;
113 uint8_t terminal_type;
114 uint8_t language;
115 uint8_t reserved1;
116 uint16_t pci_device_id; /* Must be 0xffff if not PCI device */
117 uint16_t pci_vendor_id; /* Must be 0xffff if not PCI device */
118 uint8_t pci_bus;
119 uint8_t pci_device;
120 uint8_t pci_function;
121 uint32_t pci_flags;
122 uint8_t pci_segment;
123 uint32_t reserved2;
124} AcpiSpcrData;
125
93#define ACPI_FADT_ARM_PSCI_COMPLIANT (1 << 0)
94#define ACPI_FADT_ARM_PSCI_USE_HVC (1 << 1)
95
96#endif
126#define ACPI_FADT_ARM_PSCI_COMPLIANT (1 << 0)
127#define ACPI_FADT_ARM_PSCI_USE_HVC (1 << 1)
128
129#endif