diff options
author | marius <marius@FreeBSD.org> | 2011-11-27 15:49:46 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2011-11-27 15:49:46 +0000 |
commit | eda2646a46d810e9a570a10d17f67ec11e965b21 (patch) | |
tree | 08ad2cd15e0b9406362d38fac5ff8600cdd62d80 /sys/sparc64/sparc64/ata_machdep.c | |
parent | d4bd483becb3c4303d13eb71ecf8cafbd7258ac1 (diff) | |
download | FreeBSD-src-eda2646a46d810e9a570a10d17f67ec11e965b21.zip FreeBSD-src-eda2646a46d810e9a570a10d17f67ec11e965b21.tar.gz |
Update comment.
Diffstat (limited to 'sys/sparc64/sparc64/ata_machdep.c')
-rw-r--r-- | sys/sparc64/sparc64/ata_machdep.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/sparc64/sparc64/ata_machdep.c b/sys/sparc64/sparc64/ata_machdep.c index 102748d..85ad14c 100644 --- a/sys/sparc64/sparc64/ata_machdep.c +++ b/sys/sparc64/sparc64/ata_machdep.c @@ -36,14 +36,13 @@ sparc64_ata_disk_firmware_geom_adjust(struct disk *disk) { /* - * The Sun disk label only uses 16-bit fields for cylinders, - * heads and sectors so the geometry of large IDE disks has - * to be adjusted. If the disk is > 32GB at 16 heads and 63 - * sectors, the sectors have to be adjusted to 255. If the - * the disk is even > 128GB, additionally adjust the heads - * to 255. - * XXX the OpenSolaris dad(7D) driver limits the mediasize - * to 128GB. + * The VTOC8 disk label only uses 16-bit fields for cylinders, heads + * and sectors so the geometry of large disks has to be adjusted. + * If the disk is > 32GB at 16 heads and 63 sectors, adjust to 255 + * sectors (this matches what the OpenSolaris dad(7D) driver does). + * If the the disk is even > 128GB, additionally adjust the heads to + * 255. This allows disks up to the 2TB limit of the extended VTOC8. + * XXX the OpenSolaris dad(7D) driver limits the mediasize to 128GB. */ if (disk->d_mediasize > (off_t)65535 * 16 * 63 * disk->d_sectorsize) disk->d_fwsectors = 255; |