2 Emulator Thunk to abstract OS services from pure EFI code
4 Copyright (c) 2010 - 2011, Apple Inc. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __EMU_IO_THUNK__
11 #define __EMU_IO_THUNK__
13 #define EMU_IO_THUNK_PROTOCO_GUID \
14 { 0x453368F6, 0x7C85, 0x434A, { 0xA9, 0x8A, 0x72, 0xD1, 0xB7, 0xFF, 0xA9, 0x26 } }
16 typedef struct _EMU_IO_THUNK_PROTOCOL EMU_IO_THUNK_PROTOCOL
;
20 (EFIAPI
*EMU_IO_THUNK_PROTOCOL_CLOSE_OPEN
)(
21 IN EMU_IO_THUNK_PROTOCOL
*This
26 (EFIAPI
*EMU_IO_THUNK_PROTOCOL_CLOSE_CLOSE
)(
27 IN EMU_IO_THUNK_PROTOCOL
*This
30 struct _EMU_IO_THUNK_PROTOCOL
{
32 VOID
*Interface
; /// Only be valid after Open() is called
35 EMU_IO_THUNK_PROTOCOL_CLOSE_OPEN Open
;
36 EMU_IO_THUNK_PROTOCOL_CLOSE_CLOSE Close
;
37 VOID
*Private
; /// Used by implementation
40 extern EFI_GUID gEmuIoThunkProtocolGuid
;