mirror of https://github.com/acidanthera/audk.git
Change the file headers and some function comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7206 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8578c9a1d1
commit
c57273b0d8
|
@ -1,21 +1,15 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
UEFI Component Name(2) protocol implementation for MnpDxe driver.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2007, Intel Corporation
|
Copyright (c) 2005 - 2007, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials are licensed
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
and made available under the terms and conditions of the BSD License which
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
|
||||||
|
|
||||||
ComponentName.c
|
|
||||||
|
|
||||||
Abstract:
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
|
||||||
|
@ -233,7 +227,7 @@ MnpComponentNameGetDriverName (
|
||||||
This->SupportedLanguages,
|
This->SupportedLanguages,
|
||||||
mMnpDriverNameTable,
|
mMnpDriverNameTable,
|
||||||
DriverName,
|
DriverName,
|
||||||
(BOOLEAN)(This == &gMnpComponentName)
|
(BOOLEAN) (This == &gMnpComponentName)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,15 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
Implementation of Managed Network Protocol private services.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2008, Intel Corporation
|
Copyright (c) 2005 - 2008, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials are licensed
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
and made available under the terms and conditions of the BSD License which
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
|
||||||
|
|
||||||
MnpConfig.c
|
|
||||||
|
|
||||||
Abstract:
|
|
||||||
|
|
||||||
Implementation of Managed Network Protocol private services.
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,8 +51,8 @@ EFI_MANAGED_NETWORK_CONFIG_DATA mMnpDefaultConfigData = {
|
||||||
@param MnpServiceData Pointer to the mnp service context data.
|
@param MnpServiceData Pointer to the mnp service context data.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The receive filters is configured.
|
@retval EFI_SUCCESS The receive filters is configured.
|
||||||
@retval EFI_OUT_OF_RESOURCES The receive filters can't be configured due to lack
|
@retval EFI_OUT_OF_RESOURCES The receive filters can't be configured due to
|
||||||
of memory resource.
|
lack of memory resource.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -210,14 +202,14 @@ MnpConfigReceiveFilters (
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Add some NET_BUF into MnpServiceData->FreeNbufQue. The buffer length of
|
Add Count of net buffers to MnpServiceData->FreeNbufQue. The length of the net
|
||||||
the NET_BUF is specified by MnpServiceData->BufferLength.
|
buffer is specified by MnpServiceData->BufferLength.
|
||||||
|
|
||||||
@param MnpServiceData Pointer to the MNP_SERVICE_DATA.
|
@param MnpServiceData Pointer to the MNP_SERVICE_DATA.
|
||||||
@param Count Number of NET_BUFFERs to add.
|
@param Count Number of NET_BUFFERs to add.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The specified amount of NET_BUFs are allocated and
|
@retval EFI_SUCCESS The specified amount of NET_BUFs are allocated
|
||||||
added into MnpServiceData->FreeNbufQue.
|
and added to MnpServiceData->FreeNbufQue.
|
||||||
@retval EFI_OUT_OF_RESOURCES Failed to allocate a NET_BUF structure.
|
@retval EFI_OUT_OF_RESOURCES Failed to allocate a NET_BUF structure.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -270,7 +262,8 @@ MnpAddFreeNbuf (
|
||||||
|
|
||||||
@param MnpServiceData Pointer to the MNP_SERVICE_DATA.
|
@param MnpServiceData Pointer to the MNP_SERVICE_DATA.
|
||||||
|
|
||||||
@return Pointer to the allocated free NET_BUF structure, if NULL the operation is failed.
|
@return Pointer to the allocated free NET_BUF structure, if NULL the
|
||||||
|
operation is failed.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
NET_BUF *
|
NET_BUF *
|
||||||
|
@ -712,21 +705,21 @@ MnpTokenExist (
|
||||||
/**
|
/**
|
||||||
Cancel the token specified by Arg if it matches the token in Item.
|
Cancel the token specified by Arg if it matches the token in Item.
|
||||||
|
|
||||||
@param Map Pointer to the NET_MAP.
|
@param Map Pointer to the NET_MAP.
|
||||||
@param Item Pointer to the NET_MAP_ITEM
|
@param Item Pointer to the NET_MAP_ITEM
|
||||||
@param Arg Pointer to the Arg, it's a pointer to the token to
|
@param Arg Pointer to the Arg, it's a pointer to the token to
|
||||||
cancel.
|
cancel.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The Arg is NULL, and the token in Item is
|
@retval EFI_SUCCESS The Arg is NULL, and the token in Item is cancelled,
|
||||||
cancelled, or the Arg isn't NULL, and the token in
|
or the Arg isn't NULL, and the token in Item is
|
||||||
Item is different from the Arg.
|
different from the Arg.
|
||||||
@retval EFI_ABORTED The Arg isn't NULL, the token in Item mathces the
|
@retval EFI_ABORTED The Arg isn't NULL, the token in Item mathces the
|
||||||
Arg, and the token is cancelled.
|
Arg, and the token is cancelled.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
MnpCancelTokens (
|
MnpCancelTokens (
|
||||||
IN NET_MAP *Map,
|
IN OUT NET_MAP *Map,
|
||||||
IN NET_MAP_ITEM *Item,
|
IN NET_MAP_ITEM *Item,
|
||||||
IN VOID *Arg
|
IN VOID *Arg
|
||||||
)
|
)
|
||||||
|
@ -838,7 +831,7 @@ MnpStopSnp (
|
||||||
|
|
||||||
@param MnpServiceData Pointer to the mnp service context data.
|
@param MnpServiceData Pointer to the mnp service context data.
|
||||||
@param IsConfigUpdate The instance is reconfigured or it's the first time
|
@param IsConfigUpdate The instance is reconfigured or it's the first time
|
||||||
the instanced is configured.
|
the instanced is configured.
|
||||||
@param EnableSystemPoll Enable the system polling or not.
|
@param EnableSystemPoll Enable the system polling or not.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The managed network is started and some
|
@retval EFI_SUCCESS The managed network is started and some
|
||||||
|
|
|
@ -1,21 +1,15 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
Implementation of driver entry point and driver binding protocol.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2008, Intel Corporation
|
Copyright (c) 2005 - 2008, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials are licensed
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
and made available under the terms and conditions of the BSD License which
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
|
||||||
|
|
||||||
MnpDriver.c
|
|
||||||
|
|
||||||
Abstract:
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "MnpDriver.h"
|
#include "MnpDriver.h"
|
||||||
|
@ -284,10 +278,10 @@ MnpDriverBindingStop (
|
||||||
not NULL, then the I/O services are added to the
|
not NULL, then the I/O services are added to the
|
||||||
existing child handle.
|
existing child handle.
|
||||||
|
|
||||||
@retval EFI_SUCCES The child handle was created with the I/O
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
services.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to
|
||||||
the child.
|
create the child.
|
||||||
@retval other The child handle was not created.
|
@retval other The child handle was not created.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -295,7 +289,7 @@ EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
MnpServiceBindingCreateChild (
|
MnpServiceBindingCreateChild (
|
||||||
IN EFI_SERVICE_BINDING_PROTOCOL *This,
|
IN EFI_SERVICE_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE *ChildHandle
|
IN OUT EFI_HANDLE *ChildHandle
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
@ -391,17 +385,22 @@ ErrorExit:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destroys a child handle with a set of I/O services.
|
Destroys a child handle with a set of I/O services.
|
||||||
|
|
||||||
@param This Protocol instance pointer.
|
The DestroyChild() function does the opposite of CreateChild(). It removes a
|
||||||
|
protocol that was installed by CreateChild() from ChildHandle. If the removed
|
||||||
|
protocol is the last protocol on ChildHandle, then ChildHandle is destroyed.
|
||||||
|
|
||||||
|
@param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL
|
||||||
|
instance.
|
||||||
@param ChildHandle Handle of the child to destroy.
|
@param ChildHandle Handle of the child to destroy.
|
||||||
|
|
||||||
@retval EFI_SUCCES The I/O services were removed from the child
|
@retval EFI_SUCCES The protocol was removed from ChildHandle.
|
||||||
handle.
|
@retval EFI_UNSUPPORTED ChildHandle does not support the protocol that
|
||||||
@retval EFI_UNSUPPORTED The child handle does not support the I/O services
|
is being removed.
|
||||||
that are being removed.
|
@retval EFI_INVALID_PARAMETER ChildHandle is not a valid UEFI handle.
|
||||||
@retval EFI_INVALID_PARAMETER Child handle is not a valid EFI Handle.
|
@retval EFI_ACCESS_DENIED The protocol could not be removed from the
|
||||||
@retval EFI_ACCESS_DENIED The child handle could not be destroyed because
|
ChildHandle because its services are being
|
||||||
its I/O services are being used.
|
used.
|
||||||
@retval other The child handle was not destroyed.
|
@retval other The child handle was not destroyed.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -524,7 +523,7 @@ MnpServiceBindingDestroyChild (
|
||||||
@param ImageHandle The image handle of the driver.
|
@param ImageHandle The image handle of the driver.
|
||||||
@param SystemTable The system table.
|
@param SystemTable The system table.
|
||||||
|
|
||||||
@retval EFI_SUCCES the driver binding and component name protocols are
|
@retval EFI_SUCCES The driver binding and component name protocols are
|
||||||
successfully installed.
|
successfully installed.
|
||||||
@retval other failed.
|
@retval other failed.
|
||||||
|
|
||||||
|
|
|
@ -1,26 +1,20 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
Declaration of strctures and functions for MnpDxe driver.
|
||||||
Copyright (c) 2005 - 2007, Intel Corporation
|
|
||||||
All rights reserved. This program and the accompanying materials
|
Copyright (c) 2005 - 2007, Intel Corporation. <BR>
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
All rights reserved. This program and the accompanying materials are licensed
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
and made available under the terms and conditions of the BSD License which
|
||||||
http://opensource.org/licenses/bsd-license.php
|
accompanies this distribution. The full text of the license may be found at
|
||||||
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
|
||||||
|
|
||||||
MnpDriver.h
|
|
||||||
|
|
||||||
Abstract:
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _MNP_DRIVER_H_
|
#ifndef _MNP_DRIVER_H_
|
||||||
#define _MNP_DRIVER_H_
|
#define _MNP_DRIVER_H_
|
||||||
#include <PiDxe.h>
|
#include <Uefi.h>
|
||||||
|
|
||||||
#include <Protocol/ManagedNetwork.h>
|
#include <Protocol/ManagedNetwork.h>
|
||||||
#include <Protocol/SimpleNetwork.h>
|
#include <Protocol/SimpleNetwork.h>
|
||||||
|
@ -194,7 +188,7 @@ EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
MnpServiceBindingCreateChild (
|
MnpServiceBindingCreateChild (
|
||||||
IN EFI_SERVICE_BINDING_PROTOCOL *This,
|
IN EFI_SERVICE_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE *ChildHandle
|
IN OUT EFI_HANDLE *ChildHandle
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
Declaration of structures and functions of MnpDxe driver.
|
||||||
Copyright (c) 2005 - 2008, Intel Corporation
|
|
||||||
|
Copyright (c) 2005 - 2008, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -9,13 +10,6 @@ http://opensource.org/licenses/bsd-license.php
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
|
||||||
|
|
||||||
MnpImpl.h
|
|
||||||
|
|
||||||
Abstract:
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _MNP_IMPL_H_
|
#ifndef _MNP_IMPL_H_
|
||||||
|
@ -179,7 +173,7 @@ MnpTokenExist (
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
MnpCancelTokens (
|
MnpCancelTokens (
|
||||||
IN NET_MAP *Map,
|
IN OUT NET_MAP *Map,
|
||||||
IN NET_MAP_ITEM *Item,
|
IN NET_MAP_ITEM *Item,
|
||||||
IN VOID *Arg
|
IN VOID *Arg
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
Implementation of Managed Network Protocol I/O functions.
|
||||||
Copyright (c) 2005 - 2007, Intel Corporation
|
|
||||||
|
Copyright (c) 2005 - 2007, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
|
||||||
|
|
||||||
MnpIo.c
|
|
||||||
|
|
||||||
Abstract:
|
|
||||||
|
|
||||||
Implementation of Managed Network Protocol I/O functions.
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "MnpImpl.h"
|
#include "MnpImpl.h"
|
||||||
|
@ -1071,8 +1063,6 @@ MnpCheckPacketTimeout (
|
||||||
@param Context Pointer to the context data registered to the
|
@param Context Pointer to the context data registered to the
|
||||||
event.
|
event.
|
||||||
|
|
||||||
@return None.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
Implementation of Managed Network Protocol public services.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2007, Intel Corporation
|
Copyright (c) 2005 - 2007, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -9,21 +10,11 @@ http://opensource.org/licenses/bsd-license.php
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
|
||||||
|
|
||||||
MnpMain.c
|
|
||||||
|
|
||||||
Abstract:
|
|
||||||
|
|
||||||
Implementation of Managed Network Protocol public services.
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
#include "MnpImpl.h"
|
||||||
#include <Library/BaseMemoryLib.h>
|
#include <Library/BaseMemoryLib.h>
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
|
|
||||||
#include "MnpImpl.h"
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue