aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/remote_node_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/isci/remote_node_context.h')
-rw-r--r--drivers/scsi/isci/remote_node_context.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/scsi/isci/remote_node_context.h b/drivers/scsi/isci/remote_node_context.h
index a763468fa74f..fb93f09d4df6 100644
--- a/drivers/scsi/isci/remote_node_context.h
+++ b/drivers/scsi/isci/remote_node_context.h
@@ -102,11 +102,6 @@ typedef enum sci_status (*scic_sds_remote_node_context_io_request)(
102 struct scic_sds_request *sci_req 102 struct scic_sds_request *sci_req
103 ); 103 );
104 104
105typedef enum sci_status (*scic_sds_remote_node_context_event_handler)(
106 struct scic_sds_remote_node_context *sci_rnc,
107 u32 event_code
108 );
109
110struct scic_sds_remote_node_context_handlers { 105struct scic_sds_remote_node_context_handlers {
111 /** 106 /**
112 * This handle is invoked to stop the RNC. The callback is invoked when after 107 * This handle is invoked to stop the RNC. The callback is invoked when after
@@ -138,12 +133,6 @@ struct scic_sds_remote_node_context_handlers {
138 * operation. 133 * operation.
139 */ 134 */
140 scic_sds_remote_node_context_io_request start_task_handler; 135 scic_sds_remote_node_context_io_request start_task_handler;
141
142 /**
143 * This handler is invoked where there is an RNC event that must be processed.
144 */
145 scic_sds_remote_node_context_event_handler event_handler;
146
147}; 136};
148 137
149/** 138/**
@@ -271,8 +260,9 @@ bool scic_sds_remote_node_context_is_ready(
271#define scic_sds_remote_node_context_get_remote_node_index(rcn) \ 260#define scic_sds_remote_node_context_get_remote_node_index(rcn) \
272 ((rnc)->remote_node_index) 261 ((rnc)->remote_node_index)
273 262
274#define scic_sds_remote_node_context_event_handler(rnc, event_code) \ 263
275 ((rnc)->state_handlers->event_handler(rnc, event_code)) 264enum sci_status scic_sds_remote_node_context_event_handler(struct scic_sds_remote_node_context *sci_rnc,
265 u32 event_code);
276 266
277#define scic_sds_remote_node_context_resume(rnc, callback, parameter) \ 267#define scic_sds_remote_node_context_resume(rnc, callback, parameter) \
278 ((rnc)->state_handlers->resume_handler(rnc, callback, parameter)) 268 ((rnc)->state_handlers->resume_handler(rnc, callback, parameter))