NorFlashPlatformLib.h 691 B

123456789101112131415161718192021222324252627282930
  1. /** @file
  2. Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. **/
  5. #ifndef _NORFLASHPLATFORMLIB_H_
  6. #define _NORFLASHPLATFORMLIB_H_
  7. typedef struct {
  8. UINTN DeviceBaseAddress; // Start address of the Device Base Address (DBA)
  9. UINTN RegionBaseAddress; // Start address of one single region
  10. UINTN Size;
  11. UINTN BlockSize;
  12. } NOR_FLASH_DESCRIPTION;
  13. EFI_STATUS
  14. NorFlashPlatformInitialization (
  15. VOID
  16. );
  17. EFI_STATUS
  18. NorFlashPlatformGetDevices (
  19. OUT NOR_FLASH_DESCRIPTION **NorFlashDescriptions,
  20. OUT UINT32 *Count
  21. );
  22. #endif /* _NORFLASHPLATFORMLIB_H_ */