scc_bfe.h (166901) | scc_bfe.h (167822) |
---|---|
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 166901 2007-02-23 12:19:07Z piso $ | 26 * $FreeBSD: head/sys/dev/scc/scc_bfe.h 167822 2007-03-22 23:45:25Z 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 uint32_t sc_hwsig; /* Signal state. Used by HW driver. */ 134}; 135 136extern devclass_t scc_devclass; 137extern char scc_driver_name[]; 138 139int scc_bfe_attach(device_t dev); 140int scc_bfe_detach(device_t dev); | 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 uint32_t sc_hwsig; /* Signal state. Used by HW driver. */ 134}; 135 136extern devclass_t scc_devclass; 137extern char scc_driver_name[]; 138 139int scc_bfe_attach(device_t dev); 140int scc_bfe_detach(device_t dev); |
141int scc_bfe_probe(device_t dev, u_int, u_int); | 141int scc_bfe_probe(device_t dev, u_int regshft, u_int rclk, u_int rid); |
142 143struct resource *scc_bus_alloc_resource(device_t, device_t, int, int *, 144 u_long, u_long, u_long, u_int); 145int scc_bus_get_resource(device_t, device_t, int, int, u_long *, u_long *); 146int scc_bus_read_ivar(device_t, device_t, int, uintptr_t *); 147int scc_bus_release_resource(device_t, device_t, int, int, struct resource *); 148int scc_bus_setup_intr(device_t, device_t, struct resource *, int, 149 driver_filter_t *, void (*)(void *), void *, void **); 150int scc_bus_teardown_intr(device_t, device_t, struct resource *, void *); 151 152#endif /* _DEV_SCC_BFE_H_ */ | 142 143struct resource *scc_bus_alloc_resource(device_t, device_t, int, int *, 144 u_long, u_long, u_long, u_int); 145int scc_bus_get_resource(device_t, device_t, int, int, u_long *, u_long *); 146int scc_bus_read_ivar(device_t, device_t, int, uintptr_t *); 147int scc_bus_release_resource(device_t, device_t, int, int, struct resource *); 148int scc_bus_setup_intr(device_t, device_t, struct resource *, int, 149 driver_filter_t *, void (*)(void *), void *, void **); 150int scc_bus_teardown_intr(device_t, device_t, struct resource *, void *); 151 152#endif /* _DEV_SCC_BFE_H_ */ |