summaryrefslogtreecommitdiff
path: root/sys/dev/tc/tcvar.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-11-11 17:54:55 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-11-11 17:54:55 +0000
commit35c93cf738e694c577c6115391f6d6ba40dc0e0f (patch)
treeb1cd019d16ac9ad0aec94b3baf97e2c2dcbe4a50 /sys/dev/tc/tcvar.h
parentb37d7f96fb3abe514655717c4b8cf821c6eae0ca (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/tcvar.h')
-rw-r--r--sys/dev/tc/tcvar.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/tc/tcvar.h b/sys/dev/tc/tcvar.h
index f9d73392f23..6fa495db155 100644
--- a/sys/dev/tc/tcvar.h
+++ b/sys/dev/tc/tcvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcvar.h,v 1.15 2010/09/22 12:36:32 miod Exp $ */
+/* $OpenBSD: tcvar.h,v 1.16 2010/11/11 17:54:54 miod Exp $ */
/* $NetBSD: tcvar.h,v 1.17 2000/06/04 19:15:15 cgd Exp $ */
/*
@@ -136,7 +136,10 @@ void tc_intr_disestablish(struct device *, void *, const char *);
/*
* Miscellaneous definitions.
*/
-#define TC_SPEED_12_5_MHZ 0 /* 12.5MHz TC bus */
-#define TC_SPEED_25_MHZ 1 /* 25MHz TC bus */
+#define TC_SPEED_12_5_MHZ 25 /* 12.5MHz TC bus */
+#define TC_SPEED_22_5_MHZ 45 /* 22.5MHz TC bus */
+#define TC_SPEED_25_MHZ 50 /* 25MHz TC bus */
+
+#define TC_SPEED_TO_KHZ(s) ((s) * (1000 / 2))
#endif /* __DEV_TC_TCVAR_H__ */