iPXE
Defines | Functions
pnpbios.h File Reference

PnP BIOS. More...

Go to the source code of this file.

Defines

#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.


Define Documentation

#define BIOS_SEG   0xf000

Definition at line 13 of file pnpbios.h.

Referenced by bios_find_smbios(), undi_load(), and undinet_probe().


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
int find_pnp_bios ( void  )

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.

References is_pnp_bios().

Referenced by undi_load(), and undinet_probe().

                           {
        static int pnp_offset = 0;

        if ( pnp_offset )
                return pnp_offset;

        for ( pnp_offset = 0 ; pnp_offset < 0x10000 ; pnp_offset += 0x10 ) {
                if ( is_pnp_bios ( pnp_offset ) == 0 )
                        return pnp_offset;
        }

        pnp_offset = -1;
        return pnp_offset;
}