Deleted Added
full compact
isavar.h (83051) isavar.h (92756)
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 83051 2001-09-05 03:54:33Z yokota $
26 * $FreeBSD: head/sys/isa/isavar.h 92756 2002-03-20 05:14:42Z alfred $
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);

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

162ISA_ACCESSOR(serial, SERIAL, int)
163ISA_ACCESSOR(logicalid, LOGICALID, int)
164ISA_ACCESSOR(compatid, COMPATID, int)
165ISA_ACCESSOR(configattr, CONFIGATTR, int)
166
167extern intrmask_t isa_irq_pending(void);
168extern void isa_probe_children(device_t dev);
169
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);

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

162ISA_ACCESSOR(serial, SERIAL, int)
163ISA_ACCESSOR(logicalid, LOGICALID, int)
164ISA_ACCESSOR(compatid, COMPATID, int)
165ISA_ACCESSOR(configattr, CONFIGATTR, int)
166
167extern intrmask_t isa_irq_pending(void);
168extern void isa_probe_children(device_t dev);
169
170extern void isa_dmacascade __P((int chan));
171extern void isa_dmadone __P((int flags, caddr_t addr, int nbytes, int chan));
172extern void isa_dmainit __P((int chan, u_int bouncebufsize));
173extern void isa_dmastart __P((int flags, caddr_t addr, u_int nbytes, int chan));
174extern int isa_dma_acquire __P((int chan));
175extern void isa_dma_release __P((int chan));
176extern int isa_dmastatus __P((int chan));
177extern int isa_dmastop __P((int chan));
170extern void isa_dmacascade(int chan);
171extern void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan);
172extern void isa_dmainit(int chan, u_int bouncebufsize);
173extern void isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan);
174extern int isa_dma_acquire(int chan);
175extern void isa_dma_release(int chan);
176extern int isa_dmastatus(int chan);
177extern int isa_dmastop(int chan);
178
179#ifdef PC98
180#include <machine/bus.h>
181
182/*
183 * Allocate discontinuous resources for ISA bus.
184 */
185struct resource *
186isa_alloc_resourcev(device_t child, int type, int *rid,
187 bus_addr_t *res, bus_size_t count, u_int flags);
188int
189isa_load_resourcev(struct resource *re, bus_addr_t *res, bus_size_t count);
190#endif
191
192#endif /* _KERNEL */
193
194#endif /* !_ISA_ISAVAR_H_ */
178
179#ifdef PC98
180#include <machine/bus.h>
181
182/*
183 * Allocate discontinuous resources for ISA bus.
184 */
185struct resource *
186isa_alloc_resourcev(device_t child, int type, int *rid,
187 bus_addr_t *res, bus_size_t count, u_int flags);
188int
189isa_load_resourcev(struct resource *re, bus_addr_t *res, bus_size_t count);
190#endif
191
192#endif /* _KERNEL */
193
194#endif /* !_ISA_ISAVAR_H_ */