From 60d89b9be5048de909d51426f606d78a33f5bcfd Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 11 Dec 2006 13:08:12 +0000 Subject: dont stash the implemented ports map, im going to use a different mechanism to figure out if a port is usable or not later on. --- sys/dev/pci/ahci.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sys/dev/pci/ahci.c') diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c index ce05b33733c..90ef6b0dfc1 100644 --- a/sys/dev/pci/ahci.c +++ b/sys/dev/pci/ahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahci.c,v 1.17 2006/12/11 13:06:33 dlg Exp $ */ +/* $OpenBSD: ahci.c,v 1.18 2006/12/11 13:08:11 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne @@ -178,8 +178,6 @@ struct ahci_softc { bus_space_handle_t sc_ioh; bus_size_t sc_ios; bus_dma_tag_t sc_dmat; - - u_int32_t sc_portmap; }; #define DEVNAME(_s) ((_s)->sc_dev.dv_xname) @@ -264,8 +262,6 @@ ahci_attach(struct device *parent, struct device *self, void *aux) printf("%s: capabilities: 0x%b ports: %d ncmds: %d gen: %s\n", DEVNAME(sc), reg, AHCI_FMT_CAP, AHCI_REG_CAP_NP(reg), AHCI_REG_CAP_NCS(reg), gen); - printf("%s: ports implemented: 0x%08x\n", DEVNAME(sc), - sc->sc_portmap); } #endif @@ -366,8 +362,6 @@ ahci_init(struct ahci_softc *sc) printf(": AHCI %s", revision); - sc->sc_portmap = ahci_read(sc, AHCI_REG_PI); - return (0); } -- cgit v1.2.3