]>
git.proxmox.com Git - mirror_edk2.git/blob - DuetPkg/Include/FlashLayout.h
3 Copyright (c) 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Platform specific flash layout
22 #ifndef _EFI_FLASH_LAYOUT
23 #define _EFI_FLASH_LAYOUT
25 #include "EfiFlashMap.h"
28 // Firmware Volume Information for DUET
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))
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)
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)
43 #define NV_STORAGE_FILE_PATH L".\\Efivar.bin"
44 #endif // _EFI_FLASH_LAYOUT