56 #define PNP_BIOS_SIGNATURE \ 57 ( ( '$' << 0 ) + ( 'P' << 8 ) + ( 'n' << 16 ) + ( 'P' << 24 ) ) 80 len =
u.pnp_bios.length;
82 for ( i = 0 ; i <
len ; i++ ) {
102 static int pnp_offset = 0;
107 for ( pnp_offset = 0 ; pnp_offset < 0x10000 ; pnp_offset += 0x10 ) {
static int is_pnp_bios(unsigned int offset)
Test address for PnP BIOS structure.
#define EINVAL
Invalid argument.
uint16_t control
System capabilities.
uint32_t signature
Signature.
uint8_t length
Length of this structure.
struct pnp_bios __attribute__((packed))
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint8_t checksum
Checksum.
uint8_t version
Version as BCD (e.g.
#define PNP_BIOS_SIGNATURE
Signature for a PnP BIOS structure.
int find_pnp_bios(void)
Locate Plug-and-Play BIOS.
uint16_t offset
Offset to command line.
#define DBG(...)
Print a debugging message.