summaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-09-28 12:11:15 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-09-28 12:11:15 -0400
commit64f09c98d7fce21dcb8da9f248e4159eb1ec245e (patch)
treee03ed75665d536438fcb79b468a439caacd3d7dc /include/linux/libata.h
parent14be71f4c5c5ad1e222c5202ee6d234e9c8828b7 (diff)
parent98ed72deebfd2b55b7e1bb94c8175b1169999212 (diff)
downloadop-kernel-dev-64f09c98d7fce21dcb8da9f248e4159eb1ec245e.zip
op-kernel-dev-64f09c98d7fce21dcb8da9f248e4159eb1ec245e.tar.gz
/spare/repo/libata-dev branch 'chs-support'
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index bb2d916..4739a75 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -97,6 +97,7 @@ enum {
ATA_DFLAG_LBA48 = (1 << 0), /* device supports LBA48 */
ATA_DFLAG_PIO = (1 << 1), /* device currently in PIO mode */
ATA_DFLAG_LOCK_SECTORS = (1 << 2), /* don't adjust max_sectors */
+ ATA_DFLAG_LBA = (1 << 3), /* device supports LBA */
ATA_DEV_UNKNOWN = 0, /* unknown device */
ATA_DEV_ATA = 1, /* ATA device */
@@ -282,6 +283,11 @@ struct ata_device {
u8 xfer_protocol; /* taskfile xfer protocol */
u8 read_cmd; /* opcode to use on read */
u8 write_cmd; /* opcode to use on write */
+
+ /* for CHS addressing */
+ u16 cylinders; /* Number of cylinders */
+ u16 heads; /* Number of heads */
+ u16 sectors; /* Number of sectors per track */
};
struct ata_port {
OpenPOWER on IntegriCloud