Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2001 20:34:28 +1030 (CST)
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Satyajeet Seth <sseth@sasken.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   RE: How to make a PCI network device loadable module?
Message-ID:  <XFMail.010118203428.doconnor@gsoft.com.au>
In-Reply-To: <Pine.GSO.4.30.0101181520200.18079-100000@suns3.sasi.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 18-Jan-01 Satyajeet Seth wrote:
>  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.

There are a lot of loadable PCI network cards..

fxp, dc, sk, ti, tl etc...

Try looking at /usr/src/sys/pci/if_??*.[ch]

This is a 4.2-STABLE system FYI.

I don't think you need anything special for your device to be a KLD.. I maintain a
simple character device which didn't need anything special, but network devices may
be different.

---
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


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?XFMail.010118203428.doconnor>