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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to