1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef __ACPI_TABLE_H__
14#define __ACPI_TABLE_H__
15
16#include <dm/acpi.h>
17
18#define RSDP_SIG "RSD PTR "
19#define OEM_ID "U-BOOT"
20#define OEM_TABLE_ID "U-BOOTBL"
21#define ASLC_ID "INTL"
22
23
24#define ASL_REVISION 0
25
26#define ACPI_RSDP_REV_ACPI_1_0 0
27#define ACPI_RSDP_REV_ACPI_2_0 2
28
29#if !defined(__ACPI__)
30
31#include <linux/bitops.h>
32
33struct acpi_ctx;
34
35
36
37
38
39struct acpi_rsdp {
40 char signature[8];
41 u8 checksum;
42 char oem_id[6];
43 u8 revision;
44 u32 rsdt_address;
45 u32 length;
46 u64 xsdt_address;
47 u8 ext_checksum;
48 u8 reserved[3];
49};
50
51
52struct __packed acpi_table_header {
53 char signature[ACPI_NAME_LEN];
54 u32 length;
55 u8 revision;
56 volatile u8 checksum;
57 char oem_id[6];
58 char oem_table_id[8];
59 u32 oem_revision;
60 char aslc_id[4];
61 u32 aslc_revision;
62};
63
64struct acpi_gen_regaddr {
65 u8 space_id;
66 u8 bit_width;
67 u8 bit_offset;
68 u8 access_size;
69 u32 addrl;
70 u32 addrh;
71};
72
73
74#define MAX_ACPI_TABLES 32
75
76
77struct acpi_rsdt {
78 struct acpi_table_header header;
79 u32 entry[MAX_ACPI_TABLES];
80};
81
82
83struct acpi_xsdt {
84 struct acpi_table_header header;
85 u64 entry[MAX_ACPI_TABLES];
86};
87
88
89struct __packed acpi_hpet {
90 struct acpi_table_header header;
91 u32 id;
92 struct acpi_gen_regaddr addr;
93 u8 number;
94 u16 min_tick;
95 u8 attributes;
96};
97
98struct __packed acpi_tpm2 {
99 struct acpi_table_header header;
100 u16 platform_class;
101 u8 reserved[2];
102 u64 control_area;
103 u32 start_method;
104 u8 msp[12];
105 u32 laml;
106 u64 lasa;
107};
108
109struct __packed acpi_tcpa {
110 struct acpi_table_header header;
111 u16 platform_class;
112 u32 laml;
113 u64 lasa;
114};
115
116
117enum acpi_pm_profile {
118 ACPI_PM_UNSPECIFIED = 0,
119 ACPI_PM_DESKTOP,
120 ACPI_PM_MOBILE,
121 ACPI_PM_WORKSTATION,
122 ACPI_PM_ENTERPRISE_SERVER,
123 ACPI_PM_SOHO_SERVER,
124 ACPI_PM_APPLIANCE_PC,
125 ACPI_PM_PERFORMANCE_SERVER,
126 ACPI_PM_TABLET
127};
128
129
130#define ACPI_FADT_C2_NOT_SUPPORTED 101
131#define ACPI_FADT_C3_NOT_SUPPORTED 1001
132
133
134#define ACPI_FADT_LEGACY_FREE 0x00
135#define ACPI_FADT_LEGACY_DEVICES BIT(0)
136#define ACPI_FADT_8042 BIT(1)
137#define ACPI_FADT_VGA_NOT_PRESENT BIT(2)
138#define ACPI_FADT_MSI_NOT_SUPPORTED BIT(3)
139#define ACPI_FADT_NO_PCIE_ASPM_CONTROL BIT(4)
140
141
142#define ACPI_FADT_WBINVD BIT(0)
143#define ACPI_FADT_WBINVD_FLUSH BIT(1)
144#define ACPI_FADT_C1_SUPPORTED BIT(2)
145#define ACPI_FADT_C2_MP_SUPPORTED BIT(3)
146#define ACPI_FADT_POWER_BUTTON BIT(4)
147#define ACPI_FADT_SLEEP_BUTTON BIT(5)
148#define ACPI_FADT_FIXED_RTC BIT(6)
149#define ACPI_FADT_S4_RTC_WAKE BIT(7)
150#define ACPI_FADT_32BIT_TIMER BIT(8)
151#define ACPI_FADT_DOCKING_SUPPORTED BIT(9)
152#define ACPI_FADT_RESET_REGISTER BIT(10)
153#define ACPI_FADT_SEALED_CASE BIT(11)
154#define ACPI_FADT_HEADLESS BIT(12)
155#define ACPI_FADT_SLEEP_TYPE BIT(13)
156#define ACPI_FADT_PCI_EXPRESS_WAKE BIT(14)
157#define ACPI_FADT_PLATFORM_CLOCK BIT(15)
158#define ACPI_FADT_S4_RTC_VALID BIT(16)
159#define ACPI_FADT_REMOTE_POWER_ON BIT(17)
160#define ACPI_FADT_APIC_CLUSTER BIT(18)
161#define ACPI_FADT_APIC_PHYSICAL BIT(19)
162#define ACPI_FADT_HW_REDUCED_ACPI BIT(20)
163#define ACPI_FADT_LOW_PWR_IDLE_S0 BIT(21)
164
165
166#define ACPI_ARM_PSCI_COMPLIANT BIT(0)
167
168enum acpi_address_space_type {
169 ACPI_ADDRESS_SPACE_MEMORY = 0,
170 ACPI_ADDRESS_SPACE_IO,
171 ACPI_ADDRESS_SPACE_PCI,
172 ACPI_ADDRESS_SPACE_EC,
173 ACPI_ADDRESS_SPACE_SMBUS,
174 ACPI_ADDRESS_SPACE_PCC = 0x0a,
175 ACPI_ADDRESS_SPACE_FIXED = 0x7f
176};
177
178enum acpi_address_space_size {
179 ACPI_ACCESS_SIZE_UNDEFINED = 0,
180 ACPI_ACCESS_SIZE_BYTE_ACCESS,
181 ACPI_ACCESS_SIZE_WORD_ACCESS,
182 ACPI_ACCESS_SIZE_DWORD_ACCESS,
183 ACPI_ACCESS_SIZE_QWORD_ACCESS
184};
185
186
187struct __packed acpi_fadt {
188 struct acpi_table_header header;
189 u32 firmware_ctrl;
190 u32 dsdt;
191 u8 res1;
192 u8 preferred_pm_profile;
193 u16 sci_int;
194 u32 smi_cmd;
195 u8 acpi_enable;
196 u8 acpi_disable;
197 u8 s4bios_req;
198 u8 pstate_cnt;
199 u32 pm1a_evt_blk;
200 u32 pm1b_evt_blk;
201 u32 pm1a_cnt_blk;
202 u32 pm1b_cnt_blk;
203 u32 pm2_cnt_blk;
204 u32 pm_tmr_blk;
205 u32 gpe0_blk;
206 u32 gpe1_blk;
207 u8 pm1_evt_len;
208 u8 pm1_cnt_len;
209 u8 pm2_cnt_len;
210 u8 pm_tmr_len;
211 u8 gpe0_blk_len;
212 u8 gpe1_blk_len;
213 u8 gpe1_base;
214 u8 cst_cnt;
215 u16 p_lvl2_lat;
216 u16 p_lvl3_lat;
217 u16 flush_size;
218 u16 flush_stride;
219 u8 duty_offset;
220 u8 duty_width;
221 u8 day_alrm;
222 u8 mon_alrm;
223 u8 century;
224 u16 iapc_boot_arch;
225 u8 res2;
226 u32 flags;
227 struct acpi_gen_regaddr reset_reg;
228 u8 reset_value;
229 u16 arm_boot_arch;
230 u8 minor_revision;
231 u32 x_firmware_ctl_l;
232 u32 x_firmware_ctl_h;
233 u32 x_dsdt_l;
234 u32 x_dsdt_h;
235 struct acpi_gen_regaddr x_pm1a_evt_blk;
236 struct acpi_gen_regaddr x_pm1b_evt_blk;
237 struct acpi_gen_regaddr x_pm1a_cnt_blk;
238 struct acpi_gen_regaddr x_pm1b_cnt_blk;
239 struct acpi_gen_regaddr x_pm2_cnt_blk;
240 struct acpi_gen_regaddr x_pm_tmr_blk;
241 struct acpi_gen_regaddr x_gpe0_blk;
242 struct acpi_gen_regaddr x_gpe1_blk;
243 struct acpi_gen_regaddr sleep_control_reg;
244 struct acpi_gen_regaddr sleep_status_reg;
245 u64 hyp_vendor_id;
246};
247
248
249#define ACPI_FADT_REV_ACPI_1_0 1
250#define ACPI_FADT_REV_ACPI_2_0 3
251#define ACPI_FADT_REV_ACPI_3_0 4
252#define ACPI_FADT_REV_ACPI_4_0 4
253#define ACPI_FADT_REV_ACPI_5_0 5
254#define ACPI_FADT_REV_ACPI_6_0 6
255
256
257#define ACPI_MADT_REV_ACPI_3_0 2
258#define ACPI_MADT_REV_ACPI_4_0 3
259#define ACPI_MADT_REV_ACPI_5_0 3
260#define ACPI_MADT_REV_ACPI_6_0 5
261
262#define ACPI_MCFG_REV_ACPI_3_0 1
263
264
265#define IVRS_FORMAT_FIXED 0x01
266#define IVRS_FORMAT_MIXED 0x02
267
268
269#define ACPI_FACS_S4BIOS_F BIT(0)
270#define ACPI_FACS_64BIT_WAKE_F BIT(1)
271
272
273struct acpi_facs {
274 char signature[ACPI_NAME_LEN];
275 u32 length;
276 u32 hardware_signature;
277 u32 firmware_waking_vector;
278 u32 global_lock;
279 u32 flags;
280 u32 x_firmware_waking_vector_l;
281 u32 x_firmware_waking_vector_h;
282 u8 version;
283 u8 res1[3];
284 u32 ospm_flags;
285 u8 res2[24];
286};
287
288
289#define ACPI_MADT_PCAT_COMPAT BIT(0)
290
291
292struct acpi_madt {
293 struct acpi_table_header header;
294 u32 lapic_addr;
295 u32 flags;
296};
297
298
299enum acpi_apic_types {
300 ACPI_APIC_LAPIC = 0,
301 ACPI_APIC_IOAPIC,
302 ACPI_APIC_IRQ_SRC_OVERRIDE,
303 ACPI_APIC_NMI_SRC,
304 ACPI_APIC_LAPIC_NMI,
305 ACPI_APIC_LAPIC_ADDR_OVERRIDE,
306 ACPI_APIC_IOSAPIC,
307 ACPI_APIC_LSAPIC,
308 ACPI_APIC_PLATFORM_IRQ_SRC,
309 ACPI_APIC_LX2APIC,
310 ACPI_APIC_LX2APIC_NMI,
311 ACPI_APIC_GICC,
312 ACPI_APIC_GICD
313};
314
315
316
317#define LOCAL_APIC_FLAG_ENABLED BIT(0)
318
319struct acpi_madt_lapic {
320 u8 type;
321 u8 length;
322 u8 processor_id;
323 u8 apic_id;
324 u32 flags;
325};
326
327
328struct acpi_madt_ioapic {
329 u8 type;
330 u8 length;
331 u8 ioapic_id;
332 u8 reserved;
333 u32 ioapic_addr;
334 u32 gsi_base;
335};
336
337
338struct __packed acpi_madt_irqoverride {
339 u8 type;
340 u8 length;
341 u8 bus;
342 u8 source;
343 u32 gsirq;
344 u16 flags;
345};
346
347
348struct __packed acpi_madt_lapic_nmi {
349 u8 type;
350 u8 length;
351 u8 processor_id;
352 u16 flags;
353 u8 lint;
354};
355
356
357enum {
358 ACPI_MADRF_ENABLED = BIT(0),
359 ACPI_MADRF_PERF = BIT(1),
360 ACPI_MADRF_VGIC = BIT(2),
361};
362
363
364
365
366
367
368
369struct __packed acpi_madr_gicc {
370 u8 type;
371 u8 length;
372 u16 reserved;
373 u32 cpu_if_num;
374 u32 processor_id;
375 u32 flags;
376 u32 parking_proto;
377 u32 perf_gsiv;
378 u64 parked_addr;
379 u64 phys_base;
380 u64 gicv;
381 u64 gich;
382 u32 vgic_maint_irq;
383 u64 gicr_base;
384 u64 mpidr;
385 u8 efficiency;
386 u8 reserved2;
387 u16 spi_overflow_irq;
388};
389
390
391
392
393
394
395
396struct __packed acpi_madr_gicd {
397 u8 type;
398 u8 length;
399 u16 reserved;
400 u32 gic_id;
401 u64 phys_base;
402 u32 reserved2;
403 u8 gic_version;
404 u8 reserved3[3];
405};
406
407
408struct acpi_mcfg {
409 struct acpi_table_header header;
410 u8 reserved[8];
411};
412
413struct acpi_mcfg_mmconfig {
414 u32 base_address_l;
415 u32 base_address_h;
416 u16 pci_segment_group_number;
417 u8 start_bus_number;
418 u8 end_bus_number;
419 u8 reserved[4];
420};
421
422
423#define PM1_CNT_SCI_EN BIT(0)
424
425
426struct acpi_global_nvs;
427
428
429struct acpi_csrt {
430 struct acpi_table_header header;
431};
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446struct acpi_csrt_group {
447 u32 length;
448 u32 vendor_id;
449 u32 subvendor_id;
450 u16 device_id;
451 u16 subdevice_id;
452 u16 revision;
453 u16 reserved;
454 u32 shared_info_length;
455};
456
457
458
459
460
461
462struct acpi_csrt_descriptor {
463 u32 length;
464 u16 type;
465 u16 subtype;
466 u32 uid;
467};
468
469
470
471
472
473
474
475
476struct acpi_csrt_shared_info {
477 u16 major_version;
478 u16 minor_version;
479 u32 mmio_base_low;
480 u32 mmio_base_high;
481 u32 gsi_interrupt;
482 u8 interrupt_polarity;
483 u8 interrupt_mode;
484 u8 num_channels;
485 u8 dma_address_width;
486 u16 base_request_line;
487 u16 num_handshake_signals;
488 u32 max_block_size;
489};
490
491
492enum acpi_upc_type {
493 UPC_TYPE_A,
494 UPC_TYPE_MINI_AB,
495 UPC_TYPE_EXPRESSCARD,
496 UPC_TYPE_USB3_A,
497 UPC_TYPE_USB3_B,
498 UPC_TYPE_USB3_MICRO_B,
499 UPC_TYPE_USB3_MICRO_AB,
500 UPC_TYPE_USB3_POWER_B,
501 UPC_TYPE_C_USB2_ONLY,
502 UPC_TYPE_C_USB2_SS_SWITCH,
503 UPC_TYPE_C_USB2_SS,
504 UPC_TYPE_PROPRIETARY = 0xff,
505
506
507
508
509 UPC_TYPE_INTERNAL = 0xff,
510 UPC_TYPE_UNUSED,
511 UPC_TYPE_HUB
512};
513
514enum dev_scope_type {
515 SCOPE_PCI_ENDPOINT = 1,
516 SCOPE_PCI_SUB = 2,
517 SCOPE_IOAPIC = 3,
518 SCOPE_MSI_HPET = 4,
519 SCOPE_ACPI_NAMESPACE_DEVICE = 5
520};
521
522struct __packed dev_scope {
523 u8 type;
524 u8 length;
525 u8 reserved[2];
526 u8 enumeration;
527 u8 start_bus;
528 struct {
529 u8 dev;
530 u8 fn;
531 } __packed path[0];
532};
533
534enum dmar_type {
535 DMAR_DRHD = 0,
536 DMAR_RMRR = 1,
537 DMAR_ATSR = 2,
538 DMAR_RHSA = 3,
539 DMAR_ANDD = 4
540};
541
542enum {
543 DRHD_INCLUDE_PCI_ALL = BIT(0)
544};
545
546enum dmar_flags {
547 DMAR_INTR_REMAP = BIT(0),
548 DMAR_X2APIC_OPT_OUT = BIT(1),
549 DMAR_CTRL_PLATFORM_OPT_IN_FLAG = BIT(2),
550};
551
552struct dmar_entry {
553 u16 type;
554 u16 length;
555 u8 flags;
556 u8 reserved;
557 u16 segment;
558 u64 bar;
559};
560
561struct dmar_rmrr_entry {
562 u16 type;
563 u16 length;
564 u16 reserved;
565 u16 segment;
566 u64 bar;
567 u64 limit;
568};
569
570
571struct __packed acpi_dmar {
572 struct acpi_table_header header;
573 u8 host_address_width;
574 u8 flags;
575 u8 reserved[10];
576 struct dmar_entry structure[0];
577};
578
579
580
581
582
583#define ACPI_DBG2_SERIAL_PORT 0x8000
584#define ACPI_DBG2_1394_PORT 0x8001
585#define ACPI_DBG2_USB_PORT 0x8002
586#define ACPI_DBG2_NET_PORT 0x8003
587
588
589
590#define ACPI_DBG2_16550_COMPATIBLE 0x0000
591#define ACPI_DBG2_16550_SUBSET 0x0001
592#define ACPI_DBG2_ARM_PL011 0x0003
593#define ACPI_DBG2_ARM_SBSA_32BIT 0x000D
594#define ACPI_DBG2_ARM_SBSA_GENERIC 0x000E
595#define ACPI_DBG2_ARM_DCC 0x000F
596#define ACPI_DBG2_BCM2835 0x0010
597
598#define ACPI_DBG2_1394_STANDARD 0x0000
599
600#define ACPI_DBG2_USB_XHCI 0x0000
601#define ACPI_DBG2_USB_EHCI 0x0001
602
603#define ACPI_DBG2_UNKNOWN 0x00FF
604
605
606struct __packed acpi_dbg2_header {
607 struct acpi_table_header header;
608 u32 devices_offset;
609 u32 devices_count;
610};
611
612
613struct __packed acpi_dbg2_device {
614 u8 revision;
615 u16 length;
616 u8 address_count;
617 u16 namespace_string_length;
618 u16 namespace_string_offset;
619 u16 oem_data_length;
620 u16 oem_data_offset;
621 u16 port_type;
622 u16 port_subtype;
623 u8 reserved[2];
624 u16 base_address_offset;
625 u16 address_size_offset;
626};
627
628
629struct __packed acpi_spcr {
630 struct acpi_table_header header;
631 u8 interface_type;
632 u8 reserved[3];
633 struct acpi_gen_regaddr serial_port;
634 u8 interrupt_type;
635 u8 pc_interrupt;
636 u32 interrupt;
637 u8 baud_rate;
638 u8 parity;
639 u8 stop_bits;
640 u8 flow_control;
641 u8 terminal_type;
642 u8 reserved1;
643 u16 pci_device_id;
644 u16 pci_vendor_id;
645 u8 pci_bus;
646 u8 pci_device;
647 u8 pci_function;
648 u32 pci_flags;
649 u8 pci_segment;
650 u32 reserved2;
651};
652
653
654
655
656
657
658struct __packed acpi_gtdt {
659 struct acpi_table_header header;
660 u64 cnt_ctrl_base;
661 u32 reserved0;
662 u32 sec_el1_gsiv;
663 u32 sec_el1_flags;
664 u32 el1_gsiv;
665 u32 el1_flags;
666 u32 virt_el1_gsiv;
667 u32 virt_el1_flags;
668 u32 el2_gsiv;
669 u32 el2_flags;
670 u64 cnt_read_base;
671 u32 plat_timer_count;
672 u32 plat_timer_offset;
673 u32 virt_el2_gsiv;
674 u32 virt_el2_flags;
675};
676
677
678
679
680
681
682
683
684
685struct __packed acpi_bgrt {
686 struct acpi_table_header header;
687 u16 version;
688 u8 status;
689 u8 image_type;
690 u64 addr;
691 u32 offset_x;
692 u32 offset_y;
693};
694
695
696#define ACPI_PPTT_TYPE_PROC 0
697#define ACPI_PPTT_TYPE_CACHE 1
698
699
700#define ACPI_PPTT_PHYSICAL_PACKAGE BIT(0)
701#define ACPI_PPTT_PROC_ID_VALID BIT(1)
702#define ACPI_PPTT_PROC_IS_THREAD BIT(2)
703#define ACPI_PPTT_NODE_IS_LEAF BIT(3)
704#define ACPI_PPTT_CHILDREN_IDENTICAL BIT(4)
705
706
707
708
709
710
711
712
713
714struct __packed acpi_pptt_header {
715 u8 type;
716 u8 length;
717 u16 reserved;
718};
719
720
721
722
723struct __packed acpi_pptt_proc {
724 struct acpi_pptt_header hdr;
725 u32 flags;
726 u32 parent;
727 u32 proc_id;
728 u32 num_resources;
729};
730
731
732#define ACPI_PPTT_SIZE_VALID BIT(0)
733#define ACPI_PPTT_SETS_VALID BIT(1)
734#define ACPI_PPTT_ASSOC_VALID BIT(2)
735#define ACPI_PPTT_ALLOC_TYPE_VALID BIT(3)
736#define ACPI_PPTT_CACHE_TYPE_VALID BIT(4)
737#define ACPI_PPTT_WRITE_POLICY_VALID BIT(5)
738#define ACPI_PPTT_LINE_SIZE_VALID BIT(6)
739
740#define ACPI_PPTT_ALL_VALID 0x7f
741#define ACPI_PPTT_ALL_BUT_WRITE_POL 0x5f
742
743#define ACPI_PPTT_READ_ALLOC BIT(0)
744#define ACPI_PPTT_WRITE_ALLOC BIT(1)
745#define ACPI_PPTT_CACHE_TYPE_SHIFT 2
746#define ACPI_PPTT_CACHE_TYPE_MASK (3 << ACPI_PPTT_CACHE_TYPE_SHIFT)
747#define ACPI_PPTT_CACHE_TYPE_DATA 0
748#define ACPI_PPTT_CACHE_TYPE_INSTR 1
749#define ACPI_PPTT_CACHE_TYPE_UNIFIED 2
750#define ACPI_PPTT_CACHE_TYPE_DATA 0
751#define ACPI_PPTT_WRITE_THROUGH BIT(4)
752
753
754
755
756struct __packed acpi_pptt_cache {
757 struct acpi_pptt_header hdr;
758 u32 flags;
759 u32 next_cache_level;
760 u32 size;
761 u32 sets;
762 u8 assoc;
763 u8 attributes;
764 u16 line_size;
765};
766
767
768enum acpi_tables {
769 ACPITAB_BERT,
770 ACPITAB_DBG2,
771 ACPITAB_DMAR,
772 ACPITAB_DSDT,
773 ACPITAB_ECDT,
774 ACPITAB_FACS,
775 ACPITAB_FADT,
776 ACPITAB_HEST,
777 ACPITAB_HPET,
778 ACPITAB_IVRS,
779 ACPITAB_MADT,
780 ACPITAB_MCFG,
781 ACPITAB_NHLT,
782 ACPITAB_RSDP,
783 ACPITAB_RSDT,
784 ACPITAB_SLIT,
785 ACPITAB_SPCR,
786 ACPITAB_SPMI,
787 ACPITAB_SRAT,
788 ACPITAB_SSDT,
789 ACPITAB_TCPA,
790 ACPITAB_TPM2,
791 ACPITAB_VFCT,
792 ACPITAB_XSDT,
793
794 ACPITAB_COUNT,
795};
796
797
798
799
800
801
802
803
804
805int acpi_get_table_revision(enum acpi_tables table);
806
807
808
809
810
811
812
813
814int acpi_create_dmar(struct acpi_dmar *dmar, enum dmar_flags flags);
815
816
817
818
819
820
821
822
823
824
825
826
827
828void acpi_create_dbg2(struct acpi_dbg2_header *dbg2,
829 int port_type, int port_subtype,
830 struct acpi_gen_regaddr *address, uint32_t address_size,
831 const char *device_path);
832
833
834
835
836
837
838
839
840
841void acpi_fill_header(struct acpi_table_header *header, char *signature);
842
843
844
845
846
847
848void acpi_align(struct acpi_ctx *ctx);
849
850
851
852
853
854
855void acpi_align64(struct acpi_ctx *ctx);
856
857
858
859
860
861
862
863
864
865void acpi_inc(struct acpi_ctx *ctx, uint amount);
866
867
868
869
870
871
872
873
874
875void acpi_inc_align(struct acpi_ctx *ctx, uint amount);
876
877
878
879
880
881
882
883
884int acpi_add_table(struct acpi_ctx *ctx, void *table);
885
886
887
888
889
890
891
892
893void acpi_write_rsdp(struct acpi_rsdp *rsdp, struct acpi_rsdt *rsdt,
894 struct acpi_xsdt *xsdt);
895
896
897
898
899
900
901
902void acpi_fill_header(struct acpi_table_header *header, char *signature);
903
904
905
906
907
908
909
910
911
912
913
914int acpi_fill_csrt(struct acpi_ctx *ctx);
915
916
917
918
919
920
921
922
923
924ulong write_acpi_tables(ulong start);
925
926#endif
927
928#include <asm/acpi_table.h>
929
930#endif
931