ReactOS  0.4.14-dev-583-g2a1ba2c
pxe.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const DEVVTBLPxeMount (ULONG DeviceId)
 
BOOLEAN PxeInit (VOID)
 

Function Documentation

◆ PxeInit()

BOOLEAN PxeInit ( VOID  )

Definition at line 373 of file pxe.c.

374 {
375  static BOOLEAN Initialized = FALSE;
376  static BOOLEAN Success = FALSE;
377 
378  // Do initialization only once
379  if (Initialized)
380  return Success;
381  Initialized = TRUE;
382 
383  // Check if PXE is available
384  if (GetPxeStructure() && GetCachedInfo())
385  {
386  FsRegisterDevice("net(0)", &PxeDiskVtbl);
387  Success = TRUE;
388  }
389 
390  return Success;
391 }
#define TRUE
Definition: types.h:120
static const DEVVTBL PxeDiskVtbl
Definition: pxe.c:346
static BOOLEAN GetCachedInfo(VOID)
Definition: pxe.c:354
unsigned char BOOLEAN
VOID FsRegisterDevice(CHAR *Prefix, const DEVVTBL *FuncTable)
Definition: fs.c:383
static PPXE GetPxeStructure(VOID)
Definition: pxe.c:73

Referenced by PcInitializeBootDevices().

◆ PxeMount()

const DEVVTBL* PxeMount ( ULONG  DeviceId)

Definition at line 309 of file pxe.c.

310 {
311  if (GetPxeStructure() == NULL)
312  return NULL;
313  return &PxeVtbl;
314 }
static const DEVVTBL PxeVtbl
Definition: pxe.c:301
smooth NULL
Definition: ftsmooth.c:416
static PPXE GetPxeStructure(VOID)
Definition: pxe.c:73

Referenced by ArcOpen().