Changeset 85718 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/MnpDxe
- Timestamp:
- Aug 12, 2020 4:09:12 PM (5 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 9 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,129194-133213 /vendor/edk2/current 103735-103757,103769-103776,129194-139864
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/MnpDxe/MnpConfig.c
r80721 r85718 708 708 MnpServiceData = AllocateZeroPool (sizeof (MNP_SERVICE_DATA)); 709 709 if (MnpServiceData == NULL) { 710 DEBUG (( EFI_D_ERROR, "MnpCreateServiceData: Faild to allocate memory for the new Mnp Service Data.\n"));710 DEBUG ((DEBUG_ERROR, "MnpCreateServiceData: Failed to allocate memory for the new Mnp Service Data.\n")); 711 711 712 712 return NULL; … … 743 743 ); 744 744 if (MnpServiceHandle == NULL) { 745 DEBUG (( EFI_D_ERROR, "MnpCreateServiceData: Faild to create child handle.\n"));745 DEBUG ((DEBUG_ERROR, "MnpCreateServiceData: Failed to create child handle.\n")); 746 746 747 747 return NULL; … … 1326 1326 if (MnpDeviceData->ConfiguredChildrenNumber > 0) { 1327 1327 // 1328 // If there are other configured chil ren, return and keep the timers and1328 // If there are other configured children, return and keep the timers and 1329 1329 // simple network unchanged. 1330 1330 // … … 1403 1403 @param[in, out] Instance Pointer to the mnp instance context data. 1404 1404 @param[in] ConfigData Pointer to the configuration data used to configure 1405 the i sntance.1405 the instance. 1406 1406 1407 1407 @retval EFI_SUCCESS The Instance is configured. … … 1606 1606 1607 1607 // 1608 // Allocate pool for the mul icast addresses.1608 // Allocate pool for the multicast addresses. 1609 1609 // 1610 1610 MCastFilterCnt = MnpDeviceData->GroupAddressCount; … … 1697 1697 @param[in, out] Instance Pointer to the mnp instance context data. 1698 1698 @param[in, out] CtrlBlk Pointer to the group address control block. 1699 @param[in, out] GroupAddress Pointer to the group ad ress.1699 @param[in, out] GroupAddress Pointer to the group address. 1700 1700 @param[in] MacAddress Pointer to the mac address. 1701 1701 @param[in] HwAddressSize The hardware address size. … … 1852 1852 if (JoinFlag) { 1853 1853 // 1854 // A new gro puaddress is to be added.1854 // A new group address is to be added. 1855 1855 // 1856 1856 GroupAddress = NULL; -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/MnpDxe/MnpDriver.c
r80721 r85718 111 111 112 112 // 113 // Close the open ned SNP protocol.113 // Close the opened SNP protocol. 114 114 // 115 115 gBS->CloseProtocol ( … … 420 420 to the existing child handle. 421 421 422 @retval EFI_SUCCES 422 @retval EFI_SUCCESS The protocol was added to ChildHandle. 423 423 @retval EFI_INVALID_PARAMETER ChildHandle is NULL. 424 424 @retval EFI_OUT_OF_RESOURCES There are not enough resources available to … … 451 451 Instance = AllocateZeroPool (sizeof (MNP_INSTANCE_DATA)); 452 452 if (Instance == NULL) { 453 DEBUG (( EFI_D_ERROR, "MnpServiceBindingCreateChild: Faild to allocate memory for the new instance.\n"));453 DEBUG ((DEBUG_ERROR, "MnpServiceBindingCreateChild: Failed to allocate memory for the new instance.\n")); 454 454 455 455 return EFI_OUT_OF_RESOURCES; … … 536 536 @param[in] ChildHandle Handle of the child to destroy. 537 537 538 @retval EFI_SUCCES 538 @retval EFI_SUCCESS The protocol was removed from ChildHandle. 539 539 @retval EFI_UNSUPPORTED ChildHandle does not support the protocol that 540 540 is being removed. … … 661 661 @param[in] SystemTable The system table. 662 662 663 @retval EFI_SUCCES 663 @retval EFI_SUCCESS The driver binding and component name protocols are 664 664 successfully installed. 665 665 @retval Others Other errors as indicated. -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/MnpDxe/MnpDriver.h
r80721 r85718 1 1 /** @file 2 Declaration of str ctures and functions for MnpDxe driver.2 Declaration of structures and functions for MnpDxe driver. 3 3 4 4 Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR> … … 224 224 to the existing child handle. 225 225 226 @retval EFI_SUCCES 226 @retval EFI_SUCCESS The protocol was added to ChildHandle. 227 227 @retval EFI_INVALID_PARAMETER ChildHandle is NULL. 228 228 @retval EFI_OUT_OF_RESOURCES There are not enough resources available to … … 249 249 @param[in] ChildHandle Handle of the child to destroy. 250 250 251 @retval EFI_SUCCES 251 @retval EFI_SUCCESS The protocol was removed from ChildHandle. 252 252 @retval EFI_UNSUPPORTED ChildHandle does not support the protocol that 253 253 is being removed. -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/MnpDxe/MnpDxe.inf
r80721 r85718 1 1 ## @file 2 # This module produces EFI MNP Protocol, EFI MNP Servi e Binding Protocol and EFI VLAN Protocol.2 # This module produces EFI MNP Protocol, EFI MNP Service Binding Protocol and EFI VLAN Protocol. 3 3 # 4 4 # This module produces EFI Managed Network Protocol upon EFI Simple Network Protocol, … … 44 44 [Packages] 45 45 MdePkg/MdePkg.dec 46 MdeModulePkg/MdeModulePkg.dec47 46 NetworkPkg/NetworkPkg.dec 48 47 -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/MnpDxe/MnpDxe.uni
r80721 r85718 1 1 // /** @file 2 // This module produces EFI MNP Protocol, EFI MNP Servi e Binding Protocol and EFI VLAN Protocol.2 // This module produces EFI MNP Protocol, EFI MNP Service Binding Protocol and EFI VLAN Protocol. 3 3 // 4 4 // This module produces EFI Managed Network Protocol upon EFI Simple Network Protocol, … … 13 13 14 14 15 #string STR_MODULE_ABSTRACT #language en-US "Produces EFI MNP Protocol, EFI MNP Servi e Binding Protocol and EFI VLAN Protocol"15 #string STR_MODULE_ABSTRACT #language en-US "Produces EFI MNP Protocol, EFI MNP Service Binding Protocol and EFI VLAN Protocol" 16 16 17 17 #string STR_MODULE_DESCRIPTION #language en-US "This module produces EFI Managed Network Protocol upon EFI Simple Network Protocol to provide raw asynchronous network I/O services. It also produces EFI VLAN Protocol to provide manageability interface for VLAN configuration." -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/MnpDxe/MnpImpl.h
r80721 r85718 285 285 @param[in, out] Instance Pointer to the mnp instance context data. 286 286 @param[in] ConfigData Pointer to the configuration data used to configure 287 the i sntance.287 the instance. 288 288 289 289 @retval EFI_SUCCESS The Instance is configured. … … 362 362 Synchronously send out the packet. 363 363 364 This funct on places the packet buffer to SNP driver's tansmit queue. The packet365 can be considered successfully sent out once SNP acc cetpthe packet, while the364 This function places the packet buffer to SNP driver's tansmit queue. The packet 365 can be considered successfully sent out once SNP accept the packet, while the 366 366 packet buffer recycle is deferred for better performance. 367 367 368 368 @param[in] MnpServiceData Pointer to the mnp service context data. 369 @param[in] Packet Pointer to the pa kcet buffer.369 @param[in] Packet Pointer to the packet buffer. 370 370 @param[in] Length The length of the packet. 371 371 @param[in, out] Token Pointer to the token the packet generated from. … … 405 405 406 406 @param[in] Event The event this notify function registered to. 407 @param[in] Context Pointer to the context data register d to the Event.407 @param[in] Context Pointer to the context data registered to the Event. 408 408 409 409 **/ … … 481 481 @param[in, out] MnpDeviceData Pointer to the mnp device context data. 482 482 483 @retval EFI_SUCCESS Successed to recycle the transmitted buffer address.484 @retval Others Failed to recycle the transmitted buffer address.483 @retval EFI_SUCCESS Successed to recycle the transmitted buffer address. 484 @retval Others Failed to recycle the transmitted buffer address. 485 485 486 486 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/MnpDxe/MnpIo.c
r80721 r85718 191 191 Synchronously send out the packet. 192 192 193 This funct on places the packet buffer to SNP driver's tansmit queue. The packet194 can be considered successfully sent out once SNP acc cetpthe packet, while the193 This function places the packet buffer to SNP driver's tansmit queue. The packet 194 can be considered successfully sent out once SNP accept the packet, while the 195 195 packet buffer recycle is deferred for better performance. 196 196 197 197 @param[in] MnpServiceData Pointer to the mnp service context data. 198 @param[in] Packet Pointer to the pa kcet buffer.198 @param[in] Packet Pointer to the packet buffer. 199 199 @param[in] Length The length of the packet. 200 200 @param[in, out] Token Pointer to the token the packet generated from. … … 423 423 424 424 @param[in] Event The event this notify function registered to. 425 @param[in] Context Pointer to the context data register d to the Event.425 @param[in] Context Pointer to the context data registered to the Event. 426 426 427 427 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/MnpDxe/MnpMain.c
r80721 r85718 377 377 ((MacAddress != NULL) && !NET_MAC_IS_MULTICAST (MacAddress, &SnpMode->BroadcastAddress, SnpMode->HwAddressSize))) { 378 378 // 379 // The instance isn't configured to do mul itcast receive. OR380 // the passed in MacAddress is not a mu tlticast mac address.379 // The instance isn't configured to do multicast receive. OR 380 // the passed in MacAddress is not a multicast mac address. 381 381 // 382 382 Status = EFI_INVALID_PARAMETER; … … 714 714 715 715 // 716 // Dispatch the DPC queued by the NotifyFunction of the canc led token's events.716 // Dispatch the DPC queued by the NotifyFunction of the canceled token's events. 717 717 // 718 718 DispatchDpc ();
Note:
See TracChangeset
for help on using the changeset viewer.