diff options
| author | 2007-05-19 04:10:20 +0000 | |
|---|---|---|
| committer | 2007-05-19 04:10:20 +0000 | |
| commit | 12620429da99217bd4414a03744e181f36ad405e (patch) | |
| tree | 34cb7b85a9392a7fba45446d8785f36b5273679d | |
| parent | hook up interrupts, but a little different to what i usually do. this maps (diff) | |
| download | wireguard-openbsd-12620429da99217bd4414a03744e181f36ad405e.tar.xz wireguard-openbsd-12620429da99217bd4414a03744e181f36ad405e.zip | |
stash the dma tag in sli_softc
| -rw-r--r-- | sys/dev/ic/slivar.h | 4 | ||||
| -rw-r--r-- | sys/dev/pci/sli_pci.c | 3 |
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; |
