diff options
Diffstat (limited to 'drivers/ata/pata_pdc2027x.c')
-rw-r--r-- | drivers/ata/pata_pdc2027x.c | 56 |
1 files changed, 4 insertions, 52 deletions
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index 229d9acd934a..f619c20dd192 100644 --- a/drivers/ata/pata_pdc2027x.c +++ b/drivers/ata/pata_pdc2027x.c | |||
@@ -133,66 +133,18 @@ static struct scsi_host_template pdc2027x_sht = { | |||
133 | }; | 133 | }; |
134 | 134 | ||
135 | static struct ata_port_operations pdc2027x_pata100_ops = { | 135 | static struct ata_port_operations pdc2027x_pata100_ops = { |
136 | .mode_filter = ata_pci_default_filter, | 136 | .inherits = &ata_bmdma_port_ops, |
137 | |||
138 | .tf_load = ata_tf_load, | ||
139 | .tf_read = ata_tf_read, | ||
140 | .check_status = ata_check_status, | ||
141 | .exec_command = ata_exec_command, | ||
142 | .dev_select = ata_std_dev_select, | ||
143 | |||
144 | .check_atapi_dma = pdc2027x_check_atapi_dma, | 137 | .check_atapi_dma = pdc2027x_check_atapi_dma, |
145 | .bmdma_setup = ata_bmdma_setup, | ||
146 | .bmdma_start = ata_bmdma_start, | ||
147 | .bmdma_stop = ata_bmdma_stop, | ||
148 | .bmdma_status = ata_bmdma_status, | ||
149 | .qc_prep = ata_qc_prep, | ||
150 | .qc_issue = ata_qc_issue_prot, | ||
151 | .data_xfer = ata_data_xfer, | ||
152 | |||
153 | .freeze = ata_bmdma_freeze, | ||
154 | .thaw = ata_bmdma_thaw, | ||
155 | .error_handler = pdc2027x_error_handler, | ||
156 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | ||
157 | .cable_detect = pdc2027x_cable_detect, | 138 | .cable_detect = pdc2027x_cable_detect, |
158 | 139 | .error_handler = pdc2027x_error_handler, | |
159 | .irq_clear = ata_bmdma_irq_clear, | ||
160 | .irq_on = ata_irq_on, | ||
161 | |||
162 | .port_start = ata_sff_port_start, | ||
163 | }; | 140 | }; |
164 | 141 | ||
165 | static struct ata_port_operations pdc2027x_pata133_ops = { | 142 | static struct ata_port_operations pdc2027x_pata133_ops = { |
143 | .inherits = &pdc2027x_pata100_ops, | ||
144 | .mode_filter = pdc2027x_mode_filter, | ||
166 | .set_piomode = pdc2027x_set_piomode, | 145 | .set_piomode = pdc2027x_set_piomode, |
167 | .set_dmamode = pdc2027x_set_dmamode, | 146 | .set_dmamode = pdc2027x_set_dmamode, |
168 | .set_mode = pdc2027x_set_mode, | 147 | .set_mode = pdc2027x_set_mode, |
169 | .mode_filter = pdc2027x_mode_filter, | ||
170 | |||
171 | .tf_load = ata_tf_load, | ||
172 | .tf_read = ata_tf_read, | ||
173 | .check_status = ata_check_status, | ||
174 | .exec_command = ata_exec_command, | ||
175 | .dev_select = ata_std_dev_select, | ||
176 | |||
177 | .check_atapi_dma = pdc2027x_check_atapi_dma, | ||
178 | .bmdma_setup = ata_bmdma_setup, | ||
179 | .bmdma_start = ata_bmdma_start, | ||
180 | .bmdma_stop = ata_bmdma_stop, | ||
181 | .bmdma_status = ata_bmdma_status, | ||
182 | .qc_prep = ata_qc_prep, | ||
183 | .qc_issue = ata_qc_issue_prot, | ||
184 | .data_xfer = ata_data_xfer, | ||
185 | |||
186 | .freeze = ata_bmdma_freeze, | ||
187 | .thaw = ata_bmdma_thaw, | ||
188 | .error_handler = pdc2027x_error_handler, | ||
189 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | ||
190 | .cable_detect = pdc2027x_cable_detect, | ||
191 | |||
192 | .irq_clear = ata_bmdma_irq_clear, | ||
193 | .irq_on = ata_irq_on, | ||
194 | |||
195 | .port_start = ata_sff_port_start, | ||
196 | }; | 148 | }; |
197 | 149 | ||
198 | static struct ata_port_info pdc2027x_port_info[] = { | 150 | static struct ata_port_info pdc2027x_port_info[] = { |