]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Ppi/SdMmcHostController.h
MdeModulePkg/SdMmc: Add EDKII SD/MMC stack
[mirror_edk2.git] / MdeModulePkg / Include / Ppi / SdMmcHostController.h
diff --git a/MdeModulePkg/Include/Ppi/SdMmcHostController.h b/MdeModulePkg/Include/Ppi/SdMmcHostController.h
new file mode 100644 (file)
index 0000000..85dee24
--- /dev/null
@@ -0,0 +1,64 @@
+/** @file\r
+\r
+Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions\r
+of the BSD License which accompanies this distribution.  The\r
+full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef _EDKII_PEI_SD_MMC_HOST_CONTROLLER_PPI_H_\r
+#define _EDKII_PEI_SD_MMC_HOST_CONTROLLER_PPI_H_\r
+\r
+///\r
+/// Global ID for the EDKII_SD_MMC_HOST_CONTROLLER_PPI.\r
+///\r
+#define EDKII_SD_MMC_HOST_CONTROLLER_PPI_GUID \\r
+  { \\r
+    0xb30dfeed, 0x947f, 0x4396, { 0xb1, 0x5a, 0xdf, 0xbd, 0xb9, 0x16, 0xdc, 0x24 } \\r
+  }\r
+\r
+///\r
+/// Forward declaration for the SD_MMC_HOST_CONTROLLER_PPI.\r
+///\r
+typedef struct _EDKII_SD_MMC_HOST_CONTROLLER_PPI  EDKII_SD_MMC_HOST_CONTROLLER_PPI;\r
+\r
+/**\r
+  Get the MMIO base address of SD/MMC host controller.\r
+\r
+  @param[in]     This            The protocol instance pointer.\r
+  @param[in]     ControllerId    The ID of the SD/MMC host controller.\r
+  @param[in,out] MmioBar         The pointer to store the array of available\r
+                                 SD/MMC host controller slot MMIO base addresses.\r
+                                 The entry number of the array is specified by BarNum.\r
+  @param[out]    BarNum          The pointer to store the supported bar number.\r
+\r
+  @retval EFI_SUCCESS            The operation succeeds.\r
+  @retval EFI_INVALID_PARAMETER  The parameters are invalid.\r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EDKII_SD_MMC_HC_GET_MMIO_BAR)(\r
+  IN     EDKII_SD_MMC_HOST_CONTROLLER_PPI *This,\r
+  IN     UINT8                            ControllerId,\r
+  IN OUT UINTN                            **MmioBar,\r
+     OUT UINT8                            *BarNum\r
+  );\r
+\r
+///\r
+/// This PPI contains a set of services to interact with the SD_MMC host controller.\r
+///\r
+struct _EDKII_SD_MMC_HOST_CONTROLLER_PPI {\r
+  EDKII_SD_MMC_HC_GET_MMIO_BAR               GetSdMmcHcMmioBar;\r
+};\r
+\r
+extern EFI_GUID gEdkiiPeiSdMmcHostControllerPpiGuid;\r
+\r
+#endif\r