57 if (EFI_ERROR (Status)) {
63 AddrOffset = (UINT32)((UINT32)PAddress + RgnSize);
64 ByteCount = (UINT32)*NumBytes;
65 return SpiFlashRead (FlashRegionBios, AddrOffset, ByteCount, Buffer);
95 if (EFI_ERROR (Status)) {
101 AddrOffset = (UINT32)((UINT32)PAddress + RgnSize);
102 ByteCount = (UINT32)*NumBytes;
103 return SpiFlashWrite (FlashRegionBios, AddrOffset, ByteCount, Buffer);
130 if (EFI_ERROR (Status)) {
136 AddrOffset = (UINT32)((UINT32)PAddress + RgnSize);
137 return SpiFlashErase (FlashRegionBios, AddrOffset, (UINT32)LbaLength);
EFI_STATUS EFIAPI LibFvbFlashDeviceInit(VOID)
EFI_STATUS EFIAPI LibFvbFlashDeviceRead(IN UINTN PAddress, IN OUT UINTN *NumBytes, OUT UINT8 *Buffer)
EFI_STATUS EFIAPI LibFvbFlashDeviceBlockLock(IN UINTN PAddress, IN UINTN LbaLength, IN BOOLEAN Lock)
EFI_STATUS EFIAPI LibFvbFlashDeviceBlockErase(IN UINTN PAddress, IN UINTN LbaLength)
EFI_STATUS EFIAPI LibFvbFlashDeviceWrite(IN UINTN PAddress, IN OUT UINTN *NumBytes, IN UINT8 *Buffer)
EFI_STATUS EFIAPI Lock(IN EFI_SMM_ACCESS2_PROTOCOL *This)
EFI_STATUS EFIAPI SpiFlashErase(IN FLASH_REGION_TYPE FlashRegionType, IN UINT32 Address, IN UINT32 ByteCount)
EFI_STATUS EFIAPI SpiConstructor(VOID)
EFI_STATUS EFIAPI SpiGetRegionAddress(IN FLASH_REGION_TYPE FlashRegionType, OUT UINT32 *BaseAddress OPTIONAL, OUT UINT32 *RegionSize OPTIONAL)
EFI_STATUS EFIAPI SpiFlashWrite(IN FLASH_REGION_TYPE FlashRegionType, IN UINT32 Address, IN UINT32 ByteCount, IN UINT8 *Buffer)
EFI_STATUS EFIAPI SpiFlashRead(IN FLASH_REGION_TYPE FlashRegionType, IN UINT32 Address, IN UINT32 ByteCount, OUT UINT8 *Buffer)