Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2001 17:34:14 -0700 (PDT)
From:      SJ <sandejain@rocketmail.com>
To:        freebsd-questions@freebsd.org
Cc:        freebsd-hackers@freebsd.org
Subject:   Device driver questions
Message-ID:  <20010523003414.51600.qmail@web13405.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi all,
I am new to writing device drivers...so please excuse
my ignorance.

I have a couple of questions regarding that:

1. "ioconf.c" contains struct config_resource and
    config_device definitions for declarations in 
    "config" file. But I noticed that for some devices
     e.g. device          atadisk
          device          atapicd
          ...
     the corresponding lines in ioconf.c are missing??
      

2. Whats the use of device_ops structure and what does
   "ops" stand for?

3. File naming question:
   whats the reasoning behind having "bus.h" and 
   "bus_private.h"....whats the significance of 
   "private" here.

4. concept behind having devclasses...I know that   
   devclasses for a particular bus holds devices and
   device drivers for that bus. But then whats the  
   need for defining a devclass for each driver we 
   write ?

5. Any poniters to literature which explains the 
   design philosophy and code specific help for device

   drivers in freebsd - I am referring to files 
   kern/subr_bus.c, bus.h, bus_private.h, isa/* etc.
     
thanks for your help,
SJ

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010523003414.51600.qmail>