mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 06:04:52 +02:00
Update to use DOS format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6340 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
fe5717664e
commit
30368135ac
@ -1,26 +1,26 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
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
|
||||||
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:
|
Module Name:
|
||||||
PxeArch.h
|
PxeArch.h
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
Defines PXE Arch type
|
Defines PXE Arch type
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _EFI_PXE_ARCH_H_
|
#ifndef _EFI_PXE_ARCH_H_
|
||||||
#define _EFI_PXE_ARCH_H_
|
#define _EFI_PXE_ARCH_H_
|
||||||
|
|
||||||
#define SYS_ARCH 0x6
|
#define SYS_ARCH 0x6
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
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
|
||||||
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:
|
Module Name:
|
||||||
PxeArch.h
|
PxeArch.h
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
Defines PXE Arch type
|
Defines PXE Arch type
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _EFI_PXE_ARCH_H_
|
#ifndef _EFI_PXE_ARCH_H_
|
||||||
#define _EFI_PXE_ARCH_H_
|
#define _EFI_PXE_ARCH_H_
|
||||||
|
|
||||||
#define SYS_ARCH 0x2
|
#define SYS_ARCH 0x2
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,103 +1,103 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2007, Intel Corporation
|
Copyright (c) 2007, Intel Corporation
|
||||||
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
|
||||||
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:
|
Module Name:
|
||||||
|
|
||||||
PxeBcDriver.h
|
PxeBcDriver.h
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef __EFI_PXEBC_DRIVER_H__
|
#ifndef __EFI_PXEBC_DRIVER_H__
|
||||||
#define __EFI_PXEBC_DRIVER_H__
|
#define __EFI_PXEBC_DRIVER_H__
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PxeBcDriverBindingSupported (
|
PxeBcDriverBindingSupported (
|
||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
Routine Description:
|
Routine Description:
|
||||||
Test to see if this driver supports ControllerHandle.
|
Test to see if this driver supports ControllerHandle.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
This - Protocol instance pointer.
|
This - Protocol instance pointer.
|
||||||
ControllerHandle - Handle of device to test
|
ControllerHandle - Handle of device to test
|
||||||
RemainingDevicePath - Optional parameter use to pick a specific child
|
RemainingDevicePath - Optional parameter use to pick a specific child
|
||||||
device to start.
|
device to start.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
EFI_SUCCES
|
EFI_SUCCES
|
||||||
EFI_ALREADY_STARTED
|
EFI_ALREADY_STARTED
|
||||||
Others
|
Others
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
// GC_NOTO: Controller - add argument and description to function comment
|
// GC_NOTO: Controller - add argument and description to function comment
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Start this driver on ControllerHandle.
|
Start this driver on ControllerHandle.
|
||||||
|
|
||||||
@param This Protocol instance pointer.
|
@param This Protocol instance pointer.
|
||||||
@param ControllerHandle Handle of device to bind driver to
|
@param ControllerHandle Handle of device to bind driver to
|
||||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||||
device to start.
|
device to start.
|
||||||
|
|
||||||
@return EFI_SUCCES
|
@return EFI_SUCCES
|
||||||
@return EFI_ALREADY_STARTED
|
@return EFI_ALREADY_STARTED
|
||||||
@return EFI_OUT_OF_RESOURCES
|
@return EFI_OUT_OF_RESOURCES
|
||||||
@return Others
|
@return Others
|
||||||
|
|
||||||
**/
|
**/
|
||||||
// GC_NOTO: Controller - add argument and description to function comment
|
// GC_NOTO: Controller - add argument and description to function comment
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PxeBcDriverBindingStart (
|
PxeBcDriverBindingStart (
|
||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Stop this driver on ControllerHandle.
|
Stop this driver on ControllerHandle.
|
||||||
|
|
||||||
@param This Protocol instance pointer.
|
@param This Protocol instance pointer.
|
||||||
@param ControllerHandle Handle of device to stop driver on
|
@param ControllerHandle Handle of device to stop driver on
|
||||||
@param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of
|
@param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of
|
||||||
children is zero stop the entire bus driver.
|
children is zero stop the entire bus driver.
|
||||||
@param ChildHandleBuffer List of Child Handles to Stop.
|
@param ChildHandleBuffer List of Child Handles to Stop.
|
||||||
|
|
||||||
@return EFI_SUCCESS
|
@return EFI_SUCCESS
|
||||||
@return EFI_DEVICE_ERROR
|
@return EFI_DEVICE_ERROR
|
||||||
@return Others
|
@return Others
|
||||||
|
|
||||||
**/
|
**/
|
||||||
// GC_NOTO: Controller - add argument and description to function comment
|
// GC_NOTO: Controller - add argument and description to function comment
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PxeBcDriverBindingStop (
|
PxeBcDriverBindingStop (
|
||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN UINTN NumberOfChildren,
|
IN UINTN NumberOfChildren,
|
||||||
IN EFI_HANDLE *ChildHandleBuffer
|
IN EFI_HANDLE *ChildHandleBuffer
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
extern EFI_COMPONENT_NAME2_PROTOCOL gPxeBcComponentName2;
|
extern EFI_COMPONENT_NAME2_PROTOCOL gPxeBcComponentName2;
|
||||||
extern EFI_COMPONENT_NAME_PROTOCOL gPxeBcComponentName;
|
extern EFI_COMPONENT_NAME_PROTOCOL gPxeBcComponentName;
|
||||||
extern EFI_DRIVER_BINDING_PROTOCOL gPxeBcDriverBinding;
|
extern EFI_DRIVER_BINDING_PROTOCOL gPxeBcDriverBinding;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,146 +1,146 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2007 - 2008, Intel Corporation
|
Copyright (c) 2007 - 2008, Intel Corporation
|
||||||
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
|
||||||
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:
|
Module Name:
|
||||||
|
|
||||||
PxeBcImpl.h
|
PxeBcImpl.h
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef __EFI_PXEBC_IMPL_H__
|
#ifndef __EFI_PXEBC_IMPL_H__
|
||||||
#define __EFI_PXEBC_IMPL_H__
|
#define __EFI_PXEBC_IMPL_H__
|
||||||
|
|
||||||
|
|
||||||
typedef struct _PXEBC_PRIVATE_DATA PXEBC_PRIVATE_DATA;
|
typedef struct _PXEBC_PRIVATE_DATA PXEBC_PRIVATE_DATA;
|
||||||
|
|
||||||
#include <PiDxe.h>
|
#include <PiDxe.h>
|
||||||
|
|
||||||
#include <Guid/SmBios.h>
|
#include <Guid/SmBios.h>
|
||||||
#include <IndustryStandard/SmBios.h>
|
#include <IndustryStandard/SmBios.h>
|
||||||
#include <Protocol/Dhcp4.h>
|
#include <Protocol/Dhcp4.h>
|
||||||
#include <Protocol/PxeBaseCode.h>
|
#include <Protocol/PxeBaseCode.h>
|
||||||
#include <Protocol/Mtftp4.h>
|
#include <Protocol/Mtftp4.h>
|
||||||
#include <Protocol/Udp4.h>
|
#include <Protocol/Udp4.h>
|
||||||
#include <Protocol/LoadFile.h>
|
#include <Protocol/LoadFile.h>
|
||||||
#include <Protocol/NetworkInterfaceIdentifier.h>
|
#include <Protocol/NetworkInterfaceIdentifier.h>
|
||||||
#include <Protocol/PxeBaseCodeCallBack.h>
|
#include <Protocol/PxeBaseCodeCallBack.h>
|
||||||
#include <Protocol/Arp.h>
|
#include <Protocol/Arp.h>
|
||||||
#include <Protocol/Ip4.h>
|
#include <Protocol/Ip4.h>
|
||||||
|
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
#include <Library/BaseMemoryLib.h>
|
#include <Library/BaseMemoryLib.h>
|
||||||
#include <Library/UefiDriverEntryPoint.h>
|
#include <Library/UefiDriverEntryPoint.h>
|
||||||
#include <Library/UefiBootServicesTableLib.h>
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
#include <Library/UefiLib.h>
|
#include <Library/UefiLib.h>
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
#include <Library/NetLib.h>
|
#include <Library/NetLib.h>
|
||||||
|
|
||||||
#include "PxeBcDriver.h"
|
#include "PxeBcDriver.h"
|
||||||
#include "PxeArch.h"
|
#include "PxeArch.h"
|
||||||
#include "PxeBcDhcp.h"
|
#include "PxeBcDhcp.h"
|
||||||
#include "PxeBcMtftp.h"
|
#include "PxeBcMtftp.h"
|
||||||
#include "PxeBcSupport.h"
|
#include "PxeBcSupport.h"
|
||||||
|
|
||||||
#define PXEBC_PRIVATE_DATA_SIGNATURE EFI_SIGNATURE_32 ('P', 'X', 'E', 'P')
|
#define PXEBC_PRIVATE_DATA_SIGNATURE EFI_SIGNATURE_32 ('P', 'X', 'E', 'P')
|
||||||
#define PXEBC_MTFTP_TIMEOUT 4
|
#define PXEBC_MTFTP_TIMEOUT 4
|
||||||
#define PXEBC_MTFTP_RETRIES 6
|
#define PXEBC_MTFTP_RETRIES 6
|
||||||
|
|
||||||
struct _PXEBC_PRIVATE_DATA {
|
struct _PXEBC_PRIVATE_DATA {
|
||||||
UINT32 Signature;
|
UINT32 Signature;
|
||||||
EFI_HANDLE Controller;
|
EFI_HANDLE Controller;
|
||||||
EFI_HANDLE Image;
|
EFI_HANDLE Image;
|
||||||
EFI_HANDLE ArpChild;
|
EFI_HANDLE ArpChild;
|
||||||
EFI_HANDLE Dhcp4Child;
|
EFI_HANDLE Dhcp4Child;
|
||||||
EFI_HANDLE Ip4Child;
|
EFI_HANDLE Ip4Child;
|
||||||
EFI_HANDLE Mtftp4Child;
|
EFI_HANDLE Mtftp4Child;
|
||||||
EFI_HANDLE Udp4ReadChild;
|
EFI_HANDLE Udp4ReadChild;
|
||||||
EFI_HANDLE Udp4WriteChild;
|
EFI_HANDLE Udp4WriteChild;
|
||||||
|
|
||||||
EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL *Nii;
|
EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL *Nii;
|
||||||
|
|
||||||
EFI_PXE_BASE_CODE_PROTOCOL PxeBc;
|
EFI_PXE_BASE_CODE_PROTOCOL PxeBc;
|
||||||
EFI_LOAD_FILE_PROTOCOL LoadFile;
|
EFI_LOAD_FILE_PROTOCOL LoadFile;
|
||||||
EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL LoadFileCallback;
|
EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL LoadFileCallback;
|
||||||
EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL *PxeBcCallback;
|
EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL *PxeBcCallback;
|
||||||
EFI_ARP_PROTOCOL *Arp;
|
EFI_ARP_PROTOCOL *Arp;
|
||||||
EFI_DHCP4_PROTOCOL *Dhcp4;
|
EFI_DHCP4_PROTOCOL *Dhcp4;
|
||||||
EFI_IP4_PROTOCOL *Ip4;
|
EFI_IP4_PROTOCOL *Ip4;
|
||||||
EFI_IP4_CONFIG_DATA Ip4ConfigData;
|
EFI_IP4_CONFIG_DATA Ip4ConfigData;
|
||||||
EFI_MTFTP4_PROTOCOL *Mtftp4;
|
EFI_MTFTP4_PROTOCOL *Mtftp4;
|
||||||
EFI_UDP4_PROTOCOL *Udp4Read;
|
EFI_UDP4_PROTOCOL *Udp4Read;
|
||||||
EFI_UDP4_PROTOCOL *Udp4Write;
|
EFI_UDP4_PROTOCOL *Udp4Write;
|
||||||
UINT16 CurrentUdpSrcPort;
|
UINT16 CurrentUdpSrcPort;
|
||||||
EFI_UDP4_CONFIG_DATA Udp4CfgData;
|
EFI_UDP4_CONFIG_DATA Udp4CfgData;
|
||||||
|
|
||||||
|
|
||||||
EFI_PXE_BASE_CODE_MODE Mode;
|
EFI_PXE_BASE_CODE_MODE Mode;
|
||||||
EFI_PXE_BASE_CODE_FUNCTION Function;
|
EFI_PXE_BASE_CODE_FUNCTION Function;
|
||||||
|
|
||||||
CHAR8 *BootFileName;
|
CHAR8 *BootFileName;
|
||||||
|
|
||||||
EFI_IP_ADDRESS StationIp;
|
EFI_IP_ADDRESS StationIp;
|
||||||
EFI_IP_ADDRESS SubnetMask;
|
EFI_IP_ADDRESS SubnetMask;
|
||||||
EFI_IP_ADDRESS GatewayIp;
|
EFI_IP_ADDRESS GatewayIp;
|
||||||
EFI_IP_ADDRESS ServerIp;
|
EFI_IP_ADDRESS ServerIp;
|
||||||
BOOLEAN AddressIsOk;
|
BOOLEAN AddressIsOk;
|
||||||
|
|
||||||
UINTN FileSize;
|
UINTN FileSize;
|
||||||
|
|
||||||
UINT8 OptionBuffer[PXEBC_DHCP4_MAX_OPTION_SIZE];
|
UINT8 OptionBuffer[PXEBC_DHCP4_MAX_OPTION_SIZE];
|
||||||
EFI_DHCP4_PACKET SeedPacket;
|
EFI_DHCP4_PACKET SeedPacket;
|
||||||
EFI_MAC_ADDRESS Mac;
|
EFI_MAC_ADDRESS Mac;
|
||||||
UINT8 MacLen;
|
UINT8 MacLen;
|
||||||
|
|
||||||
BOOLEAN SortOffers;
|
BOOLEAN SortOffers;
|
||||||
BOOLEAN GotProxyOffer;
|
BOOLEAN GotProxyOffer;
|
||||||
UINT32 NumOffers;
|
UINT32 NumOffers;
|
||||||
UINT32 SelectedOffer;
|
UINT32 SelectedOffer;
|
||||||
UINT32 ProxyOfferType;
|
UINT32 ProxyOfferType;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Cached packets as complements of pxe mode data
|
// Cached packets as complements of pxe mode data
|
||||||
//
|
//
|
||||||
PXEBC_CACHED_DHCP4_PACKET ProxyOffer;
|
PXEBC_CACHED_DHCP4_PACKET ProxyOffer;
|
||||||
PXEBC_CACHED_DHCP4_PACKET Dhcp4Ack;
|
PXEBC_CACHED_DHCP4_PACKET Dhcp4Ack;
|
||||||
PXEBC_CACHED_DHCP4_PACKET PxeReply;
|
PXEBC_CACHED_DHCP4_PACKET PxeReply;
|
||||||
PXEBC_CACHED_DHCP4_PACKET Dhcp4Offers[PXEBC_MAX_OFFER_NUM];
|
PXEBC_CACHED_DHCP4_PACKET Dhcp4Offers[PXEBC_MAX_OFFER_NUM];
|
||||||
|
|
||||||
//
|
//
|
||||||
// Arrays for different types of offers:
|
// Arrays for different types of offers:
|
||||||
// ServerCount records the count of the servers we got the offers,
|
// ServerCount records the count of the servers we got the offers,
|
||||||
// OfferIndex records the index of the offer sent by the server indexed by ServerCount.
|
// OfferIndex records the index of the offer sent by the server indexed by ServerCount.
|
||||||
//
|
//
|
||||||
UINT32 ServerCount[DHCP4_PACKET_TYPE_MAX];
|
UINT32 ServerCount[DHCP4_PACKET_TYPE_MAX];
|
||||||
UINT32 OfferIndex[DHCP4_PACKET_TYPE_MAX][PXEBC_MAX_OFFER_NUM];
|
UINT32 OfferIndex[DHCP4_PACKET_TYPE_MAX][PXEBC_MAX_OFFER_NUM];
|
||||||
UINT32 BootpIndex;
|
UINT32 BootpIndex;
|
||||||
UINT32 ProxyIndex[DHCP4_PACKET_TYPE_MAX];
|
UINT32 ProxyIndex[DHCP4_PACKET_TYPE_MAX];
|
||||||
UINT32 BinlIndex[PXEBC_MAX_OFFER_NUM];
|
UINT32 BinlIndex[PXEBC_MAX_OFFER_NUM];
|
||||||
|
|
||||||
EFI_EVENT GetArpCacheEvent;
|
EFI_EVENT GetArpCacheEvent;
|
||||||
//
|
//
|
||||||
// token and event used to get ICMP error data from IP
|
// token and event used to get ICMP error data from IP
|
||||||
//
|
//
|
||||||
EFI_IP4_COMPLETION_TOKEN IcmpErrorRcvToken;
|
EFI_IP4_COMPLETION_TOKEN IcmpErrorRcvToken;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define PXEBC_PRIVATE_DATA_FROM_PXEBC(a) CR (a, PXEBC_PRIVATE_DATA, PxeBc, PXEBC_PRIVATE_DATA_SIGNATURE)
|
#define PXEBC_PRIVATE_DATA_FROM_PXEBC(a) CR (a, PXEBC_PRIVATE_DATA, PxeBc, PXEBC_PRIVATE_DATA_SIGNATURE)
|
||||||
|
|
||||||
#define PXEBC_PRIVATE_DATA_FROM_LOADFILE(a) CR (a, PXEBC_PRIVATE_DATA, LoadFile, PXEBC_PRIVATE_DATA_SIGNATURE)
|
#define PXEBC_PRIVATE_DATA_FROM_LOADFILE(a) CR (a, PXEBC_PRIVATE_DATA, LoadFile, PXEBC_PRIVATE_DATA_SIGNATURE)
|
||||||
|
|
||||||
#define PXEBC_PRIVATE_DATA_FROM_PXEBCCALLBACK(a) CR (a, PXEBC_PRIVATE_DATA, PxeBcCallback, PXEBC_PRIVATE_DATA_SIGNATURE)
|
#define PXEBC_PRIVATE_DATA_FROM_PXEBCCALLBACK(a) CR (a, PXEBC_PRIVATE_DATA, PxeBcCallback, PXEBC_PRIVATE_DATA_SIGNATURE)
|
||||||
|
|
||||||
extern EFI_PXE_BASE_CODE_PROTOCOL mPxeBcProtocolTemplate;
|
extern EFI_PXE_BASE_CODE_PROTOCOL mPxeBcProtocolTemplate;
|
||||||
extern EFI_LOAD_FILE_PROTOCOL mLoadFileProtocolTemplate;
|
extern EFI_LOAD_FILE_PROTOCOL mLoadFileProtocolTemplate;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,144 +1,144 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2007, Intel Corporation
|
Copyright (c) 2007, Intel Corporation
|
||||||
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
|
||||||
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:
|
Module Name:
|
||||||
|
|
||||||
PxeBcMtftp.h
|
PxeBcMtftp.h
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
|
|
||||||
Mtftp routines for PxeBc
|
Mtftp routines for PxeBc
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef __EFI_PXEBC_MTFTP_H__
|
#ifndef __EFI_PXEBC_MTFTP_H__
|
||||||
#define __EFI_PXEBC_MTFTP_H__
|
#define __EFI_PXEBC_MTFTP_H__
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
PXE_MTFTP_OPTION_BLKSIZE_INDEX,
|
PXE_MTFTP_OPTION_BLKSIZE_INDEX,
|
||||||
PXE_MTFTP_OPTION_TIMEOUT_INDEX,
|
PXE_MTFTP_OPTION_TIMEOUT_INDEX,
|
||||||
PXE_MTFTP_OPTION_TSIZE_INDEX,
|
PXE_MTFTP_OPTION_TSIZE_INDEX,
|
||||||
PXE_MTFTP_OPTION_MULTICAST_INDEX,
|
PXE_MTFTP_OPTION_MULTICAST_INDEX,
|
||||||
PXE_MTFTP_OPTION_MAXIMUM_INDEX
|
PXE_MTFTP_OPTION_MAXIMUM_INDEX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is to get size of a file by Tftp.
|
This function is to get size of a file by Tftp.
|
||||||
|
|
||||||
@param Private Pointer to PxeBc private data
|
@param Private Pointer to PxeBc private data
|
||||||
@param Config Pointer to Mtftp configuration data
|
@param Config Pointer to Mtftp configuration data
|
||||||
@param Filename Pointer to file name
|
@param Filename Pointer to file name
|
||||||
@param BlockSize Pointer to block size
|
@param BlockSize Pointer to block size
|
||||||
@param BufferSize Pointer to buffer size
|
@param BufferSize Pointer to buffer size
|
||||||
|
|
||||||
@return EFI_SUCCESS
|
@return EFI_SUCCESS
|
||||||
@return EFI_NOT_FOUND
|
@return EFI_NOT_FOUND
|
||||||
@return EFI_DEVICE_ERROR
|
@return EFI_DEVICE_ERROR
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PxeBcTftpGetFileSize (
|
PxeBcTftpGetFileSize (
|
||||||
IN PXEBC_PRIVATE_DATA *Private,
|
IN PXEBC_PRIVATE_DATA *Private,
|
||||||
IN EFI_MTFTP4_CONFIG_DATA *Config,
|
IN EFI_MTFTP4_CONFIG_DATA *Config,
|
||||||
IN UINT8 *Filename,
|
IN UINT8 *Filename,
|
||||||
IN UINTN *BlockSize,
|
IN UINTN *BlockSize,
|
||||||
IN OUT UINT64 *BufferSize
|
IN OUT UINT64 *BufferSize
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is to get data of a file by Tftp.
|
This function is to get data of a file by Tftp.
|
||||||
|
|
||||||
@param Private Pointer to PxeBc private data
|
@param Private Pointer to PxeBc private data
|
||||||
@param Config Pointer to Mtftp configuration data
|
@param Config Pointer to Mtftp configuration data
|
||||||
@param Filename Pointer to file name
|
@param Filename Pointer to file name
|
||||||
@param BlockSize Pointer to block size
|
@param BlockSize Pointer to block size
|
||||||
@param BufferPtr Pointer to buffer
|
@param BufferPtr Pointer to buffer
|
||||||
@param BufferSize Pointer to buffer size
|
@param BufferSize Pointer to buffer size
|
||||||
@param DontUseBuffer Indicate whether with a receive buffer
|
@param DontUseBuffer Indicate whether with a receive buffer
|
||||||
|
|
||||||
@return EFI_SUCCESS
|
@return EFI_SUCCESS
|
||||||
@return EFI_DEVICE_ERROR
|
@return EFI_DEVICE_ERROR
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PxeBcTftpReadFile (
|
PxeBcTftpReadFile (
|
||||||
IN PXEBC_PRIVATE_DATA *Private,
|
IN PXEBC_PRIVATE_DATA *Private,
|
||||||
IN EFI_MTFTP4_CONFIG_DATA *Config,
|
IN EFI_MTFTP4_CONFIG_DATA *Config,
|
||||||
IN UINT8 *Filename,
|
IN UINT8 *Filename,
|
||||||
IN UINTN *BlockSize,
|
IN UINTN *BlockSize,
|
||||||
IN UINT8 *BufferPtr,
|
IN UINT8 *BufferPtr,
|
||||||
IN OUT UINT64 *BufferSize,
|
IN OUT UINT64 *BufferSize,
|
||||||
IN BOOLEAN DontUseBuffer
|
IN BOOLEAN DontUseBuffer
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is put data of a file by Tftp.
|
This function is put data of a file by Tftp.
|
||||||
|
|
||||||
@param Private Pointer to PxeBc private data
|
@param Private Pointer to PxeBc private data
|
||||||
@param Config Pointer to Mtftp configuration data
|
@param Config Pointer to Mtftp configuration data
|
||||||
@param Filename Pointer to file name
|
@param Filename Pointer to file name
|
||||||
@param Overwrite Indicate whether with overwrite attribute
|
@param Overwrite Indicate whether with overwrite attribute
|
||||||
@param BlockSize Pointer to block size
|
@param BlockSize Pointer to block size
|
||||||
@param BufferPtr Pointer to buffer
|
@param BufferPtr Pointer to buffer
|
||||||
@param BufferSize Pointer to buffer size
|
@param BufferSize Pointer to buffer size
|
||||||
|
|
||||||
@return EFI_SUCCESS
|
@return EFI_SUCCESS
|
||||||
@return EFI_DEVICE_ERROR
|
@return EFI_DEVICE_ERROR
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PxeBcTftpWriteFile (
|
PxeBcTftpWriteFile (
|
||||||
IN PXEBC_PRIVATE_DATA *Private,
|
IN PXEBC_PRIVATE_DATA *Private,
|
||||||
IN EFI_MTFTP4_CONFIG_DATA *Config,
|
IN EFI_MTFTP4_CONFIG_DATA *Config,
|
||||||
IN UINT8 *Filename,
|
IN UINT8 *Filename,
|
||||||
IN BOOLEAN Overwrite,
|
IN BOOLEAN Overwrite,
|
||||||
IN UINTN *BlockSize,
|
IN UINTN *BlockSize,
|
||||||
IN UINT8 *BufferPtr,
|
IN UINT8 *BufferPtr,
|
||||||
IN OUT UINT64 *BufferSize
|
IN OUT UINT64 *BufferSize
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is to get data of a directory by Tftp.
|
This function is to get data of a directory by Tftp.
|
||||||
|
|
||||||
@param Private Pointer to PxeBc private data
|
@param Private Pointer to PxeBc private data
|
||||||
@param Config Pointer to Mtftp configuration data
|
@param Config Pointer to Mtftp configuration data
|
||||||
@param Filename Pointer to file name
|
@param Filename Pointer to file name
|
||||||
@param BlockSize Pointer to block size
|
@param BlockSize Pointer to block size
|
||||||
@param BufferPtr Pointer to buffer
|
@param BufferPtr Pointer to buffer
|
||||||
@param BufferSize Pointer to buffer size
|
@param BufferSize Pointer to buffer size
|
||||||
@param DontUseBuffer Indicate whether with a receive buffer
|
@param DontUseBuffer Indicate whether with a receive buffer
|
||||||
|
|
||||||
@return EFI_SUCCES
|
@return EFI_SUCCES
|
||||||
@return EFI_DEVICE_ERROR
|
@return EFI_DEVICE_ERROR
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PxeBcTftpReadDirectory (
|
PxeBcTftpReadDirectory (
|
||||||
IN PXEBC_PRIVATE_DATA *Private,
|
IN PXEBC_PRIVATE_DATA *Private,
|
||||||
IN EFI_MTFTP4_CONFIG_DATA *Config,
|
IN EFI_MTFTP4_CONFIG_DATA *Config,
|
||||||
IN UINT8 *Filename,
|
IN UINT8 *Filename,
|
||||||
IN UINTN *BlockSize,
|
IN UINTN *BlockSize,
|
||||||
IN UINT8 *BufferPtr,
|
IN UINT8 *BufferPtr,
|
||||||
IN OUT UINT64 *BufferSize,
|
IN OUT UINT64 *BufferSize,
|
||||||
IN BOOLEAN DontUseBuffer
|
IN BOOLEAN DontUseBuffer
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,98 +1,98 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2007 - 2008, Intel Corporation
|
Copyright (c) 2007 - 2008, Intel Corporation
|
||||||
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
|
||||||
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:
|
Module Name:
|
||||||
|
|
||||||
PxeBcSupport.h
|
PxeBcSupport.h
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
|
|
||||||
Support routines for PxeBc
|
Support routines for PxeBc
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef __EFI_PXEBC_SUPPORT_H__
|
#ifndef __EFI_PXEBC_SUPPORT_H__
|
||||||
#define __EFI_PXEBC_SUPPORT_H__
|
#define __EFI_PXEBC_SUPPORT_H__
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
GetSmbiosSystemGuidAndSerialNumber (
|
GetSmbiosSystemGuidAndSerialNumber (
|
||||||
IN EFI_GUID *SystemGuid,
|
IN EFI_GUID *SystemGuid,
|
||||||
OUT CHAR8 **SystemSerialNumber
|
OUT CHAR8 **SystemSerialNumber
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
GC_NOTO: Add function description
|
GC_NOTO: Add function description
|
||||||
|
|
||||||
@param Event GC_NOTO: add argument description
|
@param Event GC_NOTO: add argument description
|
||||||
@param Context GC_NOTO: add argument description
|
@param Context GC_NOTO: add argument description
|
||||||
|
|
||||||
@return GC_NOTO: add return values
|
@return GC_NOTO: add return values
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
PxeBcCommonNotify (
|
PxeBcCommonNotify (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PxeBcConfigureUdpWriteInstance (
|
PxeBcConfigureUdpWriteInstance (
|
||||||
IN EFI_UDP4_PROTOCOL *Udp4,
|
IN EFI_UDP4_PROTOCOL *Udp4,
|
||||||
IN EFI_IPv4_ADDRESS *StationIp,
|
IN EFI_IPv4_ADDRESS *StationIp,
|
||||||
IN EFI_IPv4_ADDRESS *SubnetMask,
|
IN EFI_IPv4_ADDRESS *SubnetMask,
|
||||||
IN EFI_IPv4_ADDRESS *Gateway,
|
IN EFI_IPv4_ADDRESS *Gateway,
|
||||||
IN OUT UINT16 *SrcPort
|
IN OUT UINT16 *SrcPort
|
||||||
);
|
);
|
||||||
VOID
|
VOID
|
||||||
CvtNum (
|
CvtNum (
|
||||||
IN UINTN Number,
|
IN UINTN Number,
|
||||||
IN UINT8 *Buffer,
|
IN UINT8 *Buffer,
|
||||||
IN INTN Length
|
IN INTN Length
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
GC_NOTO: Add function description
|
GC_NOTO: Add function description
|
||||||
|
|
||||||
@param Number GC_NOTO: add argument description
|
@param Number GC_NOTO: add argument description
|
||||||
@param BufferPtr GC_NOTO: add argument description
|
@param BufferPtr GC_NOTO: add argument description
|
||||||
|
|
||||||
@return GC_NOTO: add return values
|
@return GC_NOTO: add return values
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
UtoA10 (
|
UtoA10 (
|
||||||
UINTN Number,
|
UINTN Number,
|
||||||
CHAR8 *BufferPtr
|
CHAR8 *BufferPtr
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
GC_NOTO: Add function description
|
GC_NOTO: Add function description
|
||||||
|
|
||||||
@param BufferPtr GC_NOTO: add argument description
|
@param BufferPtr GC_NOTO: add argument description
|
||||||
|
|
||||||
@return GC_NOTO: add return values
|
@return GC_NOTO: add return values
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINT64
|
UINT64
|
||||||
AtoU64 (
|
AtoU64 (
|
||||||
UINT8 *BufferPtr
|
UINT8 *BufferPtr
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
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
|
||||||
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:
|
Module Name:
|
||||||
PxeArch.h
|
PxeArch.h
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
Defines PXE Arch type
|
Defines PXE Arch type
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _EFI_PXE_ARCH_H_
|
#ifndef _EFI_PXE_ARCH_H_
|
||||||
#define _EFI_PXE_ARCH_H_
|
#define _EFI_PXE_ARCH_H_
|
||||||
|
|
||||||
#define SYS_ARCH 0x7
|
#define SYS_ARCH 0x7
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user