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:52:51 +00:00
parent d66e548d92
commit b28d00fa02
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mca.c,v 1.4 2001/03/31 09:50:14 jdolecek Exp $ */
/* $NetBSD: mca.c,v 1.5 2001/04/27 17:52:51 jdolecek Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@ -176,7 +176,8 @@ mca_attach(parent, self, aux)
if (ma.ma_id == 0xffff) /* no adapter here */
continue;
if (ma.ma_pos[2] & MCA_POS2_ENABLE)
if (ma.ma_pos[2] & MCA_POS2_ENABLE
|| mca_match_disabled(ma.ma_id))
config_found_sm(self, &ma, mca_print, mca_submatch);
else {
mca_print(&ma, self->dv_xname);