Deleted Added
full compact
isavar.h (138506) isavar.h (141391)
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 138506 2004-12-07 05:30:02Z imp $
26 * $FreeBSD: head/sys/isa/isavar.h 141391 2005-02-06 13:46:39Z 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);

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

154ISA_ACCESSOR(configattr, CONFIGATTR, int)
155
156/* Device class for ISA bridges. */
157extern devclass_t isab_devclass;
158
159extern intrmask_t isa_irq_pending(void);
160extern void isa_probe_children(device_t dev);
161
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);

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

154ISA_ACCESSOR(configattr, CONFIGATTR, int)
155
156/* Device class for ISA bridges. */
157extern devclass_t isab_devclass;
158
159extern intrmask_t isa_irq_pending(void);
160extern void isa_probe_children(device_t dev);
161
162extern void isa_dmacascade(int chan);
163extern void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan);
164extern int isa_dma_init(int chan, u_int bouncebufsize, int flag);
165extern void isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan);
166extern int isa_dma_acquire(int chan);
167extern void isa_dma_release(int chan);
168extern int isa_dmastatus(int chan);
169extern int isa_dmastop(int chan);
162void isa_dmacascade(int chan);
163void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan);
164int isa_dma_init(int chan, u_int bouncebufsize, int flag);
165void isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan);
166int isa_dma_acquire(int chan);
167void isa_dma_release(int chan);
168int isa_dmastatus(int chan);
169int isa_dmastop(int chan);
170int isa_dmatc(int chan);
170
171#define isa_dmainit(chan, size) do { \
172 if (isa_dma_init(chan, size, M_NOWAIT)) \
173 printf("WARNING: isa_dma_init(%d, %ju) failed\n", \
174 (int)(chan), (uintmax_t)(size)); \
175 } while (0)
176
177int isab_attach(device_t dev);

--- 17 unchanged lines hidden ---
171
172#define isa_dmainit(chan, size) do { \
173 if (isa_dma_init(chan, size, M_NOWAIT)) \
174 printf("WARNING: isa_dma_init(%d, %ju) failed\n", \
175 (int)(chan), (uintmax_t)(size)); \
176 } while (0)
177
178int isab_attach(device_t dev);

--- 17 unchanged lines hidden ---