\r
Abstract:\r
\r
- Produce block IO abstractions for real devices on your PC using Win32 APIs.\r
- The configuration of what devices to mount or emulate comes from NT \r
+ Produce block IO abstractions for real devices on your PC using Posix APIs.\r
+ The configuration of what devices to mount or emulate comes from UNIX \r
environment variables. The variables must be visible to the Microsoft* \r
Developer Studio for them to work.\r
\r
<block count> - Decimal number of blocks a device supports.\r
<block size> - Decimal number of bytes per block.\r
\r
- NT envirnonment variable contents. '<' and '>' are not part of the variable, \r
+ UNIX envirnonment variable contents. '<' and '>' are not part of the variable, \r
they are just used to make this help more readable. There should be no \r
spaces between the ';'. Extra spaces will break the variable. A '!' is \r
used to seperate multiple devices in a variable.\r
A 1.44MB emulated floppy with a block size of 1024 would look like:\r
EFI_UNIX_VIRTUAL_DISKS=RW;1440;1024\r
\r
- Physical Disks: These devices use NT to open a real device in your system\r
+ Physical Disks: These devices use UNIX to open a real device in your system\r
\r
Thus a 120 MB floppy would look like:\r
EFI_UNIX_PHYSICAL_DISKS=B:RW;245760;512\r
\r
Abstract:\r
\r
- Produce block IO abstractions for real devices on your PC using Win32 APIs.\r
- The configuration of what devices to mount or emulate comes from NT \r
+ Produce block IO abstractions for real devices on your PC using Posix APIs.\r
+ The configuration of what devices to mount or emulate comes from UNIX \r
environment variables. The variables must be visible to the Microsoft* \r
Developer Studio for them to work.\r
\r
\r
Abstract:\r
\r
- Console based on Win32 APIs. \r
+ Console based on Posix APIs. \r
\r
--*/\r
\r
\r
Abstract:\r
\r
- Console based on Win32 APIs.\r
+ Console based on Posix APIs.\r
\r
This file attaches a SimpleTextIn protocol to a previously open window.\r
\r
EFI_UNIX_THUNK_PROTOCOL *UnixThunk;\r
\r
//\r
- // SimpleTextOut Private Data including Win32 types.\r
+ // SimpleTextOut Private Data including Posix types.\r
//\r
// HANDLE NtOutHandle;\r
// HANDLE NtInHandle;\r
\r
Abstract:\r
\r
- Console based on Win32 APIs. \r
+ Console based on Posix APIs. \r
\r
This file attaches a SimpleTextIn protocol to a previously open window.\r
\r
\r
Abstract:\r
\r
- Console based on Win32 APIs. \r
+ Console based on Posix APIs. \r
\r
- This file creates an Win32 window and attaches a SimpleTextOut protocol.\r
+ This file creates an Posix window and attaches a SimpleTextOut protocol.\r
\r
--*/\r
\r
\r
Abstract:\r
\r
- Produce Simple File System abstractions for directories on your PC using Win32 APIs.\r
- The configuration of what devices to mount or emulate comes from NT \r
+ Produce Simple File System abstractions for directories on your PC using Posix APIs.\r
+ The configuration of what devices to mount or emulate comes from UNIX \r
environment variables. The variables must be visible to the Microsoft* \r
Developer Studio for them to work.\r
\r
return EFI_SUCCESS;
\r
//\r
- // bugbug: need to access windows error reporting\r
+ // bugbug: need to access unix error reporting\r
//\r
}\r
\r
return PrivateFile->UnixThunk->FSync (PrivateFile->fd) == 0 ? EFI_SUCCESS : EFI_DEVICE_ERROR;\r
\r
//\r
- // bugbug: - Use Windows error reporting.\r
+ // bugbug: - Use Unix error reporting.\r
//\r
}\r
\r
;\r
\r
//\r
-// EFI 1.1 driver model prototypes for Win NT UGA\r
+// EFI 1.1 driver model prototypes for Win UNIX UGA\r
//\r
\r
EFI_STATUS\r
\r
Abstract:\r
\r
-This following section documents the envirnoment variables for the Win NT \r
+This following section documents the envirnoment variables for the Win UNIX \r
build. These variables are used to define the (virtual) hardware \r
-configuration of the NT environment\r
+configuration of the UNIX environment\r
\r
A ! can be used to seperate multiple instances in a variable. Each \r
instance represents a seperate hardware device. \r
<block count> - Decimal number of blocks a device supports.\r
<block size> - Decimal number of bytes per block.\r
\r
- NT envirnonment variable contents. '<' and '>' are not part of the variable, \r
+ UNIX envirnonment variable contents. '<' and '>' are not part of the variable, \r
they are just used to make this help more readable. There should be no \r
spaces between the ';'. Extra spaces will break the variable. A '!' is \r
used to seperate multiple devices in a variable.\r
A 1.44MB emulated floppy with a block size of 1024 would look like:\r
EFI_UNIX_VIRTUAL_DISKS=RW;1440;1024\r
\r
- Physical Disks: These devices use NT to open a real device in your system\r
+ Physical Disks: These devices use UNIX to open a real device in your system\r
\r
Thus a 120 MB floppy would look like:\r
EFI_UNIX_PHYSICAL_DISKS=B:RW;245760;512\r
#define UNIX_PCD_ARRAY_SIZE (sizeof(mPcdEnvironment)/sizeof(UNIX_PCD_ENTRY))\r
\r
//\r
-// Table to map NT Environment variable to the GUID that should be in\r
+// Table to map UNIX Environment variable to the GUID that should be in\r
// device path.\r
//\r
static UNIX_PCD_ENTRY mPcdEnvironment[] = {\r
<block count> - Decimal number of blocks a device supports.\r
<block size> - Decimal number of bytes per block.\r
\r
- NT envirnonment variable contents. '<' and '>' are not part of the variable, \r
+ UNIX envirnonment variable contents. '<' and '>' are not part of the variable, \r
they are just used to make this help more readable. There should be no \r
spaces between the ';'. Extra spaces will break the variable. A '!' is \r
used to seperate multiple devices in a variable.\r
A 1.44MB emulated floppy with a block size of 1024 would look like:\r
EFI_UNIX_VIRTUAL_DISKS=RW;1440;1024\r
\r
- Physical Disks: These devices use NT to open a real device in your system\r
+ Physical Disks: These devices use UNIX to open a real device in your system\r
\r
Thus a 120 MB floppy would look like:\r
EFI_UNIX_PHYSICAL_DISKS=B:RW;245760;512\r
<PcdEntry PcdItemType="DYNAMIC">\r
<C_Name>PcdUnixFileSystem</C_Name>\r
<TokenSpaceGuidCName>gEfiEdkUnixPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
- <HelpText>This PCD defines the windows directory who will be mounted as\r
+ <HelpText>This PCD defines the unix directory who will be mounted as\r
harddisk in simulator.\r
The item type of this PCD can only be "DYNAMIC".</HelpText>\r
</PcdEntry>\r
\r
Abstract:\r
\r
- NT Emulation Metronome Architectural Protocol Driver as defined in DXE CIS\r
+ UNIX Emulation Metronome Architectural Protocol Driver as defined in DXE CIS\r
\r
--*/\r
\r
\r
Abstract:\r
\r
- NT Emulation Metronome Architectural Protocol Driver as defined in DXE CIS\r
+ UNIX Emulation Metronome Architectural Protocol Driver as defined in DXE CIS\r
\r
--*/\r
\r
\r
Abstract:\r
\r
- NT Emulation Architectural Protocol Driver as defined in Tiano\r
+ UNIX Emulation Architectural Protocol Driver as defined in Tiano\r
\r
--*/\r
\r
\r
Abstract:\r
\r
- Reset Architectural Protocol as defined in Tiano under NT Emulation\r
+ Reset Architectural Protocol as defined in Tiano under UNIX Emulation\r
\r
--*/\r
\r
\r
Abstract:\r
\r
- NT Emulation Timer Architectural Protocol Driver as defined in DXE CIS\r
+ UNIX Emulation Timer Architectural Protocol Driver as defined in DXE CIS\r
\r
- This Timer module uses an NT Thread to simulate the timer-tick driven\r
+ This Timer module uses an UNIX Thread to simulate the timer-tick driven\r
timer service. In the future, the Thread creation should possibly be \r
abstracted by the CPU architectural protocol\r
\r
\r
Abstract:\r
\r
- NT Emulation Architectural Protocol Driver as defined in Tiano.\r
- This Timer module uses an NT Thread to simulate the timer-tick driven\r
+ UNIX Emulation Architectural Protocol Driver as defined in Tiano.\r
+ This Timer module uses an UNIX Thread to simulate the timer-tick driven\r
timer service.\r
\r
--*/\r
Routine Description:\r
\r
This routine would provide support for flushing the CPU data cache.\r
- In the case of NT emulation environment, this flushing is not necessary and\r
+ In the case of UNIX emulation environment, this flushing is not necessary and\r
is thus not implemented.\r
\r
Arguments:\r
{\r
if (FlushType == EfiCpuFlushTypeWriteBackInvalidate) {\r
//\r
- // Only WB flush is supported. We actually need do nothing on NT emulator\r
+ // Only WB flush is supported. We actually need do nothing on UNIX emulator\r
// environment. Classify this to follow EFI spec\r
//\r
return EFI_SUCCESS;\r
}\r
//\r
- // Other flush types are not supported by NT emulator\r
+ // Other flush types are not supported by UNIX emulator\r
//\r
return EFI_UNSUPPORTED;\r
}\r
\r
Abstract:\r
\r
- NT Emulation Architectural Protocol Driver as defined in Tiano.\r
+ UNIX Emulation Architectural Protocol Driver as defined in Tiano.\r
\r
--*/\r
\r
<DatumType>VOID*</DatumType>\r
<ValidUsage>DYNAMIC</ValidUsage>\r
<DefaultValue>L".!..\\..\\..\\..\\..\\EdkShellBinPkg\\bin\\ia32\\Apps"</DefaultValue>\r
- <HelpText>This PCD defines the windows directory who will be mounted as \r
+ <HelpText>This PCD defines the host directory who will be mounted as \r
harddisk in simulator.\r
The item type of this PCD can only be "DYNAMIC".</HelpText>\r
</PcdEntry>\r
<ValidUsage>DYNAMIC</ValidUsage>\r
<DefaultValue>L"64!64"</DefaultValue>\r
<HelpText>This PCD defines the memory size of simulated machine. Simulator will allocate\r
- the size of PcdUnixMemorySize in windows platform.\r
+ the size of PcdUnixMemorySize in host platform.\r
The item type of this PCD can only be "DYNAMIC".</HelpText>\r
</PcdEntry>\r
<PcdEntry>\r
<DatumType>VOID*</DatumType>\r
<ValidUsage>FIXED_AT_BUILD PATCHABLE_IN_MODULE</ValidUsage>\r
<DefaultValue>L"..\\Fv\\Fv_Recovery.fd"</DefaultValue>\r
- <HelpText>This PCD defines the FD file windows path string. Simulator will load the FD file and execute.</HelpText>\r
+ <HelpText>This PCD defines the FD file path string. Simulator will load the FD file and execute.</HelpText>\r
</PcdEntry>\r
<PcdEntry>\r
<C_Name>PcdUnixConsole</C_Name>\r
<ValidUsage>FIXED_AT_BUILD PATCHABLE_IN_MODULE</ValidUsage>\r
<DefaultValue>L"64!64"</DefaultValue>\r
<HelpText>This PCD defines the memory size of simulated machine. Simulator will allocate\r
- the size of PcdUnixMemorySizeForSecMain in windows platform.</HelpText>\r
+ the size of PcdUnixMemorySizeForSecMain in host platform.</HelpText>\r
</PcdEntry>\r
</PcdDeclarations>\r
</PackageSurfaceArea>
This service is called from Index == 0 until it returns EFI_UNSUPPORTED.\r
It allows discontiguous memory regions to be supported by the emulator.\r
It uses gSystemMemory[] and gSystemMemoryCount that were created by\r
- parsing the Windows environment variable EFI_MEMORY_SIZE.\r
+ parsing the host environment variable EFI_MEMORY_SIZE.\r
The size comes from the varaible and the address comes from the call to\r
WinNtOpenFile. \r
\r
\r
Routine Description:\r
Return the FD Size and base address. Since the FD is loaded from a \r
- file into Windows memory only the SEC will know it's address.\r
+ file into host memory only the SEC will know it's address.\r
\r
Arguments:\r
Index - Which FD, starts at zero.\r
\r
//\r
// The following GUIDs are used in EFI_UNIX_IO_PROTOCOL_GUID\r
-// Device paths. They map 1:1 with NT envirnment variables. The variables\r
+// Device paths. They map 1:1 with UNIX envirnment variables. The variables\r
// define what virtual hardware the emulator/UnixBusDriver will produce.\r
//\r
//\r
DEBUG ((EFI_D_ERROR, "Unix Autoscan PEIM Loaded\n"));\r
\r
//\r
- // Get the PEI NT Autoscan PPI\r
+ // Get the PEI UNIX Autoscan PPI\r
//\r
Status = (**PeiServices).LocatePpi (\r
PeiServices,\r
\r
Abstract:\r
\r
- Tiano PEIM to provide the platform support functionality within Windows\r
+ Tiano PEIM to provide the platform support functionality within unix\r
\r
--*/\r
\r
<Version>1.0</Version>\r
<Abstract>Stuff driver</Abstract>\r
<Description>\r
- Tiano PEIM to abstract construction of firmware volume in a Windows NT environment.\r
+ Tiano PEIM to abstract construction of firmware volume in a Unix environment.\r
</Description>\r
<Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
<License>All rights reserved. This program and the accompanying materials\r
SecMain.c\r
\r
Abstract:\r
- WinNt emulator of SEC phase. It's really a Win32 application, but this is\r
- Ok since all the other modules for NT32 are NOT Win32 applications.\r
+ WinNt emulator of SEC phase. It's really a Posix application, but this is\r
+ Ok since all the other modules for NT32 are NOT Posix applications.\r
\r
- This program processes Windows environment variables and figures out\r
+ This program processes host environment variables and figures out\r
what the memory layout will be, how may FD's will be loaded and also\r
what the boot mode is.\r
\r
is a list of PPI's produced by the SEC that are availble for usage in PEI.\r
\r
This code produces 128 K of temporary memory for the PEI stack by opening a\r
- Windows file and mapping it directly to memory addresses.\r
+ host file and mapping it directly to memory addresses.\r
\r
- The system.cmd script is used to set windows environment variables that drive\r
+ The system.cmd script is used to set host environment variables that drive\r
the configuration opitons of the SEC.\r
\r
--*/\r
//\r
// Default information about where the FD is located.\r
// This array gets filled in with information from EFI_FIRMWARE_VOLUMES\r
-// EFI_FIRMWARE_VOLUMES is a Windows environment variable set by system.cmd.\r
+// EFI_FIRMWARE_VOLUMES is a host environment variable set by system.cmd.\r
// The number of array elements is allocated base on parsing\r
// EFI_FIRMWARE_VOLUMES and the memory is never freed.\r
//\r
/*++\r
\r
Routine Description:\r
- Main entry point to SEC for WinNt. This is a Windows program\r
+ Main entry point to SEC for WinNt. This is a unix program\r
\r
Arguments:\r
Argc - Number of command line arguments\r
MemorySizeStr = (CHAR16 *)PcdGetPtr (PcdUnixMemorySizeForSecMain);\r
FirmwareVolumesStr = (CHAR16 *)PcdGetPtr (PcdUnixFirmwareVolume);\r
\r
- printf ("\nEDK SEC Main NT Emulation Environment from www.TianoCore.org\n");\r
+ printf ("\nEDK SEC Main UNIX Emulation Environment from www.TianoCore.org\n");\r
\r
//\r
// Allocate space for gSystemMemory Array\r
This routine produces the ReportStatusCode PEI service. It's passed\r
up to the PEI Core via a PPI. T\r
\r
- This code currently uses the NT clib printf. This does not work the same way\r
+ This code currently uses the UNIX clib printf. This does not work the same way\r
as the EFI Print (), as %t, %g, %s as Unicode are not supported.\r
\r
Arguments:\r
This service is called from Index == 0 until it returns EFI_UNSUPPORTED.\r
It allows discontiguous memory regions to be supported by the emulator.\r
It uses gSystemMemory[] and gSystemMemoryCount that were created by\r
- parsing the Windows environment variable EFI_MEMORY_SIZE.\r
+ parsing the host environment variable EFI_MEMORY_SIZE.\r
The size comes from the varaible and the address comes from the call to\r
WinNtOpenFile.\r
\r
/*++\r
\r
Routine Description:\r
- Since the SEC is the only Windows program in stack it must export\r
+ Since the SEC is the only Unix program in stack it must export\r
an interface to do Win API calls. That's what the WinNtThunk address\r
is for. gWinNt is initailized in WinNtThunk.c.\r
\r
return Status;\r
}\r
//\r
- // Allocate space in NT (not emulator) memory. Extra space is for alignment\r
+ // Allocate space in UNIX (not emulator) memory. Extra space is for alignment\r
//\r
ImageContext.ImageAddress = (EFI_PHYSICAL_ADDRESS) (UINTN) malloc ((UINTN) (ImageContext.ImageSize + (ImageContext.SectionAlignment * 2)));\r
if (ImageContext.ImageAddress == 0) {\r
\r
Routine Description:\r
Return the FD Size and base address. Since the FD is loaded from a\r
- file into Windows memory only the SEC will know it's address.\r
+ file into host memory only the SEC will know it's address.\r
\r
Arguments:\r
Index - Which FD, starts at zero.\r
SecMain.h\r
\r
Abstract:\r
- Include file for Windows API based SEC\r
+ Include file for host API based SEC\r
\r
--*/\r
\r
<C_Name>PcdUnixMemorySizeForSecMain</C_Name>\r
<TokenSpaceGuidCName>gEfiEdkUnixPkgTokenSpaceGuid</TokenSpaceGuidCName>\r
<HelpText>This PCD defines the memory size of simulated machine. Simulator will allocate\r
- the size of PcdUnixMemorySizeForSecMain in windows platform.</HelpText>\r
+ the size of PcdUnixMemorySizeForSecMain in host platform.</HelpText>\r
</PcdEntry>\r
<PcdEntry PcdItemType="DYNAMIC">\r
<C_Name>PcdUnixFirmwareVolume</C_Name>\r