/** @file * * Copyright (c) 2011-2012, ARM Limited. All rights reserved. * * This program and the accompanying materials * are licensed and made available under the terms and conditions of the BSD License * which accompanies this distribution. The full text of the license may be found at * http://opensource.org/licenses/bsd-license.php * * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. * **/ #ifndef __BDS_INTERNAL_H__ #define __BDS_INTERNAL_H__ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef BOOLEAN (*BDS_FILE_LOADER_SUPPORT) ( IN EFI_DEVICE_PATH *DevicePath, IN EFI_HANDLE Handle, IN EFI_DEVICE_PATH *RemainingDevicePath ); typedef EFI_STATUS (*BDS_FILE_LOADER_LOAD_IMAGE) ( IN EFI_DEVICE_PATH *DevicePath, IN EFI_HANDLE Handle, IN EFI_DEVICE_PATH *RemainingDevicePath, IN EFI_ALLOCATE_TYPE Type, IN OUT EFI_PHYSICAL_ADDRESS* Image, OUT UINTN *ImageSize ); typedef struct { BDS_FILE_LOADER_SUPPORT Support; BDS_FILE_LOADER_LOAD_IMAGE LoadImage; } BDS_FILE_LOADER; typedef struct _BDS_SYSTEM_MEMORY_RESOURCE { LIST_ENTRY Link; // This attribute must be the first entry of this structure (to avoid pointer computation) EFI_PHYSICAL_ADDRESS PhysicalStart; UINT64 ResourceLength; } BDS_SYSTEM_MEMORY_RESOURCE; typedef struct { UINT64 FileSize; UINT64 DownloadedNbOfBytes; UINT64 LastReportedNbOfBytes; } BDS_TFTP_CONTEXT; // BdsHelper.c EFI_STATUS ShutdownUefiBootServices ( VOID ); EFI_STATUS GetSystemMemoryResources ( LIST_ENTRY *ResourceList ); VOID PrintPerformance ( VOID ); EFI_STATUS BdsLoadImage ( IN EFI_DEVICE_PATH *DevicePath, IN EFI_ALLOCATE_TYPE Type, IN OUT EFI_PHYSICAL_ADDRESS* Image, OUT UINTN *FileSize ); #endif