TianoCore EDK2 master
Loading...
Searching...
No Matches
FastbootTransportUsb.c File Reference

Go to the source code of this file.

Data Structures

struct  _FASTBOOT_USB_PACKET_LIST
 
struct  GET_CONFIG_DESCRIPTOR_RESPONSE
 

Macros

#define CONFIG_DESC_ATTRIBUTES   (BIT7 | BIT6)
 
#define MAX_PACKET_SIZE_BULK   512
 

Typedefs

typedef struct _FASTBOOT_USB_PACKET_LIST FASTBOOT_USB_PACKET_LIST
 

Functions

STATIC VOID DataReceived (IN UINTN Size, IN VOID *Buffer)
 
STATIC VOID DataSent (IN UINT8 EndpointIndex)
 
EFI_STATUS FastbootTransportUsbStart (EFI_EVENT ReceiveEvent)
 
EFI_STATUS FastbootTransportUsbStop (VOID)
 
EFI_STATUS FastbootTransportUsbSend (IN UINTN BufferSize, IN CONST VOID *Buffer, IN EFI_EVENT *FatalErrorEvent)
 
EFI_STATUS FastbootTransportUsbReceive (OUT UINTN *BufferSize, OUT VOID **Buffer)
 
EFI_STATUS FastbootTransportUsbEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC USB_DEVICE_PROTOCOLmUsbDevice
 
STATIC EFI_EVENT mReceiveEvent = NULL
 
STATIC LIST_ENTRY mPacketList
 
STATIC USB_DEVICE_DESCRIPTOR mDeviceDescriptor
 
STATIC GET_CONFIG_DESCRIPTOR_RESPONSE mGetConfigDescriptorResponse
 
STATIC FASTBOOT_TRANSPORT_PROTOCOL mTransportProtocol
 

Detailed Description

Copyright (c) 2014, ARM Ltd. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file FastbootTransportUsb.c.

Macro Definition Documentation

◆ CONFIG_DESC_ATTRIBUTES

#define CONFIG_DESC_ATTRIBUTES   (BIT7 | BIT6)

Definition at line 28 of file FastbootTransportUsb.c.

◆ MAX_PACKET_SIZE_BULK

#define MAX_PACKET_SIZE_BULK   512

Definition at line 30 of file FastbootTransportUsb.c.

Function Documentation

◆ DataReceived()

STATIC VOID DataReceived ( IN UINTN  Size,
IN VOID *  Buffer 
)

Definition at line 125 of file FastbootTransportUsb.c.

◆ DataSent()

STATIC VOID DataSent ( IN UINT8  EndpointIndex)

Definition at line 147 of file FastbootTransportUsb.c.

◆ FastbootTransportUsbEntryPoint()

EFI_STATUS FastbootTransportUsbEntryPoint ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Definition at line 251 of file FastbootTransportUsb.c.

◆ FastbootTransportUsbReceive()

EFI_STATUS FastbootTransportUsbReceive ( OUT UINTN BufferSize,
OUT VOID **  Buffer 
)

Definition at line 221 of file FastbootTransportUsb.c.

◆ FastbootTransportUsbSend()

EFI_STATUS FastbootTransportUsbSend ( IN UINTN  BufferSize,
IN CONST VOID *  Buffer,
IN EFI_EVENT FatalErrorEvent 
)

Definition at line 196 of file FastbootTransportUsb.c.

◆ FastbootTransportUsbStart()

EFI_STATUS FastbootTransportUsbStart ( EFI_EVENT  ReceiveEvent)

Definition at line 159 of file FastbootTransportUsb.c.

◆ FastbootTransportUsbStop()

EFI_STATUS FastbootTransportUsbStop ( VOID  )

Definition at line 182 of file FastbootTransportUsb.c.

Variable Documentation

◆ mDeviceDescriptor

STATIC USB_DEVICE_DESCRIPTOR mDeviceDescriptor
Initial value:
= {
USB_DESC_TYPE_DEVICE,
0x0200,
0xFF,
0,
0,
64,
FixedPcdGet32 (PcdAndroidFastbootUsbVendorId),
FixedPcdGet32 (PcdAndroidFastbootUsbProductId),
0,
0,
0,
0,
1
}
#define FixedPcdGet32(TokenName)
Definition: PcdLib.h:92

Definition at line 47 of file FastbootTransportUsb.c.

◆ mGetConfigDescriptorResponse

STATIC GET_CONFIG_DESCRIPTOR_RESPONSE mGetConfigDescriptorResponse

Definition at line 80 of file FastbootTransportUsb.c.

◆ mPacketList

STATIC LIST_ENTRY mPacketList

Definition at line 34 of file FastbootTransportUsb.c.

◆ mReceiveEvent

STATIC EFI_EVENT mReceiveEvent = NULL

Definition at line 33 of file FastbootTransportUsb.c.

◆ mTransportProtocol

STATIC FASTBOOT_TRANSPORT_PROTOCOL mTransportProtocol
Initial value:
= {
FastbootTransportUsbStart,
FastbootTransportUsbStop,
FastbootTransportUsbSend,
FastbootTransportUsbReceive
}

Definition at line 243 of file FastbootTransportUsb.c.

◆ mUsbDevice

Definition at line 24 of file FastbootTransportUsb.c.