aboutsummaryrefslogtreecommitdiff
path: root/sys/arm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/busdma_machdep.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/sys/arm/arm/busdma_machdep.c b/sys/arm/arm/busdma_machdep.c
index 25af44c17e6e..7d978ca0163d 100644
--- a/sys/arm/arm/busdma_machdep.c
+++ b/sys/arm/arm/busdma_machdep.c
@@ -577,38 +577,7 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment,
}
void
-bus_dma_template_init(bus_dma_tag_template_t *t, bus_dma_tag_t parent)
-{
-
- if (t == NULL)
- return;
-
- t->parent = parent;
- t->alignment = 1;
- t->boundary = 0;
- t->lowaddr = t->highaddr = BUS_SPACE_MAXADDR;
- t->maxsize = t->maxsegsize = BUS_SPACE_MAXSIZE;
- t->nsegments = BUS_SPACE_UNRESTRICTED;
- t->lockfunc = NULL;
- t->lockfuncarg = NULL;
- t->flags = 0;
-}
-
-int
-bus_dma_template_tag(bus_dma_tag_template_t *t, bus_dma_tag_t *dmat)
-{
-
- if (t == NULL || dmat == NULL)
- return (EINVAL);
-
- return (bus_dma_tag_create(t->parent, t->alignment, t->boundary,
- t->lowaddr, t->highaddr, NULL, NULL, t->maxsize,
- t->nsegments, t->maxsegsize, t->flags, t->lockfunc, t->lockfuncarg,
- dmat));
-}
-
-void
-bus_dma_template_clone(bus_dma_tag_template_t *t, bus_dma_tag_t dmat)
+bus_dma_template_clone(bus_dma_template_t *t, bus_dma_tag_t dmat)
{
if (t == NULL || dmat == NULL)