ata_dev_select — Select device 0/1 on ATA bus
void ata_dev_select ( | struct ata_port * | ap, |
unsigned int | device, | |
unsigned int | wait, | |
unsigned int | can_sleep) ; |
ap
ATA channel to manipulate
device
ATA device (numbered from zero) to select
wait
non-zero to wait for Status register BSY bit to clear
can_sleep
non-zero if context allows sleeping