diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-11-11 17:54:55 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-11-11 17:54:55 +0000 |
commit | 35c93cf738e694c577c6115391f6d6ba40dc0e0f (patch) | |
tree | b1cd019d16ac9ad0aec94b3baf97e2c2dcbe4a50 /sys/dev/tc/tc.c | |
parent | b37d7f96fb3abe514655717c4b8cf821c6eae0ca (diff) |
DEC 3000/400 has a 22.5MHz TURBOchannel bus instead of the usual 25MHz;
correctly report this.
Then, in asc@tc, compute synchronous transfer periods (involving the bus
clock) with a better accuracy.
ok krw@
Diffstat (limited to 'sys/dev/tc/tc.c')
-rw-r--r-- | sys/dev/tc/tc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/tc/tc.c b/sys/dev/tc/tc.c index 89765bafc6a..399378b40b2 100644 --- a/sys/dev/tc/tc.c +++ b/sys/dev/tc/tc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tc.c,v 1.19 2010/09/22 12:36:32 miod Exp $ */ +/* $OpenBSD: tc.c,v 1.20 2010/11/11 17:54:54 miod Exp $ */ /* $NetBSD: tc.c,v 1.29 2001/11/13 06:26:10 lukem Exp $ */ /* @@ -81,8 +81,10 @@ tcattach(parent, self, aux) tc_addr_t tcaddr; int i; - printf(": %s MHz clock\n", - tba->tba_speed == TC_SPEED_25_MHZ ? "25" : "12.5"); + if (tba->tba_speed & 1) + printf(": %d.5 MHz clock\n", tba->tba_speed / 2); + else + printf(": %d MHz clock\n", tba->tba_speed / 2); /* * Save important CPU/chipset information. |