1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44#ifndef __ACTBL2_H__
45#define __ACTBL2_H__
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64#define ACPI_SIG_ASF "ASF!"
65#define ACPI_SIG_BOOT "BOOT"
66#define ACPI_SIG_CSRT "CSRT"
67#define ACPI_SIG_DBG2 "DBG2"
68#define ACPI_SIG_DBGP "DBGP"
69#define ACPI_SIG_DMAR "DMAR"
70#define ACPI_SIG_HPET "HPET"
71#define ACPI_SIG_IBFT "IBFT"
72#define ACPI_SIG_IVRS "IVRS"
73#define ACPI_SIG_MCFG "MCFG"
74#define ACPI_SIG_MCHI "MCHI"
75#define ACPI_SIG_MTMR "MTMR"
76#define ACPI_SIG_SLIC "SLIC"
77#define ACPI_SIG_SPCR "SPCR"
78#define ACPI_SIG_SPMI "SPMI"
79#define ACPI_SIG_TCPA "TCPA"
80#define ACPI_SIG_UEFI "UEFI"
81#define ACPI_SIG_VRTC "VRTC"
82#define ACPI_SIG_WAET "WAET"
83#define ACPI_SIG_WDAT "WDAT"
84#define ACPI_SIG_WDDT "WDDT"
85#define ACPI_SIG_WDRT "WDRT"
86
87#ifdef ACPI_UNDEFINED_TABLES
88
89
90
91#define ACPI_SIG_ATKG "ATKG"
92#define ACPI_SIG_GSCI "GSCI"
93#define ACPI_SIG_IEIT "IEIT"
94#endif
95
96
97
98
99
100#pragma pack(1)
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123struct acpi_table_asf {
124 struct acpi_table_header header;
125};
126
127
128
129struct acpi_asf_header {
130 u8 type;
131 u8 reserved;
132 u16 length;
133};
134
135
136
137enum acpi_asf_type {
138 ACPI_ASF_TYPE_INFO = 0,
139 ACPI_ASF_TYPE_ALERT = 1,
140 ACPI_ASF_TYPE_CONTROL = 2,
141 ACPI_ASF_TYPE_BOOT = 3,
142 ACPI_ASF_TYPE_ADDRESS = 4,
143 ACPI_ASF_TYPE_RESERVED = 5
144};
145
146
147
148
149
150
151
152struct acpi_asf_info {
153 struct acpi_asf_header header;
154 u8 min_reset_value;
155 u8 min_poll_interval;
156 u16 system_id;
157 u32 mfg_id;
158 u8 flags;
159 u8 reserved2[3];
160};
161
162
163
164#define ACPI_ASF_SMBUS_PROTOCOLS (1)
165
166
167
168struct acpi_asf_alert {
169 struct acpi_asf_header header;
170 u8 assert_mask;
171 u8 deassert_mask;
172 u8 alerts;
173 u8 data_length;
174};
175
176struct acpi_asf_alert_data {
177 u8 address;
178 u8 command;
179 u8 mask;
180 u8 value;
181 u8 sensor_type;
182 u8 type;
183 u8 offset;
184 u8 source_type;
185 u8 severity;
186 u8 sensor_number;
187 u8 entity;
188 u8 instance;
189};
190
191
192
193struct acpi_asf_remote {
194 struct acpi_asf_header header;
195 u8 controls;
196 u8 data_length;
197 u16 reserved2;
198};
199
200struct acpi_asf_control_data {
201 u8 function;
202 u8 address;
203 u8 command;
204 u8 value;
205};
206
207
208
209struct acpi_asf_rmcp {
210 struct acpi_asf_header header;
211 u8 capabilities[7];
212 u8 completion_code;
213 u32 enterprise_id;
214 u8 command;
215 u16 parameter;
216 u16 boot_options;
217 u16 oem_parameters;
218};
219
220
221
222struct acpi_asf_address {
223 struct acpi_asf_header header;
224 u8 eprom_address;
225 u8 devices;
226};
227
228
229
230
231
232
233
234
235
236
237struct acpi_table_boot {
238 struct acpi_table_header header;
239 u8 cmos_index;
240 u8 reserved[3];
241};
242
243
244
245
246
247
248
249
250
251
252struct acpi_table_csrt {
253 struct acpi_table_header header;
254};
255
256
257
258struct acpi_csrt_group {
259 u32 length;
260 u32 vendor_id;
261 u32 subvendor_id;
262 u16 device_id;
263 u16 subdevice_id;
264 u16 revision;
265 u16 reserved;
266 u32 shared_info_length;
267
268
269};
270
271
272
273struct acpi_csrt_shared_info {
274 u16 major_version;
275 u16 minor_version;
276 u32 mmio_base_low;
277 u32 mmio_base_high;
278 u32 gsi_interrupt;
279 u8 interrupt_polarity;
280 u8 interrupt_mode;
281 u8 num_channels;
282 u8 dma_address_width;
283 u16 base_request_line;
284 u16 num_handshake_signals;
285 u32 max_block_size;
286
287
288};
289
290
291
292struct acpi_csrt_descriptor {
293 u32 length;
294 u16 type;
295 u16 subtype;
296 u32 uid;
297
298
299};
300
301
302
303#define ACPI_CSRT_TYPE_INTERRUPT 0x0001
304#define ACPI_CSRT_TYPE_TIMER 0x0002
305#define ACPI_CSRT_TYPE_DMA 0x0003
306
307
308
309#define ACPI_CSRT_XRUPT_LINE 0x0000
310#define ACPI_CSRT_XRUPT_CONTROLLER 0x0001
311#define ACPI_CSRT_TIMER 0x0000
312#define ACPI_CSRT_DMA_CHANNEL 0x0000
313#define ACPI_CSRT_DMA_CONTROLLER 0x0001
314
315
316
317
318
319
320
321
322
323
324struct acpi_table_dbg2 {
325 struct acpi_table_header header;
326 u32 info_offset;
327 u32 info_count;
328};
329
330
331
332struct acpi_dbg2_device {
333 u8 revision;
334 u16 length;
335 u8 register_count;
336 u16 namepath_length;
337 u16 namepath_offset;
338 u16 oem_data_length;
339 u16 oem_data_offset;
340 u16 port_type;
341 u16 port_subtype;
342 u16 reserved;
343 u16 base_address_offset;
344 u16 address_size_offset;
345
346
347
348
349
350
351
352};
353
354
355
356#define ACPI_DBG2_SERIAL_PORT 0x8000
357#define ACPI_DBG2_1394_PORT 0x8001
358#define ACPI_DBG2_USB_PORT 0x8002
359#define ACPI_DBG2_NET_PORT 0x8003
360
361
362
363#define ACPI_DBG2_16550_COMPATIBLE 0x0000
364#define ACPI_DBG2_16550_SUBSET 0x0001
365
366#define ACPI_DBG2_1394_STANDARD 0x0000
367
368#define ACPI_DBG2_USB_XHCI 0x0000
369#define ACPI_DBG2_USB_EHCI 0x0001
370
371
372
373
374
375
376
377
378
379
380struct acpi_table_dbgp {
381 struct acpi_table_header header;
382 u8 type;
383 u8 reserved[3];
384 struct acpi_generic_address debug_port;
385};
386
387
388
389
390
391
392
393
394
395
396
397struct acpi_table_dmar {
398 struct acpi_table_header header;
399 u8 width;
400 u8 flags;
401 u8 reserved[10];
402};
403
404
405
406#define ACPI_DMAR_INTR_REMAP (1)
407
408
409
410struct acpi_dmar_header {
411 u16 type;
412 u16 length;
413};
414
415
416
417enum acpi_dmar_type {
418 ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,
419 ACPI_DMAR_TYPE_RESERVED_MEMORY = 1,
420 ACPI_DMAR_TYPE_ATSR = 2,
421 ACPI_DMAR_HARDWARE_AFFINITY = 3,
422 ACPI_DMAR_TYPE_RESERVED = 4
423};
424
425
426
427struct acpi_dmar_device_scope {
428 u8 entry_type;
429 u8 length;
430 u16 reserved;
431 u8 enumeration_id;
432 u8 bus;
433};
434
435
436
437enum acpi_dmar_scope_type {
438 ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0,
439 ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1,
440 ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2,
441 ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3,
442 ACPI_DMAR_SCOPE_TYPE_HPET = 4,
443 ACPI_DMAR_SCOPE_TYPE_RESERVED = 5
444};
445
446struct acpi_dmar_pci_path {
447 u8 dev;
448 u8 fn;
449};
450
451
452
453
454
455
456
457struct acpi_dmar_hardware_unit {
458 struct acpi_dmar_header header;
459 u8 flags;
460 u8 reserved;
461 u16 segment;
462 u64 address;
463};
464
465
466
467#define ACPI_DMAR_INCLUDE_ALL (1)
468
469
470
471struct acpi_dmar_reserved_memory {
472 struct acpi_dmar_header header;
473 u16 reserved;
474 u16 segment;
475 u64 base_address;
476 u64 end_address;
477};
478
479
480
481#define ACPI_DMAR_ALLOW_ALL (1)
482
483
484
485struct acpi_dmar_atsr {
486 struct acpi_dmar_header header;
487 u8 flags;
488 u8 reserved;
489 u16 segment;
490};
491
492
493
494#define ACPI_DMAR_ALL_PORTS (1)
495
496
497
498struct acpi_dmar_rhsa {
499 struct acpi_dmar_header header;
500 u32 reserved;
501 u64 base_address;
502 u32 proximity_domain;
503};
504
505
506
507
508
509
510
511
512
513
514
515struct acpi_table_hpet {
516 struct acpi_table_header header;
517 u32 id;
518 struct acpi_generic_address address;
519 u8 sequence;
520 u16 minimum_tick;
521 u8 flags;
522};
523
524
525
526#define ACPI_HPET_PAGE_PROTECT_MASK (3)
527
528
529
530enum acpi_hpet_page_protect {
531 ACPI_HPET_NO_PAGE_PROTECT = 0,
532 ACPI_HPET_PAGE_PROTECT4 = 1,
533 ACPI_HPET_PAGE_PROTECT64 = 2
534};
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549struct acpi_table_ibft {
550 struct acpi_table_header header;
551 u8 reserved[12];
552};
553
554
555
556struct acpi_ibft_header {
557 u8 type;
558 u8 version;
559 u16 length;
560 u8 index;
561 u8 flags;
562};
563
564
565
566enum acpi_ibft_type {
567 ACPI_IBFT_TYPE_NOT_USED = 0,
568 ACPI_IBFT_TYPE_CONTROL = 1,
569 ACPI_IBFT_TYPE_INITIATOR = 2,
570 ACPI_IBFT_TYPE_NIC = 3,
571 ACPI_IBFT_TYPE_TARGET = 4,
572 ACPI_IBFT_TYPE_EXTENSIONS = 5,
573 ACPI_IBFT_TYPE_RESERVED = 6
574};
575
576
577
578struct acpi_ibft_control {
579 struct acpi_ibft_header header;
580 u16 extensions;
581 u16 initiator_offset;
582 u16 nic0_offset;
583 u16 target0_offset;
584 u16 nic1_offset;
585 u16 target1_offset;
586};
587
588struct acpi_ibft_initiator {
589 struct acpi_ibft_header header;
590 u8 sns_server[16];
591 u8 slp_server[16];
592 u8 primary_server[16];
593 u8 secondary_server[16];
594 u16 name_length;
595 u16 name_offset;
596};
597
598struct acpi_ibft_nic {
599 struct acpi_ibft_header header;
600 u8 ip_address[16];
601 u8 subnet_mask_prefix;
602 u8 origin;
603 u8 gateway[16];
604 u8 primary_dns[16];
605 u8 secondary_dns[16];
606 u8 dhcp[16];
607 u16 vlan;
608 u8 mac_address[6];
609 u16 pci_address;
610 u16 name_length;
611 u16 name_offset;
612};
613
614struct acpi_ibft_target {
615 struct acpi_ibft_header header;
616 u8 target_ip_address[16];
617 u16 target_ip_socket;
618 u8 target_boot_lun[8];
619 u8 chap_type;
620 u8 nic_association;
621 u16 target_name_length;
622 u16 target_name_offset;
623 u16 chap_name_length;
624 u16 chap_name_offset;
625 u16 chap_secret_length;
626 u16 chap_secret_offset;
627 u16 reverse_chap_name_length;
628 u16 reverse_chap_name_offset;
629 u16 reverse_chap_secret_length;
630 u16 reverse_chap_secret_offset;
631};
632
633
634
635
636
637
638
639
640
641
642
643struct acpi_table_ivrs {
644 struct acpi_table_header header;
645 u32 info;
646 u64 reserved;
647};
648
649
650
651#define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00
652#define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000
653#define ACPI_IVRS_ATS_RESERVED 0x00400000
654
655
656
657struct acpi_ivrs_header {
658 u8 type;
659 u8 flags;
660 u16 length;
661 u16 device_id;
662};
663
664
665
666enum acpi_ivrs_type {
667 ACPI_IVRS_TYPE_HARDWARE = 0x10,
668 ACPI_IVRS_TYPE_MEMORY1 = 0x20,
669 ACPI_IVRS_TYPE_MEMORY2 = 0x21,
670 ACPI_IVRS_TYPE_MEMORY3 = 0x22
671};
672
673
674
675#define ACPI_IVHD_TT_ENABLE (1)
676#define ACPI_IVHD_PASS_PW (1<<1)
677#define ACPI_IVHD_RES_PASS_PW (1<<2)
678#define ACPI_IVHD_ISOC (1<<3)
679#define ACPI_IVHD_IOTLB (1<<4)
680
681
682
683#define ACPI_IVMD_UNITY (1)
684#define ACPI_IVMD_READ (1<<1)
685#define ACPI_IVMD_WRITE (1<<2)
686#define ACPI_IVMD_EXCLUSION_RANGE (1<<3)
687
688
689
690
691
692
693
694struct acpi_ivrs_hardware {
695 struct acpi_ivrs_header header;
696 u16 capability_offset;
697 u64 base_address;
698 u16 pci_segment_group;
699 u16 info;
700 u32 reserved;
701};
702
703
704
705#define ACPI_IVHD_MSI_NUMBER_MASK 0x001F
706#define ACPI_IVHD_UNIT_ID_MASK 0x1F00
707
708
709
710
711
712
713
714struct acpi_ivrs_de_header {
715 u8 type;
716 u16 id;
717 u8 data_setting;
718};
719
720
721
722#define ACPI_IVHD_ENTRY_LENGTH 0xC0
723
724
725
726enum acpi_ivrs_device_entry_type {
727
728
729 ACPI_IVRS_TYPE_PAD4 = 0,
730 ACPI_IVRS_TYPE_ALL = 1,
731 ACPI_IVRS_TYPE_SELECT = 2,
732 ACPI_IVRS_TYPE_START = 3,
733 ACPI_IVRS_TYPE_END = 4,
734
735
736
737 ACPI_IVRS_TYPE_PAD8 = 64,
738 ACPI_IVRS_TYPE_NOT_USED = 65,
739 ACPI_IVRS_TYPE_ALIAS_SELECT = 66,
740 ACPI_IVRS_TYPE_ALIAS_START = 67,
741 ACPI_IVRS_TYPE_EXT_SELECT = 70,
742 ACPI_IVRS_TYPE_EXT_START = 71,
743 ACPI_IVRS_TYPE_SPECIAL = 72
744};
745
746
747
748#define ACPI_IVHD_INIT_PASS (1)
749#define ACPI_IVHD_EINT_PASS (1<<1)
750#define ACPI_IVHD_NMI_PASS (1<<2)
751#define ACPI_IVHD_SYSTEM_MGMT (3<<4)
752#define ACPI_IVHD_LINT0_PASS (1<<6)
753#define ACPI_IVHD_LINT1_PASS (1<<7)
754
755
756
757struct acpi_ivrs_device4 {
758 struct acpi_ivrs_de_header header;
759};
760
761
762
763struct acpi_ivrs_device8a {
764 struct acpi_ivrs_de_header header;
765 u8 reserved1;
766 u16 used_id;
767 u8 reserved2;
768};
769
770
771
772struct acpi_ivrs_device8b {
773 struct acpi_ivrs_de_header header;
774 u32 extended_data;
775};
776
777
778
779#define ACPI_IVHD_ATS_DISABLED (1<<31)
780
781
782
783struct acpi_ivrs_device8c {
784 struct acpi_ivrs_de_header header;
785 u8 handle;
786 u16 used_id;
787 u8 variety;
788};
789
790
791
792#define ACPI_IVHD_IOAPIC 1
793#define ACPI_IVHD_HPET 2
794
795
796
797struct acpi_ivrs_memory {
798 struct acpi_ivrs_header header;
799 u16 aux_data;
800 u64 reserved;
801 u64 start_address;
802 u64 memory_length;
803};
804
805
806
807
808
809
810
811
812
813
814struct acpi_table_mcfg {
815 struct acpi_table_header header;
816 u8 reserved[8];
817};
818
819
820
821struct acpi_mcfg_allocation {
822 u64 address;
823 u16 pci_segment;
824 u8 start_bus_number;
825 u8 end_bus_number;
826 u32 reserved;
827};
828
829
830
831
832
833
834
835
836
837
838
839struct acpi_table_mchi {
840 struct acpi_table_header header;
841 u8 interface_type;
842 u8 protocol;
843 u64 protocol_data;
844 u8 interrupt_type;
845 u8 gpe;
846 u8 pci_device_flag;
847 u32 global_interrupt;
848 struct acpi_generic_address control_register;
849 u8 pci_segment;
850 u8 pci_bus;
851 u8 pci_device;
852 u8 pci_function;
853};
854
855
856
857
858
859
860
861
862
863
864
865
866struct acpi_table_mtmr {
867 struct acpi_table_header header;
868};
869
870
871
872struct acpi_mtmr_entry {
873 struct acpi_generic_address physical_address;
874 u32 frequency;
875 u32 irq;
876};
877
878
879
880
881
882
883
884
885
886
887
888
889
890struct acpi_table_slic {
891 struct acpi_table_header header;
892};
893
894
895
896struct acpi_slic_header {
897 u32 type;
898 u32 length;
899};
900
901
902
903enum acpi_slic_type {
904 ACPI_SLIC_TYPE_PUBLIC_KEY = 0,
905 ACPI_SLIC_TYPE_WINDOWS_MARKER = 1,
906 ACPI_SLIC_TYPE_RESERVED = 2
907};
908
909
910
911
912
913
914
915struct acpi_slic_key {
916 struct acpi_slic_header header;
917 u8 key_type;
918 u8 version;
919 u16 reserved;
920 u32 algorithm;
921 char magic[4];
922 u32 bit_length;
923 u32 exponent;
924 u8 modulus[128];
925};
926
927
928
929struct acpi_slic_marker {
930 struct acpi_slic_header header;
931 u32 version;
932 char oem_id[ACPI_OEM_ID_SIZE];
933 char oem_table_id[ACPI_OEM_TABLE_ID_SIZE];
934 char windows_flag[8];
935 u32 slic_version;
936 u8 reserved[16];
937 u8 signature[128];
938};
939
940
941
942
943
944
945
946
947
948
949
950struct acpi_table_spcr {
951 struct acpi_table_header header;
952 u8 interface_type;
953 u8 reserved[3];
954 struct acpi_generic_address serial_port;
955 u8 interrupt_type;
956 u8 pc_interrupt;
957 u32 interrupt;
958 u8 baud_rate;
959 u8 parity;
960 u8 stop_bits;
961 u8 flow_control;
962 u8 terminal_type;
963 u8 reserved1;
964 u16 pci_device_id;
965 u16 pci_vendor_id;
966 u8 pci_bus;
967 u8 pci_device;
968 u8 pci_function;
969 u32 pci_flags;
970 u8 pci_segment;
971 u32 reserved2;
972};
973
974
975
976#define ACPI_SPCR_DO_NOT_DISABLE (1)
977
978
979
980
981
982
983
984
985
986
987
988
989struct acpi_table_spmi {
990 struct acpi_table_header header;
991 u8 interface_type;
992 u8 reserved;
993 u16 spec_revision;
994 u8 interrupt_type;
995 u8 gpe_number;
996 u8 reserved1;
997 u8 pci_device_flag;
998 u32 interrupt;
999 struct acpi_generic_address ipmi_register;
1000 u8 pci_segment;
1001 u8 pci_bus;
1002 u8 pci_device;
1003 u8 pci_function;
1004 u8 reserved2;
1005};
1006
1007
1008
1009enum acpi_spmi_interface_types {
1010 ACPI_SPMI_NOT_USED = 0,
1011 ACPI_SPMI_KEYBOARD = 1,
1012 ACPI_SPMI_SMI = 2,
1013 ACPI_SPMI_BLOCK_TRANSFER = 3,
1014 ACPI_SPMI_SMBUS = 4,
1015 ACPI_SPMI_RESERVED = 5
1016};
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028struct acpi_table_tcpa {
1029 struct acpi_table_header header;
1030 u16 reserved;
1031 u32 max_log_length;
1032 u64 log_address;
1033};
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045struct acpi_table_uefi {
1046 struct acpi_table_header header;
1047 u8 identifier[16];
1048 u16 data_offset;
1049};
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062struct acpi_table_vrtc {
1063 struct acpi_table_header header;
1064};
1065
1066
1067
1068struct acpi_vrtc_entry {
1069 struct acpi_generic_address physical_address;
1070 u32 irq;
1071};
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082struct acpi_table_waet {
1083 struct acpi_table_header header;
1084 u32 flags;
1085};
1086
1087
1088
1089#define ACPI_WAET_RTC_NO_ACK (1)
1090#define ACPI_WAET_TIMER_ONE_READ (1<<1)
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102struct acpi_table_wdat {
1103 struct acpi_table_header header;
1104 u32 header_length;
1105 u16 pci_segment;
1106 u8 pci_bus;
1107 u8 pci_device;
1108 u8 pci_function;
1109 u8 reserved[3];
1110 u32 timer_period;
1111 u32 max_count;
1112 u32 min_count;
1113 u8 flags;
1114 u8 reserved2[3];
1115 u32 entries;
1116};
1117
1118
1119
1120#define ACPI_WDAT_ENABLED (1)
1121#define ACPI_WDAT_STOPPED 0x80
1122
1123
1124
1125struct acpi_wdat_entry {
1126 u8 action;
1127 u8 instruction;
1128 u16 reserved;
1129 struct acpi_generic_address register_region;
1130 u32 value;
1131 u32 mask;
1132};
1133
1134
1135
1136enum acpi_wdat_actions {
1137 ACPI_WDAT_RESET = 1,
1138 ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4,
1139 ACPI_WDAT_GET_COUNTDOWN = 5,
1140 ACPI_WDAT_SET_COUNTDOWN = 6,
1141 ACPI_WDAT_GET_RUNNING_STATE = 8,
1142 ACPI_WDAT_SET_RUNNING_STATE = 9,
1143 ACPI_WDAT_GET_STOPPED_STATE = 10,
1144 ACPI_WDAT_SET_STOPPED_STATE = 11,
1145 ACPI_WDAT_GET_REBOOT = 16,
1146 ACPI_WDAT_SET_REBOOT = 17,
1147 ACPI_WDAT_GET_SHUTDOWN = 18,
1148 ACPI_WDAT_SET_SHUTDOWN = 19,
1149 ACPI_WDAT_GET_STATUS = 32,
1150 ACPI_WDAT_SET_STATUS = 33,
1151 ACPI_WDAT_ACTION_RESERVED = 34
1152};
1153
1154
1155
1156enum acpi_wdat_instructions {
1157 ACPI_WDAT_READ_VALUE = 0,
1158 ACPI_WDAT_READ_COUNTDOWN = 1,
1159 ACPI_WDAT_WRITE_VALUE = 2,
1160 ACPI_WDAT_WRITE_COUNTDOWN = 3,
1161 ACPI_WDAT_INSTRUCTION_RESERVED = 4,
1162 ACPI_WDAT_PRESERVE_REGISTER = 0x80
1163};
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175struct acpi_table_wddt {
1176 struct acpi_table_header header;
1177 u16 spec_version;
1178 u16 table_version;
1179 u16 pci_vendor_id;
1180 struct acpi_generic_address address;
1181 u16 max_count;
1182 u16 min_count;
1183 u16 period;
1184 u16 status;
1185 u16 capability;
1186};
1187
1188
1189
1190#define ACPI_WDDT_AVAILABLE (1)
1191#define ACPI_WDDT_ACTIVE (1<<1)
1192#define ACPI_WDDT_TCO_OS_OWNED (1<<2)
1193#define ACPI_WDDT_USER_RESET (1<<11)
1194#define ACPI_WDDT_WDT_RESET (1<<12)
1195#define ACPI_WDDT_POWER_FAIL (1<<13)
1196#define ACPI_WDDT_UNKNOWN_RESET (1<<14)
1197
1198
1199
1200#define ACPI_WDDT_AUTO_RESET (1)
1201#define ACPI_WDDT_ALERT_SUPPORT (1<<1)
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213struct acpi_table_wdrt {
1214 struct acpi_table_header header;
1215 struct acpi_generic_address control_register;
1216 struct acpi_generic_address count_register;
1217 u16 pci_device_id;
1218 u16 pci_vendor_id;
1219 u8 pci_bus;
1220 u8 pci_device;
1221 u8 pci_function;
1222 u8 pci_segment;
1223 u16 max_count;
1224 u8 units;
1225};
1226
1227
1228
1229#pragma pack()
1230
1231#endif
1232