From 30977bc35b2c6606b2b36368fa48f92b5f7dab3a Mon Sep 17 00:00:00 2001 From: benno Date: Tue, 23 May 2006 00:41:12 +0000 Subject: Allow uart(4)'s ns8250 driver to work with devices whose regshift is > 0. - Rename REG_DL to REG_DLL and REG_DLH. - Always treat DLL and DLH as two separate 8-bit registers instead of one 16-bit register. Additionally, remove the probe for the high 4 bits of IER being 0 and don't assume we can always read/write 0 to/from those bits. These changes allow uart(4) to drive the UARTs on the Intel XScale PXA255. Reviewed by: marcel --- sys/dev/ic/ns16550.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/ns16550.h b/sys/dev/ic/ns16550.h index 29b32c5..0400f2b 100644 --- a/sys/dev/ic/ns16550.h +++ b/sys/dev/ic/ns16550.h @@ -127,7 +127,8 @@ #define com_dlbl com_dll #define com_dlm 1 /* divisor latch high (R/W) */ #define com_dlbh com_dlm -#define REG_DL com_dll +#define REG_DLL com_dll +#define REG_DLH com_dlm /* 16450 register #7. Not multiplexed. */ #define com_scr 7 /* scratch register (R/W) */ -- cgit v1.1