diff options
author | jimharris <jimharris@FreeBSD.org> | 2013-03-26 18:42:05 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2013-03-26 18:42:05 +0000 |
commit | e3ff62c98768bfe7a9c12d4af4b16ca3fe3295f8 (patch) | |
tree | 7752721efa422ea898b2e4cff243cbccb31ffdb2 /sys/dev | |
parent | 3af2a639e26237c58c97144dff22e8212a683d31 (diff) | |
download | FreeBSD-src-e3ff62c98768bfe7a9c12d4af4b16ca3fe3295f8.zip FreeBSD-src-e3ff62c98768bfe7a9c12d4af4b16ca3fe3295f8.tar.gz |
Expose the get/set features API to nvme consumers.
Sponsored by: Intel
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/nvme/nvme.h | 10 | ||||
-rw-r--r-- | sys/dev/nvme/nvme_private.h | 8 |
2 files changed, 10 insertions, 8 deletions
diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h index afdb004..9b7bc9e 100644 --- a/sys/dev/nvme/nvme.h +++ b/sys/dev/nvme/nvme.h @@ -704,6 +704,16 @@ enum nvme_namespace_flags { NVME_NS_FLUSH_SUPPORTED = 0x2, }; +/* Admin functions */ +void nvme_ctrlr_cmd_set_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_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); + /* NVM I/O functions */ int nvme_ns_cmd_write(struct nvme_namespace *ns, void *payload, uint64_t lba, uint32_t lba_count, nvme_cb_fn_t cb_fn, diff --git a/sys/dev/nvme/nvme_private.h b/sys/dev/nvme/nvme_private.h index b44fc62..97a936e 100644 --- a/sys/dev/nvme/nvme_private.h +++ b/sys/dev/nvme/nvme_private.h @@ -316,14 +316,6 @@ struct nvme_controller { void nvme_ns_test(struct nvme_namespace *ns, u_long cmd, caddr_t arg); -void nvme_ctrlr_cmd_set_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_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_identify_controller(struct nvme_controller *ctrlr, void *payload, nvme_cb_fn_t cb_fn, void *cb_arg); |