]> code.delx.au - refind/blob - filesystems/fsw_efi_edk2_base.h
Added rudimentary debconf support for Debian package.
[refind] / filesystems / fsw_efi_edk2_base.h
1 /**
2 * \file fsw_efi_edk2_base.h
3 * Base definitions for the EDK EFI Toolkit environment.
4 */
5 /*
6 * Copyright (c) 2012 Stefan Agner
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are
10 * met:
11 *
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 *
15 * * Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the
18 * distribution.
19 *
20 * * Neither the name of Christoph Pfisterer nor the names of the
21 * contributors may be used to endorse or promote products derived
22 * from this software without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 */
36
37 #ifndef _FSW_EFI_EDK2_BASE_H_
38 #define _FSW_EFI_EDK2_BASE_H_
39 /*
40 * Here is common declarations for EDK<->EDK2 compatibility
41 */
42 # include <Base.h>
43 # include <Uefi.h>
44 # include <Library/DebugLib.h>
45 # include <Library/BaseLib.h>
46 # include <Protocol/DriverBinding.h>
47 # include <Library/BaseMemoryLib.h>
48 # include <Library/UefiRuntimeServicesTableLib.h>
49 # include <Library/UefiDriverEntryPoint.h>
50 # include <Library/UefiBootServicesTableLib.h>
51 # include <Library/MemoryAllocationLib.h>
52 # include <Library/DevicePathLib.h>
53 # include <Protocol/DevicePathFromText.h>
54 # include <Protocol/DevicePathToText.h>
55 # include <Protocol/DebugPort.h>
56 # include <Protocol/DebugSupport.h>
57 # include <Library/PrintLib.h>
58 # include <Library/UefiLib.h>
59 # include <Protocol/SimpleFileSystem.h>
60 # include <Protocol/BlockIo.h>
61 # include <Protocol/DiskIo.h>
62 # include <Guid/FileSystemInfo.h>
63 # include <Guid/FileInfo.h>
64 # include <Guid/FileSystemVolumeLabelInfo.h>
65 # include <Protocol/ComponentName.h>
66
67 # define BS gBS
68
69 # define EFI_FILE_HANDLE_REVISION EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_REVISION
70 # define SIZE_OF_EFI_FILE_SYSTEM_VOLUME_LABEL_INFO SIZE_OF_EFI_FILE_SYSTEM_VOLUME_LABEL
71 # define EFI_FILE_SYSTEM_VOLUME_LABEL_INFO EFI_FILE_SYSTEM_VOLUME_LABEL
72 # define EFI_SIGNATURE_32(a, b, c, d) SIGNATURE_32(a, b, c, d)
73 # define DivU64x32(x,y,z) DivU64x32((x),(y))
74
75
76 #endif