3 Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
4 SPDX-License-Identifier: BSD-2-Clause-Patent
8 #ifndef _EDKII_NVM_EXPRESS_HOST_CONTROLLER_PPI_H_
9 #define _EDKII_NVM_EXPRESS_HOST_CONTROLLER_PPI_H_
11 #include <Protocol/DevicePath.h>
14 /// Global ID for the EDKII_NVM_EXPRESS_HOST_CONTROLLER_PPI.
16 #define EDKII_NVME_EXPRESS_HOST_CONTROLLER_PPI_GUID \
18 0xcae3aa63, 0x676f, 0x4da3, { 0xbd, 0x50, 0x6c, 0xc5, 0xed, 0xde, 0x9a, 0xad } \
22 // Forward declaration for the EDKII_NVM_EXPRESS_HOST_CONTROLLER_PPI.
24 typedef struct _EDKII_NVM_EXPRESS_HOST_CONTROLLER_PPI EDKII_NVM_EXPRESS_HOST_CONTROLLER_PPI
;
27 Get the MMIO base address of NVM Express host controller.
29 @param[in] This The PPI instance pointer.
30 @param[in] ControllerId The ID of the NVM Express host controller.
31 @param[out] MmioBar The MMIO base address of the controller.
33 @retval EFI_SUCCESS The operation succeeds.
34 @retval EFI_INVALID_PARAMETER The parameters are invalid.
35 @retval EFI_NOT_FOUND The specified NVM Express host controller not
41 (EFIAPI
*EDKII_NVM_EXPRESS_HC_GET_MMIO_BAR
) (
42 IN EDKII_NVM_EXPRESS_HOST_CONTROLLER_PPI
*This
,
43 IN UINT8 ControllerId
,
48 Get the device path of NVM Express host controller.
50 @param[in] This The PPI instance pointer.
51 @param[in] ControllerId The ID of the NVM Express host controller.
52 @param[out] DevicePathLength The length of the device path in bytes specified
54 @param[out] DevicePath The device path of NVM Express host controller.
55 This field re-uses EFI Device Path Protocol as
56 defined by Section 10.2 EFI Device Path Protocol
57 of UEFI 2.7 Specification.
59 @retval EFI_SUCCESS The operation succeeds.
60 @retval EFI_INVALID_PARAMETER The parameters are invalid.
61 @retval EFI_NOT_FOUND The specified NVM Express host controller not
63 @retval EFI_OUT_OF_RESOURCES The operation fails due to lack of resources.
68 (EFIAPI
*EDKII_NVM_EXPRESS_HC_GET_DEVICE_PATH
) (
69 IN EDKII_NVM_EXPRESS_HOST_CONTROLLER_PPI
*This
,
70 IN UINT8 ControllerId
,
71 OUT UINTN
*DevicePathLength
,
72 OUT EFI_DEVICE_PATH_PROTOCOL
**DevicePath
76 // This PPI contains a set of services to interact with the NVM Express host
79 struct _EDKII_NVM_EXPRESS_HOST_CONTROLLER_PPI
{
80 EDKII_NVM_EXPRESS_HC_GET_MMIO_BAR GetNvmeHcMmioBar
;
81 EDKII_NVM_EXPRESS_HC_GET_DEVICE_PATH GetNvmeHcDevicePath
;
84 extern EFI_GUID gEdkiiPeiNvmExpressHostControllerPpiGuid
;