summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_pc98.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2002-12-03 20:20:44 +0000
committersos <sos@FreeBSD.org>2002-12-03 20:20:44 +0000
commit71edc5e4eb36ba021cec4018ead8d4e7bd6d759d (patch)
tree905ab8bf0e6cc6504398fed7db55f39319883169 /sys/geom/geom_pc98.c
parent9a5da33a40507cd3fd2cebf1aa8999a6cdd27862 (diff)
downloadFreeBSD-src-71edc5e4eb36ba021cec4018ead8d4e7bd6d759d.zip
FreeBSD-src-71edc5e4eb36ba021cec4018ead8d4e7bd6d759d.tar.gz
Add support for the PC98 platform to the ATA driver.
This mostly consists of functionality to serialize accesses to the two ATA channels (which can also be used to "fix" certain PCI based controllers). Add support for Acard controllers. Enable the ATA driver in PC98 GENERIC, and add device hints. Update man page with latest support. The PC98 core team has kindly provided me with a PC98 machine that made this all possible, thanks to all that contributed to that effort, without that this would probably newer have been possible.. Approved by: re@
Diffstat (limited to 'sys/geom/geom_pc98.c')
-rw-r--r--sys/geom/geom_pc98.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/geom/geom_pc98.c b/sys/geom/geom_pc98.c
index 4896346..ebb2ecf 100644
--- a/sys/geom/geom_pc98.c
+++ b/sys/geom/geom_pc98.c
@@ -190,6 +190,10 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags)
sectorsize = cp->provider->sectorsize;
if (sectorsize < 512)
break;
+ if (cp->provider->mediasize / sectorsize < 17 * 8 * 65536) {
+ fwsectors = 17;
+ fwheads = 8;
+ }
gsp->frontstuff = sectorsize * fwsectors;
spercyl = (off_t)fwsectors * fwheads * sectorsize;
buf = g_read_data(cp, 0,
OpenPOWER on IntegriCloud