1 | /* $Id: VBoxFswParam.h 76553 2019-01-01 01:45:53Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxFswParam.h
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2010-2019 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 | * The contents of this file may alternatively be used under the terms
|
---|
18 | * of the Common Development and Distribution License Version 1.0
|
---|
19 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | * CDDL are applicable instead of those of the GPL.
|
---|
22 | *
|
---|
23 | * You may elect to license modified versions of this file under the
|
---|
24 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | */
|
---|
26 |
|
---|
27 | #ifndef VBOXFSPARAM_H
|
---|
28 | #define VBOXFSPARAM_H
|
---|
29 | /*
|
---|
30 | * Here is common declarations for EDK<->EDK2 compatibility
|
---|
31 | */
|
---|
32 | # include <Uefi.h>
|
---|
33 | # include <Library/DebugLib.h>
|
---|
34 | # include <Library/BaseLib.h>
|
---|
35 | # include <Protocol/DriverBinding.h>
|
---|
36 | # include <Library/BaseMemoryLib.h>
|
---|
37 | # include <Library/UefiRuntimeServicesTableLib.h>
|
---|
38 | # include <Library/UefiDriverEntryPoint.h>
|
---|
39 | # include <Library/UefiBootServicesTableLib.h>
|
---|
40 | # include <Library/MemoryAllocationLib.h>
|
---|
41 | # include <Library/DevicePathLib.h>
|
---|
42 | # include <Protocol/DevicePathFromText.h>
|
---|
43 | # include <Protocol/DevicePathToText.h>
|
---|
44 | # include <Protocol/DebugPort.h>
|
---|
45 | # include <Protocol/DebugSupport.h>
|
---|
46 | # include <Library/PrintLib.h>
|
---|
47 | # include <Library/UefiLib.h>
|
---|
48 | # include <Protocol/SimpleFileSystem.h>
|
---|
49 | # include <Protocol/BlockIo.h>
|
---|
50 | # include <Protocol/DiskIo.h>
|
---|
51 | # include <Guid/FileSystemInfo.h>
|
---|
52 | # include <Guid/FileInfo.h>
|
---|
53 | # include <Guid/FileSystemVolumeLabelInfo.h>
|
---|
54 | # include <Protocol/ComponentName.h>
|
---|
55 |
|
---|
56 | # define BS gBS
|
---|
57 | # define PROTO_NAME(x) gEfi ## x ## Guid
|
---|
58 | # define GUID_NAME(x) gEfi ## x ## Guid
|
---|
59 |
|
---|
60 | # define EFI_FILE_HANDLE_REVISION EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_REVISION
|
---|
61 | # define SIZE_OF_EFI_FILE_SYSTEM_VOLUME_LABEL_INFO SIZE_OF_EFI_FILE_SYSTEM_VOLUME_LABEL
|
---|
62 | # define EFI_FILE_SYSTEM_VOLUME_LABEL_INFO EFI_FILE_SYSTEM_VOLUME_LABEL
|
---|
63 | # define EFI_SIGNATURE_32(a, b, c, d) SIGNATURE_32(a, b, c, d)
|
---|
64 | # define DivU64x32(x,y,z) DivU64x32((x),(y))
|
---|
65 |
|
---|
66 |
|
---|
67 | INTN CompareGuidEdk1(
|
---|
68 | IN EFI_GUID *Guid1,
|
---|
69 | IN EFI_GUID *Guid2
|
---|
70 | );
|
---|
71 |
|
---|
72 | //#define CompareGuid(x, y) CompareGuidEdk1((x),(y))
|
---|
73 | # define HOST_EFI 1
|
---|
74 | //# define FSW_DEBUG_LEVEL 3
|
---|
75 |
|
---|
76 | int fsw_streq_ISO88591_UTF16(void *s1data, void *s2data, int len);
|
---|
77 | #endif
|
---|