1. Sync Tcp4 protocol definitions to match UEFI 2.1

2. Clean up codes.
3. Remove struct definition content for big-endian, because UEFI 2.1 declare only little-endian supported.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3714 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2007-08-27 07:02:05 +00:00
parent fa9f28be56
commit d01c093a58
9 changed files with 47 additions and 77 deletions

View File

@ -36,8 +36,6 @@ EFI_DRIVER_BINDING_PROTOCOL gPciVgaMiniPortDriverBinding = {
//
// Driver Entry Point
//
//@MT: EFI_DRIVER_ENTRY_POINT (PciVgaMiniPortDriverEntryPoint)
EFI_STATUS
EFIAPI
PciVgaMiniPortDriverEntryPoint (

View File

@ -1271,8 +1271,6 @@ EhcAsyncIsochronousTransfer (
return EFI_UNSUPPORTED;
}
//@MT: EFI_DRIVER_ENTRY_POINT (EhcDriverEntryPoint)
EFI_STATUS
EFIAPI
EhcDriverEntryPoint (

View File

@ -1828,8 +1828,6 @@ Uhci2AsyncIsochronousTransfer (
return EFI_UNSUPPORTED;
}
//@MT: EFI_DRIVER_ENTRY_POINT (UhciDriverEntryPoint)
EFI_STATUS
EFIAPI
UhciDriverEntryPoint (

View File

@ -113,8 +113,6 @@ EFI_DRIVER_BINDING_PROTOCOL gUsbKeyboardDriverBinding = {
NULL
};
//@MT: EFI_DRIVER_ENTRY_POINT (USBKeyboardDriverBindingEntryPoint)
EFI_STATUS
EFIAPI
USBKeyboardDriverBindingEntryPoint (

View File

@ -594,8 +594,6 @@ EFI_DRIVER_BINDING_PROTOCOL gUSBMassDriverBinding = {
NULL
};
//@MT: EFI_DRIVER_ENTRY_POINT (USBMassStorageEntryPoint)
EFI_STATUS
EFIAPI
USBMassStorageEntryPoint (

View File

@ -24,19 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <IndustryStandard/Usb.h>
//
// Driver Consumed Protocol Prototypes
//
//@MT:#include EFI_PROTOCOL_DEFINITION (DriverBinding)
//@MT:#include EFI_PROTOCOL_DEFINITION (UsbIo)
//
// Driver Produced Protocol Prototypes
//
//@MT:#include EFI_PROTOCOL_DEFINITION (SimplePointer)
//@MT:#include "UsbDxeLib.h"
//@MT:#include "hid.h"
#include "usbmouse.h"
#include "mousehid.h"
@ -147,8 +134,6 @@ UsbMouseReset (
//
// Driver start here
//
//@MT: EFI_DRIVER_ENTRY_POINT (USBMouseDriverBindingEntryPoint)
EFI_STATUS
EFIAPI
USBMouseDriverBindingEntryPoint (

View File

@ -115,7 +115,7 @@ pxe_receive (
//
// Issue UNDI command and check result.
//
DEBUG ((EFI_D_INFO, "\nsnp->undi.receive () "));
DEBUG ((EFI_D_NET, "\nsnp->undi.receive () "));
(*snp->issue_undi32_command) ((UINT64)(UINTN) &snp->cdb);
@ -125,7 +125,7 @@ pxe_receive (
case PXE_STATCODE_NO_DATA:
DEBUG (
(EFI_D_INFO,
(EFI_D_NET,
"\nsnp->undi.receive () %xh:%xh\n",
snp->cdb.StatFlags,
snp->cdb.StatCode)

View File

@ -83,13 +83,8 @@ typedef struct {
#pragma pack(1)
typedef struct {
#ifdef EFI_NET_LITTLE_ENDIAN
UINT8 HeaderLength:4;
UINT8 Version:4;
#else
UINT8 Version:4;
UINT8 HeaderLength:4;
#endif
UINT8 TypeOfService;
UINT16 TotalLength;
UINT16 Identification;

View File

@ -57,16 +57,16 @@ typedef struct {
} EFI_TCP4_ACCESS_POINT;
typedef struct {
UINTN ReceiveBufferSize;
UINTN SendBufferSize;
UINTN MaxSynBackLog;
UINTN ConnectionTimeout;
UINTN DataRetries;
UINTN FinTimeout;
UINTN TimeWaitTimeout;
UINTN KeepAliveProbes;
UINTN KeepAliveTime;
UINTN KeepAliveInterval;
UINT32 ReceiveBufferSize;
UINT32 SendBufferSize;
UINT32 MaxSynBackLog;
UINT32 ConnectionTimeout;
UINT32 DataRetries;
UINT32 FinTimeout;
UINT32 TimeWaitTimeout;
UINT32 KeepAliveProbes;
UINT32 KeepAliveTime;
UINT32 KeepAliveInterval;
BOOLEAN EnableNagle;
BOOLEAN EnableTimeStamp;
BOOLEAN EnableWindowScaling;
@ -121,22 +121,22 @@ typedef struct {
} EFI_TCP4_LISTEN_TOKEN;
typedef struct {
UINTN FragmentLength;
VOID *FragmentBuffer;
UINT32 FragmentLength;
VOID *FragmentBuffer;
} EFI_TCP4_FRAGMENT_DATA;
typedef struct {
BOOLEAN UrgentFlag;
IN OUT UINTN DataLength;
UINTN FragmentCount;
UINT32 DataLength;
UINT32 FragmentCount;
EFI_TCP4_FRAGMENT_DATA FragmentTable[1];
} EFI_TCP4_RECEIVE_DATA;
typedef struct {
BOOLEAN Push;
BOOLEAN Urgent;
UINTN DataLength;
UINTN FragmentCount;
UINT32 DataLength;
UINT32 FragmentCount;
EFI_TCP4_FRAGMENT_DATA FragmentTable[1];
} EFI_TCP4_TRANSMIT_DATA;