From owner-freebsd-new-bus Wed Oct 6 15:21:34 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id B14E314A2F; Wed, 6 Oct 1999 15:21:26 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id QAA13961; Wed, 6 Oct 1999 16:20:39 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id QAA07058; Wed, 6 Oct 1999 16:20:13 -0600 (MDT) Message-Id: <199910062220.QAA07058@harmony.village.org> To: new-bus@freebsd.org Cc: dfr@freebsd.org Subject: Question on loading buses Date: Wed, 06 Oct 1999 16:20:13 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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