Deleted Added
full compact
uart_bus.h (155973) uart_bus.h (157300)
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 155973 2006-02-24 05:40:17Z marcel $
26 * $FreeBSD: head/sys/dev/uart/uart_bus.h 157300 2006-03-30 18:37:03Z marcel $
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

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

76extern struct uart_class uart_z8530_class;
77
78struct uart_softc {
79 KOBJ_FIELDS;
80 struct uart_class *sc_class;
81 struct uart_bas sc_bas;
82 device_t sc_dev;
83
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

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

76extern struct uart_class uart_z8530_class;
77
78struct uart_softc {
79 KOBJ_FIELDS;
80 struct uart_class *sc_class;
81 struct uart_bas sc_bas;
82 device_t sc_dev;
83
84 struct mtx sc_hwmtx; /* Spinlock protecting hardware. */
84 struct mtx sc_hwmtx_s; /* Spinlock protecting hardware. */
85 struct mtx *sc_hwmtx;
85
86 struct resource *sc_rres; /* Register resource. */
87 int sc_rrid;
88 int sc_rtype; /* SYS_RES_{IOPORT|MEMORY}. */
89 struct resource *sc_ires; /* Interrupt resource. */
90 void *sc_icookie;
91 int sc_irid;
92

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

134 } sc_u;
135};
136
137extern devclass_t uart_devclass;
138extern char uart_driver_name[];
139
140int uart_bus_attach(device_t dev);
141int uart_bus_detach(device_t dev);
86
87 struct resource *sc_rres; /* Register resource. */
88 int sc_rrid;
89 int sc_rtype; /* SYS_RES_{IOPORT|MEMORY}. */
90 struct resource *sc_ires; /* Interrupt resource. */
91 void *sc_icookie;
92 int sc_irid;
93

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

135 } sc_u;
136};
137
138extern devclass_t uart_devclass;
139extern char uart_driver_name[];
140
141int uart_bus_attach(device_t dev);
142int uart_bus_detach(device_t dev);
143serdev_intr_t *uart_bus_ihand(device_t dev, int ipend);
142int uart_bus_probe(device_t dev, int regshft, int rclk, int rid, int chan);
144int uart_bus_probe(device_t dev, int regshft, int rclk, int rid, int chan);
145int uart_bus_sysdev(device_t dev);
143
144int uart_tty_attach(struct uart_softc *);
145int uart_tty_detach(struct uart_softc *);
146void uart_tty_intr(void *arg);
147
148/*
149 * Receive buffer operations.
150 */

--- 40 unchanged lines hidden ---
146
147int uart_tty_attach(struct uart_softc *);
148int uart_tty_detach(struct uart_softc *);
149void uart_tty_intr(void *arg);
150
151/*
152 * Receive buffer operations.
153 */

--- 40 unchanged lines hidden ---