code scrub for UefiPxeBcDxe.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7452 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007, Intel Corporation
|
||||
Copyright (c) 2007, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,12 +9,6 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
ComponentName.c
|
||||
|
||||
Abstract:
|
||||
|
||||
|
||||
**/
|
||||
|
||||
|
||||
@@ -23,6 +17,45 @@ Abstract:
|
||||
//
|
||||
// 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[in] This A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
|
||||
EFI_COMPONENT_NAME_PROTOCOL instance.
|
||||
|
||||
@param[in] Language 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[out] DriverName 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
|
||||
PxeBcComponentNameGetDriverName (
|
||||
@@ -31,6 +64,74 @@ PxeBcComponentNameGetDriverName (
|
||||
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[in] This A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
|
||||
EFI_COMPONENT_NAME_PROTOCOL instance.
|
||||
|
||||
@param[in] ControllerHandle 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[in] ChildHandle 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[in] Language 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[out] ControllerName 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
|
||||
PxeBcComponentNameGetControllerName (
|
||||
@@ -49,6 +150,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL gPxeBcComponentNam
|
||||
PxeBcComponentNameGetControllerName,
|
||||
"eng"
|
||||
};
|
||||
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gPxeBcComponentName2 = {
|
||||
(EFI_COMPONENT_NAME2_GET_DRIVER_NAME) PxeBcComponentNameGetDriverName,
|
||||
(EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) PxeBcComponentNameGetControllerName,
|
||||
@@ -66,6 +168,45 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mPxeBcDriverNameTable[] =
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
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[in] This A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
|
||||
EFI_COMPONENT_NAME_PROTOCOL instance.
|
||||
|
||||
@param[in] Language 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[out] DriverName 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
|
||||
PxeBcComponentNameGetDriverName (
|
||||
@@ -73,32 +214,6 @@ PxeBcComponentNameGetDriverName (
|
||||
IN CHAR8 *Language,
|
||||
OUT CHAR16 **DriverName
|
||||
)
|
||||
/*++
|
||||
|
||||
Routine Description:
|
||||
Retrieves a Unicode string that is the user readable name of the EFI Driver.
|
||||
|
||||
Arguments:
|
||||
This - A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.
|
||||
Language - A pointer to a three character ISO 639-2 language identifier.
|
||||
This is the language of the driver name that 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.
|
||||
DriverName - 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.
|
||||
|
||||
Returns:
|
||||
EFI_SUCCESS - The Unicode string for the Driver specified by This
|
||||
and the language specified by Language was returned
|
||||
in DriverName.
|
||||
EFI_INVALID_PARAMETER - Language is NULL.
|
||||
EFI_INVALID_PARAMETER - DriverName is NULL.
|
||||
EFI_UNSUPPORTED - The driver specified by This does not support the
|
||||
language specified by Language.
|
||||
|
||||
--*/
|
||||
{
|
||||
return LookupUnicodeString2 (
|
||||
Language,
|
||||
@@ -109,6 +224,74 @@ PxeBcComponentNameGetDriverName (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
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[in] This A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
|
||||
EFI_COMPONENT_NAME_PROTOCOL instance.
|
||||
|
||||
@param[in] ControllerHandle 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[in] ChildHandle 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[in] Language 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[out] ControllerName 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
|
||||
PxeBcComponentNameGetControllerName (
|
||||
@@ -116,52 +299,8 @@ PxeBcComponentNameGetControllerName (
|
||||
IN EFI_HANDLE ControllerHandle,
|
||||
IN EFI_HANDLE ChildHandle OPTIONAL,
|
||||
IN CHAR8 *Language,
|
||||
OUT CHAR16 **ControllerNameString
|
||||
OUT CHAR16 **ControllerName
|
||||
)
|
||||
/*++
|
||||
|
||||
Routine Description:
|
||||
Retrieves a Unicode string that is the user readable name of the controller
|
||||
that is being managed by an EFI Driver.
|
||||
|
||||
Arguments:
|
||||
This - A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.
|
||||
ControllerHandle - The handle of a controller that the driver specified by
|
||||
This is managing. This handle specifies the controller
|
||||
whose name is to be returned.
|
||||
ChildHandle - 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.
|
||||
Language - A pointer to a three character ISO 639-2 language
|
||||
identifier. This is the language of the controller name
|
||||
that 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.
|
||||
ControllerName - 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.
|
||||
|
||||
Returns:
|
||||
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.
|
||||
EFI_INVALID_PARAMETER - ControllerHandle is not a valid EFI_HANDLE.
|
||||
EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid EFI_HANDLE.
|
||||
EFI_INVALID_PARAMETER - Language is NULL.
|
||||
EFI_INVALID_PARAMETER - ControllerName is NULL.
|
||||
EFI_UNSUPPORTED - The driver specified by This is not currently managing
|
||||
the controller specified by ControllerHandle and
|
||||
ChildHandle.
|
||||
EFI_UNSUPPORTED - The driver specified by This does not support the
|
||||
language specified by Language.
|
||||
|
||||
--*/
|
||||
{
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007, Intel Corporation
|
||||
Defines PXE Arch type.
|
||||
|
||||
Copyright (c) 2007, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,20 +10,18 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
PxeArch.c
|
||||
|
||||
Abstract:
|
||||
Defines PXE Arch type
|
||||
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#include "PxeArch.h"
|
||||
|
||||
UINT16 mSysArch = 0;
|
||||
/**
|
||||
Get the system architecture type.
|
||||
|
||||
@return system architecture type.
|
||||
|
||||
**/
|
||||
UINT16
|
||||
GetSysArch (
|
||||
VOID
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007, Intel Corporation
|
||||
Defines PXE Arch type.
|
||||
|
||||
Copyright (c) 2007, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,13 +10,6 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
PxeArch.h
|
||||
|
||||
Abstract:
|
||||
Defines PXE Arch type
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _EFI_PXE_ARCH_H_
|
||||
@@ -28,6 +22,12 @@ Abstract:
|
||||
|
||||
#define SYS_ARCH GetSysArch()
|
||||
|
||||
/**
|
||||
Get the system architecture type.
|
||||
|
||||
@return system architecture type.
|
||||
|
||||
**/
|
||||
UINT16
|
||||
GetSysArch (
|
||||
VOID
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2006, Intel Corporation
|
||||
Defines PXE Arch type.
|
||||
|
||||
Copyright (c) 2006, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,13 +10,6 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
PxeArch.h
|
||||
|
||||
Abstract:
|
||||
Defines PXE Arch type
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _EFI_PXE_ARCH_H_
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2006, Intel Corporation
|
||||
Defines PXE Arch type.
|
||||
|
||||
Copyright (c) 2006, Intel Corporation.<BR>
|
||||
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
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007 - 2008, Intel Corporation
|
||||
Support for PxeBc dhcp functions.
|
||||
|
||||
Copyright (c) 2007 - 2008, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
PxeBcDhcp.c
|
||||
|
||||
Abstract:
|
||||
|
||||
Support for PxeBc dhcp functions
|
||||
|
||||
|
||||
**/
|
||||
|
||||
|
||||
@@ -38,12 +30,14 @@ UINT8 mInterestedDhcp4Tags[PXEBC_DHCP4_TAG_INDEX_MAX] = {
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
This function initialize the DHCP4 message instance.
|
||||
|
||||
@param Seed GC_NOTO: add argument description
|
||||
@param Udp4 GC_NOTO: add argument description
|
||||
This function will pad each item of dhcp4 message packet.
|
||||
|
||||
@param Seed Pointer to the message instance of the DHCP4 packet.
|
||||
@param Udp4 Pointer to the EFI_UDP4_PROTOCOL instance.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return none.
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -74,12 +68,12 @@ PxeBcInitSeedPacket (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Copy the DCHP4 packet from srouce to destination.
|
||||
|
||||
@param Dst GC_NOTO: add argument description
|
||||
@param Src GC_NOTO: add argument description
|
||||
@param Dst Pointer to the EFI_DHCP4_PROTOCOL instance.
|
||||
@param Src Pointer to the EFI_DHCP4_PROTOCOL instance.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return None.
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -96,12 +90,13 @@ PxeBcCopyEfiDhcp4Packet (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Copy the dhcp4 packet to the PxeBc private data and parse the dhcp4 packet.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param OfferIndex GC_NOTO: add argument description
|
||||
@param Private Pointer to PxeBc private data.
|
||||
@param OfferIndex Index of cached packets as complements of pxe mode data,
|
||||
the index is maximum offer number.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return None.
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -129,10 +124,10 @@ PxeBcCopyProxyOffer (
|
||||
/**
|
||||
Parse the cached dhcp packet.
|
||||
|
||||
@param CachedPacket Pointer to cached dhcp packet
|
||||
@param CachedPacket Pointer to cached dhcp packet.
|
||||
|
||||
@return TRUE : Success to parse and validation
|
||||
@return FALSE : Fail to parse or validation
|
||||
@retval TRUE Succeed to parse and validation.
|
||||
@retval FALSE Fail to parse or validation.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
@@ -256,13 +251,16 @@ PxeBcParseCachedDhcpPacket (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Offer dhcp service with a BINL dhcp offer.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param Index GC_NOTO: add argument description
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@param Private Pointer to PxeBc private data.
|
||||
@param Index Index of cached packets as complements of pxe mode data,
|
||||
the index is maximum offer number.
|
||||
|
||||
@retval TRUE Offer the service successfully under priority BINL.
|
||||
@retval FALSE Boot Service failed, parse cached dhcp packet failed or this
|
||||
BINL ack cannot find options set or bootfile name specified.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
PxeBcTryBinl (
|
||||
@@ -334,12 +332,13 @@ PxeBcTryBinl (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Offer dhcp service for each proxy with a BINL dhcp offer.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param OfferIndex GC_NOTO: add argument description
|
||||
@param Private Pointer to PxeBc private data
|
||||
@param OfferIndex Pointer to the index of cached packets as complements of
|
||||
pxe mode data, the index is maximum offer number.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return If there is no service needed offer return FALSE, otherwise TRUE.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
@@ -366,11 +365,14 @@ PxeBcTryBinlProxy (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
This function is to check the selected proxy offer (include BINL dhcp offer and
|
||||
DHCP_ONLY offer ) and set the flag and copy the DHCP packets to the Pxe base code
|
||||
mode structure.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param Private Pointer to PxeBc private data.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@retval EFI_SUCCESS Operational successful.
|
||||
@retval EFI_NO_RESPONSE Offer dhcp service failed.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -518,12 +520,12 @@ PxeBcCheckSelectedOffer (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Cache the Dhcp4 packet offer, Parse and validate each option of the packet.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param RcvdOffer GC_NOTO: add argument description
|
||||
@param Private Pointer to PxeBc private data.
|
||||
@param RcvdOffer Pointer to the received Dhcp proxy offer packet.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return None.
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -608,11 +610,12 @@ PxeBcCacheDhcpOffer (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Select the specified proxy offer, such as BINL, DHCP_ONLY and so on.
|
||||
If the proxy does not exist, try offers with bootfile.
|
||||
|
||||
@param Private Pointer to PxeBc private data.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return None
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -728,17 +731,32 @@ PxeBcSelectOffer (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Callback routine.
|
||||
|
||||
EFI_DHCP4_CALLBACK is provided by the consumer of the EFI DHCPv4 Protocol driver
|
||||
to intercept events that occurred in the configuration process. This structure
|
||||
provides advanced control of each state transition of the DHCP process. The
|
||||
returned status code determines the behavior of the EFI DHCPv4 Protocol driver.
|
||||
There are three possible returned values, which are described in the following
|
||||
table.
|
||||
|
||||
@param This GC_NOTO: add argument description
|
||||
@param Context GC_NOTO: add argument description
|
||||
@param CurrentState GC_NOTO: add argument description
|
||||
@param Dhcp4Event GC_NOTO: add argument description
|
||||
@param Packet GC_NOTO: add argument description
|
||||
@param NewPacket GC_NOTO: add argument description
|
||||
@param This Pointer to the EFI DHCPv4 Protocol instance that is used to
|
||||
configure this callback function.
|
||||
@param Context Pointer to the context that is initialized by
|
||||
EFI_DHCP4_PROTOCOL.Configure().
|
||||
@param CurrentState The current operational state of the EFI DHCPv4 Protocol
|
||||
driver.
|
||||
@param Dhcp4Event The event that occurs in the current state, which usually means a
|
||||
state transition.
|
||||
@param Packet The DHCP packet that is going to be sent or already received.
|
||||
@param NewPacket The packet that is used to replace the above Packet.
|
||||
|
||||
@retval EFI_SUCCESS GC_NOTO: Add description for return value
|
||||
@retval EFI_ABORTED GC_NOTO: Add description for return value
|
||||
@retval EFI_SUCCESS Tells the EFI DHCPv4 Protocol driver to continue the DHCP process.
|
||||
@retval EFI_NOT_READY Only used in the Dhcp4Selecting state. The EFI DHCPv4 Protocol
|
||||
driver will continue to wait for more DHCPOFFER packets until the retry
|
||||
timeout expires.
|
||||
@retval EFI_ABORTED Tells the EFI DHCPv4 Protocol driver to abort the current process and
|
||||
return to the Dhcp4Init or Dhcp4InitReboot state.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -878,13 +896,14 @@ PxeBcDhcpCallBack (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Initialize the DHCP options and build the option list.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param OptList GC_NOTO: add argument description
|
||||
@param IsDhcpDiscover GC_NOTO: add argument description
|
||||
@param Private Pointer to PxeBc private data.
|
||||
@param OptList Pointer to a DHCP option list.
|
||||
|
||||
@param IsDhcpDiscover Discover dhcp option or not.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return The index item number of the option list.
|
||||
|
||||
**/
|
||||
UINT32
|
||||
@@ -1029,20 +1048,23 @@ PxeBcBuildDhcpOptions (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Discover the boot of service and initialize the vendor option if exists.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param Type GC_NOTO: add argument description
|
||||
@param Layer GC_NOTO: add argument description
|
||||
@param UseBis GC_NOTO: add argument description
|
||||
@param DestIp GC_NOTO: add argument description
|
||||
@param IpCount GC_NOTO: add argument description
|
||||
@param SrvList GC_NOTO: add argument description
|
||||
@param IsDiscv GC_NOTO: add argument description
|
||||
@param Reply GC_NOTO: add argument description
|
||||
|
||||
@retval EFI_OUT_OF_RESOURCES GC_NOTO: Add description for return value
|
||||
@param Private Pointer to PxeBc private data.
|
||||
@param Type PxeBc option boot item type
|
||||
@param Layer PxeBc option boot item layer
|
||||
@param UseBis Use BIS or not
|
||||
@param DestIp Ip address for server
|
||||
@param IpCount The total count of the server ip address
|
||||
@param SrvList Server list
|
||||
@param IsDiscv Discover the vendor or not
|
||||
@param Reply The dhcp4 packet of Pxe reply
|
||||
|
||||
@retval EFI_SUCCESS Operation succeeds.
|
||||
@retval EFI_OUT_OF_RESOURCES Allocate memory pool failed.
|
||||
@retval EFI_NOT_FOUND There is no vendor option exists.
|
||||
@retval EFI_TIMEOUT Send Pxe Discover time out.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcDiscvBootService (
|
||||
@@ -1242,13 +1264,14 @@ PxeBcDiscvBootService (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Parse interested dhcp options.
|
||||
|
||||
@param Buffer GC_NOTO: add argument description
|
||||
@param Length GC_NOTO: add argument description
|
||||
@param OptTag GC_NOTO: add argument description
|
||||
@param Buffer Pointer to the dhcp options packet.
|
||||
@param Length The length of the dhcp options.
|
||||
@param OptTag The option OpCode.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return NULL if the buffer length is 0 and OpCode is not
|
||||
PXEBC_DHCP4_TAG_EOP, or the pointer to the buffer.
|
||||
|
||||
**/
|
||||
EFI_DHCP4_PACKET_OPTION *
|
||||
@@ -1290,8 +1313,7 @@ PxeBcParseExtendOptions (
|
||||
@param Dhcp4Option Pointer to dhcp options
|
||||
@param VendorOption Pointer to vendor options
|
||||
|
||||
@return TRUE : Valid vendor options
|
||||
@return FALSE : Invalid vendor options
|
||||
@return TRUE if valid for vendor options, or FALSE.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
@@ -1409,12 +1431,14 @@ PxeBcParseVendorOptions (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
This function display boot item detail.
|
||||
|
||||
@param Str GC_NOTO: add argument description
|
||||
@param Len GC_NOTO: add argument description
|
||||
If the length of the boot item string over 70 Char, just display 70 Char.
|
||||
|
||||
@param Str Pointer to a string (boot item string).
|
||||
@param Len The length of string.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return None.
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -1434,13 +1458,16 @@ PxeBcDisplayBootItem (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Choose the boot prompt.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
|
||||
@retval EFI_SUCCESS GC_NOTO: Add description for return value
|
||||
@retval EFI_TIMEOUT GC_NOTO: Add description for return value
|
||||
@param Private Pointer to PxeBc private data.
|
||||
|
||||
@retval EFI_SUCCESS Select boot prompt done.
|
||||
@retval EFI_TIMEOUT Select boot prompt time out.
|
||||
@retval EFI_NOT_FOUND The proxy offer is not Pxe10.
|
||||
@retval EFI_ABORTED User cancel the operation.
|
||||
@retval EFI_NOT_READY Read the input key from the keybroad has not finish.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcSelectBootPrompt (
|
||||
@@ -1609,13 +1636,15 @@ ON_EXIT:
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Select the boot menu.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param Type GC_NOTO: add argument description
|
||||
|
||||
@retval EFI_ABORTED GC_NOTO: Add description for return value
|
||||
@retval EFI_SUCCESS GC_NOTO: Add description for return value
|
||||
@param Private Pointer to PxeBc private data.
|
||||
@param Type The type of the menu.
|
||||
@param UseDefaultItem Use default item or not.
|
||||
|
||||
@retval EFI_ABORTED User cancel operation.
|
||||
@retval EFI_SUCCESS Select the boot menu success.
|
||||
@retval EFI_NOT_READY Read the input key from the keybroad has not finish.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -1734,7 +1763,7 @@ PxeBcSelectBootMenu (
|
||||
switch (InputKey.ScanCode) {
|
||||
case SCAN_LEFT:
|
||||
case SCAN_UP:
|
||||
if (Select) {
|
||||
if (Select > 0) {
|
||||
--Select;
|
||||
}
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
Dhcp and Discover routines for PxeBc.
|
||||
|
||||
Copyright (c) 2007, Intel Corporation
|
||||
Copyright (c) 2007, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,21 +10,12 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
PxeBcDhcp.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Dhcp and Discover routines for PxeBc
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef __EFI_PXEBC_DHCP_H__
|
||||
#define __EFI_PXEBC_DHCP_H__
|
||||
|
||||
enum {
|
||||
typedef enum {
|
||||
PXEBC_DHCP4_MAX_OPTION_NUM = 16,
|
||||
PXEBC_DHCP4_MAX_OPTION_SIZE = 312,
|
||||
PXEBC_DHCP4_MAX_PACKET_SIZE = 1472,
|
||||
@@ -105,12 +97,12 @@ enum {
|
||||
|
||||
PXEBC_DHCP4_OVERLOAD_FILE = 1,
|
||||
PXEBC_DHCP4_OVERLOAD_SERVER_NAME = 2
|
||||
};
|
||||
} PXEBC_ENUM_TYPES;
|
||||
|
||||
//
|
||||
// The array index of the DHCP4 option tag interested
|
||||
//
|
||||
enum {
|
||||
typedef enum {
|
||||
PXEBC_DHCP4_TAG_INDEX_BOOTFILE_LEN,
|
||||
PXEBC_DHCP4_TAG_INDEX_VENDOR,
|
||||
PXEBC_DHCP4_TAG_INDEX_OVERLOAD,
|
||||
@@ -119,19 +111,19 @@ enum {
|
||||
PXEBC_DHCP4_TAG_INDEX_CLASS_ID,
|
||||
PXEBC_DHCP4_TAG_INDEX_BOOTFILE,
|
||||
PXEBC_DHCP4_TAG_INDEX_MAX
|
||||
};
|
||||
} PXEBC_DHCP4_TAG_INDEX_ENUM_TYPES;
|
||||
|
||||
//
|
||||
// The type of DHCP OFFER, arranged by priority, PXE10 has the highest priority.
|
||||
//
|
||||
enum {
|
||||
typedef enum {
|
||||
DHCP4_PACKET_TYPE_PXE10,
|
||||
DHCP4_PACKET_TYPE_WFM11A,
|
||||
DHCP4_PACKET_TYPE_BINL,
|
||||
DHCP4_PACKET_TYPE_DHCP_ONLY,
|
||||
DHCP4_PACKET_TYPE_MAX,
|
||||
DHCP4_PACKET_TYPE_BOOTP = DHCP4_PACKET_TYPE_MAX
|
||||
};
|
||||
} DHCP4_PACKET_TYPE_ENUM_TYPES;
|
||||
|
||||
#define BIT(x) (1 << x)
|
||||
#define CTRL(x) (0x1F & (x))
|
||||
@@ -301,36 +293,33 @@ typedef struct {
|
||||
#define GET_NEXT_BOOT_SVR_ENTRY(Ent) \
|
||||
(PXEBC_BOOT_SVR_ENTRY *) ((UINT8 *) Ent + sizeof (*(Ent)) + ((Ent)->IpCnt - 1) * sizeof (EFI_IPv4_ADDRESS))
|
||||
|
||||
|
||||
/**
|
||||
This function initialize the DHCP4 message instance.
|
||||
|
||||
This function will pad each item of dhcp4 message packet.
|
||||
|
||||
@param Seed Pointer to the message instance of the DHCP4 packet.
|
||||
@param Udp4 Pointer to the EFI_UDP4_PROTOCOL instance.
|
||||
|
||||
@return none.
|
||||
|
||||
**/
|
||||
VOID
|
||||
PxeBcInitSeedPacket (
|
||||
IN EFI_DHCP4_PACKET *Seed,
|
||||
IN EFI_UDP4_PROTOCOL *Udp4
|
||||
)
|
||||
/*++
|
||||
|
||||
Routine Description:
|
||||
|
||||
GC_NOTO: Add function description
|
||||
|
||||
Arguments:
|
||||
|
||||
Seed - GC_NOTO: add argument description
|
||||
Udp4 - GC_NOTO: add argument description
|
||||
|
||||
Returns:
|
||||
|
||||
GC_NOTO: add return values
|
||||
|
||||
--*/
|
||||
;
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Parse the cached dhcp packet.
|
||||
|
||||
@param CachedPacket GC_NOTO: add argument description
|
||||
@param CachedPacket Pointer to cached dhcp packet.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@retval TRUE Success to parse and validation.
|
||||
@retval FALSE Fail to parse or validation.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
@@ -339,13 +328,15 @@ PxeBcParseCachedDhcpPacket (
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
This function is to check the selected proxy offer(include BINL dhcp offer and
|
||||
DHCP_ONLY offer ) and set the flag and copy the DHCP packets to the Pxe base code
|
||||
mode structure.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param Private Pointer to PxeBc private data.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@retval EFI_SUCCESS Operational successful.
|
||||
@retval EFI_NO_RESPONSE Offer dhcp service failed.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -356,16 +347,32 @@ PxeBcCheckSelectedOffer (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Callback routine.
|
||||
|
||||
EFI_DHCP4_CALLBACK is provided by the consumer of the EFI DHCPv4 Protocol driver
|
||||
to intercept events that occurred in the configuration process. This structure
|
||||
provides advanced control of each state transition of the DHCP process. The
|
||||
returned status code determines the behavior of the EFI DHCPv4 Protocol driver.
|
||||
There are three possible returned values, which are described in the following
|
||||
table.
|
||||
|
||||
@param This GC_NOTO: add argument description
|
||||
@param Context GC_NOTO: add argument description
|
||||
@param CurrentState GC_NOTO: add argument description
|
||||
@param Dhcp4Event GC_NOTO: add argument description
|
||||
@param Packet GC_NOTO: add argument description
|
||||
@param NewPacket GC_NOTO: add argument description
|
||||
@param This Pointer to the EFI DHCPv4 Protocol instance that is used to
|
||||
configure this callback function.
|
||||
@param Context Pointer to the context that is initialized by
|
||||
EFI_DHCP4_PROTOCOL.Configure().
|
||||
@param CurrentState The current operational state of the EFI DHCPv4 Protocol
|
||||
driver.
|
||||
@param Dhcp4Event The event that occurs in the current state, which usually means a
|
||||
state transition.
|
||||
@param Packet The DHCP packet that is going to be sent or already received.
|
||||
@param NewPacket The packet that is used to replace the above Packet.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@retval EFI_SUCCESS Tells the EFI DHCPv4 Protocol driver to continue the DHCP process.
|
||||
@retval EFI_NOT_READY Only used in the Dhcp4Selecting state. The EFI DHCPv4 Protocol
|
||||
driver will continue to wait for more DHCPOFFER packets until the retry
|
||||
timeout expires.
|
||||
@retval EFI_ABORTED Tells the EFI DHCPv4 Protocol driver to abort the current process and
|
||||
return to the Dhcp4Init or Dhcp4InitReboot state.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -381,20 +388,23 @@ PxeBcDhcpCallBack (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Discover the boot of service and initialize the vendor option if exists.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param Type GC_NOTO: add argument description
|
||||
@param Layer GC_NOTO: add argument description
|
||||
@param UseBis GC_NOTO: add argument description
|
||||
@param DestIp GC_NOTO: add argument description
|
||||
@param IpCount GC_NOTO: add argument description
|
||||
@param SrvList GC_NOTO: add argument description
|
||||
@param IsDiscv GC_NOTO: add argument description
|
||||
@param Reply GC_NOTO: add argument description
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@param Private Pointer to PxeBc private data.
|
||||
@param Type PxeBc option boot item type
|
||||
@param Layer PxeBc option boot item layer
|
||||
@param UseBis use bios or not
|
||||
@param DestIp ip address for server
|
||||
@param IpCount the total of the server ip address
|
||||
@param SrvList server list
|
||||
@param IsDiscv discover the vendor or not
|
||||
@param Reply the dhcp4 packet of Pxe reply
|
||||
|
||||
@retval EFI_SUCCESS operational success.
|
||||
@retval EFI_OUT_OF_RESOURCES Allocate memory pool failed.
|
||||
@retval EFI_NOT_FOUND There is no vendor option exists.
|
||||
@retval EFI_TIMEOUT Send Pxe Discover time out.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcDiscvBootService (
|
||||
@@ -412,13 +422,14 @@ PxeBcDiscvBootService (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Initialize the DHCP options and build the option list.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param OptList GC_NOTO: add argument description
|
||||
@param IsDhcpDiscover GC_NOTO: add argument description
|
||||
@param Private Pointer to PxeBc private data.
|
||||
@param OptList Pointer to a DHCP option list.
|
||||
|
||||
@param IsDhcpDiscover Discover dhcp option or not.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return The index item number of the option list.
|
||||
|
||||
**/
|
||||
UINT32
|
||||
@@ -431,14 +442,14 @@ PxeBcBuildDhcpOptions (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Create the boot options
|
||||
|
||||
@param OptList GC_NOTO: add argument description
|
||||
@param Type GC_NOTO: add argument description
|
||||
@param Layer GC_NOTO: add argument description
|
||||
@param OptLen GC_NOTO: add argument description
|
||||
@param OptList Pointer to the list of the options
|
||||
@param Type the type of option
|
||||
@param Layer the layer of the boot options
|
||||
@param OptLen length of opotion
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return None.
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -452,13 +463,14 @@ PxeBcCreateBootOptions (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Parse interested dhcp options.
|
||||
|
||||
@param Buffer GC_NOTO: add argument description
|
||||
@param Length GC_NOTO: add argument description
|
||||
@param OptTag GC_NOTO: add argument description
|
||||
@param Buffer Pointer to the dhcp options packet.
|
||||
@param Length the length of the dhcp options.
|
||||
@param OptTag the option OpCode.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return Return NULL if the buffer length is 0 and OpCode is not
|
||||
PXEBC_DHCP4_TAG_EOP, or the pointer to the buffer.
|
||||
|
||||
**/
|
||||
EFI_DHCP4_PACKET_OPTION *
|
||||
@@ -471,12 +483,12 @@ PxeBcParseExtendOptions (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
This function is to parse and check vendor options.
|
||||
|
||||
@param Dhcp4Option GC_NOTO: add argument description
|
||||
@param VendorOption GC_NOTO: add argument description
|
||||
@param Dhcp4Option Pointer to dhcp options
|
||||
@param VendorOption Pointer to vendor options
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return Return TRUE if valid for vendor options, or FALSE.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
@@ -488,31 +500,16 @@ PxeBcParseVendorOptions (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Choose the boot prompt.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param Info GC_NOTO: add argument description
|
||||
@param Type GC_NOTO: add argument description
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcSelectBootServers (
|
||||
IN PXEBC_PRIVATE_DATA *Private,
|
||||
OUT EFI_PXE_BASE_CODE_DISCOVER_INFO **Info,
|
||||
OUT UINT16 *Type
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@param Private Pointer to PxeBc private data.
|
||||
|
||||
@retval EFI_SUCCESS Select boot prompt done.
|
||||
@retval EFI_TIMEOUT Select boot prompt time out.
|
||||
@retval EFI_NOT_FOUND The proxy offer is not Pxe10.
|
||||
@retval EFI_ABORTED User cancel the operation.
|
||||
@retval EFI_NOT_READY Read the input key from the keybroad has not finish.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcSelectBootPrompt (
|
||||
@@ -522,12 +519,15 @@ PxeBcSelectBootPrompt (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Select the boot menu.
|
||||
|
||||
@param Private GC_NOTO: add argument description
|
||||
@param Type GC_NOTO: add argument description
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@param Private Pointer to PxeBc private data.
|
||||
@param Type The type of the menu.
|
||||
@param UseDefaultItem Use default item or not.
|
||||
|
||||
@retval EFI_ABORTED User cancel operation.
|
||||
@retval EFI_SUCCESS Select the boot menu success.
|
||||
@retval EFI_NOT_READY Read the input key from the keybroad has not finish.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007 - 2008, Intel Corporation
|
||||
The driver binding for IP4 CONFIG protocol.
|
||||
|
||||
Copyright (c) 2007 - 2008, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,30 +10,30 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
PxeBcDriver.c
|
||||
|
||||
Abstract:
|
||||
|
||||
The driver binding for IP4 CONFIG protocol.
|
||||
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#include "PxeBcImpl.h"
|
||||
|
||||
EFI_DRIVER_BINDING_PROTOCOL gPxeBcDriverBinding = {
|
||||
PxeBcDriverBindingSupported,
|
||||
PxeBcDriverBindingStart,
|
||||
PxeBcDriverBindingStop,
|
||||
0xa,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
/**
|
||||
The entry point for PxeBc driver which install the driver
|
||||
binding and component name protocol on its image.
|
||||
This is the declaration of an EFI image entry point. This entry point is
|
||||
the same for UEFI Applications, UEFI OS Loaders, and UEFI Drivers including
|
||||
both device drivers and bus drivers.
|
||||
|
||||
@param ImageHandle The Image handle of the driver
|
||||
@param SystemTable The system table
|
||||
@param ImageHandle The firmware allocated handle for the UEFI image.
|
||||
@param SystemTable A pointer to the EFI System Table.
|
||||
|
||||
@return EFI_SUCCESS
|
||||
@return Others
|
||||
@retval EFI_SUCCESS The operation completed successfully.
|
||||
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -53,16 +54,22 @@ PxeBcDriverEntryPoint (
|
||||
|
||||
|
||||
/**
|
||||
Test to see if this driver supports ControllerHandle.
|
||||
Test to see if this driver supports ControllerHandle. This service
|
||||
is called by the EFI boot service ConnectController(). In
|
||||
order to make drivers as small as possible, there are a few calling
|
||||
restrictions for this service. ConnectController() must
|
||||
follow these calling restrictions. If any other agent wishes to call
|
||||
Supported() it must also follow these calling restrictions.
|
||||
PxeBc requires DHCP4 and MTFTP4 protocols.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
device to start.
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
device to start.
|
||||
|
||||
@return EFI_SUCCES
|
||||
@return EFI_ALREADY_STARTED
|
||||
@return Others
|
||||
@retval EFI_SUCCESS This driver supports this device
|
||||
@retval EFI_ALREADY_STARTED This driver is already running on this device
|
||||
@retval other This driver does not support this device
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -116,17 +123,21 @@ PxeBcDriverBindingSupported (
|
||||
|
||||
|
||||
/**
|
||||
Start this driver on ControllerHandle.
|
||||
Start this driver on ControllerHandle. This service is called by the
|
||||
EFI boot service ConnectController(). In order to make
|
||||
drivers as small as possible, there are a few calling restrictions for
|
||||
this service. ConnectController() must follow these
|
||||
calling restrictions. If any other agent wishes to call Start() it
|
||||
must also follow these calling restrictions.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to bind driver to
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
device to start.
|
||||
|
||||
@return EFI_SUCCES
|
||||
@return EFI_ALREADY_STARTED
|
||||
@return EFI_OUT_OF_RESOURCES
|
||||
@return Others
|
||||
@retval EFI_SUCCESS This driver is added to ControllerHandle
|
||||
@retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle
|
||||
@retval other This driver does not support this device
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -458,17 +469,21 @@ ON_ERROR:
|
||||
|
||||
|
||||
/**
|
||||
Stop this driver on ControllerHandle.
|
||||
Stop this driver on ControllerHandle. This service is called by the
|
||||
EFI boot service DisconnectController(). In order to
|
||||
make drivers as small as possible, there are a few calling
|
||||
restrictions for this service. DisconnectController()
|
||||
must follow these calling restrictions. If any other agent wishes
|
||||
to call Stop() it must also follow these calling restrictions.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to stop driver on
|
||||
@param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of
|
||||
children is zero stop the entire bus driver.
|
||||
@param ChildHandleBuffer List of Child Handles to Stop.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to stop driver on
|
||||
@param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of
|
||||
children is zero stop the entire bus driver.
|
||||
@param ChildHandleBuffer List of Child Handles to Stop.
|
||||
|
||||
@return EFI_SUCCESS
|
||||
@return EFI_DEVICE_ERROR
|
||||
@return Others
|
||||
@retval EFI_SUCCESS This driver is removed ControllerHandle
|
||||
@retval other This driver was not removed from this device
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -616,13 +631,4 @@ PxeBcDriverBindingStop (
|
||||
return Status;
|
||||
}
|
||||
|
||||
EFI_DRIVER_BINDING_PROTOCOL gPxeBcDriverBinding = {
|
||||
PxeBcDriverBindingSupported,
|
||||
PxeBcDriverBindingStart,
|
||||
PxeBcDriverBindingStop,
|
||||
0xa,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007, Intel Corporation
|
||||
Copyright (c) 2007, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,95 +9,94 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
PxeBcDriver.h
|
||||
|
||||
Abstract:
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef __EFI_PXEBC_DRIVER_H__
|
||||
#define __EFI_PXEBC_DRIVER_H__
|
||||
|
||||
EFI_STATUS
|
||||
PxeBcDriverBindingSupported (
|
||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||
IN EFI_HANDLE Controller,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||
)
|
||||
/*++
|
||||
|
||||
Routine Description:
|
||||
Test to see if this driver supports ControllerHandle.
|
||||
|
||||
Arguments:
|
||||
This - Protocol instance pointer.
|
||||
ControllerHandle - Handle of device to test
|
||||
RemainingDevicePath - Optional parameter use to pick a specific child
|
||||
device to start.
|
||||
|
||||
Returns:
|
||||
EFI_SUCCES
|
||||
EFI_ALREADY_STARTED
|
||||
Others
|
||||
|
||||
--*/
|
||||
// GC_NOTO: Controller - add argument and description to function comment
|
||||
;
|
||||
|
||||
|
||||
/**
|
||||
Start this driver on ControllerHandle.
|
||||
Test to see if this driver supports ControllerHandle. This service
|
||||
is called by the EFI boot service ConnectController(). In
|
||||
order to make drivers as small as possible, there are a few calling
|
||||
restrictions for this service. ConnectController() must
|
||||
follow these calling restrictions. If any other agent wishes to call
|
||||
Supported() it must also follow these calling restrictions.
|
||||
PxeBc requires DHCP4 and MTFTP4 protocols.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
device to start.
|
||||
|
||||
@retval EFI_SUCCESS This driver supports this device
|
||||
@retval EFI_ALREADY_STARTED This driver is already running on this device
|
||||
@retval other This driver does not support this device
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PxeBcDriverBindingSupported (
|
||||
IN EFI_DRIVER_BINDING_PROTOCOL * This,
|
||||
IN EFI_HANDLE ControllerHandle,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL * RemainingDevicePath OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
Start this driver on ControllerHandle. This service is called by the
|
||||
EFI boot service ConnectController(). In order to make
|
||||
drivers as small as possible, there are a few calling restrictions for
|
||||
this service. ConnectController() must follow these
|
||||
calling restrictions. If any other agent wishes to call Start() it
|
||||
must also follow these calling restrictions.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to bind driver to
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
device to start.
|
||||
|
||||
@return EFI_SUCCES
|
||||
@return EFI_ALREADY_STARTED
|
||||
@return EFI_OUT_OF_RESOURCES
|
||||
@return Others
|
||||
@retval EFI_SUCCESS This driver is added to ControllerHandle
|
||||
@retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle
|
||||
@retval other This driver does not support this device
|
||||
|
||||
**/
|
||||
// GC_NOTO: Controller - add argument and description to function comment
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PxeBcDriverBindingStart (
|
||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||
IN EFI_HANDLE Controller,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
IN EFI_DRIVER_BINDING_PROTOCOL * This,
|
||||
IN EFI_HANDLE ControllerHandle,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL * RemainingDevicePath OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
Stop this driver on ControllerHandle.
|
||||
Stop this driver on ControllerHandle. This service is called by the
|
||||
EFI boot service DisconnectController(). In order to
|
||||
make drivers as small as possible, there are a few calling
|
||||
restrictions for this service. DisconnectController()
|
||||
must follow these calling restrictions. If any other agent wishes
|
||||
to call Stop() it must also follow these calling restrictions.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to stop driver on
|
||||
@param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of
|
||||
children is zero stop the entire bus driver.
|
||||
@param ChildHandleBuffer List of Child Handles to Stop.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to stop driver on
|
||||
@param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of
|
||||
children is zero stop the entire bus driver.
|
||||
@param ChildHandleBuffer List of Child Handles to Stop.
|
||||
|
||||
@return EFI_SUCCESS
|
||||
@return EFI_DEVICE_ERROR
|
||||
@return Others
|
||||
@retval EFI_SUCCESS This driver is removed ControllerHandle
|
||||
@retval other This driver was not removed from this device
|
||||
|
||||
**/
|
||||
// GC_NOTO: Controller - add argument and description to function comment
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PxeBcDriverBindingStop (
|
||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||
IN EFI_HANDLE Controller,
|
||||
IN UINTN NumberOfChildren,
|
||||
IN EFI_HANDLE *ChildHandleBuffer
|
||||
)
|
||||
;
|
||||
|
||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||
IN EFI_HANDLE ControllerHandle,
|
||||
IN UINTN NumberOfChildren,
|
||||
IN EFI_HANDLE *ChildHandleBuffer
|
||||
);
|
||||
|
||||
extern EFI_COMPONENT_NAME2_PROTOCOL gPxeBcComponentName2;
|
||||
extern EFI_COMPONENT_NAME_PROTOCOL gPxeBcComponentName;
|
||||
extern EFI_DRIVER_BINDING_PROTOCOL gPxeBcDriverBinding;
|
||||
|
||||
#endif
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007 - 2008, Intel Corporation
|
||||
Copyright (c) 2007 - 2008, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,13 +9,6 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
PxeBcImpl.h
|
||||
|
||||
Abstract:
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef __EFI_PXEBC_IMPL_H__
|
||||
@@ -143,4 +136,42 @@ struct _PXEBC_PRIVATE_DATA {
|
||||
extern EFI_PXE_BASE_CODE_PROTOCOL mPxeBcProtocolTemplate;
|
||||
extern EFI_LOAD_FILE_PROTOCOL mLoadFileProtocolTemplate;
|
||||
|
||||
/**
|
||||
Causes the driver to load a specified file.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param FilePath The device specific path of the file to load.
|
||||
@param BootPolicy If TRUE, indicates that the request originates from the
|
||||
boot manager is attempting to load FilePath as a boot
|
||||
selection. If FALSE, then FilePath must match as exact file
|
||||
to be loaded.
|
||||
@param BufferSize On input the size of Buffer in bytes. On output with a return
|
||||
code of EFI_SUCCESS, the amount of data transferred to
|
||||
Buffer. On output with a return code of EFI_BUFFER_TOO_SMALL,
|
||||
the size of Buffer required to retrieve the requested file.
|
||||
@param Buffer The memory buffer to transfer the file to. IF Buffer is NULL,
|
||||
then no the size of the requested file is returned in
|
||||
BufferSize.
|
||||
|
||||
@retval EFI_SUCCESS The file was loaded.
|
||||
@retval EFI_UNSUPPORTED The device does not support the provided BootPolicy
|
||||
@retval EFI_INVALID_PARAMETER FilePath is not a valid device path, or
|
||||
BufferSize is NULL.
|
||||
@retval EFI_NO_MEDIA No medium was present to load the file.
|
||||
@retval EFI_DEVICE_ERROR The file was not loaded due to a device error.
|
||||
@retval EFI_NO_RESPONSE The remote system did not respond.
|
||||
@retval EFI_NOT_FOUND The file was not found.
|
||||
@retval EFI_ABORTED The file load process was manually cancelled.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
EfiPxeLoadFile (
|
||||
IN EFI_LOAD_FILE_PROTOCOL * This,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL * FilePath,
|
||||
IN BOOLEAN BootPolicy,
|
||||
IN OUT UINTN *BufferSize,
|
||||
IN VOID *Buffer OPTIONAL
|
||||
);
|
||||
|
||||
#endif
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007, Intel Corporation
|
||||
PxeBc MTFTP functions.
|
||||
|
||||
Copyright (c) 2007, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
PxeBcMtftp.c
|
||||
|
||||
Abstract:
|
||||
|
||||
PxeBc MTFTP functions
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#include "PxeBcImpl.h"
|
||||
@@ -35,13 +27,19 @@ CHAR8 *mMtftpOptions[PXE_MTFTP_OPTION_MAXIMUM_INDEX] = {
|
||||
/**
|
||||
This is a callback function when packets received/transmitted in Mtftp driver.
|
||||
|
||||
A callback function that is provided by the caller to intercept
|
||||
the EFI_MTFTP4_OPCODE_DATA or EFI_MTFTP4_OPCODE_DATA8 packets processed in the
|
||||
EFI_MTFTP4_PROTOCOL.ReadFile() function, and alternatively to intercept
|
||||
EFI_MTFTP4_OPCODE_OACK or EFI_MTFTP4_OPCODE_ERROR packets during a call to
|
||||
EFI_MTFTP4_PROTOCOL.ReadFile(), WriteFile() or ReadDirectory().
|
||||
|
||||
@param This Pointer to Mtftp protocol instance
|
||||
@param Token Pointer to Mtftp token
|
||||
@param PacketLen Length of Mtftp packet
|
||||
@param Packet Pointer to Mtftp packet
|
||||
|
||||
@return EFI_SUCCESS
|
||||
@return EFI_ABORTED
|
||||
@retval EFI_SUCCESS Operation sucess
|
||||
@retval EFI_ABORTED Abort transfer process
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -90,17 +88,18 @@ PxeBcCheckPacket (
|
||||
|
||||
/**
|
||||
This function is to get size of a file by Tftp.
|
||||
|
||||
|
||||
@param Private Pointer to PxeBc private data
|
||||
@param Config Pointer to Mtftp configuration data
|
||||
@param Filename Pointer to file name
|
||||
@param BlockSize Pointer to block size
|
||||
@param BufferSize Pointer to buffer size
|
||||
|
||||
@return EFI_SUCCESS
|
||||
@return EFI_NOT_FOUND
|
||||
@return EFI_DEVICE_ERROR
|
||||
|
||||
@retval EFI_SUCCESS Get the size of file success
|
||||
@retval EFI_NOT_FOUND Parse the tftp ptions failed.
|
||||
@retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
|
||||
@retval Other Has not get the size of the file.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcTftpGetFileSize (
|
||||
@@ -161,7 +160,11 @@ PxeBcTftpGetFileSize (
|
||||
if (Packet->OpCode == EFI_MTFTP4_OPCODE_ERROR) {
|
||||
Private->Mode.TftpErrorReceived = TRUE;
|
||||
Private->Mode.TftpError.ErrorCode = (UINT8) Packet->Error.ErrorCode;
|
||||
AsciiStrnCpy (Private->Mode.TftpError.ErrorString, (CHAR8 *) Packet->Error.ErrorMessage, 127);
|
||||
AsciiStrnCpy (
|
||||
Private->Mode.TftpError.ErrorString,
|
||||
(CHAR8 *) Packet->Error.ErrorMessage,
|
||||
127
|
||||
);
|
||||
}
|
||||
goto ON_ERROR;
|
||||
}
|
||||
@@ -219,9 +222,10 @@ ON_ERROR:
|
||||
@param BufferSize Pointer to buffer size
|
||||
@param DontUseBuffer Indicate whether with a receive buffer
|
||||
|
||||
@return EFI_SUCCESS
|
||||
@return EFI_DEVICE_ERROR
|
||||
|
||||
@retval EFI_SUCCESS Read the data success from the special file.
|
||||
@retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
|
||||
@retval other Read data from file failed.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcTftpReadFile (
|
||||
@@ -301,9 +305,10 @@ PxeBcTftpReadFile (
|
||||
@param BufferPtr Pointer to buffer
|
||||
@param BufferSize Pointer to buffer size
|
||||
|
||||
@return EFI_SUCCESS
|
||||
@return EFI_DEVICE_ERROR
|
||||
|
||||
@retval EFI_SUCCESS Write the data success into the special file.
|
||||
@retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
|
||||
@retval other Write data into file failed.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcTftpWriteFile (
|
||||
@@ -364,21 +369,21 @@ PxeBcTftpWriteFile (
|
||||
|
||||
|
||||
/**
|
||||
This function is to get data of a directory by Tftp.
|
||||
This function is to get data(file) from a directory(may be a server) by Tftp.
|
||||
|
||||
@param Private Pointer to PxeBc private data
|
||||
@param Config Pointer to Mtftp configuration data
|
||||
@param Filename Pointer to file name
|
||||
@param BlockSize Pointer to block size
|
||||
@param BufferPtr Pointer to buffer
|
||||
@param BufferSize Pointer to buffer size
|
||||
@param DontUseBuffer Indicate whether with a receive buffer
|
||||
|
||||
@return EFI_SUCCES
|
||||
@return EFI_DEVICE_ERROR
|
||||
@param Private Pointer to PxeBc private data.
|
||||
@param Config Pointer to Mtftp configuration data.
|
||||
@param Filename Pointer to file name.
|
||||
@param BlockSize Pointer to block size.
|
||||
@param BufferPtr Pointer to buffer.
|
||||
@param BufferSize Pointer to buffer size.
|
||||
@param DontUseBuffer Indicate whether with a receive buffer.
|
||||
|
||||
@retval EFI_SUCCES Get the data from the file included in directory success.
|
||||
@retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
|
||||
@retval other Operation failed.
|
||||
|
||||
**/
|
||||
// GC_NOTO: EFI_SUCCESS - add return value to function comment
|
||||
EFI_STATUS
|
||||
PxeBcTftpReadDirectory (
|
||||
IN PXEBC_PRIVATE_DATA *Private,
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007, Intel Corporation
|
||||
Mtftp routines for PxeBc.
|
||||
|
||||
Copyright (c) 2007, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,42 +10,34 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
PxeBcMtftp.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Mtftp routines for PxeBc
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef __EFI_PXEBC_MTFTP_H__
|
||||
#define __EFI_PXEBC_MTFTP_H__
|
||||
|
||||
enum {
|
||||
typedef enum {
|
||||
PXE_MTFTP_OPTION_BLKSIZE_INDEX,
|
||||
PXE_MTFTP_OPTION_TIMEOUT_INDEX,
|
||||
PXE_MTFTP_OPTION_TSIZE_INDEX,
|
||||
PXE_MTFTP_OPTION_MULTICAST_INDEX,
|
||||
PXE_MTFTP_OPTION_MAXIMUM_INDEX
|
||||
};
|
||||
} PXE_MTFTP_OPTION_ENUM_TYPES;
|
||||
|
||||
|
||||
/**
|
||||
This function is to get size of a file by Tftp.
|
||||
|
||||
|
||||
@param Private Pointer to PxeBc private data
|
||||
@param Config Pointer to Mtftp configuration data
|
||||
@param Filename Pointer to file name
|
||||
@param BlockSize Pointer to block size
|
||||
@param BufferSize Pointer to buffer size
|
||||
|
||||
@return EFI_SUCCESS
|
||||
@return EFI_NOT_FOUND
|
||||
@return EFI_DEVICE_ERROR
|
||||
|
||||
@retval EFI_SUCCESS Get the size of file success
|
||||
@retval EFI_NOT_FOUND Parse the tftp ptions failed.
|
||||
@retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
|
||||
@retval Other Has not get the size of the file.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcTftpGetFileSize (
|
||||
@@ -68,9 +61,9 @@ PxeBcTftpGetFileSize (
|
||||
@param BufferSize Pointer to buffer size
|
||||
@param DontUseBuffer Indicate whether with a receive buffer
|
||||
|
||||
@return EFI_SUCCESS
|
||||
@return EFI_DEVICE_ERROR
|
||||
|
||||
@retval EFI_SUCCESS Read the data success from the special file.
|
||||
@retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
|
||||
@retval other Read data from file failed.
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcTftpReadFile (
|
||||
@@ -96,8 +89,9 @@ PxeBcTftpReadFile (
|
||||
@param BufferPtr Pointer to buffer
|
||||
@param BufferSize Pointer to buffer size
|
||||
|
||||
@return EFI_SUCCESS
|
||||
@return EFI_DEVICE_ERROR
|
||||
@retval EFI_SUCCESS Write the data success into the special file.
|
||||
@retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
|
||||
@retval other Write data into file failed.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -114,19 +108,20 @@ PxeBcTftpWriteFile (
|
||||
|
||||
|
||||
/**
|
||||
This function is to get data of a directory by Tftp.
|
||||
This function is to get data(file) from a directory(may be a server) by Tftp.
|
||||
|
||||
@param Private Pointer to PxeBc private data
|
||||
@param Config Pointer to Mtftp configuration data
|
||||
@param Filename Pointer to file name
|
||||
@param BlockSize Pointer to block size
|
||||
@param BufferPtr Pointer to buffer
|
||||
@param BufferSize Pointer to buffer size
|
||||
@param DontUseBuffer Indicate whether with a receive buffer
|
||||
|
||||
@return EFI_SUCCES
|
||||
@return EFI_DEVICE_ERROR
|
||||
@param Private Pointer to PxeBc private data.
|
||||
@param Config Pointer to Mtftp configuration data.
|
||||
@param Filename Pointer to file name.
|
||||
@param BlockSize Pointer to block size.
|
||||
@param BufferPtr Pointer to buffer.
|
||||
@param BufferSize Pointer to buffer size.
|
||||
@param DontUseBuffer Indicate whether with a receive buffer.
|
||||
|
||||
@retval EFI_SUCCES Get the data from the file included in directory success.
|
||||
@retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
|
||||
@retval other Operation failed.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcTftpReadDirectory (
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007 - 2008, Intel Corporation
|
||||
Support routines for PxeBc.
|
||||
|
||||
Copyright (c) 2007 - 2008, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
PxeBcSupport.c
|
||||
|
||||
Abstract:
|
||||
|
||||
Support routines for PxeBc
|
||||
|
||||
|
||||
**/
|
||||
|
||||
|
||||
@@ -25,7 +17,8 @@ Abstract:
|
||||
|
||||
|
||||
/**
|
||||
|
||||
This function returns SMBIOS string given the string number.
|
||||
|
||||
@param Smbios Pointer to SMBIOS structure
|
||||
@param StringNumber String number to return. 0 is used to skip all
|
||||
strings and point to the next SMBIOS structure.
|
||||
@@ -33,7 +26,6 @@ Abstract:
|
||||
@return Pointer to string, or pointer to next SMBIOS strcuture if StringNumber == 0
|
||||
|
||||
**/
|
||||
// GC_NOTO: function comment is missing 'Routine Description:'
|
||||
CHAR8 *
|
||||
GetSmbiosString (
|
||||
IN SMBIOS_STRUCTURE_POINTER *Smbios,
|
||||
@@ -78,14 +70,14 @@ GetSmbiosString (
|
||||
|
||||
|
||||
/**
|
||||
This function gets system guid and serial number from the smbios table
|
||||
This function gets system guid and serial number from the smbios table.
|
||||
|
||||
@param SystemGuid The pointer of returned system guid
|
||||
@param SystemSerialNumber The pointer of returned system serial number
|
||||
@param SystemGuid The pointer of returned system guid.
|
||||
@param SystemSerialNumber The pointer of returned system serial number.
|
||||
|
||||
@retval EFI_SUCCESS Successfully get the system guid and system serial
|
||||
number
|
||||
@retval EFI_NOT_FOUND Not find the SMBIOS table
|
||||
number.
|
||||
@retval EFI_NOT_FOUND Not find the SMBIOS table.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -145,12 +137,12 @@ GetSmbiosSystemGuidAndSerialNumber (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
The common notify function associated with various PxeBc events.
|
||||
|
||||
@param Event GC_NOTO: add argument description
|
||||
@param Context GC_NOTO: add argument description
|
||||
@param Event The event signaled.
|
||||
@param Context The context.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return None
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -162,6 +154,32 @@ PxeBcCommonNotify (
|
||||
*((BOOLEAN *) Context) = TRUE;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
This function initialize(or configure) the Udp4Write instance.
|
||||
|
||||
@param Udp4 Pointer to the EFI_UDP4_PROTOCOL instance.
|
||||
@param StationIp Pointer to the station ip address.
|
||||
@param SubnetMask Pointer to the subnetmask of the station ip address.
|
||||
@param Gateway Pointer to the gateway ip address.
|
||||
@param SrcPort Pointer to the srouce port of the station.
|
||||
|
||||
@retval EFI_SUCCESS The configuration settings were set, changed, or reset successfully.
|
||||
@retval EFI_NO_MAPPING When using a default address, configuration (DHCP, BOOTP,
|
||||
RARP, etc.) is not finished yet.
|
||||
@retval EFI_INVALID_PARAMETER One or more following conditions are TRUE:
|
||||
@retval EFI_ALREADY_STARTED The EFI UDPv4 Protocol instance is already started/configured
|
||||
and must be stopped/reset before it can be reconfigured.
|
||||
@retval EFI_ACCESS_DENIED UdpConfigData. AllowDuplicatePort is FALSE
|
||||
and UdpConfigData.StationPort is already used by
|
||||
other instance.
|
||||
@retval EFI_OUT_OF_RESOURCES The EFI UDPv4 Protocol driver cannot allocate memory for this
|
||||
EFI UDPv4 Protocol instance.
|
||||
@retval EFI_DEVICE_ERROR An unexpected network or system error occurred and this instance
|
||||
was not opened.
|
||||
@retval Others Please examine the function Udp4->Routes(Udp4, FALSE, &mZeroIp4Addr, &mZeroIp4Addr, Gateway) returns.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcConfigureUdpWriteInstance (
|
||||
IN EFI_UDP4_PROTOCOL *Udp4,
|
||||
@@ -214,25 +232,23 @@ PxeBcConfigureUdpWriteInstance (
|
||||
|
||||
|
||||
/**
|
||||
Convert number to ASCII value
|
||||
Convert number to ASCII value.
|
||||
|
||||
@param Number Numeric value to convert to decimal ASCII value.
|
||||
@param Buffer Buffer to place ASCII version of the Number
|
||||
@param Buffer Buffer to place ASCII version of the Number.
|
||||
@param Length Length of Buffer.
|
||||
|
||||
@retval none none
|
||||
|
||||
**/
|
||||
VOID
|
||||
CvtNum (
|
||||
IN UINTN Number,
|
||||
IN UINT8 *Buffer,
|
||||
IN INTN Length
|
||||
IN UINTN Length
|
||||
)
|
||||
{
|
||||
UINTN Remainder;
|
||||
|
||||
while (Length--) {
|
||||
while (Length-- > 0) {
|
||||
Remainder = Number % 10;
|
||||
Number /= 10;
|
||||
Buffer[Length] = (UINT8) ('0' + Remainder);
|
||||
@@ -241,12 +257,12 @@ CvtNum (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Convert unsigned int number to decimal number.
|
||||
|
||||
@param Number GC_NOTO: add argument description
|
||||
@param Buffer GC_NOTO: add argument description
|
||||
@param Number The unsigned int number will be converted.
|
||||
@param Buffer Pointer to the buffer to store the decimal number after transform.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return the length of the number after transform.
|
||||
|
||||
**/
|
||||
UINTN
|
||||
@@ -274,12 +290,11 @@ UtoA10 (
|
||||
|
||||
|
||||
/**
|
||||
Convert ASCII numeric string to a UINTN value
|
||||
Convert ASCII numeric string to a UINTN value.
|
||||
|
||||
@param Number Numeric value to convert to decimal ASCII value.
|
||||
@param Buffer Buffer to place ASCII version of the Number
|
||||
@param Buffer Pointer to the 8-byte unsigned int value.
|
||||
|
||||
@retval Value UINTN value of the ASCII string.
|
||||
@return UINTN value of the ASCII string.
|
||||
|
||||
**/
|
||||
UINT64
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007 - 2008, Intel Corporation
|
||||
Support routines for PxeBc.
|
||||
Copyright (c) 2007 - 2008, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,20 +9,22 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
PxeBcSupport.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Support routines for PxeBc
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef __EFI_PXEBC_SUPPORT_H__
|
||||
#define __EFI_PXEBC_SUPPORT_H__
|
||||
|
||||
/**
|
||||
This function gets system guid and serial number from the smbios table.
|
||||
|
||||
@param SystemGuid The pointer of returned system guid.
|
||||
@param SystemSerialNumber The pointer of returned system serial number.
|
||||
|
||||
@retval EFI_SUCCESS Successfully get the system guid and system serial
|
||||
number.
|
||||
@retval EFI_NOT_FOUND Not find the SMBIOS table.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
GetSmbiosSystemGuidAndSerialNumber (
|
||||
IN EFI_GUID *SystemGuid,
|
||||
@@ -31,12 +33,12 @@ GetSmbiosSystemGuidAndSerialNumber (
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
The common notify function associated with various PxeBc events.
|
||||
|
||||
@param Event GC_NOTO: add argument description
|
||||
@param Context GC_NOTO: add argument description
|
||||
@param Event The event signaled.
|
||||
@param Context The context.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return None
|
||||
|
||||
**/
|
||||
VOID
|
||||
@@ -46,6 +48,32 @@ PxeBcCommonNotify (
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
/**
|
||||
This function initialize(or configure) the Udp4Write instance.
|
||||
|
||||
@param Udp4 Pointer to the EFI_UDP4_PROTOCOL instance.
|
||||
@param StationIp Pointer to the station ip address.
|
||||
@param SubnetMask Pointer to the subnetmask of the station ip address.
|
||||
@param Gateway Pointer to the gateway ip address.
|
||||
@param SrcPort Pointer to the srouce port of the station.
|
||||
|
||||
@retval EFI_SUCCESS The configuration settings were set, changed, or reset successfully.
|
||||
@retval EFI_NO_MAPPING When using a default address, configuration (DHCP, BOOTP,
|
||||
RARP, etc.) is not finished yet.
|
||||
@retval EFI_INVALID_PARAMETER One or more following conditions are TRUE:
|
||||
@retval EFI_ALREADY_STARTED The EFI UDPv4 Protocol instance is already started/configured
|
||||
and must be stopped/reset before it can be reconfigured.
|
||||
@retval EFI_ACCESS_DENIED UdpConfigData. AllowDuplicatePort is FALSE
|
||||
and UdpConfigData.StationPort is already used by
|
||||
other instance.
|
||||
@retval EFI_OUT_OF_RESOURCES The EFI UDPv4 Protocol driver cannot allocate memory for this
|
||||
EFI UDPv4 Protocol instance.
|
||||
@retval EFI_DEVICE_ERROR An unexpected network or system error occurred and this instance
|
||||
was not opened.
|
||||
@retval Others Please examine the function Udp4->Routes(Udp4, FALSE, &mZeroIp4Addr, &mZeroIp4Addr, Gateway) returns.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcConfigureUdpWriteInstance (
|
||||
IN EFI_UDP4_PROTOCOL *Udp4,
|
||||
@@ -54,42 +82,52 @@ PxeBcConfigureUdpWriteInstance (
|
||||
IN EFI_IPv4_ADDRESS *Gateway,
|
||||
IN OUT UINT16 *SrcPort
|
||||
);
|
||||
/**
|
||||
Convert number to ASCII value.
|
||||
|
||||
@param Number Numeric value to convert to decimal ASCII value.
|
||||
@param Buffer Buffer to place ASCII version of the Number
|
||||
@param Length Length of Buffer.
|
||||
|
||||
@return None.
|
||||
|
||||
**/
|
||||
VOID
|
||||
CvtNum (
|
||||
IN UINTN Number,
|
||||
IN UINT8 *Buffer,
|
||||
IN INTN Length
|
||||
IN UINTN Length
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Convert unsigned int number to decimal number.
|
||||
|
||||
@param Number GC_NOTO: add argument description
|
||||
@param BufferPtr GC_NOTO: add argument description
|
||||
@param Number The unsigned int number will be converted.
|
||||
@param Buffer Pointer to the buffer to store the decimal number after transform.
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@return the length of the number after transform.
|
||||
|
||||
**/
|
||||
UINTN
|
||||
UtoA10 (
|
||||
UINTN Number,
|
||||
CHAR8 *BufferPtr
|
||||
IN UINTN Number,
|
||||
IN CHAR8 *Buffer
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
/**
|
||||
GC_NOTO: Add function description
|
||||
Convert ASCII numeric string to a UINTN value.
|
||||
|
||||
@param BufferPtr GC_NOTO: add argument description
|
||||
|
||||
@return GC_NOTO: add return values
|
||||
@param Buffer Pointer to the 8-byte unsigned int value.
|
||||
|
||||
@return UINTN value of the ASCII string.
|
||||
|
||||
**/
|
||||
UINT64
|
||||
AtoU64 (
|
||||
UINT8 *BufferPtr
|
||||
IN UINT8 *Buffer
|
||||
)
|
||||
;
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2006, Intel Corporation
|
||||
Defines PXE Arch type.
|
||||
|
||||
Copyright (c) 2006, Intel Corporation.<BR>
|
||||
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
|
||||
@@ -9,13 +10,6 @@ http://opensource.org/licenses/bsd-license.php
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
PxeArch.h
|
||||
|
||||
Abstract:
|
||||
Defines PXE Arch type
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _EFI_PXE_ARCH_H_
|
||||
|
Reference in New Issue
Block a user