aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/remote_node_context.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-06-30 22:14:33 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:04:52 -0400
commit89a7301f21fb00e753089671eb9e4132aab8ea08 (patch)
treeafa8bac0a36d0d5626997d8995f6c9194aef3a0f /drivers/scsi/isci/remote_node_context.h
parentd9dcb4ba791de2a06b19ac47cd61601cf3d4e208 (diff)
isci: retire scic_sds_ and scic_ prefixes
The distinction between scic_sds_ scic_ and sci_ are no longer relevant so just unify the prefixes on sci_. The distinction between isci_ and sci_ is historically significant, and useful for comparing the old 'core' to the current Linux driver. 'sci_' represents the former core as well as the routines that are closer to the hardware and protocol than their 'isci_' brethren. sci == sas controller interface. Also unwind the 'sds1' out of the parameter structs. 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.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/scsi/isci/remote_node_context.h b/drivers/scsi/isci/remote_node_context.h
index 7a24c7a12de1..b475c5c26642 100644
--- a/drivers/scsi/isci/remote_node_context.h
+++ b/drivers/scsi/isci/remote_node_context.h
@@ -80,7 +80,7 @@
80 80
81struct isci_request; 81struct isci_request;
82struct isci_remote_device; 82struct isci_remote_device;
83struct scic_sds_remote_node_context; 83struct sci_remote_node_context;
84 84
85typedef void (*scics_sds_remote_node_context_callback)(void *); 85typedef void (*scics_sds_remote_node_context_callback)(void *);
86 86
@@ -147,19 +147,19 @@ enum scis_sds_remote_node_context_states {
147 * This enumeration is used to define the end destination state for the remote 147 * This enumeration is used to define the end destination state for the remote
148 * node context. 148 * node context.
149 */ 149 */
150enum scic_sds_remote_node_context_destination_state { 150enum sci_remote_node_context_destination_state {
151 SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_UNSPECIFIED, 151 SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_UNSPECIFIED,
152 SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_READY, 152 SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_READY,
153 SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_FINAL 153 SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_FINAL
154}; 154};
155 155
156/** 156/**
157 * struct scic_sds_remote_node_context - This structure contains the data 157 * struct sci_remote_node_context - This structure contains the data
158 * associated with the remote node context object. The remote node context 158 * associated with the remote node context object. The remote node context
159 * (RNC) object models the the remote device information necessary to manage 159 * (RNC) object models the the remote device information necessary to manage
160 * the silicon RNC. 160 * the silicon RNC.
161 */ 161 */
162struct scic_sds_remote_node_context { 162struct sci_remote_node_context {
163 /** 163 /**
164 * This field indicates the remote node index (RNI) associated with 164 * This field indicates the remote node index (RNI) associated with
165 * this RNC. 165 * this RNC.
@@ -177,7 +177,7 @@ struct scic_sds_remote_node_context {
177 * state. This can cause an automatic resume on receiving a suspension 177 * state. This can cause an automatic resume on receiving a suspension
178 * notification. 178 * notification.
179 */ 179 */
180 enum scic_sds_remote_node_context_destination_state destination_state; 180 enum sci_remote_node_context_destination_state destination_state;
181 181
182 /** 182 /**
183 * This field contains the callback function that the user requested to be 183 * This field contains the callback function that the user requested to be
@@ -197,31 +197,31 @@ struct scic_sds_remote_node_context {
197 struct sci_base_state_machine sm; 197 struct sci_base_state_machine sm;
198}; 198};
199 199
200void scic_sds_remote_node_context_construct(struct scic_sds_remote_node_context *rnc, 200void sci_remote_node_context_construct(struct sci_remote_node_context *rnc,
201 u16 remote_node_index); 201 u16 remote_node_index);
202 202
203 203
204bool scic_sds_remote_node_context_is_ready( 204bool sci_remote_node_context_is_ready(
205 struct scic_sds_remote_node_context *sci_rnc); 205 struct sci_remote_node_context *sci_rnc);
206 206
207#define scic_sds_remote_node_context_get_remote_node_index(rcn) \ 207#define sci_remote_node_context_get_remote_node_index(rcn) \
208 ((rnc)->remote_node_index) 208 ((rnc)->remote_node_index)
209 209
210enum sci_status scic_sds_remote_node_context_event_handler(struct scic_sds_remote_node_context *sci_rnc, 210enum sci_status sci_remote_node_context_event_handler(struct sci_remote_node_context *sci_rnc,
211 u32 event_code); 211 u32 event_code);
212enum sci_status scic_sds_remote_node_context_destruct(struct scic_sds_remote_node_context *sci_rnc, 212enum sci_status sci_remote_node_context_destruct(struct sci_remote_node_context *sci_rnc,
213 scics_sds_remote_node_context_callback callback, 213 scics_sds_remote_node_context_callback callback,
214 void *callback_parameter); 214 void *callback_parameter);
215enum sci_status scic_sds_remote_node_context_suspend(struct scic_sds_remote_node_context *sci_rnc, 215enum sci_status sci_remote_node_context_suspend(struct sci_remote_node_context *sci_rnc,
216 u32 suspend_type, 216 u32 suspend_type,
217 scics_sds_remote_node_context_callback cb_fn, 217 scics_sds_remote_node_context_callback cb_fn,
218 void *cb_p); 218 void *cb_p);
219enum sci_status scic_sds_remote_node_context_resume(struct scic_sds_remote_node_context *sci_rnc, 219enum sci_status sci_remote_node_context_resume(struct sci_remote_node_context *sci_rnc,
220 scics_sds_remote_node_context_callback cb_fn, 220 scics_sds_remote_node_context_callback cb_fn,
221 void *cb_p); 221 void *cb_p);
222enum sci_status scic_sds_remote_node_context_start_task(struct scic_sds_remote_node_context *sci_rnc, 222enum sci_status sci_remote_node_context_start_task(struct sci_remote_node_context *sci_rnc,
223 struct isci_request *ireq); 223 struct isci_request *ireq);
224enum sci_status scic_sds_remote_node_context_start_io(struct scic_sds_remote_node_context *sci_rnc, 224enum sci_status sci_remote_node_context_start_io(struct sci_remote_node_context *sci_rnc,
225 struct isci_request *ireq); 225 struct isci_request *ireq);
226 226
227#endif /* _SCIC_SDS_REMOTE_NODE_CONTEXT_H_ */ 227#endif /* _SCIC_SDS_REMOTE_NODE_CONTEXT_H_ */