diff options
author | asami <asami@FreeBSD.org> | 1996-09-12 11:12:18 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1996-09-12 11:12:18 +0000 |
commit | eb29d43f47d2764ad43636b3330ead07bc46bd57 (patch) | |
tree | 7a5dd9f80c049a86290c39b23a26fb62a527daa9 /sys/dev | |
parent | 0db650cebc177b2f5bd89b47d0ede89ccbef2bfe (diff) | |
download | FreeBSD-src-eb29d43f47d2764ad43636b3330ead07bc46bd57.zip FreeBSD-src-eb29d43f47d2764ad43636b3330ead07bc46bd57.tar.gz |
Another round of merge/update.
(1) Add PC98 support to apm_bios.h and ns16550.h, remove pc98/pc98/ic
(2) Move PC98 specific code out of cpufunc.h (to pc98.h)
(3) Let the boot subtrees look more alike
Submitted by: The FreeBSD(98) Development Team
<freebsd98-hackers@jp.freebsd.org>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/ns16550.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sys/dev/ic/ns16550.h b/sys/dev/ic/ns16550.h index ff59757..dae85bc 100644 --- a/sys/dev/ic/ns16550.h +++ b/sys/dev/ic/ns16550.h @@ -31,13 +31,25 @@ * SUCH DAMAGE. * * from: @(#)ns16550.h 7.1 (Berkeley) 5/9/91 - * $Id$ + * $Id: ns16550.h,v 1.2 1993/10/16 13:48:52 rgrimes Exp $ */ /* * NS16550 UART registers */ - +#ifdef PC98 +#define com_data 0x000 /* data register (R/W) */ +#define com_dlbl 0x000 /* divisor latch low (W) */ +#define com_dlbh 0x100 /* divisor latch high (W) */ +#define com_ier 0x100 /* interrupt enable (W) */ +#define com_iir 0x200 /* interrupt identification (R) */ +#define com_fifo 0x200 /* FIFO control (W) */ +#define com_lctl 0x300 /* line control register (R/W) */ +#define com_cfcr 0x300 /* line control register (R/W) */ +#define com_mcr 0x400 /* modem control register (R/W) */ +#define com_lsr 0x500 /* line status register (R/W) */ +#define com_msr 0x600 /* modem status register (R/W) */ +#else /* IBM-PC */ #define com_data 0 /* data register (R/W) */ #define com_dlbl 0 /* divisor latch low (W) */ #define com_dlbh 1 /* divisor latch high (W) */ @@ -49,3 +61,4 @@ #define com_mcr 4 /* modem control register (R/W) */ #define com_lsr 5 /* line status register (R/W) */ #define com_msr 6 /* modem status register (R/W) */ +#endif /* PC98 */ |