diff options
| author | jdolecek <jdolecek@NetBSD.org> | 2001-02-14 19:31:19 +0000 |
|---|---|---|
| committer | jdolecek <jdolecek@NetBSD.org> | 2001-02-14 19:31:19 +0000 |
| commit | 60b3bb82f99b20ce4d7e32dd8fd0a3ef4607f4f3 (patch) | |
| tree | e3ee962e72a7c87dea24ee68d255b2abbbb4a12e /sys/dev/mca | |
| parent | 8a4a6820918b69fb20e9376dc7d61c68c6b9c520 (diff) | |
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 (limited to 'sys/dev/mca')
| -rw-r--r-- | sys/dev/mca/mca.c | 4 | ||||
| -rw-r--r-- | sys/dev/mca/mca_subr.c | 27 | ||||
| -rw-r--r-- | sys/dev/mca/mcavar.h | 3 |
3 files changed, 4 insertions, 30 deletions
diff --git a/sys/dev/mca/mca.c b/sys/dev/mca/mca.c index 983d505b0e8..966117d8618 100644 --- a/sys/dev/mca/mca.c +++ b/sys/dev/mca/mca.c @@ -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 @@ mca_print(aux, pnp) printf("%s slot %d: %s", pnp, ma->ma_slot + 1, devinfo); } - return (mca_issupp(ma->ma_id)) ? UNCONF : UNSUPP; + return (UNCONF); } int diff --git a/sys/dev/mca/mca_subr.c b/sys/dev/mca/mca_subr.c index 156aefaa7b7..7ca43da58cf 100644 --- a/sys/dev/mca/mca_subr.c +++ b/sys/dev/mca/mca_subr.c @@ -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 @@ struct mca_knowndev { #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 --git a/sys/dev/mca/mcavar.h b/sys/dev/mca/mcavar.h index 90656f1a4e5..80f0e7bf3aa 100644 --- a/sys/dev/mca/mcavar.h +++ b/sys/dev/mca/mcavar.h @@ -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 @@ struct mca_attach_args { #define MCA_UNKNOWN_SLOT -1 /* wildcarded 'slot' */ void mca_devinfo __P((int, char *)); -int mca_issupp __P((int)); #endif /* _DEV_MCA_MCAVAR_H_ */ |
