Issues with Network device drivers
    John Baldwin 
    jhb at freebsd.org
       
    Wed Aug 16 15:10:53 UTC 2006
    
    
  
On Wednesday 16 August 2006 04:58, Alok Barsode wrote:
> Hello,
> I had some basic questions regarding the FreeBSD
> Device driver model(I am using FreBSD4.10 ) 
> I have a Phy-Controller for which I am developing a
> device driver.
> I have writing the PHY driver(/sys/dev/mii/my_phy.c)
> In order to test it,I wanted to build it as a module.
> I have a few Q:
> 
> 1. Is it possible to get the phy driver build
> separately        (as a module)than the miibus module?
> Or will the phy support be interated in the miibus
> module?(The Makefile in /sys/modules/mii suggests that
> all PHYs support is integrated in miibus.ko)
You can always create your own my_phy.ko that just contains my_phy.c
and kldload it into a kernel that already has 'device miibus' either
via kld or statically compiled.
 
> 2. Will i have to make a new entry in the
> /i3s6/conf/MYKERNEL indicating a new device under MII?
Not unless you want to statically compile it into your kernel.  If you
want to do that you will also have to update sys/conf/files.
> 3. Is the Network Device driver model not documented
> in  detail?  
Not that I'm aware of.  Maybe I'll sit down and write down what I know.
-- 
John Baldwin
    
    
More information about the freebsd-drivers
mailing list