Disable probing of bge1?

Daniel O'Connor doconnor at gsoft.com.au
Wed Mar 9 10:56:19 UTC 2011


On 09/03/2011, at 20:47, Marius Strobl wrote:
>> Is it possible to use some device.hints entry to prohibit the probing of bge1?
>> I think that would be the easiest solution to the problem? Other suggestions
>> are of course welcome. I can provide more config details and dmesg output
>> if needed.
>> 
> 
> Unfortunately, there's currently no generic way to disable probing/
> attaching of specific PCI devices. You'd need to hack the driver
> like in the following example to achieve that:
> Index: /usr/src/sys/dev/bge/if_bge.c
> ===================================================================
> --- /usr/src/sys/dev/bge/if_bge.c       (revision 213448)
> +++ /usr/src/sys/dev/bge/if_bge.c       (working copy)
> @@ -2472,6 +2472,9 @@ bge_attach(device_t dev)
>        u_char eaddr[ETHER_ADDR_LEN];
>        int error, msicount, reg, rid, trys;
> 
> +       if (device_get_unit(dev) == 1)
> +               return (ENXIO);
> +
>        sc = device_get_softc(dev);
>        sc->bge_dev = dev;

Does..
hint.bge.0.disabled="1"
in the loader work?

(I suspect not but am ever hopeful..)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








More information about the freebsd-stable mailing list