david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/arch/i386/include/pxe_callbacks.h

33 lines
755 B
C
Raw Normal View History

2005-03-08 19:53:11 +01:00
/* Header for pxe_callbacks.c.
*/
#ifndef PXE_CALLBACKS_H
#define PXE_CALLBACKS_H
#include "etherboot.h"
#include "pxe_types.h"
2005-03-08 19:53:11 +01:00
typedef struct {
SEGOFF16_t orig_retaddr;
UINT16_t opcode;
SEGOFF16_t segoff;
2005-03-08 19:53:11 +01:00
} PACKED pxe_call_params_t;
/*
* These values are hard-coded into the PXE spec
*/
#define PXE_LOAD_SEGMENT (0x0000)
#define PXE_LOAD_OFFSET (0x7c00)
#define PXE_LOAD_ADDRESS ( ( PXE_LOAD_SEGMENT << 4 ) + PXE_LOAD_OFFSET )
/* Function prototypes
*/
extern struct pxe_stack * install_pxe_stack ( void *base );
2005-03-08 19:53:11 +01:00
extern void use_undi_ds_for_rm_stack ( uint16_t ds );
extern int hook_pxe_stack ( void );
extern int unhook_pxe_stack ( void );
extern void remove_pxe_stack ( void );
extern int xstartpxe ( void );
#endif /* PXE_CALLBACKS_H */