Date: Thu, 18 Jan 2001 15:24:47 +0530 (IST) From: Satyajeet Seth <sseth@sasken.com> To: <freebsd-hackers@freebsd.org> Subject: How to make a PCI network device loadable module? Message-ID: <Pine.GSO.4.30.0101181520200.18079-100000@suns3.sasi.com>
next in thread | raw e-mail | index | archive | help
I'd like to know how to make the network device driver I'm working on, a loadable module. It's for a PCI device. I was unable to find any examples of PCI network modules under /sys/pci. The examples under /usr/share/examples/kld are not very helpful either for a PCI network device. It appears I need to add an xxx_load() routine, but what should it do? How and when does my xxx_probe() routine get called? How and when does my xxx_attach() routine get called? What macro do I use to tell the system my driver is a kld? That is, I was unable to find a "NETDEV_MODULE" macro that might be equivalent to the "CDEV_MODULE" macro in the example character device module code... I am working on FreeBSD 4.0 -Satya To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.30.0101181520200.18079-100000>