uart_bus.h (119815) | uart_bus.h (119996) |
---|---|
1/* 2 * Copyright (c) 2003 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 2003 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/uart/uart_bus.h 119815 2003-09-06 23:13:47Z marcel $ | 26 * $FreeBSD: head/sys/dev/uart/uart_bus.h 119996 2003-09-11 23:06:42Z marcel $ |
27 */ 28 29#ifndef _DEV_UART_BUS_H_ 30#define _DEV_UART_BUS_H_ 31 | 27 */ 28 29#ifndef _DEV_UART_BUS_H_ 30#define _DEV_UART_BUS_H_ 31 |
32#ifndef KLD_MODULE 33#include "opt_uart.h" 34#endif 35 36#include <sys/timepps.h> 37 |
|
32/* Drain and flush targets. */ 33#define UART_DRAIN_RECEIVER 0x0001 34#define UART_DRAIN_TRANSMITTER 0x0002 35#define UART_FLUSH_RECEIVER UART_DRAIN_RECEIVER 36#define UART_FLUSH_TRANSMITTER UART_DRAIN_TRANSMITTER 37 38/* 39 * Interrupt sources (in priority order). See also uart_core.c --- 30 unchanged lines hidden (view full) --- 70#define UART_SIG_DDCD 0x1000 71#define UART_SIG_DRI 0x2000 72 73#define UART_SIGMASK_DTE 0x0003 74#define UART_SIGMASK_DCE 0x003c 75#define UART_SIGMASK_STATE 0x003f 76#define UART_SIGMASK_DELTA 0x3f00 77 | 38/* Drain and flush targets. */ 39#define UART_DRAIN_RECEIVER 0x0001 40#define UART_DRAIN_TRANSMITTER 0x0002 41#define UART_FLUSH_RECEIVER UART_DRAIN_RECEIVER 42#define UART_FLUSH_TRANSMITTER UART_DRAIN_TRANSMITTER 43 44/* 45 * Interrupt sources (in priority order). See also uart_core.c --- 30 unchanged lines hidden (view full) --- 76#define UART_SIG_DDCD 0x1000 77#define UART_SIG_DRI 0x2000 78 79#define UART_SIGMASK_DTE 0x0003 80#define UART_SIGMASK_DCE 0x003c 81#define UART_SIGMASK_STATE 0x003f 82#define UART_SIGMASK_DELTA 0x3f00 83 |
84#ifdef UART_PPS_ON_CTS 85#define UART_SIG_DPPS UART_SIG_DCTS 86#define UART_SIG_PPS UART_SIG_CTS 87#else 88#define UART_SIG_DPPS UART_SIG_DDCD 89#define UART_SIG_PPS UART_SIG_DCD 90#endif 91 |
|
78/* UART_IOCTL() requests */ 79#define UART_IOCTL_BREAK 1 80#define UART_IOCTL_IFLOW 2 81#define UART_IOCTL_OFLOW 3 82 83/* 84 * UART class & instance (=softc) 85 */ --- 42 unchanged lines hidden (view full) --- 128 int sc_rxget; 129 int sc_rxfifosz; /* Size of RX FIFO. */ 130 131 /* Transmitter data. */ 132 uint8_t *sc_txbuf; 133 int sc_txdatasz; 134 int sc_txfifosz; /* Size of TX FIFO and buffer. */ 135 | 92/* UART_IOCTL() requests */ 93#define UART_IOCTL_BREAK 1 94#define UART_IOCTL_IFLOW 2 95#define UART_IOCTL_OFLOW 3 96 97/* 98 * UART class & instance (=softc) 99 */ --- 42 unchanged lines hidden (view full) --- 142 int sc_rxget; 143 int sc_rxfifosz; /* Size of RX FIFO. */ 144 145 /* Transmitter data. */ 146 uint8_t *sc_txbuf; 147 int sc_txdatasz; 148 int sc_txfifosz; /* Size of TX FIFO and buffer. */ 149 |
150 /* Pulse capturing support (PPS). */ 151 struct pps_state sc_pps; 152 |
|
136 /* Upper layer data. */ 137 void *sc_softih; 138 uint32_t sc_ttypend; 139 union { 140 /* TTY specific data. */ 141 struct { 142 dev_t si[2]; /* We have 2 device special files. */ 143 struct tty *tp; --- 61 unchanged lines hidden --- | 153 /* Upper layer data. */ 154 void *sc_softih; 155 uint32_t sc_ttypend; 156 union { 157 /* TTY specific data. */ 158 struct { 159 dev_t si[2]; /* We have 2 device special files. */ 160 struct tty *tp; --- 61 unchanged lines hidden --- |