X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkNt32Pkg%2FDxe%2FWinNtThunk%2FBus%2FWinNtBusDriver%2FWinNtBusDriver.c;fp=EdkNt32Pkg%2FDxe%2FWinNtThunk%2FBus%2FWinNtBusDriver%2FWinNtBusDriver.c;h=bc4822d7247dc3aebc55c6f675df8d6ee69143d4;hp=5eddc08bb420750a13233b1bd0cbe5f9b3c458b4;hb=7f0ceb225d52f43a9a133f7e5b2f137bcb268ec7;hpb=3bd0d8f8a92cc9917f4a64fa6d285606efc30863 diff --git a/EdkNt32Pkg/Dxe/WinNtThunk/Bus/WinNtBusDriver/WinNtBusDriver.c b/EdkNt32Pkg/Dxe/WinNtThunk/Bus/WinNtBusDriver/WinNtBusDriver.c index 5eddc08bb4..bc4822d724 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 - Decimal number of blocks a device supports. - 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 = ;;[!...] EFI_WIN_NT_PHYSICAL_DISKS = :;;[!...] 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 = [!...] 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 = 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 = [!...] 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 = [!...] 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 --*/ {