ACPICA: Add minimal disassembly support for the SLIC table
[firefly-linux-kernel-4.4.55.git] / include / acpi / actbl1.h
1 /******************************************************************************
2  *
3  * Name: actbl1.h - Additional ACPI table definitions
4  *
5  *****************************************************************************/
6
7 /*
8  * Copyright (C) 2000 - 2007, R. Byron Moore
9  * All rights reserved.
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  * 1. Redistributions of source code must retain the above copyright
15  *    notice, this list of conditions, and the following disclaimer,
16  *    without modification.
17  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18  *    substantially similar to the "NO WARRANTY" disclaimer below
19  *    ("Disclaimer") and any redistribution must be conditioned upon
20  *    including a substantially similar Disclaimer requirement for further
21  *    binary redistribution.
22  * 3. Neither the names of the above-listed copyright holders nor the names
23  *    of any contributors may be used to endorse or promote products derived
24  *    from this software without specific prior written permission.
25  *
26  * Alternatively, this software may be distributed under the terms of the
27  * GNU General Public License ("GPL") version 2 as published by the Free
28  * Software Foundation.
29  *
30  * NO WARRANTY
31  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35  * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41  * POSSIBILITY OF SUCH DAMAGES.
42  */
43
44 #ifndef __ACTBL1_H__
45 #define __ACTBL1_H__
46
47 /*******************************************************************************
48  *
49  * Additional ACPI Tables
50  *
51  * These tables are not consumed directly by the ACPICA subsystem, but are
52  * included here to support device drivers and the AML disassembler.
53  *
54  ******************************************************************************/
55
56 /*
57  * Values for description table header signatures. Useful because they make
58  * it more difficult to inadvertently type in the wrong signature.
59  */
60 #define ACPI_SIG_ASF            "ASF!"  /* Alert Standard Format table */
61 #define ACPI_SIG_BOOT           "BOOT"  /* Simple Boot Flag Table */
62 #define ACPI_SIG_CPEP           "CPEP"  /* Corrected Platform Error Polling table */
63 #define ACPI_SIG_DBGP           "DBGP"  /* Debug Port table */
64 #define ACPI_SIG_DMAR           "DMAR"  /* DMA Remapping table */
65 #define ACPI_SIG_ECDT           "ECDT"  /* Embedded Controller Boot Resources Table */
66 #define ACPI_SIG_HPET           "HPET"  /* High Precision Event Timer table */
67 #define ACPI_SIG_MADT           "APIC"  /* Multiple APIC Description Table */
68 #define ACPI_SIG_MCFG           "MCFG"  /* PCI Memory Mapped Configuration table */
69 #define ACPI_SIG_SBST           "SBST"  /* Smart Battery Specification Table */
70 #define ACPI_SIG_SLIC           "SLIC"  /* Software Licensing Description Table */
71 #define ACPI_SIG_SLIT           "SLIT"  /* System Locality Distance Information Table */
72 #define ACPI_SIG_SPCR           "SPCR"  /* Serial Port Console Redirection table */
73 #define ACPI_SIG_SPMI           "SPMI"  /* Server Platform Management Interface table */
74 #define ACPI_SIG_SRAT           "SRAT"  /* System Resource Affinity Table */
75 #define ACPI_SIG_TCPA           "TCPA"  /* Trusted Computing Platform Alliance table */
76 #define ACPI_SIG_WDRT           "WDRT"  /* Watchdog Resource Table */
77
78 /*
79  * All tables must be byte-packed to match the ACPI specification, since
80  * the tables are provided by the system BIOS.
81  */
82 #pragma pack(1)
83
84 /*
85  * Note about bitfields: The u8 type is used for bitfields in ACPI tables.
86  * This is the only type that is even remotely portable. Anything else is not
87  * portable, so do not use any other bitfield types.
88  */
89
90 /* Common Sub-table header (used in MADT, SRAT, etc.) */
91
92 struct acpi_subtable_header {
93         u8 type;
94         u8 length;
95 };
96
97 /*******************************************************************************
98  *
99  * ASF - Alert Standard Format table (Signature "ASF!")
100  *
101  * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
102  *
103  ******************************************************************************/
104
105 struct acpi_table_asf {
106         struct acpi_table_header header;        /* Common ACPI table header */
107 };
108
109 /* ASF subtable header */
110
111 struct acpi_asf_header {
112         u8 type;
113         u8 reserved;
114         u16 length;
115 };
116
117 /* Values for Type field above */
118
119 enum acpi_asf_type {
120         ACPI_ASF_TYPE_INFO = 0,
121         ACPI_ASF_TYPE_ALERT = 1,
122         ACPI_ASF_TYPE_CONTROL = 2,
123         ACPI_ASF_TYPE_BOOT = 3,
124         ACPI_ASF_TYPE_ADDRESS = 4,
125         ACPI_ASF_TYPE_RESERVED = 5
126 };
127
128 /*
129  * ASF subtables
130  */
131
132 /* 0: ASF Information */
133
134 struct acpi_asf_info {
135         struct acpi_asf_header header;
136         u8 min_reset_value;
137         u8 min_poll_interval;
138         u16 system_id;
139         u32 mfg_id;
140         u8 flags;
141         u8 reserved2[3];
142 };
143
144 /* 1: ASF Alerts */
145
146 struct acpi_asf_alert {
147         struct acpi_asf_header header;
148         u8 assert_mask;
149         u8 deassert_mask;
150         u8 alerts;
151         u8 data_length;
152 };
153
154 struct acpi_asf_alert_data {
155         u8 address;
156         u8 command;
157         u8 mask;
158         u8 value;
159         u8 sensor_type;
160         u8 type;
161         u8 offset;
162         u8 source_type;
163         u8 severity;
164         u8 sensor_number;
165         u8 entity;
166         u8 instance;
167 };
168
169 /* 2: ASF Remote Control */
170
171 struct acpi_asf_remote {
172         struct acpi_asf_header header;
173         u8 controls;
174         u8 data_length;
175         u16 reserved2;
176 };
177
178 struct acpi_asf_control_data {
179         u8 function;
180         u8 address;
181         u8 command;
182         u8 value;
183 };
184
185 /* 3: ASF RMCP Boot Options */
186
187 struct acpi_asf_rmcp {
188         struct acpi_asf_header header;
189         u8 capabilities[7];
190         u8 completion_code;
191         u32 enterprise_id;
192         u8 command;
193         u16 parameter;
194         u16 boot_options;
195         u16 oem_parameters;
196 };
197
198 /* 4: ASF Address */
199
200 struct acpi_asf_address {
201         struct acpi_asf_header header;
202         u8 eprom_address;
203         u8 devices;
204 };
205
206 /*******************************************************************************
207  *
208  * BOOT - Simple Boot Flag Table
209  *
210  ******************************************************************************/
211
212 struct acpi_table_boot {
213         struct acpi_table_header header;        /* Common ACPI table header */
214         u8 cmos_index;          /* Index in CMOS RAM for the boot register */
215         u8 reserved[3];
216 };
217
218 /*******************************************************************************
219  *
220  * CPEP - Corrected Platform Error Polling table
221  *
222  ******************************************************************************/
223
224 struct acpi_table_cpep {
225         struct acpi_table_header header;        /* Common ACPI table header */
226         u64 reserved;
227 };
228
229 /* Subtable */
230
231 struct acpi_cpep_polling {
232         u8 type;
233         u8 length;
234         u8 id;                  /* Processor ID */
235         u8 eid;                 /* Processor EID */
236         u32 interval;           /* Polling interval (msec) */
237 };
238
239 /*******************************************************************************
240  *
241  * DBGP - Debug Port table
242  *
243  ******************************************************************************/
244
245 struct acpi_table_dbgp {
246         struct acpi_table_header header;        /* Common ACPI table header */
247         u8 type;                /* 0=full 16550, 1=subset of 16550 */
248         u8 reserved[3];
249         struct acpi_generic_address debug_port;
250 };
251
252 /*******************************************************************************
253  *
254  * DMAR - DMA Remapping table
255  *
256  ******************************************************************************/
257
258 struct acpi_table_dmar {
259         struct acpi_table_header header;        /* Common ACPI table header */
260         u8 width;               /* Host Address Width */
261         u8 flags;
262         u8 reserved[10];
263 };
264
265 /* DMAR subtable header */
266
267 struct acpi_dmar_header {
268         u16 type;
269         u16 length;
270 };
271
272 /* Values for subtable type in struct acpi_dmar_header */
273
274 enum acpi_dmar_type {
275         ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,
276         ACPI_DMAR_TYPE_RESERVED_MEMORY = 1,
277         ACPI_DMAR_TYPE_ATSR = 2,
278         ACPI_DMAR_TYPE_RESERVED = 3     /* 3 and greater are reserved */
279 };
280
281 struct acpi_dmar_device_scope {
282         u8 entry_type;
283         u8 length;
284         u16 reserved;
285         u8 enumeration_id;
286         u8 bus;
287 };
288
289 /* Values for entry_type in struct acpi_dmar_device_scope */
290
291 enum acpi_dmar_scope_type {
292         ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0,
293         ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1,
294         ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2,
295         ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3,
296         ACPI_DMAR_SCOPE_TYPE_HPET = 4,
297         ACPI_DMAR_SCOPE_TYPE_RESERVED = 5       /* 5 and greater are reserved */
298 };
299
300 struct acpi_dmar_pci_path {
301         u8 dev;
302         u8 fn;
303 };
304
305 /*
306  * DMAR Sub-tables, correspond to Type in struct acpi_dmar_header
307  */
308
309 /* 0: Hardware Unit Definition */
310
311 struct acpi_dmar_hardware_unit {
312         struct acpi_dmar_header header;
313         u8 flags;
314         u8 reserved;
315         u16 segment;
316         u64 address;            /* Register Base Address */
317 };
318
319 /* Flags */
320
321 #define ACPI_DMAR_INCLUDE_ALL       (1)
322
323 /* 1: Reserved Memory Defininition */
324
325 struct acpi_dmar_reserved_memory {
326         struct acpi_dmar_header header;
327         u16 reserved;
328         u16 segment;
329         u64 base_address;               /* 4_k aligned base address */
330         u64 end_address;        /* 4_k aligned limit address */
331 };
332
333 /* Flags */
334
335 #define ACPI_DMAR_ALLOW_ALL         (1)
336
337 /*******************************************************************************
338  *
339  * ECDT - Embedded Controller Boot Resources Table
340  *
341  ******************************************************************************/
342
343 struct acpi_table_ecdt {
344         struct acpi_table_header header;        /* Common ACPI table header */
345         struct acpi_generic_address control;    /* Address of EC command/status register */
346         struct acpi_generic_address data;       /* Address of EC data register */
347         u32 uid;                /* Unique ID - must be same as the EC _UID method */
348         u8 gpe;                 /* The GPE for the EC */
349         u8 id[1];               /* Full namepath of the EC in the ACPI namespace */
350 };
351
352 /*******************************************************************************
353  *
354  * HPET - High Precision Event Timer table
355  *
356  ******************************************************************************/
357
358 struct acpi_table_hpet {
359         struct acpi_table_header header;        /* Common ACPI table header */
360         u32 id;                 /* Hardware ID of event timer block */
361         struct acpi_generic_address address;    /* Address of event timer block */
362         u8 sequence;            /* HPET sequence number */
363         u16 minimum_tick;       /* Main counter min tick, periodic mode */
364         u8 flags;
365 };
366
367 /*! Flags */
368
369 #define ACPI_HPET_PAGE_PROTECT      (1) /* 00: No page protection */
370 #define ACPI_HPET_PAGE_PROTECT_4    (1<<1)      /* 01: 4KB page protected */
371 #define ACPI_HPET_PAGE_PROTECT_64   (1<<2)      /* 02: 64KB page protected */
372
373 /*! [End] no source code translation !*/
374
375 /*******************************************************************************
376  *
377  * MADT - Multiple APIC Description Table
378  *
379  ******************************************************************************/
380
381 struct acpi_table_madt {
382         struct acpi_table_header header;        /* Common ACPI table header */
383         u32 address;            /* Physical address of local APIC */
384         u32 flags;
385 };
386
387 /* Flags */
388
389 #define ACPI_MADT_PCAT_COMPAT       (1) /* 00:    System also has dual 8259s */
390
391 /* Values for PCATCompat flag */
392
393 #define ACPI_MADT_DUAL_PIC          0
394 #define ACPI_MADT_MULTIPLE_APIC     1
395
396 /* Values for subtable type in struct acpi_subtable_header */
397
398 enum acpi_madt_type {
399         ACPI_MADT_TYPE_LOCAL_APIC = 0,
400         ACPI_MADT_TYPE_IO_APIC = 1,
401         ACPI_MADT_TYPE_INTERRUPT_OVERRIDE = 2,
402         ACPI_MADT_TYPE_NMI_SOURCE = 3,
403         ACPI_MADT_TYPE_LOCAL_APIC_NMI = 4,
404         ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE = 5,
405         ACPI_MADT_TYPE_IO_SAPIC = 6,
406         ACPI_MADT_TYPE_LOCAL_SAPIC = 7,
407         ACPI_MADT_TYPE_INTERRUPT_SOURCE = 8,
408         ACPI_MADT_TYPE_RESERVED = 9     /* 9 and greater are reserved */
409 };
410
411 /*
412  * MADT Sub-tables, correspond to Type in struct acpi_subtable_header
413  */
414
415 /* 0: Processor Local APIC */
416
417 struct acpi_madt_local_apic {
418         struct acpi_subtable_header header;
419         u8 processor_id;        /* ACPI processor id */
420         u8 id;                  /* Processor's local APIC id */
421         u32 lapic_flags;
422 };
423
424 /* 1: IO APIC */
425
426 struct acpi_madt_io_apic {
427         struct acpi_subtable_header header;
428         u8 id;                  /* I/O APIC ID */
429         u8 reserved;            /* Reserved - must be zero */
430         u32 address;            /* APIC physical address */
431         u32 global_irq_base;    /* Global system interrupt where INTI lines start */
432 };
433
434 /* 2: Interrupt Override */
435
436 struct acpi_madt_interrupt_override {
437         struct acpi_subtable_header header;
438         u8 bus;                 /* 0 - ISA */
439         u8 source_irq;          /* Interrupt source (IRQ) */
440         u32 global_irq;         /* Global system interrupt */
441         u16 inti_flags;
442 };
443
444 /* 3: NMI Source */
445
446 struct acpi_madt_nmi_source {
447         struct acpi_subtable_header header;
448         u16 inti_flags;
449         u32 global_irq;         /* Global system interrupt */
450 };
451
452 /* 4: Local APIC NMI */
453
454 struct acpi_madt_local_apic_nmi {
455         struct acpi_subtable_header header;
456         u8 processor_id;        /* ACPI processor id */
457         u16 inti_flags;
458         u8 lint;                /* LINTn to which NMI is connected */
459 };
460
461 /* 5: Address Override */
462
463 struct acpi_madt_local_apic_override {
464         struct acpi_subtable_header header;
465         u16 reserved;           /* Reserved, must be zero */
466         u64 address;            /* APIC physical address */
467 };
468
469 /* 6: I/O Sapic */
470
471 struct acpi_madt_io_sapic {
472         struct acpi_subtable_header header;
473         u8 id;                  /* I/O SAPIC ID */
474         u8 reserved;            /* Reserved, must be zero */
475         u32 global_irq_base;    /* Global interrupt for SAPIC start */
476         u64 address;            /* SAPIC physical address */
477 };
478
479 /* 7: Local Sapic */
480
481 struct acpi_madt_local_sapic {
482         struct acpi_subtable_header header;
483         u8 processor_id;        /* ACPI processor id */
484         u8 id;                  /* SAPIC ID */
485         u8 eid;                 /* SAPIC EID */
486         u8 reserved[3];         /* Reserved, must be zero */
487         u32 lapic_flags;
488         u32 uid;                /* Numeric UID - ACPI 3.0 */
489         char uid_string[1];     /* String UID  - ACPI 3.0 */
490 };
491
492 /* 8: Platform Interrupt Source */
493
494 struct acpi_madt_interrupt_source {
495         struct acpi_subtable_header header;
496         u16 inti_flags;
497         u8 type;                /* 1=PMI, 2=INIT, 3=corrected */
498         u8 id;                  /* Processor ID */
499         u8 eid;                 /* Processor EID */
500         u8 io_sapic_vector;     /* Vector value for PMI interrupts */
501         u32 global_irq;         /* Global system interrupt */
502         u32 flags;              /* Interrupt Source Flags */
503 };
504
505 /* Flags field above */
506
507 #define ACPI_MADT_CPEI_OVERRIDE     (1)
508
509 /*
510  * Common flags fields for MADT subtables
511  */
512
513 /* MADT Local APIC flags (lapic_flags) */
514
515 #define ACPI_MADT_ENABLED           (1) /* 00: Processor is usable if set */
516
517 /* MADT MPS INTI flags (inti_flags) */
518
519 #define ACPI_MADT_POLARITY_MASK     (3) /* 00-01: Polarity of APIC I/O input signals */
520 #define ACPI_MADT_TRIGGER_MASK      (3<<2)      /* 02-03: Trigger mode of APIC input signals */
521
522 /* Values for MPS INTI flags */
523
524 #define ACPI_MADT_POLARITY_CONFORMS       0
525 #define ACPI_MADT_POLARITY_ACTIVE_HIGH    1
526 #define ACPI_MADT_POLARITY_RESERVED       2
527 #define ACPI_MADT_POLARITY_ACTIVE_LOW     3
528
529 #define ACPI_MADT_TRIGGER_CONFORMS        (0)
530 #define ACPI_MADT_TRIGGER_EDGE            (1<<2)
531 #define ACPI_MADT_TRIGGER_RESERVED        (2<<2)
532 #define ACPI_MADT_TRIGGER_LEVEL           (3<<2)
533
534 /*******************************************************************************
535  *
536  * MCFG - PCI Memory Mapped Configuration table and sub-table
537  *
538  ******************************************************************************/
539
540 struct acpi_table_mcfg {
541         struct acpi_table_header header;        /* Common ACPI table header */
542         u8 reserved[8];
543 };
544
545 /* Subtable */
546
547 struct acpi_mcfg_allocation {
548         u64 address;            /* Base address, processor-relative */
549         u16 pci_segment;        /* PCI segment group number */
550         u8 start_bus_number;    /* Starting PCI Bus number */
551         u8 end_bus_number;      /* Final PCI Bus number */
552         u32 reserved;
553 };
554
555 /*******************************************************************************
556  *
557  * SBST - Smart Battery Specification Table
558  *
559  ******************************************************************************/
560
561 struct acpi_table_sbst {
562         struct acpi_table_header header;        /* Common ACPI table header */
563         u32 warning_level;
564         u32 low_level;
565         u32 critical_level;
566 };
567
568 /*******************************************************************************
569  *
570  * SLIT - System Locality Distance Information Table
571  *
572  ******************************************************************************/
573
574 struct acpi_table_slit {
575         struct acpi_table_header header;        /* Common ACPI table header */
576         u64 locality_count;
577         u8 entry[1];            /* Real size = localities^2 */
578 };
579
580 /*******************************************************************************
581  *
582  * SPCR - Serial Port Console Redirection table
583  *
584  ******************************************************************************/
585
586 struct acpi_table_spcr {
587         struct acpi_table_header header;        /* Common ACPI table header */
588         u8 interface_type;      /* 0=full 16550, 1=subset of 16550 */
589         u8 reserved[3];
590         struct acpi_generic_address serial_port;
591         u8 interrupt_type;
592         u8 pc_interrupt;
593         u32 interrupt;
594         u8 baud_rate;
595         u8 parity;
596         u8 stop_bits;
597         u8 flow_control;
598         u8 terminal_type;
599         u8 reserved1;
600         u16 pci_device_id;
601         u16 pci_vendor_id;
602         u8 pci_bus;
603         u8 pci_device;
604         u8 pci_function;
605         u32 pci_flags;
606         u8 pci_segment;
607         u32 reserved2;
608 };
609
610 /*******************************************************************************
611  *
612  * SPMI - Server Platform Management Interface table
613  *
614  ******************************************************************************/
615
616 struct acpi_table_spmi {
617         struct acpi_table_header header;        /* Common ACPI table header */
618         u8 reserved;
619         u8 interface_type;
620         u16 spec_revision;      /* Version of IPMI */
621         u8 interrupt_type;
622         u8 gpe_number;          /* GPE assigned */
623         u8 reserved1;
624         u8 pci_device_flag;
625         u32 interrupt;
626         struct acpi_generic_address ipmi_register;
627         u8 pci_segment;
628         u8 pci_bus;
629         u8 pci_device;
630         u8 pci_function;
631 };
632
633 /*******************************************************************************
634  *
635  * SRAT - System Resource Affinity Table
636  *
637  ******************************************************************************/
638
639 struct acpi_table_srat {
640         struct acpi_table_header header;        /* Common ACPI table header */
641         u32 table_revision;     /* Must be value '1' */
642         u64 reserved;           /* Reserved, must be zero */
643 };
644
645 /* Values for subtable type in struct acpi_subtable_header */
646
647 enum acpi_srat_type {
648         ACPI_SRAT_TYPE_CPU_AFFINITY = 0,
649         ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1,
650         ACPI_SRAT_TYPE_RESERVED = 2
651 };
652
653 /* SRAT sub-tables */
654
655 struct acpi_srat_cpu_affinity {
656         struct acpi_subtable_header header;
657         u8 proximity_domain_lo;
658         u8 apic_id;
659         u32 flags;
660         u8 local_sapic_eid;
661         u8 proximity_domain_hi[3];
662         u32 reserved;           /* Reserved, must be zero */
663 };
664
665 /* Flags */
666
667 #define ACPI_SRAT_CPU_ENABLED       (1) /* 00: Use affinity structure */
668
669 struct acpi_srat_mem_affinity {
670         struct acpi_subtable_header header;
671         u32 proximity_domain;
672         u16 reserved;           /* Reserved, must be zero */
673         u64 base_address;
674         u64 length;
675         u32 memory_type;        /* See acpi_address_range_id */
676         u32 flags;
677         u64 reserved1;          /* Reserved, must be zero */
678 };
679
680 /* Flags */
681
682 #define ACPI_SRAT_MEM_ENABLED       (1) /* 00: Use affinity structure */
683 #define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1)      /* 01: Memory region is hot pluggable */
684 #define ACPI_SRAT_MEM_NON_VOLATILE  (1<<2)      /* 02: Memory region is non-volatile */
685
686 /*******************************************************************************
687  *
688  * TCPA - Trusted Computing Platform Alliance table
689  *
690  ******************************************************************************/
691
692 struct acpi_table_tcpa {
693         struct acpi_table_header header;        /* Common ACPI table header */
694         u16 reserved;
695         u32 max_log_length;     /* Maximum length for the event log area */
696         u64 log_address;        /* Address of the event log area */
697 };
698
699 /*******************************************************************************
700  *
701  * WDRT - Watchdog Resource Table
702  *
703  ******************************************************************************/
704
705 struct acpi_table_wdrt {
706         struct acpi_table_header header;        /* Common ACPI table header */
707         u32 header_length;      /* Watchdog Header Length */
708         u8 pci_segment;         /* PCI Segment number */
709         u8 pci_bus;             /* PCI Bus number */
710         u8 pci_device;          /* PCI Device number */
711         u8 pci_function;        /* PCI Function number */
712         u32 timer_period;       /* Period of one timer count (msec) */
713         u32 max_count;          /* Maximum counter value supported */
714         u32 min_count;          /* Minimum counter value */
715         u8 flags;
716         u8 reserved[3];
717         u32 entries;            /* Number of watchdog entries that follow */
718 };
719
720 /* Flags */
721
722 #define ACPI_WDRT_TIMER_ENABLED     (1) /* 00: Timer enabled */
723
724 /* Reset to default packing */
725
726 #pragma pack()
727
728 #endif                          /* __ACTBL1_H__ */