Provided by:
linux-doc-2.6.15_2.6.15-23.39_all 
NAME
ata_exec_internal - execute libata internal command
SYNOPSIS
unsigned int ata_exec_internal (struct ata_port * ap,
struct ata_device * dev,
struct ata_taskfile * tf,
int dma_dir, void * buf,
unsigned int buflen);
ARGUMENTS
ap Port to which the command is sent
dev Device to which the command is sent
tf Taskfile registers for the command and the result
dma_dir
Data tranfer direction of the command
buf Data buffer of the command
buflen Length of data buffer
DESCRIPTION
Executes libata internal command with timeout. tf contains command on
entry and result on return. Timeout and error conditions are reported
via return value. No recovery action is taken after a command times
out. It’s caller’s duty to clean up after timeout.
LOCKING
None. Should be called with kernel context, might sleep.
AUTHOR
Jeff Garzik.