Name

do_drive_set_taskfiles — write the drive taskfile settings from _GTF

Synopsis

int do_drive_set_taskfiles (struct ata_port *  ap,
 struct ata_device *  atadev,
 unsigned int  gtf_length,
 unsigned long  gtf_address);

Arguments

ap

the ata_port for the drive

atadev

target ata_device

gtf_length

total number of bytes of _GTF taskfiles

gtf_address

location of _GTF taskfile arrays

Description

This applies to both PATA and SATA drives.

Write {gtf_address, length gtf_length} in groups of REGS_PER_GTF bytes.