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 740B

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