I appreciate the help folks. Rick, Laurie, Andrew, Jabin, Tim and Bill.

I've got something at least compiling now.

Here is the relevant includes for the .c source.

#include <Uefi.h>

#include <Pi/PiFirmwareFile.h>

#include <Pi/PiFirmwareVolume.h>

#include <Library/PcdLib.h>

#include <Library/UefiLib.h>

#include <Library/UefiApplicationEntryPoint.h>

#include <Library/UefiBootServicesTableLib.h>

#include <Library/UefiRuntimeServicesTableLib.h>

#include <Protocol/FirmwareVolume.h>


This requires the following entries in the .inf file.


[Packages]

  MdePkg/MdePkg.dec

  MdeModulePkg/MdeModulePkg.dec

  IntelFrameworkPkg/IntelFrameworkPkg.dec


[LibraryClasses]

  UefiApplicationEntryPoint

  UefiLib

  PcdLib



This allows the following types to compile.


EFI_STATUS EFIAPI getData(UINTN count, EFI_HANDLE handles[]) {


        UINTN                         rc;

        UINTN                         include;

        UINTN                         Index;

        VOID                          *RomImage;

        UINTN                         RomSize;

        UINT32                        AuthenticationStatus;

        EFI_STATUS                    Status;

        EFI_GUID                      FirmwareVolumeProtocolGuid =
EFI_FIRMWARE_VOLUME_PROTOCOL_GUID;

        EFI_FIRMWARE_VOLUME_PROTOCOL  *FirmwareVolume;

        EFI_FV_FILE_ATTRIBUTES        Attributes;

        EFI_FV_FILETYPE                       Type;
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to