[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SMC 91C96 ethernet and Disk on Chip
On Fri, 8 Feb 2002, Brad Murray wrote:
> What sort of work needs to be done to port a driver from the NetBSD
> source tree to OpenBSD? Specifically I need support for the SMC 91C96
> ethernet chipset, which doesn't appear to be stock with OpenBSD 3.0
> yet is in the NetBSD source. Thanks for any tips.
For the do-it-yourselfer:
1. Find out the following: which files are needed, the name of the
driver, and the files.XXX file where the dirver is mentioned.
2. Copy the driver to openbsd tree. Add driver to your config file. Add
the right 3 or so lines from the "files" file to the equivalent in
openbsd.
3. Edit the driver file, and change the *_match function prototype to
__P((struct device *, void *, void *)). Do the same for the actual
function.
4. Config, compile, and cross fingers. Any problems, try comparing two
drivers that are in both trees and make changes. If it works, mail the
diff to a developer.
Before doing this, I'd boot an openbsd generic kernel to see if it's
detected already and save yourself some trouble.
--
Ted, toll collector of the information superhighway