Name
ata_pio_first_block —
Write first data block to hardware
Synopsis
int ata_pio_first_block (
struct ata_port * ap)
;
Arguments
ap
Port to which ATA/ATAPI device is attached.
Description
When device has indicated its readiness to accept
the data, this function sends out the CDB or
the first data block by PIO.
After this,
- If polling, ata_pio_task
handles the rest.
- Otherwise, interrupt handler takes over.
LOCKING
Kernel thread context (may sleep)
RETURNS
Zero if irq handler takes over
Non-zero if has next (polling).