diff options
Diffstat (limited to 'EdkNt32Pkg/Dxe/WinNtThunk/Bus/WinNtBusDriver/WinNtBusDriver.c')
-rw-r--r-- | EdkNt32Pkg/Dxe/WinNtThunk/Bus/WinNtBusDriver/WinNtBusDriver.c | 57 |
1 files changed, 25 insertions, 32 deletions
diff --git a/EdkNt32Pkg/Dxe/WinNtThunk/Bus/WinNtBusDriver/WinNtBusDriver.c b/EdkNt32Pkg/Dxe/WinNtThunk/Bus/WinNtBusDriver/WinNtBusDriver.c index 5eddc08..bc4822d 100644 --- a/EdkNt32Pkg/Dxe/WinNtThunk/Bus/WinNtBusDriver/WinNtBusDriver.c +++ b/EdkNt32Pkg/Dxe/WinNtThunk/Bus/WinNtBusDriver/WinNtBusDriver.c @@ -1,13 +1,13 @@ /*+++
-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.
+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:
@@ -15,12 +15,12 @@ Module Name: Abstract:
-This following section documents the envirnoment variables for the Win NT
-build. These variables are used to define the (virtual) hardware
+This following section documents the envirnoment variables for the Win NT
+build. These variables are used to define the (virtual) hardware
configuration of the NT environment
-A ! can be used to seperate multiple instances in a variable. Each
-instance represents a seperate hardware device.
+A ! can be used to seperate multiple instances in a variable. Each
+instance represents a seperate hardware device.
EFI_WIN_NT_PHYSICAL_DISKS - maps to drives on your system
EFI_WIN_NT_VIRTUAL_DISKS - maps to a device emulated by a file
@@ -36,20 +36,20 @@ EFI_WIN_NT_SERIAL_PORT - maps physical serial ports <block count> - Decimal number of blocks a device supports.
<block size> - Decimal number of bytes per block.
- NT envirnonment variable contents. '<' and '>' are not part of the variable,
- they are just used to make this help more readable. There should be no
- spaces between the ';'. Extra spaces will break the variable. A '!' is
+ NT envirnonment variable contents. '<' and '>' are not part of the variable,
+ they are just used to make this help more readable. There should be no
+ spaces between the ';'. Extra spaces will break the variable. A '!' is
used to seperate multiple devices in a variable.
- EFI_WIN_NT_VIRTUAL_DISKS =
+ EFI_WIN_NT_VIRTUAL_DISKS =
<F | R><O | W>;<block count>;<block size>[!...]
EFI_WIN_NT_PHYSICAL_DISKS =
<drive letter>:<F | R><O | W>;<block count>;<block size>[!...]
Virtual Disks: These devices use a file to emulate a hard disk or removable
- media device.
-
+ media device.
+
Thus a 20 MB emulated hard drive would look like:
EFI_WIN_NT_VIRTUAL_DISKS=FW;40960;512
@@ -64,25 +64,25 @@ EFI_WIN_NT_SERIAL_PORT - maps physical serial ports Thus a standard CD-ROM floppy would look like:
EFI_WIN_NT_PHYSICAL_DISKS=Z:RO;307200;2048
- EFI_WIN_NT_FILE_SYSTEM =
+ EFI_WIN_NT_FILE_SYSTEM =
<directory path>[!...]
Mounting the two directories C:\FOO and C:\BAR would look like:
EFI_WIN_NT_FILE_SYSTEM=c:\foo!c:\bar
- EFI_WIN_NT_CONSOLE =
+ EFI_WIN_NT_CONSOLE =
<window title>
Declaring a text console window with the title "My EFI Console" woild look like:
EFI_WIN_NT_CONSOLE=My EFI Console
- EFI_WIN_NT_UGA =
+ EFI_WIN_NT_UGA =
<width> <height>[!...]
Declaring a two UGA windows with resolutions of 800x600 and 1024x768 would look like:
Example : EFI_WIN_NT_UGA=800 600!1024 768
- EFI_WIN_NT_SERIAL_PORT =
+ EFI_WIN_NT_SERIAL_PORT =
<port name>[!...]
Declaring two serial ports on COM1 and COM2 would look like:
@@ -98,15 +98,8 @@ EFI_WIN_NT_SERIAL_PORT - maps physical serial ports ---*/
#include "WinNtBusDriver.h"
-//#include "PciHostBridge.h"
-
-//
-// Define GUID for the WinNt Bus Driver
-//
-static EFI_GUID gWinNtBusDriverGuid = {
- 0x419f582, 0x625, 0x4531, 0x8a, 0x33, 0x85, 0xa9, 0x96, 0x5c, 0x95, 0xbc
-};
+extern EFI_GUID gWinNtBusDriverGuid;
//
// DriverBinding protocol global
//
@@ -213,7 +206,7 @@ Returns: return EFI_UNSUPPORTED;
}
}
-
+
//
// Open the IO Abstraction(s) needed to perform the supported test
//
@@ -699,7 +692,7 @@ Arguments: Returns:
- EFI_DEVICE_PATH_PROTOCOL
+ EFI_DEVICE_PATH_PROTOCOL
--*/
{
|