nvme: add spdk_nvme_ctrlr_get_regs_cc
Expose the already existing nvme_ctrlr_get_cc as spdk_nvme_ctrlr_get_regs_cc, similar to spdk_nvme_ctrlr_get_regs_csts and spdk_nvme_strlr_get_regs_cap etc. Signed-off-by: Tomasz Bielecki <tomasz.bielecki@wdc.com> Change-Id: Ibfcf6fbe64dee3719f381184fb728ab6e4d52526 Signed-off-by: Tomasz Bielecki <tomasz.bielecki@wdc.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9220 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Krishna Kanth Reddy <krish.reddy@samsung.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
6d716c4705
commit
296ae15fd7
@ -1140,6 +1140,15 @@ const struct spdk_nvme_ctrlr_data *spdk_nvme_ctrlr_get_data(struct spdk_nvme_ctr
|
||||
*/
|
||||
union spdk_nvme_csts_register spdk_nvme_ctrlr_get_regs_csts(struct spdk_nvme_ctrlr *ctrlr);
|
||||
|
||||
/**
|
||||
* Get the NVMe controller CC (Configuration) register.
|
||||
*
|
||||
* \param ctrlr Opaque handle to NVMe controller.
|
||||
*
|
||||
* \return the NVMe controller CC (Configuration) register.
|
||||
*/
|
||||
union spdk_nvme_cc_register spdk_nvme_ctrlr_get_regs_cc(struct spdk_nvme_ctrlr *ctrlr);
|
||||
|
||||
/**
|
||||
* Get the NVMe controller CAP (Capabilities) register.
|
||||
*
|
||||
|
@ -3908,6 +3908,16 @@ union spdk_nvme_csts_register spdk_nvme_ctrlr_get_regs_csts(struct spdk_nvme_ctr
|
||||
return csts;
|
||||
}
|
||||
|
||||
union spdk_nvme_cc_register spdk_nvme_ctrlr_get_regs_cc(struct spdk_nvme_ctrlr *ctrlr)
|
||||
{
|
||||
union spdk_nvme_cc_register cc;
|
||||
|
||||
if (nvme_ctrlr_get_cc(ctrlr, &cc)) {
|
||||
cc.raw = SPDK_NVME_INVALID_REGISTER_VALUE;
|
||||
}
|
||||
return cc;
|
||||
}
|
||||
|
||||
union spdk_nvme_cap_register spdk_nvme_ctrlr_get_regs_cap(struct spdk_nvme_ctrlr *ctrlr)
|
||||
{
|
||||
return ctrlr->cap;
|
||||
|
@ -42,6 +42,7 @@
|
||||
spdk_nvme_ctrlr_is_failed;
|
||||
spdk_nvme_ctrlr_get_data;
|
||||
spdk_nvme_ctrlr_get_regs_csts;
|
||||
spdk_nvme_ctrlr_get_regs_cc;
|
||||
spdk_nvme_ctrlr_get_regs_cap;
|
||||
spdk_nvme_ctrlr_get_regs_vs;
|
||||
spdk_nvme_ctrlr_get_regs_cmbsz;
|
||||
|
Loading…
Reference in New Issue
Block a user