Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Aug 2009 02:04:09 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r196238 - projects/mips/sys/dev/ic
Message-ID:  <200908150204.n7F2497N054678@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Aug 15 02:04:09 2009
New Revision: 196238
URL: http://svn.freebsd.org/changeset/base/196238

Log:
  Add a couple of extra defines needed by the octeon uart.  Not sure
  this is the right place...

Modified:
  projects/mips/sys/dev/ic/ns16550.h

Modified: projects/mips/sys/dev/ic/ns16550.h
==============================================================================
--- projects/mips/sys/dev/ic/ns16550.h	Sat Aug 15 02:03:41 2009	(r196237)
+++ projects/mips/sys/dev/ic/ns16550.h	Sat Aug 15 02:04:09 2009	(r196238)
@@ -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]) */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908150204.n7F2497N054678>