Add extra id_enabled flag for userconfig to manipulate. If id_enabled
is FALSE, the device will not be probed. id_enabled is TRUE by default.
This commit is contained in:
parent
be4bdae3ac
commit
906c074f8d
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
|
||||
* $Id: isa.c,v 1.34 1994/10/26 00:16:20 phk Exp $
|
||||
* $Id: isa.c,v 1.35 1994/11/01 17:26:29 ache Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -404,6 +404,11 @@ config_isadev_c(isdp, mp, reconfig)
|
||||
#ifndef ALLOW_CONFLICT_MEMADDR
|
||||
checkbits |= CC_MEMADDR;
|
||||
#endif
|
||||
if (!isdp->id_enabled) {
|
||||
printf("%s%d: disabled, not probed.\n",
|
||||
dp->name, isdp->id_unit);
|
||||
return;
|
||||
}
|
||||
if (!reconfig && haveseen_isadev(isdp, checkbits))
|
||||
return;
|
||||
if (!reconfig && isdp->id_maddr) {
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
|
||||
* $Id: isa.c,v 1.34 1994/10/26 00:16:20 phk Exp $
|
||||
* $Id: isa.c,v 1.35 1994/11/01 17:26:29 ache Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -404,6 +404,11 @@ config_isadev_c(isdp, mp, reconfig)
|
||||
#ifndef ALLOW_CONFLICT_MEMADDR
|
||||
checkbits |= CC_MEMADDR;
|
||||
#endif
|
||||
if (!isdp->id_enabled) {
|
||||
printf("%s%d: disabled, not probed.\n",
|
||||
dp->name, isdp->id_unit);
|
||||
return;
|
||||
}
|
||||
if (!reconfig && haveseen_isadev(isdp, checkbits))
|
||||
return;
|
||||
if (!reconfig && isdp->id_maddr) {
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)isa_device.h 7.1 (Berkeley) 5/9/91
|
||||
* $Id: isa_device.h,v 1.15 1994/10/23 21:27:27 wollman Exp $
|
||||
* $Id: isa_device.h,v 1.16 1994/10/25 23:06:16 se Exp $
|
||||
*/
|
||||
|
||||
#ifndef _I386_ISA_ISA_DEVICE_H_
|
||||
@ -74,6 +74,7 @@ struct isa_device {
|
||||
#define RI_FAST 1 /* fast interrupt handler */
|
||||
u_int id_ri_flags; /* flags for register_intr() */
|
||||
int id_reconfig; /* hot eject device support (such as PCMCIA) */
|
||||
int id_enabled; /* is device enabled */
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user