isavar.h (184564) | isavar.h (185059) |
---|---|
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 184564 2008-11-02 18:48:54Z imp $ | 26 * $FreeBSD: head/sys/isa/isavar.h 185059 2008-11-18 21:01:54Z jhb $ |
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); --- 141 unchanged lines hidden (view full) --- 176int isa_dmatc(int chan); 177 178#define isa_dmainit(chan, size) do { \ 179 if (isa_dma_init(chan, size, M_NOWAIT)) \ 180 printf("WARNING: isa_dma_init(%d, %ju) failed\n", \ 181 (int)(chan), (uintmax_t)(size)); \ 182 } while (0) 183 | 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); --- 141 unchanged lines hidden (view full) --- 176int isa_dmatc(int chan); 177 178#define isa_dmainit(chan, size) do { \ 179 if (isa_dma_init(chan, size, M_NOWAIT)) \ 180 printf("WARNING: isa_dma_init(%d, %ju) failed\n", \ 181 (int)(chan), (uintmax_t)(size)); \ 182 } while (0) 183 |
184void isa_hinted_child(device_t parent, const char *name, int unit); 185void isa_hint_device_unit(device_t bus, device_t child, const char *name, 186 int *unitp); |
|
184int isab_attach(device_t dev); 185 186#ifdef PC98 187#include <machine/bus.h> 188 189/* 190 * Allocate discontinuous resources for ISA bus. 191 */ 192struct resource * 193isa_alloc_resourcev(device_t child, int type, int *rid, 194 bus_addr_t *res, bus_size_t count, u_int flags); 195int 196isa_load_resourcev(struct resource *re, bus_addr_t *res, bus_size_t count); 197#endif 198 199#endif /* _KERNEL */ 200 201#endif /* !_ISA_ISAVAR_H_ */ | 187int isab_attach(device_t dev); 188 189#ifdef PC98 190#include <machine/bus.h> 191 192/* 193 * Allocate discontinuous resources for ISA bus. 194 */ 195struct resource * 196isa_alloc_resourcev(device_t child, int type, int *rid, 197 bus_addr_t *res, bus_size_t count, u_int flags); 198int 199isa_load_resourcev(struct resource *re, bus_addr_t *res, bus_size_t count); 200#endif 201 202#endif /* _KERNEL */ 203 204#endif /* !_ISA_ISAVAR_H_ */ |