From c850971baf62cb25cbafa4f2531c5c1159399f63 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Tue, 10 May 2016 22:28:06 +0000 Subject: [PATCH] Allow orm(4) to be disabled from probing/attaching by a hints entry: hint.orm.0.disabled=1 Suggested by: jhb Reviewed by: jhb MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D6307 --- sys/x86/isa/orm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/x86/isa/orm.c b/sys/x86/isa/orm.c index efeb2afe9e90..f7f728b8242c 100644 --- a/sys/x86/isa/orm.c +++ b/sys/x86/isa/orm.c @@ -91,6 +91,9 @@ orm_identify(driver_t* driver, device_t parent) struct orm_softc *sc; u_int8_t buf[3]; + if (resource_disabled("orm", 0)) + return; + child = BUS_ADD_CHILD(parent, ISA_ORDER_SENSITIVE, "orm", -1); device_set_driver(child, driver); isa_set_logicalid(child, ORM_ID);