Remove the tailing ',' to ensure the code pass EBC's -Za option (Enforces strict conformance to the ANSI standard for C).

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5324 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2008-06-04 09:55:00 +00:00
parent d389c6f3fc
commit 552b252326
3 changed files with 603 additions and 603 deletions

File diff suppressed because it is too large Load Diff

View File

@ -16,10 +16,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#ifndef _UDP4IO_H_ #ifndef _UDP4IO_H_
#define _UDP4IO_H_ #define _UDP4IO_H_
#include <PiDxe.h> #include <PiDxe.h>
#include <Protocol/Udp4.h> #include <Protocol/Udp4.h>
#include <Library/UdpIoLib.h> #include <Library/UdpIoLib.h>
#include <Library/NetLib.h> #include <Library/NetLib.h>
@ -28,7 +28,7 @@ typedef struct _UDP_IO_PORT UDP_IO_PORT;
enum { enum {
UDP_IO_RX_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'R'), UDP_IO_RX_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'R'),
UDP_IO_TX_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'T'), UDP_IO_TX_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'T'),
UDP_IO_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'I'), UDP_IO_SIGNATURE = EFI_SIGNATURE_32 ('U', 'D', 'P', 'I')
}; };
typedef struct { typedef struct {
@ -124,18 +124,18 @@ BOOLEAN
IN VOID *Context IN VOID *Context
); );
/** /**
Create a UDP IO port to access the UDP service. It will Create a UDP IO port to access the UDP service. It will
create and configure a UDP child. create and configure a UDP child.
@param Controller The controller that has the UDP service binding @param Controller The controller that has the UDP service binding
protocol installed. protocol installed.
@param Image The image handle for the driver. @param Image The image handle for the driver.
@param Configure The function to configure the created UDP child @param Configure The function to configure the created UDP child
@param Context The opaque parameter for the Configure funtion. @param Context The opaque parameter for the Configure funtion.
@return A point to just created UDP IO port or NULL if failed. @return A point to just created UDP IO port or NULL if failed.
**/ **/
UDP_IO_PORT * UDP_IO_PORT *
EFIAPI EFIAPI
@ -146,14 +146,14 @@ UdpIoCreatePort (
IN VOID *Context IN VOID *Context
); );
/** /**
Free the UDP IO port and all its related resources including Free the UDP IO port and all its related resources including
all the transmitted packet. all the transmitted packet.
@param UdpIo The UDP IO port to free. @param UdpIo The UDP IO port to free.
@retval EFI_SUCCESS The UDP IO port is freed. @retval EFI_SUCCESS The UDP IO port is freed.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
@ -161,15 +161,15 @@ UdpIoFreePort (
IN UDP_IO_PORT *UdpIo IN UDP_IO_PORT *UdpIo
); );
/** /**
Clean up the UDP IO port. It will release all the transmitted Clean up the UDP IO port. It will release all the transmitted
datagrams and receive request. It will also configure NULL the datagrams and receive request. It will also configure NULL the
UDP child. UDP child.
@param UdpIo UDP IO port to clean up. @param UdpIo UDP IO port to clean up.
@return None @return None
**/ **/
VOID VOID
EFIAPI EFIAPI
@ -177,21 +177,21 @@ UdpIoCleanPort (
IN UDP_IO_PORT *UdpIo IN UDP_IO_PORT *UdpIo
); );
/** /**
Send a packet through the UDP IO port. Send a packet through the UDP IO port.
@param UdpIo The UDP IO Port to send the packet through @param UdpIo The UDP IO Port to send the packet through
@param Packet The packet to send @param Packet The packet to send
@param EndPoint The local and remote access point @param EndPoint The local and remote access point
@param Gateway The gateway to use @param Gateway The gateway to use
@param CallBack The call back function to call when packet is @param CallBack The call back function to call when packet is
transmitted or failed. transmitted or failed.
@param Context The opque parameter to the CallBack @param Context The opque parameter to the CallBack
@retval EFI_OUT_OF_RESOURCES Failed to allocate resource for the packet @retval EFI_OUT_OF_RESOURCES Failed to allocate resource for the packet
@retval EFI_SUCCESS The packet is successfully delivered to UDP for @retval EFI_SUCCESS The packet is successfully delivered to UDP for
transmission. transmission.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
@ -204,14 +204,14 @@ UdpIoSendDatagram (
IN VOID *Context IN VOID *Context
); );
/** /**
The selection function to cancel a single sent datagram. The selection function to cancel a single sent datagram.
@param Token The UDP TX token to test againist. @param Token The UDP TX token to test againist.
@param Context The context @param Context The context
@return TRUE if the packet is to be cancelled, otherwise FALSE. @return TRUE if the packet is to be cancelled, otherwise FALSE.
**/ **/
VOID VOID
EFIAPI EFIAPI
@ -220,20 +220,20 @@ UdpIoCancelSentDatagram (
IN NET_BUF *Packet IN NET_BUF *Packet
); );
/** /**
Issue a receive request to the UDP IO port. Issue a receive request to the UDP IO port.
@param UdpIo The UDP IO port to recieve the packet from. @param UdpIo The UDP IO port to recieve the packet from.
@param CallBack The call back function to execute when receive @param CallBack The call back function to execute when receive
finished. finished.
@param Context The opque context to the call back @param Context The opque context to the call back
@param HeadLen The lenght of the application's header @param HeadLen The lenght of the application's header
@retval EFI_ALREADY_STARTED There is already a pending receive request. Only @retval EFI_ALREADY_STARTED There is already a pending receive request. Only
one receive request is supported. one receive request is supported.
@retval EFI_OUT_OF_RESOURCES Failed to allocate some resource. @retval EFI_OUT_OF_RESOURCES Failed to allocate some resource.
@retval EFI_SUCCESS The receive request is issued successfully. @retval EFI_SUCCESS The receive request is issued successfully.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI

View File

@ -47,7 +47,7 @@ enum {
IP4_CONFIG_SOURCE_MAX, IP4_CONFIG_SOURCE_MAX,
IP4_NIC_NAME_LENGTH = 64, IP4_NIC_NAME_LENGTH = 64,
MAX_IP4_CONFIG_IN_VARIABLE = 16, MAX_IP4_CONFIG_IN_VARIABLE = 16
}; };
// //