1 /****************************************************************************** 2 * 3 * Name: actbl2.h - ACPI Table Definitions (tables not in ACPI spec) 4 * 5 *****************************************************************************/ 6 7 /* 8 * Copyright (C) 2000 - 2013, Intel Corp. 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 __ACTBL2_H__ 45 #define __ACTBL2_H__ 46 47 48 /******************************************************************************* 49 * 50 * Additional ACPI Tables (2) 51 * 52 * These tables are not consumed directly by the ACPICA subsystem, but are 53 * included here to support device drivers and the AML disassembler. 54 * 55 * The tables in this file are defined by third-party specifications, and are 56 * not defined directly by the ACPI specification itself. 57 * 58 ******************************************************************************/ 59 60 61 /* 62 * Values for description table header signatures for tables defined in this 63 * file. Useful because they make it more difficult to inadvertently type in 64 * the wrong signature. 65 */ 66 #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */ 67 #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */ 68 #define ACPI_SIG_CSRT "CSRT" /* Core System Resource Table */ 69 #define ACPI_SIG_DBG2 "DBG2" /* Debug Port table type 2 */ 70 #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */ 71 #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */ 72 #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */ 73 #define ACPI_SIG_IBFT "IBFT" /* iSCSI Boot Firmware Table */ 74 #define ACPI_SIG_IVRS "IVRS" /* I/O Virtualization Reporting Structure */ 75 #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */ 76 #define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */ 77 #define ACPI_SIG_MTMR "MTMR" /* MID Timer table */ 78 #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */ 79 #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */ 80 #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */ 81 #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */ 82 #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */ 83 #define ACPI_SIG_VRTC "VRTC" /* Virtual Real Time Clock Table */ 84 #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */ 85 #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */ 86 #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */ 87 #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */ 88 89 #ifdef ACPI_UNDEFINED_TABLES 90 /* 91 * These tables have been seen in the field, but no definition has been found 92 */ 93 #define ACPI_SIG_ATKG "ATKG" 94 #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */ 95 #define ACPI_SIG_IEIT "IEIT" 96 #endif 97 98 /* 99 * All tables must be byte-packed to match the ACPI specification, since 100 * the tables are provided by the system BIOS. 101 */ 102 #pragma pack(1) 103 104 /* 105 * Note: C bitfields are not used for this reason: 106 * 107 * "Bitfields are great and easy to read, but unfortunately the C language 108 * does not specify the layout of bitfields in memory, which means they are 109 * essentially useless for dealing with packed data in on-disk formats or 110 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me, 111 * this decision was a design error in C. Ritchie could have picked an order 112 * and stuck with it." Norman Ramsey. 113 * See http://stackoverflow.com/a/1053662/41661 114 */ 115 116 117 /******************************************************************************* 118 * 119 * ASF - Alert Standard Format table (Signature "ASF!") 120 * Revision 0x10 121 * 122 * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003 123 * 124 ******************************************************************************/ 125 126 typedef struct acpi_table_asf 127 { 128 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 129 130 } ACPI_TABLE_ASF; 131 132 133 /* ASF subtable header */ 134 135 typedef struct acpi_asf_header 136 { 137 UINT8 Type; 138 UINT8 Reserved; 139 UINT16 Length; 140 141 } ACPI_ASF_HEADER; 142 143 144 /* Values for Type field above */ 145 146 enum AcpiAsfType 147 { 148 ACPI_ASF_TYPE_INFO = 0, 149 ACPI_ASF_TYPE_ALERT = 1, 150 ACPI_ASF_TYPE_CONTROL = 2, 151 ACPI_ASF_TYPE_BOOT = 3, 152 ACPI_ASF_TYPE_ADDRESS = 4, 153 ACPI_ASF_TYPE_RESERVED = 5 154 }; 155 156 /* 157 * ASF subtables 158 */ 159 160 /* 0: ASF Information */ 161 162 typedef struct acpi_asf_info 163 { 164 ACPI_ASF_HEADER Header; 165 UINT8 MinResetValue; 166 UINT8 MinPollInterval; 167 UINT16 SystemId; 168 UINT32 MfgId; 169 UINT8 Flags; 170 UINT8 Reserved2[3]; 171 172 } ACPI_ASF_INFO; 173 174 /* Masks for Flags field above */ 175 176 #define ACPI_ASF_SMBUS_PROTOCOLS (1) 177 178 179 /* 1: ASF Alerts */ 180 181 typedef struct acpi_asf_alert 182 { 183 ACPI_ASF_HEADER Header; 184 UINT8 AssertMask; 185 UINT8 DeassertMask; 186 UINT8 Alerts; 187 UINT8 DataLength; 188 189 } ACPI_ASF_ALERT; 190 191 typedef struct acpi_asf_alert_data 192 { 193 UINT8 Address; 194 UINT8 Command; 195 UINT8 Mask; 196 UINT8 Value; 197 UINT8 SensorType; 198 UINT8 Type; 199 UINT8 Offset; 200 UINT8 SourceType; 201 UINT8 Severity; 202 UINT8 SensorNumber; 203 UINT8 Entity; 204 UINT8 Instance; 205 206 } ACPI_ASF_ALERT_DATA; 207 208 209 /* 2: ASF Remote Control */ 210 211 typedef struct acpi_asf_remote 212 { 213 ACPI_ASF_HEADER Header; 214 UINT8 Controls; 215 UINT8 DataLength; 216 UINT16 Reserved2; 217 218 } ACPI_ASF_REMOTE; 219 220 typedef struct acpi_asf_control_data 221 { 222 UINT8 Function; 223 UINT8 Address; 224 UINT8 Command; 225 UINT8 Value; 226 227 } ACPI_ASF_CONTROL_DATA; 228 229 230 /* 3: ASF RMCP Boot Options */ 231 232 typedef struct acpi_asf_rmcp 233 { 234 ACPI_ASF_HEADER Header; 235 UINT8 Capabilities[7]; 236 UINT8 CompletionCode; 237 UINT32 EnterpriseId; 238 UINT8 Command; 239 UINT16 Parameter; 240 UINT16 BootOptions; 241 UINT16 OemParameters; 242 243 } ACPI_ASF_RMCP; 244 245 246 /* 4: ASF Address */ 247 248 typedef struct acpi_asf_address 249 { 250 ACPI_ASF_HEADER Header; 251 UINT8 EpromAddress; 252 UINT8 Devices; 253 254 } ACPI_ASF_ADDRESS; 255 256 257 /******************************************************************************* 258 * 259 * BOOT - Simple Boot Flag Table 260 * Version 1 261 * 262 * Conforms to the "Simple Boot Flag Specification", Version 2.1 263 * 264 ******************************************************************************/ 265 266 typedef struct acpi_table_boot 267 { 268 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 269 UINT8 CmosIndex; /* Index in CMOS RAM for the boot register */ 270 UINT8 Reserved[3]; 271 272 } ACPI_TABLE_BOOT; 273 274 275 /******************************************************************************* 276 * 277 * CSRT - Core System Resource Table 278 * Version 0 279 * 280 * Conforms to the "Core System Resource Table (CSRT)", November 14, 2011 281 * 282 ******************************************************************************/ 283 284 typedef struct acpi_table_csrt 285 { 286 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 287 288 } ACPI_TABLE_CSRT; 289 290 291 /* Resource Group subtable */ 292 293 typedef struct acpi_csrt_group 294 { 295 UINT32 Length; 296 UINT32 VendorId; 297 UINT32 SubvendorId; 298 UINT16 DeviceId; 299 UINT16 SubdeviceId; 300 UINT16 Revision; 301 UINT16 Reserved; 302 UINT32 SharedInfoLength; 303 304 /* Shared data immediately follows (Length = SharedInfoLength) */ 305 306 } ACPI_CSRT_GROUP; 307 308 /* Shared Info subtable */ 309 310 typedef struct acpi_csrt_shared_info 311 { 312 UINT16 MajorVersion; 313 UINT16 MinorVersion; 314 UINT32 MmioBaseLow; 315 UINT32 MmioBaseHigh; 316 UINT32 GsiInterrupt; 317 UINT8 InterruptPolarity; 318 UINT8 InterruptMode; 319 UINT8 NumChannels; 320 UINT8 DmaAddressWidth; 321 UINT16 BaseRequestLine; 322 UINT16 NumHandshakeSignals; 323 UINT32 MaxBlockSize; 324 325 /* Resource descriptors immediately follow (Length = Group Length - SharedInfoLength) */ 326 327 } ACPI_CSRT_SHARED_INFO; 328 329 /* Resource Descriptor subtable */ 330 331 typedef struct acpi_csrt_descriptor 332 { 333 UINT32 Length; 334 UINT16 Type; 335 UINT16 Subtype; 336 UINT32 Uid; 337 338 /* Resource-specific information immediately follows */ 339 340 } ACPI_CSRT_DESCRIPTOR; 341 342 343 /* Resource Types */ 344 345 #define ACPI_CSRT_TYPE_INTERRUPT 0x0001 346 #define ACPI_CSRT_TYPE_TIMER 0x0002 347 #define ACPI_CSRT_TYPE_DMA 0x0003 348 349 /* Resource Subtypes */ 350 351 #define ACPI_CSRT_XRUPT_LINE 0x0000 352 #define ACPI_CSRT_XRUPT_CONTROLLER 0x0001 353 #define ACPI_CSRT_TIMER 0x0000 354 #define ACPI_CSRT_DMA_CHANNEL 0x0000 355 #define ACPI_CSRT_DMA_CONTROLLER 0x0001 356 357 358 /******************************************************************************* 359 * 360 * DBG2 - Debug Port Table 2 361 * Version 0 (Both main table and subtables) 362 * 363 * Conforms to "Microsoft Debug Port Table 2 (DBG2)", May 22 2012. 364 * 365 ******************************************************************************/ 366 367 typedef struct acpi_table_dbg2 368 { 369 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 370 UINT32 InfoOffset; 371 UINT32 InfoCount; 372 373 } ACPI_TABLE_DBG2; 374 375 376 /* Debug Device Information Subtable */ 377 378 typedef struct acpi_dbg2_device 379 { 380 UINT8 Revision; 381 UINT16 Length; 382 UINT8 RegisterCount; /* Number of BaseAddress registers */ 383 UINT16 NamepathLength; 384 UINT16 NamepathOffset; 385 UINT16 OemDataLength; 386 UINT16 OemDataOffset; 387 UINT16 PortType; 388 UINT16 PortSubtype; 389 UINT16 Reserved; 390 UINT16 BaseAddressOffset; 391 UINT16 AddressSizeOffset; 392 /* 393 * Data that follows: 394 * BaseAddress (required) - Each in 12-byte Generic Address Structure format. 395 * AddressSize (required) - Array of UINT32 sizes corresponding to each BaseAddress register. 396 * Namepath (required) - Null terminated string. Single dot if not supported. 397 * OemData (optional) - Length is OemDataLength. 398 */ 399 } ACPI_DBG2_DEVICE; 400 401 /* Types for PortType field above */ 402 403 #define ACPI_DBG2_SERIAL_PORT 0x8000 404 #define ACPI_DBG2_1394_PORT 0x8001 405 #define ACPI_DBG2_USB_PORT 0x8002 406 #define ACPI_DBG2_NET_PORT 0x8003 407 408 /* Subtypes for PortSubtype field above */ 409 410 #define ACPI_DBG2_16550_COMPATIBLE 0x0000 411 #define ACPI_DBG2_16550_SUBSET 0x0001 412 413 #define ACPI_DBG2_1394_STANDARD 0x0000 414 415 #define ACPI_DBG2_USB_XHCI 0x0000 416 #define ACPI_DBG2_USB_EHCI 0x0001 417 418 419 /******************************************************************************* 420 * 421 * DBGP - Debug Port table 422 * Version 1 423 * 424 * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000 425 * 426 ******************************************************************************/ 427 428 typedef struct acpi_table_dbgp 429 { 430 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 431 UINT8 Type; /* 0=full 16550, 1=subset of 16550 */ 432 UINT8 Reserved[3]; 433 ACPI_GENERIC_ADDRESS DebugPort; 434 435 } ACPI_TABLE_DBGP; 436 437 438 /******************************************************************************* 439 * 440 * DMAR - DMA Remapping table 441 * Version 1 442 * 443 * Conforms to "Intel Virtualization Technology for Directed I/O", 444 * Version 1.2, Sept. 2008 445 * 446 ******************************************************************************/ 447 448 typedef struct acpi_table_dmar 449 { 450 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 451 UINT8 Width; /* Host Address Width */ 452 UINT8 Flags; 453 UINT8 Reserved[10]; 454 455 } ACPI_TABLE_DMAR; 456 457 /* Masks for Flags field above */ 458 459 #define ACPI_DMAR_INTR_REMAP (1) 460 461 462 /* DMAR subtable header */ 463 464 typedef struct acpi_dmar_header 465 { 466 UINT16 Type; 467 UINT16 Length; 468 469 } ACPI_DMAR_HEADER; 470 471 /* Values for subtable type in ACPI_DMAR_HEADER */ 472 473 enum AcpiDmarType 474 { 475 ACPI_DMAR_TYPE_HARDWARE_UNIT = 0, 476 ACPI_DMAR_TYPE_RESERVED_MEMORY = 1, 477 ACPI_DMAR_TYPE_ATSR = 2, 478 ACPI_DMAR_HARDWARE_AFFINITY = 3, 479 ACPI_DMAR_TYPE_RESERVED = 4 /* 4 and greater are reserved */ 480 }; 481 482 483 /* DMAR Device Scope structure */ 484 485 typedef struct acpi_dmar_device_scope 486 { 487 UINT8 EntryType; 488 UINT8 Length; 489 UINT16 Reserved; 490 UINT8 EnumerationId; 491 UINT8 Bus; 492 493 } ACPI_DMAR_DEVICE_SCOPE; 494 495 /* Values for EntryType in ACPI_DMAR_DEVICE_SCOPE */ 496 497 enum AcpiDmarScopeType 498 { 499 ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0, 500 ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1, 501 ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2, 502 ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3, 503 ACPI_DMAR_SCOPE_TYPE_HPET = 4, 504 ACPI_DMAR_SCOPE_TYPE_RESERVED = 5 /* 5 and greater are reserved */ 505 }; 506 507 typedef struct acpi_dmar_pci_path 508 { 509 UINT8 Device; 510 UINT8 Function; 511 512 } ACPI_DMAR_PCI_PATH; 513 514 515 /* 516 * DMAR Sub-tables, correspond to Type in ACPI_DMAR_HEADER 517 */ 518 519 /* 0: Hardware Unit Definition */ 520 521 typedef struct acpi_dmar_hardware_unit 522 { 523 ACPI_DMAR_HEADER Header; 524 UINT8 Flags; 525 UINT8 Reserved; 526 UINT16 Segment; 527 UINT64 Address; /* Register Base Address */ 528 529 } ACPI_DMAR_HARDWARE_UNIT; 530 531 /* Masks for Flags field above */ 532 533 #define ACPI_DMAR_INCLUDE_ALL (1) 534 535 536 /* 1: Reserved Memory Defininition */ 537 538 typedef struct acpi_dmar_reserved_memory 539 { 540 ACPI_DMAR_HEADER Header; 541 UINT16 Reserved; 542 UINT16 Segment; 543 UINT64 BaseAddress; /* 4K aligned base address */ 544 UINT64 EndAddress; /* 4K aligned limit address */ 545 546 } ACPI_DMAR_RESERVED_MEMORY; 547 548 /* Masks for Flags field above */ 549 550 #define ACPI_DMAR_ALLOW_ALL (1) 551 552 553 /* 2: Root Port ATS Capability Reporting Structure */ 554 555 typedef struct acpi_dmar_atsr 556 { 557 ACPI_DMAR_HEADER Header; 558 UINT8 Flags; 559 UINT8 Reserved; 560 UINT16 Segment; 561 562 } ACPI_DMAR_ATSR; 563 564 /* Masks for Flags field above */ 565 566 #define ACPI_DMAR_ALL_PORTS (1) 567 568 569 /* 3: Remapping Hardware Static Affinity Structure */ 570 571 typedef struct acpi_dmar_rhsa 572 { 573 ACPI_DMAR_HEADER Header; 574 UINT32 Reserved; 575 UINT64 BaseAddress; 576 UINT32 ProximityDomain; 577 578 } ACPI_DMAR_RHSA; 579 580 581 /******************************************************************************* 582 * 583 * HPET - High Precision Event Timer table 584 * Version 1 585 * 586 * Conforms to "IA-PC HPET (High Precision Event Timers) Specification", 587 * Version 1.0a, October 2004 588 * 589 ******************************************************************************/ 590 591 typedef struct acpi_table_hpet 592 { 593 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 594 UINT32 Id; /* Hardware ID of event timer block */ 595 ACPI_GENERIC_ADDRESS Address; /* Address of event timer block */ 596 UINT8 Sequence; /* HPET sequence number */ 597 UINT16 MinimumTick; /* Main counter min tick, periodic mode */ 598 UINT8 Flags; 599 600 } ACPI_TABLE_HPET; 601 602 /* Masks for Flags field above */ 603 604 #define ACPI_HPET_PAGE_PROTECT_MASK (3) 605 606 /* Values for Page Protect flags */ 607 608 enum AcpiHpetPageProtect 609 { 610 ACPI_HPET_NO_PAGE_PROTECT = 0, 611 ACPI_HPET_PAGE_PROTECT4 = 1, 612 ACPI_HPET_PAGE_PROTECT64 = 2 613 }; 614 615 616 /******************************************************************************* 617 * 618 * IBFT - Boot Firmware Table 619 * Version 1 620 * 621 * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b 622 * Specification", Version 1.01, March 1, 2007 623 * 624 * Note: It appears that this table is not intended to appear in the RSDT/XSDT. 625 * Therefore, it is not currently supported by the disassembler. 626 * 627 ******************************************************************************/ 628 629 typedef struct acpi_table_ibft 630 { 631 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 632 UINT8 Reserved[12]; 633 634 } ACPI_TABLE_IBFT; 635 636 637 /* IBFT common subtable header */ 638 639 typedef struct acpi_ibft_header 640 { 641 UINT8 Type; 642 UINT8 Version; 643 UINT16 Length; 644 UINT8 Index; 645 UINT8 Flags; 646 647 } ACPI_IBFT_HEADER; 648 649 /* Values for Type field above */ 650 651 enum AcpiIbftType 652 { 653 ACPI_IBFT_TYPE_NOT_USED = 0, 654 ACPI_IBFT_TYPE_CONTROL = 1, 655 ACPI_IBFT_TYPE_INITIATOR = 2, 656 ACPI_IBFT_TYPE_NIC = 3, 657 ACPI_IBFT_TYPE_TARGET = 4, 658 ACPI_IBFT_TYPE_EXTENSIONS = 5, 659 ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */ 660 }; 661 662 663 /* IBFT subtables */ 664 665 typedef struct acpi_ibft_control 666 { 667 ACPI_IBFT_HEADER Header; 668 UINT16 Extensions; 669 UINT16 InitiatorOffset; 670 UINT16 Nic0Offset; 671 UINT16 Target0Offset; 672 UINT16 Nic1Offset; 673 UINT16 Target1Offset; 674 675 } ACPI_IBFT_CONTROL; 676 677 typedef struct acpi_ibft_initiator 678 { 679 ACPI_IBFT_HEADER Header; 680 UINT8 SnsServer[16]; 681 UINT8 SlpServer[16]; 682 UINT8 PrimaryServer[16]; 683 UINT8 SecondaryServer[16]; 684 UINT16 NameLength; 685 UINT16 NameOffset; 686 687 } ACPI_IBFT_INITIATOR; 688 689 typedef struct acpi_ibft_nic 690 { 691 ACPI_IBFT_HEADER Header; 692 UINT8 IpAddress[16]; 693 UINT8 SubnetMaskPrefix; 694 UINT8 Origin; 695 UINT8 Gateway[16]; 696 UINT8 PrimaryDns[16]; 697 UINT8 SecondaryDns[16]; 698 UINT8 Dhcp[16]; 699 UINT16 Vlan; 700 UINT8 MacAddress[6]; 701 UINT16 PciAddress; 702 UINT16 NameLength; 703 UINT16 NameOffset; 704 705 } ACPI_IBFT_NIC; 706 707 typedef struct acpi_ibft_target 708 { 709 ACPI_IBFT_HEADER Header; 710 UINT8 TargetIpAddress[16]; 711 UINT16 TargetIpSocket; 712 UINT8 TargetBootLun[8]; 713 UINT8 ChapType; 714 UINT8 NicAssociation; 715 UINT16 TargetNameLength; 716 UINT16 TargetNameOffset; 717 UINT16 ChapNameLength; 718 UINT16 ChapNameOffset; 719 UINT16 ChapSecretLength; 720 UINT16 ChapSecretOffset; 721 UINT16 ReverseChapNameLength; 722 UINT16 ReverseChapNameOffset; 723 UINT16 ReverseChapSecretLength; 724 UINT16 ReverseChapSecretOffset; 725 726 } ACPI_IBFT_TARGET; 727 728 729 /******************************************************************************* 730 * 731 * IVRS - I/O Virtualization Reporting Structure 732 * Version 1 733 * 734 * Conforms to "AMD I/O Virtualization Technology (IOMMU) Specification", 735 * Revision 1.26, February 2009. 736 * 737 ******************************************************************************/ 738 739 typedef struct acpi_table_ivrs 740 { 741 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 742 UINT32 Info; /* Common virtualization info */ 743 UINT64 Reserved; 744 745 } ACPI_TABLE_IVRS; 746 747 /* Values for Info field above */ 748 749 #define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00 /* 7 bits, physical address size */ 750 #define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000 /* 7 bits, virtual address size */ 751 #define ACPI_IVRS_ATS_RESERVED 0x00400000 /* ATS address translation range reserved */ 752 753 754 /* IVRS subtable header */ 755 756 typedef struct acpi_ivrs_header 757 { 758 UINT8 Type; /* Subtable type */ 759 UINT8 Flags; 760 UINT16 Length; /* Subtable length */ 761 UINT16 DeviceId; /* ID of IOMMU */ 762 763 } ACPI_IVRS_HEADER; 764 765 /* Values for subtable Type above */ 766 767 enum AcpiIvrsType 768 { 769 ACPI_IVRS_TYPE_HARDWARE = 0x10, 770 ACPI_IVRS_TYPE_MEMORY1 = 0x20, 771 ACPI_IVRS_TYPE_MEMORY2 = 0x21, 772 ACPI_IVRS_TYPE_MEMORY3 = 0x22 773 }; 774 775 /* Masks for Flags field above for IVHD subtable */ 776 777 #define ACPI_IVHD_TT_ENABLE (1) 778 #define ACPI_IVHD_PASS_PW (1<<1) 779 #define ACPI_IVHD_RES_PASS_PW (1<<2) 780 #define ACPI_IVHD_ISOC (1<<3) 781 #define ACPI_IVHD_IOTLB (1<<4) 782 783 /* Masks for Flags field above for IVMD subtable */ 784 785 #define ACPI_IVMD_UNITY (1) 786 #define ACPI_IVMD_READ (1<<1) 787 #define ACPI_IVMD_WRITE (1<<2) 788 #define ACPI_IVMD_EXCLUSION_RANGE (1<<3) 789 790 791 /* 792 * IVRS subtables, correspond to Type in ACPI_IVRS_HEADER 793 */ 794 795 /* 0x10: I/O Virtualization Hardware Definition Block (IVHD) */ 796 797 typedef struct acpi_ivrs_hardware 798 { 799 ACPI_IVRS_HEADER Header; 800 UINT16 CapabilityOffset; /* Offset for IOMMU control fields */ 801 UINT64 BaseAddress; /* IOMMU control registers */ 802 UINT16 PciSegmentGroup; 803 UINT16 Info; /* MSI number and unit ID */ 804 UINT32 Reserved; 805 806 } ACPI_IVRS_HARDWARE; 807 808 /* Masks for Info field above */ 809 810 #define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */ 811 #define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, UnitID */ 812 813 814 /* 815 * Device Entries for IVHD subtable, appear after ACPI_IVRS_HARDWARE structure. 816 * Upper two bits of the Type field are the (encoded) length of the structure. 817 * Currently, only 4 and 8 byte entries are defined. 16 and 32 byte entries 818 * are reserved for future use but not defined. 819 */ 820 typedef struct acpi_ivrs_de_header 821 { 822 UINT8 Type; 823 UINT16 Id; 824 UINT8 DataSetting; 825 826 } ACPI_IVRS_DE_HEADER; 827 828 /* Length of device entry is in the top two bits of Type field above */ 829 830 #define ACPI_IVHD_ENTRY_LENGTH 0xC0 831 832 /* Values for device entry Type field above */ 833 834 enum AcpiIvrsDeviceEntryType 835 { 836 /* 4-byte device entries, all use ACPI_IVRS_DEVICE4 */ 837 838 ACPI_IVRS_TYPE_PAD4 = 0, 839 ACPI_IVRS_TYPE_ALL = 1, 840 ACPI_IVRS_TYPE_SELECT = 2, 841 ACPI_IVRS_TYPE_START = 3, 842 ACPI_IVRS_TYPE_END = 4, 843 844 /* 8-byte device entries */ 845 846 ACPI_IVRS_TYPE_PAD8 = 64, 847 ACPI_IVRS_TYPE_NOT_USED = 65, 848 ACPI_IVRS_TYPE_ALIAS_SELECT = 66, /* Uses ACPI_IVRS_DEVICE8A */ 849 ACPI_IVRS_TYPE_ALIAS_START = 67, /* Uses ACPI_IVRS_DEVICE8A */ 850 ACPI_IVRS_TYPE_EXT_SELECT = 70, /* Uses ACPI_IVRS_DEVICE8B */ 851 ACPI_IVRS_TYPE_EXT_START = 71, /* Uses ACPI_IVRS_DEVICE8B */ 852 ACPI_IVRS_TYPE_SPECIAL = 72 /* Uses ACPI_IVRS_DEVICE8C */ 853 }; 854 855 /* Values for Data field above */ 856 857 #define ACPI_IVHD_INIT_PASS (1) 858 #define ACPI_IVHD_EINT_PASS (1<<1) 859 #define ACPI_IVHD_NMI_PASS (1<<2) 860 #define ACPI_IVHD_SYSTEM_MGMT (3<<4) 861 #define ACPI_IVHD_LINT0_PASS (1<<6) 862 #define ACPI_IVHD_LINT1_PASS (1<<7) 863 864 865 /* Types 0-4: 4-byte device entry */ 866 867 typedef struct acpi_ivrs_device4 868 { 869 ACPI_IVRS_DE_HEADER Header; 870 871 } ACPI_IVRS_DEVICE4; 872 873 /* Types 66-67: 8-byte device entry */ 874 875 typedef struct acpi_ivrs_device8a 876 { 877 ACPI_IVRS_DE_HEADER Header; 878 UINT8 Reserved1; 879 UINT16 UsedId; 880 UINT8 Reserved2; 881 882 } ACPI_IVRS_DEVICE8A; 883 884 /* Types 70-71: 8-byte device entry */ 885 886 typedef struct acpi_ivrs_device8b 887 { 888 ACPI_IVRS_DE_HEADER Header; 889 UINT32 ExtendedData; 890 891 } ACPI_IVRS_DEVICE8B; 892 893 /* Values for ExtendedData above */ 894 895 #define ACPI_IVHD_ATS_DISABLED (1<<31) 896 897 /* Type 72: 8-byte device entry */ 898 899 typedef struct acpi_ivrs_device8c 900 { 901 ACPI_IVRS_DE_HEADER Header; 902 UINT8 Handle; 903 UINT16 UsedId; 904 UINT8 Variety; 905 906 } ACPI_IVRS_DEVICE8C; 907 908 /* Values for Variety field above */ 909 910 #define ACPI_IVHD_IOAPIC 1 911 #define ACPI_IVHD_HPET 2 912 913 914 /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition Block (IVMD) */ 915 916 typedef struct acpi_ivrs_memory 917 { 918 ACPI_IVRS_HEADER Header; 919 UINT16 AuxData; 920 UINT64 Reserved; 921 UINT64 StartAddress; 922 UINT64 MemoryLength; 923 924 } ACPI_IVRS_MEMORY; 925 926 927 /******************************************************************************* 928 * 929 * MCFG - PCI Memory Mapped Configuration table and sub-table 930 * Version 1 931 * 932 * Conforms to "PCI Firmware Specification", Revision 3.0, June 20, 2005 933 * 934 ******************************************************************************/ 935 936 typedef struct acpi_table_mcfg 937 { 938 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 939 UINT8 Reserved[8]; 940 941 } ACPI_TABLE_MCFG; 942 943 944 /* Subtable */ 945 946 typedef struct acpi_mcfg_allocation 947 { 948 UINT64 Address; /* Base address, processor-relative */ 949 UINT16 PciSegment; /* PCI segment group number */ 950 UINT8 StartBusNumber; /* Starting PCI Bus number */ 951 UINT8 EndBusNumber; /* Final PCI Bus number */ 952 UINT32 Reserved; 953 954 } ACPI_MCFG_ALLOCATION; 955 956 957 /******************************************************************************* 958 * 959 * MCHI - Management Controller Host Interface Table 960 * Version 1 961 * 962 * Conforms to "Management Component Transport Protocol (MCTP) Host 963 * Interface Specification", Revision 1.0.0a, October 13, 2009 964 * 965 ******************************************************************************/ 966 967 typedef struct acpi_table_mchi 968 { 969 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 970 UINT8 InterfaceType; 971 UINT8 Protocol; 972 UINT64 ProtocolData; 973 UINT8 InterruptType; 974 UINT8 Gpe; 975 UINT8 PciDeviceFlag; 976 UINT32 GlobalInterrupt; 977 ACPI_GENERIC_ADDRESS ControlRegister; 978 UINT8 PciSegment; 979 UINT8 PciBus; 980 UINT8 PciDevice; 981 UINT8 PciFunction; 982 983 } ACPI_TABLE_MCHI; 984 985 986 /******************************************************************************* 987 * 988 * MTMR - MID Timer Table 989 * Version 1 990 * 991 * Conforms to "Simple Firmware Interface Specification", 992 * Draft 0.8.2, Oct 19, 2010 993 * NOTE: The ACPI MTMR is equivalent to the SFI MTMR table. 994 * 995 ******************************************************************************/ 996 997 typedef struct acpi_table_mtmr 998 { 999 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 1000 1001 } ACPI_TABLE_MTMR; 1002 1003 /* MTMR entry */ 1004 1005 typedef struct acpi_mtmr_entry 1006 { 1007 ACPI_GENERIC_ADDRESS PhysicalAddress; 1008 UINT32 Frequency; 1009 UINT32 Irq; 1010 1011 } ACPI_MTMR_ENTRY; 1012 1013 1014 /******************************************************************************* 1015 * 1016 * SLIC - Software Licensing Description Table 1017 * Version 1 1018 * 1019 * Conforms to "OEM Activation 2.0 for Windows Vista Operating Systems", 1020 * Copyright 2006 1021 * 1022 ******************************************************************************/ 1023 1024 /* Basic SLIC table is only the common ACPI header */ 1025 1026 typedef struct acpi_table_slic 1027 { 1028 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 1029 1030 } ACPI_TABLE_SLIC; 1031 1032 1033 /* Common SLIC subtable header */ 1034 1035 typedef struct acpi_slic_header 1036 { 1037 UINT32 Type; 1038 UINT32 Length; 1039 1040 } ACPI_SLIC_HEADER; 1041 1042 /* Values for Type field above */ 1043 1044 enum AcpiSlicType 1045 { 1046 ACPI_SLIC_TYPE_PUBLIC_KEY = 0, 1047 ACPI_SLIC_TYPE_WINDOWS_MARKER = 1, 1048 ACPI_SLIC_TYPE_RESERVED = 2 /* 2 and greater are reserved */ 1049 }; 1050 1051 1052 /* 1053 * SLIC Sub-tables, correspond to Type in ACPI_SLIC_HEADER 1054 */ 1055 1056 /* 0: Public Key Structure */ 1057 1058 typedef struct acpi_slic_key 1059 { 1060 ACPI_SLIC_HEADER Header; 1061 UINT8 KeyType; 1062 UINT8 Version; 1063 UINT16 Reserved; 1064 UINT32 Algorithm; 1065 char Magic[4]; 1066 UINT32 BitLength; 1067 UINT32 Exponent; 1068 UINT8 Modulus[128]; 1069 1070 } ACPI_SLIC_KEY; 1071 1072 1073 /* 1: Windows Marker Structure */ 1074 1075 typedef struct acpi_slic_marker 1076 { 1077 ACPI_SLIC_HEADER Header; 1078 UINT32 Version; 1079 char OemId[ACPI_OEM_ID_SIZE]; /* ASCII OEM identification */ 1080 char OemTableId[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */ 1081 char WindowsFlag[8]; 1082 UINT32 SlicVersion; 1083 UINT8 Reserved[16]; 1084 UINT8 Signature[128]; 1085 1086 } ACPI_SLIC_MARKER; 1087 1088 1089 /******************************************************************************* 1090 * 1091 * SPCR - Serial Port Console Redirection table 1092 * Version 1 1093 * 1094 * Conforms to "Serial Port Console Redirection Table", 1095 * Version 1.00, January 11, 2002 1096 * 1097 ******************************************************************************/ 1098 1099 typedef struct acpi_table_spcr 1100 { 1101 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 1102 UINT8 InterfaceType; /* 0=full 16550, 1=subset of 16550 */ 1103 UINT8 Reserved[3]; 1104 ACPI_GENERIC_ADDRESS SerialPort; 1105 UINT8 InterruptType; 1106 UINT8 PcInterrupt; 1107 UINT32 Interrupt; 1108 UINT8 BaudRate; 1109 UINT8 Parity; 1110 UINT8 StopBits; 1111 UINT8 FlowControl; 1112 UINT8 TerminalType; 1113 UINT8 Reserved1; 1114 UINT16 PciDeviceId; 1115 UINT16 PciVendorId; 1116 UINT8 PciBus; 1117 UINT8 PciDevice; 1118 UINT8 PciFunction; 1119 UINT32 PciFlags; 1120 UINT8 PciSegment; 1121 UINT32 Reserved2; 1122 1123 } ACPI_TABLE_SPCR; 1124 1125 /* Masks for PciFlags field above */ 1126 1127 #define ACPI_SPCR_DO_NOT_DISABLE (1) 1128 1129 1130 /******************************************************************************* 1131 * 1132 * SPMI - Server Platform Management Interface table 1133 * Version 5 1134 * 1135 * Conforms to "Intelligent Platform Management Interface Specification 1136 * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with 1137 * June 12, 2009 markup. 1138 * 1139 ******************************************************************************/ 1140 1141 typedef struct acpi_table_spmi 1142 { 1143 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 1144 UINT8 InterfaceType; 1145 UINT8 Reserved; /* Must be 1 */ 1146 UINT16 SpecRevision; /* Version of IPMI */ 1147 UINT8 InterruptType; 1148 UINT8 GpeNumber; /* GPE assigned */ 1149 UINT8 Reserved1; 1150 UINT8 PciDeviceFlag; 1151 UINT32 Interrupt; 1152 ACPI_GENERIC_ADDRESS IpmiRegister; 1153 UINT8 PciSegment; 1154 UINT8 PciBus; 1155 UINT8 PciDevice; 1156 UINT8 PciFunction; 1157 UINT8 Reserved2; 1158 1159 } ACPI_TABLE_SPMI; 1160 1161 /* Values for InterfaceType above */ 1162 1163 enum AcpiSpmiInterfaceTypes 1164 { 1165 ACPI_SPMI_NOT_USED = 0, 1166 ACPI_SPMI_KEYBOARD = 1, 1167 ACPI_SPMI_SMI = 2, 1168 ACPI_SPMI_BLOCK_TRANSFER = 3, 1169 ACPI_SPMI_SMBUS = 4, 1170 ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */ 1171 }; 1172 1173 1174 /******************************************************************************* 1175 * 1176 * TCPA - Trusted Computing Platform Alliance table 1177 * Version 1 1178 * 1179 * Conforms to "TCG PC Specific Implementation Specification", 1180 * Version 1.1, August 18, 2003 1181 * 1182 ******************************************************************************/ 1183 1184 typedef struct acpi_table_tcpa 1185 { 1186 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 1187 UINT16 Reserved; 1188 UINT32 MaxLogLength; /* Maximum length for the event log area */ 1189 UINT64 LogAddress; /* Address of the event log area */ 1190 1191 } ACPI_TABLE_TCPA; 1192 1193 1194 /******************************************************************************* 1195 * 1196 * UEFI - UEFI Boot optimization Table 1197 * Version 1 1198 * 1199 * Conforms to "Unified Extensible Firmware Interface Specification", 1200 * Version 2.3, May 8, 2009 1201 * 1202 ******************************************************************************/ 1203 1204 typedef struct acpi_table_uefi 1205 { 1206 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 1207 UINT8 Identifier[16]; /* UUID identifier */ 1208 UINT16 DataOffset; /* Offset of remaining data in table */ 1209 1210 } ACPI_TABLE_UEFI; 1211 1212 1213 /******************************************************************************* 1214 * 1215 * VRTC - Virtual Real Time Clock Table 1216 * Version 1 1217 * 1218 * Conforms to "Simple Firmware Interface Specification", 1219 * Draft 0.8.2, Oct 19, 2010 1220 * NOTE: The ACPI VRTC is equivalent to The SFI MRTC table. 1221 * 1222 ******************************************************************************/ 1223 1224 typedef struct acpi_table_vrtc 1225 { 1226 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 1227 1228 } ACPI_TABLE_VRTC; 1229 1230 /* VRTC entry */ 1231 1232 typedef struct acpi_vrtc_entry 1233 { 1234 ACPI_GENERIC_ADDRESS PhysicalAddress; 1235 UINT32 Irq; 1236 1237 } ACPI_VRTC_ENTRY; 1238 1239 1240 /******************************************************************************* 1241 * 1242 * WAET - Windows ACPI Emulated devices Table 1243 * Version 1 1244 * 1245 * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009 1246 * 1247 ******************************************************************************/ 1248 1249 typedef struct acpi_table_waet 1250 { 1251 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 1252 UINT32 Flags; 1253 1254 } ACPI_TABLE_WAET; 1255 1256 /* Masks for Flags field above */ 1257 1258 #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */ 1259 #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */ 1260 1261 1262 /******************************************************************************* 1263 * 1264 * WDAT - Watchdog Action Table 1265 * Version 1 1266 * 1267 * Conforms to "Hardware Watchdog Timers Design Specification", 1268 * Copyright 2006 Microsoft Corporation. 1269 * 1270 ******************************************************************************/ 1271 1272 typedef struct acpi_table_wdat 1273 { 1274 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 1275 UINT32 HeaderLength; /* Watchdog Header Length */ 1276 UINT16 PciSegment; /* PCI Segment number */ 1277 UINT8 PciBus; /* PCI Bus number */ 1278 UINT8 PciDevice; /* PCI Device number */ 1279 UINT8 PciFunction; /* PCI Function number */ 1280 UINT8 Reserved[3]; 1281 UINT32 TimerPeriod; /* Period of one timer count (msec) */ 1282 UINT32 MaxCount; /* Maximum counter value supported */ 1283 UINT32 MinCount; /* Minimum counter value */ 1284 UINT8 Flags; 1285 UINT8 Reserved2[3]; 1286 UINT32 Entries; /* Number of watchdog entries that follow */ 1287 1288 } ACPI_TABLE_WDAT; 1289 1290 /* Masks for Flags field above */ 1291 1292 #define ACPI_WDAT_ENABLED (1) 1293 #define ACPI_WDAT_STOPPED 0x80 1294 1295 1296 /* WDAT Instruction Entries (actions) */ 1297 1298 typedef struct acpi_wdat_entry 1299 { 1300 UINT8 Action; 1301 UINT8 Instruction; 1302 UINT16 Reserved; 1303 ACPI_GENERIC_ADDRESS RegisterRegion; 1304 UINT32 Value; /* Value used with Read/Write register */ 1305 UINT32 Mask; /* Bitmask required for this register instruction */ 1306 1307 } ACPI_WDAT_ENTRY; 1308 1309 /* Values for Action field above */ 1310 1311 enum AcpiWdatActions 1312 { 1313 ACPI_WDAT_RESET = 1, 1314 ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4, 1315 ACPI_WDAT_GET_COUNTDOWN = 5, 1316 ACPI_WDAT_SET_COUNTDOWN = 6, 1317 ACPI_WDAT_GET_RUNNING_STATE = 8, 1318 ACPI_WDAT_SET_RUNNING_STATE = 9, 1319 ACPI_WDAT_GET_STOPPED_STATE = 10, 1320 ACPI_WDAT_SET_STOPPED_STATE = 11, 1321 ACPI_WDAT_GET_REBOOT = 16, 1322 ACPI_WDAT_SET_REBOOT = 17, 1323 ACPI_WDAT_GET_SHUTDOWN = 18, 1324 ACPI_WDAT_SET_SHUTDOWN = 19, 1325 ACPI_WDAT_GET_STATUS = 32, 1326 ACPI_WDAT_SET_STATUS = 33, 1327 ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */ 1328 }; 1329 1330 /* Values for Instruction field above */ 1331 1332 enum AcpiWdatInstructions 1333 { 1334 ACPI_WDAT_READ_VALUE = 0, 1335 ACPI_WDAT_READ_COUNTDOWN = 1, 1336 ACPI_WDAT_WRITE_VALUE = 2, 1337 ACPI_WDAT_WRITE_COUNTDOWN = 3, 1338 ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */ 1339 ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */ 1340 }; 1341 1342 1343 /******************************************************************************* 1344 * 1345 * WDDT - Watchdog Descriptor Table 1346 * Version 1 1347 * 1348 * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)", 1349 * Version 001, September 2002 1350 * 1351 ******************************************************************************/ 1352 1353 typedef struct acpi_table_wddt 1354 { 1355 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 1356 UINT16 SpecVersion; 1357 UINT16 TableVersion; 1358 UINT16 PciVendorId; 1359 ACPI_GENERIC_ADDRESS Address; 1360 UINT16 MaxCount; /* Maximum counter value supported */ 1361 UINT16 MinCount; /* Minimum counter value supported */ 1362 UINT16 Period; 1363 UINT16 Status; 1364 UINT16 Capability; 1365 1366 } ACPI_TABLE_WDDT; 1367 1368 /* Flags for Status field above */ 1369 1370 #define ACPI_WDDT_AVAILABLE (1) 1371 #define ACPI_WDDT_ACTIVE (1<<1) 1372 #define ACPI_WDDT_TCO_OS_OWNED (1<<2) 1373 #define ACPI_WDDT_USER_RESET (1<<11) 1374 #define ACPI_WDDT_WDT_RESET (1<<12) 1375 #define ACPI_WDDT_POWER_FAIL (1<<13) 1376 #define ACPI_WDDT_UNKNOWN_RESET (1<<14) 1377 1378 /* Flags for Capability field above */ 1379 1380 #define ACPI_WDDT_AUTO_RESET (1) 1381 #define ACPI_WDDT_ALERT_SUPPORT (1<<1) 1382 1383 1384 /******************************************************************************* 1385 * 1386 * WDRT - Watchdog Resource Table 1387 * Version 1 1388 * 1389 * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003", 1390 * Version 1.01, August 28, 2006 1391 * 1392 ******************************************************************************/ 1393 1394 typedef struct acpi_table_wdrt 1395 { 1396 ACPI_TABLE_HEADER Header; /* Common ACPI table header */ 1397 ACPI_GENERIC_ADDRESS ControlRegister; 1398 ACPI_GENERIC_ADDRESS CountRegister; 1399 UINT16 PciDeviceId; 1400 UINT16 PciVendorId; 1401 UINT8 PciBus; /* PCI Bus number */ 1402 UINT8 PciDevice; /* PCI Device number */ 1403 UINT8 PciFunction; /* PCI Function number */ 1404 UINT8 PciSegment; /* PCI Segment number */ 1405 UINT16 MaxCount; /* Maximum counter value supported */ 1406 UINT8 Units; 1407 1408 } ACPI_TABLE_WDRT; 1409 1410 1411 /* Reset to default packing */ 1412 1413 #pragma pack() 1414 1415 #endif /* __ACTBL2_H__ */ 1416