scc_bfe.h (176772) | scc_bfe.h (178600) |
---|---|
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 176772 2008-03-03 18:20:17Z raj $ | 26 * $FreeBSD: head/sys/dev/scc/scc_bfe.h 178600 2008-04-26 18:40:59Z marcel $ |
27 */ 28 29#ifndef _DEV_SCC_BFE_H_ 30#define _DEV_SCC_BFE_H_ 31 32#include <sys/serial.h> 33 34/* --- 98 unchanged lines hidden (view full) --- 133 int sc_polled:1; 134 135 uint32_t sc_hwsig; /* Signal state. Used by HW driver. */ 136}; 137 138extern devclass_t scc_devclass; 139extern char scc_driver_name[]; 140 | 27 */ 28 29#ifndef _DEV_SCC_BFE_H_ 30#define _DEV_SCC_BFE_H_ 31 32#include <sys/serial.h> 33 34/* --- 98 unchanged lines hidden (view full) --- 133 int sc_polled:1; 134 135 uint32_t sc_hwsig; /* Signal state. Used by HW driver. */ 136}; 137 138extern devclass_t scc_devclass; 139extern char scc_driver_name[]; 140 |
141int scc_bfe_attach(device_t dev); | 141int scc_bfe_attach(device_t dev, u_int ipc); |
142int scc_bfe_detach(device_t dev); 143int scc_bfe_probe(device_t dev, u_int regshft, u_int rclk, u_int rid); 144 145struct resource *scc_bus_alloc_resource(device_t, device_t, int, int *, 146 u_long, u_long, u_long, u_int); 147int scc_bus_get_resource(device_t, device_t, int, int, u_long *, u_long *); 148int scc_bus_read_ivar(device_t, device_t, int, uintptr_t *); 149int scc_bus_release_resource(device_t, device_t, int, int, struct resource *); 150int scc_bus_setup_intr(device_t, device_t, struct resource *, int, 151 driver_filter_t *, void (*)(void *), void *, void **); 152int scc_bus_teardown_intr(device_t, device_t, struct resource *, void *); 153 154#endif /* _DEV_SCC_BFE_H_ */ | 142int scc_bfe_detach(device_t dev); 143int scc_bfe_probe(device_t dev, u_int regshft, u_int rclk, u_int rid); 144 145struct resource *scc_bus_alloc_resource(device_t, device_t, int, int *, 146 u_long, u_long, u_long, u_int); 147int scc_bus_get_resource(device_t, device_t, int, int, u_long *, u_long *); 148int scc_bus_read_ivar(device_t, device_t, int, uintptr_t *); 149int scc_bus_release_resource(device_t, device_t, int, int, struct resource *); 150int scc_bus_setup_intr(device_t, device_t, struct resource *, int, 151 driver_filter_t *, void (*)(void *), void *, void **); 152int scc_bus_teardown_intr(device_t, device_t, struct resource *, void *); 153 154#endif /* _DEV_SCC_BFE_H_ */ |