• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /** @file
2 
3  Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
4 
5  This program and the accompanying materials
6  are licensed and made available under the terms and conditions of the BSD License
7  which accompanies this distribution.  The full text of the license may be found at
8  http://opensource.org/licenses/bsd-license.php
9 
10  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 
13  **/
14 
15 #ifndef _NORFLASHPLATFORMLIB_H_
16 #define _NORFLASHPLATFORMLIB_H_
17 
18 typedef struct {
19   UINTN       DeviceBaseAddress;    // Start address of the Device Base Address (DBA)
20   UINTN       RegionBaseAddress;    // Start address of one single region
21   UINTN       Size;
22   UINTN       BlockSize;
23   EFI_GUID    Guid;
24 } NOR_FLASH_DESCRIPTION;
25 
26 EFI_STATUS
27 NorFlashPlatformInitialization (
28   VOID
29   );
30 
31 EFI_STATUS
32 NorFlashPlatformGetDevices (
33   OUT NOR_FLASH_DESCRIPTION   **NorFlashDescriptions,
34   OUT UINT32                  *Count
35   );
36 
37 #endif /* _NORFLASHPLATFORMLIB_H_ */
38