Fix ICC build break.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6464 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2008-11-12 01:14:36 +00:00
parent 6f4ee195af
commit c6bc765fca
2 changed files with 9 additions and 6 deletions

View File

@ -148,7 +148,7 @@ BOOLEAN
// Notice the special cases that DHCP can configure the interface // Notice the special cases that DHCP can configure the interface
// with 0.0.0.0/0.0.0.0. // with 0.0.0.0/0.0.0.0.
// //
typedef struct _IP4_INTERFACE { struct _IP4_INTERFACE {
UINT32 Signature; UINT32 Signature;
LIST_ENTRY Link; LIST_ENTRY Link;
INTN RefCnt; INTN RefCnt;
@ -196,7 +196,7 @@ typedef struct _IP4_INTERFACE {
// //
LIST_ENTRY IpInstances; LIST_ENTRY IpInstances;
BOOLEAN PromiscRecv; BOOLEAN PromiscRecv;
} IP4_INTERFACE; };
IP4_INTERFACE * IP4_INTERFACE *
Ip4CreateInterface ( Ip4CreateInterface (

View File

@ -50,6 +50,8 @@ Abstract:
#include "Ip4Input.h" #include "Ip4Input.h"
#include "Ip4Output.h" #include "Ip4Output.h"
typedef enum { typedef enum {
IP4_PROTOCOL_SIGNATURE = EFI_SIGNATURE_32 ('I', 'P', '4', 'P'), IP4_PROTOCOL_SIGNATURE = EFI_SIGNATURE_32 ('I', 'P', '4', 'P'),
IP4_SERVICE_SIGNATURE = EFI_SIGNATURE_32 ('I', 'P', '4', 'S'), IP4_SERVICE_SIGNATURE = EFI_SIGNATURE_32 ('I', 'P', '4', 'S'),
@ -109,7 +111,8 @@ typedef struct {
EFI_IP4_RECEIVE_DATA RxData; EFI_IP4_RECEIVE_DATA RxData;
} IP4_RXDATA_WRAP; } IP4_RXDATA_WRAP;
typedef struct _IP4_PROTOCOL {
struct _IP4_PROTOCOL {
UINT32 Signature; UINT32 Signature;
EFI_IP4_PROTOCOL Ip4Proto; EFI_IP4_PROTOCOL Ip4Proto;
@ -148,9 +151,9 @@ typedef struct _IP4_PROTOCOL {
EFI_IP4_CONFIG_DATA ConfigData; EFI_IP4_CONFIG_DATA ConfigData;
} IP4_PROTOCOL; };
typedef struct _IP4_SERVICE { struct _IP4_SERVICE {
UINT32 Signature; UINT32 Signature;
EFI_SERVICE_BINDING_PROTOCOL ServiceBinding; EFI_SERVICE_BINDING_PROTOCOL ServiceBinding;
INTN State; INTN State;
@ -201,7 +204,7 @@ typedef struct _IP4_SERVICE {
// NIC this IP4_SERVICE works on. // NIC this IP4_SERVICE works on.
// //
CHAR16 *MacString; CHAR16 *MacString;
} IP4_SERVICE; };
#define IP4_INSTANCE_FROM_PROTOCOL(Ip4) \ #define IP4_INSTANCE_FROM_PROTOCOL(Ip4) \
CR ((Ip4), IP4_PROTOCOL, Ip4Proto, IP4_PROTOCOL_SIGNATURE) CR ((Ip4), IP4_PROTOCOL, Ip4Proto, IP4_PROTOCOL_SIGNATURE)