ReactOS  0.4.15-dev-2945-g7100a24
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 346 of file pxe.c.

347 {
348  static BOOLEAN Initialized = FALSE;
349  static BOOLEAN Success = FALSE;
350 
351  // Do initialization only once
352  if (Initialized)
353  return Success;
354  Initialized = TRUE;
355 
356  // Check if PXE is available
357  if (GetPxeStructure() && GetCachedInfo())
358  {
359  FsRegisterDevice("net(0)", &PxeDiskVtbl);
360  Success = TRUE;
361  }
362 
363  return Success;
364 }
#define TRUE
Definition: types.h:120
static const DEVVTBL PxeDiskVtbl
Definition: pxe.c:319
static BOOLEAN GetCachedInfo(VOID)
Definition: pxe.c:327
#define FALSE
Definition: types.h:117
unsigned char BOOLEAN
VOID FsRegisterDevice(CHAR *Prefix, const DEVVTBL *FuncTable)
Definition: fs.c:383
static PPXE GetPxeStructure(VOID)
Definition: pxe.c:72

Referenced by PcInitializeBootDevices().

◆ PxeMount()

const DEVVTBL* PxeMount ( ULONG  DeviceId)

Definition at line 282 of file pxe.c.

283 {
284  if (GetPxeStructure() == NULL)
285  return NULL;
286  return &PxeVtbl;
287 }
static const DEVVTBL PxeVtbl
Definition: pxe.c:274
#define NULL
Definition: types.h:112
static PPXE GetPxeStructure(VOID)
Definition: pxe.c:72

Referenced by ArcOpen().