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