View Single Post

   
  #6 (permalink)  
Old 02-16-2008, 07:24 AM
Marc Espie
 
Posts: n/a
Default Re: Can I force a driver onto an unknown NIC?

In article <44CA4586.77A75AA5@ozemail.com.au>,
M.K. <mk38@ozemail.com.au> wrote:
>Is there a way to force a NIC driver onto a NIC that is unknown to
>OpenBSD?
>
>I ask this question because I have a USB Ethernet adapter that returns a
>vendor/device ID unknown to OpenBSD but it's linux driver source shows
>it is based on Davicom DM9601.


Should be quite easy to do. All based vendor/device buses have tables mapping
IDs to drivers (/usr/src/sys/dev/usb/usbdevs in this case).

Then the specific driver does some further magic to make sure it's matching
the right device (in that case, look at if_udav.c, the udav_lookup macro
and the list udav_devs).

If you set up your ethernet adapter that way, and it works, it's probably
worth sending us a detailed patch, preferably to tech@openbsd.org...
Reply With Quote