]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Ppi/SdMmcHostController.h
MdeModulePkg/ResetSystemRuntimeDxe: Add platform filter and handler
[mirror_edk2.git] / MdeModulePkg / Include / Ppi / SdMmcHostController.h
CommitLineData
48555339
FT
1/** @file\r
2\r
3Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
4\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions\r
7of the BSD License which accompanies this distribution. The\r
8full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef _EDKII_PEI_SD_MMC_HOST_CONTROLLER_PPI_H_\r
17#define _EDKII_PEI_SD_MMC_HOST_CONTROLLER_PPI_H_\r
18\r
19///\r
20/// Global ID for the EDKII_SD_MMC_HOST_CONTROLLER_PPI.\r
21///\r
22#define EDKII_SD_MMC_HOST_CONTROLLER_PPI_GUID \\r
23 { \\r
24 0xb30dfeed, 0x947f, 0x4396, { 0xb1, 0x5a, 0xdf, 0xbd, 0xb9, 0x16, 0xdc, 0x24 } \\r
25 }\r
26\r
27///\r
28/// Forward declaration for the SD_MMC_HOST_CONTROLLER_PPI.\r
29///\r
30typedef struct _EDKII_SD_MMC_HOST_CONTROLLER_PPI EDKII_SD_MMC_HOST_CONTROLLER_PPI;\r
31\r
32/**\r
33 Get the MMIO base address of SD/MMC host controller.\r
34\r
35 @param[in] This The protocol instance pointer.\r
36 @param[in] ControllerId The ID of the SD/MMC host controller.\r
37 @param[in,out] MmioBar The pointer to store the array of available\r
38 SD/MMC host controller slot MMIO base addresses.\r
39 The entry number of the array is specified by BarNum.\r
40 @param[out] BarNum The pointer to store the supported bar number.\r
41\r
42 @retval EFI_SUCCESS The operation succeeds.\r
43 @retval EFI_INVALID_PARAMETER The parameters are invalid.\r
44\r
45**/\r
46typedef\r
47EFI_STATUS\r
48(EFIAPI *EDKII_SD_MMC_HC_GET_MMIO_BAR)(\r
49 IN EDKII_SD_MMC_HOST_CONTROLLER_PPI *This,\r
50 IN UINT8 ControllerId,\r
51 IN OUT UINTN **MmioBar,\r
52 OUT UINT8 *BarNum\r
53 );\r
54\r
55///\r
56/// This PPI contains a set of services to interact with the SD_MMC host controller.\r
57///\r
58struct _EDKII_SD_MMC_HOST_CONTROLLER_PPI {\r
59 EDKII_SD_MMC_HC_GET_MMIO_BAR GetSdMmcHcMmioBar;\r
60};\r
61\r
62extern EFI_GUID gEdkiiPeiSdMmcHostControllerPpiGuid;\r
63\r
64#endif\r