home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!wupost!spool.mu.edu!darwin.sura.net!jvnc.net!gmd.de!Germany.EU.net!kommu!norisc!georg
- From: georg@norisc.erls01.siemens.de (Georg Biehler)
- Newsgroups: comp.unix.sys5.r4
- Subject: Re: sptalloc() problems
- Message-ID: <1137@kommu.UUCP>
- Date: 17 Nov 92 06:35:26 GMT
- References: <1992Nov17.011800.18428@mprgate.mpr.ca>
- Sender: news@kommu.UUCP
- Followup-To: comp.unix.sys5.r4
- Lines: 19
- X-Newsreader: TIN [version 1.1 PL7]
-
- Trevor Dyck (dyck@mprgate.mpr.ca) wrote:
- : I am porting a device driver from SCO SVR3.2 to Microport SVR4.
- :
- : The driver uses memory-mapped I/O, for which I simply used the
- : sptalloc() function in 3.2 to map the device into kernel memory.
- :
- : But the sptalloc() function no longer exists in SVR4!! It has
- : been replaced by kmem_alloc() which does not let you specify
- : a base address for the buffer (useless for memory mapped I/O).
-
- You should take a look into the physmap() function - this does exactly
- what you want to - mapping of memory mapped I/O into a virtual address
- range. sptalloc() stills exists in SVR4 but is going away in some
- near future.
-
- -Georg
- ----------------------------------------------------------------------
- Georg H. Biehler E-Mail: georg@norisc.erls01.siemens.de
- RealTime SVR4 -> Try SORIX 386/486
-