Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/include/pc/bios.h
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | |||||
struct smbios_structure_header { | struct smbios_structure_header { | ||||
uint8_t type; | uint8_t type; | ||||
uint8_t length; | uint8_t length; | ||||
uint16_t handle; | uint16_t handle; | ||||
}; | }; | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#define BIOS_PADDRTOVADDR(x) ((x) + KERNBASE) | #define BIOS_PADDRTOVADDR(x) ((x) + PMAP_MAP_LOW) | ||||
#define BIOS_VADDRTOPADDR(x) ((x) - KERNBASE) | #define BIOS_VADDRTOPADDR(x) ((x) - PMAP_MAP_LOW) | ||||
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 */ | ||||
} __packed; | } __packed; | ||||
struct bios_oem_range { | struct bios_oem_range { | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |