Deleted Added
full compact
digi.h (118509) digi.h (118607)
1/*-
2 * Copyright (c) 2001 Brian Somers <brian@Awfulhak.org>
3 * based on work by Slawa Olhovchenkov
4 * John Prince <johnp@knight-trosoft.com>
5 * Eric Hernes
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2001 Brian Somers <brian@Awfulhak.org>
3 * based on work by Slawa Olhovchenkov
4 * John Prince <johnp@knight-trosoft.com>
5 * Eric Hernes
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/dev/digi/digi.h 118509 2003-08-05 20:11:50Z bde $
29 * $FreeBSD: head/sys/dev/digi/digi.h 118607 2003-08-07 15:04:27Z jhb $
30 */
31
32#define W(p) (*(u_int16_t *)(p))
33#define vW(p) (*(u_int16_t volatile *)(p))
34#define D(p) (*(u_int32_t *)(p))
35#define vD(p) (*(u_int32_t volatile *)(p))
36
37#define CE_OVERRUN 0

--- 24 unchanged lines hidden (view full) ---

62
63 int status;
64#define ENABLED 1
65#define DIGI_DTR_OFF 2
66#define PAUSE_TX 8
67#define PAUSE_RX 16
68
69 int opencnt;
30 */
31
32#define W(p) (*(u_int16_t *)(p))
33#define vW(p) (*(u_int16_t volatile *)(p))
34#define D(p) (*(u_int32_t *)(p))
35#define vD(p) (*(u_int32_t volatile *)(p))
36
37#define CE_OVERRUN 0

--- 24 unchanged lines hidden (view full) ---

62
63 int status;
64#define ENABLED 1
65#define DIGI_DTR_OFF 2
66#define PAUSE_TX 8
67#define PAUSE_RX 16
68
69 int opencnt;
70 ushort txbufsize;
71 ushort rxbufsize;
70 u_short txbufsize;
71 u_short rxbufsize;
72 volatile struct board_chan *bc;
73 struct tty *tp;
74
75 dev_t dev[6];
76
77 u_char *txbuf;
78 u_char *rxbuf;
79 u_char txwin;

--- 66 unchanged lines hidden (view full) ---

146
147/* Digiboard per-board structure */
148struct digi_softc {
149 /* struct board_info */
150 device_t dev;
151
152 const char *name;
153 enum digi_board_status status;
72 volatile struct board_chan *bc;
73 struct tty *tp;
74
75 dev_t dev[6];
76
77 u_char *txbuf;
78 u_char *rxbuf;
79 u_char txwin;

--- 66 unchanged lines hidden (view full) ---

146
147/* Digiboard per-board structure */
148struct digi_softc {
149 /* struct board_info */
150 device_t dev;
151
152 const char *name;
153 enum digi_board_status status;
154 ushort numports; /* number of ports on card */
154 u_short numports; /* number of ports on card */
155 u_int port; /* I/O port */
156 u_int wport; /* window select I/O port */
157
158 struct {
159 struct resource *mem;
160 int mrid;
161 struct resource *irq;
162 int irqrid;

--- 57 unchanged lines hidden ---
155 u_int port; /* I/O port */
156 u_int wport; /* window select I/O port */
157
158 struct {
159 struct resource *mem;
160 int mrid;
161 struct resource *irq;
162 int irqrid;

--- 57 unchanged lines hidden ---