TianoCore EDK2 master
|
#include "NvmExpressPei.h"
Go to the source code of this file.
The NvmExpressPei driver is used to manage non-volatile memory subsystem which follows NVM Express specification at PEI phase.
Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file NvmExpressPeiHci.c.
Get the page offset for specific NVME based memory.
[in] | BaseMemIndex | The Index of BaseMem (0-based). |
- | The page count for specific BaseMem Index |
Definition at line 126 of file NvmExpressPeiHci.c.
EFI_STATUS NvmeControllerInit | ( | IN PEI_NVME_CONTROLLER_PRIVATE_DATA * | Private | ) |
Initialize the Nvm Express controller.
[in] | Private | The pointer to the PEI_NVME_CONTROLLER_PRIVATE_DATA data structure. |
EFI_SUCCESS | The NVM Express Controller is initialized successfully. |
Others | A device error occurred while initializing the controller. |
Definition at line 553 of file NvmExpressPeiHci.c.
EFI_STATUS NvmeCreateIoCompletionQueue | ( | IN PEI_NVME_CONTROLLER_PRIVATE_DATA * | Private | ) |
Create IO completion queue.
[in] | Private | The pointer to the PEI_NVME_CONTROLLER_PRIVATE_DATA data structure. |
Definition at line 455 of file NvmExpressPeiHci.c.
EFI_STATUS NvmeCreateIoSubmissionQueue | ( | IN PEI_NVME_CONTROLLER_PRIVATE_DATA * | Private | ) |
Create IO submission queue.
[in] | Private | The pointer to the PEI_NVME_CONTROLLER_PRIVATE_DATA data structure. |
Definition at line 503 of file NvmExpressPeiHci.c.
EFI_STATUS NvmeDisableController | ( | IN PEI_NVME_CONTROLLER_PRIVATE_DATA * | Private | ) |
Disable the Nvm Express controller.
[in] | Private | The pointer to the PEI_NVME_CONTROLLER_PRIVATE_DATA data structure. |
Definition at line 220 of file NvmExpressPeiHci.c.
VOID NvmeDumpControllerData | ( | IN NVME_ADMIN_CONTROLLER_DATA * | ControllerData | ) |
Dump the Identify Controller data.
[in] | ControllerData | The pointer to the NVME_ADMIN_CONTROLLER_DATA data structure. |
Definition at line 418 of file NvmExpressPeiHci.c.
EFI_STATUS NvmeEnableController | ( | IN PEI_NVME_CONTROLLER_PRIVATE_DATA * | Private | ) |
Enable the Nvm Express controller.
[in] | Private | The pointer to the PEI_NVME_CONTROLLER_PRIVATE_DATA data structure. |
Definition at line 275 of file NvmExpressPeiHci.c.
VOID NvmeFreeDmaResource | ( | IN PEI_NVME_CONTROLLER_PRIVATE_DATA * | Private | ) |
Free the DMA resources allocated by an NVME controller.
[in] | Private | The pointer to the PEI_NVME_CONTROLLER_PRIVATE_DATA data structure. |
Definition at line 708 of file NvmExpressPeiHci.c.
EFI_STATUS NvmeIdentifyController | ( | IN PEI_NVME_CONTROLLER_PRIVATE_DATA * | Private, |
IN VOID * | Buffer | ||
) |
Get the Identify Controller data.
[in] | Private | The pointer to the PEI_NVME_CONTROLLER_PRIVATE_DATA data structure. |
[in] | Buffer | The Buffer used to store the Identify Controller data. |
Definition at line 320 of file NvmExpressPeiHci.c.
EFI_STATUS NvmeIdentifyNamespace | ( | IN PEI_NVME_CONTROLLER_PRIVATE_DATA * | Private, |
IN UINT32 | NamespaceId, | ||
IN VOID * | Buffer | ||
) |
Get specified identify namespace data.
[in] | Private | The pointer to the PEI_NVME_CONTROLLER_PRIVATE_DATA data structure. |
[in] | NamespaceId | The specified namespace identifier. |
[in] | Buffer | The buffer used to store the identify namespace data. |
Definition at line 373 of file NvmExpressPeiHci.c.
Transfer MMIO Data to memory.
[in,out] | MemBuffer | Destination: Memory address. |
[in] | MmioAddr | Source: MMIO address. |
[in] | Size | Size for read. |
EFI_SUCCESS | MMIO read sucessfully. |
Definition at line 24 of file NvmExpressPeiHci.c.
Transfer memory data to MMIO.
[in,out] | MmioAddr | Destination: MMIO address. |
[in] | MemBuffer | Source: Memory address. |
[in] | Size | Size for write. |
EFI_SUCCESS | MMIO write sucessfully. |
Definition at line 76 of file NvmExpressPeiHci.c.
EFI_STATUS NvmeWaitController | ( | IN PEI_NVME_CONTROLLER_PRIVATE_DATA * | Private, |
IN BOOLEAN | WaitReady | ||
) |
Wait for NVME controller status to be ready or not.
[in] | Private | The pointer to the PEI_NVME_CONTROLLER_PRIVATE_DATA data structure. |
[in] | WaitReady | Flag for waitting status ready or not. |
Definition at line 165 of file NvmExpressPeiHci.c.