// 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
**/\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
**/\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
**/\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
**/\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
**/\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
**/\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
**/\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
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
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
**/\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
**/\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
**/\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
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
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
**/\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
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
**/\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