diff options
author | scottl <scottl@FreeBSD.org> | 2003-05-26 04:00:52 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2003-05-26 04:00:52 +0000 |
commit | 5f2aec7948925a38d9a95a47cb8bec978b87bc46 (patch) | |
tree | 837a16ab79b8ad3268e130e5d8f08dbe0f2438bb /sys/sparc64/include | |
parent | 23f766944414893832e8a3d10afbceded194916f (diff) | |
download | FreeBSD-src-5f2aec7948925a38d9a95a47cb8bec978b87bc46.zip FreeBSD-src-5f2aec7948925a38d9a95a47cb8bec978b87bc46.tar.gz |
De-orbit bus_dmamem_alloc_size(). It's a hack and was never used anyways.
No need for it to pollute the 5.x API any further.
Approved by: re (bmah)
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r-- | sys/sparc64/include/bus.h | 30 | ||||
-rw-r--r-- | sys/sparc64/include/iommuvar.h | 4 |
2 files changed, 0 insertions, 34 deletions
diff --git a/sys/sparc64/include/bus.h b/sys/sparc64/include/bus.h index bc6e518..c69c270 100644 --- a/sys/sparc64/include/bus.h +++ b/sys/sparc64/include/bus.h @@ -980,12 +980,8 @@ struct bus_dma_tag { /* * DMA memory utility functions. */ - int (*dt_dmamem_alloc_size)(bus_dma_tag_t, bus_dma_tag_t, void **, - int, bus_dmamap_t *, bus_size_t size); int (*dt_dmamem_alloc)(bus_dma_tag_t, bus_dma_tag_t, void **, int, bus_dmamap_t *); - void (*dt_dmamem_free_size)(bus_dma_tag_t, bus_dma_tag_t, void *, - bus_dmamap_t, bus_size_t size); void (*dt_dmamem_free)(bus_dma_tag_t, bus_dma_tag_t, void *, bus_dmamap_t); }; @@ -1096,19 +1092,6 @@ sparc64_dmamap_sync(bus_dma_tag_t pt, bus_dma_tag_t dt, bus_dmamap_t m, int op) sparc64_dmamap_sync((t), (t), (m), (op)) static __inline int -sparc64_dmamem_alloc_size(bus_dma_tag_t pt, bus_dma_tag_t dt, void **v, int f, - bus_dmamap_t *m, bus_size_t s) -{ - bus_dma_tag_t lt; - - for (lt = pt; lt->dt_dmamem_alloc_size == NULL; lt = lt->dt_parent) - ; - return ((*lt->dt_dmamem_alloc_size)(lt, dt, v, f, m, s)); -} -#define bus_dmamem_alloc_size(t, v, f, m, s) \ - sparc64_dmamem_alloc_size((t), (t), (v), (f), (m), (s)) - -static __inline int sparc64_dmamem_alloc(bus_dma_tag_t pt, bus_dma_tag_t dt, void **v, int f, bus_dmamap_t *m) { @@ -1122,19 +1105,6 @@ sparc64_dmamem_alloc(bus_dma_tag_t pt, bus_dma_tag_t dt, void **v, int f, sparc64_dmamem_alloc((t), (t), (v), (f), (m)) static __inline void -sparc64_dmamem_free_size(bus_dma_tag_t pt, bus_dma_tag_t dt, void *v, - bus_dmamap_t m, bus_size_t s) -{ - bus_dma_tag_t lt; - - for (lt = pt; lt->dt_dmamem_free_size == NULL; lt = lt->dt_parent) - ; - (*lt->dt_dmamem_free_size)(lt, dt, v, m, s); -} -#define bus_dmamem_free_size(t, v, m, s) \ - sparc64_dmamem_free_size((t), (t), (v), (m), (s)) - -static __inline void sparc64_dmamem_free(bus_dma_tag_t pt, bus_dma_tag_t dt, void *v, bus_dmamap_t m) { diff --git a/sys/sparc64/include/iommuvar.h b/sys/sparc64/include/iommuvar.h index 4584001..5337d14 100644 --- a/sys/sparc64/include/iommuvar.h +++ b/sys/sparc64/include/iommuvar.h @@ -95,12 +95,8 @@ void iommu_dvmamap_unload(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, bus_dmamap_t); void iommu_dvmamap_sync(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, bus_dmamap_t, int); -int iommu_dvmamem_alloc_size(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, - void **, int, bus_dmamap_t *, bus_size_t size); int iommu_dvmamem_alloc(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, void **, int, bus_dmamap_t *); -void iommu_dvmamem_free_size(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, - void *, bus_dmamap_t, bus_size_t size); void iommu_dvmamem_free(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, void *, bus_dmamap_t); |