]>
Commit | Line | Data |
---|---|---|
0591696e FT |
1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r | |
4 | \r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions\r | |
7 | of the BSD License which accompanies this distribution. The\r | |
8 | full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef _EDKII_PEI_UFS_HOST_CONTROLLER_PPI_H_\r | |
17 | #define _EDKII_PEI_UFS_HOST_CONTROLLER_PPI_H_\r | |
18 | \r | |
19 | ///\r | |
20 | /// Global ID for the EDKII_UFS_HOST_CONTROLLER_PPI.\r | |
21 | ///\r | |
22 | #define EDKII_UFS_HOST_CONTROLLER_PPI_GUID \\r | |
23 | { \\r | |
24 | 0xdc54b283, 0x1a77, 0x4cd6, { 0x83, 0xbb, 0xfd, 0xda, 0x46, 0x9a, 0x2e, 0xc6 } \\r | |
25 | }\r | |
26 | \r | |
27 | ///\r | |
28 | /// Forward declaration for the UFS_HOST_CONTROLLER_PPI.\r | |
29 | ///\r | |
30 | typedef struct _EDKII_UFS_HOST_CONTROLLER_PPI EDKII_UFS_HOST_CONTROLLER_PPI;\r | |
31 | \r | |
32 | /**\r | |
33 | Get the MMIO base address of UFS host controller.\r | |
34 | \r | |
35 | @param[in] This The protocol instance pointer.\r | |
36 | @param[in] ControllerId The ID of the UFS host controller.\r | |
37 | @param[out] MmioBar Pointer to the UFS host controller MMIO base address.\r | |
38 | \r | |
39 | @retval EFI_SUCCESS The operation succeeds.\r | |
40 | @retval EFI_INVALID_PARAMETER The parameters are invalid.\r | |
41 | \r | |
42 | **/\r | |
43 | typedef\r | |
44 | EFI_STATUS\r | |
45 | (EFIAPI *EDKII_UFS_HC_GET_MMIO_BAR)(\r | |
46 | IN EDKII_UFS_HOST_CONTROLLER_PPI *This,\r | |
47 | IN UINT8 ControllerId,\r | |
48 | OUT UINTN *MmioBar\r | |
49 | );\r | |
50 | \r | |
51 | ///\r | |
52 | /// This PPI contains a set of services to interact with the UFS host controller.\r | |
53 | ///\r | |
54 | struct _EDKII_UFS_HOST_CONTROLLER_PPI {\r | |
55 | EDKII_UFS_HC_GET_MMIO_BAR GetUfsHcMmioBar;\r | |
56 | };\r | |
57 | \r | |
58 | extern EFI_GUID gEdkiiPeiUfsHostControllerPpiGuid;\r | |
59 | \r | |
60 | #endif\r |