| 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 __ACTBL3_H__ |
| 45 |
#define __ACTBL3_H__ |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
#define ACPI_SIG_SLIC "SLIC" |
| 64 |
#define ACPI_SIG_SLIT "SLIT" |
| 65 |
#define ACPI_SIG_SPCR "SPCR" |
| 66 |
#define ACPI_SIG_SPMI "SPMI" |
| 67 |
#define ACPI_SIG_SRAT "SRAT" |
| 68 |
#define ACPI_SIG_STAO "STAO" |
| 69 |
#define ACPI_SIG_TCPA "TCPA" |
| 70 |
#define ACPI_SIG_TPM2 "TPM2" |
| 71 |
#define ACPI_SIG_UEFI "UEFI" |
| 72 |
#define ACPI_SIG_VIOT "VIOT" |
| 73 |
#define ACPI_SIG_WAET "WAET" |
| 74 |
#define ACPI_SIG_WDAT "WDAT" |
| 75 |
#define ACPI_SIG_WDDT "WDDT" |
| 76 |
#define ACPI_SIG_WDRT "WDRT" |
| 77 |
#define ACPI_SIG_WPBT "WPBT" |
| 78 |
#define ACPI_SIG_WSMT "WSMT" |
| 79 |
#define ACPI_SIG_XENV "XENV" |
| 80 |
#define ACPI_SIG_XXXX "XXXX" |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
#pragma pack(1) |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
typedef struct acpi_table_slic |
| 113 |
{ |
| 114 |
ACPI_TABLE_HEADER Header; |
| 115 |
|
| 116 |
} ACPI_TABLE_SLIC; |
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
typedef struct acpi_table_slit |
| 127 |
{ |
| 128 |
ACPI_TABLE_HEADER Header; |
| 129 |
UINT64 LocalityCount; |
| 130 |
UINT8 Entry[1]; |
| 131 |
|
| 132 |
} ACPI_TABLE_SLIT; |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
typedef struct acpi_table_spcr |
| 146 |
{ |
| 147 |
ACPI_TABLE_HEADER Header; |
| 148 |
UINT8 InterfaceType; |
| 149 |
UINT8 Reserved[3]; |
| 150 |
ACPI_GENERIC_ADDRESS SerialPort; |
| 151 |
UINT8 InterruptType; |
| 152 |
UINT8 PcInterrupt; |
| 153 |
UINT32 Interrupt; |
| 154 |
UINT8 BaudRate; |
| 155 |
UINT8 Parity; |
| 156 |
UINT8 StopBits; |
| 157 |
UINT8 FlowControl; |
| 158 |
UINT8 TerminalType; |
| 159 |
UINT8 Language; |
| 160 |
UINT16 PciDeviceId; |
| 161 |
UINT16 PciVendorId; |
| 162 |
UINT8 PciBus; |
| 163 |
UINT8 PciDevice; |
| 164 |
UINT8 PciFunction; |
| 165 |
UINT32 PciFlags; |
| 166 |
UINT8 PciSegment; |
| 167 |
UINT32 UartClkFreq; |
| 168 |
UINT32 PreciseBaudrate; |
| 169 |
UINT16 NameSpaceStringLength; |
| 170 |
UINT16 NameSpaceStringOffset; |
| 171 |
char NameSpaceString[]; |
| 172 |
|
| 173 |
} ACPI_TABLE_SPCR; |
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
#define ACPI_SPCR_DO_NOT_DISABLE (1) |
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
typedef struct acpi_table_spmi |
| 194 |
{ |
| 195 |
ACPI_TABLE_HEADER Header; |
| 196 |
UINT8 InterfaceType; |
| 197 |
UINT8 Reserved; |
| 198 |
UINT16 SpecRevision; |
| 199 |
UINT8 InterruptType; |
| 200 |
UINT8 GpeNumber; |
| 201 |
UINT8 Reserved1; |
| 202 |
UINT8 PciDeviceFlag; |
| 203 |
UINT32 Interrupt; |
| 204 |
ACPI_GENERIC_ADDRESS IpmiRegister; |
| 205 |
UINT8 PciSegment; |
| 206 |
UINT8 PciBus; |
| 207 |
UINT8 PciDevice; |
| 208 |
UINT8 PciFunction; |
| 209 |
UINT8 Reserved2; |
| 210 |
|
| 211 |
} ACPI_TABLE_SPMI; |
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
enum AcpiSpmiInterfaceTypes |
| 216 |
{ |
| 217 |
ACPI_SPMI_NOT_USED = 0, |
| 218 |
ACPI_SPMI_KEYBOARD = 1, |
| 219 |
ACPI_SPMI_SMI = 2, |
| 220 |
ACPI_SPMI_BLOCK_TRANSFER = 3, |
| 221 |
ACPI_SPMI_SMBUS = 4, |
| 222 |
ACPI_SPMI_RESERVED = 5 |
| 223 |
}; |
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
typedef struct acpi_table_srat |
| 234 |
{ |
| 235 |
ACPI_TABLE_HEADER Header; |
| 236 |
UINT32 TableRevision; |
| 237 |
UINT64 Reserved; |
| 238 |
|
| 239 |
} ACPI_TABLE_SRAT; |
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
enum AcpiSratType |
| 244 |
{ |
| 245 |
ACPI_SRAT_TYPE_CPU_AFFINITY = 0, |
| 246 |
ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1, |
| 247 |
ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2, |
| 248 |
ACPI_SRAT_TYPE_GICC_AFFINITY = 3, |
| 249 |
ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4, |
| 250 |
ACPI_SRAT_TYPE_GENERIC_AFFINITY = 5, |
| 251 |
ACPI_SRAT_TYPE_GENERIC_PORT_AFFINITY = 6, |
| 252 |
ACPI_SRAT_TYPE_RINTC_AFFINITY = 7, |
| 253 |
ACPI_SRAT_TYPE_RESERVED = 8 |
| 254 |
}; |
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
typedef struct acpi_srat_cpu_affinity |
| 263 |
{ |
| 264 |
ACPI_SUBTABLE_HEADER Header; |
| 265 |
UINT8 ProximityDomainLo; |
| 266 |
UINT8 ApicId; |
| 267 |
UINT32 Flags; |
| 268 |
UINT8 LocalSapicEid; |
| 269 |
UINT8 ProximityDomainHi[3]; |
| 270 |
UINT32 ClockDomain; |
| 271 |
|
| 272 |
} ACPI_SRAT_CPU_AFFINITY; |
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
#define ACPI_SRAT_CPU_USE_AFFINITY (1) |
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
typedef struct acpi_srat_mem_affinity |
| 282 |
{ |
| 283 |
ACPI_SUBTABLE_HEADER Header; |
| 284 |
UINT32 ProximityDomain; |
| 285 |
UINT16 Reserved; |
| 286 |
UINT64 BaseAddress; |
| 287 |
UINT64 Length; |
| 288 |
UINT32 Reserved1; |
| 289 |
UINT32 Flags; |
| 290 |
UINT64 Reserved2; |
| 291 |
|
| 292 |
} ACPI_SRAT_MEM_AFFINITY; |
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
#define ACPI_SRAT_MEM_ENABLED (1) |
| 297 |
#define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1) |
| 298 |
#define ACPI_SRAT_MEM_NON_VOLATILE (1<<2) |
| 299 |
#define ACPI_SRAT_MEM_SPEC_PURPOSE (1<<3) |
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
typedef struct acpi_srat_x2apic_cpu_affinity |
| 305 |
{ |
| 306 |
ACPI_SUBTABLE_HEADER Header; |
| 307 |
UINT16 Reserved; |
| 308 |
UINT32 ProximityDomain; |
| 309 |
UINT32 ApicId; |
| 310 |
UINT32 Flags; |
| 311 |
UINT32 ClockDomain; |
| 312 |
UINT32 Reserved2; |
| 313 |
|
| 314 |
} ACPI_SRAT_X2APIC_CPU_AFFINITY; |
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
#define ACPI_SRAT_CPU_ENABLED (1) |
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
typedef struct acpi_srat_gicc_affinity |
| 324 |
{ |
| 325 |
ACPI_SUBTABLE_HEADER Header; |
| 326 |
UINT32 ProximityDomain; |
| 327 |
UINT32 AcpiProcessorUid; |
| 328 |
UINT32 Flags; |
| 329 |
UINT32 ClockDomain; |
| 330 |
|
| 331 |
} ACPI_SRAT_GICC_AFFINITY; |
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
#define ACPI_SRAT_GICC_ENABLED (1) |
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
typedef struct acpi_srat_gic_its_affinity |
| 341 |
{ |
| 342 |
ACPI_SUBTABLE_HEADER Header; |
| 343 |
UINT32 ProximityDomain; |
| 344 |
UINT16 Reserved; |
| 345 |
UINT32 ItsId; |
| 346 |
|
| 347 |
} ACPI_SRAT_GIC_ITS_AFFINITY; |
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
|
| 355 |
#define ACPI_SRAT_DEVICE_HANDLE_SIZE 16 |
| 356 |
|
| 357 |
typedef struct acpi_srat_generic_affinity |
| 358 |
{ |
| 359 |
ACPI_SUBTABLE_HEADER Header; |
| 360 |
UINT8 Reserved; |
| 361 |
UINT8 DeviceHandleType; |
| 362 |
UINT32 ProximityDomain; |
| 363 |
UINT8 DeviceHandle[ACPI_SRAT_DEVICE_HANDLE_SIZE]; |
| 364 |
UINT32 Flags; |
| 365 |
UINT32 Reserved1; |
| 366 |
|
| 367 |
} ACPI_SRAT_GENERIC_AFFINITY; |
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
#define ACPI_SRAT_GENERIC_AFFINITY_ENABLED (1) |
| 372 |
#define ACPI_SRAT_ARCHITECTURAL_TRANSACTIONS (1<<1) |
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
typedef struct acpi_srat_rintc_affinity |
| 377 |
{ |
| 378 |
ACPI_SUBTABLE_HEADER Header; |
| 379 |
UINT16 Reserved; |
| 380 |
UINT32 ProximityDomain; |
| 381 |
UINT32 AcpiProcessorUid; |
| 382 |
UINT32 Flags; |
| 383 |
UINT32 ClockDomain; |
| 384 |
|
| 385 |
} ACPI_SRAT_RINTC_AFFINITY; |
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
#define ACPI_SRAT_RINTC_ENABLED (1) |
| 390 |
|
| 391 |
|
| 392 |
|
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
typedef struct acpi_table_stao |
| 402 |
{ |
| 403 |
ACPI_TABLE_HEADER Header; |
| 404 |
UINT8 IgnoreUart; |
| 405 |
|
| 406 |
} ACPI_TABLE_STAO; |
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
|
| 418 |
|
| 419 |
|
| 420 |
|
| 421 |
|
| 422 |
|
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
typedef struct acpi_table_tcpa_hdr |
| 427 |
{ |
| 428 |
ACPI_TABLE_HEADER Header; |
| 429 |
UINT16 PlatformClass; |
| 430 |
|
| 431 |
} ACPI_TABLE_TCPA_HDR; |
| 432 |
|
| 433 |
|
| 434 |
|
| 435 |
|
| 436 |
|
| 437 |
#define ACPI_TCPA_CLIENT_TABLE 0 |
| 438 |
#define ACPI_TCPA_SERVER_TABLE 1 |
| 439 |
|
| 440 |
|
| 441 |
typedef struct acpi_table_tcpa_client |
| 442 |
{ |
| 443 |
UINT32 MinimumLogLength; |
| 444 |
UINT64 LogAddress; |
| 445 |
|
| 446 |
} ACPI_TABLE_TCPA_CLIENT; |
| 447 |
|
| 448 |
typedef struct acpi_table_tcpa_server |
| 449 |
{ |
| 450 |
UINT16 Reserved; |
| 451 |
UINT64 MinimumLogLength; |
| 452 |
UINT64 LogAddress; |
| 453 |
UINT16 SpecRevision; |
| 454 |
UINT8 DeviceFlags; |
| 455 |
UINT8 InterruptFlags; |
| 456 |
UINT8 GpeNumber; |
| 457 |
UINT8 Reserved2[3]; |
| 458 |
UINT32 GlobalInterrupt; |
| 459 |
ACPI_GENERIC_ADDRESS Address; |
| 460 |
UINT32 Reserved3; |
| 461 |
ACPI_GENERIC_ADDRESS ConfigAddress; |
| 462 |
UINT8 Group; |
| 463 |
UINT8 Bus; |
| 464 |
UINT8 Device; |
| 465 |
UINT8 Function; |
| 466 |
|
| 467 |
} ACPI_TABLE_TCPA_SERVER; |
| 468 |
|
| 469 |
|
| 470 |
|
| 471 |
#define ACPI_TCPA_PCI_DEVICE (1) |
| 472 |
#define ACPI_TCPA_BUS_PNP (1<<1) |
| 473 |
#define ACPI_TCPA_ADDRESS_VALID (1<<2) |
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
#define ACPI_TCPA_INTERRUPT_MODE (1) |
| 478 |
#define ACPI_TCPA_INTERRUPT_POLARITY (1<<1) |
| 479 |
#define ACPI_TCPA_SCI_VIA_GPE (1<<2) |
| 480 |
#define ACPI_TCPA_GLOBAL_INTERRUPT (1<<3) |
| 481 |
|
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
|
| 488 |
|
| 489 |
|
| 490 |
|
| 491 |
|
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
|
| 496 |
|
| 497 |
|
| 498 |
typedef struct acpi_table_tpm23 |
| 499 |
{ |
| 500 |
ACPI_TABLE_HEADER Header; |
| 501 |
UINT32 Reserved; |
| 502 |
UINT64 ControlAddress; |
| 503 |
UINT32 StartMethod; |
| 504 |
|
| 505 |
} ACPI_TABLE_TPM23; |
| 506 |
|
| 507 |
|
| 508 |
|
| 509 |
#define ACPI_TPM23_ACPI_START_METHOD 2 |
| 510 |
|
| 511 |
|
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
typedef struct acpi_tmp23_trailer |
| 516 |
{ |
| 517 |
UINT32 Reserved; |
| 518 |
|
| 519 |
} ACPI_TPM23_TRAILER; |
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
|
| 524 |
typedef struct acpi_table_tpm2 |
| 525 |
{ |
| 526 |
ACPI_TABLE_HEADER Header; |
| 527 |
UINT16 PlatformClass; |
| 528 |
UINT16 Reserved; |
| 529 |
UINT64 ControlAddress; |
| 530 |
UINT32 StartMethod; |
| 531 |
|
| 532 |
|
| 533 |
|
| 534 |
} ACPI_TABLE_TPM2; |
| 535 |
|
| 536 |
|
| 537 |
|
| 538 |
#define ACPI_TPM2_NOT_ALLOWED 0 |
| 539 |
#define ACPI_TPM2_RESERVED1 1 |
| 540 |
#define ACPI_TPM2_START_METHOD 2 |
| 541 |
#define ACPI_TPM2_RESERVED3 3 |
| 542 |
#define ACPI_TPM2_RESERVED4 4 |
| 543 |
#define ACPI_TPM2_RESERVED5 5 |
| 544 |
#define ACPI_TPM2_MEMORY_MAPPED 6 |
| 545 |
#define ACPI_TPM2_COMMAND_BUFFER 7 |
| 546 |
#define ACPI_TPM2_COMMAND_BUFFER_WITH_START_METHOD 8 |
| 547 |
#define ACPI_TPM2_RESERVED9 9 |
| 548 |
#define ACPI_TPM2_RESERVED10 10 |
| 549 |
#define ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC 11 |
| 550 |
#define ACPI_TPM2_RESERVED 12 |
| 551 |
#define ACPI_TPM2_COMMAND_BUFFER_WITH_PLUTON 13 |
| 552 |
#define ACPI_TPM2_CRB_WITH_ARM_FFA 15 |
| 553 |
|
| 554 |
|
| 555 |
|
| 556 |
|
| 557 |
typedef struct acpi_tpm2_trailer |
| 558 |
{ |
| 559 |
UINT8 MethodParameters[12]; |
| 560 |
UINT32 MinimumLogLength; |
| 561 |
UINT64 LogAddress; |
| 562 |
|
| 563 |
} ACPI_TPM2_TRAILER; |
| 564 |
|
| 565 |
|
| 566 |
|
| 567 |
|
| 568 |
|
| 569 |
|
| 570 |
|
| 571 |
|
| 572 |
typedef struct acpi_tpm2_arm_smc |
| 573 |
{ |
| 574 |
UINT32 GlobalInterrupt; |
| 575 |
UINT8 InterruptFlags; |
| 576 |
UINT8 OperationFlags; |
| 577 |
UINT16 Reserved; |
| 578 |
UINT32 FunctionId; |
| 579 |
|
| 580 |
} ACPI_TPM2_ARM_SMC; |
| 581 |
|
| 582 |
|
| 583 |
|
| 584 |
#define ACPI_TPM2_INTERRUPT_SUPPORT (1) |
| 585 |
|
| 586 |
|
| 587 |
|
| 588 |
#define ACPI_TPM2_IDLE_SUPPORT (1) |
| 589 |
|
| 590 |
|
| 591 |
|
| 592 |
|
| 593 |
|
| 594 |
|
| 595 |
|
| 596 |
|
| 597 |
|
| 598 |
|
| 599 |
|
| 600 |
|
| 601 |
typedef struct acpi_table_uefi |
| 602 |
{ |
| 603 |
ACPI_TABLE_HEADER Header; |
| 604 |
UINT8 Identifier[16]; |
| 605 |
UINT16 DataOffset; |
| 606 |
|
| 607 |
} ACPI_TABLE_UEFI; |
| 608 |
|
| 609 |
|
| 610 |
|
| 611 |
|
| 612 |
|
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
typedef struct acpi_table_viot |
| 618 |
{ |
| 619 |
ACPI_TABLE_HEADER Header; |
| 620 |
UINT16 NodeCount; |
| 621 |
UINT16 NodeOffset; |
| 622 |
UINT8 Reserved[8]; |
| 623 |
|
| 624 |
} ACPI_TABLE_VIOT; |
| 625 |
|
| 626 |
|
| 627 |
|
| 628 |
typedef struct acpi_viot_header |
| 629 |
{ |
| 630 |
UINT8 Type; |
| 631 |
UINT8 Reserved; |
| 632 |
UINT16 Length; |
| 633 |
|
| 634 |
} ACPI_VIOT_HEADER; |
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
enum AcpiViotNodeType |
| 639 |
{ |
| 640 |
ACPI_VIOT_NODE_PCI_RANGE = 0x01, |
| 641 |
ACPI_VIOT_NODE_MMIO = 0x02, |
| 642 |
ACPI_VIOT_NODE_VIRTIO_IOMMU_PCI = 0x03, |
| 643 |
ACPI_VIOT_NODE_VIRTIO_IOMMU_MMIO = 0x04, |
| 644 |
ACPI_VIOT_RESERVED = 0x05 |
| 645 |
}; |
| 646 |
|
| 647 |
|
| 648 |
|
| 649 |
typedef struct acpi_viot_pci_range |
| 650 |
{ |
| 651 |
ACPI_VIOT_HEADER Header; |
| 652 |
UINT32 EndpointStart; |
| 653 |
UINT16 SegmentStart; |
| 654 |
UINT16 SegmentEnd; |
| 655 |
UINT16 BdfStart; |
| 656 |
UINT16 BdfEnd; |
| 657 |
UINT16 OutputNode; |
| 658 |
UINT8 Reserved[6]; |
| 659 |
|
| 660 |
} ACPI_VIOT_PCI_RANGE; |
| 661 |
|
| 662 |
typedef struct acpi_viot_mmio |
| 663 |
{ |
| 664 |
ACPI_VIOT_HEADER Header; |
| 665 |
UINT32 Endpoint; |
| 666 |
UINT64 BaseAddress; |
| 667 |
UINT16 OutputNode; |
| 668 |
UINT8 Reserved[6]; |
| 669 |
|
| 670 |
} ACPI_VIOT_MMIO; |
| 671 |
|
| 672 |
typedef struct acpi_viot_virtio_iommu_pci |
| 673 |
{ |
| 674 |
ACPI_VIOT_HEADER Header; |
| 675 |
UINT16 Segment; |
| 676 |
UINT16 Bdf; |
| 677 |
UINT8 Reserved[8]; |
| 678 |
|
| 679 |
} ACPI_VIOT_VIRTIO_IOMMU_PCI; |
| 680 |
|
| 681 |
typedef struct acpi_viot_virtio_iommu_mmio |
| 682 |
{ |
| 683 |
ACPI_VIOT_HEADER Header; |
| 684 |
UINT8 Reserved[4]; |
| 685 |
UINT64 BaseAddress; |
| 686 |
|
| 687 |
} ACPI_VIOT_VIRTIO_IOMMU_MMIO; |
| 688 |
|
| 689 |
|
| 690 |
|
| 691 |
|
| 692 |
|
| 693 |
|
| 694 |
|
| 695 |
|
| 696 |
|
| 697 |
|
| 698 |
|
| 699 |
typedef struct acpi_table_waet |
| 700 |
{ |
| 701 |
ACPI_TABLE_HEADER Header; |
| 702 |
UINT32 Flags; |
| 703 |
|
| 704 |
} ACPI_TABLE_WAET; |
| 705 |
|
| 706 |
|
| 707 |
|
| 708 |
#define ACPI_WAET_RTC_NO_ACK (1) |
| 709 |
#define ACPI_WAET_TIMER_ONE_READ (1<<1) |
| 710 |
|
| 711 |
|
| 712 |
|
| 713 |
|
| 714 |
|
| 715 |
|
| 716 |
|
| 717 |
|
| 718 |
|
| 719 |
|
| 720 |
|
| 721 |
|
| 722 |
typedef struct acpi_table_wdat |
| 723 |
{ |
| 724 |
ACPI_TABLE_HEADER Header; |
| 725 |
UINT32 HeaderLength; |
| 726 |
UINT16 PciSegment; |
| 727 |
UINT8 PciBus; |
| 728 |
UINT8 PciDevice; |
| 729 |
UINT8 PciFunction; |
| 730 |
UINT8 Reserved[3]; |
| 731 |
UINT32 TimerPeriod; |
| 732 |
UINT32 MaxCount; |
| 733 |
UINT32 MinCount; |
| 734 |
UINT8 Flags; |
| 735 |
UINT8 Reserved2[3]; |
| 736 |
UINT32 Entries; |
| 737 |
|
| 738 |
} ACPI_TABLE_WDAT; |
| 739 |
|
| 740 |
|
| 741 |
|
| 742 |
#define ACPI_WDAT_ENABLED (1) |
| 743 |
#define ACPI_WDAT_STOPPED 0x80 |
| 744 |
|
| 745 |
|
| 746 |
|
| 747 |
|
| 748 |
typedef struct acpi_wdat_entry |
| 749 |
{ |
| 750 |
UINT8 Action; |
| 751 |
UINT8 Instruction; |
| 752 |
UINT16 Reserved; |
| 753 |
ACPI_GENERIC_ADDRESS RegisterRegion; |
| 754 |
UINT32 Value; |
| 755 |
UINT32 Mask; |
| 756 |
|
| 757 |
} ACPI_WDAT_ENTRY; |
| 758 |
|
| 759 |
|
| 760 |
|
| 761 |
enum AcpiWdatActions |
| 762 |
{ |
| 763 |
ACPI_WDAT_RESET = 1, |
| 764 |
ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4, |
| 765 |
ACPI_WDAT_GET_COUNTDOWN = 5, |
| 766 |
ACPI_WDAT_SET_COUNTDOWN = 6, |
| 767 |
ACPI_WDAT_GET_RUNNING_STATE = 8, |
| 768 |
ACPI_WDAT_SET_RUNNING_STATE = 9, |
| 769 |
ACPI_WDAT_GET_STOPPED_STATE = 10, |
| 770 |
ACPI_WDAT_SET_STOPPED_STATE = 11, |
| 771 |
ACPI_WDAT_GET_REBOOT = 16, |
| 772 |
ACPI_WDAT_SET_REBOOT = 17, |
| 773 |
ACPI_WDAT_GET_SHUTDOWN = 18, |
| 774 |
ACPI_WDAT_SET_SHUTDOWN = 19, |
| 775 |
ACPI_WDAT_GET_STATUS = 32, |
| 776 |
ACPI_WDAT_SET_STATUS = 33, |
| 777 |
ACPI_WDAT_ACTION_RESERVED = 34 |
| 778 |
}; |
| 779 |
|
| 780 |
|
| 781 |
|
| 782 |
enum AcpiWdatInstructions |
| 783 |
{ |
| 784 |
ACPI_WDAT_READ_VALUE = 0, |
| 785 |
ACPI_WDAT_READ_COUNTDOWN = 1, |
| 786 |
ACPI_WDAT_WRITE_VALUE = 2, |
| 787 |
ACPI_WDAT_WRITE_COUNTDOWN = 3, |
| 788 |
ACPI_WDAT_INSTRUCTION_RESERVED = 4, |
| 789 |
ACPI_WDAT_PRESERVE_REGISTER = 0x80 |
| 790 |
}; |
| 791 |
|
| 792 |
|
| 793 |
|
| 794 |
|
| 795 |
|
| 796 |
|
| 797 |
|
| 798 |
|
| 799 |
|
| 800 |
|
| 801 |
|
| 802 |
|
| 803 |
typedef struct acpi_table_wddt |
| 804 |
{ |
| 805 |
ACPI_TABLE_HEADER Header; |
| 806 |
UINT16 SpecVersion; |
| 807 |
UINT16 TableVersion; |
| 808 |
UINT16 PciVendorId; |
| 809 |
ACPI_GENERIC_ADDRESS Address; |
| 810 |
UINT16 MaxCount; |
| 811 |
UINT16 MinCount; |
| 812 |
UINT16 Period; |
| 813 |
UINT16 Status; |
| 814 |
UINT16 Capability; |
| 815 |
|
| 816 |
} ACPI_TABLE_WDDT; |
| 817 |
|
| 818 |
|
| 819 |
|
| 820 |
#define ACPI_WDDT_AVAILABLE (1) |
| 821 |
#define ACPI_WDDT_ACTIVE (1<<1) |
| 822 |
#define ACPI_WDDT_TCO_OS_OWNED (1<<2) |
| 823 |
#define ACPI_WDDT_USER_RESET (1<<11) |
| 824 |
#define ACPI_WDDT_WDT_RESET (1<<12) |
| 825 |
#define ACPI_WDDT_POWER_FAIL (1<<13) |
| 826 |
#define ACPI_WDDT_UNKNOWN_RESET (1<<14) |
| 827 |
|
| 828 |
|
| 829 |
|
| 830 |
#define ACPI_WDDT_AUTO_RESET (1) |
| 831 |
#define ACPI_WDDT_ALERT_SUPPORT (1<<1) |
| 832 |
|
| 833 |
|
| 834 |
|
| 835 |
|
| 836 |
|
| 837 |
|
| 838 |
|
| 839 |
|
| 840 |
|
| 841 |
|
| 842 |
|
| 843 |
|
| 844 |
typedef struct acpi_table_wdrt |
| 845 |
{ |
| 846 |
ACPI_TABLE_HEADER Header; |
| 847 |
ACPI_GENERIC_ADDRESS ControlRegister; |
| 848 |
ACPI_GENERIC_ADDRESS CountRegister; |
| 849 |
UINT16 PciDeviceId; |
| 850 |
UINT16 PciVendorId; |
| 851 |
UINT8 PciBus; |
| 852 |
UINT8 PciDevice; |
| 853 |
UINT8 PciFunction; |
| 854 |
UINT8 PciSegment; |
| 855 |
UINT16 MaxCount; |
| 856 |
UINT8 Units; |
| 857 |
|
| 858 |
} ACPI_TABLE_WDRT; |
| 859 |
|
| 860 |
|
| 861 |
|
| 862 |
|
| 863 |
|
| 864 |
|
| 865 |
|
| 866 |
|
| 867 |
|
| 868 |
|
| 869 |
|
| 870 |
typedef struct acpi_table_wpbt |
| 871 |
{ |
| 872 |
ACPI_TABLE_HEADER Header; |
| 873 |
UINT32 HandoffSize; |
| 874 |
UINT64 HandoffAddress; |
| 875 |
UINT8 Layout; |
| 876 |
UINT8 Type; |
| 877 |
UINT16 ArgumentsLength; |
| 878 |
|
| 879 |
} ACPI_TABLE_WPBT; |
| 880 |
|
| 881 |
typedef struct acpi_wpbt_unicode |
| 882 |
{ |
| 883 |
UINT16 *UnicodeString; |
| 884 |
|
| 885 |
} ACPI_WPBT_UNICODE; |
| 886 |
|
| 887 |
|
| 888 |
|
| 889 |
|
| 890 |
|
| 891 |
|
| 892 |
|
| 893 |
|
| 894 |
|
| 895 |
|
| 896 |
|
| 897 |
|
| 898 |
typedef struct acpi_table_wsmt |
| 899 |
{ |
| 900 |
ACPI_TABLE_HEADER Header; |
| 901 |
UINT32 ProtectionFlags; |
| 902 |
|
| 903 |
} ACPI_TABLE_WSMT; |
| 904 |
|
| 905 |
|
| 906 |
|
| 907 |
#define ACPI_WSMT_FIXED_COMM_BUFFERS (1) |
| 908 |
#define ACPI_WSMT_COMM_BUFFER_NESTED_PTR_PROTECTION (2) |
| 909 |
#define ACPI_WSMT_SYSTEM_RESOURCE_PROTECTION (4) |
| 910 |
|
| 911 |
|
| 912 |
|
| 913 |
|
| 914 |
|
| 915 |
|
| 916 |
|
| 917 |
|
| 918 |
|
| 919 |
|
| 920 |
|
| 921 |
typedef struct acpi_table_xenv |
| 922 |
{ |
| 923 |
ACPI_TABLE_HEADER Header; |
| 924 |
UINT64 GrantTableAddress; |
| 925 |
UINT64 GrantTableSize; |
| 926 |
UINT32 EventInterrupt; |
| 927 |
UINT8 EventFlags; |
| 928 |
|
| 929 |
} ACPI_TABLE_XENV; |
| 930 |
|
| 931 |
|
| 932 |
|
| 933 |
|
| 934 |
#pragma pack() |
| 935 |
|
| 936 |
#endif |