]> code.delx.au - refind/blob - filesystems/VBoxFswParam.h
0f20c9ef50def679469c9661b99ebd8e6b9c3002
[refind] / filesystems / VBoxFswParam.h
1 /* $Id: VBoxFswParam.h 29125 2010-05-06 09:43:05Z vboxsync $ */
2 /** @file
3 * VBoxFswParam.h
4 */
5
6 /*
7 * Copyright (C) 2010 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 VBOXFSPARAM_H
19 #define VBOXFSPARAM_H
20 /*
21 * Here is common declarations for EDK<->EDK2 compatibility
22 */
23 # include <Base.h>
24 # include <Uefi.h>
25 # include <Library/DebugLib.h>
26 # include <Library/BaseLib.h>
27 # include <Protocol/DriverBinding.h>
28 # include <Library/BaseMemoryLib.h>
29 # include <Library/UefiRuntimeServicesTableLib.h>
30 # include <Library/UefiDriverEntryPoint.h>
31 # include <Library/UefiBootServicesTableLib.h>
32 # include <Library/MemoryAllocationLib.h>
33 # include <Library/DevicePathLib.h>
34 # include <Protocol/DevicePathFromText.h>
35 # include <Protocol/DevicePathToText.h>
36 # include <Protocol/DebugPort.h>
37 # include <Protocol/DebugSupport.h>
38 # include <Library/PrintLib.h>
39 # include <Library/UefiLib.h>
40 # include <Protocol/SimpleFileSystem.h>
41 # include <Protocol/BlockIo.h>
42 # include <Protocol/DiskIo.h>
43 # include <Guid/FileSystemInfo.h>
44 # include <Guid/FileInfo.h>
45 # include <Guid/FileSystemVolumeLabelInfo.h>
46 # include <Protocol/ComponentName.h>
47
48 # define BS gBS
49 # define PROTO_NAME(x) gEfi ## x ## Guid
50 # define GUID_NAME(x) gEfi ## x ## Guid
51
52 # define EFI_FILE_HANDLE_REVISION EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_REVISION
53 # define SIZE_OF_EFI_FILE_SYSTEM_VOLUME_LABEL_INFO SIZE_OF_EFI_FILE_SYSTEM_VOLUME_LABEL
54 # define EFI_FILE_SYSTEM_VOLUME_LABEL_INFO EFI_FILE_SYSTEM_VOLUME_LABEL
55 # define EFI_SIGNATURE_32(a, b, c, d) SIGNATURE_32(a, b, c, d)
56 # define DivU64x32(x,y,z) DivU64x32((x),(y))
57
58
59 INTN CompareGuidEdk1(
60 IN EFI_GUID *Guid1,
61 IN EFI_GUID *Guid2
62 );
63
64 //#define CompareGuid(x, y) CompareGuidEdk1((x),(y))
65 # define HOST_EFI 1
66 //# define FSW_DEBUG_LEVEL 3
67
68 int fsw_streq_ISO88591_UTF16(void *s1data, void *s2data, int len);
69 #endif