Skip to content

Commit

Permalink
ACPICA: ACPI 4.0: Changes for existing ACPI tables.
Browse files Browse the repository at this point in the history
FACS: new flag and new OspmFlags field.
SRAT: x2APIC - add ClockDomain field to descriptor #2

Includes header and disassembler support.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Bob Moore authored and Len Brown committed Aug 27, 2009
1 parent 8d590c7 commit eb2289b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
19 changes: 13 additions & 6 deletions include/acpi/actbl.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,24 @@ struct acpi_table_facs {
u32 flags;
u64 xfirmware_waking_vector; /* 64-bit version of the Firmware Waking Vector (ACPI 2.0+) */
u8 version; /* Version of this table (ACPI 2.0+) */
u8 reserved[31]; /* Reserved, must be zero */
u8 reserved[3]; /* Reserved, must be zero */
u32 ospm_flags; /* Flags to be set by OSPM (ACPI 4.0) */
u8 reserved1[24]; /* Reserved, must be zero */
};

/* Flag macros */
/* global_lock flags */

#define ACPI_GLOCK_PENDING (1) /* 00: Pending global lock ownership */
#define ACPI_GLOCK_OWNED (1<<1) /* 01: Global lock is owned */

/* Flags */

#define ACPI_FACS_S4_BIOS_PRESENT (1) /* 00: S4BIOS support is present */
#define ACPI_FACS_S4_BIOS_PRESENT (1) /* 00: S4BIOS support is present */
#define ACPI_FACS_64BIT_WAKE (1<<1) /* 01: 64-bit wake vector supported (ACPI 4.0) */

/* Global lock flags */
/* ospm_flags */

#define ACPI_GLOCK_PENDING 0x01 /* 00: Pending global lock ownership */
#define ACPI_GLOCK_OWNED 0x02 /* 01: Global lock is owned */
#define ACPI_FACS_64BIT_ENVIRONMENT (1) /* 00: 64-bit wake environment is required (ACPI 4.0) */

/*******************************************************************************
*
Expand Down
8 changes: 5 additions & 3 deletions include/acpi/actbl1.h
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ struct acpi_madt_interrupt_source {

#define ACPI_MADT_CPEI_OVERRIDE (1)

/* 9: Processor Local X2_APIC (07/2008) */
/* 9: Processor Local X2APIC (ACPI 4.0) */

struct acpi_madt_local_x2apic {
struct acpi_subtable_header header;
Expand All @@ -1021,7 +1021,7 @@ struct acpi_madt_local_x2apic {
u32 uid; /* ACPI processor UID */
};

/* 10: Local X2APIC NMI (07/2008) */
/* 10: Local X2APIC NMI (ACPI 4.0) */

struct acpi_madt_local_x2apic_nmi {
struct acpi_subtable_header header;
Expand Down Expand Up @@ -1211,14 +1211,16 @@ struct acpi_srat_mem_affinity {
#define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1) /* 01: Memory region is hot pluggable */
#define ACPI_SRAT_MEM_NON_VOLATILE (1<<2) /* 02: Memory region is non-volatile */

/* 2: Processor Local X2_APIC Affinity (07/2008) */
/* 2: Processor Local X2_APIC Affinity (ACPI 4.0) */

struct acpi_srat_x2apic_cpu_affinity {
struct acpi_subtable_header header;
u16 reserved; /* Reserved, must be zero */
u32 proximity_domain;
u32 apic_id;
u32 flags;
u32 clock_domain;
u32 reserved2;
};

/* Flags for struct acpi_srat_cpu_affinity and struct acpi_srat_x2apic_cpu_affinity */
Expand Down

0 comments on commit eb2289b

Please sign in to comment.