From d354ab7ff91f54f39ff0e846b059ed97393eb8ed Mon Sep 17 00:00:00 2001 From: jji4 Date: Thu, 4 Dec 2008 07:12:25 +0000 Subject: [PATCH] 1)Global variables have been moved backward ahead of functions. 2)INF comments have been reviewed. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6839 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf | 6 +- MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf | 4 + MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf | 4 + MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf | 4 + .../UsbMassStorageDxe/UsbMassStorageDxe.inf | 4 + .../UsbMouseAbsolutePointerDxe.inf | 5 +- .../Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf | 4 + .../Console/ConPlatformDxe/ConPlatformDxe.inf | 10 +- .../Console/ConSplitterDxe/ConSplitterDxe.inf | 4 + .../GraphicsConsoleDxe/GraphicsConsoleDxe.inf | 1 + .../Console/TerminalDxe/TerminalDxe.inf | 5 +- .../Universal/DebugPortDxe/DebugPortDxe.inf | 5 +- .../Universal/Disk/DiskIoDxe/DiskIoDxe.inf | 1 + .../Disk/PartitionDxe/PartitionDxe.inf | 1 + .../Universal/Network/ArpDxe/ArpDriver.h | 131 ++++++++++++++++++ .../Universal/Network/ArpDxe/ArpDxe.inf | 4 + .../Universal/Network/ArpDxe/ComponentName.c | 129 ----------------- .../Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf | 4 + .../Universal/Network/IScsiDxe/IScsiDxe.inf | 1 + .../Network/Ip4ConfigDxe/Ip4ConfigDxe.inf | 4 + .../Universal/Network/Ip4Dxe/Ip4Dxe.inf | 4 + .../Universal/Network/MnpDxe/MnpDxe.inf | 4 + .../Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf | 4 + .../Universal/Network/PxeBcDxe/PxeBcDxe.inf | 4 + .../Network/PxeDhcp4Dxe/PxeDhcp4Dxe.inf | 4 + .../Universal/Network/SnpDxe/SnpDxe.inf | 4 + .../Universal/Network/Tcp4Dxe/Tcp4Dxe.inf | 4 + .../Universal/Network/Udp4Dxe/Udp4Dxe.inf | 4 + .../Network/UefiPxeBcDxe/UefiPxeBcDxe.inf | 5 +- 29 files changed, 228 insertions(+), 140 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf b/MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf index 6260660f75..0ae943d62e 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf +++ b/MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf @@ -27,7 +27,11 @@ # # The following information is for reference only and not required by the build tools. # -# VALID_ARCHITECTURES = IA32 X64 IPF EBC +# VALID_ARCHITECTURES = IA32 X64 IPF EBC# +# +# DRIVER_BINDING = gEhciDriverBinding +# COMPONENT_NAME = gEhciComponentName +# COMPONENT_NAME2 = gEhciComponentName2 # [Sources.common] diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf b/MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf index 34d64e6d2e..d2eb2bfeb7 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf +++ b/MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf @@ -28,6 +28,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gUhciDriverBinding +# COMPONENT_NAME = gUhciComponentName +# COMPONENT_NAME2 = gUhciComponentName2 +# [Sources.common] UhciSched.c diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf index 412642a10b..8107f66b99 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf @@ -28,6 +28,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = mUsbBusDriverBinding +# COMPONENT_NAME = mUsbBusComponentName +# COMPONENT_NAME2 = mUsbBusComponentName2 +# [Sources.common] UsbDesc.c diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf b/MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf index 39276fac0c..f7ef162381 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf @@ -29,6 +29,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gUsbKeyboardDriverBinding +# COMPONENT_NAME = gUsbKeyboardComponentName +# COMPONENT_NAME2 = gUsbKeyboardComponentName2 +# [Sources.common] EfiKey.c diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf index def24ee4ce..e9bdf4ef27 100644 --- a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf +++ b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf @@ -28,6 +28,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gUSBMassDriverBinding +# COMPONENT_NAME = gUsbMassStorageComponentName +# COMPONENT_NAME2 = gUsbMassStorageComponentName2 +# [Sources.common] UsbMassBoot.h diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointerDxe.inf b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointerDxe.inf index d7d1b2c020..7b85bf0dea 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointerDxe.inf +++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointerDxe.inf @@ -29,7 +29,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # - +# DRIVER_BINDING = gUsbMouseAbsolutePointerDriverBinding +# COMPONENT_NAME = gUsbMouseAbsolutePointerComponentName +# COMPONENT_NAME2 = gUsbMouseAbsolutePointerComponentName2 +# [Sources.common] mousehid.h ComponentName.c diff --git a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf index b980d0168a..5945498914 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf +++ b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf @@ -29,6 +29,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gUsbMouseDriverBinding +# COMPONENT_NAME = gUsbMouseComponentName +# COMPONENT_NAME2 = gUsbMouseComponentName2 +# [Sources.common] ComponentName.c diff --git a/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf b/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf index 2ac99997a4..471f561abb 100644 --- a/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf +++ b/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf @@ -26,10 +26,12 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # -# DRIVER_BINDING = gConPlatformTextInDriverBinding -# COMPONENT_NAME = gConPlatformComponentName -# DRIVER_BINDING = gConPlatformTextOutDriverBinding -# COMPONENT_NAME = gConPlatformComponentName +# DRIVER_BINDING = gConPlatformTextInDriverBinding +# COMPONENT_NAME = gConPlatformComponentName +# COMPONENT_NAME2 = gConPlatformComponentName2 +# DRIVER_BINDING = gConPlatformTextOutDriverBinding +# COMPONENT_NAME = gConPlatformComponentName +# COMPONENT_NAME2 = gConPlatformComponentName2 # [Sources.common] diff --git a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf index 9aa8ba16e1..74bc157ad8 100644 --- a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf +++ b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf @@ -29,12 +29,16 @@ # # DRIVER_BINDING = gConSplitterConInDriverBinding # COMPONENT_NAME = gConSplitterConInComponentName +# COMPONENT_NAME2 = gConSplitterConInComponentName2 # DRIVER_BINDING = gConSplitterSimplePointerDriverBinding # COMPONENT_NAME = gConSplitterSimplePointerComponentName +# COMPONENT_NAME2 = gConSplitterSimplePointerComponentName2 # DRIVER_BINDING = gConSplitterConOutDriverBinding # COMPONENT_NAME = gConSplitterConOutComponentName +# COMPONENT_NAME2 = gConSplitterConOutComponentName2 # DRIVER_BINDING = gConSplitterStdErrDriverBinding # COMPONENT_NAME = gConSplitterStdErrComponentName +# COMPONENT_NAME2 = gConSplitterStdErrComponentName2 # [Sources.common] diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf index 0b450d47fe..6a585190ab 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf @@ -29,6 +29,7 @@ # # DRIVER_BINDING = gGraphicsConsoleDriverBinding # COMPONENT_NAME = gGraphicsConsoleComponentName +# COMPONENT_NAME2 = gGraphicsConsoleComponentName2 # [Sources.common] diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf index ec39f5bcbc..e9228a0bb7 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf +++ b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf @@ -27,8 +27,9 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # -# DRIVER_BINDING = gTerminalDriverBinding -# COMPONENT_NAME = gTerminalComponentName +# DRIVER_BINDING = gTerminalDriverBinding +# COMPONENT_NAME = gTerminalComponentName +# COMPONENT_NAME2 = gTerminalComponentName2 # [Sources.common] diff --git a/MdeModulePkg/Universal/DebugPortDxe/DebugPortDxe.inf b/MdeModulePkg/Universal/DebugPortDxe/DebugPortDxe.inf index 5df7899226..0be24ffa05 100644 --- a/MdeModulePkg/Universal/DebugPortDxe/DebugPortDxe.inf +++ b/MdeModulePkg/Universal/DebugPortDxe/DebugPortDxe.inf @@ -29,8 +29,9 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # -# DRIVER_BINDING = gDebugPortDriverBinding -# COMPONENT_NAME = gDebugPortComponentName +# DRIVER_BINDING = gDebugPortDriverBinding +# COMPONENT_NAME = gDebugPortComponentName +# COMPONENT_NAME2 = gDebugPortComponentName2 # Variable Guid C Name: gEfiDebugPortProtocolGuid Variable Name: L"DEBUGPORT" # # diff --git a/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf b/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf index 732d8b000d..c27650e886 100644 --- a/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf +++ b/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf @@ -29,6 +29,7 @@ # # DRIVER_BINDING = gDiskIoDriverBinding # COMPONENT_NAME = gDiskIoComponentName +# COMPONENT_NAME2 = gDiskIoComponentName2 # [Sources.common] diff --git a/MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf b/MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf index ec20fa6ece..d187a91185 100644 --- a/MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf +++ b/MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf @@ -33,6 +33,7 @@ # # DRIVER_BINDING = gPartitionDriverBinding # COMPONENT_NAME = gPartitionComponentName +# COMPONENT_NAME2 = gPartitionComponentName2 # [Sources.common] diff --git a/MdeModulePkg/Universal/Network/ArpDxe/ArpDriver.h b/MdeModulePkg/Universal/Network/ArpDxe/ArpDriver.h index aa22cc1433..73b7f08042 100644 --- a/MdeModulePkg/Universal/Network/ArpDxe/ArpDriver.h +++ b/MdeModulePkg/Universal/Network/ArpDxe/ArpDriver.h @@ -151,5 +151,136 @@ ArpServiceBindingDestroyChild ( IN EFI_HANDLE ChildHandle ); + +// +// EFI Component Name Functions +// +/** + Retrieves a Unicode string that is the user readable name of the driver. + + This function retrieves the user readable name of a driver in the form of a + Unicode string. If the driver specified by This has a user readable name in + the language specified by Language, then a pointer to the driver name is + returned in DriverName, and EFI_SUCCESS is returned. If the driver specified + by This does not support the language specified by Language, + then EFI_UNSUPPORTED is returned. + + @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or + EFI_COMPONENT_NAME_PROTOCOL instance. + + @param Language[in] A pointer to a Null-terminated ASCII string + array indicating the language. This is the + language of the driver name that the caller is + requesting, and it must match one of the + languages specified in SupportedLanguages. The + number of languages supported by a driver is up + to the driver writer. Language is specified + in RFC 3066 or ISO 639-2 language code format. + + @param DriverName[out] A pointer to the Unicode string to return. + This Unicode string is the name of the + driver specified by This in the language + specified by Language. + + @retval EFI_SUCCESS The Unicode string for the Driver specified by + This and the language specified by Language was + returned in DriverName. + + @retval EFI_INVALID_PARAMETER Language is NULL. + + @retval EFI_INVALID_PARAMETER DriverName is NULL. + + @retval EFI_UNSUPPORTED The driver specified by This does not support + the language specified by Language. + +**/ +EFI_STATUS +EFIAPI +ArpComponentNameGetDriverName ( + IN EFI_COMPONENT_NAME_PROTOCOL *This, + IN CHAR8 *Language, + OUT CHAR16 **DriverName + ); + + +/** + Retrieves a Unicode string that is the user readable name of the controller + that is being managed by a driver. + + This function retrieves the user readable name of the controller specified by + ControllerHandle and ChildHandle in the form of a Unicode string. If the + driver specified by This has a user readable name in the language specified by + Language, then a pointer to the controller name is returned in ControllerName, + and EFI_SUCCESS is returned. If the driver specified by This is not currently + managing the controller specified by ControllerHandle and ChildHandle, + then EFI_UNSUPPORTED is returned. If the driver specified by This does not + support the language specified by Language, then EFI_UNSUPPORTED is returned. + + @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or + EFI_COMPONENT_NAME_PROTOCOL instance. + + @param ControllerHandle[in] The handle of a controller that the driver + specified by This is managing. This handle + specifies the controller whose name is to be + returned. + + @param ChildHandle[in] The handle of the child controller to retrieve + the name of. This is an optional parameter that + may be NULL. It will be NULL for device + drivers. It will also be NULL for a bus drivers + that wish to retrieve the name of the bus + controller. It will not be NULL for a bus + driver that wishes to retrieve the name of a + child controller. + + @param Language[in] A pointer to a Null-terminated ASCII string + array indicating the language. This is the + language of the driver name that the caller is + requesting, and it must match one of the + languages specified in SupportedLanguages. The + number of languages supported by a driver is up + to the driver writer. Language is specified in + RFC 3066 or ISO 639-2 language code format. + + @param ControllerName[out] A pointer to the Unicode string to return. + This Unicode string is the name of the + controller specified by ControllerHandle and + ChildHandle in the language specified by + Language from the point of view of the driver + specified by This. + + @retval EFI_SUCCESS The Unicode string for the user readable name in + the language specified by Language for the + driver specified by This was returned in + DriverName. + + @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE. + + @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid + EFI_HANDLE. + + @retval EFI_INVALID_PARAMETER Language is NULL. + + @retval EFI_INVALID_PARAMETER ControllerName is NULL. + + @retval EFI_UNSUPPORTED The driver specified by This is not currently + managing the controller specified by + ControllerHandle and ChildHandle. + + @retval EFI_UNSUPPORTED The driver specified by This does not support + the language specified by Language. + +**/ +EFI_STATUS +EFIAPI +ArpComponentNameGetControllerName ( + IN EFI_COMPONENT_NAME_PROTOCOL *This, + IN EFI_HANDLE ControllerHandle, + IN EFI_HANDLE ChildHandle OPTIONAL, + IN CHAR8 *Language, + OUT CHAR16 **ControllerName + ); + + #endif diff --git a/MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf b/MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf index a66c69b277..21ad6e16e4 100644 --- a/MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf +++ b/MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf @@ -27,6 +27,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gArpDriverBinding +# COMPONENT_NAME = gArpComponentName +# COMPONENT_NAME2 = gArpComponentName2 +# [Sources.common] ArpMain.c diff --git a/MdeModulePkg/Universal/Network/ArpDxe/ComponentName.c b/MdeModulePkg/Universal/Network/ArpDxe/ComponentName.c index f263f6124b..97bab4ed8b 100644 --- a/MdeModulePkg/Universal/Network/ArpDxe/ComponentName.c +++ b/MdeModulePkg/Universal/Network/ArpDxe/ComponentName.c @@ -20,135 +20,6 @@ Abstract: #include "ArpDriver.h" -// -// EFI Component Name Functions -// -/** - Retrieves a Unicode string that is the user readable name of the driver. - - This function retrieves the user readable name of a driver in the form of a - Unicode string. If the driver specified by This has a user readable name in - the language specified by Language, then a pointer to the driver name is - returned in DriverName, and EFI_SUCCESS is returned. If the driver specified - by This does not support the language specified by Language, - then EFI_UNSUPPORTED is returned. - - @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or - EFI_COMPONENT_NAME_PROTOCOL instance. - - @param Language[in] A pointer to a Null-terminated ASCII string - array indicating the language. This is the - language of the driver name that the caller is - requesting, and it must match one of the - languages specified in SupportedLanguages. The - number of languages supported by a driver is up - to the driver writer. Language is specified - in RFC 3066 or ISO 639-2 language code format. - - @param DriverName[out] A pointer to the Unicode string to return. - This Unicode string is the name of the - driver specified by This in the language - specified by Language. - - @retval EFI_SUCCESS The Unicode string for the Driver specified by - This and the language specified by Language was - returned in DriverName. - - @retval EFI_INVALID_PARAMETER Language is NULL. - - @retval EFI_INVALID_PARAMETER DriverName is NULL. - - @retval EFI_UNSUPPORTED The driver specified by This does not support - the language specified by Language. - -**/ -EFI_STATUS -EFIAPI -ArpComponentNameGetDriverName ( - IN EFI_COMPONENT_NAME_PROTOCOL *This, - IN CHAR8 *Language, - OUT CHAR16 **DriverName - ); - - -/** - Retrieves a Unicode string that is the user readable name of the controller - that is being managed by a driver. - - This function retrieves the user readable name of the controller specified by - ControllerHandle and ChildHandle in the form of a Unicode string. If the - driver specified by This has a user readable name in the language specified by - Language, then a pointer to the controller name is returned in ControllerName, - and EFI_SUCCESS is returned. If the driver specified by This is not currently - managing the controller specified by ControllerHandle and ChildHandle, - then EFI_UNSUPPORTED is returned. If the driver specified by This does not - support the language specified by Language, then EFI_UNSUPPORTED is returned. - - @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or - EFI_COMPONENT_NAME_PROTOCOL instance. - - @param ControllerHandle[in] The handle of a controller that the driver - specified by This is managing. This handle - specifies the controller whose name is to be - returned. - - @param ChildHandle[in] The handle of the child controller to retrieve - the name of. This is an optional parameter that - may be NULL. It will be NULL for device - drivers. It will also be NULL for a bus drivers - that wish to retrieve the name of the bus - controller. It will not be NULL for a bus - driver that wishes to retrieve the name of a - child controller. - - @param Language[in] A pointer to a Null-terminated ASCII string - array indicating the language. This is the - language of the driver name that the caller is - requesting, and it must match one of the - languages specified in SupportedLanguages. The - number of languages supported by a driver is up - to the driver writer. Language is specified in - RFC 3066 or ISO 639-2 language code format. - - @param ControllerName[out] A pointer to the Unicode string to return. - This Unicode string is the name of the - controller specified by ControllerHandle and - ChildHandle in the language specified by - Language from the point of view of the driver - specified by This. - - @retval EFI_SUCCESS The Unicode string for the user readable name in - the language specified by Language for the - driver specified by This was returned in - DriverName. - - @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE. - - @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid - EFI_HANDLE. - - @retval EFI_INVALID_PARAMETER Language is NULL. - - @retval EFI_INVALID_PARAMETER ControllerName is NULL. - - @retval EFI_UNSUPPORTED The driver specified by This is not currently - managing the controller specified by - ControllerHandle and ChildHandle. - - @retval EFI_UNSUPPORTED The driver specified by This does not support - the language specified by Language. - -**/ -EFI_STATUS -EFIAPI -ArpComponentNameGetControllerName ( - IN EFI_COMPONENT_NAME_PROTOCOL *This, - IN EFI_HANDLE ControllerHandle, - IN EFI_HANDLE ChildHandle OPTIONAL, - IN CHAR8 *Language, - OUT CHAR16 **ControllerName - ); - // // EFI Component Name Protocol diff --git a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf index 8e76dae8fc..f95dfed5ac 100644 --- a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf +++ b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf @@ -27,6 +27,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gDhcp4DriverBinding +# COMPONENT_NAME = gDhcp4ComponentName +# COMPONENT_NAME2 = gDhcp4ComponentName2 +# [Sources.common] Dhcp4Impl.c diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf index eed566ffa4..1dfa222a16 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf @@ -29,6 +29,7 @@ # # DRIVER_BINDING = gIScsiDriverBinding # COMPONENT_NAME = gIScsiComponentName +# COMPONENT_NAME2 = gIScsiComponentName2 # [Sources.common] diff --git a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf index 3ca193946f..e7e509a8b6 100644 --- a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf +++ b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf @@ -28,6 +28,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gIp4ConfigDriverBinding +# COMPONENT_NAME = gIp4ConfigComponentName +# COMPONENT_NAME2 = gIp4ConfigComponentName2 +# [Sources.common] ComponentName.c diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf index 6f691f4a39..bd9946dd5f 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf @@ -28,6 +28,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gIp4DriverBinding +# COMPONENT_NAME = gIp4ComponentName +# COMPONENT_NAME2 = gIp4ComponentName2 +# [Sources.common] Ip4Driver.c diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf b/MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf index 6b969ba10f..f875b9c186 100644 --- a/MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf +++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf @@ -28,6 +28,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gMnpDriverBinding +# COMPONENT_NAME = gMnpComponentName +# COMPONENT_NAME2 = gMnpComponentName2 +# [Sources.common] MnpMain.c diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf index 45ab0258cb..1880d526a3 100644 --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf @@ -27,6 +27,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gMtftp4DriverBinding +# COMPONENT_NAME = gMtftp4ComponentName +# COMPONENT_NAME2 = gMtftp4ComponentName2 +# [Sources.common] Mtftp4Option.c diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/PxeBcDxe.inf b/MdeModulePkg/Universal/Network/PxeBcDxe/PxeBcDxe.inf index b64a9b0071..025df324f6 100644 --- a/MdeModulePkg/Universal/Network/PxeBcDxe/PxeBcDxe.inf +++ b/MdeModulePkg/Universal/Network/PxeBcDxe/PxeBcDxe.inf @@ -27,6 +27,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = mPxeBcDriverBinding +# COMPONENT_NAME = gPxeBcComponentName +# COMPONENT_NAME2 = gPxeBcComponentName2 +# [Sources.common] Pxe_bc_mtftp.c diff --git a/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4Dxe.inf b/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4Dxe.inf index 53b463914c..ab5fd969b7 100644 --- a/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4Dxe.inf +++ b/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4Dxe.inf @@ -27,6 +27,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gPxeDhcp4DriverBinding +# COMPONENT_NAME = gPxeDhcp4ComponentName +# COMPONENT_NAME2 = gPxeDhcp4ComponentName2 +# [Sources.common] Support.c diff --git a/MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf b/MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf index f6e076a7f4..6d38368549 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf +++ b/MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf @@ -28,6 +28,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = mSimpleNetworkDriverBinding +# COMPONENT_NAME = gSimpleNetworkComponentName +# COMPONENT_NAME2 = gSimpleNetworkComponentName2 +# [Sources.common] Receive.c diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf index 456910ce8c..691c52b27b 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf @@ -28,6 +28,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = mTcp4DriverBinding +# COMPONENT_NAME = gTcp4ComponentName +# COMPONENT_NAME2 = gTcp4ComponentName2 +# [Sources.common] SockImpl.c diff --git a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf index 76b5a12201..c39ac1350b 100644 --- a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf +++ b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf @@ -28,6 +28,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # +# DRIVER_BINDING = gUdp4DriverBinding +# COMPONENT_NAME = gUdp4ComponentName +# COMPONENT_NAME2 = gUdp4ComponentName2 +# [Sources.common] Udp4Impl.h diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf index c3b1b27a96..1350df40a1 100644 --- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf +++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf @@ -28,7 +28,10 @@ # # VALID_ARCHITECTURES = IA32 X64 IPF EBC # - +# DRIVER_BINDING = gPxeBcDriverBinding +# COMPONENT_NAME = gPxeBcComponentName +# COMPONENT_NAME2 = gPxeBcComponentName2 +# [Sources.common] PxeBcMtftp.c -- 2.39.2