diff options
author | phk <phk@FreeBSD.org> | 2005-02-06 13:46:39 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-02-06 13:46:39 +0000 |
commit | 749e4957d99361a55cc80046a119444c1fc36bc7 (patch) | |
tree | b7d7b0f2029f00a02738382ec1c9896806724b5e /sys/isa/isavar.h | |
parent | cda00ab53db39a6c1352187633c92de5571ec3df (diff) | |
download | FreeBSD-src-749e4957d99361a55cc80046a119444c1fc36bc7.zip FreeBSD-src-749e4957d99361a55cc80046a119444c1fc36bc7.tar.gz |
Since we are quite unlikely to ever face another platform which
uses the i8237 without trying to emulate the PC architecture move
the register definitions for the i8237 chip into the central include
file for the chip, except for the PC98 case which is magic.
Add new isa_dmatc() function which tells us as cheaply as possible
if the terminal count has been reached for a given channel.
Diffstat (limited to 'sys/isa/isavar.h')
-rw-r--r-- | sys/isa/isavar.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/isa/isavar.h b/sys/isa/isavar.h index 57fad23..ab87fa3 100644 --- a/sys/isa/isavar.h +++ b/sys/isa/isavar.h @@ -159,14 +159,15 @@ extern devclass_t isab_devclass; extern intrmask_t isa_irq_pending(void); extern void isa_probe_children(device_t dev); -extern void isa_dmacascade(int chan); -extern void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan); -extern int isa_dma_init(int chan, u_int bouncebufsize, int flag); -extern void isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan); -extern int isa_dma_acquire(int chan); -extern void isa_dma_release(int chan); -extern int isa_dmastatus(int chan); -extern int isa_dmastop(int chan); +void isa_dmacascade(int chan); +void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan); +int isa_dma_init(int chan, u_int bouncebufsize, int flag); +void isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan); +int isa_dma_acquire(int chan); +void isa_dma_release(int chan); +int isa_dmastatus(int chan); +int isa_dmastop(int chan); +int isa_dmatc(int chan); #define isa_dmainit(chan, size) do { \ if (isa_dma_init(chan, size, M_NOWAIT)) \ |