actbl3.h (4e2f9c278ad84196991fcf6f6646a3e15967fe90) | actbl3.h (be030a576854238250d70135644cde6a0ba34b0d) |
---|---|
1/****************************************************************************** 2 * 3 * Name: actbl3.h - ACPI Table Definitions 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2012, Intel Corp. --- 72 unchanged lines hidden (view full) --- 81 82/* 83 * All tables must be byte-packed to match the ACPI specification, since 84 * the tables are provided by the system BIOS. 85 */ 86#pragma pack(1) 87 88/* | 1/****************************************************************************** 2 * 3 * Name: actbl3.h - ACPI Table Definitions 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2012, Intel Corp. --- 72 unchanged lines hidden (view full) --- 81 82/* 83 * All tables must be byte-packed to match the ACPI specification, since 84 * the tables are provided by the system BIOS. 85 */ 86#pragma pack(1) 87 88/* |
89 * Note about bitfields: The u8 type is used for bitfields in ACPI tables. 90 * This is the only type that is even remotely portable. Anything else is not 91 * portable, so do not use any other bitfield types. | 89 * Note: C bitfields are not used for this reason: 90 * 91 * "Bitfields are great and easy to read, but unfortunately the C language 92 * does not specify the layout of bitfields in memory, which means they are 93 * essentially useless for dealing with packed data in on-disk formats or 94 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me, 95 * this decision was a design error in C. Ritchie could have picked an order 96 * and stuck with it." Norman Ramsey. 97 * See http://stackoverflow.com/a/1053662/41661 |
92 */ 93 94/******************************************************************************* 95 * 96 * BGRT - Boot Graphics Resource Table (ACPI 5.0) 97 * Version 1 98 * 99 ******************************************************************************/ --- 452 unchanged lines hidden --- | 98 */ 99 100/******************************************************************************* 101 * 102 * BGRT - Boot Graphics Resource Table (ACPI 5.0) 103 * Version 1 104 * 105 ******************************************************************************/ --- 452 unchanged lines hidden --- |