actbl.h (228110) | actbl.h (229989) |
---|---|
1/****************************************************************************** 2 * 3 * Name: actbl.h - Basic ACPI Table Definitions 4 * 5 *****************************************************************************/ 6 7/* | 1/****************************************************************************** 2 * 3 * Name: actbl.h - Basic ACPI Table Definitions 4 * 5 *****************************************************************************/ 6 7/* |
8 * Copyright (C) 2000 - 2011, Intel Corp. | 8 * Copyright (C) 2000 - 2012, 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. --- 276 unchanged lines hidden (view full) --- 293 ACPI_GENERIC_ADDRESS XPm1aEventBlock; /* 64-bit Extended Power Mgt 1a Event Reg Blk address */ 294 ACPI_GENERIC_ADDRESS XPm1bEventBlock; /* 64-bit Extended Power Mgt 1b Event Reg Blk address */ 295 ACPI_GENERIC_ADDRESS XPm1aControlBlock; /* 64-bit Extended Power Mgt 1a Control Reg Blk address */ 296 ACPI_GENERIC_ADDRESS XPm1bControlBlock; /* 64-bit Extended Power Mgt 1b Control Reg Blk address */ 297 ACPI_GENERIC_ADDRESS XPm2ControlBlock; /* 64-bit Extended Power Mgt 2 Control Reg Blk address */ 298 ACPI_GENERIC_ADDRESS XPmTimerBlock; /* 64-bit Extended Power Mgt Timer Ctrl Reg Blk address */ 299 ACPI_GENERIC_ADDRESS XGpe0Block; /* 64-bit Extended General Purpose Event 0 Reg Blk address */ 300 ACPI_GENERIC_ADDRESS XGpe1Block; /* 64-bit Extended General Purpose Event 1 Reg Blk address */ | 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. --- 276 unchanged lines hidden (view full) --- 293 ACPI_GENERIC_ADDRESS XPm1aEventBlock; /* 64-bit Extended Power Mgt 1a Event Reg Blk address */ 294 ACPI_GENERIC_ADDRESS XPm1bEventBlock; /* 64-bit Extended Power Mgt 1b Event Reg Blk address */ 295 ACPI_GENERIC_ADDRESS XPm1aControlBlock; /* 64-bit Extended Power Mgt 1a Control Reg Blk address */ 296 ACPI_GENERIC_ADDRESS XPm1bControlBlock; /* 64-bit Extended Power Mgt 1b Control Reg Blk address */ 297 ACPI_GENERIC_ADDRESS XPm2ControlBlock; /* 64-bit Extended Power Mgt 2 Control Reg Blk address */ 298 ACPI_GENERIC_ADDRESS XPmTimerBlock; /* 64-bit Extended Power Mgt Timer Ctrl Reg Blk address */ 299 ACPI_GENERIC_ADDRESS XGpe0Block; /* 64-bit Extended General Purpose Event 0 Reg Blk address */ 300 ACPI_GENERIC_ADDRESS XGpe1Block; /* 64-bit Extended General Purpose Event 1 Reg Blk address */ |
301 ACPI_GENERIC_ADDRESS SleepRegister; /* 64-bit address of the Sleep register */ | 301 ACPI_GENERIC_ADDRESS SleepControl; /* 64-bit Sleep Control register */ 302 ACPI_GENERIC_ADDRESS SleepStatus; /* 64-bit Sleep Status register */ |
302 303} ACPI_TABLE_FADT; 304 305 306/* Masks for FADT Boot Architecture Flags (BootFlags) */ 307 308#define ACPI_FADT_LEGACY_DEVICES (1) /* 00: [V2] System has LPC or ISA bus devices */ 309#define ACPI_FADT_8042 (1<<1) /* 01: [V3] System has an 8042 controller on port 60/64 */ --- 20 unchanged lines hidden (view full) --- 330#define ACPI_FADT_SLEEP_TYPE (1<<13) /* 13: [V3] Must execute native instruction after writing SLP_TYPx register */ 331#define ACPI_FADT_PCI_EXPRESS_WAKE (1<<14) /* 14: [V4] System supports PCIEXP_WAKE (STS/EN) bits (ACPI 3.0) */ 332#define ACPI_FADT_PLATFORM_CLOCK (1<<15) /* 15: [V4] OSPM should use platform-provided timer (ACPI 3.0) */ 333#define ACPI_FADT_S4_RTC_VALID (1<<16) /* 16: [V4] Contents of RTC_STS valid after S4 wake (ACPI 3.0) */ 334#define ACPI_FADT_REMOTE_POWER_ON (1<<17) /* 17: [V4] System is compatible with remote power on (ACPI 3.0) */ 335#define ACPI_FADT_APIC_CLUSTER (1<<18) /* 18: [V4] All local APICs must use cluster model (ACPI 3.0) */ 336#define ACPI_FADT_APIC_PHYSICAL (1<<19) /* 19: [V4] All local xAPICs must use physical dest mode (ACPI 3.0) */ 337#define ACPI_FADT_HW_REDUCED (1<<20) /* 20: [V5] ACPI hardware is not implemented (ACPI 5.0) */ | 303 304} ACPI_TABLE_FADT; 305 306 307/* Masks for FADT Boot Architecture Flags (BootFlags) */ 308 309#define ACPI_FADT_LEGACY_DEVICES (1) /* 00: [V2] System has LPC or ISA bus devices */ 310#define ACPI_FADT_8042 (1<<1) /* 01: [V3] System has an 8042 controller on port 60/64 */ --- 20 unchanged lines hidden (view full) --- 331#define ACPI_FADT_SLEEP_TYPE (1<<13) /* 13: [V3] Must execute native instruction after writing SLP_TYPx register */ 332#define ACPI_FADT_PCI_EXPRESS_WAKE (1<<14) /* 14: [V4] System supports PCIEXP_WAKE (STS/EN) bits (ACPI 3.0) */ 333#define ACPI_FADT_PLATFORM_CLOCK (1<<15) /* 15: [V4] OSPM should use platform-provided timer (ACPI 3.0) */ 334#define ACPI_FADT_S4_RTC_VALID (1<<16) /* 16: [V4] Contents of RTC_STS valid after S4 wake (ACPI 3.0) */ 335#define ACPI_FADT_REMOTE_POWER_ON (1<<17) /* 17: [V4] System is compatible with remote power on (ACPI 3.0) */ 336#define ACPI_FADT_APIC_CLUSTER (1<<18) /* 18: [V4] All local APICs must use cluster model (ACPI 3.0) */ 337#define ACPI_FADT_APIC_PHYSICAL (1<<19) /* 19: [V4] All local xAPICs must use physical dest mode (ACPI 3.0) */ 338#define ACPI_FADT_HW_REDUCED (1<<20) /* 20: [V5] ACPI hardware is not implemented (ACPI 5.0) */ |
338#define ACPI_FADT_PREFER_S0_IDLE (1<<21) /* 21: [V5] Use advanced idle capabilities (ACPI 5.0) */ 339#define ACPI_FADT_USE_SLEEP_REG (1<<22) /* 22: [V5] Use the sleep register for sleep (ACPI 5.0) */ | 339#define ACPI_FADT_LOW_POWER_S0 (1<<21) /* 21: [V5] S0 power savings are equal or better than S3 (ACPI 5.0) */ |
340 341 342/* Values for PreferredProfile (Prefered Power Management Profiles) */ 343 344enum AcpiPreferedPmProfiles 345{ 346 PM_UNSPECIFIED = 0, 347 PM_DESKTOP = 1, 348 PM_MOBILE = 2, 349 PM_WORKSTATION = 3, 350 PM_ENTERPRISE_SERVER = 4, 351 PM_SOHO_SERVER = 5, 352 PM_APPLIANCE_PC = 6, 353 PM_PERFORMANCE_SERVER = 7, | 340 341 342/* Values for PreferredProfile (Prefered Power Management Profiles) */ 343 344enum AcpiPreferedPmProfiles 345{ 346 PM_UNSPECIFIED = 0, 347 PM_DESKTOP = 1, 348 PM_MOBILE = 2, 349 PM_WORKSTATION = 3, 350 PM_ENTERPRISE_SERVER = 4, 351 PM_SOHO_SERVER = 5, 352 PM_APPLIANCE_PC = 6, 353 PM_PERFORMANCE_SERVER = 7, |
354 PM_SLATE = 8 | 354 PM_TABLET = 8 |
355}; 356 357 358/* Reset to default packing */ 359 360#pragma pack() 361 362 --- 35 unchanged lines hidden (view full) --- 398 * Get the remaining ACPI tables 399 */ 400#include <contrib/dev/acpica/include/actbl1.h> 401#include <contrib/dev/acpica/include/actbl2.h> 402#include <contrib/dev/acpica/include/actbl3.h> 403 404/* Macros used to generate offsets to specific table fields */ 405 | 355}; 356 357 358/* Reset to default packing */ 359 360#pragma pack() 361 362 --- 35 unchanged lines hidden (view full) --- 398 * Get the remaining ACPI tables 399 */ 400#include <contrib/dev/acpica/include/actbl1.h> 401#include <contrib/dev/acpica/include/actbl2.h> 402#include <contrib/dev/acpica/include/actbl3.h> 403 404/* Macros used to generate offsets to specific table fields */ 405 |
406#define ACPI_FADT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_FADT, f) | 406#define ACPI_FADT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_FADT, f) |
407 408/* 409 * Sizes of the various flavors of FADT. We need to look closely 410 * at the FADT length because the version number essentially tells 411 * us nothing because of many BIOS bugs where the version does not 412 * match the expected length. In other words, the length of the 413 * FADT is the bottom line as to what the version really is. 414 * 415 * For reference, the values below are as follows: 416 * FADT V1 size: 0x074 417 * FADT V2 size: 0x084 418 * FADT V3 size: 0x0F4 419 * FADT V4 size: 0x0F4 | 407 408/* 409 * Sizes of the various flavors of FADT. We need to look closely 410 * at the FADT length because the version number essentially tells 411 * us nothing because of many BIOS bugs where the version does not 412 * match the expected length. In other words, the length of the 413 * FADT is the bottom line as to what the version really is. 414 * 415 * For reference, the values below are as follows: 416 * FADT V1 size: 0x074 417 * FADT V2 size: 0x084 418 * FADT V3 size: 0x0F4 419 * FADT V4 size: 0x0F4 |
420 * FADT V5 size: 0x100 | 420 * FADT V5 size: 0x10C |
421 */ 422#define ACPI_FADT_V1_SIZE (UINT32) (ACPI_FADT_OFFSET (Flags) + 4) 423#define ACPI_FADT_V2_SIZE (UINT32) (ACPI_FADT_OFFSET (Reserved4[0]) + 3) | 421 */ 422#define ACPI_FADT_V1_SIZE (UINT32) (ACPI_FADT_OFFSET (Flags) + 4) 423#define ACPI_FADT_V2_SIZE (UINT32) (ACPI_FADT_OFFSET (Reserved4[0]) + 3) |
424#define ACPI_FADT_V3_SIZE (UINT32) (ACPI_FADT_OFFSET (SleepRegister)) | 424#define ACPI_FADT_V3_SIZE (UINT32) (ACPI_FADT_OFFSET (SleepControl)) |
425#define ACPI_FADT_V5_SIZE (UINT32) (sizeof (ACPI_TABLE_FADT)) 426 427#endif /* __ACTBL_H__ */ | 425#define ACPI_FADT_V5_SIZE (UINT32) (sizeof (ACPI_TABLE_FADT)) 426 427#endif /* __ACTBL_H__ */ |