Date: Wed, 06 Oct 1999 16:20:13 -0600 From: Warner Losh <imp@village.org> To: new-bus@freebsd.org Cc: dfr@freebsd.org Subject: Question on loading buses Message-ID: <199910062220.QAA07058@harmony.village.org>
next in thread | raw e-mail | index | archive | help
How can I load a bus? I have a simple bus that has device_identify and device_probe methods. Neither of them seems to be called when I kldload it. This is true when it is a isa driver or a nexus driver. Am I doing something wrong? Warner static device_method_t foobus_methods[] = { /* Device interface */ DEVMETHOD(device_identify, foobus_identify), DEVMETHOD(device_probe, foobus_probe), DEVMETHOD(device_attach, foobus_attach), DEVMETHOD(device_detach, foobus_detach), { 0, 0 } }; static driver_t foobus_driver = { "foobus", foobus_methods, 1, }; static devclass_t foobus_devclass; DRIVER_MODULE(foobus, nexus, foobus_driver, foobus_devclass, 0, 0); /*DRIVER_MODULE(foobus, isa, foobus_driver, foobus_devclass, 0, 0);*/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910062220.QAA07058>