isavar.h (117337) | isavar.h (135262) |
---|---|
1/*- 2 * Copyright (c) 1998 Doug Rabson 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 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1998 Doug Rabson 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 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/isa/isavar.h 117337 2003-07-08 18:56:58Z jhb $ | 26 * $FreeBSD: head/sys/isa/isavar.h 135262 2004-09-15 12:09:50Z phk $ |
27 */ 28 29#ifndef _ISA_ISAVAR_H_ 30#define _ISA_ISAVAR_H_ 31 32struct isa_config; 33struct isa_pnp_id; 34typedef void isa_config_cb(void *arg, struct isa_config *config, int enable); --- 120 unchanged lines hidden (view full) --- 155/* Device class for ISA bridges. */ 156extern devclass_t isab_devclass; 157 158extern intrmask_t isa_irq_pending(void); 159extern void isa_probe_children(device_t dev); 160 161extern void isa_dmacascade(int chan); 162extern void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan); | 27 */ 28 29#ifndef _ISA_ISAVAR_H_ 30#define _ISA_ISAVAR_H_ 31 32struct isa_config; 33struct isa_pnp_id; 34typedef void isa_config_cb(void *arg, struct isa_config *config, int enable); --- 120 unchanged lines hidden (view full) --- 155/* Device class for ISA bridges. */ 156extern devclass_t isab_devclass; 157 158extern intrmask_t isa_irq_pending(void); 159extern void isa_probe_children(device_t dev); 160 161extern void isa_dmacascade(int chan); 162extern void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan); |
163extern void isa_dmainit(int chan, u_int bouncebufsize); | 163extern int isa_dma_init(int chan, u_int bouncebufsize, int flag); |
164extern void isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan); 165extern int isa_dma_acquire(int chan); 166extern void isa_dma_release(int chan); 167extern int isa_dmastatus(int chan); 168extern int isa_dmastop(int chan); 169 | 164extern void isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan); 165extern int isa_dma_acquire(int chan); 166extern void isa_dma_release(int chan); 167extern int isa_dmastatus(int chan); 168extern int isa_dmastop(int chan); 169 |
170#define isa_dmainit(chan, size) do { \ 171 if (isa_dma_init(chan, size, M_NOWAIT)) \ 172 printf("WARNING: isa_dma_init(%d, %ju) failed\n", \ 173 (int)(chan), (uintmax_t)(size)); \ 174 } while (0) 175 |
|
170int isab_attach(device_t dev); 171 172#ifdef PC98 173#include <machine/bus.h> 174 175/* 176 * Allocate discontinuous resources for ISA bus. 177 */ 178struct resource * 179isa_alloc_resourcev(device_t child, int type, int *rid, 180 bus_addr_t *res, bus_size_t count, u_int flags); 181int 182isa_load_resourcev(struct resource *re, bus_addr_t *res, bus_size_t count); 183#endif 184 185#endif /* _KERNEL */ 186 187#endif /* !_ISA_ISAVAR_H_ */ | 176int isab_attach(device_t dev); 177 178#ifdef PC98 179#include <machine/bus.h> 180 181/* 182 * Allocate discontinuous resources for ISA bus. 183 */ 184struct resource * 185isa_alloc_resourcev(device_t child, int type, int *rid, 186 bus_addr_t *res, bus_size_t count, u_int flags); 187int 188isa_load_resourcev(struct resource *re, bus_addr_t *res, bus_size_t count); 189#endif 190 191#endif /* _KERNEL */ 192 193#endif /* !_ISA_ISAVAR_H_ */ |