iPXE
pnpbios.h File Reference

PnP BIOS. More...

Go to the source code of this file.

Macros

#define BIOS_SEG   0xf000

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
int find_pnp_bios (void)
 Locate Plug-and-Play BIOS.

Detailed Description

PnP BIOS.

Definition in file pnpbios.h.

Macro Definition Documentation

◆ BIOS_SEG

#define BIOS_SEG   0xf000

Definition at line 13 of file pnpbios.h.

Referenced by bios_find_smbios2(), bios_find_smbios3(), is_pnp_bios(), undi_load(), and undinet_probe().

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ find_pnp_bios()

int find_pnp_bios ( void )
extern

Locate Plug-and-Play BIOS.

Return values
pnp_offsetOffset 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.

101 {
102 static int pnp_offset = 0;
103
104 if ( pnp_offset )
105 return pnp_offset;
106
107 for ( pnp_offset = 0 ; pnp_offset < 0x10000 ; pnp_offset += 0x10 ) {
108 if ( is_pnp_bios ( pnp_offset ) == 0 )
109 return pnp_offset;
110 }
111
112 pnp_offset = -1;
113 return pnp_offset;
114}
static int is_pnp_bios(unsigned int offset)
Test address for PnP BIOS structure.
Definition pnpbios.c:65

References is_pnp_bios().

Referenced by undi_load(), and undinet_probe().