aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_qdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_qdi.c')
-rw-r--r--drivers/ata/pata_qdi.c47
1 files changed, 4 insertions, 43 deletions
diff --git a/drivers/ata/pata_qdi.c b/drivers/ata/pata_qdi.c
index ccb8682300b8..d16b343d2a62 100644
--- a/drivers/ata/pata_qdi.c
+++ b/drivers/ata/pata_qdi.c
@@ -158,55 +158,16 @@ static struct scsi_host_template qdi_sht = {
158}; 158};
159 159
160static struct ata_port_operations qdi6500_port_ops = { 160static struct ata_port_operations qdi6500_port_ops = {
161 .set_piomode = qdi6500_set_piomode, 161 .inherits = &ata_sff_port_ops,
162
163 .tf_load = ata_tf_load,
164 .tf_read = ata_tf_read,
165 .check_status = ata_check_status,
166 .exec_command = ata_exec_command,
167 .dev_select = ata_std_dev_select,
168
169 .freeze = ata_bmdma_freeze,
170 .thaw = ata_bmdma_thaw,
171 .error_handler = ata_bmdma_error_handler,
172 .post_internal_cmd = ata_bmdma_post_internal_cmd,
173 .cable_detect = ata_cable_40wire,
174
175 .qc_prep = ata_qc_prep,
176 .qc_issue = qdi_qc_issue_prot, 162 .qc_issue = qdi_qc_issue_prot,
177
178 .data_xfer = qdi_data_xfer, 163 .data_xfer = qdi_data_xfer,
179 164 .cable_detect = ata_cable_40wire,
180 .irq_clear = ata_noop_irq_clear, 165 .set_piomode = qdi6500_set_piomode,
181 .irq_on = ata_irq_on,
182
183 .port_start = ata_sff_port_start,
184}; 166};
185 167
186static struct ata_port_operations qdi6580_port_ops = { 168static struct ata_port_operations qdi6580_port_ops = {
169 .inherits = &qdi6500_port_ops,
187 .set_piomode = qdi6580_set_piomode, 170 .set_piomode = qdi6580_set_piomode,
188
189 .tf_load = ata_tf_load,
190 .tf_read = ata_tf_read,
191 .check_status = ata_check_status,
192 .exec_command = ata_exec_command,
193 .dev_select = ata_std_dev_select,
194
195 .freeze = ata_bmdma_freeze,
196 .thaw = ata_bmdma_thaw,
197 .error_handler = ata_bmdma_error_handler,
198 .post_internal_cmd = ata_bmdma_post_internal_cmd,
199 .cable_detect = ata_cable_40wire,
200
201 .qc_prep = ata_qc_prep,
202 .qc_issue = qdi_qc_issue_prot,
203
204 .data_xfer = qdi_data_xfer,
205
206 .irq_clear = ata_noop_irq_clear,
207 .irq_on = ata_irq_on,
208
209 .port_start = ata_sff_port_start,
210}; 171};
211 172
212/** 173/**