1. NAME

ata_read_native_max_address - Read native max address

2. SYNOPSIS

int ata_read_native_max_address(struct ata_device *  dev , u64 *  max_sectors );

3. ARGUMENTS

dev
    target device

max_sectors
    out parameter for the result native max address

4. DESCRIPTION

Perform an LBA48 or LBA28 native size query upon the device in question.

5. RETURNS

0 on success, -EACCES if command is aborted by the drive. -EIO on other errors.

6. AUTHOR

Jeff Garzik
    Author.

7. COPYRIGHT