]>
Commit | Line | Data |
---|---|---|
45a20a7f | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | FlashLayout.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Platform specific flash layout\r | |
19 | \r | |
20 | BugBug: We need a better way\r | |
21 | \r | |
22 | --*/\r | |
23 | \r | |
24 | #ifndef __EFI_FLASH_LAYOUT__\r | |
25 | #define __EFI_FLASH_LAYOUT__\r | |
26 | \r | |
27 | //\r | |
28 | // Firmware Volume Information for Nt32\r | |
29 | // adding one working block before FFS FV,\r | |
30 | // and another one for spare block behind FFS FV\r | |
31 | //\r | |
32 | //\r | |
33 | // Note: When block number is changed in .dsc file,\r | |
34 | // this value should be changed accordingly!!!\r | |
35 | //\r | |
36 | #define FIRMWARE_BLOCK_NUMBER 0x28\r | |
37 | \r | |
38 | #define EFI_WINNT_FIRMWARE_OFFSET 0x0\r | |
39 | #define EFI_WINNT_FIRMWARE_LENGTH (0x10000 * FIRMWARE_BLOCK_NUMBER)\r | |
40 | \r | |
41 | #define EFI_WINNT_RUNTIME_UPDATABLE_OFFSET (EFI_WINNT_FIRMWARE_OFFSET + EFI_WINNT_FIRMWARE_LENGTH)\r | |
42 | \r | |
43 | #define EFI_WINNT_RUNTIME_UPDATABLE_LENGTH 0x10000\r | |
44 | \r | |
45 | #define EFI_WINNT_FTW_SPARE_BLOCK_OFFSET (EFI_WINNT_RUNTIME_UPDATABLE_OFFSET + EFI_WINNT_RUNTIME_UPDATABLE_LENGTH)\r | |
46 | \r | |
47 | #define EFI_WINNT_FTW_SPARE_BLOCK_LENGTH 0x10000\r | |
48 | \r | |
49 | #define EFI_WINNT_RUNTIME_UPDATABLE_FV_HEADER_LENGTH 0x48\r | |
50 | \r | |
51 | #define EFI_VARIABLE_STORE_OFFSET EFI_WINNT_RUNTIME_UPDATABLE_OFFSET\r | |
52 | \r | |
53 | #define EFI_VARIABLE_STORE_LENGTH 0x00C000\r | |
54 | \r | |
55 | #define EFI_EVENT_LOG_OFFSET (EFI_VARIABLE_STORE_OFFSET + EFI_VARIABLE_STORE_LENGTH)\r | |
56 | \r | |
57 | #define EFI_EVENT_LOG_LENGTH 0x002000\r | |
58 | \r | |
59 | #define EFI_FTW_WORKING_OFFSET (EFI_EVENT_LOG_OFFSET + EFI_EVENT_LOG_LENGTH)\r | |
60 | \r | |
61 | #define EFI_FTW_WORKING_LENGTH 0x002000\r | |
62 | \r | |
63 | #endif\r | |
64 | \r |