diff options
author | Yu Pei <pei.yu@intel.com> | 2013-06-27 05:07:29 +0000 |
---|---|---|
committer | qianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-06-27 05:07:29 +0000 |
commit | 4986bbaf1151d1cccc1f2589bd13a86b539676b2 (patch) | |
tree | 978f1316e6cd66d885ed3de0974d860bb196ae4e /OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/DriverBinding.c | |
parent | ca243131657ba03f58206a417b938aa14cff585c (diff) | |
download | edk2-4986bbaf1151d1cccc1f2589bd13a86b539676b2.zip edk2-4986bbaf1151d1cccc1f2589bd13a86b539676b2.tar.gz edk2-4986bbaf1151d1cccc1f2589bd13a86b539676b2.tar.bz2 |
Ax88772: Add logic to separate packet, fix MTU issue. Ax88772b: Fix driver model unload function, fix SCT test failures.
Signed-off-by: Yu Pei <pei.yu@intel.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>
Reviewed-by: Leahy, Leroy P <Leroy.P.Leahy@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14443 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/DriverBinding.c')
-rw-r--r-- | OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/DriverBinding.c | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/DriverBinding.c b/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/DriverBinding.c index 076b639..3b73040 100644 --- a/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/DriverBinding.c +++ b/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/DriverBinding.c @@ -1,7 +1,7 @@ /** @file
Implement the driver binding protocol for Asix AX88772 Ethernet driver.
- Copyright (c) 2011, Intel Corporation
+ Copyright (c) 2011-2013, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -632,22 +632,9 @@ EntryPoint ( IN EFI_SYSTEM_TABLE * pSystemTable
)
{
- EFI_LOADED_IMAGE_PROTOCOL * pLoadedImage;
EFI_STATUS Status;
//
- // Enable unload support
- //
- Status = gBS->HandleProtocol (
- gImageHandle,
- &gEfiLoadedImageProtocolGuid,
- (VOID **)&pLoadedImage
- );
- if (!EFI_ERROR (Status)) {
- pLoadedImage->Unload = DriverUnload;
- }
-
- //
// Add the driver to the list of drivers
//
Status = EfiLibInstallDriverBindingComponentName2 (
@@ -659,13 +646,12 @@ EntryPoint ( &gComponentName2
);
if ( !EFI_ERROR ( Status )) {
-
- AsciiPrint ("Installed: gEfiDriverBindingProtocolGuid on 0x%08x\r\n",
- ImageHandle );
- AsciiPrint("Installed: gEfiComponentNameProtocolGuid on 0x%08x\r\n",
- ImageHandle );
- AsciiPrint("Installed: gEfiComponentName2ProtocolGuid on 0x%08x\r\n",
- ImageHandle );
+ DEBUG ((EFI_D_INFO, "Installed: gEfiDriverBindingProtocolGuid on 0x%08x\r\n",
+ ImageHandle));
+ DEBUG ((EFI_D_INFO, "Installed: gEfiComponentNameProtocolGuid on 0x%08x\r\n",
+ ImageHandle));
+ DEBUG ((EFI_D_INFO,"Installed: gEfiComponentName2ProtocolGuid on 0x%08x\r\n",
+ ImageHandle ));
}
return Status;
|