summaryrefslogtreecommitdiff
path: root/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-06 08:08:57 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-06 08:08:57 +0000
commite15fbaf473f1b7fda7a34d0158e4f6455660bee7 (patch)
tree8bae29fc859e526302a1808c311063c7dba60a61 /Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c
parent9c8403b3f81be91287f87eb9fee767488c9e9c3a (diff)
downloadedk2-platforms-e15fbaf473f1b7fda7a34d0158e4f6455660bee7.tar.xz
1) PcdFlashNvStorageFtwWorkingSize, PcdFlashNvStorageFtwWorkingBase, PcdFlashNvStorageFtwSpareSize, PcdFlashNvStorageFtwSpareBase, PcdFlashNvStorageVariableSize PcdFlashNvStorageVariableBase should in gEfiMdeModulePkgTokenSpaceGuid.
2) Use FlashMapHob to get the address and length of FV instead of using PCD. 3) Use hard code environment in WinNtBusDriver but not dynamic PCD. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3106 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c')
-rw-r--r--Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c47
1 files changed, 35 insertions, 12 deletions
diff --git a/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c b/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c
index 999fb0cc5d..a0baa751e6 100644
--- a/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c
+++ b/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c
@@ -138,22 +138,44 @@ EFI_DRIVER_BINDING_PROTOCOL gWinNtBusDriverBinding = {
NULL
};
-#define NT_PCD_ARRAY_SIZE (sizeof(mPcdEnvironment)/sizeof(NT_PCD_ENTRY))
+#define NT_PCD_ARRAY_SIZE (sizeof(mPcdEnvironment)/sizeof(NT_ENVIRONMENT_VARIABLE_ENTRY))
+
+//
+// BUGBUG: Because currently the new build tools does not support dynamic PCD
+// following dynamic PCd will be hard code. After tools ready, we should
+// use dynmanic PCD AQAP.
+//
//
// Table to map NT Environment variable to the GUID that should be in
// device path.
//
-static NT_PCD_ENTRY mPcdEnvironment[] = {
- PcdToken(PcdWinNtConsole), &gEfiWinNtConsoleGuid,
- PcdToken(PcdWinNtGop), &gEfiWinNtGopGuid,
- PcdToken(PcdWinNtSerialPort), &gEfiWinNtSerialPortGuid,
- PcdToken(PcdWinNtFileSystem), &gEfiWinNtFileSystemGuid,
- PcdToken(PcdWinNtVirtualDisk), &gEfiWinNtVirtualDisksGuid,
- PcdToken(PcdWinNtPhysicalDisk), &gEfiWinNtPhysicalDisksGuid,
- PcdToken(PcdWinNtCpuModel), &gEfiWinNtCPUModelGuid,
- PcdToken(PcdWinNtCpuSpeed), &gEfiWinNtCPUSpeedGuid,
- PcdToken(PcdWinNtMemorySize), &gEfiWinNtMemoryGuid
+//static NT_PCD_ENTRY mPcdEnvironment[] = {
+// PcdToken(PcdWinNtConsole), &gEfiWinNtConsoleGuid,
+// PcdToken(PcdWinNtGop), &gEfiWinNtGopGuid,
+// PcdToken(PcdWinNtSerialPort), &gEfiWinNtSerialPortGuid,
+// PcdToken(PcdWinNtFileSystem), &gEfiWinNtFileSystemGuid,
+// PcdToken(PcdWinNtVirtualDisk), &gEfiWinNtVirtualDisksGuid,
+// PcdToken(PcdWinNtPhysicalDisk), &gEfiWinNtPhysicalDisksGuid,
+// PcdToken(PcdWinNtCpuModel), &gEfiWinNtCPUModelGuid,
+// PcdToken(PcdWinNtCpuSpeed), &gEfiWinNtCPUSpeedGuid,
+// PcdToken(PcdWinNtMemorySize), &gEfiWinNtMemoryGuid
+//};
+typedef struct {
+ CHAR16 *Variable;
+ EFI_GUID *DevicePathGuid;
+} NT_ENVIRONMENT_VARIABLE_ENTRY;
+
+static NT_ENVIRONMENT_VARIABLE_ENTRY mPcdEnvironment[] = {
+ L"Bus Driver Console Window", &gEfiWinNtConsoleGuid,
+ L"UGA Window 1!UGA Window 2", &gEfiWinNtGopGuid,
+ L"COM1!COM2", &gEfiWinNtSerialPortGuid,
+ L".!..\\..\\..\\..\\EdkShellBinPkg\\bin\\ia32\\Apps", &gEfiWinNtFileSystemGuid,
+ L"FW;40960;512", &gEfiWinNtVirtualDisksGuid,
+ L"E:RW;245760;512", &gEfiWinNtPhysicalDisksGuid,
+ L"Intel(R) Processor Model", &gEfiWinNtCPUModelGuid,
+ L"3000", &gEfiWinNtCPUSpeedGuid,
+ L"64!64", &gEfiWinNtMemoryGuid
};
/**
@@ -430,7 +452,8 @@ Returns:
//
InstallStatus = EFI_NOT_FOUND;
for (Index = 0; Index < NT_PCD_ARRAY_SIZE; Index++) {
- PcdTempStr = (VOID *)LibPcdGetPtr (mPcdEnvironment[Index].Token);
+ //PcdTempStr = (VOID *)LibPcdGetPtr (mPcdEnvironment[Index].Token);
+ PcdTempStr = mPcdEnvironment[Index].Variable;
ASSERT (PcdTempStr != NULL);
TempStrSize = StrLen (PcdTempStr);