2 * This file is provided under a dual BSD/GPLv2 license. When using or
3 * redistributing this file, you may do so under either license.
7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of version 2 of the GNU General Public License as
11 * published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
21 * The full GNU General Public License is included in this distribution
22 * in the file called LICENSE.GPL.
26 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
27 * All rights reserved.
29 * Redistribution and use in source and binary forms, with or without
30 * modification, are permitted provided that the following conditions
33 * * Redistributions of source code must retain the above copyright
34 * notice, this list of conditions and the following disclaimer.
35 * * Redistributions in binary form must reproduce the above copyright
36 * notice, this list of conditions and the following disclaimer in
37 * the documentation and/or other materials provided with the
39 * * Neither the name of Intel Corporation nor the names of its
40 * contributors may be used to endorse or promote products derived
41 * from this software without specific prior written permission.
43 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
44 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
45 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
46 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
47 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
48 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
49 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
50 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
51 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
52 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
53 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56 #ifndef _ISCI_REMOTE_DEVICE_H_
57 #define _ISCI_REMOTE_DEVICE_H_
58 #include <scsi/libsas.h>
59 #include "sci_status.h"
60 #include "intel_sas.h"
61 #include "scu_remote_node_context.h"
62 #include "remote_node_context.h"
65 enum scic_remote_device_not_ready_reason_code {
66 SCIC_REMOTE_DEVICE_NOT_READY_START_REQUESTED,
67 SCIC_REMOTE_DEVICE_NOT_READY_STOP_REQUESTED,
68 SCIC_REMOTE_DEVICE_NOT_READY_SATA_REQUEST_STARTED,
69 SCIC_REMOTE_DEVICE_NOT_READY_SATA_SDB_ERROR_FIS_RECEIVED,
70 SCIC_REMOTE_DEVICE_NOT_READY_SMP_REQUEST_STARTED,
72 SCIC_REMOTE_DEVICE_NOT_READY_REASON_CODE_MAX
76 struct scic_sds_remote_device {
78 * This field contains the information for the base remote device state
81 struct sci_base_state_machine state_machine;
84 * This field is the programmed device port width. This value is
85 * written to the RCN data structure to tell the SCU how many open
86 * connections this device can have.
88 u32 device_port_width;
91 * This field is the programmed connection rate for this remote device. It is
92 * used to program the TC with the maximum allowed connection rate.
94 enum sas_linkrate connection_rate;
97 * This filed is assinged the value of true if the device is directly
98 * attached to the port.
100 bool is_direct_attached;
103 * This filed contains a pointer back to the port to which this device
106 struct scic_sds_port *owning_port;
109 * This field contains the SCU silicon remote node context specific
112 struct scic_sds_remote_node_context rnc;
115 * This field contains the stated request count for the remote device. The
116 * device can not reach the SCI_BASE_REMOTE_DEVICE_STATE_STOPPED until all
117 * requests are complete and the rnc_posted value is false.
119 u32 started_request_count;
122 * This field contains a pointer to the working request object. It is only
123 * used only for SATA requests since the unsolicited frames we get from the
124 * hardware have no Tag value to look up the io request object.
126 struct scic_sds_request *working_request;
129 * This field contains the reason for the remote device going not_ready. It is
130 * assigned in the state handlers and used in the state transition.
132 u32 not_ready_reason;
135 * This field is true if this remote device has an initialzied ready substate
136 * machine. SSP devices do not have a ready substate machine and STP devices
137 * have a ready substate machine.
139 bool has_ready_substate_machine;
142 * This field contains the state machine for the ready substate machine for
143 * this struct scic_sds_remote_device object.
145 struct sci_base_state_machine ready_substate_machine;
148 * This field maintains the set of state handlers for the remote device
149 * object. These are changed each time the remote device enters a new state.
151 const struct scic_sds_remote_device_state_handler *state_handlers;
154 struct isci_remote_device {
155 enum isci_status status;
156 #define IDEV_START_PENDING 0
157 #define IDEV_STOP_PENDING 1
158 #define IDEV_ALLOCATED 2
160 struct isci_port *isci_port;
161 struct domain_device *domain_dev;
162 struct list_head node;
163 struct list_head reqs_in_process;
164 spinlock_t state_lock;
165 struct scic_sds_remote_device sci;
168 #define ISCI_REMOTE_DEVICE_START_TIMEOUT 5000
170 enum sci_status isci_remote_device_stop(struct isci_host *ihost,
171 struct isci_remote_device *idev);
172 void isci_remote_device_nuke_requests(struct isci_host *ihost,
173 struct isci_remote_device *idev);
174 void isci_remote_device_ready(struct isci_host *ihost,
175 struct isci_remote_device *idev);
176 void isci_remote_device_not_ready(struct isci_host *ihost,
177 struct isci_remote_device *idev, u32 reason);
178 void isci_remote_device_gone(struct domain_device *domain_dev);
179 int isci_remote_device_found(struct domain_device *domain_dev);
180 bool isci_device_is_reset_pending(struct isci_host *ihost,
181 struct isci_remote_device *idev);
182 void isci_device_clear_reset_pending(struct isci_host *ihost,
183 struct isci_remote_device *idev);
184 void isci_remote_device_change_state(struct isci_remote_device *idev,
185 enum isci_status status);
187 * scic_remote_device_stop() - This method will stop both transmission and
188 * reception of link activity for the supplied remote device. This method
189 * disables normal IO requests from flowing through to the remote device.
190 * @remote_device: This parameter specifies the device to be stopped.
191 * @timeout: This parameter specifies the number of milliseconds in which the
192 * stop operation should complete.
194 * An indication of whether the device was successfully stopped. SCI_SUCCESS
195 * This value is returned if the transmission and reception for the device was
196 * successfully stopped.
198 enum sci_status scic_remote_device_stop(
199 struct scic_sds_remote_device *remote_device,
203 * scic_remote_device_reset() - This method will reset the device making it
204 * ready for operation. This method must be called anytime the device is
205 * reset either through a SMP phy control or a port hard reset request.
206 * @remote_device: This parameter specifies the device to be reset.
208 * This method does not actually cause the device hardware to be reset. This
209 * method resets the software object so that it will be operational after a
210 * device hardware reset completes. An indication of whether the device reset
211 * was accepted. SCI_SUCCESS This value is returned if the device reset is
214 enum sci_status scic_remote_device_reset(
215 struct scic_sds_remote_device *remote_device);
218 * scic_remote_device_reset_complete() - This method informs the device object
219 * that the reset operation is complete and the device can resume operation
221 * @remote_device: This parameter specifies the device which is to be informed
222 * of the reset complete operation.
224 * An indication that the device is resuming operation. SCI_SUCCESS the device
225 * is resuming operation.
227 enum sci_status scic_remote_device_reset_complete(
228 struct scic_sds_remote_device *remote_device);
233 * scic_remote_device_get_connection_rate() - This method simply returns the
234 * link rate at which communications to the remote device occur.
235 * @remote_device: This parameter specifies the device for which to get the
238 * Return the link rate at which we transfer for the supplied remote device.
240 enum sas_linkrate scic_remote_device_get_connection_rate(
241 struct scic_sds_remote_device *remote_device);
243 #define scic_remote_device_is_atapi(device_handle) false
246 * enum scic_sds_remote_device_states - This enumeration depicts all the states
247 * for the common remote device state machine.
251 enum scic_sds_remote_device_states {
253 * Simply the initial state for the base remote device state machine.
255 SCI_BASE_REMOTE_DEVICE_STATE_INITIAL,
258 * This state indicates that the remote device has successfully been
259 * stopped. In this state no new IO operations are permitted.
260 * This state is entered from the INITIAL state.
261 * This state is entered from the STOPPING state.
263 SCI_BASE_REMOTE_DEVICE_STATE_STOPPED,
266 * This state indicates the the remote device is in the process of
267 * becoming ready (i.e. starting). In this state no new IO operations
269 * This state is entered from the STOPPED state.
271 SCI_BASE_REMOTE_DEVICE_STATE_STARTING,
274 * This state indicates the remote device is now ready. Thus, the user
275 * is able to perform IO operations on the remote device.
276 * This state is entered from the STARTING state.
278 SCI_BASE_REMOTE_DEVICE_STATE_READY,
281 * This state indicates that the remote device is in the process of
282 * stopping. In this state no new IO operations are permitted, but
283 * existing IO operations are allowed to complete.
284 * This state is entered from the READY state.
285 * This state is entered from the FAILED state.
287 SCI_BASE_REMOTE_DEVICE_STATE_STOPPING,
290 * This state indicates that the remote device has failed.
291 * In this state no new IO operations are permitted.
292 * This state is entered from the INITIALIZING state.
293 * This state is entered from the READY state.
295 SCI_BASE_REMOTE_DEVICE_STATE_FAILED,
298 * This state indicates the device is being reset.
299 * In this state no new IO operations are permitted.
300 * This state is entered from the READY state.
302 SCI_BASE_REMOTE_DEVICE_STATE_RESETTING,
305 * Simply the final state for the base remote device state machine.
307 SCI_BASE_REMOTE_DEVICE_STATE_FINAL,
311 * enum scic_sds_ssp_remote_device_ready_substates -
313 * This is the enumeration of the ready substates for the
314 * struct scic_sds_remote_device.
316 enum scic_sds_ssp_remote_device_ready_substates {
318 * This is the initial state for the remote device ready substate.
320 SCIC_SDS_SSP_REMOTE_DEVICE_READY_SUBSTATE_INITIAL,
323 * This is the ready operational substate for the remote device.
324 * This is the normal operational state for a remote device.
326 SCIC_SDS_SSP_REMOTE_DEVICE_READY_SUBSTATE_OPERATIONAL,
329 * This is the suspended state for the remote device. This is the state
330 * that the device is placed in when a RNC suspend is received by
333 SCIC_SDS_SSP_REMOTE_DEVICE_READY_SUBSTATE_SUSPENDED,
336 * This is the final state that the device is placed in before a change
337 * to the base state machine.
339 SCIC_SDS_SSP_REMOTE_DEVICE_READY_SUBSTATE_FINAL,
341 SCIC_SDS_SSP_REMOTE_DEVICE_READY_MAX_SUBSTATES
345 * enum scic_sds_stp_remote_device_ready_substates -
347 * This is the enumeration for the struct scic_sds_remote_device ready substates
348 * for the STP remote device.
350 enum scic_sds_stp_remote_device_ready_substates {
352 * This is the idle substate for the stp remote device. When there are no
353 * active IO for the device it is is in this state.
355 SCIC_SDS_STP_REMOTE_DEVICE_READY_SUBSTATE_IDLE,
358 * This is the command state for for the STP remote device. This state is
359 * entered when the device is processing a non-NCQ command. The device object
360 * will fail any new start IO requests until this command is complete.
362 SCIC_SDS_STP_REMOTE_DEVICE_READY_SUBSTATE_CMD,
365 * This is the NCQ state for the STP remote device. This state is entered
366 * when the device is processing an NCQ reuqest. It will remain in this state
367 * so long as there is one or more NCQ requests being processed.
369 SCIC_SDS_STP_REMOTE_DEVICE_READY_SUBSTATE_NCQ,
372 * This is the NCQ error state for the STP remote device. This state is
373 * entered when an SDB error FIS is received by the device object while in the
374 * NCQ state. The device object will only accept a READ LOG command while in
377 SCIC_SDS_STP_REMOTE_DEVICE_READY_SUBSTATE_NCQ_ERROR,
380 * This is the READY substate indicates the device is waiting for the RESET task
381 * coming to be recovered from certain hardware specific error.
383 SCIC_SDS_STP_REMOTE_DEVICE_READY_SUBSTATE_AWAIT_RESET,
387 * enum scic_sds_smp_remote_device_ready_substates -
389 * This is the enumeration of the ready substates for the SMP REMOTE DEVICE.
391 enum scic_sds_smp_remote_device_ready_substates {
393 * This is the ready operational substate for the remote device. This is the
394 * normal operational state for a remote device.
396 SCIC_SDS_SMP_REMOTE_DEVICE_READY_SUBSTATE_IDLE,
399 * This is the suspended state for the remote device. This is the state that
400 * the device is placed in when a RNC suspend is received by the SCU hardware.
402 SCIC_SDS_SMP_REMOTE_DEVICE_READY_SUBSTATE_CMD,
405 static inline struct scic_sds_remote_device *rnc_to_dev(struct scic_sds_remote_node_context *rnc)
407 struct scic_sds_remote_device *sci_dev;
409 sci_dev = container_of(rnc, typeof(*sci_dev), rnc);
414 static inline struct isci_remote_device *sci_dev_to_idev(struct scic_sds_remote_device *sci_dev)
416 struct isci_remote_device *idev = container_of(sci_dev, typeof(*idev), sci);
421 static inline struct domain_device *sci_dev_to_domain(struct scic_sds_remote_device *sci_dev)
423 return sci_dev_to_idev(sci_dev)->domain_dev;
426 static inline bool dev_is_expander(struct domain_device *dev)
428 return dev->dev_type == EDGE_DEV || dev->dev_type == FANOUT_DEV;
431 typedef enum sci_status (*scic_sds_remote_device_request_handler_t)(
432 struct scic_sds_remote_device *device,
433 struct scic_sds_request *request);
435 typedef enum sci_status (*scic_sds_remote_device_high_priority_request_complete_handler_t)(
436 struct scic_sds_remote_device *device,
437 struct scic_sds_request *request,
441 typedef enum sci_status (*scic_sds_remote_device_handler_t)(
442 struct scic_sds_remote_device *sci_dev);
444 typedef enum sci_status (*scic_sds_remote_device_suspend_handler_t)(
445 struct scic_sds_remote_device *sci_dev,
448 typedef enum sci_status (*scic_sds_remote_device_resume_handler_t)(
449 struct scic_sds_remote_device *sci_dev);
451 typedef enum sci_status (*scic_sds_remote_device_frame_handler_t)(
452 struct scic_sds_remote_device *sci_dev,
455 typedef enum sci_status (*scic_sds_remote_device_event_handler_t)(
456 struct scic_sds_remote_device *sci_dev,
459 typedef void (*scic_sds_remote_device_ready_not_ready_handler_t)(
460 struct scic_sds_remote_device *sci_dev);
463 * struct scic_sds_remote_device_state_handler - This structure conains the
464 * state handlers that are needed to process requests for the SCU remote
469 struct scic_sds_remote_device_state_handler {
471 * The start_handler specifies the method invoked when a user
472 * attempts to start a remote device.
474 scic_sds_remote_device_handler_t start_handler;
477 * The stop_handler specifies the method invoked when a user attempts to
478 * stop a remote device.
480 scic_sds_remote_device_handler_t stop_handler;
483 * The fail_handler specifies the method invoked when a remote device
484 * failure has occurred. A failure may be due to an inability to
485 * initialize/configure the device.
487 scic_sds_remote_device_handler_t fail_handler;
490 * The destruct_handler specifies the method invoked when attempting to
491 * destruct a remote device.
493 scic_sds_remote_device_handler_t destruct_handler;
496 * The reset handler specifies the method invloked when requesting to
497 * reset a remote device.
499 scic_sds_remote_device_handler_t reset_handler;
502 * The reset complete handler specifies the method invloked when
503 * reporting that a reset has completed to the remote device.
505 scic_sds_remote_device_handler_t reset_complete_handler;
508 * The start_io_handler specifies the method invoked when a user
509 * attempts to start an IO request for a remote device.
511 scic_sds_remote_device_request_handler_t start_io_handler;
514 * The complete_io_handler specifies the method invoked when a user
515 * attempts to complete an IO request for a remote device.
517 scic_sds_remote_device_request_handler_t complete_io_handler;
520 * The continue_io_handler specifies the method invoked when a user
521 * attempts to continue an IO request for a remote device.
523 scic_sds_remote_device_request_handler_t continue_io_handler;
526 * The start_task_handler specifies the method invoked when a user
527 * attempts to start a task management request for a remote device.
529 scic_sds_remote_device_request_handler_t start_task_handler;
532 * The complete_task_handler specifies the method invoked when a user
533 * attempts to complete a task management request for a remote device.
535 scic_sds_remote_device_request_handler_t complete_task_handler;
538 scic_sds_remote_device_suspend_handler_t suspend_handler;
539 scic_sds_remote_device_resume_handler_t resume_handler;
540 scic_sds_remote_device_event_handler_t event_handler;
541 scic_sds_remote_device_frame_handler_t frame_handler;
544 extern const struct sci_base_state scic_sds_ssp_remote_device_ready_substate_table[];
545 extern const struct sci_base_state scic_sds_stp_remote_device_ready_substate_table[];
546 extern const struct sci_base_state scic_sds_smp_remote_device_ready_substate_table[];
549 * scic_sds_remote_device_increment_request_count() -
551 * This macro incrments the request count for this device
553 #define scic_sds_remote_device_increment_request_count(sci_dev) \
554 ((sci_dev)->started_request_count++)
557 * scic_sds_remote_device_decrement_request_count() -
559 * This macro decrements the request count for this device. This count will
560 * never decrment past 0.
562 #define scic_sds_remote_device_decrement_request_count(sci_dev) \
563 ((sci_dev)->started_request_count > 0 ? \
564 (sci_dev)->started_request_count-- : 0)
567 * scic_sds_remote_device_get_request_count() -
569 * This is a helper macro to return the current device request count.
571 #define scic_sds_remote_device_get_request_count(sci_dev) \
572 ((sci_dev)->started_request_count)
575 * scic_sds_remote_device_get_port() -
577 * This macro returns the owning port of this remote device obejct.
579 #define scic_sds_remote_device_get_port(sci_dev) \
580 ((sci_dev)->owning_port)
583 * scic_sds_remote_device_get_controller() -
585 * This macro returns the controller object that contains this device object
587 #define scic_sds_remote_device_get_controller(sci_dev) \
588 scic_sds_port_get_controller(scic_sds_remote_device_get_port(sci_dev))
591 * scic_sds_remote_device_set_state_handlers() -
593 * This macro sets the remote device state handlers pointer and is set on entry
594 * to each device state.
596 #define scic_sds_remote_device_set_state_handlers(sci_dev, handlers) \
597 ((sci_dev)->state_handlers = (handlers))
600 * scic_sds_remote_device_get_port() -
602 * This macro returns the owning port of this device
604 #define scic_sds_remote_device_get_port(sci_dev) \
605 ((sci_dev)->owning_port)
608 * scic_sds_remote_device_get_sequence() -
610 * This macro returns the remote device sequence value
612 #define scic_sds_remote_device_get_sequence(sci_dev) \
614 scic_sds_remote_device_get_controller(sci_dev)-> \
615 remote_device_sequence[(sci_dev)->rnc.remote_node_index] \
619 * scic_sds_remote_device_get_controller_peg() -
621 * This macro returns the controllers protocol engine group
623 #define scic_sds_remote_device_get_controller_peg(sci_dev) \
625 scic_sds_controller_get_protocol_engine_group(\
626 scic_sds_port_get_controller(\
627 scic_sds_remote_device_get_port(sci_dev) \
633 * scic_sds_remote_device_get_index() -
635 * This macro returns the remote node index for this device object
637 #define scic_sds_remote_device_get_index(sci_dev) \
638 ((sci_dev)->rnc.remote_node_index)
641 * scic_sds_remote_device_build_command_context() -
643 * This macro builds a remote device context for the SCU post request operation
645 #define scic_sds_remote_device_build_command_context(device, command) \
647 | (scic_sds_remote_device_get_controller_peg((device)) << SCU_CONTEXT_COMMAND_PROTOCOL_ENGINE_GROUP_SHIFT) \
648 | ((device)->owning_port->physical_port_index << SCU_CONTEXT_COMMAND_LOGICAL_PORT_SHIFT) \
649 | (scic_sds_remote_device_get_index((device))) \
653 * scic_sds_remote_device_set_working_request() -
655 * This macro makes the working request assingment for the remote device
656 * object. To clear the working request use this macro with a NULL request
659 #define scic_sds_remote_device_set_working_request(device, request) \
660 ((device)->working_request = (request))
662 enum sci_status scic_sds_remote_device_frame_handler(
663 struct scic_sds_remote_device *sci_dev,
666 enum sci_status scic_sds_remote_device_event_handler(
667 struct scic_sds_remote_device *sci_dev,
670 enum sci_status scic_sds_remote_device_start_io(
671 struct scic_sds_controller *controller,
672 struct scic_sds_remote_device *sci_dev,
673 struct scic_sds_request *io_request);
675 enum sci_status scic_sds_remote_device_complete_io(
676 struct scic_sds_controller *controller,
677 struct scic_sds_remote_device *sci_dev,
678 struct scic_sds_request *io_request);
680 enum sci_status scic_sds_remote_device_resume(
681 struct scic_sds_remote_device *sci_dev);
683 enum sci_status scic_sds_remote_device_suspend(
684 struct scic_sds_remote_device *sci_dev,
687 enum sci_status scic_sds_remote_device_start_task(
688 struct scic_sds_controller *controller,
689 struct scic_sds_remote_device *sci_dev,
690 struct scic_sds_request *io_request);
692 void scic_sds_remote_device_post_request(
693 struct scic_sds_remote_device *sci_dev,
696 #define scic_sds_remote_device_is_atapi(sci_dev) false
698 void scic_sds_remote_device_start_request(
699 struct scic_sds_remote_device *sci_dev,
700 struct scic_sds_request *sci_req,
701 enum sci_status status);
703 void scic_sds_remote_device_continue_request(void *sci_dev);
705 enum sci_status scic_sds_remote_device_default_start_handler(
706 struct scic_sds_remote_device *sci_dev);
708 enum sci_status scic_sds_remote_device_default_fail_handler(
709 struct scic_sds_remote_device *sci_dev);
711 enum sci_status scic_sds_remote_device_default_destruct_handler(
712 struct scic_sds_remote_device *sci_dev);
714 enum sci_status scic_sds_remote_device_default_reset_handler(
715 struct scic_sds_remote_device *device);
717 enum sci_status scic_sds_remote_device_default_reset_complete_handler(
718 struct scic_sds_remote_device *device);
720 enum sci_status scic_sds_remote_device_default_start_request_handler(
721 struct scic_sds_remote_device *device,
722 struct scic_sds_request *request);
724 enum sci_status scic_sds_remote_device_default_complete_request_handler(
725 struct scic_sds_remote_device *device,
726 struct scic_sds_request *request);
728 enum sci_status scic_sds_remote_device_default_continue_request_handler(
729 struct scic_sds_remote_device *device,
730 struct scic_sds_request *request);
732 enum sci_status scic_sds_remote_device_default_suspend_handler(
733 struct scic_sds_remote_device *sci_dev,
736 enum sci_status scic_sds_remote_device_default_resume_handler(
737 struct scic_sds_remote_device *sci_dev);
740 enum sci_status scic_sds_remote_device_default_frame_handler(
741 struct scic_sds_remote_device *sci_dev,
744 enum sci_status scic_sds_remote_device_ready_state_stop_handler(
745 struct scic_sds_remote_device *device);
747 enum sci_status scic_sds_remote_device_ready_state_reset_handler(
748 struct scic_sds_remote_device *device);
750 enum sci_status scic_sds_remote_device_general_frame_handler(
751 struct scic_sds_remote_device *sci_dev,
754 enum sci_status scic_sds_remote_device_general_event_handler(
755 struct scic_sds_remote_device *sci_dev,
758 enum sci_status scic_sds_ssp_remote_device_ready_suspended_substate_resume_handler(
759 struct scic_sds_remote_device *sci_dev);
763 #endif /* !defined(_ISCI_REMOTE_DEVICE_H_) */