[comp.unix.questions] first time driver writer needs help

tlastran@esunix.UUCP (Tom LaStrange) (07/29/87)

I am writing my first device driver and have some questions.  This driver
is going to run on a Sun 3/260 4.2 rel 3.2 and the device spans
a total of 20Mb, containing memory and registers.  The driver needs to
implement an ioctl call which will return to the user the virtual address
of the memory and the registers.  I don't want to and in fact can't map all
that space into kernal virtual memory.  Can anyone suggest a solution on
easy ways to make the operating system know about a 20 Mb block without
allocating all of it in virtual address space?  Like I said, this is my
first stab at Unix device drivers and while the answer may be trivial, any
suggestions will help.  Also, forgive me if I'm posting this to the wrong
group.

Thanks.
Tom LaStrange

UUCP Address:  {ihnp4,seismo}!utah-cs!utah-gr!uplherc!esunix!tlastran
Alternate:     {ihnp4,decvax}!decwrl!esunix!tlastran