Add support for 'disabled' probe hint.

This commit is contained in:
Doug Rabson 1999-04-18 15:10:58 +00:00
parent c55a92c639
commit d6c789c07a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45788
2 changed files with 12 additions and 4 deletions

View File

@ -15,7 +15,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.77 1998/12/10 23:36:14 msmith Exp $
* $Id: apm.c,v 1.78 1999/04/16 21:22:05 peter Exp $
*/
#include "opt_devfs.h"
@ -648,7 +648,11 @@ apm_probe(device_t dev)
struct vm86frame vmf;
int i;
#endif
int flags;
int disabled, flags;
if (resource_int_value("apm", 0, "disabled", &disabled) == 0
&& disabled != 0)
return ENXIO;
device_set_desc(dev, "APM BIOS");

View File

@ -15,7 +15,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.77 1998/12/10 23:36:14 msmith Exp $
* $Id: apm.c,v 1.78 1999/04/16 21:22:05 peter Exp $
*/
#include "opt_devfs.h"
@ -648,7 +648,11 @@ apm_probe(device_t dev)
struct vm86frame vmf;
int i;
#endif
int flags;
int disabled, flags;
if (resource_int_value("apm", 0, "disabled", &disabled) == 0
&& disabled != 0)
return ENXIO;
device_set_desc(dev, "APM BIOS");