[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Device Drivers



Hello all...  A few random questions regarding device drivers:

Say I have another device to be registered under my BSP.  For
now, say it is similar to /dev/console and call it /dev/modem.
Basically, I just want to copy the console driver in my BSP and
add a new UART to the list to make it a modem.

It seems to me that the way to instantiate this driver is to 
build my own Device_drivers[] list in my init.c part of my
program.  (The default one includes the Console, Clock, Stub)
I would build my own that lists Modem as one of those drivers.
Now, doesn't this place the burden of driver init on the executive
rather than the BSP (where it belongs, I think)?

This doesn't seem to be documented very well -- device drivers.
Can someone tell me the right way to go about this?  The name
"stub" driver seems to imply that I want to initialize my modem
as a "stub", but I don't know what is really meant or how to go
about doing it.


    Cheers,
    Jake

(oh, I posted this to snapshots in case it is something that is up
for discussion)

-- 
   janovetz at uiuc.edu    | Once you have flown, you will walk the earth with
 University of Illinois | your eyes turned skyward, for there you have been,
                        | there you long to return.     -- da Vinci
        PP-ASEL         | http://www.ews.uiuc.edu/~janovetz/index.html