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.
This commit is contained in:
jdolecek 2001-04-27 17:11:45 +00:00
parent 6589e65051
commit d66e548d92
2 changed files with 15 additions and 2 deletions

View File

@ -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 @@ mca_devinfo(id, cp)
#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);
}

View File

@ -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 @@ struct mca_attach_args {
#define MCA_UNKNOWN_SLOT -1 /* wildcarded 'slot' */
void mca_devinfo __P((int, char *));
int mca_match_disabled __P((int));
#endif /* _DEV_MCA_MCAVAR_H_ */