EmbeddedPkg/MmcDxe: Add 'This' pointer attribute to protocol function
This attribute allows the EFI_MMC_HOST_PROTOCOL interface to manage multiple instances in one driver. EmbeddedPkg/MmcDxe: Add Revision attribute to the EFI_MMC_HOST_PROTOCOL Note: The ARM PL180 and Omap35xx MMC host drivers has been updated. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12255 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -280,7 +280,7 @@ InitializeMMCHS (
|
||||
|
||||
BOOLEAN
|
||||
MMCIsCardPresent (
|
||||
VOID
|
||||
IN EFI_MMC_HOST_PROTOCOL *This
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
@@ -299,7 +299,7 @@ MMCIsCardPresent (
|
||||
|
||||
BOOLEAN
|
||||
MMCIsReadOnly (
|
||||
VOID
|
||||
IN EFI_MMC_HOST_PROTOCOL *This
|
||||
)
|
||||
{
|
||||
/* Note:
|
||||
@@ -318,7 +318,8 @@ EFI_GUID mPL180MciDevicePathGuid = EFI_CALLER_ID_GUID;
|
||||
|
||||
EFI_STATUS
|
||||
MMCBuildDevicePath (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL **DevicePath
|
||||
IN EFI_MMC_HOST_PROTOCOL *This,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL **DevicePath
|
||||
)
|
||||
{
|
||||
EFI_DEVICE_PATH_PROTOCOL *NewDevicePathNode;
|
||||
@@ -331,8 +332,9 @@ MMCBuildDevicePath (
|
||||
|
||||
EFI_STATUS
|
||||
MMCSendCommand (
|
||||
IN MMC_CMD MmcCmd,
|
||||
IN UINT32 Argument
|
||||
IN EFI_MMC_HOST_PROTOCOL *This,
|
||||
IN MMC_CMD MmcCmd,
|
||||
IN UINT32 Argument
|
||||
)
|
||||
{
|
||||
UINTN MmcStatus;
|
||||
@@ -403,7 +405,8 @@ MMCSendCommand (
|
||||
|
||||
EFI_STATUS
|
||||
MMCNotifyState (
|
||||
IN MMC_STATE State
|
||||
IN EFI_MMC_HOST_PROTOCOL *This,
|
||||
IN MMC_STATE State
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
@@ -526,8 +529,9 @@ MMCNotifyState (
|
||||
|
||||
EFI_STATUS
|
||||
MMCReceiveResponse (
|
||||
IN MMC_RESPONSE_TYPE Type,
|
||||
IN UINT32* Buffer
|
||||
IN EFI_MMC_HOST_PROTOCOL *This,
|
||||
IN MMC_RESPONSE_TYPE Type,
|
||||
IN UINT32* Buffer
|
||||
)
|
||||
{
|
||||
if (Buffer == NULL) {
|
||||
@@ -554,9 +558,10 @@ MMCReceiveResponse (
|
||||
|
||||
EFI_STATUS
|
||||
MMCReadBlockData (
|
||||
IN EFI_LBA Lba,
|
||||
IN UINTN Length,
|
||||
IN UINT32* Buffer
|
||||
IN EFI_MMC_HOST_PROTOCOL *This,
|
||||
IN EFI_LBA Lba,
|
||||
IN UINTN Length,
|
||||
IN UINT32* Buffer
|
||||
)
|
||||
{
|
||||
UINTN MmcStatus;
|
||||
@@ -595,9 +600,10 @@ MMCReadBlockData (
|
||||
|
||||
EFI_STATUS
|
||||
MMCWriteBlockData (
|
||||
IN EFI_LBA Lba,
|
||||
IN UINTN Length,
|
||||
IN UINT32* Buffer
|
||||
IN EFI_MMC_HOST_PROTOCOL *This,
|
||||
IN EFI_LBA Lba,
|
||||
IN UINTN Length,
|
||||
IN UINT32* Buffer
|
||||
)
|
||||
{
|
||||
UINTN MmcStatus;
|
||||
@@ -635,6 +641,7 @@ MMCWriteBlockData (
|
||||
}
|
||||
|
||||
EFI_MMC_HOST_PROTOCOL gMMCHost = {
|
||||
MMC_HOST_PROTOCOL_REVISION,
|
||||
MMCIsCardPresent,
|
||||
MMCIsReadOnly,
|
||||
MMCBuildDevicePath,
|
||||
|
Reference in New Issue
Block a user