123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- /*++
- Copyright (c) 2014 Minoca Corp.
- This file is licensed under the terms of the GNU General Public License
- version 3. Alternative licensing terms are available. Contact
- info@minocacorp.com for details. See the LICENSE file at the root of this
- project for complete licensing information.
- Module Name:
- fwvol.c
- Abstract:
- This module implements support for the builtin UEFI firmware volume.
- Author:
- Evan Green 10-Mar-2014
- Environment:
- Firmware
- --*/
- //
- // ------------------------------------------------------------------- Includes
- //
- #include "uefifw.h"
- #include "biosfw.h"
- //
- // ---------------------------------------------------------------- Definitions
- //
- //
- // ------------------------------------------------------ Data Type Definitions
- //
- //
- // ----------------------------------------------- Internal Function Prototypes
- //
- //
- // -------------------------------------------------------------------- Globals
- //
- //
- // Objcopy adds these symbols surrounding the added file.
- //
- extern UINT8 _binary_biosfwv_start;
- extern UINT8 _binary_biosfwv_end;
- //
- // ------------------------------------------------------------------ Functions
- //
- EFI_STATUS
- EfiPlatformEnumerateFirmwareVolumes (
- VOID
- )
- /*++
- Routine Description:
- This routine enumerates any firmware volumes the platform may have
- tucked away. The platform should load them into memory and call
- EfiCreateFirmwareVolume for each one.
- Arguments:
- None.
- Return Value:
- EFI Status code.
- --*/
- {
- EFI_PHYSICAL_ADDRESS Base;
- UINTN Size;
- EFI_STATUS Status;
- Base = (EFI_PHYSICAL_ADDRESS)(UINTN)&_binary_biosfwv_start;
- Size = (UINTN)&_binary_biosfwv_end - (UINTN)&_binary_biosfwv_start;
- Status = EfiCreateFirmwareVolume(Base, Size, NULL, 0, NULL);
- return Status;
- }
- //
- // --------------------------------------------------------- Internal Functions
- //
|