patch-2.4.23 linux-2.4.23/include/asm-ia64/sn/uart16550.h

Next file: linux-2.4.23/include/asm-ia64/sn/xtalk/xtalk.h
Previous file: linux-2.4.23/include/asm-ia64/sn/sn_sal.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/include/asm-ia64/sn/uart16550.h linux-2.4.23/include/asm-ia64/sn/uart16550.h
@@ -56,6 +56,9 @@
 #define		LCR_BITS7	0x02	/* 7 bits per char */
 #define		LCR_BITS8	0x03	/* 8 bits per char */
 
+#define		LCR_1_STOP_BITS	0x00	/* 1 stop bit */
+#define		LCR_2_STOP_BITS	0x04	/* 2 stop bits */
+
 #define		LCR_MASK_BITS_CHAR 		0x03
 #define 	LCR_MASK_STOP_BITS		0x04
 #define		LCR_MASK_PARITY_BITS	0x18
@@ -143,6 +146,9 @@
 #define DU_RTS_ASSERT(x)    ((x) |= MCR_RTS)
 #define DU_RTS_DEASSERT(x)  ((x) &= ~MCR_RTS)
 
+#define SER_DIVISOR(x, clk)		(((clk) + (x) * 8) / ((x) * 16))
+#define DIVISOR_TO_BAUD(div, clk)	((clk) / 16 / (div))
+
 
 /*
  * ioctl(fd, I_STR, arg)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)