diff options
author | benno <benno@FreeBSD.org> | 2006-05-23 00:41:12 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2006-05-23 00:41:12 +0000 |
commit | 30977bc35b2c6606b2b36368fa48f92b5f7dab3a (patch) | |
tree | f537b7c6f68a60e25b048f527b1dfed0b95789f5 /sys/dev/ic | |
parent | 713caab1d6be4eba0130d3c24e75ddd38e45e980 (diff) | |
download | FreeBSD-src-30977bc35b2c6606b2b36368fa48f92b5f7dab3a.zip FreeBSD-src-30977bc35b2c6606b2b36368fa48f92b5f7dab3a.tar.gz |
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
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ns16550.h | 3 |
1 files changed, 2 insertions, 1 deletions
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) */ |