Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/pci Look for _PIR in addition to $PIR. My libr...
details: https://anonhg.NetBSD.org/src/rev/0407bf248a4b
branches: trunk
changeset: 521350:0407bf248a4b
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 28 23:53:08 2002 +0000
description:
Look for _PIR in addition to $PIR. My libretto L2 now works without
any other kludges.
diffstat:
sys/arch/i386/pci/pcibios.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 146013cfd016 -r 0407bf248a4b sys/arch/i386/pci/pcibios.c
--- a/sys/arch/i386/pci/pcibios.c Mon Jan 28 23:50:09 2002 +0000
+++ b/sys/arch/i386/pci/pcibios.c Mon Jan 28 23:53:08 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcibios.c,v 1.8 2002/01/22 15:07:27 uch Exp $ */
+/* $NetBSD: pcibios.c,v 1.9 2002/01/28 23:53:08 christos Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcibios.c,v 1.8 2002/01/22 15:07:27 uch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcibios.c,v 1.9 2002/01/28 23:53:08 christos Exp $");
#include "opt_pcibios.h"
@@ -240,8 +240,14 @@
for (pa = PCI_IRQ_TABLE_START; pa < PCI_IRQ_TABLE_END; pa += 16) {
p = (caddr_t)ISA_HOLE_VADDR(pa);
- if (*(int *)p != BIOS32_MAKESIG('$', 'P', 'I', 'R'))
- continue;
+ if (*(int *)p != BIOS32_MAKESIG('$', 'P', 'I', 'R')) {
+ /*
+ * XXX: Some laptops (Toshiba/Libretto L series
+ * use _PIR instead of $PIR. So we try that too.
+ */
+ if (*(int *)p != BIOS32_MAKESIG('_', 'P', 'I', 'R'))
+ continue;
+ }
rev_min = *(p + 4);
rev_maj = *(p + 5);
Home |
Main Index |
Thread Index |
Old Index