Re: Device driver questions

2001-05-24 Thread Warner Losh
In message <[EMAIL PROTECTED]> SJ writes: : But still the name "private" confuses me...according : to : me it should have been "bus_public.c". Any comments? Yes. You aren't allowed to use anything that's inside of bus_private.h in your driver. That's why it is called private. Only certain part

Re: Device driver questions

2001-05-24 Thread Warner Losh
In message <[EMAIL PROTECTED]> Alexander Langer writes: : Thus spake SJ ([EMAIL PROTECTED]): : : Hi! : : > 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

Re: Device driver questions

2001-05-24 Thread Peter Wemm
SJ wrote: > 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

Re: Device driver questions

2001-05-24 Thread Giorgos Keramidas
[ Removed -questions from Cc: - do we have to cross post? ] On Wed, May 23, 2001 at 10:38:00AM -0700, SJ wrote: > --- Alexander Langer <[EMAIL PROTECTED]> wrote: > > > > > 3. File naming question: > > >whats the reasoning behind having "bus.h" and > > >"bus_private.h"whats the signi

Re: Device driver questions

2001-05-23 Thread Sergey Babkin
SJ wrote: > > 2. Whats the use of device_ops structure and what does >"ops" stand for? "ops" definitely stands for "operations". I can't say off the top of my head what this structure is but most probably a collection of pointers to the functions of a particular driver which implement the d

Re: Device driver questions

2001-05-23 Thread SJ
--- Alexander Langer <[EMAIL PROTECTED]> wrote: > Thus spake SJ ([EMAIL PROTECTED]): > > Hi! > > > 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 a

Re: Device driver questions

2001-05-23 Thread Julian Elischer
Alexander Langer wrote: > > Thus spake SJ ([EMAIL PROTECTED]): > > > The developer's handbook might be worth reading for you, also there > are some tutorials on the website which explain a little. Also check out -current's /usr/share/examples/drivers/make_device_driver.sh > > Alex > > -- > c

Re: Device driver questions

2001-05-22 Thread Alexander Langer
Thus spake SJ ([EMAIL PROTECTED]): Hi! > 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 > ... >

Device driver questions

2001-05-22 Thread SJ
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