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)
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(), is_pnp_bios(), undi_load(), and undinet_probe().


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

int find_pnp_bios ( void   ) 

Locate Plug-and-Play BIOS.

Return values:
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 96 of file pnpbios.c.

References is_pnp_bios().

Referenced by undi_load(), and undinet_probe().

00096                            {
00097         static int pnp_offset = 0;
00098 
00099         if ( pnp_offset )
00100                 return pnp_offset;
00101 
00102         for ( pnp_offset = 0 ; pnp_offset < 0x10000 ; pnp_offset += 0x10 ) {
00103                 if ( is_pnp_bios ( pnp_offset ) == 0 )
00104                         return pnp_offset;
00105         }
00106 
00107         pnp_offset = -1;
00108         return pnp_offset;
00109 }


Generated on Tue Apr 6 20:01:13 2010 for gPXE by  doxygen 1.5.7.1