[48674] | 1 | /* $Id: VBoxFswParam.h 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
| 2 | /** @file
|
---|
| 3 | * VBoxFswParam.h
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
[98103] | 7 | * Copyright (C) 2010-2023 Oracle and/or its affiliates.
|
---|
[48674] | 8 | *
|
---|
[96407] | 9 | * This file is part of VirtualBox base platform packages, as
|
---|
| 10 | * available from https://www.virtualbox.org.
|
---|
[48674] | 11 | *
|
---|
[96407] | 12 | * This program is free software; you can redistribute it and/or
|
---|
| 13 | * modify it under the terms of the GNU General Public License
|
---|
| 14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
| 15 | * License.
|
---|
| 16 | *
|
---|
| 17 | * This program is distributed in the hope that it will be useful, but
|
---|
| 18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 20 | * General Public License for more details.
|
---|
| 21 | *
|
---|
| 22 | * You should have received a copy of the GNU General Public License
|
---|
| 23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
| 24 | *
|
---|
[48674] | 25 | * The contents of this file may alternatively be used under the terms
|
---|
| 26 | * of the Common Development and Distribution License Version 1.0
|
---|
[96407] | 27 | * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
| 28 | * in the VirtualBox distribution, in which case the provisions of the
|
---|
[48674] | 29 | * CDDL are applicable instead of those of the GPL.
|
---|
| 30 | *
|
---|
| 31 | * You may elect to license modified versions of this file under the
|
---|
| 32 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
[96407] | 33 | *
|
---|
| 34 | * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
[48674] | 35 | */
|
---|
| 36 |
|
---|
| 37 | #ifndef VBOXFSPARAM_H
|
---|
| 38 | #define VBOXFSPARAM_H
|
---|
| 39 | /*
|
---|
| 40 | * Here is common declarations for EDK<->EDK2 compatibility
|
---|
| 41 | */
|
---|
| 42 | # include <Uefi.h>
|
---|
| 43 | # include <Library/DebugLib.h>
|
---|
| 44 | # include <Library/BaseLib.h>
|
---|
| 45 | # include <Protocol/DriverBinding.h>
|
---|
| 46 | # include <Library/BaseMemoryLib.h>
|
---|
| 47 | # include <Library/UefiRuntimeServicesTableLib.h>
|
---|
| 48 | # include <Library/UefiDriverEntryPoint.h>
|
---|
| 49 | # include <Library/UefiBootServicesTableLib.h>
|
---|
| 50 | # include <Library/MemoryAllocationLib.h>
|
---|
| 51 | # include <Library/DevicePathLib.h>
|
---|
| 52 | # include <Protocol/DevicePathFromText.h>
|
---|
| 53 | # include <Protocol/DevicePathToText.h>
|
---|
| 54 | # include <Protocol/DebugPort.h>
|
---|
| 55 | # include <Protocol/DebugSupport.h>
|
---|
| 56 | # include <Library/PrintLib.h>
|
---|
| 57 | # include <Library/UefiLib.h>
|
---|
| 58 | # include <Protocol/SimpleFileSystem.h>
|
---|
| 59 | # include <Protocol/BlockIo.h>
|
---|
| 60 | # include <Protocol/DiskIo.h>
|
---|
| 61 | # include <Guid/FileSystemInfo.h>
|
---|
| 62 | # include <Guid/FileInfo.h>
|
---|
| 63 | # include <Guid/FileSystemVolumeLabelInfo.h>
|
---|
| 64 | # include <Protocol/ComponentName.h>
|
---|
| 65 |
|
---|
[82508] | 66 | # include <Guid/VBoxFsBlessedFileInfo.h> /* For HFS blessed file support. */
|
---|
| 67 |
|
---|
[48674] | 68 | # define BS gBS
|
---|
| 69 | # define PROTO_NAME(x) gEfi ## x ## Guid
|
---|
| 70 | # define GUID_NAME(x) gEfi ## x ## Guid
|
---|
| 71 |
|
---|
| 72 | # define EFI_FILE_HANDLE_REVISION EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_REVISION
|
---|
| 73 | # define SIZE_OF_EFI_FILE_SYSTEM_VOLUME_LABEL_INFO SIZE_OF_EFI_FILE_SYSTEM_VOLUME_LABEL
|
---|
| 74 | # define EFI_FILE_SYSTEM_VOLUME_LABEL_INFO EFI_FILE_SYSTEM_VOLUME_LABEL
|
---|
| 75 | # define EFI_SIGNATURE_32(a, b, c, d) SIGNATURE_32(a, b, c, d)
|
---|
| 76 | # define DivU64x32(x,y,z) DivU64x32((x),(y))
|
---|
| 77 |
|
---|
| 78 |
|
---|
| 79 | INTN CompareGuidEdk1(
|
---|
| 80 | IN EFI_GUID *Guid1,
|
---|
| 81 | IN EFI_GUID *Guid2
|
---|
| 82 | );
|
---|
| 83 |
|
---|
| 84 | //#define CompareGuid(x, y) CompareGuidEdk1((x),(y))
|
---|
| 85 | # define HOST_EFI 1
|
---|
| 86 | //# define FSW_DEBUG_LEVEL 3
|
---|
| 87 |
|
---|
| 88 | int fsw_streq_ISO88591_UTF16(void *s1data, void *s2data, int len);
|
---|
| 89 | #endif
|
---|