Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

callbacks.h 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Callout/callback interface for Etherboot
  2. *
  3. * This file provides the mechanisms for making calls from Etherboot
  4. * to external programs and vice-versa.
  5. *
  6. * Initial version by Michael Brown <mbrown@fensystems.co.uk>, January 2004.
  7. *
  8. * $Id$
  9. */
  10. #ifndef CALLBACKS_H
  11. #define CALLBACKS_H
  12. /* Opcodes and flags for in_call()
  13. */
  14. #define EB_OPCODE(x) ( (x) & 0xffff )
  15. #define EB_OPCODE_MAIN (0x0000)
  16. #define EB_OPCODE_CHECK (0x6948) /* 'Hi' */
  17. #define EB_OPCODE_PXE (0x7850) /* 'Px' */
  18. #define EB_OPCODE_PXENV (0x7650) /* 'Pv' */
  19. #define EB_USE_INTERNAL_STACK ( 1 << 16 )
  20. #define EB_CALL_FROM_REAL_MODE ( 1 << 17 ) /* i386 only */
  21. #define EB_SKIP_OPCODE ( 1 << 18 )
  22. /* Standard return codes
  23. */
  24. #define EB_CHECK_RESULT (0x6f486948) /* 'HiHo' */
  25. /* Include arch-specific callbacks bits
  26. */
  27. #include "callbacks_arch.h"
  28. /* Skip the definitions that won't make sense to the assembler */
  29. #ifndef ASSEMBLY
  30. #include <stdarg.h>
  31. #ifndef in_call_data_t
  32. typedef struct {} empty_struct_t;
  33. #define in_call_data_t empty_struct_t
  34. #endif
  35. #endif /* ASSEMBLY */
  36. #endif /* CALLBACKS_H */