summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-12-12 02:24:21 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-12-12 02:24:21 +0000
commit7fed32b8456968877f42561e3ad3ea15fa9b0120 (patch)
tree4ceecf39d6bd78ec72e80441c27d4cae87d38a5e /sys
parent7441aca1955f96f0d713781c48c81a9f107961e2 (diff)
remember our dma tag. be able to do dma is like, really cool. man.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/ahci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c
index f796a189689..42aed247b00 100644
--- a/sys/dev/pci/ahci.c
+++ b/sys/dev/pci/ahci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahci.c,v 1.25 2006/12/12 02:22:56 dlg Exp $ */
+/* $OpenBSD: ahci.c,v 1.26 2006/12/12 02:24:20 dlg Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -253,6 +253,8 @@ ahci_attach(struct device *parent, struct device *self, void *aux)
struct ahci_softc *sc = (struct ahci_softc *)self;
struct pci_attach_args *pa = aux;
+ sc->sc_dmat = pa->pa_dmat;
+
if (ahci_map_regs(sc, pa) != 0) {
/* error already printed by ahci_map_regs */
return;