ns16550.h revision 103795
150276Speter/*- 250276Speter * Copyright (c) 1991 The Regents of the University of California. 3166124Srafan * All rights reserved. 450276Speter * 550276Speter * Redistribution and use in source and binary forms, with or without 650276Speter * modification, are permitted provided that the following conditions 750276Speter * are met: 850276Speter * 1. Redistributions of source code must retain the above copyright 950276Speter * notice, this list of conditions and the following disclaimer. 1050276Speter * 2. Redistributions in binary form must reproduce the above copyright 1150276Speter * notice, this list of conditions and the following disclaimer in the 1250276Speter * documentation and/or other materials provided with the distribution. 1350276Speter * 3. All advertising materials mentioning features or use of this software 1450276Speter * must display the following acknowledgement: 1550276Speter * This product includes software developed by the University of 1650276Speter * California, Berkeley and its contributors. 1750276Speter * 4. Neither the name of the University nor the names of its contributors 1850276Speter * may be used to endorse or promote products derived from this software 1950276Speter * without specific prior written permission. 2050276Speter * 2150276Speter * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2250276Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2350276Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2450276Speter * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2550276Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2650276Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2750276Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2850276Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2950276Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30166124Srafan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3150276Speter * SUCH DAMAGE. 3250276Speter * 3350276Speter * from: @(#)ns16550.h 7.1 (Berkeley) 5/9/91 3450276Speter * $FreeBSD: head/sys/dev/ic/ns16550.h 103795 2002-09-22 08:51:31Z phk $ 3550276Speter */ 3650276Speter 3750276Speter/* 3850276Speter * NS16550 UART registers 3950276Speter */ 4050276Speter#define com_data 0 /* data register (R/W) */ 4150276Speter#define com_dlbl 0 /* divisor latch low (W) */ 4250276Speter#define com_dlbh 1 /* divisor latch high (W) */ 4350276Speter#define com_ier 1 /* interrupt enable (W) */ 4450276Speter#define com_iir 2 /* interrupt identification (R) */ 45166124Srafan#define com_fifo 2 /* FIFO control (W) */ 4650276Speter#define com_lctl 3 /* line control register (R/W) */ 4750276Speter#define com_cfcr 3 /* line control register (R/W) */ 4850276Speter#define com_mcr 4 /* modem control register (R/W) */ 4950276Speter#define com_lsr 5 /* line status register (R/W) */ 5050276Speter#define com_msr 6 /* modem status register (R/W) */ 5150276Speter#define com_scr 7 /* scratch register for 16450 up (R/W) */ 5250276Speter