Name

ata_tf_read_block — Read block address from ATA taskfile

Synopsis

u64 ata_tf_read_block (const struct ata_taskfile * tf,
 struct ata_device * dev);
 

Arguments

const struct ata_taskfile * tf

ATA taskfile of interest

struct ata_device * dev

ATA device tf belongs to

Description

LOCKING: None.

Read block address from tf. This function can handle all three address formats - LBA, LBA48 and CHS. tf->protocol and flags select the address format to use.

Return

Block address read from tf.