Deleted Added
full compact
scc_bfe.h (157299) scc_bfe.h (157351)
1/*-
2 * Copyright (c) 2004-2006 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) 2004-2006 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/scc/scc_bfe.h 157299 2006-03-30 18:33:22Z marcel $
26 * $FreeBSD: head/sys/dev/scc/scc_bfe.h 157351 2006-04-01 04:51:56Z marcel $
27 */
28
29#ifndef _DEV_SCC_BFE_H_
30#define _DEV_SCC_BFE_H_
31
32#include <sys/serial.h>
33
34/*

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

98 * SCC class & instance (=softc)
99 */
100struct scc_class {
101 KOBJ_CLASS_FIELDS;
102 u_int cl_channels; /* Number of independent channels. */
103 u_int cl_class; /* SCC bus class ID. */
104 u_int cl_modes; /* Supported modes (bitset). */
105 int cl_range;
27 */
28
29#ifndef _DEV_SCC_BFE_H_
30#define _DEV_SCC_BFE_H_
31
32#include <sys/serial.h>
33
34/*

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

98 * SCC class & instance (=softc)
99 */
100struct scc_class {
101 KOBJ_CLASS_FIELDS;
102 u_int cl_channels; /* Number of independent channels. */
103 u_int cl_class; /* SCC bus class ID. */
104 u_int cl_modes; /* Supported modes (bitset). */
105 int cl_range;
106 u_int cl_rclk;
107 u_int cl_regshft;
108};
109
110extern struct scc_class scc_sab82532_class;
111extern struct scc_class scc_z8530_class;
112
113struct scc_softc {
114 KOBJ_FIELDS;
115 struct scc_class *sc_class;

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

134 uint32_t sc_hwsig; /* Signal state. Used by HW driver. */
135};
136
137extern devclass_t scc_devclass;
138extern char scc_driver_name[];
139
140int scc_bfe_attach(device_t dev);
141int scc_bfe_detach(device_t dev);
106};
107
108extern struct scc_class scc_sab82532_class;
109extern struct scc_class scc_z8530_class;
110
111struct scc_softc {
112 KOBJ_FIELDS;
113 struct scc_class *sc_class;

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

132 uint32_t sc_hwsig; /* Signal state. Used by HW driver. */
133};
134
135extern devclass_t scc_devclass;
136extern char scc_driver_name[];
137
138int scc_bfe_attach(device_t dev);
139int scc_bfe_detach(device_t dev);
142int scc_bfe_probe(device_t dev);
140int scc_bfe_probe(device_t dev, u_int, u_int);
143
144struct resource *scc_bus_alloc_resource(device_t, device_t, int, int *,
145 u_long, u_long, u_long, u_int);
146int scc_bus_get_resource(device_t, device_t, int, int, u_long *, u_long *);
147int scc_bus_read_ivar(device_t, device_t, int, uintptr_t *);
148int scc_bus_release_resource(device_t, device_t, int, int, struct resource *);
149int scc_bus_setup_intr(device_t, device_t, struct resource *, int,
150 void (*)(void *), void *, void **);
151int scc_bus_teardown_intr(device_t, device_t, struct resource *, void *);
152
153#endif /* _DEV_SCC_BFE_H_ */
141
142struct resource *scc_bus_alloc_resource(device_t, device_t, int, int *,
143 u_long, u_long, u_long, u_int);
144int scc_bus_get_resource(device_t, device_t, int, int, u_long *, u_long *);
145int scc_bus_read_ivar(device_t, device_t, int, uintptr_t *);
146int scc_bus_release_resource(device_t, device_t, int, int, struct resource *);
147int scc_bus_setup_intr(device_t, device_t, struct resource *, int,
148 void (*)(void *), void *, void **);
149int scc_bus_teardown_intr(device_t, device_t, struct resource *, void *);
150
151#endif /* _DEV_SCC_BFE_H_ */