Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/include/pc/bios.h
- This file was copied to sys/dev/smbios/smbios.h.
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
/* Structure extended to include extended attribute field in ACPI 3.0. */ | /* Structure extended to include extended attribute field in ACPI 3.0. */ | ||||
struct bios_smap_xattr { | struct bios_smap_xattr { | ||||
u_int64_t base; | u_int64_t base; | ||||
u_int64_t length; | u_int64_t length; | ||||
u_int32_t type; | u_int32_t type; | ||||
u_int32_t xattr; | u_int32_t xattr; | ||||
} __packed; | } __packed; | ||||
/* | |||||
* System Management BIOS | |||||
*/ | |||||
#define SMBIOS_START 0xf0000 | |||||
#define SMBIOS_STEP 0x10 | |||||
#define SMBIOS_OFF 0 | |||||
#define SMBIOS_LEN 4 | |||||
#define SMBIOS_SIG "_SM_" | |||||
struct smbios_eps { | |||||
uint8_t anchor_string[4]; /* '_SM_' */ | |||||
uint8_t checksum; | |||||
uint8_t length; | |||||
uint8_t major_version; | |||||
uint8_t minor_version; | |||||
uint16_t maximum_structure_size; | |||||
uint8_t entry_point_revision; | |||||
uint8_t formatted_area[5]; | |||||
uint8_t intermediate_anchor_string[5]; /* '_DMI_' */ | |||||
uint8_t intermediate_checksum; | |||||
uint16_t structure_table_length; | |||||
uint32_t structure_table_address; | |||||
uint16_t number_structures; | |||||
uint8_t BCD_revision; | |||||
}; | |||||
struct smbios_structure_header { | |||||
uint8_t type; | |||||
uint8_t length; | |||||
uint16_t handle; | |||||
}; | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#define BIOS_PADDRTOVADDR(x) ((x) + KERNBASE) | #define BIOS_PADDRTOVADDR(x) ((x) + KERNBASE) | ||||
#define BIOS_VADDRTOPADDR(x) ((x) - KERNBASE) | #define BIOS_VADDRTOPADDR(x) ((x) - KERNBASE) | ||||
struct bios_oem_signature { | struct bios_oem_signature { | ||||
char * anchor; /* search anchor string in BIOS memory */ | char * anchor; /* search anchor string in BIOS memory */ | ||||
size_t offset; /* offset from anchor (may be negative) */ | size_t offset; /* offset from anchor (may be negative) */ | ||||
size_t totlen; /* total length of BIOS string to copy */ | size_t totlen; /* total length of BIOS string to copy */ | ||||
Show All 20 Lines |