Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/alpha Don't get confused when pci function != 0.
details: https://anonhg.NetBSD.org/src/rev/20a2ada5fba2
branches: trunk
changeset: 475991:20a2ada5fba2
user: ross <ross%NetBSD.org@localhost>
date: Thu Sep 02 22:04:41 1999 +0000
description:
Don't get confused when pci function != 0.
diffstat:
sys/arch/alpha/alpha/dec_eb164.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r b5b481a2f028 -r 20a2ada5fba2 sys/arch/alpha/alpha/dec_eb164.c
--- a/sys/arch/alpha/alpha/dec_eb164.c Thu Sep 02 20:50:29 1999 +0000
+++ b/sys/arch/alpha/alpha/dec_eb164.c Thu Sep 02 22:04:41 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_eb164.c,v 1.29 1999/04/15 22:06:48 thorpej Exp $ */
+/* $NetBSD: dec_eb164.c,v 1.30 1999/09/02 22:04:41 ross Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: dec_eb164.c,v 1.29 1999/04/15 22:06:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_eb164.c,v 1.30 1999/09/02 22:04:41 ross Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -200,10 +200,10 @@
else {
struct pci_attach_args *pa = aux;
- if ((b->slot % 1000) != pa->pa_device)
+ if (b->slot % 1000 / 100 != pa->pa_function)
return;
-
- /* XXX function? */
+ if (b->slot % 100 != pa->pa_device)
+ return;
scsipidev = dev;
#if 0
Home |
Main Index |
Thread Index |
Old Index