actbl1.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. /******************************************************************************
  2. *
  3. * Name: actbl1.h - Additional ACPI table definitions
  4. *
  5. *****************************************************************************/
  6. /*
  7. * Copyright (C) 2000 - 2006, R. Byron Moore
  8. * All rights reserved.
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. * 1. Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions, and the following disclaimer,
  15. * without modification.
  16. * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  17. * substantially similar to the "NO WARRANTY" disclaimer below
  18. * ("Disclaimer") and any redistribution must be conditioned upon
  19. * including a substantially similar Disclaimer requirement for further
  20. * binary redistribution.
  21. * 3. Neither the names of the above-listed copyright holders nor the names
  22. * of any contributors may be used to endorse or promote products derived
  23. * from this software without specific prior written permission.
  24. *
  25. * Alternatively, this software may be distributed under the terms of the
  26. * GNU General Public License ("GPL") version 2 as published by the Free
  27. * Software Foundation.
  28. *
  29. * NO WARRANTY
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  31. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  32. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
  33. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  34. * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  35. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  36. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  38. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  39. * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  40. * POSSIBILITY OF SUCH DAMAGES.
  41. */
  42. #ifndef __ACTBL1_H__
  43. #define __ACTBL1_H__
  44. /*******************************************************************************
  45. *
  46. * Additional ACPI Tables
  47. *
  48. * These tables are not consumed directly by the ACPICA subsystem, but are
  49. * included here to support device drivers and the AML disassembler.
  50. *
  51. ******************************************************************************/
  52. /*
  53. * Values for description table header signatures. Useful because they make
  54. * it more difficult to inadvertently type in the wrong signature.
  55. */
  56. #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */
  57. #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */
  58. #define ACPI_SIG_CPEP "CPEP" /* Corrected Platform Error Polling table */
  59. #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */
  60. #define ACPI_SIG_ECDT "ECDT" /* Embedded Controller Boot Resources Table */
  61. #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */
  62. #define ACPI_SIG_MADT "APIC" /* Multiple APIC Description Table */
  63. #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */
  64. #define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */
  65. #define ACPI_SIG_SLIT "SLIT" /* System Locality Distance Information Table */
  66. #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
  67. #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
  68. #define ACPI_SIG_SRAT "SRAT" /* System Resource Affinity Table */
  69. #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
  70. #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
  71. /* Legacy names */
  72. #define APIC_SIG "APIC" /* Multiple APIC Description Table */
  73. #define BOOT_SIG "BOOT" /* Simple Boot Flag Table */
  74. #define SBST_SIG "SBST" /* Smart Battery Specification Table */
  75. /*
  76. * All tables must be byte-packed to match the ACPI specification, since
  77. * the tables are provided by the system BIOS.
  78. */
  79. #pragma pack(1)
  80. /*
  81. * Note about bitfields: The u8 type is used for bitfields in ACPI tables.
  82. * This is the only type that is even remotely portable. Anything else is not
  83. * portable, so do not use any other bitfield types.
  84. */
  85. /*******************************************************************************
  86. *
  87. * ASF - Alert Standard Format table (Signature "ASF!")
  88. *
  89. ******************************************************************************/
  90. struct acpi_table_asf {
  91. ACPI_TABLE_HEADER_DEF};
  92. #define ACPI_ASF_HEADER_DEF \
  93. u8 type; \
  94. u8 reserved; \
  95. u16 length;
  96. struct acpi_asf_header {
  97. ACPI_ASF_HEADER_DEF};
  98. /* Values for Type field */
  99. #define ASF_INFO 0
  100. #define ASF_ALERT 1
  101. #define ASF_CONTROL 2
  102. #define ASF_BOOT 3
  103. #define ASF_ADDRESS 4
  104. #define ASF_RESERVED 5
  105. /*
  106. * ASF subtables
  107. */
  108. /* 0: ASF Information */
  109. struct acpi_asf_info {
  110. ACPI_ASF_HEADER_DEF u8 min_reset_value;
  111. u8 min_poll_interval;
  112. u16 system_id;
  113. u32 mfg_id;
  114. u8 flags;
  115. u8 reserved2[3];
  116. };
  117. /* 1: ASF Alerts */
  118. struct acpi_asf_alert {
  119. ACPI_ASF_HEADER_DEF u8 assert_mask;
  120. u8 deassert_mask;
  121. u8 alerts;
  122. u8 data_length;
  123. u8 array[1];
  124. };
  125. /* 2: ASF Remote Control */
  126. struct acpi_asf_remote {
  127. ACPI_ASF_HEADER_DEF u8 controls;
  128. u8 data_length;
  129. u16 reserved2;
  130. u8 array[1];
  131. };
  132. /* 3: ASF RMCP Boot Options */
  133. struct acpi_asf_rmcp {
  134. ACPI_ASF_HEADER_DEF u8 capabilities[7];
  135. u8 completion_code;
  136. u32 enterprise_id;
  137. u8 command;
  138. u16 parameter;
  139. u16 boot_options;
  140. u16 oem_parameters;
  141. };
  142. /* 4: ASF Address */
  143. struct acpi_asf_address {
  144. ACPI_ASF_HEADER_DEF u8 eprom_address;
  145. u8 devices;
  146. u8 smbus_addresses[1];
  147. };
  148. /*******************************************************************************
  149. *
  150. * BOOT - Simple Boot Flag Table
  151. *
  152. ******************************************************************************/
  153. struct acpi_table_boot {
  154. ACPI_TABLE_HEADER_DEF u8 cmos_index; /* Index in CMOS RAM for the boot register */
  155. u8 reserved[3];
  156. };
  157. /*******************************************************************************
  158. *
  159. * CPEP - Corrected Platform Error Polling table
  160. *
  161. ******************************************************************************/
  162. struct acpi_table_cpep {
  163. ACPI_TABLE_HEADER_DEF u64 reserved;
  164. };
  165. /* Subtable */
  166. struct acpi_cpep_polling {
  167. u8 type;
  168. u8 length;
  169. u8 processor_id; /* Processor ID */
  170. u8 processor_eid; /* Processor EID */
  171. u32 polling_interval; /* Polling interval (msec) */
  172. };
  173. /*******************************************************************************
  174. *
  175. * DBGP - Debug Port table
  176. *
  177. ******************************************************************************/
  178. struct acpi_table_dbgp {
  179. ACPI_TABLE_HEADER_DEF u8 interface_type; /* 0=full 16550, 1=subset of 16550 */
  180. u8 reserved[3];
  181. struct acpi_generic_address debug_port;
  182. };
  183. /*******************************************************************************
  184. *
  185. * ECDT - Embedded Controller Boot Resources Table
  186. *
  187. ******************************************************************************/
  188. struct ec_boot_resources {
  189. ACPI_TABLE_HEADER_DEF struct acpi_generic_address ec_control; /* Address of EC command/status register */
  190. struct acpi_generic_address ec_data; /* Address of EC data register */
  191. u32 uid; /* Unique ID - must be same as the EC _UID method */
  192. u8 gpe_bit; /* The GPE for the EC */
  193. u8 ec_id[1]; /* Full namepath of the EC in the ACPI namespace */
  194. };
  195. /*******************************************************************************
  196. *
  197. * HPET - High Precision Event Timer table
  198. *
  199. ******************************************************************************/
  200. struct acpi_hpet_table {
  201. ACPI_TABLE_HEADER_DEF u32 hardware_id; /* Hardware ID of event timer block */
  202. struct acpi_generic_address base_address; /* Address of event timer block */
  203. u8 hpet_number; /* HPET sequence number */
  204. u16 clock_tick; /* Main counter min tick, periodic mode */
  205. u8 attributes;
  206. };
  207. #if 0 /* HPET flags to be converted to macros */
  208. struct { /* Flags (8 bits) */
  209. u8 page_protect:1; /* 00: No page protection */
  210. u8 page_protect4:1; /* 01: 4_kB page protected */
  211. u8 page_protect64:1; /* 02: 64_kB page protected */
  212. u8:5; /* 03-07: Reserved, must be zero */
  213. } flags;
  214. #endif
  215. /*******************************************************************************
  216. *
  217. * MADT - Multiple APIC Description Table
  218. *
  219. ******************************************************************************/
  220. struct multiple_apic_table {
  221. ACPI_TABLE_HEADER_DEF u32 local_apic_address; /* Physical address of local APIC */
  222. /* Flags (32 bits) */
  223. u8 PCATcompat:1; /* 00: System also has dual 8259s */
  224. u8:7; /* 01-07: Reserved, must be zero */
  225. u8 reserved1[3]; /* 08-31: Reserved, must be zero */
  226. };
  227. /* Values for MADT PCATCompat */
  228. #define DUAL_PIC 0
  229. #define MULTIPLE_APIC 1
  230. /* Common MADT Sub-table header */
  231. #define APIC_HEADER_DEF \
  232. u8 type; \
  233. u8 length;
  234. struct apic_header {
  235. APIC_HEADER_DEF};
  236. /* Values for Type in struct apic_header */
  237. #define APIC_PROCESSOR 0
  238. #define APIC_IO 1
  239. #define APIC_XRUPT_OVERRIDE 2
  240. #define APIC_NMI 3
  241. #define APIC_LOCAL_NMI 4
  242. #define APIC_ADDRESS_OVERRIDE 5
  243. #define APIC_IO_SAPIC 6
  244. #define APIC_LOCAL_SAPIC 7
  245. #define APIC_XRUPT_SOURCE 8
  246. #define APIC_RESERVED 9 /* 9 and greater are reserved */
  247. /* Flag definitions for MADT sub-tables */
  248. #define ACPI_MADT_IFLAGS /* INTI flags (16 bits) */ \
  249. u8 polarity : 2; /* 00-01: Polarity of APIC I/O input signals */\
  250. u8 trigger_mode : 2; /* 02-03: Trigger mode of APIC input signals */\
  251. u8 : 4; /* 04-07: Reserved, must be zero */\
  252. u8 reserved1; /* 08-15: Reserved, must be zero */
  253. #define ACPI_MADT_LFLAGS /* Local Sapic flags (32 bits) */ \
  254. u8 processor_enabled: 1; /* 00: Processor is usable if set */\
  255. u8 : 7; /* 01-07: Reserved, must be zero */\
  256. u8 reserved2[3]; /* 08-31: Reserved, must be zero */
  257. /* Values for MPS INTI flags */
  258. #define POLARITY_CONFORMS 0
  259. #define POLARITY_ACTIVE_HIGH 1
  260. #define POLARITY_RESERVED 2
  261. #define POLARITY_ACTIVE_LOW 3
  262. #define TRIGGER_CONFORMS 0
  263. #define TRIGGER_EDGE 1
  264. #define TRIGGER_RESERVED 2
  265. #define TRIGGER_LEVEL 3
  266. /*
  267. * MADT Sub-tables, correspond to Type in struct apic_header
  268. */
  269. /* 0: processor APIC */
  270. struct madt_processor_apic {
  271. APIC_HEADER_DEF u8 processor_id; /* ACPI processor id */
  272. u8 local_apic_id; /* Processor's local APIC id */
  273. ACPI_MADT_LFLAGS};
  274. /* 1: IO APIC */
  275. struct madt_io_apic {
  276. APIC_HEADER_DEF u8 io_apic_id; /* I/O APIC ID */
  277. u8 reserved; /* Reserved - must be zero */
  278. u32 address; /* APIC physical address */
  279. u32 interrupt; /* Global system interrupt where INTI lines start */
  280. };
  281. /* 2: Interrupt Override */
  282. struct madt_interrupt_override {
  283. APIC_HEADER_DEF u8 bus; /* 0 - ISA */
  284. u8 source; /* Interrupt source (IRQ) */
  285. u32 interrupt; /* Global system interrupt */
  286. ACPI_MADT_IFLAGS};
  287. /* 3: NMI Sources */
  288. struct madt_nmi_source {
  289. APIC_HEADER_DEF ACPI_MADT_IFLAGS u32 interrupt; /* Global system interrupt */
  290. };
  291. /* 4: Local APIC NMI */
  292. struct madt_local_apic_nmi {
  293. APIC_HEADER_DEF u8 processor_id; /* ACPI processor id */
  294. ACPI_MADT_IFLAGS u8 lint; /* LINTn to which NMI is connected */
  295. };
  296. /* 5: Address Override */
  297. struct madt_address_override {
  298. APIC_HEADER_DEF u16 reserved; /* Reserved, must be zero */
  299. u64 address; /* APIC physical address */
  300. };
  301. /* 6: I/O Sapic */
  302. struct madt_io_sapic {
  303. APIC_HEADER_DEF u8 io_sapic_id; /* I/O SAPIC ID */
  304. u8 reserved; /* Reserved, must be zero */
  305. u32 interrupt_base; /* Glocal interrupt for SAPIC start */
  306. u64 address; /* SAPIC physical address */
  307. };
  308. /* 7: Local Sapic */
  309. struct madt_local_sapic {
  310. APIC_HEADER_DEF u8 processor_id; /* ACPI processor id */
  311. u8 local_sapic_id; /* SAPIC ID */
  312. u8 local_sapic_eid; /* SAPIC EID */
  313. u8 reserved[3]; /* Reserved, must be zero */
  314. ACPI_MADT_LFLAGS u32 processor_uID; /* Numeric UID - ACPI 3.0 */
  315. char processor_uIDstring[1]; /* String UID - ACPI 3.0 */
  316. };
  317. /* 8: Platform Interrupt Source */
  318. struct madt_interrupt_source {
  319. APIC_HEADER_DEF ACPI_MADT_IFLAGS u8 interrupt_type; /* 1=PMI, 2=INIT, 3=corrected */
  320. u8 processor_id; /* Processor ID */
  321. u8 processor_eid; /* Processor EID */
  322. u8 io_sapic_vector; /* Vector value for PMI interrupts */
  323. u32 interrupt; /* Global system interrupt */
  324. u32 flags; /* Interrupt Source Flags */
  325. };
  326. #ifdef DUPLICATE_DEFINITION_WITH_LINUX_ACPI_H
  327. /*******************************************************************************
  328. *
  329. * MCFG - PCI Memory Mapped Configuration table and sub-table
  330. *
  331. ******************************************************************************/
  332. struct acpi_table_mcfg {
  333. ACPI_TABLE_HEADER_DEF u8 reserved[8];
  334. };
  335. struct acpi_mcfg_allocation {
  336. u64 base_address; /* Base address, processor-relative */
  337. u16 pci_segment; /* PCI segment group number */
  338. u8 start_bus_number; /* Starting PCI Bus number */
  339. u8 end_bus_number; /* Final PCI Bus number */
  340. u32 reserved;
  341. };
  342. #endif
  343. /*******************************************************************************
  344. *
  345. * SBST - Smart Battery Specification Table
  346. *
  347. ******************************************************************************/
  348. struct smart_battery_table {
  349. ACPI_TABLE_HEADER_DEF u32 warning_level;
  350. u32 low_level;
  351. u32 critical_level;
  352. };
  353. /*******************************************************************************
  354. *
  355. * SLIT - System Locality Distance Information Table
  356. *
  357. ******************************************************************************/
  358. struct system_locality_info {
  359. ACPI_TABLE_HEADER_DEF u64 locality_count;
  360. u8 entry[1][1];
  361. };
  362. /*******************************************************************************
  363. *
  364. * SPCR - Serial Port Console Redirection table
  365. *
  366. ******************************************************************************/
  367. struct acpi_table_spcr {
  368. ACPI_TABLE_HEADER_DEF u8 interface_type; /* 0=full 16550, 1=subset of 16550 */
  369. u8 reserved[3];
  370. struct acpi_generic_address serial_port;
  371. u8 interrupt_type;
  372. u8 pc_interrupt;
  373. u32 interrupt;
  374. u8 baud_rate;
  375. u8 parity;
  376. u8 stop_bits;
  377. u8 flow_control;
  378. u8 terminal_type;
  379. u8 reserved2;
  380. u16 pci_device_id;
  381. u16 pci_vendor_id;
  382. u8 pci_bus;
  383. u8 pci_device;
  384. u8 pci_function;
  385. u32 pci_flags;
  386. u8 pci_segment;
  387. u32 reserved3;
  388. };
  389. /*******************************************************************************
  390. *
  391. * SPMI - Server Platform Management Interface table
  392. *
  393. ******************************************************************************/
  394. struct acpi_table_spmi {
  395. ACPI_TABLE_HEADER_DEF u8 reserved;
  396. u8 interface_type;
  397. u16 spec_revision; /* Version of IPMI */
  398. u8 interrupt_type;
  399. u8 gpe_number; /* GPE assigned */
  400. u8 reserved2;
  401. u8 pci_device_flag;
  402. u32 interrupt;
  403. struct acpi_generic_address ipmi_register;
  404. u8 pci_segment;
  405. u8 pci_bus;
  406. u8 pci_device;
  407. u8 pci_function;
  408. };
  409. /*******************************************************************************
  410. *
  411. * SRAT - System Resource Affinity Table
  412. *
  413. ******************************************************************************/
  414. struct system_resource_affinity {
  415. ACPI_TABLE_HEADER_DEF u32 reserved1; /* Must be value '1' */
  416. u64 reserved2; /* Reserved, must be zero */
  417. };
  418. /* SRAT common sub-table header */
  419. #define SRAT_SUBTABLE_HEADER \
  420. u8 type; \
  421. u8 length;
  422. /* Values for Type above */
  423. #define SRAT_CPU_AFFINITY 0
  424. #define SRAT_MEMORY_AFFINITY 1
  425. #define SRAT_RESERVED 2
  426. /* SRAT sub-tables */
  427. struct static_resource_alloc {
  428. SRAT_SUBTABLE_HEADER u8 proximity_domain_lo;
  429. u8 apic_id;
  430. /* Flags (32 bits) */
  431. u8 enabled:1; /* 00: Use affinity structure */
  432. u8:7; /* 01-07: Reserved, must be zero */
  433. u8 reserved3[3]; /* 08-31: Reserved, must be zero */
  434. u8 local_sapic_eid;
  435. u8 proximity_domain_hi[3];
  436. u32 reserved4; /* Reserved, must be zero */
  437. };
  438. struct memory_affinity {
  439. SRAT_SUBTABLE_HEADER u32 proximity_domain;
  440. u16 reserved3;
  441. u64 base_address;
  442. u64 address_length;
  443. u32 reserved4;
  444. /* Flags (32 bits) */
  445. u8 enabled:1; /* 00: Use affinity structure */
  446. u8 hot_pluggable:1; /* 01: Memory region is hot pluggable */
  447. u8 non_volatile:1; /* 02: Memory is non-volatile */
  448. u8:5; /* 03-07: Reserved, must be zero */
  449. u8 reserved5[3]; /* 08-31: Reserved, must be zero */
  450. u64 reserved6; /* Reserved, must be zero */
  451. };
  452. /*******************************************************************************
  453. *
  454. * TCPA - Trusted Computing Platform Alliance table
  455. *
  456. ******************************************************************************/
  457. struct acpi_table_tcpa {
  458. ACPI_TABLE_HEADER_DEF u16 reserved;
  459. u32 max_log_length; /* Maximum length for the event log area */
  460. u64 log_address; /* Address of the event log area */
  461. };
  462. /*******************************************************************************
  463. *
  464. * WDRT - Watchdog Resource Table
  465. *
  466. ******************************************************************************/
  467. struct acpi_table_wdrt {
  468. ACPI_TABLE_HEADER_DEF u32 header_length; /* Watchdog Header Length */
  469. u8 pci_segment; /* PCI Segment number */
  470. u8 pci_bus; /* PCI Bus number */
  471. u8 pci_device; /* PCI Device number */
  472. u8 pci_function; /* PCI Function number */
  473. u32 timer_period; /* Period of one timer count (msec) */
  474. u32 max_count; /* Maximum counter value supported */
  475. u32 min_count; /* Minimum counter value */
  476. u8 flags;
  477. u8 reserved[3];
  478. u32 entries; /* Number of watchdog entries that follow */
  479. };
  480. #if 0 /* Flags, will be converted to macros */
  481. u8 enabled:1; /* 00: Timer enabled */
  482. u8:6; /* 01-06: Reserved */
  483. u8 sleep_stop:1; /* 07: Timer stopped in sleep state */
  484. #endif
  485. /* Macros used to generate offsets to specific table fields */
  486. #define ACPI_ASF0_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_asf_info,f)
  487. #define ACPI_ASF1_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_asf_alert,f)
  488. #define ACPI_ASF2_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_asf_remote,f)
  489. #define ACPI_ASF3_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_asf_rmcp,f)
  490. #define ACPI_ASF4_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_asf_address,f)
  491. #define ACPI_BOOT_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_table_boot,f)
  492. #define ACPI_CPEP_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_table_cpep,f)
  493. #define ACPI_CPEP0_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_cpep_polling,f)
  494. #define ACPI_DBGP_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_table_dbgp,f)
  495. #define ACPI_ECDT_OFFSET(f) (u8) ACPI_OFFSET (struct ec_boot_resources,f)
  496. #define ACPI_HPET_OFFSET(f) (u8) ACPI_OFFSET (struct hpet_table,f)
  497. #define ACPI_MADT_OFFSET(f) (u8) ACPI_OFFSET (struct multiple_apic_table,f)
  498. #define ACPI_MADT0_OFFSET(f) (u8) ACPI_OFFSET (struct madt_processor_apic,f)
  499. #define ACPI_MADT1_OFFSET(f) (u8) ACPI_OFFSET (struct madt_io_apic,f)
  500. #define ACPI_MADT2_OFFSET(f) (u8) ACPI_OFFSET (struct madt_interrupt_override,f)
  501. #define ACPI_MADT3_OFFSET(f) (u8) ACPI_OFFSET (struct madt_nmi_source,f)
  502. #define ACPI_MADT4_OFFSET(f) (u8) ACPI_OFFSET (struct madt_local_apic_nmi,f)
  503. #define ACPI_MADT5_OFFSET(f) (u8) ACPI_OFFSET (struct madt_address_override,f)
  504. #define ACPI_MADT6_OFFSET(f) (u8) ACPI_OFFSET (struct madt_io_sapic,f)
  505. #define ACPI_MADT7_OFFSET(f) (u8) ACPI_OFFSET (struct madt_local_sapic,f)
  506. #define ACPI_MADT8_OFFSET(f) (u8) ACPI_OFFSET (struct madt_interrupt_source,f)
  507. #define ACPI_MADTH_OFFSET(f) (u8) ACPI_OFFSET (struct apic_header,f)
  508. #define ACPI_MCFG_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_table_mcfg,f)
  509. #define ACPI_MCFG0_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_mcfg_allocation,f)
  510. #define ACPI_SBST_OFFSET(f) (u8) ACPI_OFFSET (struct smart_battery_table,f)
  511. #define ACPI_SLIT_OFFSET(f) (u8) ACPI_OFFSET (struct system_locality_info,f)
  512. #define ACPI_SPCR_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_table_spcr,f)
  513. #define ACPI_SPMI_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_table_spmi,f)
  514. #define ACPI_SRAT_OFFSET(f) (u8) ACPI_OFFSET (struct system_resource_affinity,f)
  515. #define ACPI_SRAT0_OFFSET(f) (u8) ACPI_OFFSET (struct static_resource_alloc,f)
  516. #define ACPI_SRAT1_OFFSET(f) (u8) ACPI_OFFSET (struct memory_affinity,f)
  517. #define ACPI_TCPA_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_table_tcpa,f)
  518. #define ACPI_WDRT_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_table_wdrt,f)
  519. #define ACPI_HPET_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (struct hpet_table,f,o)
  520. #define ACPI_SRAT0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (struct static_resource_alloc,f,o)
  521. #define ACPI_SRAT1_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (struct memory_affinity,f,o)
  522. #define ACPI_MADT_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (struct multiple_apic_table,f,o)
  523. #define ACPI_MADT0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (struct madt_processor_apic,f,o)
  524. #define ACPI_MADT2_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (struct madt_interrupt_override,f,o)
  525. #define ACPI_MADT3_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (struct madt_nmi_source,f,o)
  526. #define ACPI_MADT4_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (struct madt_local_apic_nmi,f,o)
  527. #define ACPI_MADT7_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (struct madt_local_sapic,f,o)
  528. #define ACPI_MADT8_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (struct madt_interrupt_source,f,o)
  529. /* Reset to default packing */
  530. #pragma pack()
  531. #endif /* __ACTBL1_H__ */