]> git.proxmox.com Git - mirror_edk2.git/blame - DuetPkg/Include/FlashLayout.h
Regenerate Fat binaries for the bug fix of LookupUnicodeString2() in UefiLib (r4655).
[mirror_edk2.git] / DuetPkg / Include / FlashLayout.h
CommitLineData
ca162103 1/*++\r
2\r
3Copyright (c) 2007, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 FlashLayout.h\r
15 \r
16Abstract:\r
17\r
18 Platform specific flash layout\r
19\r
20--*/\r
21\r
22#ifndef _EFI_FLASH_LAYOUT\r
23#define _EFI_FLASH_LAYOUT\r
24\r
25#include "EfiFlashMap.h"\r
26\r
27//\r
28// Firmware Volume Information for DUET\r
29//\r
30#define FV_BLOCK_SIZE 0x10000\r
31#define FV_BLOCK_MASK 0x0FFFF\r
32#define EFI_RUNTIME_UPDATABLE_FV_HEADER_LENGTH (sizeof (EFI_FIRMWARE_VOLUME_HEADER) + sizeof (EFI_FV_BLOCK_MAP_ENTRY))\r
33\r
34#define NV_STORAGE_SIZE 0x4000\r
35#define NV_STORAGE_FVB_SIZE ((NV_STORAGE_SIZE + EFI_RUNTIME_UPDATABLE_FV_HEADER_LENGTH + FV_BLOCK_MASK) & ~FV_BLOCK_MASK)\r
36#define NV_STORAGE_FVB_BLOCK_NUM (NV_STORAGE_FVB_SIZE / FV_BLOCK_SIZE)\r
37\r
38#define NV_FTW_WORKING_SIZE 0x2000\r
39#define NV_FTW_SPARE_SIZE 0x10000\r
40#define NV_FTW_FVB_SIZE ((NV_FTW_WORKING_SIZE + NV_FTW_SPARE_SIZE + EFI_RUNTIME_UPDATABLE_FV_HEADER_LENGTH + FV_BLOCK_MASK) & ~FV_BLOCK_MASK)\r
41#define NV_FTW_FVB_BLOCK_NUM (NV_FTW_FVB_SIZE / FV_BLOCK_SIZE)\r
42\r
43#define NV_STORAGE_FILE_PATH L"\\Efivar.bin"\r
44#endif // _EFI_FLASH_LAYOUT\r