actbl1.h (0b6c404a07e3240b95aa5682fb8fd57c41609d7a) actbl1.h (be030a576854238250d70135644cde6a0ba34b0d)
1/******************************************************************************
2 *
3 * Name: actbl1.h - Additional ACPI table definitions
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.

--- 65 unchanged lines hidden (view full) ---

74
75/*
76 * All tables must be byte-packed to match the ACPI specification, since
77 * the tables are provided by the system BIOS.
78 */
79#pragma pack(1)
80
81/*
1/******************************************************************************
2 *
3 * Name: actbl1.h - Additional ACPI table definitions
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.

--- 65 unchanged lines hidden (view full) ---

74
75/*
76 * All tables must be byte-packed to match the ACPI specification, since
77 * the tables are provided by the system BIOS.
78 */
79#pragma pack(1)
80
81/*
82 * Note about bitfields: The u8 type is used for bitfields in ACPI tables.
83 * This is the only type that is even remotely portable. Anything else is not
84 * portable, so do not use any other bitfield types.
82 * Note: C bitfields are not used for this reason:
83 *
84 * "Bitfields are great and easy to read, but unfortunately the C language
85 * does not specify the layout of bitfields in memory, which means they are
86 * essentially useless for dealing with packed data in on-disk formats or
87 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
88 * this decision was a design error in C. Ritchie could have picked an order
89 * and stuck with it." Norman Ramsey.
90 * See http://stackoverflow.com/a/1053662/41661
85 */
86
87/*******************************************************************************
88 *
89 * Common subtable headers
90 *
91 ******************************************************************************/
92

--- 871 unchanged lines hidden ---
91 */
92
93/*******************************************************************************
94 *
95 * Common subtable headers
96 *
97 ******************************************************************************/
98

--- 871 unchanged lines hidden ---