summaryrefslogtreecommitdiff
path: root/EdkUnixPkg/Include/FlashLayout.h
diff options
context:
space:
mode:
authortgingold <tgingold@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-06 14:59:06 +0000
committertgingold <tgingold@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-06 14:59:06 +0000
commitc9093a06e72ef16d2f3bd7ce0a2b9a172e9d048c (patch)
tree02dfc93be892697bf02f040b6c8429cecc8370ce /EdkUnixPkg/Include/FlashLayout.h
parent8ba7afaf2e9c682a5d17760e6dd5463b3a2b2d67 (diff)
downloadedk2-platforms-c9093a06e72ef16d2f3bd7ce0a2b9a172e9d048c.tar.xz
Unix version of EFI emulator
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2182 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkUnixPkg/Include/FlashLayout.h')
-rw-r--r--EdkUnixPkg/Include/FlashLayout.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/EdkUnixPkg/Include/FlashLayout.h b/EdkUnixPkg/Include/FlashLayout.h
new file mode 100644
index 0000000000..1a13f16c50
--- /dev/null
+++ b/EdkUnixPkg/Include/FlashLayout.h
@@ -0,0 +1,64 @@
+/*++
+
+Copyright (c) 2006, Intel Corporation
+All rights reserved. This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution. The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+Module Name:
+
+ FlashLayout.h
+
+Abstract:
+
+ Platform specific flash layout
+
+ BugBug: We need a better way
+
+--*/
+
+#ifndef __EFI_FLASH_LAYOUT__
+#define __EFI_FLASH_LAYOUT__
+
+//
+// Firmware Volume Information for Nt32
+// adding one working block before FFS FV,
+// and another one for spare block behind FFS FV
+//
+//
+// Note: When block number is changed in .dsc file,
+// this value should be changed accordingly!!!
+//
+#define FIRMWARE_BLOCK_NUMBER 0x28
+
+#define EFI_WINNT_FIRMWARE_OFFSET 0x0
+#define EFI_WINNT_FIRMWARE_LENGTH (0x10000 * FIRMWARE_BLOCK_NUMBER)
+
+#define EFI_WINNT_RUNTIME_UPDATABLE_OFFSET (EFI_WINNT_FIRMWARE_OFFSET + EFI_WINNT_FIRMWARE_LENGTH)
+
+#define EFI_WINNT_RUNTIME_UPDATABLE_LENGTH 0x10000
+
+#define EFI_WINNT_FTW_SPARE_BLOCK_OFFSET (EFI_WINNT_RUNTIME_UPDATABLE_OFFSET + EFI_WINNT_RUNTIME_UPDATABLE_LENGTH)
+
+#define EFI_WINNT_FTW_SPARE_BLOCK_LENGTH 0x10000
+
+#define EFI_WINNT_RUNTIME_UPDATABLE_FV_HEADER_LENGTH 0x48
+
+#define EFI_VARIABLE_STORE_OFFSET EFI_WINNT_RUNTIME_UPDATABLE_OFFSET
+
+#define EFI_VARIABLE_STORE_LENGTH 0x00C000
+
+#define EFI_EVENT_LOG_OFFSET (EFI_VARIABLE_STORE_OFFSET + EFI_VARIABLE_STORE_LENGTH)
+
+#define EFI_EVENT_LOG_LENGTH 0x002000
+
+#define EFI_FTW_WORKING_OFFSET (EFI_EVENT_LOG_OFFSET + EFI_EVENT_LOG_LENGTH)
+
+#define EFI_FTW_WORKING_LENGTH 0x002000
+
+#endif
+