Sync w/ i386 port:

Eliminate some needless indirection through ISA DMA front-end functions.
This commit is contained in:
thorpej 1998-06-03 21:55:26 +00:00
parent e39ca9bf6f
commit f8acb6d6fa
1 changed files with 5 additions and 67 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadma_machdep.c,v 1.9 1998/06/03 21:52:36 thorpej Exp $ */
/* $NetBSD: isadma_machdep.c,v 1.10 1998/06/03 21:55:26 thorpej Exp $ */
#define ISA_DMA_STATS
@ -83,13 +83,6 @@ void _isa_bus_dmamap_sync __P((bus_dma_tag_t, bus_dmamap_t,
int _isa_bus_dmamem_alloc __P((bus_dma_tag_t, bus_size_t, bus_size_t,
bus_size_t, bus_dma_segment_t *, int, int *, int));
void _isa_bus_dmamem_free __P((bus_dma_tag_t,
bus_dma_segment_t *, int));
int _isa_bus_dmamem_map __P((bus_dma_tag_t, bus_dma_segment_t *,
int, size_t, caddr_t *, int));
void _isa_bus_dmamem_unmap __P((bus_dma_tag_t, caddr_t, size_t));
int _isa_bus_dmamem_mmap __P((bus_dma_tag_t, bus_dma_segment_t *,
int, int, int, int));
int _isa_dma_alloc_bouncebuf __P((bus_dma_tag_t, bus_dmamap_t,
bus_size_t, int));
@ -111,10 +104,10 @@ struct bebox_bus_dma_tag isa_bus_dma_tag = {
_isa_bus_dmamap_unload,
_isa_bus_dmamap_sync,
_isa_bus_dmamem_alloc,
_isa_bus_dmamem_free,
_isa_bus_dmamem_map,
_isa_bus_dmamem_unmap,
_isa_bus_dmamem_mmap,
_bus_dmamem_free,
_bus_dmamem_map,
_bus_dmamem_unmap,
_bus_dmamem_mmap,
};
/**********************************************************************
@ -609,61 +602,6 @@ _isa_bus_dmamem_alloc(t, size, alignment, boundary, segs, nsegs, rsegs, flags)
segs, nsegs, rsegs, flags, 0, high));
}
/*
* Free memory safe for ISA DMA.
*/
void
_isa_bus_dmamem_free(t, segs, nsegs)
bus_dma_tag_t t;
bus_dma_segment_t *segs;
int nsegs;
{
_bus_dmamem_free(t, segs, nsegs);
}
/*
* Map ISA DMA-safe memory into kernel virtual address space.
*/
int
_isa_bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
bus_dma_tag_t t;
bus_dma_segment_t *segs;
int nsegs;
size_t size;
caddr_t *kvap;
int flags;
{
return (_bus_dmamem_map(t, segs, nsegs, size, kvap, flags));
}
/*
* Unmap ISA DMA-safe memory from kernel virtual address space.
*/
void
_isa_bus_dmamem_unmap(t, kva, size)
bus_dma_tag_t t;
caddr_t kva;
size_t size;
{
_bus_dmamem_unmap(t, kva, size);
}
/*
* mmap(2) ISA DMA-safe memory.
*/
int
_isa_bus_dmamem_mmap(t, segs, nsegs, off, prot, flags)
bus_dma_tag_t t;
bus_dma_segment_t *segs;
int nsegs, off, prot, flags;
{
return (_bus_dmamem_mmap(t, segs, nsegs, off, prot, flags));
}
/**********************************************************************
* ISA DMA utility functions
**********************************************************************/