Adding top-level Conf directory for next generation of EDK II build infrastructure...
[mirror_edk2.git] / EdkUnixPkg / Include / FlashLayout.h
1 /*++
2
3 Copyright (c) 2006, 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
8
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.
11
12 Module Name:
13
14 FlashLayout.h
15
16 Abstract:
17
18 Platform specific flash layout
19
20 BugBug: We need a better way
21
22 --*/
23
24 #ifndef __EFI_FLASH_LAYOUT__
25 #define __EFI_FLASH_LAYOUT__
26
27 //
28 // Firmware Volume Information for Nt32
29 // adding one working block before FFS FV,
30 // and another one for spare block behind FFS FV
31 //
32 //
33 // Note: When block number is changed in .dsc file,
34 // this value should be changed accordingly!!!
35 //
36 #define FIRMWARE_BLOCK_NUMBER 0x28
37
38 #define EFI_WINNT_FIRMWARE_OFFSET 0x0
39 #define EFI_WINNT_FIRMWARE_LENGTH (0x10000 * FIRMWARE_BLOCK_NUMBER)
40
41 #define EFI_WINNT_RUNTIME_UPDATABLE_OFFSET (EFI_WINNT_FIRMWARE_OFFSET + EFI_WINNT_FIRMWARE_LENGTH)
42
43 #define EFI_WINNT_RUNTIME_UPDATABLE_LENGTH 0x10000
44
45 #define EFI_WINNT_FTW_SPARE_BLOCK_OFFSET (EFI_WINNT_RUNTIME_UPDATABLE_OFFSET + EFI_WINNT_RUNTIME_UPDATABLE_LENGTH)
46
47 #define EFI_WINNT_FTW_SPARE_BLOCK_LENGTH 0x10000
48
49 #define EFI_WINNT_RUNTIME_UPDATABLE_FV_HEADER_LENGTH 0x48
50
51 #define EFI_VARIABLE_STORE_OFFSET EFI_WINNT_RUNTIME_UPDATABLE_OFFSET
52
53 #define EFI_VARIABLE_STORE_LENGTH 0x00C000
54
55 #define EFI_EVENT_LOG_OFFSET (EFI_VARIABLE_STORE_OFFSET + EFI_VARIABLE_STORE_LENGTH)
56
57 #define EFI_EVENT_LOG_LENGTH 0x002000
58
59 #define EFI_FTW_WORKING_OFFSET (EFI_EVENT_LOG_OFFSET + EFI_EVENT_LOG_LENGTH)
60
61 #define EFI_FTW_WORKING_LENGTH 0x002000
62
63 #endif
64