Rev 1498 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | /****************************************************************************** |
7 | /****************************************************************************** |
8 | * |
8 | * |
9 | * 1. Copyright Notice |
9 | * 1. Copyright Notice |
10 | * |
10 | * |
11 | * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
11 | * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
12 | * All rights reserved. |
12 | * All rights reserved. |
13 | * |
13 | * |
14 | * 2. License |
14 | * 2. License |
15 | * |
15 | * |
Line 122... | Line 122... | ||
122 | #define _COMPONENT ACPI_TABLES |
122 | #define _COMPONENT ACPI_TABLES |
123 | ACPI_MODULE_NAME ("tbfadt") |
123 | ACPI_MODULE_NAME ("tbfadt") |
Line 124... | Line 124... | ||
124 | 124 | ||
Line 125... | Line 125... | ||
125 | /* Local prototypes */ |
125 | /* Local prototypes */ |
126 | 126 | ||
127 | static inline void |
127 | static ACPI_INLINE void |
128 | AcpiTbInitGenericAddress ( |
128 | AcpiTbInitGenericAddress ( |
129 | ACPI_GENERIC_ADDRESS *GenericAddress, |
129 | ACPI_GENERIC_ADDRESS *GenericAddress, |
130 | UINT8 SpaceId, |
130 | UINT8 SpaceId, |
Line 271... | Line 271... | ||
271 | * See the ACPI specification for a full description and |
271 | * See the ACPI specification for a full description and |
272 | * definition of this structure. |
272 | * definition of this structure. |
273 | * |
273 | * |
274 | ******************************************************************************/ |
274 | ******************************************************************************/ |
Line 275... | Line 275... | ||
275 | 275 | ||
276 | static inline void |
276 | static ACPI_INLINE void |
277 | AcpiTbInitGenericAddress ( |
277 | AcpiTbInitGenericAddress ( |
278 | ACPI_GENERIC_ADDRESS *GenericAddress, |
278 | ACPI_GENERIC_ADDRESS *GenericAddress, |
279 | UINT8 SpaceId, |
279 | UINT8 SpaceId, |
280 | UINT8 ByteWidth, |
280 | UINT8 ByteWidth, |
Line 480... | Line 480... | ||
480 | * should be zero are indeed zero. This will workaround BIOSs that |
480 | * should be zero are indeed zero. This will workaround BIOSs that |
481 | * inadvertently place values in these fields. |
481 | * inadvertently place values in these fields. |
482 | * |
482 | * |
483 | * The ACPI 1.0 reserved fields that will be zeroed are the bytes located |
483 | * The ACPI 1.0 reserved fields that will be zeroed are the bytes located |
484 | * at offset 45, 55, 95, and the word located at offset 109, 110. |
484 | * at offset 45, 55, 95, and the word located at offset 109, 110. |
- | 485 | * |
|
- | 486 | * Note: The FADT revision value is unreliable. Only the length can be |
|
- | 487 | * trusted. |
|
485 | */ |
488 | */ |
486 | if (AcpiGbl_FADT.Header.Revision < 3) |
489 | if (AcpiGbl_FADT.Header.Length <= ACPI_FADT_V2_SIZE) |
487 | { |
490 | { |
488 | AcpiGbl_FADT.PreferredProfile = 0; |
491 | AcpiGbl_FADT.PreferredProfile = 0; |
489 | AcpiGbl_FADT.PstateControl = 0; |
492 | AcpiGbl_FADT.PstateControl = 0; |
490 | AcpiGbl_FADT.CstControl = 0; |
493 | AcpiGbl_FADT.CstControl = 0; |
491 | AcpiGbl_FADT.BootFlags = 0; |
494 | AcpiGbl_FADT.BootFlags = 0; |