aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/nvme.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r--drivers/nvme/host/nvme.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index 4135626a3d6f..9b63e719318a 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -108,6 +108,7 @@ struct nvme_ctrl {
108 u32 vs; 108 u32 vs;
109 bool subsystem; 109 bool subsystem;
110 unsigned long quirks; 110 unsigned long quirks;
111 struct work_struct scan_work;
111}; 112};
112 113
113/* 114/*
@@ -147,6 +148,7 @@ struct nvme_ctrl_ops {
147 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val); 148 int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val);
148 int (*reset_ctrl)(struct nvme_ctrl *ctrl); 149 int (*reset_ctrl)(struct nvme_ctrl *ctrl);
149 void (*free_ctrl)(struct nvme_ctrl *ctrl); 150 void (*free_ctrl)(struct nvme_ctrl *ctrl);
151 void (*post_scan)(struct nvme_ctrl *ctrl);
150}; 152};
151 153
152static inline bool nvme_ctrl_ready(struct nvme_ctrl *ctrl) 154static inline bool nvme_ctrl_ready(struct nvme_ctrl *ctrl)
@@ -207,7 +209,7 @@ void nvme_uninit_ctrl(struct nvme_ctrl *ctrl);
207void nvme_put_ctrl(struct nvme_ctrl *ctrl); 209void nvme_put_ctrl(struct nvme_ctrl *ctrl);
208int nvme_init_identify(struct nvme_ctrl *ctrl); 210int nvme_init_identify(struct nvme_ctrl *ctrl);
209 211
210void nvme_scan_namespaces(struct nvme_ctrl *ctrl); 212void nvme_queue_scan(struct nvme_ctrl *ctrl);
211void nvme_remove_namespaces(struct nvme_ctrl *ctrl); 213void nvme_remove_namespaces(struct nvme_ctrl *ctrl);
212 214
213void nvme_stop_queues(struct nvme_ctrl *ctrl); 215void nvme_stop_queues(struct nvme_ctrl *ctrl);