1 | ; $Id: DevEFI.mac 28800 2010-04-27 08:22:32Z vboxsync $
|
---|
2 | ;; @file
|
---|
3 | ; DevEFI Interface Definitions, Assembly (Yasm) Variant.
|
---|
4 | ;
|
---|
5 |
|
---|
6 | ;
|
---|
7 | ; Copyright (C) 2009 Oracle Corporation
|
---|
8 | ;
|
---|
9 | ; This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | ; available from http://www.virtualbox.org. This file is free software;
|
---|
11 | ; you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | ; General Public License (GPL) as published by the Free Software
|
---|
13 | ; Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | ;
|
---|
17 |
|
---|
18 | %ifndef ___EFI_DevEFI_mac
|
---|
19 | %define ___EFI_DevEFI_mac
|
---|
20 |
|
---|
21 | %include "iprt/asmdefs.mac"
|
---|
22 |
|
---|
23 | %define EFI_PORT_BASE 0xEF10
|
---|
24 | %define EFI_PORT_COUNT 0x0004
|
---|
25 | %define EFI_INFO_PORT (EFI_PORT_BASE+0x0)
|
---|
26 | %define EFI_PANIC_PORT (EFI_PORT_BASE+0x1)
|
---|
27 | %define EFI_PANIC_CMD_BAD_ORG 1
|
---|
28 | %define EFI_PANIC_CMD_THUNK_TRAP 2
|
---|
29 | %define EFI_PANIC_CMD_START_MSG 3
|
---|
30 | %define EFI_PANIC_CMD_END_MSG 4
|
---|
31 | %define EFI_PANIC_CMD_MSG_FIRST 0x4201
|
---|
32 | %define EFI_PANIC_CMD_MSG_LAST 0x427f
|
---|
33 | %define EFI_PANIC_CMD_MSG_FROM_CHAR(ch) (0x4200 | ((ch) & 0x7f) )
|
---|
34 | %define EFI_PANIC_CMD_MSG_GET_CHAR(u32) ((u32) & 0x7f)
|
---|
35 | %define EFI_PORT_UNDEFINED (EFI_PORT_BASE+0x2)
|
---|
36 | %define EFI_DEBUG_PORT (EFI_PORT_BASE+0x3)
|
---|
37 | %define VBOX_EFI_TOP_OF_STACK 0x300000
|
---|
38 |
|
---|
39 | struc DEVEFIINFO
|
---|
40 | .pfnFirmwareEP resd 1
|
---|
41 | .HighEPAddress resd 1
|
---|
42 | .PhysFwVol RTGCPHYS_RES 1
|
---|
43 | .cbFwVol resd 1
|
---|
44 | .cbBelow4GB resd 1
|
---|
45 | .cbAbove4GB resq 1
|
---|
46 | .fFlags resd 1
|
---|
47 | .cCpus resd 1
|
---|
48 | .pfnPeiEP resd 1
|
---|
49 | .u32Reserved2 resd 1
|
---|
50 | endstruc
|
---|
51 |
|
---|
52 | %define DEVEFI_INFO_PHYS_ADDR (0xfffff000)
|
---|
53 | %define DEVEFI_INFO_FLAGS_AMD64 RT_BIT(0)
|
---|
54 |
|
---|
55 | %endif
|
---|
56 |
|
---|