summaryrefslogtreecommitdiffstats
path: root/sys/dev/nvme/nvme_private.h
diff options
context:
space:
mode:
authorjimharris <jimharris@FreeBSD.org>2013-03-26 21:19:26 +0000
committerjimharris <jimharris@FreeBSD.org>2013-03-26 21:19:26 +0000
commit63beb43e5f16f115775f2d402fc3e86562e0b4c9 (patch)
treea3bb512676e1c82c4106ff6762614a7385641cf1 /sys/dev/nvme/nvme_private.h
parentd207d40160104608ba5d1fca69fd5d55b6398022 (diff)
downloadFreeBSD-src-63beb43e5f16f115775f2d402fc3e86562e0b4c9.zip
FreeBSD-src-63beb43e5f16f115775f2d402fc3e86562e0b4c9.tar.gz
Remove the is_started flag from struct nvme_controller.
This flag was originally added to communicate to the sysctl code which oids should be built, but there are easier ways to do this. This needs to be cleaned up prior to adding new controller states - for example, controller failure. Sponsored by: Intel Reviewed by: carl
Diffstat (limited to 'sys/dev/nvme/nvme_private.h')
-rw-r--r--sys/dev/nvme/nvme_private.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/nvme/nvme_private.h b/sys/dev/nvme/nvme_private.h
index 4a02a1b..0dfa2f9 100644
--- a/sys/dev/nvme/nvme_private.h
+++ b/sys/dev/nvme/nvme_private.h
@@ -250,7 +250,6 @@ struct nvme_controller {
struct intr_config_hook config_hook;
uint32_t ns_identified;
uint32_t queues_created;
- uint32_t num_start_attempts;
struct task reset_task;
struct taskqueue *taskqueue;
@@ -287,8 +286,6 @@ struct nvme_controller {
struct cdev *cdev;
- boolean_t is_started;
-
uint32_t num_aers;
struct nvme_async_event_request aer[NVME_MAX_ASYNC_EVENTS];
@@ -401,7 +398,7 @@ void nvme_ctrlr_destruct(struct nvme_controller *ctrlr, device_t dev);
int nvme_ctrlr_hw_reset(struct nvme_controller *ctrlr);
void nvme_ctrlr_reset(struct nvme_controller *ctrlr);
/* ctrlr defined as void * to allow use with config_intrhook. */
-void nvme_ctrlr_start(void *ctrlr_arg);
+void nvme_ctrlr_start_config_hook(void *ctrlr_arg);
void nvme_ctrlr_submit_admin_request(struct nvme_controller *ctrlr,
struct nvme_request *req);
void nvme_ctrlr_submit_io_request(struct nvme_controller *ctrlr,
OpenPOWER on IntegriCloud