/*++\r
\r
-Copyright (c) 2006 - 2007, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
\r
PXE_SW_UNDI *pxe_31 = 0; // 3.1 entry\r
UNDI32_DEV *UNDI32DeviceList[MAX_NIC_INTERFACES];\r
\r
-NII_TABLE *UnidiDataPointer=NULL; \r
+NII_TABLE *UnidiDataPointer=NULL;\r
\r
VOID\r
EFIAPI\r
\r
Routine Description:\r
\r
- When EFI is shuting down the boot services, we need to install a \r
+ When EFI is shuting down the boot services, we need to install a\r
configuration table for UNDI to work at runtime!\r
\r
Arguments:\r
EFI_EVENT Event;\r
\r
Status = gBS->CreateEvent (\r
- EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,\r
- EFI_TPL_NOTIFY,\r
+ EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
+ TPL_NOTIFY,\r
UndiNotifyExitBs,\r
NULL,\r
&Event\r
Arguments:\r
\r
This - Protocol instance pointer.\r
- \r
+\r
Controller - Handle of device to test.\r
- \r
+\r
RemainingDevicePath - Not used.\r
\r
Returns:\r
\r
EFI_SUCCESS - This driver supports this device.\r
- \r
+\r
other - This driver does not support this device.\r
\r
--*/\r
Arguments:\r
\r
This - Protocol instance pointer.\r
- \r
+\r
Controller - Handle of device to work with.\r
- \r
+\r
RemainingDevicePath - Not used, always produce all possible children.\r
\r
Returns:\r
\r
EFI_SUCCESS - This driver is added to Controller.\r
- \r
+\r
other - This driver does not support this device.\r
\r
--*/\r
UINT16 NewCommand;\r
UINT8 *TmpPxePointer;\r
EFI_PCI_IO_PROTOCOL *PciIoFncs;\r
- UINTN Len; \r
+ UINTN Len;\r
\r
Status = gBS->OpenProtocol (\r
Controller,\r
}\r
\r
//\r
- // if the table exists, free it and alloc again, or alloc it directly \r
+ // if the table exists, free it and alloc again, or alloc it directly\r
//\r
if (UnidiDataPointer != NULL) {\r
Status = gBS->FreePool(UnidiDataPointer);\r
if (EFI_ERROR (Status)) {\r
goto UndiErrorAllocDataPointer;\r
}\r
- \r
+\r
//\r
// Open For Child Device\r
//\r
Arguments:\r
\r
UnqId - Runtime O/S routine might use this, this temp routine does not use it\r
- \r
+\r
MicroSeconds - Determines the length of pause.\r
\r
Returns:\r
Arguments:\r
\r
UnqId - Runtime O/S routine may use this field, this temp routine does not.\r
- \r
+\r
ReadWrite - Determine if it is an I/O or Memory Read/Write Operation.\r
- \r
+\r
Len - Determines the width of the data operation.\r
- \r
+\r
Port - What port to Read/Write from.\r
- \r
+\r
BuffAddr - Address to read to or write from.\r
\r
Returns:\r
Arguments:\r
\r
DevPtr - Pointer which will point to the newly created device path with the MAC node attached.\r
- \r
+\r
BaseDevPtr - Pointer to the device path which the UNDI device driver is latching on to.\r
- \r
+\r
AdapterInfo - Pointer to the NIC data structure information which the UNDI driver is layering on..\r
\r
Returns:\r
\r
EFI_SUCCESS - A MAC address was successfully appended to the Base Device Path.\r
- \r
+\r
other - Not enough resources available to create new Device Path node.\r
\r
--*/\r
Returns:\r
\r
EFI_SUCCESS - Install a GUID/Pointer pair into the system's configuration table.\r
- \r
+\r
other - Did not successfully install the GUID/Pointer pair into the configuration table.\r
\r
--*/\r
return EFI_SUCCESS;\r
}\r
\r
- if(UnidiDataPointer == NULL) { \r
+ if(UnidiDataPointer == NULL) {\r
return EFI_SUCCESS;\r
}\r
- \r
- UndiData = (NII_TABLE *)UnidiDataPointer; \r
- \r
+\r
+ UndiData = (NII_TABLE *)UnidiDataPointer;\r
+\r
UndiData->NumEntries = pxe_31->IFcnt;\r
UndiData->NextLink = NULL;\r
\r