From 7fed32b8456968877f42561e3ad3ea15fa9b0120 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 12 Dec 2006 02:24:21 +0000 Subject: remember our dma tag. be able to do dma is like, really cool. man. --- sys/dev/pci/ahci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci') 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 @@ -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; -- cgit v1.2.3