Use __packed.
This commit is contained in:
parent
9a171f4fc4
commit
add448e4e7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104721
@ -44,7 +44,7 @@ struct ACPIgas {
|
|||||||
u_int8_t register_bit_offset;
|
u_int8_t register_bit_offset;
|
||||||
u_int8_t res;
|
u_int8_t res;
|
||||||
u_int64_t address;
|
u_int64_t address;
|
||||||
} __attribute__((packed));
|
} __packed;
|
||||||
|
|
||||||
/* Root System Description Pointer */
|
/* Root System Description Pointer */
|
||||||
struct ACPIrsdp {
|
struct ACPIrsdp {
|
||||||
@ -53,7 +53,7 @@ struct ACPIrsdp {
|
|||||||
u_char oem[6];
|
u_char oem[6];
|
||||||
u_char res;
|
u_char res;
|
||||||
u_int32_t addr;
|
u_int32_t addr;
|
||||||
} __attribute__((packed));
|
} __packed;
|
||||||
|
|
||||||
/* System Description Table */
|
/* System Description Table */
|
||||||
struct ACPIsdt {
|
struct ACPIsdt {
|
||||||
@ -68,7 +68,7 @@ struct ACPIsdt {
|
|||||||
u_int32_t crerev;
|
u_int32_t crerev;
|
||||||
#define SIZEOF_SDT_HDR 36 /* struct size except body */
|
#define SIZEOF_SDT_HDR 36 /* struct size except body */
|
||||||
u_int32_t body[1];/* This member should be casted */
|
u_int32_t body[1];/* This member should be casted */
|
||||||
} __attribute__((packed));
|
} __packed;
|
||||||
|
|
||||||
/* Fixed ACPI Description Table (body) */
|
/* Fixed ACPI Description Table (body) */
|
||||||
struct FACPbody {
|
struct FACPbody {
|
||||||
@ -135,7 +135,7 @@ struct FACPbody {
|
|||||||
struct ACPIgas x_pm_tmr_blk;
|
struct ACPIgas x_pm_tmr_blk;
|
||||||
struct ACPIgas x_gpe0_blk;
|
struct ACPIgas x_gpe0_blk;
|
||||||
struct ACPIgas x_gpe1_blk;
|
struct ACPIgas x_gpe1_blk;
|
||||||
} __attribute__((packed));
|
} __packed;
|
||||||
|
|
||||||
/* Firmware ACPI Control Structure */
|
/* Firmware ACPI Control Structure */
|
||||||
struct FACS {
|
struct FACS {
|
||||||
@ -154,7 +154,7 @@ struct FACS {
|
|||||||
u_int32_t flags; /* bit field */
|
u_int32_t flags; /* bit field */
|
||||||
#define ACPI_FACS_FLAG_S4BIOS_F 1 /* Supports S4BIOS_SEQ */
|
#define ACPI_FACS_FLAG_S4BIOS_F 1 /* Supports S4BIOS_SEQ */
|
||||||
char reserved[40];
|
char reserved[40];
|
||||||
} __attribute__((packed));
|
} __packed;
|
||||||
|
|
||||||
void *acpi_map_physical(vm_offset_t, size_t);
|
void *acpi_map_physical(vm_offset_t, size_t);
|
||||||
struct ACPIrsdp *acpi_find_rsd_ptr(void);
|
struct ACPIrsdp *acpi_find_rsd_ptr(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user