diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-12-30 21:23:34 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-12-30 21:23:34 +0000 |
commit | fe8cb5140588688302411d0682fdeba281df60b8 (patch) | |
tree | 31194960fdf2d9a58f253cda4fc1ac39012c1eaf /sys/arch/sparc64 | |
parent | 8a627801838c875751516dd92172dd4e567e3b30 (diff) |
Pass down bus_dma tag.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/dev/vbus.c | 5 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/vbusvar.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vbus.c b/sys/arch/sparc64/dev/vbus.c index 09fc6c1914d..79d5963cf73 100644 --- a/sys/arch/sparc64/dev/vbus.c +++ b/sys/arch/sparc64/dev/vbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vbus.c,v 1.3 2008/11/10 16:50:13 art Exp $ */ +/* $OpenBSD: vbus.c,v 1.4 2008/12/30 21:23:33 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -32,6 +32,7 @@ extern todr_chip_handle_t todr_handle; struct vbus_softc { struct device sc_dv; bus_space_tag_t sc_bustag; + bus_dma_tag_t sc_dmatag; }; int vbus_cmp_cells(int *, int *, int *, int); @@ -71,6 +72,7 @@ vbus_attach(struct device *parent, struct device *self, void *aux) int node; sc->sc_bustag = vbus_alloc_bus_tag(sc, ma->ma_bustag); + sc->sc_dmatag = ma->ma_dmatag; printf("\n"); for (node = OF_child(ma->ma_node); node; node = OF_peer(node)) { @@ -83,6 +85,7 @@ vbus_attach(struct device *parent, struct device *self, void *aux) continue; va.va_name = buf; va.va_bustag = sc->sc_bustag; + va.va_dmatag = sc->sc_dmatag; getprop(node, "reg", sizeof(*va.va_reg), &va.va_nreg, (void **)&va.va_reg); getprop(node, "interrupts", sizeof(*va.va_intr), diff --git a/sys/arch/sparc64/dev/vbusvar.h b/sys/arch/sparc64/dev/vbusvar.h index f671ac7f27a..74439df8011 100644 --- a/sys/arch/sparc64/dev/vbusvar.h +++ b/sys/arch/sparc64/dev/vbusvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vbusvar.h,v 1.2 2008/10/12 09:17:22 kettenis Exp $ */ +/* $OpenBSD: vbusvar.h,v 1.3 2008/12/30 21:23:33 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -23,6 +23,7 @@ struct vbus_attach_args { int va_node; bus_space_tag_t va_bustag; + bus_dma_tag_t va_dmatag; u_int32_t *va_reg; u_int32_t *va_intr; |