summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-08-15 02:04:09 +0000
committerimp <imp@FreeBSD.org>2009-08-15 02:04:09 +0000
commitb5357f1ad0488e1a88fba98d67350539ec356254 (patch)
tree8da270cb4086396b20bd8861d23db6b28ecfc548 /sys/dev
parentf092f63792f0fe494b476dc93474779a92b84338 (diff)
downloadFreeBSD-src-b5357f1ad0488e1a88fba98d67350539ec356254.zip
FreeBSD-src-b5357f1ad0488e1a88fba98d67350539ec356254.tar.gz
Add a couple of extra defines needed by the octeon uart. Not sure
this is the right place...
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/ns16550.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ic/ns16550.h b/sys/dev/ic/ns16550.h
index 400088c..635270c 100644
--- a/sys/dev/ic/ns16550.h
+++ b/sys/dev/ic/ns16550.h
@@ -52,6 +52,7 @@
#define REG_IIR com_iir
#define IIR_IMASK 0xf
#define IIR_RXTOUT 0xc
+#define IIR_BUSY 0x7
#define IIR_RLS 0x6
#define IIR_RXRDY 0x4
#define IIR_TXRDY 0x2
@@ -181,6 +182,10 @@
#define com_xoff1 6 /* XOFF 1 character (R/W) */
#define com_xoff2 7 /* XOFF 2 character (R/W) */
+#define com_usr 39 /* Octeon 16750/16550 Uart Status Reg */
+#define REG_USR com_usr
+#define USR_TXFIFO_NOTFULL 2 /* Uart TX FIFO Not full */
+
/* 16950 register #1. Access enabled by ACR[7]. Also requires !LCR[7]. */
#define com_asr 1 /* additional status register (R[0-7]/W[0-1]) */
OpenPOWER on IntegriCloud