You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pxe_callbacks.h 760B

123456789101112131415161718192021222324252627282930313233
  1. /* Header for pxe_callbacks.c.
  2. */
  3. #ifndef PXE_CALLBACKS_H
  4. #define PXE_CALLBACKS_H
  5. #include "etherboot.h"
  6. #include "segoff.h"
  7. #include "pxe.h"
  8. typedef struct {
  9. segoff_t orig_retaddr;
  10. uint16_t opcode;
  11. segoff_t segoff;
  12. } PACKED pxe_call_params_t;
  13. /*
  14. * These values are hard-coded into the PXE spec
  15. */
  16. #define PXE_LOAD_SEGMENT (0x0000)
  17. #define PXE_LOAD_OFFSET (0x7c00)
  18. #define PXE_LOAD_ADDRESS ( ( PXE_LOAD_SEGMENT << 4 ) + PXE_LOAD_OFFSET )
  19. /* Function prototypes
  20. */
  21. extern pxe_stack_t * install_pxe_stack ( void *base );
  22. extern void use_undi_ds_for_rm_stack ( uint16_t ds );
  23. extern int hook_pxe_stack ( void );
  24. extern int unhook_pxe_stack ( void );
  25. extern void remove_pxe_stack ( void );
  26. extern int xstartpxe ( void );
  27. #endif /* PXE_CALLBACKS_H */