summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio/sioreg.h
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>2002-01-30 17:22:04 +0000
committerjhay <jhay@FreeBSD.org>2002-01-30 17:22:04 +0000
commit2aa4b18cd1eaf39b83dacb13149fd9b9234ab9f0 (patch)
treec1fb40b4db9ad5449f78e150fc82173e2a30dc9e /sys/dev/sio/sioreg.h
parent192e988fe5f700937bd262b61b0a75a7e7b59825 (diff)
downloadFreeBSD-src-2aa4b18cd1eaf39b83dacb13149fd9b9234ab9f0.zip
FreeBSD-src-2aa4b18cd1eaf39b83dacb13149fd9b9234ab9f0.tar.gz
Add support for different serial clock frequencies and not just the
standard one of 1.8432MHz. This will be used by the puc (PCI "universal" communication card) device driver. Reviewed by: bde
Diffstat (limited to 'sys/dev/sio/sioreg.h')
-rw-r--r--sys/dev/sio/sioreg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sio/sioreg.h b/sys/dev/sio/sioreg.h
index 52d7658..a3fbc96 100644
--- a/sys/dev/sio/sioreg.h
+++ b/sys/dev/sio/sioreg.h
@@ -34,10 +34,12 @@
* $FreeBSD$
*/
+/* Receiver clock frequency for "standard" pc serial ports. */
+#define DEFAULT_RCLK 1843200
+#ifdef PC98
/* 16 bit baud rate divisor (lower byte in dca_data, upper in dca_ier) */
#define COMBRD(x) (1843200 / (16*(x)))
-#ifdef PC98
#define COMBRD_RSA(x) (14745600 / (16*(x)))
#endif
OpenPOWER on IntegriCloud