Add the ability to disable agp devices at the loader prompt. Usage is

hint.agp.0.disabled="1"

Submitted by:	jhb
This commit is contained in:
njl 2004-04-03 22:55:12 +00:00
parent 7ffed5b360
commit 26232fd45b
14 changed files with 28 additions and 0 deletions

View File

@ -80,6 +80,8 @@ agp_ali_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_ali_match(dev);
if (desc) {
device_verbose(dev);

View File

@ -207,6 +207,8 @@ agp_amd_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_amd_match(dev);
if (desc) {
device_verbose(dev);

View File

@ -183,6 +183,8 @@ agp_i810_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_i810_match(dev);
if (desc) {
device_t bdev;

View File

@ -127,6 +127,8 @@ agp_intel_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_intel_match(dev);
if (desc) {
device_verbose(dev);

View File

@ -116,6 +116,8 @@ agp_nvidia_probe (device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_nvidia_match(dev);
if (desc) {
device_verbose(dev);

View File

@ -82,6 +82,8 @@ agp_sis_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_sis_match(dev);
if (desc) {
device_verbose(dev);

View File

@ -90,6 +90,8 @@ agp_via_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_via_match(dev);
if (desc) {
device_verbose(dev);

View File

@ -80,6 +80,8 @@ agp_ali_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_ali_match(dev);
if (desc) {
device_verbose(dev);

View File

@ -207,6 +207,8 @@ agp_amd_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_amd_match(dev);
if (desc) {
device_verbose(dev);

View File

@ -183,6 +183,8 @@ agp_i810_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_i810_match(dev);
if (desc) {
device_t bdev;

View File

@ -127,6 +127,8 @@ agp_intel_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_intel_match(dev);
if (desc) {
device_verbose(dev);

View File

@ -116,6 +116,8 @@ agp_nvidia_probe (device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_nvidia_match(dev);
if (desc) {
device_verbose(dev);

View File

@ -82,6 +82,8 @@ agp_sis_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_sis_match(dev);
if (desc) {
device_verbose(dev);

View File

@ -90,6 +90,8 @@ agp_via_probe(device_t dev)
{
const char *desc;
if (resource_disabled("agp", device_get_unit(dev)))
return (ENXIO);
desc = agp_via_match(dev);
if (desc) {
device_verbose(dev);