TianoCore EDK2 master
|
#include "AndroidFastbootApp.h"
#include <Protocol/AndroidFastbootTransport.h>
#include <Protocol/AndroidFastbootPlatform.h>
#include <Protocol/SimpleTextOut.h>
#include <Protocol/SimpleTextIn.h>
#include <Library/PcdLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiApplicationEntryPoint.h>
#include <Library/PrintLib.h>
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_PROTOCOL * | mTransport |
STATIC FASTBOOT_PLATFORM_PROTOCOL * | mPlatform |
STATIC EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | mTextOut |
STATIC ANDROID_FASTBOOT_STATE | mState = ExpectCmdState |
STATIC UINT64 | mNumDataBytes |
STATIC UINT64 | mBytesReceivedSoFar |
STATIC UINT8 * | mDataBuffer = NULL |
STATIC EFI_EVENT | mFinishedEvent |
STATIC EFI_EVENT | mFatalSendErrorEvent |
Copyright (c) 2013-2014, ARM Ltd. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file AndroidFastbootApp.c.
#define FASTBOOT_COMMAND_MAX_LENGTH 64 |
Definition at line 65 of file AndroidFastbootApp.c.
#define FASTBOOT_STRING_MAX_LENGTH 256 |
Definition at line 64 of file AndroidFastbootApp.c.
#define IS_LOWERCASE_ASCII | ( | Char | ) | (Char >= 'a' && Char <= 'z') |
Definition at line 62 of file AndroidFastbootApp.c.
#define MATCH_CMD_LITERAL | ( | Cmd, | |
Buf | |||
) | !AsciiStrnCmp (Cmd, Buf, sizeof (Cmd) - 1) |
Definition at line 60 of file AndroidFastbootApp.c.
#define SEND_LITERAL | ( | Str | ) |
Definition at line 55 of file AndroidFastbootApp.c.
enum ANDROID_FASTBOOT_STATE |
Definition at line 33 of file AndroidFastbootApp.c.
Definition at line 247 of file AndroidFastbootApp.c.
Definition at line 320 of file AndroidFastbootApp.c.
Definition at line 370 of file AndroidFastbootApp.c.
EFI_STATUS EFIAPI FastbootAppEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Definition at line 420 of file AndroidFastbootApp.c.
Definition at line 409 of file AndroidFastbootApp.c.
STATIC VOID HandleBoot | ( | VOID | ) |
Definition at line 199 of file AndroidFastbootApp.c.
Definition at line 92 of file AndroidFastbootApp.c.
Definition at line 177 of file AndroidFastbootApp.c.
Definition at line 140 of file AndroidFastbootApp.c.
Definition at line 69 of file AndroidFastbootApp.c.
Definition at line 227 of file AndroidFastbootApp.c.
STATIC UINT64 mBytesReceivedSoFar |
Definition at line 44 of file AndroidFastbootApp.c.
Definition at line 46 of file AndroidFastbootApp.c.
Definition at line 52 of file AndroidFastbootApp.c.
Definition at line 50 of file AndroidFastbootApp.c.
STATIC UINT64 mNumDataBytes |
Definition at line 42 of file AndroidFastbootApp.c.
STATIC FASTBOOT_PLATFORM_PROTOCOL* mPlatform |
Definition at line 29 of file AndroidFastbootApp.c.
STATIC ANDROID_FASTBOOT_STATE mState = ExpectCmdState |
Definition at line 39 of file AndroidFastbootApp.c.
STATIC EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL* mTextOut |
Definition at line 31 of file AndroidFastbootApp.c.
STATIC FASTBOOT_TRANSPORT_PROTOCOL* mTransport |
Definition at line 28 of file AndroidFastbootApp.c.