Module Name: src Committed By: phx Date: Wed Mar 9 20:35:56 UTC 2011
Modified Files: src/sys/arch/sandpoint/stand/altboot: pciide.c Log Message: Check the PCI-interface for legacy/native mode, not the PCI-revision. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/sandpoint/stand/altboot/pciide.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sandpoint/stand/altboot/pciide.c diff -u src/sys/arch/sandpoint/stand/altboot/pciide.c:1.3 src/sys/arch/sandpoint/stand/altboot/pciide.c:1.4 --- src/sys/arch/sandpoint/stand/altboot/pciide.c:1.3 Sun Mar 6 13:55:12 2011 +++ src/sys/arch/sandpoint/stand/altboot/pciide.c Wed Mar 9 20:35:56 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: pciide.c,v 1.3 2011/03/06 13:55:12 phx Exp $ */ +/* $NetBSD: pciide.c,v 1.4 2011/03/09 20:35:56 phx Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -81,7 +81,7 @@ l->tag = tag; val = pcicfgread(tag, PCI_CLASS_REG); - native = val & 03; + native = ((val >> 8) & 05) != 0; if (native) { /* native, use BAR 01234 */ l->bar[0] = pciiobase + (pcicfgread(tag, 0x10) &~ 01);