Subversion Repositories Kolibri OS

Rev

Rev 1498 | 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 222... Line 222...
222
    UINT8                   ExtendedChecksum;           /* Checksum of entire table (ACPI 2.0+) */
222
    UINT8                   ExtendedChecksum;           /* Checksum of entire table (ACPI 2.0+) */
223
    UINT8                   Reserved[3];                /* Reserved, must be zero */
223
    UINT8                   Reserved[3];                /* Reserved, must be zero */
Line 224... Line 224...
224
 
224
 
Line -... Line 225...
-
 
225
} ACPI_TABLE_RSDP;
-
 
226
 
-
 
227
/* Standalone struct for the ACPI 1.0 RSDP */
-
 
228
 
-
 
229
typedef struct acpi_rsdp_common
-
 
230
{
-
 
231
    char                    Signature[8];
-
 
232
    UINT8                   Checksum;
-
 
233
    char                    OemId[ACPI_OEM_ID_SIZE];
-
 
234
    UINT8                   Revision;
-
 
235
    UINT32                  RsdtPhysicalAddress;
-
 
236
 
225
} ACPI_TABLE_RSDP;
237
} ACPI_RSDP_COMMON;
-
 
238
 
-
 
239
/* Standalone struct for the extended part of the RSDP (ACPI 2.0+) */
-
 
240
 
-
 
241
typedef struct acpi_rsdp_extension
-
 
242
{
-
 
243
    UINT32                  Length;
-
 
244
    UINT64                  XsdtPhysicalAddress;
-
 
245
    UINT8                   ExtendedChecksum;
-
 
246
    UINT8                   Reserved[3];
Line 226... Line 247...
226
 
247
 
227
#define ACPI_RSDP_REV0_SIZE     20                  /* Size of original ACPI 1.0 RSDP */
248
} ACPI_RSDP_EXTENSION;
228
 
249
 
Line 446... Line 467...
446
 
467
 
Line 447... Line 468...
447
/* Macros used to generate offsets to specific table fields */
468
/* Macros used to generate offsets to specific table fields */
Line -... Line 469...
-
 
469
 
-
 
470
#define ACPI_FADT_OFFSET(f)             (UINT8) ACPI_OFFSET (ACPI_TABLE_FADT, f)
-
 
471
 
-
 
472
/*
-
 
473
 * Sizes of the various flavors of FADT. We need to look closely
-
 
474
 * at the FADT length because the version number essentially tells
-
 
475
 * us nothing because of many BIOS bugs where the version does not
-
 
476
 * match the expected length. In other words, the length of the
-
 
477
 * FADT is the bottom line as to what the version really is.
-
 
478
 *
-
 
479
 * For reference, the values below are as follows:
-
 
480
 *     FADT V1  size: 0x74
-
 
481
 *     FADT V2  size: 0x84
-
 
482
 *     FADT V3+ size: 0xF4
-
 
483
 */
-
 
484
#define ACPI_FADT_V1_SIZE       (UINT32) (ACPI_FADT_OFFSET (Flags) + 4)
448
 
485
#define ACPI_FADT_V2_SIZE       (UINT32) (ACPI_FADT_OFFSET (Reserved4[0]) + 3)