summaryrefslogtreecommitdiff
path: root/Omap35xxPkg
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-01 17:08:41 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-01 17:08:41 +0000
commit16d88c2d20ccd9f8ea52967b578ece82174ea762 (patch)
tree396c179773cb020167359aee051b6831a03d2f47 /Omap35xxPkg
parent66f47f9fc00e3770d0502305387389c91e2025de (diff)
downloadedk2-platforms-16d88c2d20ccd9f8ea52967b578ece82174ea762.tar.xz
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
Diffstat (limited to 'Omap35xxPkg')
-rwxr-xr-xOmap35xxPkg/MmcHostDxe/MmcHostDxe.c35
1 files changed, 21 insertions, 14 deletions
diff --git a/Omap35xxPkg/MmcHostDxe/MmcHostDxe.c b/Omap35xxPkg/MmcHostDxe/MmcHostDxe.c
index 1435c95163..17ebf8d708 100755
--- a/Omap35xxPkg/MmcHostDxe/MmcHostDxe.c
+++ b/Omap35xxPkg/MmcHostDxe/MmcHostDxe.c
@@ -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,