EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

ArmPlatformPkg/ArmRealViewEbPkg/Library/NorFlashArmRealViewEbLib/NorFlashArmRealViewEb.c

Go to the documentation of this file.
00001 
00014 #include <PiDxe.h>
00015 #include <Library/NorFlashPlatformLib.h>
00016 #include <ArmPlatform.h>
00017 
00018 #define NOR_FLASH_DEVICE_COUNT                     1
00019 
00020 // RTSM
00021 NOR_FLASH_DESCRIPTION mNorFlashDevices[NOR_FLASH_DEVICE_COUNT] = {
00022   { // UEFI
00023     ARM_EB_SMB_NOR_BASE,
00024     SIZE_128KB * 512,
00025     SIZE_128KB,
00026     {0xE7223039, 0x5836, 0x41E1, 0xB5, 0x42, 0xD7, 0xEC, 0x73, 0x6C, 0x5E, 0x59}
00027   }
00028 };
00029 
00030 EFI_STATUS
00031 NorFlashPlatformInitialization (
00032   VOID
00033   )
00034 {
00035   return EFI_SUCCESS;
00036 }
00037 
00038 EFI_STATUS
00039 NorFlashPlatformGetDevices (
00040   OUT NOR_FLASH_DESCRIPTION   **NorFlashDevices,
00041   OUT UINT32                  *Count
00042   )
00043 {
00044   if ((NorFlashDevices == NULL) || (Count == NULL)) {
00045     return EFI_INVALID_PARAMETER;
00046   }
00047 
00048   *NorFlashDevices = mNorFlashDevices;
00049   *Count = NOR_FLASH_DEVICE_COUNT;
00050 
00051   return EFI_SUCCESS;
00052 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines