summaryrefslogtreecommitdiff
path: root/sys/dev/ic/comreg.h
diff options
context:
space:
mode:
authorJoshua Stein <jcs@cvs.openbsd.org>2018-04-15 15:07:26 +0000
committerJoshua Stein <jcs@cvs.openbsd.org>2018-04-15 15:07:26 +0000
commit7b3722a75dfb4c9076931aac499a2f91133c0d60 (patch)
treedba91b5ce2fdb93be4fe35b7878228e97f68d46c /sys/dev/ic/comreg.h
parente4d715a9eb7c4dad4d9d80590f18ca457119f220 (diff)
The Exar XR17V354 has 4 com ports that have a 256-byte FIFO, use a
frequency of 125Mhz, and have a unique sleep register. A custom interrupt handler is setup in puc for these ports so it can check a register which reports which ports triggered the interrupt, rather than having to run comintr for every port every time. ok mlarkin deraadt
Diffstat (limited to 'sys/dev/ic/comreg.h')
-rw-r--r--sys/dev/ic/comreg.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/comreg.h b/sys/dev/ic/comreg.h
index 8771c454f44..96ee9fcc764 100644
--- a/sys/dev/ic/comreg.h
+++ b/sys/dev/ic/comreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: comreg.h,v 1.17 2016/09/03 14:43:37 jsg Exp $ */
+/* $OpenBSD: comreg.h,v 1.18 2018/04/15 15:07:25 jcs Exp $ */
/* $NetBSD: comreg.h,v 1.8 1996/02/05 23:01:50 scottr Exp $ */
/*
@@ -182,6 +182,11 @@
#define COM_NPORTS 8
+/* Exar XR17V35X */
+#define UART_EXAR_INT0 0x80
+#define UART_EXAR_SLEEP 0x8b /* Sleep mode */
+#define UART_EXAR_DVID 0x8d /* Device identification */
+
/*
* WARNING: Serial console is assumed to be at COM1 address
*/