@@ -107,10 +107,6 @@ void (*dev_config) (struct ata_port *, struct ata_device *);
107107 issue of SET FEATURES - XFER MODE, and prior to operation.
108108 </para>
109109 <para>
110- Called by ata_device_add() after ata_dev_identify() determines
111- a device is present.
112- </para>
113- <para>
114110 This entry may be specified as NULL in ata_port_operations.
115111 </para>
116112
@@ -154,8 +150,8 @@ unsigned int (*mode_filter) (struct ata_port *, struct ata_device *, unsigned in
154150
155151 <sect2><title>Taskfile read/write</title>
156152 <programlisting>
157- void (*tf_load ) (struct ata_port *ap, struct ata_taskfile *tf);
158- void (*tf_read ) (struct ata_port *ap, struct ata_taskfile *tf);
153+ void (*sff_tf_load ) (struct ata_port *ap, struct ata_taskfile *tf);
154+ void (*sff_tf_read ) (struct ata_port *ap, struct ata_taskfile *tf);
159155 </programlisting>
160156
161157 <para>
@@ -164,36 +160,35 @@ void (*tf_read) (struct ata_port *ap, struct ata_taskfile *tf);
164160 hardware registers / DMA buffers, to obtain the current set of
165161 taskfile register values.
166162 Most drivers for taskfile-based hardware (PIO or MMIO) use
167- ata_tf_load () and ata_tf_read () for these hooks.
163+ ata_sff_tf_load () and ata_sff_tf_read () for these hooks.
168164 </para>
169165
170166 </sect2>
171167
172168 <sect2><title>PIO data read/write</title>
173169 <programlisting>
174- void (*data_xfer ) (struct ata_device *, unsigned char *, unsigned int, int);
170+ void (*sff_data_xfer ) (struct ata_device *, unsigned char *, unsigned int, int);
175171 </programlisting>
176172
177173 <para>
178174All bmdma-style drivers must implement this hook. This is the low-level
179175operation that actually copies the data bytes during a PIO data
180176transfer.
181- Typically the driver
182- will choose one of ata_pio_data_xfer_noirq(), ata_pio_data_xfer(), or
183- ata_mmio_data_xfer().
177+ Typically the driver will choose one of ata_sff_data_xfer_noirq(),
178+ ata_sff_data_xfer(), or ata_sff_data_xfer32().
184179 </para>
185180
186181 </sect2>
187182
188183 <sect2><title>ATA command execute</title>
189184 <programlisting>
190- void (*exec_command )(struct ata_port *ap, struct ata_taskfile *tf);
185+ void (*sff_exec_command )(struct ata_port *ap, struct ata_taskfile *tf);
191186 </programlisting>
192187
193188 <para>
194189 causes an ATA command, previously loaded with
195190 ->tf_load(), to be initiated in hardware.
196- Most drivers for taskfile-based hardware use ata_exec_command ()
191+ Most drivers for taskfile-based hardware use ata_sff_exec_command ()
197192 for this hook.
198193 </para>
199194
@@ -218,29 +213,23 @@ command.
218213
219214 <sect2><title>Read specific ATA shadow registers</title>
220215 <programlisting>
221- u8 (*check_status )(struct ata_port *ap);
222- u8 (*check_altstatus )(struct ata_port *ap);
216+ u8 (*sff_check_status )(struct ata_port *ap);
217+ u8 (*sff_check_altstatus )(struct ata_port *ap);
223218 </programlisting>
224219
225220 <para>
226221 Reads the Status/AltStatus ATA shadow register from
227222 hardware. On some hardware, reading the Status register has
228223 the side effect of clearing the interrupt condition.
229224 Most drivers for taskfile-based hardware use
230- ata_check_status() for this hook.
231- </para>
232- <para>
233- Note that because this is called from ata_device_add(), at
234- least a dummy function that clears device interrupts must be
235- provided for all drivers, even if the controller doesn't
236- actually have a taskfile status register.
225+ ata_sff_check_status() for this hook.
237226 </para>
238227
239228 </sect2>
240229
241230 <sect2><title>Select ATA device on bus</title>
242231 <programlisting>
243- void (*dev_select )(struct ata_port *ap, unsigned int device);
232+ void (*sff_dev_select )(struct ata_port *ap, unsigned int device);
244233 </programlisting>
245234
246235 <para>
@@ -251,9 +240,7 @@ void (*dev_select)(struct ata_port *ap, unsigned int device);
251240 </para>
252241 <para>
253242 Most drivers for taskfile-based hardware use
254- ata_std_dev_select() for this hook. Controllers which do not
255- support second drives on a port (such as SATA contollers) will
256- use ata_noop_dev_select().
243+ ata_sff_dev_select() for this hook.
257244 </para>
258245
259246 </sect2>
@@ -441,13 +428,13 @@ void (*irq_clear) (struct ata_port *);
441428 to struct ata_host_set.
442429 </para>
443430 <para>
444- Most legacy IDE drivers use ata_interrupt () for the
431+ Most legacy IDE drivers use ata_sff_interrupt () for the
445432 irq_handler hook, which scans all ports in the host_set,
446433 determines which queued command was active (if any), and calls
447- ata_host_intr (ap,qc).
434+ ata_sff_host_intr (ap,qc).
448435 </para>
449436 <para>
450- Most legacy IDE drivers use ata_bmdma_irq_clear () for the
437+ Most legacy IDE drivers use ata_sff_irq_clear () for the
451438 irq_clear() hook, which simply clears the interrupt and error
452439 flags in the DMA status register.
453440 </para>
@@ -496,10 +483,6 @@ void (*host_stop) (struct ata_host_set *host_set);
496483 data from port at this time.
497484 </para>
498485 <para>
499- Many drivers use ata_port_stop() as this hook, which frees the
500- PRD table.
501- </para>
502- <para>
503486 ->host_stop() is called after all ->port_stop() calls
504487have completed. The hook must finalize hardware shutdown, release DMA
505488and other resources, etc.
0 commit comments