pxe_preboot.c File Reference

PXE Preboot API. More...

#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <gpxe/uaccess.h>
#include <gpxe/dhcp.h>
#include <gpxe/fakedhcp.h>
#include <gpxe/device.h>
#include <gpxe/netdevice.h>
#include <gpxe/isapnp.h>
#include <gpxe/init.h>
#include <gpxe/if_ether.h>
#include <basemem_packet.h>
#include <biosint.h>
#include "pxe.h"
#include "pxe_call.h"

Go to the source code of this file.

Data Structures

union  pxe_cached_info
 A cached DHCP packet. More...
struct  pxe_dhcp_packet_creator
 A PXE DHCP packet creator. More...

Defines

#define cached_info   __use_data16 ( cached_info )

Enumerations

enum  pxe_cached_info_indices { CACHED_INFO_DHCPDISCOVER = ( PXENV_PACKET_TYPE_DHCP_DISCOVER - 1 ), CACHED_INFO_DHCPACK = ( PXENV_PACKET_TYPE_DHCP_ACK - 1 ), CACHED_INFO_BINL = ( PXENV_PACKET_TYPE_CACHED_REPLY - 1 ), NUM_CACHED_INFOS }
 Zero-based versions of PXENV_GET_CACHED_INFO::PacketType. More...

Functions

 FILE_LICENCE (GPL2_OR_LATER)
static union pxe_cached_info __bss16_array (cached_info,[NUM_CACHED_INFOS])
PXENV_EXIT_t pxenv_unload_stack (struct s_PXENV_UNLOAD_STACK *unload_stack)
 UNLOAD BASE CODE STACK.
PXENV_EXIT_t pxenv_get_cached_info (struct s_PXENV_GET_CACHED_INFO *get_cached_info)
PXENV_EXIT_t pxenv_restart_tftp (struct s_PXENV_TFTP_READ_FILE *restart_tftp)
PXENV_EXIT_t pxenv_start_undi (struct s_PXENV_START_UNDI *start_undi)
PXENV_EXIT_t pxenv_stop_undi (struct s_PXENV_STOP_UNDI *stop_undi)
PXENV_EXIT_t pxenv_start_base (struct s_PXENV_START_BASE *start_base)
PXENV_EXIT_t pxenv_stop_base (struct s_PXENV_STOP_BASE *stop_base)

Variables

uint16_t isapnp_read_port
 ISAPnP Read Port address.
static struct
pxe_dhcp_packet_creator 
pxe_dhcp_packet_creators []
 PXE DHCP packet creators.


Detailed Description

PXE Preboot API.

Definition in file pxe_preboot.c.


Define Documentation

#define cached_info   __use_data16 ( cached_info )

Definition at line 103 of file pxe_preboot.c.

Referenced by pxenv_get_cached_info().


Enumeration Type Documentation

Zero-based versions of PXENV_GET_CACHED_INFO::PacketType.

Enumerator:
CACHED_INFO_DHCPDISCOVER 
CACHED_INFO_DHCPACK 
CACHED_INFO_BINL 
NUM_CACHED_INFOS 

Definition at line 48 of file pxe_preboot.c.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

static union pxe_cached_info __bss16_array ( cached_info   )  [static, write]


Variable Documentation

ISAPnP Read Port address.

ROM prefix may be able to set this address, which is why this is non-static.

Definition at line 45 of file pxe_preboot.c.

Initial value:

PXE DHCP packet creators.

Definition at line 85 of file pxe_preboot.c.


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