VirtualBox

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

最後變更 在這個檔案從46910是 1,由 vboxsync 提交於 55 年 前

import

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.1 KB
 
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 */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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