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

Go to the source code of this file.

Macros

#define SEND_LITERAL(Str)
 
#define MATCH_CMD_LITERAL(Cmd, Buf)   !AsciiStrnCmp (Cmd, Buf, sizeof (Cmd) - 1)
 
#define IS_LOWERCASE_ASCII(Char)   (Char >= 'a' && Char <= 'z')
 
#define FASTBOOT_STRING_MAX_LENGTH   256
 
#define FASTBOOT_COMMAND_MAX_LENGTH   64
 

Enumerations

enum  ANDROID_FASTBOOT_STATE { ExpectCmdState , ExpectDataState , FastbootStateMax }
 

Functions

STATIC VOID HandleGetVar (IN CHAR8 *CmdArg)
 
STATIC VOID HandleDownload (IN CHAR8 *NumBytesString)
 
STATIC VOID HandleFlash (IN CHAR8 *PartitionName)
 
STATIC VOID HandleErase (IN CHAR8 *PartitionName)
 
STATIC VOID HandleBoot (VOID)
 
STATIC VOID HandleOemCommand (IN CHAR8 *Command)
 
STATIC VOID AcceptCmd (IN UINTN Size, IN CONST CHAR8 *Data)
 
STATIC VOID AcceptData (IN UINTN Size, IN VOID *Data)
 
STATIC VOID DataReady (IN EFI_EVENT Event, IN VOID *Context)
 
STATIC VOID FatalErrorNotify (IN EFI_EVENT Event, IN VOID *Context)
 
EFI_STATUS EFIAPI FastbootAppEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC FASTBOOT_TRANSPORT_PROTOCOLmTransport
 
STATIC FASTBOOT_PLATFORM_PROTOCOLmPlatform
 
STATIC EFI_SIMPLE_TEXT_OUTPUT_PROTOCOLmTextOut
 
STATIC ANDROID_FASTBOOT_STATE mState = ExpectCmdState
 
STATIC UINT64 mNumDataBytes
 
STATIC UINT64 mBytesReceivedSoFar
 
STATIC UINT8 * mDataBuffer = NULL
 
STATIC EFI_EVENT mFinishedEvent
 
STATIC EFI_EVENT mFatalSendErrorEvent
 

Detailed Description

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

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

Definition in file AndroidFastbootApp.c.

Macro Definition Documentation

◆ FASTBOOT_COMMAND_MAX_LENGTH

#define FASTBOOT_COMMAND_MAX_LENGTH   64

Definition at line 65 of file AndroidFastbootApp.c.

◆ FASTBOOT_STRING_MAX_LENGTH

#define FASTBOOT_STRING_MAX_LENGTH   256

Definition at line 64 of file AndroidFastbootApp.c.

◆ IS_LOWERCASE_ASCII

#define IS_LOWERCASE_ASCII (   Char)    (Char >= 'a' && Char <= 'z')

Definition at line 62 of file AndroidFastbootApp.c.

◆ MATCH_CMD_LITERAL

#define MATCH_CMD_LITERAL (   Cmd,
  Buf 
)    !AsciiStrnCmp (Cmd, Buf, sizeof (Cmd) - 1)

Definition at line 60 of file AndroidFastbootApp.c.

◆ SEND_LITERAL

#define SEND_LITERAL (   Str)
Value:
mTransport->Send ( \
sizeof (Str) - 1, \
Str, \
&mFatalSendErrorEvent \
)

Definition at line 55 of file AndroidFastbootApp.c.

Enumeration Type Documentation

◆ ANDROID_FASTBOOT_STATE

enum ANDROID_FASTBOOT_STATE

Definition at line 33 of file AndroidFastbootApp.c.

Function Documentation

◆ AcceptCmd()

STATIC VOID AcceptCmd ( IN UINTN  Size,
IN CONST CHAR8 *  Data 
)

Definition at line 247 of file AndroidFastbootApp.c.

◆ AcceptData()

STATIC VOID AcceptData ( IN UINTN  Size,
IN VOID *  Data 
)

Definition at line 320 of file AndroidFastbootApp.c.

◆ DataReady()

STATIC VOID DataReady ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Definition at line 370 of file AndroidFastbootApp.c.

◆ FastbootAppEntryPoint()

EFI_STATUS EFIAPI FastbootAppEntryPoint ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Definition at line 420 of file AndroidFastbootApp.c.

◆ FatalErrorNotify()

STATIC VOID FatalErrorNotify ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Definition at line 409 of file AndroidFastbootApp.c.

◆ HandleBoot()

STATIC VOID HandleBoot ( VOID  )

Definition at line 199 of file AndroidFastbootApp.c.

◆ HandleDownload()

STATIC VOID HandleDownload ( IN CHAR8 *  NumBytesString)

Definition at line 92 of file AndroidFastbootApp.c.

◆ HandleErase()

STATIC VOID HandleErase ( IN CHAR8 *  PartitionName)

Definition at line 177 of file AndroidFastbootApp.c.

◆ HandleFlash()

STATIC VOID HandleFlash ( IN CHAR8 *  PartitionName)

Definition at line 140 of file AndroidFastbootApp.c.

◆ HandleGetVar()

STATIC VOID HandleGetVar ( IN CHAR8 *  CmdArg)

Definition at line 69 of file AndroidFastbootApp.c.

◆ HandleOemCommand()

STATIC VOID HandleOemCommand ( IN CHAR8 *  Command)

Definition at line 227 of file AndroidFastbootApp.c.

Variable Documentation

◆ mBytesReceivedSoFar

STATIC UINT64 mBytesReceivedSoFar

Definition at line 44 of file AndroidFastbootApp.c.

◆ mDataBuffer

STATIC UINT8* mDataBuffer = NULL

Definition at line 46 of file AndroidFastbootApp.c.

◆ mFatalSendErrorEvent

STATIC EFI_EVENT mFatalSendErrorEvent

Definition at line 52 of file AndroidFastbootApp.c.

◆ mFinishedEvent

STATIC EFI_EVENT mFinishedEvent

Definition at line 50 of file AndroidFastbootApp.c.

◆ mNumDataBytes

STATIC UINT64 mNumDataBytes

Definition at line 42 of file AndroidFastbootApp.c.

◆ mPlatform

Definition at line 29 of file AndroidFastbootApp.c.

◆ mState

STATIC ANDROID_FASTBOOT_STATE mState = ExpectCmdState

Definition at line 39 of file AndroidFastbootApp.c.

◆ mTextOut

Definition at line 31 of file AndroidFastbootApp.c.

◆ mTransport

Definition at line 28 of file AndroidFastbootApp.c.