VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/Etherboot-src/include/callbacks.h@ 16565

Last change on this file since 16565 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
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 <[email protected]>, January 2004.
7 *
8 * $Id: callbacks.h 1 1970-01-01 00:00:00Z vboxsync $
9 */
10
11#ifndef CALLBACKS_H
12#define CALLBACKS_H
13
14/* Opcodes and flags for in_call()
15 */
16#define EB_OPCODE(x) ( (x) & 0xffff )
17#define EB_OPCODE_MAIN (0x0000)
18#define EB_OPCODE_CHECK (0x6948) /* 'Hi' */
19#define EB_OPCODE_PXE (0x7850) /* 'Px' */
20#define EB_OPCODE_PXENV (0x7650) /* 'Pv' */
21#define EB_USE_INTERNAL_STACK ( 1 << 16 )
22#define EB_CALL_FROM_REAL_MODE ( 1 << 17 ) /* i386 only */
23#define EB_SKIP_OPCODE ( 1 << 18 )
24
25/* Standard return codes
26 */
27#define EB_CHECK_RESULT (0x6f486948) /* 'HiHo' */
28
29/* Include arch-specific callbacks bits
30 */
31#include "callbacks_arch.h"
32
33/* Skip the definitions that won't make sense to the assembler */
34#ifndef ASSEMBLY
35
36#include <stdarg.h>
37
38#ifndef in_call_data_t
39typedef struct {} empty_struct_t;
40#define in_call_data_t empty_struct_t
41#endif
42
43#endif /* ASSEMBLY */
44
45#endif /* CALLBACKS_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette