TianoCore EDK2 master
Loading...
Searching...
No Matches
NvmExpressHci.h File Reference

Go to the source code of this file.

Macros

#define NVME_BAR   0
 
#define NVME_ASQ_BUF_OFFSET   EFI_PAGE_SIZE
 

Functions

EFI_STATUS NvmeControllerInit (IN NVME_CONTROLLER_PRIVATE_DATA *Private)
 
EFI_STATUS NvmeIdentifyController (IN NVME_CONTROLLER_PRIVATE_DATA *Private, IN VOID *Buffer)
 
EFI_STATUS NvmeIdentifyNamespace (IN NVME_CONTROLLER_PRIVATE_DATA *Private, IN UINT32 NamespaceId, IN VOID *Buffer)
 

Detailed Description

NvmExpressDxe driver is used to manage non-volatile memory subsystem which follows NVM Express specification.

(C) Copyright 2016 Hewlett Packard Enterprise Development LP
Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file NvmExpressHci.h.

Macro Definition Documentation

◆ NVME_ASQ_BUF_OFFSET

#define NVME_ASQ_BUF_OFFSET   EFI_PAGE_SIZE

Definition at line 19 of file NvmExpressHci.h.

◆ NVME_BAR

#define NVME_BAR   0

Definition at line 14 of file NvmExpressHci.h.

Function Documentation

◆ NvmeControllerInit()

EFI_STATUS NvmeControllerInit ( IN NVME_CONTROLLER_PRIVATE_DATA Private)

Initialize the Nvm Express controller.

Parameters
[in]PrivateThe pointer to the NVME_CONTROLLER_PRIVATE_DATA data structure.
Return values
EFI_SUCCESSThe NVM Express Controller is initialized successfully.
OthersA device error occurred while initializing the controller.

Definition at line 723 of file NvmExpressHci.c.

◆ NvmeIdentifyController()

EFI_STATUS NvmeIdentifyController ( IN NVME_CONTROLLER_PRIVATE_DATA Private,
IN VOID *  Buffer 
)

Get identify controller data.

Parameters
PrivateThe pointer to the NVME_CONTROLLER_PRIVATE_DATA data structure.
BufferThe buffer used to store the identify controller data.
Returns
EFI_SUCCESS Successfully get the identify controller data.
EFI_DEVICE_ERROR Fail to get the identify controller data.

Definition at line 472 of file NvmExpressHci.c.

◆ NvmeIdentifyNamespace()

EFI_STATUS NvmeIdentifyNamespace ( IN NVME_CONTROLLER_PRIVATE_DATA Private,
IN UINT32  NamespaceId,
IN VOID *  Buffer 
)

Get specified identify namespace data.

Parameters
PrivateThe pointer to the NVME_CONTROLLER_PRIVATE_DATA data structure.
NamespaceIdThe specified namespace identifier.
BufferThe buffer used to store the identify namespace data.
Returns
EFI_SUCCESS Successfully get the identify namespace data.
EFI_DEVICE_ERROR Fail to get the identify namespace data.

Helper function to simulate read.

Parameters
[in]PrivatePrivate Data.
[in]NamespaceIdName Space Id.
[in]BufferTransfer Buffer.

Definition at line 527 of file NvmExpressHci.c.