]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Mtftp6Dxe/Mtftp6Support.h
NetworkPkg: Apply uncrustify changes
[mirror_edk2.git] / NetworkPkg / Mtftp6Dxe / Mtftp6Support.h
index 2b8a58f9de50d8bb7e121fe0f71982a0faeda358..33ab51a2666953f14dc3bea5d93894d08cc9f37d 100644 (file)
 // the holes are filled in, then the download or upload has completed.\r
 //\r
 typedef struct {\r
-  LIST_ENTRY                Link;\r
-  INTN                      Start;\r
-  INTN                      End;\r
-  INTN                      Round;\r
-  INTN                      Bound;\r
+  LIST_ENTRY    Link;\r
+  INTN          Start;\r
+  INTN          End;\r
+  INTN          Round;\r
+  INTN          Bound;\r
 } MTFTP6_BLOCK_RANGE;\r
 \r
-\r
 /**\r
   Initialize the block range for either RRQ or WRQ. RRQ and WRQ have\r
   different requirements for Start and End. For example, during startup,\r
@@ -46,12 +45,11 @@ typedef struct {
 **/\r
 EFI_STATUS\r
 Mtftp6InitBlockRange (\r
-  IN LIST_ENTRY             *Head,\r
-  IN UINT16                 Start,\r
-  IN UINT16                 End\r
+  IN LIST_ENTRY  *Head,\r
+  IN UINT16      Start,\r
+  IN UINT16      End\r
   );\r
 \r
-\r
 /**\r
   Get the first valid block number on the range list.\r
 \r
@@ -63,10 +61,9 @@ Mtftp6InitBlockRange (
 **/\r
 INTN\r
 Mtftp6GetNextBlockNum (\r
-  IN LIST_ENTRY             *Head\r
+  IN LIST_ENTRY  *Head\r
   );\r
 \r
-\r
 /**\r
   Set the last block number of the block range list. It\r
   removes all the blocks after the Last. MTFTP initialize the\r
@@ -80,11 +77,10 @@ Mtftp6GetNextBlockNum (
 **/\r
 VOID\r
 Mtftp6SetLastBlockNum (\r
-  IN LIST_ENTRY             *Head,\r
-  IN UINT16                 Last\r
+  IN LIST_ENTRY  *Head,\r
+  IN UINT16      Last\r
   );\r
 \r
-\r
 /**\r
   Remove the block number from the block range list.\r
 \r
@@ -100,13 +96,12 @@ Mtftp6SetLastBlockNum (
 **/\r
 EFI_STATUS\r
 Mtftp6RemoveBlockNum (\r
-  IN LIST_ENTRY             *Head,\r
-  IN UINT16                 Num,\r
-  IN BOOLEAN                Completed,\r
-  OUT UINT64                *BlockCounter\r
+  IN LIST_ENTRY  *Head,\r
+  IN UINT16      Num,\r
+  IN BOOLEAN     Completed,\r
+  OUT UINT64     *BlockCounter\r
   );\r
 \r
-\r
 /**\r
   Build and transmit the request packet for the Mtftp6 instance.\r
 \r
@@ -120,11 +115,10 @@ Mtftp6RemoveBlockNum (
 **/\r
 EFI_STATUS\r
 Mtftp6SendRequest (\r
-  IN MTFTP6_INSTANCE        *Instance,\r
-  IN UINT16                 Operation\r
+  IN MTFTP6_INSTANCE  *Instance,\r
+  IN UINT16           Operation\r
   );\r
 \r
-\r
 /**\r
   Build and send an error packet.\r
 \r
@@ -139,12 +133,11 @@ Mtftp6SendRequest (
 **/\r
 EFI_STATUS\r
 Mtftp6SendError (\r
-  IN MTFTP6_INSTANCE        *Instance,\r
-  IN UINT16                 ErrCode,\r
-  IN UINT8*                 ErrInfo\r
+  IN MTFTP6_INSTANCE  *Instance,\r
+  IN UINT16           ErrCode,\r
+  IN UINT8            *ErrInfo\r
   );\r
 \r
-\r
 /**\r
   Send the packet for the Mtftp6 instance.\r
 \r
@@ -157,11 +150,10 @@ Mtftp6SendError (
 **/\r
 EFI_STATUS\r
 Mtftp6TransmitPacket (\r
-  IN MTFTP6_INSTANCE        *Instance,\r
-  IN NET_BUF                *Packet\r
+  IN MTFTP6_INSTANCE  *Instance,\r
+  IN NET_BUF          *Packet\r
   );\r
 \r
-\r
 /**\r
   Check packet for GetInfo callback routine.\r
 \r
@@ -177,13 +169,12 @@ Mtftp6TransmitPacket (
 EFI_STATUS\r
 EFIAPI\r
 Mtftp6CheckPacket (\r
-  IN EFI_MTFTP6_PROTOCOL    *This,\r
-  IN EFI_MTFTP6_TOKEN       *Token,\r
-  IN UINT16                 PacketLen,\r
-  IN EFI_MTFTP6_PACKET      *Packet\r
+  IN EFI_MTFTP6_PROTOCOL  *This,\r
+  IN EFI_MTFTP6_TOKEN     *Token,\r
+  IN UINT16               PacketLen,\r
+  IN EFI_MTFTP6_PACKET    *Packet\r
   );\r
 \r
-\r
 /**\r
   The dummy configure routine for create a new Udp6 Io.\r
 \r
@@ -196,11 +187,10 @@ Mtftp6CheckPacket (
 EFI_STATUS\r
 EFIAPI\r
 Mtftp6ConfigDummyUdpIo (\r
-  IN UDP_IO                 *UdpIo,\r
-  IN VOID                   *Context\r
+  IN UDP_IO  *UdpIo,\r
+  IN VOID    *Context\r
   );\r
 \r
-\r
 /**\r
   The configure routine for the Mtftp6 instance to transmit/receive.\r
 \r
@@ -217,14 +207,13 @@ Mtftp6ConfigDummyUdpIo (
 **/\r
 EFI_STATUS\r
 Mtftp6ConfigUdpIo (\r
-  IN UDP_IO                 *UdpIo,\r
-  IN EFI_IPv6_ADDRESS       *ServerIp,\r
-  IN UINT16                 ServerPort,\r
-  IN EFI_IPv6_ADDRESS       *LocalIp,\r
-  IN UINT16                 LocalPort\r
+  IN UDP_IO            *UdpIo,\r
+  IN EFI_IPv6_ADDRESS  *ServerIp,\r
+  IN UINT16            ServerPort,\r
+  IN EFI_IPv6_ADDRESS  *LocalIp,\r
+  IN UINT16            LocalPort\r
   );\r
 \r
-\r
 /**\r
   Clean up the current Mtftp6 operation.\r
 \r
@@ -234,11 +223,10 @@ Mtftp6ConfigUdpIo (
 **/\r
 VOID\r
 Mtftp6OperationClean (\r
-  IN MTFTP6_INSTANCE        *Instance,\r
-  IN EFI_STATUS             Result\r
+  IN MTFTP6_INSTANCE  *Instance,\r
+  IN EFI_STATUS       Result\r
   );\r
 \r
-\r
 /**\r
   Start the Mtftp6 instance to perform the operation, such as read file,\r
   write file, and read directory.\r
@@ -255,12 +243,11 @@ Mtftp6OperationClean (
 **/\r
 EFI_STATUS\r
 Mtftp6OperationStart (\r
-  IN EFI_MTFTP6_PROTOCOL    *This,\r
-  IN EFI_MTFTP6_TOKEN       *Token,\r
-  IN UINT16                 OpCode\r
+  IN EFI_MTFTP6_PROTOCOL  *This,\r
+  IN EFI_MTFTP6_TOKEN     *Token,\r
+  IN UINT16               OpCode\r
   );\r
 \r
-\r
 /**\r
   The timer ticking routine for the Mtftp6 instance.\r
 \r
@@ -271,11 +258,10 @@ Mtftp6OperationStart (
 VOID\r
 EFIAPI\r
 Mtftp6OnTimerTick (\r
-  IN EFI_EVENT              Event,\r
-  IN VOID                   *Context\r
+  IN EFI_EVENT  Event,\r
+  IN VOID       *Context\r
   );\r
 \r
-\r
 /**\r
   The packet process callback for Mtftp6 upload.\r
 \r
@@ -288,13 +274,12 @@ Mtftp6OnTimerTick (
 VOID\r
 EFIAPI\r
 Mtftp6WrqInput (\r
-  IN NET_BUF                *UdpPacket,\r
-  IN UDP_END_POINT          *UdpEpt,\r
-  IN EFI_STATUS             IoStatus,\r
-  IN VOID                   *Context\r
+  IN NET_BUF        *UdpPacket,\r
+  IN UDP_END_POINT  *UdpEpt,\r
+  IN EFI_STATUS     IoStatus,\r
+  IN VOID           *Context\r
   );\r
 \r
-\r
 /**\r
   Start the Mtftp6 instance to upload. It will first init some states,\r
   then send the WRQ request packet, and start to receive the packet.\r
@@ -308,11 +293,10 @@ Mtftp6WrqInput (
 **/\r
 EFI_STATUS\r
 Mtftp6WrqStart (\r
-  IN MTFTP6_INSTANCE        *Instance,\r
-  IN UINT16                 Operation\r
+  IN MTFTP6_INSTANCE  *Instance,\r
+  IN UINT16           Operation\r
   );\r
 \r
-\r
 /**\r
   The packet process callback for Mtftp6 download.\r
 \r
@@ -325,13 +309,12 @@ Mtftp6WrqStart (
 VOID\r
 EFIAPI\r
 Mtftp6RrqInput (\r
-  IN NET_BUF                *UdpPacket,\r
-  IN UDP_END_POINT          *UdpEpt,\r
-  IN EFI_STATUS             IoStatus,\r
-  IN VOID                   *Context\r
+  IN NET_BUF        *UdpPacket,\r
+  IN UDP_END_POINT  *UdpEpt,\r
+  IN EFI_STATUS     IoStatus,\r
+  IN VOID           *Context\r
   );\r
 \r
-\r
 /**\r
   Start the Mtftp6 instance to download. It first initializes some\r
   of the internal states then builds and sends an RRQ request packet.\r
@@ -346,8 +329,8 @@ Mtftp6RrqInput (
 **/\r
 EFI_STATUS\r
 Mtftp6RrqStart (\r
-  IN MTFTP6_INSTANCE        *Instance,\r
-  IN UINT16                 Operation\r
+  IN MTFTP6_INSTANCE  *Instance,\r
+  IN UINT16           Operation\r
   );\r
 \r
 #endif\r