diff options
| author | Michael Brown | 2007-06-30 15:56:35 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-06-30 15:56:35 +0200 |
| commit | 8130443f9ffd64f48a756d440e11d0265925765e (patch) | |
| tree | b92c33226b361b83513fbbc1af2dc4e3d1d8c727 /src/arch/i386/include | |
| parent | Don't build option-overloaded packets; they just confuse people (ISC (diff) | |
| download | ipxe-8130443f9ffd64f48a756d440e11d0265925765e.tar.gz ipxe-8130443f9ffd64f48a756d440e11d0265925765e.tar.xz ipxe-8130443f9ffd64f48a756d440e11d0265925765e.zip | |
Separate out pxe_start_nbp() from pxe_image.c into pxe_call.c
Implement PXENV_RESTART_TFTP.
Diffstat (limited to 'src/arch/i386/include')
| -rw-r--r-- | src/arch/i386/include/pxe_call.h | 10 | ||||
| -rw-r--r-- | src/arch/i386/include/pxe_callbacks.h | 32 |
2 files changed, 10 insertions, 32 deletions
diff --git a/src/arch/i386/include/pxe_call.h b/src/arch/i386/include/pxe_call.h index c6c1c6d89..dc5853108 100644 --- a/src/arch/i386/include/pxe_call.h +++ b/src/arch/i386/include/pxe_call.h @@ -9,6 +9,15 @@ #include <pxe_api.h> #include <realmode.h> +/** PXE load address segment */ +#define PXE_LOAD_SEGMENT 0 + +/** PXE load address offset */ +#define PXE_LOAD_OFFSET 0x7c00 + +/** PXE physical load address */ +#define PXE_LOAD_PHYS ( ( PXE_LOAD_SEGMENT << 4 ) + PXE_LOAD_OFFSET ) + /** !PXE structure */ extern struct s_PXE __text16 ( ppxe ); #define ppxe __use_text16 ( ppxe ) @@ -20,5 +29,6 @@ extern struct s_PXENV __text16 ( pxenv ); extern void pxe_hook_int1a ( void ); extern int pxe_unhook_int1a ( void ); extern void pxe_init_structures ( void ); +extern int pxe_start_nbp ( void ); #endif /* _PXE_CALL_H */ diff --git a/src/arch/i386/include/pxe_callbacks.h b/src/arch/i386/include/pxe_callbacks.h deleted file mode 100644 index 974a3c30c..000000000 --- a/src/arch/i386/include/pxe_callbacks.h +++ /dev/null @@ -1,32 +0,0 @@ -/* Header for pxe_callbacks.c. - */ - -#ifndef PXE_CALLBACKS_H -#define PXE_CALLBACKS_H - -#include "etherboot.h" -#include "pxe_types.h" - -typedef struct { - SEGOFF16_t orig_retaddr; - UINT16_t opcode; - SEGOFF16_t segoff; -} 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 ); -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 */ |
