Changeset 77662 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg
- Timestamp:
- Mar 12, 2019 12:40:12 PM (6 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 1 added
- 2 deleted
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776 /vendor/edk2/current 103735-103757,103769-103776,129194-129237
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c
r48674 r77662 301 301 Routine Description: 302 302 303 Stop this driver on ControllerHandle. Support stop ing any child handles303 Stop this driver on ControllerHandle. Support stopping any child handles 304 304 created by this driver. 305 305 … … 1753 1753 1754 1754 OpCode = (UINT8 *) (Packet->Cdb); 1755 ArrayLen = (UINT8) ( sizeof (gSupportedATAPICommands) / sizeof (gSupportedATAPICommands[0]));1755 ArrayLen = (UINT8) (ARRAY_SIZE (gSupportedATAPICommands)); 1756 1756 1757 1757 for (Index = 0; (Index < ArrayLen) && (CompareMem (&gSupportedATAPICommands[Index], &gEndTable, sizeof (SCSI_COMMAND_SET)) != 0); Index++) { … … 1886 1886 Routine Description: 1887 1887 1888 Su mbit request sense command1889 1890 Arguments: 1891 1892 AtapiScsiPrivate - The p ionter of ATAPI_SCSI_PASS_THRU_DEV1888 Submit request sense command 1889 1890 Arguments: 1891 1892 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV 1893 1893 Target - The target ID 1894 1894 Timeout - The time to complete the command … … 1996 1996 1997 1997 OpCode = (UINT8 *) (Packet->Cdb); 1998 ArrayLen = (UINT8) ( sizeof (gSupportedATAPICommands) / sizeof (gSupportedATAPICommands[0]));1998 ArrayLen = (UINT8) (ARRAY_SIZE (gSupportedATAPICommands)); 1999 1999 2000 2000 for (Index = 0; (Index < ArrayLen) && (CompareMem (&gSupportedATAPICommands[Index], &gEndTable, sizeof (SCSI_COMMAND_SET)) != 0); Index++) { -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.h
r58466 r77662 1120 1120 Routine Description: 1121 1121 1122 Su mbit request sense command1123 1124 Arguments: 1125 1126 AtapiScsiPrivate - The p ionter of ATAPI_SCSI_PASS_THRU_DEV1122 Submit request sense command 1123 1124 Arguments: 1125 1126 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV 1127 1127 Target - The target ID 1128 1128 Timeout - The time to complete the command -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/Bus/Usb/FtdiUsbSerialDxe/CompatibleDevices.txt
-
Property svn:eol-style
set to
native
-
Property svn:eol-style
set to
-
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/Bus/Usb/FtdiUsbSerialDxe/FtdiUsbSerialDriver.c
r58466 r77662 1371 1371 Resets the USB Serial Device 1372 1372 1373 This function is the internal method for reset ing the device and is called by1373 This function is the internal method for resetting the device and is called by 1374 1374 SerialReset() 1375 1375 … … 1711 1711 UART_DEVICE_PATH *Uart; 1712 1712 UART_FLOW_CONTROL_DEVICE_PATH *FlowControl; 1713 UINT32 FlowControlMap;1714 1713 UINT32 Control; 1715 1714 EFI_DEVICE_PATH_PROTOCOL *TempDevicePath; … … 1970 1969 UsbSerialDevice->ControllerHandle = NULL; 1971 1970 FlowControl = NULL; 1972 FlowControlMap = 0;1973 1971 1974 1972 // -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/Bus/Usb/FtdiUsbSerialDxe/ReadMe.txt
-
Property svn:eol-style
set to
native
r58464 r77662 18 18 Data Bits: 8 19 19 Stop Bits: 1 20 Notes: 20 Notes: 21 21 Data Bits setting of 6,7,8 can not be combined with a Stop Bits setting of 1.5 22 22 … … 26 26 27 27 Tested with: 28 An FTDI8U232AM based USB-To-Serial adapter, the UEFI Shell, and the SerialTest application 28 An FTDI8U232AM based USB-To-Serial adapter, the UEFI Shell, and the SerialTest application 29 29 using a PuTTY Terminal 30 30 31 See CompatibleDevices.txt for a list of devices which have been confirmed to work with this 31 See CompatibleDevices.txt for a list of devices which have been confirmed to work with this 32 32 driver. -
Property svn:eol-style
set to
-
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c
r58466 r77662 668 668 UINT32 offset; 669 669 RX_TX_PACKET * pRxPacket; 670 UINTN LengthInBytes;671 670 EFI_STATUS Status; 672 671 … … 685 684 686 685 pRxPacket = pNicDevice->pRxFree; 687 LengthInBytes = sizeof ( *pRxPacket ) - sizeof ( pRxPacket->pNext );688 686 if ( NULL == pRxPacket ) { 689 687 Status = gBS->AllocatePool ( EfiRuntimeServicesData, -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.h
r58466 r77662 2 2 Definitions for ASIX AX88772 Ethernet adapter. 3 3 4 Copyright (c) 2011 , Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR> 5 5 This program and the accompanying materials 6 6 are licensed and made available under the terms and conditions of the BSD License … … 19 19 20 20 #include <Guid/EventGroup.h> 21 #include <Guid/NicIp4ConfigNvData.h>22 21 23 22 #include <IndustryStandard/Pci.h> -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/SimpleNetwork.c
r58466 r77662 2 2 Provides the Simple Network functions. 3 3 4 Copyright (c) 2011 , Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR> 5 5 This program and the accompanying materials 6 6 are licensed and made available under the terms and conditions of the BSD License … … 217 217 @retval EFI_SUCCESS This operation was successful. 218 218 @retval EFI_NOT_STARTED The network interface was not started. 219 @retval EFI_OUT_OF_RESO RUCES There was not enough memory for the transmit and receive buffers219 @retval EFI_OUT_OF_RESOURCES There was not enough memory for the transmit and receive buffers 220 220 @retval EFI_INVALID_PARAMETER pSimpleNetwork parameter was NULL or did not point to a valid 221 221 EFI_SIMPLE_NETWORK_PROTOCOL structure. -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/Ax88772.c
r58466 r77662 626 626 if (EFI_ERROR(Status)) goto err; 627 627 628 SetupMsg.RequestType = USB_REQ_TYPE_VENDOR 628 if (pNicDevice->Flags != FLAG_TYPE_AX88772) { 629 SetupMsg.RequestType = USB_REQ_TYPE_VENDOR 629 630 | USB_TARGET_DEVICE; 630 SetupMsg.Request = CMD_RXQTC;631 SetupMsg.Value = 0x8000;632 SetupMsg.Index = 0x8001;633 SetupMsg.Length = 0;634 Status = Ax88772UsbCommand ( pNicDevice,631 SetupMsg.Request = CMD_RXQTC; 632 SetupMsg.Value = 0x8000; 633 SetupMsg.Index = 0x8001; 634 SetupMsg.Length = 0; 635 Status = Ax88772UsbCommand ( pNicDevice, 635 636 &SetupMsg, 636 637 NULL ); 638 } 639 637 640 err: 638 641 return Status; -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/Ax88772.h
r58466 r77662 2 2 Definitions for ASIX AX88772 Ethernet adapter. 3 3 4 Copyright (c) 2011 , Intel Corporation4 Copyright (c) 2011 - 2015, Intel Corporation 5 5 All rights reserved. This program and the accompanying materials 6 6 are licensed and made available under the terms and conditions of the BSD License … … 19 19 20 20 #include <Guid/EventGroup.h> 21 #include <Guid/NicIp4ConfigNvData.h>22 21 23 22 #include <IndustryStandard/Pci.h> … … 142 141 143 142 #define DEV_SIGNATURE SIGNATURE_32 ('A','X','8','8') ///< Signature of data structures in memory 144 145 #define VENDOR_ID 0x0B95 ///< Vendor ID for Asix146 #define PRODUCT_ID 0x772B ///< Product ID for the AX88772 USB 10/100 Ethernet controller147 143 148 144 #define RESET_MSEC 1000 ///< Reset duration … … 299 295 #define AN_CSMA_CD 0x0001 ///< 1 = IEEE 802.3 CSMA/CD support 300 296 301 297 // asix_flags defines 298 #define FLAG_NONE 0 299 #define FLAG_TYPE_AX88172 BIT0 300 #define FLAG_TYPE_AX88772 BIT1 301 #define FLAG_TYPE_AX88772B BIT2 302 #define FLAG_EEPROM_MAC BIT3 // initial mac address in eeprom 302 303 303 304 //------------------------------------------------------------------------------ 304 305 // Data Types 305 306 //------------------------------------------------------------------------------ 307 308 typedef struct { 309 UINT16 VendorId; 310 UINT16 ProductId; 311 INT32 Flags; 312 }ASIX_DONGLE; 306 313 307 314 /** … … 398 405 UINTN PktCntInQueue; 399 406 UINT8 * pBulkInBuff; 407 408 INT32 Flags; 400 409 401 410 } NIC_DEVICE; -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/DriverBinding.c
r58466 r77662 14 14 15 15 #include "Ax88772.h" 16 17 ASIX_DONGLE ASIX_DONGLES[] = { 18 { 0x05AC, 0x1402, FLAG_TYPE_AX88772 }, // Apple USB Ethernet Adapter 19 // ASIX 88772B 20 { 0x0B95, 0x772B, FLAG_TYPE_AX88772B | FLAG_EEPROM_MAC }, 21 { 0x0000, 0x0000, FLAG_NONE } // END - Do not remove 22 }; 16 23 17 24 /** … … 37 44 EFI_USB_IO_PROTOCOL * pUsbIo; 38 45 EFI_STATUS Status; 46 UINT32 Index; 47 39 48 // 40 49 // Connect to the USB stack … … 62 71 // Validate the adapter 63 72 // 64 if ( VENDOR_ID == Device.IdVendor ) { 65 66 if (PRODUCT_ID == Device.IdProduct) { 67 DEBUG ((EFI_D_INFO, "Found the AX88772B\r\n")); 73 for (Index = 0; ASIX_DONGLES[Index].VendorId != 0; Index++) { 74 if (ASIX_DONGLES[Index].VendorId == Device.IdVendor && 75 ASIX_DONGLES[Index].ProductId == Device.IdProduct) { 76 DEBUG ((EFI_D_INFO, "Found the AX88772B\r\n")); 77 break; 68 78 } 69 else {70 Status = EFI_UNSUPPORTED;71 }72 79 } 73 else { 74 Status = EFI_UNSUPPORTED; 75 }80 81 if (ASIX_DONGLES[Index].VendorId == 0) 82 Status = EFI_UNSUPPORTED; 76 83 } 77 84 … … 118 125 EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath = NULL; 119 126 MAC_ADDR_DEVICE_PATH MacDeviceNode; 127 EFI_USB_DEVICE_DESCRIPTOR Device; 128 UINT32 Index; 120 129 121 130 // … … 170 179 gBS->FreePool ( pNicDevice ); 171 180 goto EXIT; 181 } 182 183 Status = pNicDevice->pUsbIo->UsbGetDeviceDescriptor ( pNicDevice->pUsbIo, &Device ); 184 if (EFI_ERROR ( Status )) { 185 gBS->CloseProtocol ( 186 Controller, 187 &gEfiUsbIoProtocolGuid, 188 pThis->DriverBindingHandle, 189 Controller 190 ); 191 gBS->FreePool ( pNicDevice ); 192 goto EXIT; 193 } else { 194 // 195 // Validate the adapter 196 // 197 for (Index = 0; ASIX_DONGLES[Index].VendorId != 0; Index++) { 198 if (ASIX_DONGLES[Index].VendorId == Device.IdVendor && 199 ASIX_DONGLES[Index].ProductId == Device.IdProduct) { 200 break; 201 } 202 } 203 204 if (ASIX_DONGLES[Index].VendorId == 0) { 205 gBS->CloseProtocol ( 206 Controller, 207 &gEfiUsbIoProtocolGuid, 208 pThis->DriverBindingHandle, 209 Controller 210 ); 211 gBS->FreePool ( pNicDevice ); 212 goto EXIT; 213 } 214 215 pNicDevice->Flags = ASIX_DONGLES[Index].Flags; 172 216 } 173 217 -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/SimpleNetwork.c
r58466 r77662 2 2 Provides the Simple Network functions. 3 3 4 Copyright (c) 2011 - 201 3, Intel Corporation4 Copyright (c) 2011 - 2016, Intel Corporation 5 5 All rights reserved. This program and the accompanying materials 6 6 are licensed and made available under the terms and conditions of the BSD License … … 234 234 @retval EFI_SUCCESS This operation was successful. 235 235 @retval EFI_NOT_STARTED The network interface was not started. 236 @retval EFI_OUT_OF_RESO RUCES There was not enough memory for the transmit and receive buffers236 @retval EFI_OUT_OF_RESOURCES There was not enough memory for the transmit and receive buffers 237 237 @retval EFI_INVALID_PARAMETER pSimpleNetwork parameter was NULL or did not point to a valid 238 238 EFI_SIMPLE_NETWORK_PROTOCOL structure. … … 701 701 EFI_STATUS Status = EFI_SUCCESS; 702 702 EFI_TPL TplPrevious; 703 NIC_DEVICE * pNicDevice;704 703 705 704 TplPrevious = gBS->RaiseTPL(TPL_CALLBACK); 706 pNicDevice = DEV_FROM_SIMPLE_NETWORK ( pSimpleNetwork );707 705 pMode = pSimpleNetwork->Mode; 708 706 -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c
r58466 r77662 237 237 { 238 238 UINTN DstY; 239 VOID *BltMemSrc;240 239 VOID *BltMemDst; 241 240 UINTN X; … … 348 347 X = X + MIN (X, Width - X); 349 348 } 350 BltMemSrc = (VOID *) mBltLibLineBuffer;351 349 LineBufferReady = TRUE; 352 350 } -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/OptionRomPkg.dsc
r58466 r77662 8 8 # 9 9 # Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR> 10 # Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR> 10 11 # 11 12 # This program and the accompanying materials … … 30 31 DSC_SPECIFICATION = 0x00010005 31 32 OUTPUT_DIRECTORY = Build/OptionRomPkg 32 SUPPORTED_ARCHITECTURES = IA32|IPF|X64|EBC 33 SUPPORTED_ARCHITECTURES = IA32|IPF|X64|EBC|ARM|AARCH64 33 34 BUILD_TARGETS = DEBUG|RELEASE 34 35 SKUID_IDENTIFIER = DEFAULT … … 60 61 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf 61 62 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf 63 64 [LibraryClasses.AARCH64, LibraryClasses.ARM] 65 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf 66 67 [LibraryClasses.ARM] 68 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf 62 69 63 70 ################################################################################ … … 106 113 OptionRomPkg/UndiRuntimeDxe/UndiRuntimeDxe.inf 107 114 OptionRomPkg/Bus/Usb/FtdiUsbSerialDxe/FtdiUsbSerialDxe.inf 115 OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.inf 116 OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/Ax88772b.inf 108 117 109 118 [Components.IA32, Components.X64, Components.IPF] -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/UndiRuntimeDxe/Decode.c
r58466 r77662 2 2 Provides the basic UNID functions. 3 3 4 Copyright (c) 2006 - 201 3, Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR> 5 5 This program and the accompanying materials 6 6 are licensed and made available under the terms and conditions of the BSD License … … 1277 1277 // TODO: cdb - add argument and description to function comment 1278 1278 VOID 1279 EFIAPI 1279 1280 UNDI_APIEntry_new ( 1280 1281 IN UINT64 cdb -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/UndiRuntimeDxe/Init.c
r58459 r77662 2 2 Initialization functions for EFI UNDI32 driver. 3 3 4 Copyright (c) 2006 - 201 3, Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> 5 5 This program and the accompanying materials 6 6 are licensed and made available under the terms and conditions of the BSD License … … 100 100 VOID 101 101 EFIAPI 102 UndiNotify ExitBs(102 UndiNotifyReadyToBoot ( 103 103 EFI_EVENT Event, 104 104 VOID *Context … … 436 436 UNDI32Device->NIIProtocol_31.ImageSize = 0; 437 437 UNDI32Device->NIIProtocol_31.ImageAddr = 0; 438 UNDI32Device->NIIProtocol_31.Ipv6Supported = FALSE;438 UNDI32Device->NIIProtocol_31.Ipv6Supported = TRUE; 439 439 440 440 UNDI32Device->NIIProtocol_31.StringId[0] = 'U'; … … 444 444 445 445 UNDI32Device->DeviceHandle = NULL; 446 447 UNDI32Device->Aip.GetInformation = UndiAipGetInfo; 448 UNDI32Device->Aip.SetInformation = UndiAipSetInfo; 449 UNDI32Device->Aip.GetSupportedTypes = UndiAipGetSupportedTypes; 446 450 447 451 // … … 454 458 &gEfiDevicePathProtocolGuid, 455 459 UNDI32Device->Undi32DevPath, 460 &gEfiAdapterInformationProtocolGuid, 461 &UNDI32Device->Aip, 456 462 NULL 457 463 ); … … 498 504 &gEfiDevicePathProtocolGuid, 499 505 UNDI32Device->Undi32DevPath, 506 &gEfiAdapterInformationProtocolGuid, 507 &UNDI32Device->Aip, 500 508 NULL 501 509 ); … … 1029 1037 EVT_NOTIFY_SIGNAL, 1030 1038 TPL_NOTIFY, 1031 UndiNotify ExitBs,1039 UndiNotifyReadyToBoot, 1032 1040 NULL, 1033 &gEfiEvent ExitBootServicesGuid,1041 &gEfiEventReadyToBootGuid, 1034 1042 &Event 1035 1043 ); -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/UndiRuntimeDxe/Undi32.h
r58459 r77662 2 2 EFI internal structures for the EFI UNDI driver. 3 3 4 Copyright (c) 2006 - 201 2, Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR> 5 5 This program and the accompanying materials 6 6 are licensed and made available under the terms and conditions of the BSD License … … 22 22 #include <Protocol/NetworkInterfaceIdentifier.h> 23 23 #include <Protocol/DevicePath.h> 24 #include <Protocol/AdapterInformation.h> 24 25 25 26 #include <Library/UefiDriverEntryPoint.h> … … 31 32 #include <Library/BaseLib.h> 32 33 #include <Library/DevicePathLib.h> 34 #include <Library/MemoryAllocationLib.h> 33 35 34 36 #include <IndustryStandard/Pci.h> … … 58 60 #define UNDI_DEV_FROM_THIS(a) CR(a, UNDI32_DEV, NIIProtocol_31, UNDI_DEV_SIGNATURE) 59 61 #define UNDI_DEV_FROM_NIC(a) CR(a, UNDI32_DEV, NicInfo, UNDI_DEV_SIGNATURE) 62 #define UNDI_DEV_FROM_AIP(a) CR(a, UNDI32_DEV, Aip, UNDI_DEV_SIGNATURE) 60 63 61 64 typedef struct { 62 65 UINTN Signature; 63 66 EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL NIIProtocol_31; 67 EFI_ADAPTER_INFORMATION_PROTOCOL Aip; 64 68 EFI_HANDLE DeviceHandle; 65 69 EFI_DEVICE_PATH_PROTOCOL *Undi32BaseDevPath; … … 177 181 ); 178 182 179 VOID180 EFIAPI181 UndiNotifyExitBs (182 EFI_EVENT Event,183 VOID *Context184 );185 186 183 EFI_STATUS 187 184 EFIAPI … … 342 339 ); 343 340 344 VOID UNDI_APIEntry_new(UINT64);341 VOID EFIAPI UNDI_APIEntry_new(UINT64); 345 342 VOID UNDI_APIEntry_Common(UINT64); 346 343 … … 351 348 VOID PxeUpdate (NIC_DATA_INSTANCE *NicPtr, PXE_SW_UNDI *PxePtr); 352 349 350 // 351 // functions defined in UndiAipImpl.c 352 // 353 354 /** 355 Returns the current state information for the adapter. 356 357 This function returns information of type InformationType from the adapter. 358 If an adapter does not support the requested informational type, then 359 EFI_UNSUPPORTED is returned. 360 361 @param[in] This A pointer to the EFI_ADAPTER_INFORMATION_PROTOCOL instance. 362 @param[in] InformationType A pointer to an EFI_GUID that defines the contents of InformationBlock. 363 @param[out] InforamtionBlock The service returns a pointer to the buffer with the InformationBlock 364 structure which contains details about the data specific to InformationType. 365 @param[out] InforamtionBlockSize The driver returns the size of the InformationBlock in bytes. 366 367 @retval EFI_SUCCESS The InformationType information was retrieved. 368 @retval EFI_UNSUPPORTED The InformationType is not known. 369 @retval EFI_DEVICE_ERROR The device reported an error. 370 @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources. 371 @retval EFI_INVALID_PARAMETER This is NULL. 372 @retval EFI_INVALID_PARAMETER InformationBlock is NULL. 373 @retval EFI_INVALID_PARAMETER InformationBlockSize is NULL. 374 375 **/ 376 EFI_STATUS 377 EFIAPI 378 UndiAipGetInfo ( 379 IN EFI_ADAPTER_INFORMATION_PROTOCOL *This, 380 IN EFI_GUID *InformationType, 381 OUT VOID **InformationBlock, 382 OUT UINTN *InformationBlockSize 383 ); 384 385 /** 386 Sets state information for an adapter. 387 388 This function sends information of type InformationType for an adapter. 389 If an adapter does not support the requested information type, then EFI_UNSUPPORTED 390 is returned. 391 392 @param[in] This A pointer to the EFI_ADAPTER_INFORMATION_PROTOCOL instance. 393 @param[in] InformationType A pointer to an EFI_GUID that defines the contents of InformationBlock. 394 @param[in] InforamtionBlock A pointer to the InformationBlock structure which contains details 395 about the data specific to InformationType. 396 @param[in] InforamtionBlockSize The size of the InformationBlock in bytes. 397 398 @retval EFI_SUCCESS The information was received and interpreted successfully. 399 @retval EFI_UNSUPPORTED The InformationType is not known. 400 @retval EFI_DEVICE_ERROR The device reported an error. 401 @retval EFI_INVALID_PARAMETER This is NULL. 402 @retval EFI_INVALID_PARAMETER InformationBlock is NULL. 403 @retval EFI_WRITE_PROTECTED The InformationType cannot be modified using EFI_ADAPTER_INFO_SET_INFO(). 404 405 **/ 406 EFI_STATUS 407 EFIAPI 408 UndiAipSetInfo ( 409 IN EFI_ADAPTER_INFORMATION_PROTOCOL *This, 410 IN EFI_GUID *InformationType, 411 IN VOID *InformationBlock, 412 IN UINTN InformationBlockSize 413 ); 414 415 /** 416 Get a list of supported information types for this instance of the protocol. 417 418 This function returns a list of InformationType GUIDs that are supported on an 419 adapter with this instance of EFI_ADAPTER_INFORMATION_PROTOCOL. The list is returned 420 in InfoTypesBuffer, and the number of GUID pointers in InfoTypesBuffer is returned in 421 InfoTypesBufferCount. 422 423 @param[in] This A pointer to the EFI_ADAPTER_INFORMATION_PROTOCOL instance. 424 @param[out] InfoTypesBuffer A pointer to the list of InformationType GUID pointers that are supported 425 by This. 426 @param[out] InfoTypesBufferCount A pointer to the number of GUID pointers present in InfoTypesBuffer. 427 428 @retval EFI_SUCCESS The list of information type GUIDs that are supported on this adapter was 429 returned in InfoTypesBuffer. The number of information type GUIDs was 430 returned in InfoTypesBufferCount. 431 @retval EFI_INVALID_PARAMETER This is NULL. 432 @retval EFI_INVALID_PARAMETER InfoTypesBuffer is NULL. 433 @retval EFI_INVALID_PARAMETER InfoTypesBufferCount is NULL. 434 @retval EFI_OUT_OF_RESOURCES There is not enough pool memory to store the results. 435 436 **/ 437 EFI_STATUS 438 EFIAPI 439 UndiAipGetSupportedTypes ( 440 IN EFI_ADAPTER_INFORMATION_PROTOCOL *This, 441 OUT EFI_GUID **InfoTypesBuffer, 442 OUT UINTN *InfoTypesBufferCount 443 ); 444 353 445 #endif -
trunk/src/VBox/Devices/EFI/FirmwareNew/OptionRomPkg/UndiRuntimeDxe/UndiRuntimeDxe.inf
r58459 r77662 2 2 # Component description file for Undi module. 3 3 # 4 # This module provides support for Universal Network Driver Interface 5 # Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR> 4 # This module provides support for Universal Network Driver Interface. 5 # Notes: this module is no longer regular maintained/validated. 6 # 7 # Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> 6 8 # 7 9 # This program and the accompanying materials … … 35 37 Init.c 36 38 ComponentName.c 39 UndiAipImpl.c 37 40 38 41 [Packages] 39 42 MdePkg/MdePkg.dec 40 41 43 42 44 [LibraryClasses] … … 48 50 UefiDriverEntryPoint 49 51 BaseLib 52 MemoryAllocationLib 50 53 51 54 [Protocols] … … 53 56 gEfiPciIoProtocolGuid 54 57 gEfiDevicePathProtocolGuid 58 gEfiAdapterInformationProtocolGuid 55 59 56 60 [Guids] 57 61 gEfiEventExitBootServicesGuid ## PRODUCES ## Event 58 62 gEfiEventVirtualAddressChangeGuid ## PRODUCES ## Event 63 gEfiAdapterInfoUndiIpv6SupportGuid ## PRODUCES 59 64 60 65 [Depex]
Note:
See TracChangeset
for help on using the changeset viewer.