ATA_TF_LOAD

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

 

NAME

ata_tf_load - send taskfile registers to host controller  

SYNOPSIS

"SYNOPSIS"

void ata_tf_load (struct ata_port * ap, struct ata_taskfile * tf);  

ARGUMENTS

ap
Port to which output is sent
tf
ATA taskfile register set
 

DESCRIPTION

Outputs ATA taskfile to standard ATA host controller using MMIO or PIO as indicated by the ATA_FLAG_MMIO flag. Writes the control, feature, nsect, lbal, lbam, and lbah registers. Optionally (ATA_TFLAG_LBA48) writes hob_feature, hob_nsect, hob_lbal, hob_lbam, and hob_lbah.

This function waits for idle (!BUSY and !DRQ) after writing registers. If the control register has a new value, this function also waits for idle after writing control and before writing the remaining registers.

May be used as the tf_load entry in ata_port_operations.  

LOCKING

Inherited from caller.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
LOCKING

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