Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sandpoint/stand/altboot Check the PCI-interface for...
details: https://anonhg.NetBSD.org/src/rev/a0eb0e1dbf99
branches: trunk
changeset: 763072:a0eb0e1dbf99
user: phx <phx%NetBSD.org@localhost>
date: Wed Mar 09 20:35:56 2011 +0000
description:
Check the PCI-interface for legacy/native mode, not the PCI-revision.
diffstat:
sys/arch/sandpoint/stand/altboot/pciide.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 298d6c7c8f20 -r a0eb0e1dbf99 sys/arch/sandpoint/stand/altboot/pciide.c
--- a/sys/arch/sandpoint/stand/altboot/pciide.c Wed Mar 09 20:33:57 2011 +0000
+++ b/sys/arch/sandpoint/stand/altboot/pciide.c Wed Mar 09 20:35:56 2011 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index