mirror of https://github.com/acidanthera/audk.git
EmbeddedPkg: Fix various typos
Fix various typos in EmbeddedPkg. Signed-off-by: Coeur <coeur@gmx.fr> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
parent
16f3544ddd
commit
c6a72cd794
|
@ -9,7 +9,7 @@
|
|||
#include "AndroidFastbootApp.h"
|
||||
|
||||
// Find the kernel and ramdisk in an Android boot.img.
|
||||
// return EFI_INVALID_PARAMTER if the boot.img is invalid (i.e. doesn't have the
|
||||
// return EFI_INVALID_PARAMETER if the boot.img is invalid (i.e. doesn't have the
|
||||
// right magic value),
|
||||
// return EFI_NOT_FOUND if there was no kernel in the boot.img.
|
||||
// Note that the Ramdisk is optional - *Ramdisk won't be touched if it isn't
|
||||
|
|
|
@ -300,7 +300,7 @@ AcceptCmd (
|
|||
} else if (IS_LOWERCASE_ASCII (Command[0])) {
|
||||
// Commands starting with lowercase ASCII characters are reserved for the
|
||||
// Fastboot protocol. If we don't recognise it, it's probably the future
|
||||
// and there are new commmands in the protocol.
|
||||
// and there are new commands in the protocol.
|
||||
// (By the way, the "oem" command mentioned above makes this reservation
|
||||
// redundant, but we handle it here to be spec-compliant)
|
||||
SEND_LITERAL ("FAILCommand not recognised. Check Fastboot version.");
|
||||
|
|
|
@ -224,7 +224,7 @@ OnReadyToBoot (
|
|||
@retval EFI_ALREADY_STARTED The driver already exists in system.
|
||||
@retval EFI_OUT_OF_RESOURCES Fail to execute entry point due to lack of
|
||||
resources.
|
||||
@retval EFI_SUCCES All the related protocols are installed on
|
||||
@retval EFI_SUCCESS All the related protocols are installed on
|
||||
the driver.
|
||||
|
||||
**/
|
||||
|
|
|
@ -92,7 +92,7 @@ InstallHiiPages (
|
|||
@retval EFI_ALREADY_STARTED The driver already exists in system.
|
||||
@retval EFI_OUT_OF_RESOURCES Fail to execute entry point due to lack of
|
||||
resources.
|
||||
@retval EFI_SUCCES All the related protocols are installed on
|
||||
@retval EFI_SUCCESS All the related protocols are installed on
|
||||
the driver.
|
||||
|
||||
**/
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
// TODO Make sure the controller isn't sending empty packets when it shouldn't
|
||||
// (check behaviour in cases when Buffer Length isn't explcitly set)
|
||||
// (check behaviour in cases when Buffer Length isn't explicitly set)
|
||||
|
||||
// ISP1582 Datasheet:
|
||||
// "Data transfers preceding the status stage must first be fully
|
||||
|
@ -570,7 +570,7 @@ Isp1761PeriphStart (
|
|||
mDataReceivedCallback = RxCallback;
|
||||
mDataSentCallback = TxCallback;
|
||||
|
||||
// Register a timer event so CheckInterupts gets called periodically
|
||||
// Register a timer event so CheckInterrupts gets called periodically
|
||||
Status = gBS->CreateEvent (
|
||||
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||
TPL_CALLBACK,
|
||||
|
|
|
@ -1439,7 +1439,7 @@ SnpReceive (
|
|||
return EFI_BUFFER_TOO_SMALL;
|
||||
}
|
||||
|
||||
// Set the amount of data to be transfered out of FIFO for THIS packet
|
||||
// Set the amount of data to be transferred out of FIFO for THIS packet
|
||||
// This can be used to trigger an interrupt, and status can be checked
|
||||
RxCfgValue = Lan9118MmioRead32 (LAN9118_RX_CFG);
|
||||
RxCfgValue &= ~(RXCFG_RX_DMA_CNT_MASK);
|
||||
|
|
|
@ -127,7 +127,7 @@
|
|||
#define RXSTATUS_CRC_ERROR BIT1 // Cyclic Redundancy Check Error
|
||||
#define RXSTATUS_DB BIT2 // Dribbling bit: Frame had non-integer multiple of 8bits
|
||||
#define RXSTATUS_MII_ERROR BIT3 // Receive error during interception
|
||||
#define RXSTATUS_RXW_TO BIT4 // Incomming frame larger than 2kb
|
||||
#define RXSTATUS_RXW_TO BIT4 // Incoming frame larger than 2kb
|
||||
#define RXSTATUS_FT BIT5 // 1: Ether type / 0: 802.3 type frame
|
||||
#define RXSTATUS_LCOLL BIT6 // Late collision detected
|
||||
#define RXSTATUS_FTL BIT7 // Frame longer than Ether type
|
||||
|
|
|
@ -427,7 +427,7 @@ Lan9118Initialize (
|
|||
if ((Lan9118MmioRead32 (LAN9118_E2P_CMD) & E2P_EPC_MAC_ADDRESS_LOADED) == 0) {
|
||||
DEBUG ((EFI_D_ERROR, "Warning: There was an error detecting EEPROM or loading the MAC Address.\n"));
|
||||
|
||||
// If we had an address before (set by StationAddess), continue to use it
|
||||
// If we had an address before (set by StationAddress), continue to use it
|
||||
if (CompareMem (&Snp->Mode->CurrentAddress, &mZeroMac, NET_ETHER_ADDR_LEN)) {
|
||||
Lan9118SetMacAddress (&Snp->Mode->CurrentAddress, Snp);
|
||||
} else {
|
||||
|
|
|
@ -441,7 +441,7 @@ PrintIoRegisters (
|
|||
|
||||
DEBUG ((DEBUG_ERROR, "\nLAN91x I/O Register Dump:\n"));
|
||||
|
||||
// Print currrent bank select register
|
||||
// Print current bank select register
|
||||
Value = MmioRead16 (LanDriver->IoBase + LAN91X_BANK_OFFSET);
|
||||
DEBUG ((DEBUG_ERROR, " BankSel: %d Bank Register %04x (%d)\n",
|
||||
LanDriver->BankSel, Value, Value & 0x0007));
|
||||
|
|
|
@ -173,7 +173,7 @@
|
|||
#define PTR_AUTO_INCR BIT14
|
||||
#define PTR_RCV BIT15
|
||||
|
||||
// Interupt Status and Mask Register Bits
|
||||
// Interrupt Status and Mask Register Bits
|
||||
#define IST_RCV BIT0
|
||||
#define IST_TX BIT1
|
||||
#define IST_TX_EMPTY BIT2
|
||||
|
|
|
@ -634,7 +634,7 @@ SiI3132GetDevice (
|
|||
return EFI_UNSUPPORTED;
|
||||
} else {
|
||||
*Port = ((SATA_DEVICE_PATH*)DevicePath)->Lun;
|
||||
// Return the first Sata Sevice as there should be only one directly connected
|
||||
// Return the first Sata Device as there should be only one directly connected
|
||||
*PortMultiplierPort = ((SATA_SI3132_DEVICE*)SataSiI3132Instance->Ports[*Port].Devices.ForwardLink)->Index;
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
|
|
@ -172,7 +172,7 @@
|
|||
# Values are in EFI Pages (4K). DXE Core will make sure that
|
||||
# at least this much of each type of memory can be allocated
|
||||
# from a single memory range. This way you only end up with
|
||||
# maximum of two fragements for each type in the memory map
|
||||
# maximum of two fragments for each type in the memory map
|
||||
# (the memory used, and the free memory that was prereserved
|
||||
# but not used).
|
||||
#
|
||||
|
|
|
@ -298,7 +298,7 @@ CHAR8
|
|||
/** ‘P n...=r...’
|
||||
Writes the new value of n-th register received into the input buffer to the n-th register
|
||||
@param SystemContext Register content at time of the exception
|
||||
@param InBuffer Ponter to the input buffer received from gdb server
|
||||
@param InBuffer Pointer to the input buffer received from gdb server
|
||||
**/
|
||||
VOID
|
||||
WriteNthRegister (
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
UEFI driver that implements a GDB stub
|
||||
|
||||
Note: Any code in the path of the Serial IO output can not call DEBUG as will
|
||||
will blow out the stack. Serial IO calls DEBUG, debug calls Serail IO, ...
|
||||
will blow out the stack. Serial IO calls DEBUG, debug calls Serial IO, ...
|
||||
|
||||
|
||||
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
|
@ -260,10 +260,10 @@ TransferFromMemToOutBufAndSend (
|
|||
Send a GDB Remote Serial Protocol Packet
|
||||
|
||||
$PacketData#checksum PacketData is passed in and this function adds the packet prefix '$',
|
||||
the packet teminating character '#' and the two digit checksum.
|
||||
the packet terminating character '#' and the two digit checksum.
|
||||
|
||||
If an ack '+' is not sent resend the packet, but timeout eventually so we don't end up
|
||||
in an infinit loop. This is so if you unplug the debugger code just keeps running
|
||||
in an infinite loop. This is so if you unplug the debugger code just keeps running
|
||||
|
||||
@param PacketData Payload data for the packet
|
||||
|
||||
|
@ -317,7 +317,7 @@ SendPacket (
|
|||
Receive a GDB Remote Serial Protocol Packet
|
||||
|
||||
$PacketData#checksum PacketData is passed in and this function adds the packet prefix '$',
|
||||
the packet teminating character '#' and the two digit checksum.
|
||||
the packet terminating character '#' and the two digit checksum.
|
||||
|
||||
If host re-starts sending a packet without ending the previous packet, only the last valid packet is processed.
|
||||
(In other words, if received packet is '$12345$12345$123456#checksum', only '$123456#checksum' will be processed.)
|
||||
|
@ -407,7 +407,7 @@ EmptyBuffer (
|
|||
Converts an 8-bit Hex Char into a INTN.
|
||||
|
||||
@param Char the hex character to be converted into UINTN
|
||||
@retval a INTN, from 0 to 15, that corressponds to Char
|
||||
@retval a INTN, from 0 to 15, that corresponds to Char
|
||||
-1 if Char is not a hex character
|
||||
**/
|
||||
INTN
|
||||
|
@ -596,7 +596,7 @@ ConvertEFItoGDBtype (
|
|||
|
||||
|
||||
/** "m addr,length"
|
||||
Find the Length of the area to read and the start addres. Finally, pass them to
|
||||
Find the Length of the area to read and the start address. Finally, pass them to
|
||||
another function, TransferFromMemToOutBufAndSend, that will read from that memory space and
|
||||
send it as a packet.
|
||||
**/
|
||||
|
@ -644,7 +644,7 @@ ReadFromMemory (
|
|||
|
||||
|
||||
/** "M addr,length :XX..."
|
||||
Find the Length of the area in bytes to write and the start addres. Finally, pass them to
|
||||
Find the Length of the area in bytes to write and the start address. Finally, pass them to
|
||||
another function, TransferFromInBufToMem, that will write to that memory space the info in
|
||||
the input buffer.
|
||||
**/
|
||||
|
@ -918,7 +918,7 @@ PeCoffLoaderGetDebuggerInfo (
|
|||
break;
|
||||
default:
|
||||
//
|
||||
// For unknow Machine field, use Magic in optional Header
|
||||
// For unknown Machine field, use Magic in optional Header
|
||||
//
|
||||
Magic = Hdr.Pe32->OptionalHeader.Magic;
|
||||
}
|
||||
|
@ -1088,7 +1088,7 @@ QxferLibrary (
|
|||
|
||||
|
||||
/**
|
||||
Exception Hanldler for GDB. It will be called for all exceptions
|
||||
Exception Handler for GDB. It will be called for all exceptions
|
||||
registered via the gExceptionType[] array.
|
||||
|
||||
@param ExceptionType Exception that is being processed
|
||||
|
@ -1157,7 +1157,7 @@ GdbExceptionHandler (
|
|||
case 'q':
|
||||
// General Query Packets
|
||||
if (AsciiStrnCmp (gInBuffer, "qSupported", 10) == 0) {
|
||||
// return what we currently support, we don't parse what gdb suports
|
||||
// return what we currently support, we don't parse what gdb supports
|
||||
AsciiSPrint (gOutBuffer, MAX_BUF_SIZE, "qXfer:libraries:read+;PacketSize=%d", MAX_BUF_SIZE);
|
||||
SendPacket (gOutBuffer);
|
||||
} else if (AsciiStrnCmp (gInBuffer, "qXfer:libraries:read::", 22) == 0) {
|
||||
|
|
|
@ -67,7 +67,7 @@ extern CONST CHAR8 mHexToStr[];
|
|||
#define GDB_EBADMEMADDRBUFSIZE 11 // the buffer that stores memory Address to be read from/written to is not the right size
|
||||
#define GDB_EBADMEMLENGBUFSIZE 12 // the buffer that stores Length is not the right size
|
||||
#define GDB_EBADMEMLENGTH 13 // Length, the given number of bytes to read or write, is not the right size
|
||||
#define GDB_EBADMEMDATA 14 // one of the bytes or nibbles of the memory is leess than 0
|
||||
#define GDB_EBADMEMDATA 14 // one of the bytes or nibbles of the memory is less than 0
|
||||
#define GDB_EBADMEMDATASIZE 15 // the memory data, 'XX..', is too short or too long
|
||||
#define GDB_EBADBUFSIZE 21 // the buffer created is not the correct size
|
||||
#define GDB_EINVALIDARG 31 // argument is invalid
|
||||
|
@ -99,7 +99,7 @@ extern CONST CHAR8 mHexToStr[];
|
|||
|
||||
typedef struct {
|
||||
VENDOR_DEVICE_PATH VendorDevice;
|
||||
UINT32 Index; // Suport more than one
|
||||
UINT32 Index; // Support more than one
|
||||
EFI_DEVICE_PATH_PROTOCOL End;
|
||||
} GDB_SERIAL_DEVICE_PATH;
|
||||
|
||||
|
@ -210,8 +210,8 @@ extern BOOLEAN gCtrlCBreakFlag;
|
|||
|
||||
//
|
||||
// If the periodic callback is called while we are processing an F packet we need
|
||||
// to let the callback know to not read from the serail stream as it could steal
|
||||
// characters from the F reponse packet
|
||||
// to let the callback know to not read from the serial stream as it could steal
|
||||
// characters from the F response packet
|
||||
//
|
||||
extern BOOLEAN gProcessingFPacket;
|
||||
|
||||
|
@ -296,7 +296,7 @@ EmptyBuffer (
|
|||
Converts an 8-bit Hex Char into a INTN.
|
||||
|
||||
@param Char - the hex character to be converted into UINTN
|
||||
@retval a INTN, from 0 to 15, that corressponds to Char
|
||||
@retval a INTN, from 0 to 15, that corresponds to Char
|
||||
-1 if Char is not a hex character
|
||||
**/
|
||||
INTN
|
||||
|
@ -384,7 +384,7 @@ WriteGeneralRegisters (
|
|||
|
||||
|
||||
/** ‘m addr,length ’
|
||||
Find the Length of the area to read and the start addres. Finally, pass them to
|
||||
Find the Length of the area to read and the start address. Finally, pass them to
|
||||
another function, TransferFromMemToOutBufAndSend, that will read from that memory space and
|
||||
send it as a packet.
|
||||
|
||||
|
@ -397,7 +397,7 @@ ReadFromMemory (
|
|||
|
||||
|
||||
/** ‘M addr,length :XX...’
|
||||
Find the Length of the area in bytes to write and the start addres. Finally, pass them to
|
||||
Find the Length of the area in bytes to write and the start address. Finally, pass them to
|
||||
another function, TransferFromInBufToMem, that will write to that memory space the info in
|
||||
the input buffer.
|
||||
|
||||
|
@ -499,7 +499,7 @@ RemoveBreakPoint(
|
|||
|
||||
|
||||
/**
|
||||
Exception Hanldler for GDB. It will be called for all exceptions
|
||||
Exception Handler for GDB. It will be called for all exceptions
|
||||
registered via the gExceptionType[] array.
|
||||
|
||||
@param ExceptionType Exception that is being processed
|
||||
|
@ -529,7 +529,7 @@ GdbPeriodicCallBack (
|
|||
|
||||
|
||||
/**
|
||||
Make two serail consoles: 1) StdIn and StdOut via GDB. 2) StdErr via GDB.
|
||||
Make two serial consoles: 1) StdIn and StdOut via GDB. 2) StdErr via GDB.
|
||||
|
||||
These console show up on the remote system running GDB
|
||||
|
||||
|
@ -545,10 +545,10 @@ GdbInitializeSerialConsole (
|
|||
Send a GDB Remote Serial Protocol Packet
|
||||
|
||||
$PacketData#checksum PacketData is passed in and this function adds the packet prefix '$',
|
||||
the packet teminating character '#' and the two digit checksum.
|
||||
the packet terminating character '#' and the two digit checksum.
|
||||
|
||||
If an ack '+' is not sent resend the packet, but timeout eventually so we don't end up
|
||||
in an infinit loop. This is so if you unplug the debugger code just keeps running
|
||||
in an infinite loop. This is so if you unplug the debugger code just keeps running
|
||||
|
||||
@param PacketData Payload data for the packet
|
||||
|
||||
|
@ -565,7 +565,7 @@ SendPacket (
|
|||
Receive a GDB Remote Serial Protocol Packet
|
||||
|
||||
$PacketData#checksum PacketData is passed in and this function adds the packet prefix '$',
|
||||
the packet teminating character '#' and the two digit checksum.
|
||||
the packet terminating character '#' and the two digit checksum.
|
||||
|
||||
If host re-starts sending a packet without ending the previous packet, only the last valid packet is processed.
|
||||
(In other words, if received packet is '$12345$12345$123456#checksum', only '$123456#checksum' will be processed.)
|
||||
|
|
|
@ -285,7 +285,7 @@ BasicWriteRegister (
|
|||
Writes the new value of n-th register received into the input buffer to the n-th register
|
||||
|
||||
@param SystemContext Register content at time of the exception
|
||||
@param InBuffer Ponter to the input buffer received from gdb server
|
||||
@param InBuffer Pointer to the input buffer received from gdb server
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
|
@ -667,7 +667,7 @@ EnableDebugRegister (
|
|||
|
||||
|
||||
/**
|
||||
Returns register number 0 - 3 for the maching debug register.
|
||||
Returns register number 0 - 3 for the matching debug register.
|
||||
This function compares incoming Address, Type, Length and
|
||||
if there is a match then it returns the appropriate register number.
|
||||
In case of mismatch, function returns EFI_NOT_FOUND message.
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/** @file
|
||||
Serial IO Abstraction for GDB stub. This allows an EFI consoles that shows up on the system
|
||||
running GDB. One consle for error information and another console for user input/output.
|
||||
running GDB. One console for error information and another console for user input/output.
|
||||
|
||||
Basic packet format is $packet-data#checksum. So every comand has 4 bytes of overhead: $,
|
||||
Basic packet format is $packet-data#checksum. So every command has 4 bytes of overhead: $,
|
||||
#, 0, 0. The 0 and 0 are the ascii characters for the checksum.
|
||||
|
||||
|
||||
|
@ -22,8 +22,8 @@ BOOLEAN gCtrlCBreakFlag = FALSE;
|
|||
|
||||
//
|
||||
// If the periodic callback is called while we are processing an F packet we need
|
||||
// to let the callback know to not read from the serail stream as it could steal
|
||||
// characters from the F reponse packet
|
||||
// to let the callback know to not read from the serial stream as it could steal
|
||||
// characters from the F response packet
|
||||
//
|
||||
BOOLEAN gProcessingFPacket = FALSE;
|
||||
|
||||
|
@ -32,7 +32,7 @@ BOOLEAN gProcessingFPacket = FALSE;
|
|||
|
||||
Currently a place holder, remove the ASSERT when it gets implemented.
|
||||
|
||||
@param ErrNo Error infomration from the F reply packet or other source
|
||||
@param ErrNo Error information from the F reply packet or other source
|
||||
|
||||
**/
|
||||
|
||||
|
@ -69,7 +69,7 @@ GdbParseFReplyPacket (
|
|||
INTN RetCode;
|
||||
|
||||
if (Packet[0] != 'F') {
|
||||
// A valid responce would be an F packet
|
||||
// A valid response would be an F packet
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -281,15 +281,15 @@ GdbSerialReset (
|
|||
|
||||
|
||||
/**
|
||||
Sets the baud rate, receive FIFO depth, transmit/receice time out, parity,
|
||||
Sets the baud rate, receive FIFO depth, transmit/receive time out, parity,
|
||||
data buts, and stop bits on a serial device.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param BaudRate The requested baud rate. A BaudRate value of 0 will use the the
|
||||
device's default interface speed.
|
||||
@param ReveiveFifoDepth The requested depth of the FIFO on the receive side of the
|
||||
@param ReceiveFifoDepth The requested depth of the FIFO on the receive side of the
|
||||
serial interface. A ReceiveFifoDepth value of 0 will use
|
||||
the device's dfault FIFO depth.
|
||||
the device's default FIFO depth.
|
||||
@param Timeout The requested time out for a single character in microseconds.
|
||||
This timeout applies to both the transmit and receive side of the
|
||||
interface. A Timeout value of 0 will use the device's default time
|
||||
|
@ -297,7 +297,7 @@ GdbSerialReset (
|
|||
@param Parity The type of parity to use on this serial device. A Parity value of
|
||||
DefaultParity will use the device's default parity value.
|
||||
@param DataBits The number of data bits to use on the serial device. A DataBits
|
||||
vaule of 0 will use the device's default data bit setting.
|
||||
value of 0 will use the device's default data bit setting.
|
||||
@param StopBits The number of stop bits to use on this serial device. A StopBits
|
||||
value of DefaultStopBits will use the device's default number of
|
||||
stop bits.
|
||||
|
@ -345,7 +345,7 @@ GdbSerialSetControl (
|
|||
|
||||
|
||||
/**
|
||||
Retrieves the status of thecontrol bits on a serial device
|
||||
Retrieves the status of the control bits on a serial device
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param Control A pointer to return the current Control signals from the serial device.
|
||||
|
@ -444,7 +444,7 @@ GdbSerialRead (
|
|||
|
||||
|
||||
//
|
||||
// Template used to initailize the GDB Serial IO protocols
|
||||
// Template used to initialize the GDB Serial IO protocols
|
||||
//
|
||||
GDB_SERIAL_DEV gdbSerialDevTemplate = {
|
||||
GDB_SERIAL_DEV_SIGNATURE,
|
||||
|
|
|
@ -254,7 +254,7 @@ BasicWriteRegister (
|
|||
Writes the new value of n-th register received into the input buffer to the n-th register
|
||||
|
||||
@param SystemContext Register content at time of the exception
|
||||
@param InBuffer Ponter to the input buffer received from gdb server
|
||||
@param InBuffer Pointer to the input buffer received from gdb server
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
|
@ -638,7 +638,7 @@ EnableDebugRegister (
|
|||
|
||||
|
||||
/**
|
||||
Returns register number 0 - 3 for the maching debug register.
|
||||
Returns register number 0 - 3 for the matching debug register.
|
||||
This function compares incoming Address, Type, Length and
|
||||
if there is a match then it returns the appropriate register number.
|
||||
In case of mismatch, function returns EFI_NOT_FOUND message.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
/**
|
||||
Setup all the hardware needed for the debug agents timer.
|
||||
|
||||
This function is used to set up debug enviroment. It may enable interrupts.
|
||||
This function is used to set up debug environment. It may enable interrupts.
|
||||
|
||||
**/
|
||||
VOID
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/** @file
|
||||
Library functions that perform file IO. Memory buffer, file system, and
|
||||
fimrware volume operations are supproted.
|
||||
firmware volume operations are supported.
|
||||
|
||||
Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
|
||||
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
|
@ -12,7 +12,7 @@
|
|||
current mounted device concept of current working directory concept implement
|
||||
by this library.
|
||||
|
||||
Device names are case insensative and only check the leading characters for
|
||||
Device names are case insensitive and only check the leading characters for
|
||||
unique matches. Thus the following are all the same:
|
||||
LoadFile0:
|
||||
l0:
|
||||
|
@ -24,7 +24,7 @@
|
|||
l1: - EFI LoadFile device one.
|
||||
B0: - EFI BlockIo zero.
|
||||
fs3: - EFI Simple File System device 3
|
||||
Fv2: - EFI Firmware VOlume device 2
|
||||
Fv2: - EFI Firmware Volume device 2
|
||||
1.2.3.4:name - TFTP IP and file name
|
||||
|
||||
**/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/** @file
|
||||
Basic serial IO abstaction for GDB
|
||||
Basic serial IO abstraction for GDB
|
||||
|
||||
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
|
||||
|
||||
/**
|
||||
Sets the baud rate, receive FIFO depth, transmit/receice time out, parity,
|
||||
Sets the baud rate, receive FIFO depth, transmit/receive time out, parity,
|
||||
data buts, and stop bits on a serial device. This call is optional as the serial
|
||||
port will be set up with defaults base on PCD values.
|
||||
|
||||
|
@ -22,13 +22,13 @@
|
|||
@param Parity The type of parity to use on this serial device. A Parity value of
|
||||
DefaultParity will use the device's default parity value.
|
||||
@param DataBits The number of data bits to use on the serial device. A DataBits
|
||||
vaule of 0 will use the device's default data bit setting.
|
||||
value of 0 will use the device's default data bit setting.
|
||||
@param StopBits The number of stop bits to use on this serial device. A StopBits
|
||||
value of DefaultStopBits will use the device's default number of
|
||||
stop bits.
|
||||
|
||||
@retval EFI_SUCCESS The device was configured.
|
||||
@retval EFI_DEVICE_ERROR The serial device could not be coonfigured.
|
||||
@retval EFI_DEVICE_ERROR The serial device could not be configured.
|
||||
|
||||
**/
|
||||
RETURN_STATUS
|
||||
|
|
|
@ -171,7 +171,7 @@ FfsProcessFvFile (
|
|||
Search through every FV until you find a file of type FileType
|
||||
|
||||
@param FileType File handle of a Fv type file.
|
||||
@param Volumehandle On succes Volume Handle of the match
|
||||
@param Volumehandle On success Volume Handle of the match
|
||||
@param FileHandle On success File Handle of the match
|
||||
|
||||
@retval EFI_NOT_FOUND FV image can't be found.
|
||||
|
@ -492,7 +492,7 @@ BuildFvHob (
|
|||
);
|
||||
|
||||
/**
|
||||
Builds a Firmware Volume HOB and a resrouce descriptor hob
|
||||
Builds a Firmware Volume HOB and a resource descriptor hob
|
||||
|
||||
This function builds a Firmware Volume HOB.
|
||||
It can only be invoked during PEI phase;
|
||||
|
|
|
@ -36,7 +36,7 @@ EFI_STATUS
|
|||
|
||||
/*
|
||||
To be called when Fastboot is finished and we aren't rebooting or booting an
|
||||
image. Undo initialisation, free resrouces.
|
||||
image. Undo initialisation, free resources.
|
||||
*/
|
||||
typedef
|
||||
VOID
|
||||
|
@ -49,7 +49,7 @@ VOID
|
|||
PartitionName, with the image pointed to by Buffer, whose size is BufferSize.
|
||||
|
||||
@param[in] PartitionName Null-terminated name of partition to write.
|
||||
@param[in] BufferSize Size of Buffer in byets.
|
||||
@param[in] BufferSize Size of Buffer in bytes.
|
||||
@param[in] Buffer Data to write to partition.
|
||||
|
||||
@retval EFI_NOT_FOUND No such partition.
|
||||
|
|
|
@ -131,7 +131,7 @@ EFI_STATUS
|
|||
);
|
||||
|
||||
/**
|
||||
Signal to the hardware that the End Of Intrrupt state
|
||||
Signal to the hardware that the End Of Interrupt state
|
||||
has been reached.
|
||||
|
||||
@param This Instance pointer for this protocol
|
||||
|
|
|
@ -162,13 +162,13 @@ RETURN_STATUS
|
|||
|
||||
|
||||
/**
|
||||
Reapply fixups on a fixed up PE32/PE32+ image to allow virutal calling at EFI
|
||||
Reapply fixups on a fixed up PE32/PE32+ image to allow virtual calling at EFI
|
||||
runtime.
|
||||
|
||||
This function reapplies relocation fixups to the PE/COFF image specified by ImageBase
|
||||
and ImageSize so the image will execute correctly when the PE/COFF image is mapped
|
||||
to the address specified by VirtualImageBase. RelocationData must be identical
|
||||
to the FiuxupData buffer from the PE_COFF_LOADER_IMAGE_CONTEXT structure
|
||||
to the FixupData buffer from the PE_COFF_LOADER_IMAGE_CONTEXT structure
|
||||
after this PE/COFF image was relocated with PeCoffLoaderRelocateImage().
|
||||
|
||||
Note that if the platform does not maintain coherency between the instruction cache(s) and the data
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
/**
|
||||
Setup all the hardware needed for the debug agents timer.
|
||||
|
||||
This function is used to set up debug enviroment. It may enable interrupts.
|
||||
This function is used to set up debug environment. It may enable interrupts.
|
||||
|
||||
**/
|
||||
VOID
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/** @file
|
||||
Basic serial IO abstaction for GDB
|
||||
Basic serial IO abstraction for GDB
|
||||
|
||||
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
|
||||
|
@ -50,7 +50,7 @@ GdbSerialLibDebugPortConstructor (
|
|||
|
||||
|
||||
/**
|
||||
Sets the baud rate, receive FIFO depth, transmit/receice time out, parity,
|
||||
Sets the baud rate, receive FIFO depth, transmit/receive time out, parity,
|
||||
data buts, and stop bits on a serial device. This call is optional as the serial
|
||||
port will be set up with defaults base on PCD values.
|
||||
|
||||
|
@ -59,13 +59,13 @@ GdbSerialLibDebugPortConstructor (
|
|||
@param Parity The type of parity to use on this serial device. A Parity value of
|
||||
DefaultParity will use the device's default parity value.
|
||||
@param DataBits The number of data bits to use on the serial device. A DataBits
|
||||
vaule of 0 will use the device's default data bit setting.
|
||||
value of 0 will use the device's default data bit setting.
|
||||
@param StopBits The number of stop bits to use on this serial device. A StopBits
|
||||
value of DefaultStopBits will use the device's default number of
|
||||
stop bits.
|
||||
|
||||
@retval EFI_SUCCESS The device was configured.
|
||||
@retval EFI_DEVICE_ERROR The serial device could not be coonfigured.
|
||||
@retval EFI_DEVICE_ERROR The serial device could not be configured.
|
||||
|
||||
**/
|
||||
RETURN_STATUS
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/** @file
|
||||
Basic serial IO abstaction for GDB
|
||||
Basic serial IO abstraction for GDB
|
||||
|
||||
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
|
||||
|
@ -80,7 +80,7 @@ GdbSerialLibConstructor (
|
|||
|
||||
|
||||
/**
|
||||
Sets the baud rate, receive FIFO depth, transmit/receice time out, parity,
|
||||
Sets the baud rate, receive FIFO depth, transmit/receive time out, parity,
|
||||
data buts, and stop bits on a serial device. This call is optional as the serial
|
||||
port will be set up with defaults base on PCD values.
|
||||
|
||||
|
@ -89,13 +89,13 @@ GdbSerialLibConstructor (
|
|||
@param Parity The type of parity to use on this serial device. A Parity value of
|
||||
DefaultParity will use the device's default parity value.
|
||||
@param DataBits The number of data bits to use on the serial device. A DataBits
|
||||
vaule of 0 will use the device's default data bit setting.
|
||||
value of 0 will use the device's default data bit setting.
|
||||
@param StopBits The number of stop bits to use on this serial device. A StopBits
|
||||
value of DefaultStopBits will use the device's default number of
|
||||
stop bits.
|
||||
|
||||
@retval EFI_SUCCESS The device was configured.
|
||||
@retval EFI_DEVICE_ERROR The serial device could not be coonfigured.
|
||||
@retval EFI_DEVICE_ERROR The serial device could not be configured.
|
||||
|
||||
**/
|
||||
RETURN_STATUS
|
||||
|
|
|
@ -812,7 +812,7 @@ BuildPeCoffLoaderHob (
|
|||
BuildGuidDataHob (&gPeCoffLoaderProtocolGuid, &Ptr, sizeof (VOID *));
|
||||
}
|
||||
|
||||
// May want to put this into a library so you only need the PCD setings if you are using the feature?
|
||||
// May want to put this into a library so you only need the PCD settings if you are using the feature?
|
||||
VOID
|
||||
BuildMemoryTypeInformationHob (
|
||||
VOID
|
||||
|
|
|
@ -732,7 +732,7 @@ FfsGetVolumeInfo (
|
|||
Search through every FV until you find a file of type FileType
|
||||
|
||||
@param FileType File handle of a Fv type file.
|
||||
@param Volumehandle On succes Volume Handle of the match
|
||||
@param Volumehandle On success Volume Handle of the match
|
||||
@param FileHandle On success File Handle of the match
|
||||
|
||||
@retval EFI_NOT_FOUND FV image can't be found.
|
||||
|
@ -857,7 +857,7 @@ FfsProcessFvFile (
|
|||
|
||||
|
||||
//
|
||||
// Inform HOB consumer phase, i.e. DXE core, the existance of this FV
|
||||
// Inform HOB consumer phase, i.e. DXE core, the existence of this FV
|
||||
//
|
||||
BuildFvHob ((EFI_PHYSICAL_ADDRESS) (UINTN) FvImageInfo.FvStart, FvImageInfo.FvSize);
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ AllocatePool (
|
|||
// Verify that there is sufficient memory to satisfy the allocation
|
||||
//
|
||||
if (AllocationSize > 0x10000) {
|
||||
// Please call AllcoatePages for big allocations
|
||||
// Please call AllocatePages for big allocations
|
||||
return 0;
|
||||
} else {
|
||||
|
||||
|
|
|
@ -135,7 +135,7 @@ LibRtcInitialize (
|
|||
)
|
||||
{
|
||||
//
|
||||
// Do some initialization if reqruied to turn on the RTC
|
||||
// Do some initialization if required to turn on the RTC
|
||||
//
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ LibRtcVirtualNotifyEvent (
|
|||
//
|
||||
// Only needed if you are going to support the OS calling RTC functions in virtual mode.
|
||||
// You will need to call EfiConvertPointer (). To convert any stored physical addresses
|
||||
// to virtual address. After the OS transistions to calling in virtual mode, all future
|
||||
// to virtual address. After the OS transitions to calling in virtual mode, all future
|
||||
// runtime calls will be made in virtual mode.
|
||||
//
|
||||
return;
|
||||
|
|
|
@ -297,7 +297,7 @@ ReadKeyStroke (
|
|||
SerialPortRead ((UINT8 *)&Char, 1);
|
||||
|
||||
//
|
||||
// Check for ESC sequence. This code is not techincally correct VT100 code.
|
||||
// Check for ESC sequence. This code is not technically correct VT100 code.
|
||||
// An illegal ESC sequence represents an ESC and the characters that follow.
|
||||
// This code will eat one or two chars after an escape. This is done to
|
||||
// prevent some complex FIFOing of the data. It is good enough to get
|
||||
|
|
|
@ -255,7 +255,7 @@ typedef struct {
|
|||
UINT8 MIN_PERF_W_8_52; // Minimum write performance for 8bit at 52MHz [210:210]
|
||||
UINT8 RESERVED_18; // Reserved [211:211]
|
||||
UINT32 SECTOR_COUNT; // Sector count [215:212]
|
||||
UINT8 SLEEP_NOTIFICATION_TIME; // Sleep notification timout [216:216]
|
||||
UINT8 SLEEP_NOTIFICATION_TIME; // Sleep notification timeout [216:216]
|
||||
UINT8 S_A_TIMEOUT; // Sleep/awake timeout [217:217]
|
||||
UINT8 PRODUCTION_STATE_AWARENESS_TIMEOUT; // Production state awareness timeout [218:218]
|
||||
UINT8 S_C_VCCQ; // Sleep current (VCCQ) [219:219]
|
||||
|
|
Loading…
Reference in New Issue