TianoCore EDK2 master
Loading...
Searching...
No Matches
EmuBlockIo.h
1/*++
2
3Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>
4SPDX-License-Identifier: BSD-2-Clause-Patent
5
6Module Name:
7
8 EmuBlockIo.h
9
10Abstract:
11
12 Produce block IO abstractions for real devices on your PC using Posix APIs.
13 The configuration of what devices to mount or emulate comes from UNIX
14 environment variables. The variables must be visible to the Microsoft*
15 Developer Studio for them to work.
16
17 * Other names and brands may be claimed as the property of others.
18
19**/
20
21#ifndef _EMU_BLOCK_IO_H_
22#define _EMU_BLOCK_IO_H_
23
24#include <PiDxe.h>
25#include <Protocol/EmuIoThunk.h>
26#include <Protocol/BlockIo.h>
27#include <Protocol/BlockIo2.h>
28#include <Protocol/EmuBlockIo.h>
29
31#include <Guid/EmuVirtualDisk.h>
32
33#include <Library/DebugLib.h>
34#include <Library/BaseLib.h>
36#include <Library/UefiLib.h>
40
41//
42// Language supported for driverconfiguration protocol
43//
44
45#define EMU_BLOCK_IO_PRIVATE_SIGNATURE SIGNATURE_32 ('E', 'M', 'b', 'k')
46typedef struct {
47 UINTN Signature;
48 EMU_IO_THUNK_PROTOCOL *IoThunk;
50
51 EFI_HANDLE EfiHandle;
55
56 EFI_UNICODE_STRING_TABLE *ControllerNameTable;
58
59#define EMU_BLOCK_IO_PRIVATE_DATA_FROM_THIS(a) \
60 CR(a, EMU_BLOCK_IO_PRIVATE, BlockIo, EMU_BLOCK_IO_PRIVATE_SIGNATURE)
61
62#define EMU_BLOCK_IO2_PRIVATE_DATA_FROM_THIS(a) \
63 CR(a, EMU_BLOCK_IO_PRIVATE, BlockIo2, EMU_BLOCK_IO_PRIVATE_SIGNATURE)
64
65//
66// Block I/O Global Variables
67//
68extern EFI_DRIVER_BINDING_PROTOCOL gEmuBlockIoDriverBinding;
69extern EFI_COMPONENT_NAME_PROTOCOL gEmuBlockIoComponentName;
70extern EFI_COMPONENT_NAME2_PROTOCOL gEmuBlockIoComponentName2;
71extern EFI_DRIVER_CONFIGURATION_PROTOCOL gEmuBlockIoDriverConfiguration;
72extern EFI_DRIVER_DIAGNOSTICS_PROTOCOL gEmuBlockIoDriverDiagnostics;
73extern EFI_DRIVER_DIAGNOSTICS2_PROTOCOL gEmuBlockIoDriverDiagnostics2;
74
75#endif
UINT64 UINTN
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33