blob: be40e5bd4055494b83d84111112c7b1bcf810918 [file] [log] [blame]
klu218b84852008-03-19 05:11:21 +00001/** @file
klu2ca162102007-12-21 08:48:38 +00002
3Copyright (c) 2007, Intel Corporation
4All rights reserved. This program and the accompanying materials
5are licensed and made available under the terms and conditions of the BSD License
6which accompanies this distribution. The full text of the license may be found at
7http://opensource.org/licenses/bsd-license.php
8
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12Module Name:
13
14 FlashLayout.h
15
16Abstract:
17
18 Platform specific flash layout
19
klu218b84852008-03-19 05:11:21 +000020**/
klu2ca162102007-12-21 08:48:38 +000021
22#ifndef _EFI_FLASH_LAYOUT
23#define _EFI_FLASH_LAYOUT
24
25#include "EfiFlashMap.h"
26
27//
28// Firmware Volume Information for DUET
29//
30#define FV_BLOCK_SIZE 0x10000
31#define FV_BLOCK_MASK 0x0FFFF
32#define EFI_RUNTIME_UPDATABLE_FV_HEADER_LENGTH (sizeof (EFI_FIRMWARE_VOLUME_HEADER) + sizeof (EFI_FV_BLOCK_MAP_ENTRY))
33
34#define NV_STORAGE_SIZE 0x4000
35#define NV_STORAGE_FVB_SIZE ((NV_STORAGE_SIZE + EFI_RUNTIME_UPDATABLE_FV_HEADER_LENGTH + FV_BLOCK_MASK) & ~FV_BLOCK_MASK)
36#define NV_STORAGE_FVB_BLOCK_NUM (NV_STORAGE_FVB_SIZE / FV_BLOCK_SIZE)
37
38#define NV_FTW_WORKING_SIZE 0x2000
39#define NV_FTW_SPARE_SIZE 0x10000
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)
41#define NV_FTW_FVB_BLOCK_NUM (NV_FTW_FVB_SIZE / FV_BLOCK_SIZE)
42
43#define NV_STORAGE_FILE_PATH L"\\Efivar.bin"
44#endif // _EFI_FLASH_LAYOUT