diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-12-12 02:44:01 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-12-12 02:44:01 +0000 |
commit | c44c57c509d3c1d486d9862ce728b61791d5d440 (patch) | |
tree | 5a94fc493b87df2d7c94fc55046e18789088aa72 /sys/dev/pci/ahci.c | |
parent | 2e1a1c4fca8b75bf5fadfa95afaed986d5e40406 (diff) |
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.
Diffstat (limited to 'sys/dev/pci/ahci.c')
-rw-r--r-- | sys/dev/pci/ahci.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <dlg@openbsd.org> @@ -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: |