From c44c57c509d3c1d486d9862ce728b61791d5d440 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 12 Dec 2006 02:44:01 +0000 Subject: after allocating the ahci_port bits, stash it in the softc rather than drop it. im guessing at some point we'll want to use each port, knowing where they are can help. --- sys/dev/pci/ahci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c index c8fd227106a..f192129e084 100644 --- a/sys/dev/pci/ahci.c +++ b/sys/dev/pci/ahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahci.c,v 1.29 2006/12/12 02:41:50 dlg Exp $ */ +/* $OpenBSD: ahci.c,v 1.30 2006/12/12 02:44:00 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne @@ -472,6 +472,8 @@ ahci_port_alloc(struct ahci_softc *sc, u_int port) ahci_put_ccb(ap, ccb); } + sc->sc_ports[port] = ap; + return (0); freemaps: -- cgit v1.2.3