summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/remote_node_context.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-05-12 08:50:23 -0700
committerDan Williams <dan.j.williams@intel.com>2011-07-03 04:04:49 -0700
commited3efb7784cb0772558e9cc9440bd6c9a3139be4 (patch)
treec61c9ec150b30b0c4ba85075a481f6c124a56b33 /drivers/scsi/isci/remote_node_context.h
parentc845ae96bcb1625a093003248ffaf13b92a81ac2 (diff)
isci: unify rnc suspend/resume handlers
Unify rnc suspend/resume handlers and delete the state handlers. Reported-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/remote_node_context.h')
-rw-r--r--drivers/scsi/isci/remote_node_context.h32
1 files changed, 8 insertions, 24 deletions
diff --git a/drivers/scsi/isci/remote_node_context.h b/drivers/scsi/isci/remote_node_context.h
index 1cd32343829..68983748eba 100644
--- a/drivers/scsi/isci/remote_node_context.h
+++ b/drivers/scsi/isci/remote_node_context.h
@@ -90,13 +90,6 @@ typedef enum sci_status (*scic_sds_remote_node_context_operation)(
void *callback_parameter
);
-typedef enum sci_status (*scic_sds_remote_node_context_suspend_operation)(
- struct scic_sds_remote_node_context *sci_rnc,
- u32 suspension_type,
- scics_sds_remote_node_context_callback callback,
- void *callback_parameter
- );
-
typedef enum sci_status (*scic_sds_remote_node_context_io_request)(
struct scic_sds_remote_node_context *sci_rnc,
struct scic_sds_request *sci_req
@@ -104,19 +97,6 @@ typedef enum sci_status (*scic_sds_remote_node_context_io_request)(
struct scic_sds_remote_node_context_handlers {
/**
- * This handler is invoked when there is a request to suspend the RNC. The
- * callback is invoked after the hardware notification that the remote node is
- * suspended.
- */
- scic_sds_remote_node_context_suspend_operation suspend_handler;
-
- /**
- * This handler is invoked when there is a request to resume the RNC. The
- * callback is invoked when after the RNC has reached the ready state.
- */
- scic_sds_remote_node_context_operation resume_handler;
-
- /**
* This handler is invoked when there is a request to start an io request
* operation.
*/
@@ -260,11 +240,15 @@ enum sci_status scic_sds_remote_node_context_event_handler(struct scic_sds_remot
enum sci_status scic_sds_remote_node_context_destruct(struct scic_sds_remote_node_context *sci_rnc,
scics_sds_remote_node_context_callback callback,
void *callback_parameter);
-#define scic_sds_remote_node_context_resume(rnc, callback, parameter) \
- ((rnc)->state_handlers->resume_handler(rnc, callback, parameter))
-#define scic_sds_remote_node_context_suspend(rnc, suspend_type, callback, parameter) \
- ((rnc)->state_handlers->suspend_handler(rnc, suspend_type, callback, parameter))
+enum sci_status scic_sds_remote_node_context_suspend(struct scic_sds_remote_node_context *sci_rnc,
+ u32 suspend_type,
+ scics_sds_remote_node_context_callback cb_fn,
+ void *cb_p);
+
+enum sci_status scic_sds_remote_node_context_resume(struct scic_sds_remote_node_context *sci_rnc,
+ scics_sds_remote_node_context_callback cb_fn,
+ void *cb_p);
#define scic_sds_remote_node_context_start_io(rnc, request) \
((rnc)->state_handlers->start_io_handler(rnc, request))