summaryrefslogtreecommitdiffstats
path: root/sys/dev/ida/ida_disk.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2004-01-15 04:05:47 +0000
committermdodd <mdodd@FreeBSD.org>2004-01-15 04:05:47 +0000
commitcad1b4753f8f519b8d42e2f40d0387a13164c69d (patch)
tree560f48ae92c8da206d1d984fa6debce6dfe5d14e /sys/dev/ida/ida_disk.c
parent5a24570752af1016a359842690d5849bb03e911c (diff)
downloadFreeBSD-src-cad1b4753f8f519b8d42e2f40d0387a13164c69d.zip
FreeBSD-src-cad1b4753f8f519b8d42e2f40d0387a13164c69d.tar.gz
- Add comments.
- Add more command defines and data structures. - Re-organize struct ida_drive_info to factor out struct ida_drive_info which will be used elsewhere.
Diffstat (limited to 'sys/dev/ida/ida_disk.c')
-rw-r--r--sys/dev/ida/ida_disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c
index 1a015f9..f554bac 100644
--- a/sys/dev/ida/ida_disk.c
+++ b/sys/dev/ida/ida_disk.c
@@ -190,9 +190,9 @@ idad_attach(device_t dev)
return (ENXIO);
}
- drv->cylinders = dinfo.ncylinders;
- drv->heads = dinfo.nheads;
- drv->sectors = dinfo.nsectors;
+ drv->cylinders = dinfo.dp.ncylinders;
+ drv->heads = dinfo.dp.nheads;
+ drv->sectors = dinfo.dp.nsectors;
drv->secsize = dinfo.secsize == 0 ? 512 : dinfo.secsize;
drv->secperunit = dinfo.secperunit;
OpenPOWER on IntegriCloud