Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mca remove mca_issupp() and just use UNCONF for unkn...
details: https://anonhg.NetBSD.org/src/rev/26b9745fae3b
branches: trunk
changeset: 503822:26b9745fae3b
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Wed Feb 14 19:31:19 2001 +0000
description:
remove mca_issupp() and just use UNCONF for unknown devices, like other
buses do - array of 'supported' peripheals makes addition of new stuff
unnecessarily harder
diffstat:
sys/dev/mca/mca.c | 4 ++--
sys/dev/mca/mca_subr.c | 27 +--------------------------
sys/dev/mca/mcavar.h | 3 +--
3 files changed, 4 insertions(+), 30 deletions(-)
diffs (75 lines):
diff -r e7b68953d2c5 -r 26b9745fae3b sys/dev/mca/mca.c
--- a/sys/dev/mca/mca.c Wed Feb 14 18:21:42 2001 +0000
+++ b/sys/dev/mca/mca.c Wed Feb 14 19:31:19 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mca.c,v 1.1 2000/05/11 15:42:05 jdolecek Exp $ */
+/* $NetBSD: mca.c,v 1.2 2001/02/14 19:31:19 jdolecek Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
printf("%s slot %d: %s", pnp, ma->ma_slot + 1, devinfo);
}
- return (mca_issupp(ma->ma_id)) ? UNCONF : UNSUPP;
+ return (UNCONF);
}
int
diff -r e7b68953d2c5 -r 26b9745fae3b sys/dev/mca/mca_subr.c
--- a/sys/dev/mca/mca_subr.c Wed Feb 14 18:21:42 2001 +0000
+++ b/sys/dev/mca/mca_subr.c Wed Feb 14 19:31:19 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mca_subr.c,v 1.1 2000/05/11 15:42:05 jdolecek Exp $ */
+/* $NetBSD: mca_subr.c,v 1.2 2001/02/14 19:31:19 jdolecek Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -63,31 +63,6 @@
#endif /* MCAVERBOSE */
-/* supported peripheals */
-const int mca_suppdevs[] = {
- MCA_PRODUCT_AHA1640,
- MCA_PRODUCT_3C523,
- MCA_PRODUCT_ITR,
- 0
-};
-
-/*
- * Returns 1 if a device is supported (i.e. device driver exists for it)
- * 0 otherwise.
- */
-int
-mca_issupp(id)
- int id;
-{
- int i;
- for(i=0; mca_suppdevs[i]; i++) {
- if (id == mca_suppdevs[i])
- return 1;
- }
-
- return 0;
-}
-
void
mca_devinfo(id, cp)
int id;
diff -r e7b68953d2c5 -r 26b9745fae3b sys/dev/mca/mcavar.h
--- a/sys/dev/mca/mcavar.h Wed Feb 14 18:21:42 2001 +0000
+++ b/sys/dev/mca/mcavar.h Wed Feb 14 19:31:19 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcavar.h,v 1.1 2000/05/11 15:42:07 jdolecek Exp $ */
+/* $NetBSD: mcavar.h,v 1.2 2001/02/14 19:31:19 jdolecek Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -77,6 +77,5 @@
#define MCA_UNKNOWN_SLOT -1 /* wildcarded 'slot' */
void mca_devinfo __P((int, char *));
-int mca_issupp __P((int));
#endif /* _DEV_MCA_MCAVAR_H_ */
Home |
Main Index |
Thread Index |
Old Index