Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mca Introduce mca_match_disabled() - this returns tr...
details: https://anonhg.NetBSD.org/src/rev/57f4391638ee
branches: trunk
changeset: 509148:57f4391638ee
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Apr 27 17:11:45 2001 +0000
description:
Introduce mca_match_disabled() - this returns true if cards with particular
id should be handled even through it's marked as disabled in POS registers.
There are some cards which need this due to nonstandard hw design.
diffstat:
sys/dev/mca/mca_subr.c | 14 +++++++++++++-
sys/dev/mca/mcavar.h | 3 ++-
2 files changed, 15 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r 78db5073c5b6 -r 57f4391638ee sys/dev/mca/mca_subr.c
--- a/sys/dev/mca/mca_subr.c Fri Apr 27 17:08:02 2001 +0000
+++ b/sys/dev/mca/mca_subr.c Fri Apr 27 17:11:45 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mca_subr.c,v 1.2 2001/02/14 19:31:19 jdolecek Exp $ */
+/* $NetBSD: mca_subr.c,v 1.3 2001/04/27 17:11:45 jdolecek Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -80,3 +80,15 @@
#endif /* MCAVERBOSE */
sprintf(cp, "product 0x%04x", id);
}
+
+/*
+ * Returns true if the device should be attempted to be matched
+ * even through it's disabled. Apparently, some devices were
+ * designed this way.
+ */
+int
+mca_match_disabled(id)
+ int id;
+{
+ return (0);
+}
diff -r 78db5073c5b6 -r 57f4391638ee sys/dev/mca/mcavar.h
--- a/sys/dev/mca/mcavar.h Fri Apr 27 17:08:02 2001 +0000
+++ b/sys/dev/mca/mcavar.h Fri Apr 27 17:11:45 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcavar.h,v 1.2 2001/02/14 19:31:19 jdolecek Exp $ */
+/* $NetBSD: mcavar.h,v 1.3 2001/04/27 17:11:45 jdolecek Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -77,5 +77,6 @@
#define MCA_UNKNOWN_SLOT -1 /* wildcarded 'slot' */
void mca_devinfo __P((int, char *));
+int mca_match_disabled __P((int));
#endif /* _DEV_MCA_MCAVAR_H_ */
Home |
Main Index |
Thread Index |
Old Index