acpi_table.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Helpers for ACPI table generation
  4. *
  5. * Based on acpi.c from coreboot
  6. *
  7. * Copyright 2019 Google LLC
  8. *
  9. * Copyright (C) 2015, Saket Sinha <saket.sinha89@gmail.com>
  10. * Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
  11. */
  12. #ifndef __ACPI_TABLE_H__
  13. #define __ACPI_TABLE_H__
  14. #define RSDP_SIG "RSD PTR " /* RSDP pointer signature */
  15. #define OEM_ID "U-BOOT" /* U-Boot */
  16. #define OEM_TABLE_ID "U-BOOTBL" /* U-Boot Table */
  17. #define ASLC_ID "INTL" /* Intel ASL Compiler */
  18. #define ACPI_RSDP_REV_ACPI_1_0 0
  19. #define ACPI_RSDP_REV_ACPI_2_0 2
  20. #if !defined(__ACPI__)
  21. struct acpi_ctx;
  22. /*
  23. * RSDP (Root System Description Pointer)
  24. * Note: ACPI 1.0 didn't have length, xsdt_address, and ext_checksum
  25. */
  26. struct acpi_rsdp {
  27. char signature[8]; /* RSDP signature */
  28. u8 checksum; /* Checksum of the first 20 bytes */
  29. char oem_id[6]; /* OEM ID */
  30. u8 revision; /* 0 for ACPI 1.0, others 2 */
  31. u32 rsdt_address; /* Physical address of RSDT (32 bits) */
  32. u32 length; /* Total RSDP length (incl. extended part) */
  33. u64 xsdt_address; /* Physical address of XSDT (64 bits) */
  34. u8 ext_checksum; /* Checksum of the whole table */
  35. u8 reserved[3];
  36. };
  37. /* Generic ACPI header, provided by (almost) all tables */
  38. struct __packed acpi_table_header {
  39. char signature[4]; /* ACPI signature (4 ASCII characters) */
  40. u32 length; /* Table length in bytes (incl. header) */
  41. u8 revision; /* Table version (not ACPI version!) */
  42. volatile u8 checksum; /* To make sum of entire table == 0 */
  43. char oem_id[6]; /* OEM identification */
  44. char oem_table_id[8]; /* OEM table identification */
  45. u32 oem_revision; /* OEM revision number */
  46. char aslc_id[4]; /* ASL compiler vendor ID */
  47. u32 aslc_revision; /* ASL compiler revision number */
  48. };
  49. /* A maximum number of 32 ACPI tables ought to be enough for now */
  50. #define MAX_ACPI_TABLES 32
  51. /* RSDT (Root System Description Table) */
  52. struct acpi_rsdt {
  53. struct acpi_table_header header;
  54. u32 entry[MAX_ACPI_TABLES];
  55. };
  56. /* XSDT (Extended System Description Table) */
  57. struct acpi_xsdt {
  58. struct acpi_table_header header;
  59. u64 entry[MAX_ACPI_TABLES];
  60. };
  61. /* FADT Preferred Power Management Profile */
  62. enum acpi_pm_profile {
  63. ACPI_PM_UNSPECIFIED = 0,
  64. ACPI_PM_DESKTOP,
  65. ACPI_PM_MOBILE,
  66. ACPI_PM_WORKSTATION,
  67. ACPI_PM_ENTERPRISE_SERVER,
  68. ACPI_PM_SOHO_SERVER,
  69. ACPI_PM_APPLIANCE_PC,
  70. ACPI_PM_PERFORMANCE_SERVER,
  71. ACPI_PM_TABLET
  72. };
  73. /* FADT flags for p_lvl2_lat and p_lvl3_lat */
  74. #define ACPI_FADT_C2_NOT_SUPPORTED 101
  75. #define ACPI_FADT_C3_NOT_SUPPORTED 1001
  76. /* FADT Boot Architecture Flags */
  77. #define ACPI_FADT_LEGACY_FREE 0x00
  78. #define ACPI_FADT_LEGACY_DEVICES BIT(0)
  79. #define ACPI_FADT_8042 BIT(1)
  80. #define ACPI_FADT_VGA_NOT_PRESENT BIT(2)
  81. #define ACPI_FADT_MSI_NOT_SUPPORTED BIT(3)
  82. #define ACPI_FADT_NO_PCIE_ASPM_CONTROL BIT(4)
  83. /* FADT Feature Flags */
  84. #define ACPI_FADT_WBINVD BIT(0)
  85. #define ACPI_FADT_WBINVD_FLUSH BIT(1)
  86. #define ACPI_FADT_C1_SUPPORTED BIT(2)
  87. #define ACPI_FADT_C2_MP_SUPPORTED BIT(3)
  88. #define ACPI_FADT_POWER_BUTTON BIT(4)
  89. #define ACPI_FADT_SLEEP_BUTTON BIT(5)
  90. #define ACPI_FADT_FIXED_RTC BIT(6)
  91. #define ACPI_FADT_S4_RTC_WAKE BIT(7)
  92. #define ACPI_FADT_32BIT_TIMER BIT(8)
  93. #define ACPI_FADT_DOCKING_SUPPORTED BIT(9)
  94. #define ACPI_FADT_RESET_REGISTER BIT(10)
  95. #define ACPI_FADT_SEALED_CASE BIT(11)
  96. #define ACPI_FADT_HEADLESS BIT(12)
  97. #define ACPI_FADT_SLEEP_TYPE BIT(13)
  98. #define ACPI_FADT_PCI_EXPRESS_WAKE BIT(14)
  99. #define ACPI_FADT_PLATFORM_CLOCK BIT(15)
  100. #define ACPI_FADT_S4_RTC_VALID BIT(16)
  101. #define ACPI_FADT_REMOTE_POWER_ON BIT(17)
  102. #define ACPI_FADT_APIC_CLUSTER BIT(18)
  103. #define ACPI_FADT_APIC_PHYSICAL BIT(19)
  104. #define ACPI_FADT_HW_REDUCED_ACPI BIT(20)
  105. #define ACPI_FADT_LOW_PWR_IDLE_S0 BIT(21)
  106. enum acpi_address_space_type {
  107. ACPI_ADDRESS_SPACE_MEMORY = 0, /* System memory */
  108. ACPI_ADDRESS_SPACE_IO, /* System I/O */
  109. ACPI_ADDRESS_SPACE_PCI, /* PCI config space */
  110. ACPI_ADDRESS_SPACE_EC, /* Embedded controller */
  111. ACPI_ADDRESS_SPACE_SMBUS, /* SMBus */
  112. ACPI_ADDRESS_SPACE_PCC = 0x0a, /* Platform Comm. Channel */
  113. ACPI_ADDRESS_SPACE_FIXED = 0x7f /* Functional fixed hardware */
  114. };
  115. enum acpi_address_space_size {
  116. ACPI_ACCESS_SIZE_UNDEFINED = 0,
  117. ACPI_ACCESS_SIZE_BYTE_ACCESS,
  118. ACPI_ACCESS_SIZE_WORD_ACCESS,
  119. ACPI_ACCESS_SIZE_DWORD_ACCESS,
  120. ACPI_ACCESS_SIZE_QWORD_ACCESS
  121. };
  122. struct acpi_gen_regaddr {
  123. u8 space_id; /* Address space ID */
  124. u8 bit_width; /* Register size in bits */
  125. u8 bit_offset; /* Register bit offset */
  126. u8 access_size; /* Access size */
  127. u32 addrl; /* Register address, low 32 bits */
  128. u32 addrh; /* Register address, high 32 bits */
  129. };
  130. /* FADT (Fixed ACPI Description Table) */
  131. struct __packed acpi_fadt {
  132. struct acpi_table_header header;
  133. u32 firmware_ctrl;
  134. u32 dsdt;
  135. u8 res1;
  136. u8 preferred_pm_profile;
  137. u16 sci_int;
  138. u32 smi_cmd;
  139. u8 acpi_enable;
  140. u8 acpi_disable;
  141. u8 s4bios_req;
  142. u8 pstate_cnt;
  143. u32 pm1a_evt_blk;
  144. u32 pm1b_evt_blk;
  145. u32 pm1a_cnt_blk;
  146. u32 pm1b_cnt_blk;
  147. u32 pm2_cnt_blk;
  148. u32 pm_tmr_blk;
  149. u32 gpe0_blk;
  150. u32 gpe1_blk;
  151. u8 pm1_evt_len;
  152. u8 pm1_cnt_len;
  153. u8 pm2_cnt_len;
  154. u8 pm_tmr_len;
  155. u8 gpe0_blk_len;
  156. u8 gpe1_blk_len;
  157. u8 gpe1_base;
  158. u8 cst_cnt;
  159. u16 p_lvl2_lat;
  160. u16 p_lvl3_lat;
  161. u16 flush_size;
  162. u16 flush_stride;
  163. u8 duty_offset;
  164. u8 duty_width;
  165. u8 day_alrm;
  166. u8 mon_alrm;
  167. u8 century;
  168. u16 iapc_boot_arch;
  169. u8 res2;
  170. u32 flags;
  171. struct acpi_gen_regaddr reset_reg;
  172. u8 reset_value;
  173. u16 arm_boot_arch;
  174. u8 minor_revision;
  175. u32 x_firmware_ctl_l;
  176. u32 x_firmware_ctl_h;
  177. u32 x_dsdt_l;
  178. u32 x_dsdt_h;
  179. struct acpi_gen_regaddr x_pm1a_evt_blk;
  180. struct acpi_gen_regaddr x_pm1b_evt_blk;
  181. struct acpi_gen_regaddr x_pm1a_cnt_blk;
  182. struct acpi_gen_regaddr x_pm1b_cnt_blk;
  183. struct acpi_gen_regaddr x_pm2_cnt_blk;
  184. struct acpi_gen_regaddr x_pm_tmr_blk;
  185. struct acpi_gen_regaddr x_gpe0_blk;
  186. struct acpi_gen_regaddr x_gpe1_blk;
  187. };
  188. /* FADT TABLE Revision values - note these do not match the ACPI revision */
  189. #define ACPI_FADT_REV_ACPI_1_0 1
  190. #define ACPI_FADT_REV_ACPI_2_0 3
  191. #define ACPI_FADT_REV_ACPI_3_0 4
  192. #define ACPI_FADT_REV_ACPI_4_0 4
  193. #define ACPI_FADT_REV_ACPI_5_0 5
  194. #define ACPI_FADT_REV_ACPI_6_0 6
  195. /* MADT TABLE Revision values - note these do not match the ACPI revision */
  196. #define ACPI_MADT_REV_ACPI_3_0 2
  197. #define ACPI_MADT_REV_ACPI_4_0 3
  198. #define ACPI_MADT_REV_ACPI_5_0 3
  199. #define ACPI_MADT_REV_ACPI_6_0 5
  200. #define ACPI_MCFG_REV_ACPI_3_0 1
  201. /* IVRS Revision Field */
  202. #define IVRS_FORMAT_FIXED 0x01 /* Type 10h & 11h only */
  203. #define IVRS_FORMAT_MIXED 0x02 /* Type 10h, 11h, & 40h */
  204. /* FACS flags */
  205. #define ACPI_FACS_S4BIOS_F BIT(0)
  206. #define ACPI_FACS_64BIT_WAKE_F BIT(1)
  207. /* FACS (Firmware ACPI Control Structure) */
  208. struct acpi_facs {
  209. char signature[4]; /* "FACS" */
  210. u32 length; /* Length in bytes (>= 64) */
  211. u32 hardware_signature; /* Hardware signature */
  212. u32 firmware_waking_vector; /* Firmware waking vector */
  213. u32 global_lock; /* Global lock */
  214. u32 flags; /* FACS flags */
  215. u32 x_firmware_waking_vector_l; /* X FW waking vector, low */
  216. u32 x_firmware_waking_vector_h; /* X FW waking vector, high */
  217. u8 version; /* Version 2 */
  218. u8 res1[3];
  219. u32 ospm_flags; /* OSPM enabled flags */
  220. u8 res2[24];
  221. };
  222. /* MADT flags */
  223. #define ACPI_MADT_PCAT_COMPAT BIT(0)
  224. /* MADT (Multiple APIC Description Table) */
  225. struct acpi_madt {
  226. struct acpi_table_header header;
  227. u32 lapic_addr; /* Local APIC address */
  228. u32 flags; /* Multiple APIC flags */
  229. };
  230. /* MADT: APIC Structure Type*/
  231. enum acpi_apic_types {
  232. ACPI_APIC_LAPIC = 0, /* Processor local APIC */
  233. ACPI_APIC_IOAPIC, /* I/O APIC */
  234. ACPI_APIC_IRQ_SRC_OVERRIDE, /* Interrupt source override */
  235. ACPI_APIC_NMI_SRC, /* NMI source */
  236. ACPI_APIC_LAPIC_NMI, /* Local APIC NMI */
  237. ACPI_APIC_LAPIC_ADDR_OVERRIDE, /* Local APIC address override */
  238. ACPI_APIC_IOSAPIC, /* I/O SAPIC */
  239. ACPI_APIC_LSAPIC, /* Local SAPIC */
  240. ACPI_APIC_PLATFORM_IRQ_SRC, /* Platform interrupt sources */
  241. ACPI_APIC_LX2APIC, /* Processor local x2APIC */
  242. ACPI_APIC_LX2APIC_NMI, /* Local x2APIC NMI */
  243. };
  244. /* MADT: Processor Local APIC Structure */
  245. #define LOCAL_APIC_FLAG_ENABLED BIT(0)
  246. struct acpi_madt_lapic {
  247. u8 type; /* Type (0) */
  248. u8 length; /* Length in bytes (8) */
  249. u8 processor_id; /* ACPI processor ID */
  250. u8 apic_id; /* Local APIC ID */
  251. u32 flags; /* Local APIC flags */
  252. };
  253. /* MADT: I/O APIC Structure */
  254. struct acpi_madt_ioapic {
  255. u8 type; /* Type (1) */
  256. u8 length; /* Length in bytes (12) */
  257. u8 ioapic_id; /* I/O APIC ID */
  258. u8 reserved;
  259. u32 ioapic_addr; /* I/O APIC address */
  260. u32 gsi_base; /* Global system interrupt base */
  261. };
  262. /* MADT: Interrupt Source Override Structure */
  263. struct __packed acpi_madt_irqoverride {
  264. u8 type; /* Type (2) */
  265. u8 length; /* Length in bytes (10) */
  266. u8 bus; /* ISA (0) */
  267. u8 source; /* Bus-relative int. source (IRQ) */
  268. u32 gsirq; /* Global system interrupt */
  269. u16 flags; /* MPS INTI flags */
  270. };
  271. /* MADT: Local APIC NMI Structure */
  272. struct __packed acpi_madt_lapic_nmi {
  273. u8 type; /* Type (4) */
  274. u8 length; /* Length in bytes (6) */
  275. u8 processor_id; /* ACPI processor ID */
  276. u16 flags; /* MPS INTI flags */
  277. u8 lint; /* Local APIC LINT# */
  278. };
  279. /* MCFG (PCI Express MMIO config space BAR description table) */
  280. struct acpi_mcfg {
  281. struct acpi_table_header header;
  282. u8 reserved[8];
  283. };
  284. struct acpi_mcfg_mmconfig {
  285. u32 base_address_l;
  286. u32 base_address_h;
  287. u16 pci_segment_group_number;
  288. u8 start_bus_number;
  289. u8 end_bus_number;
  290. u8 reserved[4];
  291. };
  292. /* PM1_CNT bit defines */
  293. #define PM1_CNT_SCI_EN BIT(0)
  294. /* ACPI global NVS structure */
  295. struct acpi_global_nvs;
  296. /* CSRT (Core System Resource Table) */
  297. struct acpi_csrt {
  298. struct acpi_table_header header;
  299. };
  300. struct acpi_csrt_group {
  301. u32 length;
  302. u32 vendor_id;
  303. u32 subvendor_id;
  304. u16 device_id;
  305. u16 subdevice_id;
  306. u16 revision;
  307. u16 reserved;
  308. u32 shared_info_length;
  309. };
  310. struct acpi_csrt_shared_info {
  311. u16 major_version;
  312. u16 minor_version;
  313. u32 mmio_base_low;
  314. u32 mmio_base_high;
  315. u32 gsi_interrupt;
  316. u8 interrupt_polarity;
  317. u8 interrupt_mode;
  318. u8 num_channels;
  319. u8 dma_address_width;
  320. u16 base_request_line;
  321. u16 num_handshake_signals;
  322. u32 max_block_size;
  323. };
  324. enum dmar_type {
  325. DMAR_DRHD = 0,
  326. DMAR_RMRR = 1,
  327. DMAR_ATSR = 2,
  328. DMAR_RHSA = 3,
  329. DMAR_ANDD = 4
  330. };
  331. enum {
  332. DRHD_INCLUDE_PCI_ALL = BIT(0)
  333. };
  334. enum dmar_flags {
  335. DMAR_INTR_REMAP = BIT(0),
  336. DMAR_X2APIC_OPT_OUT = BIT(1),
  337. DMAR_CTRL_PLATFORM_OPT_IN_FLAG = BIT(2),
  338. };
  339. struct dmar_entry {
  340. u16 type;
  341. u16 length;
  342. u8 flags;
  343. u8 reserved;
  344. u16 segment;
  345. u64 bar;
  346. };
  347. struct dmar_rmrr_entry {
  348. u16 type;
  349. u16 length;
  350. u16 reserved;
  351. u16 segment;
  352. u64 bar;
  353. u64 limit;
  354. };
  355. /* DMAR (DMA Remapping Reporting Structure) */
  356. struct __packed acpi_dmar {
  357. struct acpi_table_header header;
  358. u8 host_address_width;
  359. u8 flags;
  360. u8 reserved[10];
  361. struct dmar_entry structure[0];
  362. };
  363. /* DBG2 definitions are partially used for SPCR interface_type */
  364. /* Types for port_type field */
  365. #define ACPI_DBG2_SERIAL_PORT 0x8000
  366. #define ACPI_DBG2_1394_PORT 0x8001
  367. #define ACPI_DBG2_USB_PORT 0x8002
  368. #define ACPI_DBG2_NET_PORT 0x8003
  369. /* Subtypes for port_subtype field */
  370. #define ACPI_DBG2_16550_COMPATIBLE 0x0000
  371. #define ACPI_DBG2_16550_SUBSET 0x0001
  372. #define ACPI_DBG2_ARM_PL011 0x0003
  373. #define ACPI_DBG2_ARM_SBSA_32BIT 0x000D
  374. #define ACPI_DBG2_ARM_SBSA_GENERIC 0x000E
  375. #define ACPI_DBG2_ARM_DCC 0x000F
  376. #define ACPI_DBG2_BCM2835 0x0010
  377. #define ACPI_DBG2_1394_STANDARD 0x0000
  378. #define ACPI_DBG2_USB_XHCI 0x0000
  379. #define ACPI_DBG2_USB_EHCI 0x0001
  380. #define ACPI_DBG2_UNKNOWN 0x00FF
  381. /* SPCR (Serial Port Console Redirection table) */
  382. struct __packed acpi_spcr {
  383. struct acpi_table_header header;
  384. u8 interface_type;
  385. u8 reserved[3];
  386. struct acpi_gen_regaddr serial_port;
  387. u8 interrupt_type;
  388. u8 pc_interrupt;
  389. u32 interrupt; /* Global system interrupt */
  390. u8 baud_rate;
  391. u8 parity;
  392. u8 stop_bits;
  393. u8 flow_control;
  394. u8 terminal_type;
  395. u8 reserved1;
  396. u16 pci_device_id; /* Must be 0xffff if not PCI device */
  397. u16 pci_vendor_id; /* Must be 0xffff if not PCI device */
  398. u8 pci_bus;
  399. u8 pci_device;
  400. u8 pci_function;
  401. u32 pci_flags;
  402. u8 pci_segment;
  403. u32 reserved2;
  404. };
  405. /* Tables defined/reserved by ACPI and generated by U-Boot */
  406. enum acpi_tables {
  407. ACPITAB_BERT,
  408. ACPITAB_DBG2,
  409. ACPITAB_DMAR,
  410. ACPITAB_DSDT,
  411. ACPITAB_ECDT,
  412. ACPITAB_FACS,
  413. ACPITAB_FADT,
  414. ACPITAB_HEST,
  415. ACPITAB_HPET,
  416. ACPITAB_IVRS,
  417. ACPITAB_MADT,
  418. ACPITAB_MCFG,
  419. ACPITAB_NHLT,
  420. ACPITAB_RSDP,
  421. ACPITAB_RSDT,
  422. ACPITAB_SLIT,
  423. ACPITAB_SPCR,
  424. ACPITAB_SPMI,
  425. ACPITAB_SRAT,
  426. ACPITAB_SSDT,
  427. ACPITAB_TCPA,
  428. ACPITAB_TPM2,
  429. ACPITAB_VFCT,
  430. ACPITAB_XSDT,
  431. ACPITAB_COUNT,
  432. };
  433. /**
  434. * acpi_get_table_revision() - Get the revision number generated for a table
  435. *
  436. * This keeps the version-number information in one place
  437. *
  438. * @table: ACPI table to check
  439. * @return version number that U-Boot generates
  440. */
  441. int acpi_get_table_revision(enum acpi_tables table);
  442. /**
  443. * acpi_create_dmar() - Create a DMA Remapping Reporting (DMAR) table
  444. *
  445. * @dmar: Place to put the table
  446. * @flags: DMAR flags to use
  447. * @return 0 if OK, -ve on error
  448. */
  449. int acpi_create_dmar(struct acpi_dmar *dmar, enum dmar_flags flags);
  450. /**
  451. * acpi_fill_header() - Set up a new table header
  452. *
  453. * This sets all fields except length, revision, checksum and aslc_revision
  454. *
  455. * @header: ACPI header to update
  456. * @signature: Table signature to use (4 characters)
  457. */
  458. void acpi_fill_header(struct acpi_table_header *header, char *signature);
  459. /**
  460. * acpi_align() - Align the ACPI output pointer to a 16-byte boundary
  461. *
  462. * @ctx: ACPI context
  463. */
  464. void acpi_align(struct acpi_ctx *ctx);
  465. /**
  466. * acpi_align64() - Align the ACPI output pointer to a 64-byte boundary
  467. *
  468. * @ctx: ACPI context
  469. */
  470. void acpi_align64(struct acpi_ctx *ctx);
  471. /**
  472. * acpi_inc() - Increment the ACPI output pointer by a bit
  473. *
  474. * The pointer is NOT aligned afterwards.
  475. *
  476. * @ctx: ACPI context
  477. * @amount: Amount to increment by
  478. */
  479. void acpi_inc(struct acpi_ctx *ctx, uint amount);
  480. /**
  481. * acpi_inc_align() - Increment the ACPI output pointer by a bit and align
  482. *
  483. * The pointer is aligned afterwards to a 16-byte boundary
  484. *
  485. * @ctx: ACPI context
  486. * @amount: Amount to increment by
  487. */
  488. void acpi_inc_align(struct acpi_ctx *ctx, uint amount);
  489. /**
  490. * acpi_add_table() - Add a new table to the RSDP and XSDT
  491. *
  492. * @ctx: ACPI context
  493. * @table: Table to add
  494. * @return 0 if OK, -E2BIG if too many tables
  495. */
  496. int acpi_add_table(struct acpi_ctx *ctx, void *table);
  497. /**
  498. * acpi_setup_base_tables() - Set up context along with RSDP, RSDT and XSDT
  499. *
  500. * Set up the context with the given start position. Some basic tables are
  501. * always needed, so set them up as well.
  502. *
  503. * @ctx: Context to set up
  504. */
  505. void acpi_setup_base_tables(struct acpi_ctx *ctx, void *start);
  506. #endif /* !__ACPI__*/
  507. #include <asm/acpi_table.h>
  508. #endif /* __ACPI_TABLE_H__ */