summaryrefslogtreecommitdiffstats
path: root/sys/dev/nvme/nvme.h
diff options
context:
space:
mode:
authorjimharris <jimharris@FreeBSD.org>2013-03-26 18:43:53 +0000
committerjimharris <jimharris@FreeBSD.org>2013-03-26 18:43:53 +0000
commita3af497c87192d7864d33b58a637530aaac4d1dc (patch)
treee7895b6a4c35bbcf77a8065abd85833c703fe678 /sys/dev/nvme/nvme.h
parente3ff62c98768bfe7a9c12d4af4b16ca3fe3295f8 (diff)
downloadFreeBSD-src-a3af497c87192d7864d33b58a637530aaac4d1dc.zip
FreeBSD-src-a3af497c87192d7864d33b58a637530aaac4d1dc.tar.gz
Create a generic nvme_ctrlr_cmd_get_log_page function, and change the
health information log page function to use it. Sponsored by: Intel
Diffstat (limited to 'sys/dev/nvme/nvme.h')
-rw-r--r--sys/dev/nvme/nvme.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h
index 9b7bc9e..a9d214e 100644
--- a/sys/dev/nvme/nvme.h
+++ b/sys/dev/nvme/nvme.h
@@ -713,6 +713,10 @@ void nvme_ctrlr_cmd_get_feature(struct nvme_controller *ctrlr,
uint8_t feature, uint32_t cdw11,
void *payload, uint32_t payload_size,
nvme_cb_fn_t cb_fn, void *cb_arg);
+void nvme_ctrlr_cmd_get_log_page(struct nvme_controller *ctrlr,
+ uint8_t log_page, uint32_t nsid,
+ void *payload, uint32_t payload_size,
+ nvme_cb_fn_t cb_fn, void *cb_arg);
/* NVM I/O functions */
int nvme_ns_cmd_write(struct nvme_namespace *ns, void *payload,
OpenPOWER on IntegriCloud