Return to BSD News archive
Newsgroups: comp.os.386bsd.development Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!haven.umd.edu!uunet!emba-news.uvm.edu!wollman From: wollman@UVM.EDU (Garrett Wollman) Subject: Re: HELP: Need info on creating char dev driver for e-net. Message-ID: <1993Jul7.181113.2028@uvm.edu> Sender: news@uvm.edu Organization: University of Vermont, EMBA Computer Facility References: <1993Jul7.151912.14187@news.uta.edu> Date: Wed, 7 Jul 1993 18:11:13 GMT Lines: 49 In article <1993Jul7.151912.14187@news.uta.edu> sholder@cse.uta.edu (Shane Andrew Holder) writes: >Subject: HELP: Need info on creating char dev driver for e-net. In BSD, network interfaces are implemented as network interface device drivers, not block or character devices. See /sys/i386/isa/if_*.c for how to do it---they're all of a type. >I am making my first attempt at writing a character device driver and >would like to find some information on the data structures in the >kernel Sure, ask away. > and on the 3com ethernet board. /Which/ 3Com Ethernet board? 3C501, 3C503, 3C509, ... 386BSD already includes a 3C503 driver, and the 3C501 is generally considered too brain-damaged to use for Unix (but Mach 3.0 has a driver for it). >I have just purchased _Writing UNIX Device Drivers_ by George Pajari >and it seems to be a good book but it's for System V, and obviously >the internal structures of the two kernels are different. Yes. In particular, the user structure `u' is on its way out (it's still present in the process, but no longer available as `u' to the kernel). Most subsystems have been modified to pass process information around as parameters, rather than relying on `curproc', which is deprecated outside of the scheduler, trap(), and locore. >Is there any place else I can find information, >specifically on the NetBSD kernel data structures Sure. /sys/*/*.h. Most of the header files are fairly well documented. >and the source to config. /usr/src/usr.sbin/config. -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@emba.uvm.edu | Shashish is the bonding of hearts in spite of distance. uvm-gen!wollman | It is a bond more powerful than absence. We like people UVM disagrees. | who like Shashish. - Claude McKenzie + Florent Vollant