ATA_DEV_SELECT

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

ata_dev_select - Select device 0/1 on ATA bus  

SYNOPSIS

"SYNOPSIS"

void ata_dev_select (struct ata_port * ap, unsigned int device, unsigned int wait, unsigned int can_sleep);  

ARGUMENTS

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
 

DESCRIPTION

Use the method defined in the ATA specification to make either device 0, or device 1, active on the ATA channel.

This is a high-level version of ata_std_dev_select, which additionally provides the services of inserting the proper pauses and status polling, where needed.  

LOCKING

caller.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
LOCKING

This document was created by man2html, using the manual pages.
Time: 00:01:56 GMT, October 09, 2005