iPXE
|
PnP BIOS. More...
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <realmode.h>
#include <pnpbios.h>
Go to the source code of this file.
Data Structures | |
struct | pnp_bios |
PnP BIOS structure. More... | |
Macros | |
#define | PNP_BIOS_SIGNATURE ( ( '$' << 0 ) + ( 'P' << 8 ) + ( 'n' << 16 ) + ( 'P' << 24 ) ) |
Signature for a PnP BIOS structure. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
struct pnp_bios | __attribute__ ((packed)) |
static int | is_pnp_bios (unsigned int offset) |
Test address for PnP BIOS structure. More... | |
int | find_pnp_bios (void) |
Locate Plug-and-Play BIOS. More... | |
Variables | |
uint32_t | signature |
Signature. More... | |
uint8_t | version |
Version as BCD (e.g. More... | |
uint8_t | length |
Length of this structure. More... | |
uint16_t | control |
System capabilities. More... | |
uint8_t | checksum |
Checksum. More... | |
PnP BIOS.
Definition in file pnpbios.c.
#define PNP_BIOS_SIGNATURE ( ( '$' << 0 ) + ( 'P' << 8 ) + ( 'n' << 16 ) + ( 'P' << 24 ) ) |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
struct pnp_bios __attribute__ | ( | (packed) | ) |
|
static |
Test address for PnP BIOS structure.
offset | Offset within BIOS segment to test |
rc | Return status code |
Definition at line 65 of file pnpbios.c.
References BIOS_SEG, bytes, copy_from_real, DBG, EINVAL, len, offset, PNP_BIOS_SIGNATURE, and u.
Referenced by find_pnp_bios().
int find_pnp_bios | ( | void | ) |
Locate Plug-and-Play BIOS.
pnp_offset | Offset of PnP BIOS structure within BIOS segment |
The PnP BIOS structure will be at BIOS_SEG:pnp_offset. If no PnP BIOS is found, -1 is returned.
Definition at line 101 of file pnpbios.c.
References is_pnp_bios().
Referenced by undi_load(), and undinet_probe().
uint32_t signature |
uint8_t checksum |
Checksum.
Extended checksum.
Definition at line 37 of file pnpbios.c.
Referenced by ar9003_calc_ptr_chksum(), ar9300_comp_cksum(), ar9300_eeprom_restore_internal(), corkscrew_probe1(), fnrec_dump(), multiboot_find_header(), nvo_save(), and ucode_verify().