TianoCore EDK2 master
|
#include <Protocol/AndroidFastbootTransport.h>
#include <Protocol/Dhcp4.h>
#include <Protocol/Tcp4.h>
#include <Protocol/ServiceBinding.h>
#include <Protocol/SimpleTextOut.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PrintLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiDriverEntryPoint.h>
#include <Library/UefiRuntimeServicesTableLib.h>
Go to the source code of this file.
Data Structures | |
struct | _FASTBOOT_TCP_PACKET_LIST |
Macros | |
#define | IP4_ADDR_TO_STRING(IpAddr, IpAddrString) |
#define | RX_FRAGMENT_SIZE 2048 |
#define | NUM_RX_TOKENS 16 |
#define | TOKEN_NEXT(Index) (((Index) + 1) % NUM_RX_TOKENS) |
Typedefs | |
typedef struct _FASTBOOT_TCP_PACKET_LIST | FASTBOOT_TCP_PACKET_LIST |
Functions | |
STATIC VOID EFIAPI | DataReceived (IN EFI_EVENT Event, IN VOID *Context) |
STATIC EFI_STATUS | SubmitRecieveToken (VOID) |
STATIC VOID | ConnectionClosed (IN EFI_EVENT Event, IN VOID *Context) |
STATIC VOID | CloseReceiveEvents (VOID) |
STATIC VOID EFIAPI | ConnectionAccepted (IN EFI_EVENT Event, IN VOID *Context) |
EFI_STATUS | TcpFastbootTransportStart (EFI_EVENT ReceiveEvent) |
EFI_STATUS | TcpFastbootTransportStop (VOID) |
STATIC VOID | DataSent (EFI_EVENT Event, VOID *Context) |
EFI_STATUS | TcpFastbootTransportSend (IN UINTN BufferSize, IN CONST VOID *Buffer, IN EFI_EVENT *FatalErrorEvent) |
EFI_STATUS | TcpFastbootTransportReceive (OUT UINTN *BufferSize, OUT VOID **Buffer) |
EFI_STATUS | TcpFastbootTransportEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
#
#
# # #
Definition in file FastbootTransportTcp.c.
#define IP4_ADDR_TO_STRING | ( | IpAddr, | |
IpAddrString | |||
) |
Definition at line 25 of file FastbootTransportTcp.c.
#define NUM_RX_TOKENS 16 |
Definition at line 54 of file FastbootTransportTcp.c.
#define RX_FRAGMENT_SIZE 2048 |
Definition at line 40 of file FastbootTransportTcp.c.
#define TOKEN_NEXT | ( | Index | ) | (((Index) + 1) % NUM_RX_TOKENS) |
Definition at line 55 of file FastbootTransportTcp.c.
STATIC VOID CloseReceiveEvents | ( | VOID | ) |
Definition at line 149 of file FastbootTransportTcp.c.
Definition at line 233 of file FastbootTransportTcp.c.
Definition at line 126 of file FastbootTransportTcp.c.
Definition at line 166 of file FastbootTransportTcp.c.
Definition at line 543 of file FastbootTransportTcp.c.
STATIC EFI_STATUS SubmitRecieveToken | ( | VOID | ) |
Definition at line 90 of file FastbootTransportTcp.c.
EFI_STATUS TcpFastbootTransportEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Definition at line 640 of file FastbootTransportTcp.c.
EFI_STATUS TcpFastbootTransportReceive | ( | OUT UINTN * | BufferSize, |
OUT VOID ** | Buffer | ||
) |
Definition at line 605 of file FastbootTransportTcp.c.
EFI_STATUS TcpFastbootTransportSend | ( | IN UINTN | BufferSize, |
IN CONST VOID * | Buffer, | ||
IN EFI_EVENT * | FatalErrorEvent | ||
) |
Definition at line 560 of file FastbootTransportTcp.c.
EFI_STATUS TcpFastbootTransportStart | ( | EFI_EVENT | ReceiveEvent | ) |
Definition at line 294 of file FastbootTransportTcp.c.
EFI_STATUS TcpFastbootTransportStop | ( | VOID | ) |
Definition at line 468 of file FastbootTransportTcp.c.
STATIC EFI_TCP4_LISTEN_TOKEN mAcceptToken |
Definition at line 64 of file FastbootTransportTcp.c.
STATIC EFI_TCP4_CLOSE_TOKEN mCloseToken |
Definition at line 66 of file FastbootTransportTcp.c.
Definition at line 58 of file FastbootTransportTcp.c.
Definition at line 57 of file FastbootTransportTcp.c.
STATIC LIST_ENTRY mPacketListHead |
Definition at line 75 of file FastbootTransportTcp.c.
Definition at line 47 of file FastbootTransportTcp.c.
STATIC EFI_TCP4_IO_TOKEN mReceiveToken[NUM_RX_TOKENS] |
Definition at line 59 of file FastbootTransportTcp.c.
STATIC EFI_TCP4_RECEIVE_DATA mRxData[NUM_RX_TOKENS] |
Definition at line 60 of file FastbootTransportTcp.c.
STATIC EFI_TCP4_PROTOCOL* mTcpConnection |
Definition at line 44 of file FastbootTransportTcp.c.
STATIC EFI_HANDLE mTcpHandle = NULL |
Definition at line 50 of file FastbootTransportTcp.c.
STATIC EFI_TCP4_PROTOCOL* mTcpListener |
Definition at line 45 of file FastbootTransportTcp.c.
STATIC EFI_SERVICE_BINDING_PROTOCOL* mTcpServiceBinding |
Definition at line 49 of file FastbootTransportTcp.c.
STATIC EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL* mTextOut |
Definition at line 42 of file FastbootTransportTcp.c.
STATIC EFI_TCP4_IO_TOKEN mTransmitToken |
Definition at line 61 of file FastbootTransportTcp.c.
FASTBOOT_TRANSPORT_PROTOCOL mTransportProtocol |
Definition at line 632 of file FastbootTransportTcp.c.
STATIC EFI_TCP4_TRANSMIT_DATA mTxData |
Definition at line 62 of file FastbootTransportTcp.c.