diff options
Diffstat (limited to 'drivers/scsi/ibmvscsi/ibmvscsi.h')
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvscsi.h | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.h b/drivers/scsi/ibmvscsi/ibmvscsi.h index b19c2e26c2a5..46e850e302c7 100644 --- a/drivers/scsi/ibmvscsi/ibmvscsi.h +++ b/drivers/scsi/ibmvscsi/ibmvscsi.h | |||
@@ -98,21 +98,25 @@ struct ibmvscsi_host_data { | |||
98 | }; | 98 | }; |
99 | 99 | ||
100 | /* routines for managing a command/response queue */ | 100 | /* routines for managing a command/response queue */ |
101 | int ibmvscsi_init_crq_queue(struct crq_queue *queue, | ||
102 | struct ibmvscsi_host_data *hostdata, | ||
103 | int max_requests); | ||
104 | void ibmvscsi_release_crq_queue(struct crq_queue *queue, | ||
105 | struct ibmvscsi_host_data *hostdata, | ||
106 | int max_requests); | ||
107 | int ibmvscsi_reset_crq_queue(struct crq_queue *queue, | ||
108 | struct ibmvscsi_host_data *hostdata); | ||
109 | |||
110 | int ibmvscsi_reenable_crq_queue(struct crq_queue *queue, | ||
111 | struct ibmvscsi_host_data *hostdata); | ||
112 | |||
113 | void ibmvscsi_handle_crq(struct viosrp_crq *crq, | 101 | void ibmvscsi_handle_crq(struct viosrp_crq *crq, |
114 | struct ibmvscsi_host_data *hostdata); | 102 | struct ibmvscsi_host_data *hostdata); |
115 | int ibmvscsi_send_crq(struct ibmvscsi_host_data *hostdata, | 103 | |
116 | u64 word1, u64 word2); | 104 | struct ibmvscsi_ops { |
105 | int (*init_crq_queue)(struct crq_queue *queue, | ||
106 | struct ibmvscsi_host_data *hostdata, | ||
107 | int max_requests); | ||
108 | void (*release_crq_queue)(struct crq_queue *queue, | ||
109 | struct ibmvscsi_host_data *hostdata, | ||
110 | int max_requests); | ||
111 | int (*reset_crq_queue)(struct crq_queue *queue, | ||
112 | struct ibmvscsi_host_data *hostdata); | ||
113 | int (*reenable_crq_queue)(struct crq_queue *queue, | ||
114 | struct ibmvscsi_host_data *hostdata); | ||
115 | int (*send_crq)(struct ibmvscsi_host_data *hostdata, | ||
116 | u64 word1, u64 word2); | ||
117 | }; | ||
118 | |||
119 | extern struct ibmvscsi_ops iseriesvscsi_ops; | ||
120 | extern struct ibmvscsi_ops rpavscsi_ops; | ||
117 | 121 | ||
118 | #endif /* IBMVSCSI_H */ | 122 | #endif /* IBMVSCSI_H */ |