summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-05-19 04:10:21 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-05-19 04:10:21 +0000
commit25ff72cb196fe285f0ead51f2ee851c89f4d26dc (patch)
tree7e42cdd2aad1fe9dd2d0e7571dbc4e6df0cdd334 /sys
parent8661516cee45ffa7f32e2d931e2ba26e8003285d (diff)
stash the dma tag in sli_softc
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/slivar.h4
-rw-r--r--sys/dev/pci/sli_pci.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/slivar.h b/sys/dev/ic/slivar.h
index a9327f4c007..4c51fc61fb8 100644
--- a/sys/dev/ic/slivar.h
+++ b/sys/dev/ic/slivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: slivar.h,v 1.3 2007/05/19 04:05:40 dlg Exp $ */
+/* $OpenBSD: slivar.h,v 1.4 2007/05/19 04:10:20 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -20,6 +20,8 @@ struct sli_softc {
struct device sc_dev;
struct scsi_link sc_link;
+ bus_dma_tag_t sc_dmat;
+
bus_space_tag_t sc_iot_slim;
bus_space_handle_t sc_ioh_slim;
bus_size_t sc_ios_slim;
diff --git a/sys/dev/pci/sli_pci.c b/sys/dev/pci/sli_pci.c
index e3ef7472b97..15e1bf8ad3d 100644
--- a/sys/dev/pci/sli_pci.c
+++ b/sys/dev/pci/sli_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sli_pci.c,v 1.3 2007/05/19 04:05:40 dlg Exp $ */
+/* $OpenBSD: sli_pci.c,v 1.4 2007/05/19 04:10:20 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -77,6 +77,7 @@ sli_pci_attach(struct device *parent, struct device *self, void *aux)
psc->psc_pc = pa->pa_pc;
psc->psc_tag = pa->pa_tag;
psc->psc_ih = NULL;
+ sc->sc_dmat = pa->pa_dmat;
sc->sc_ios_slim = 0;
sc->sc_ios_reg = 0;