home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.sys5.r4,comp.unix.microport
- Path: sparky!uunet!digibd!rick
- From: rick@digibd.com (Rick Richardson)
- Subject: Re: sptalloc() problems
- Organization: DigiBoard Incorporated, Eden Prairie, MN
- Date: Fri, 20 Nov 1992 13:44:25 GMT
- Message-ID: <1992Nov20.134425.2892@digibd.com>
- References: <1992Nov17.011800.18428@mprgate.mpr.ca>
- Lines: 26
-
- dyck@mprgate.mpr.ca (Trevor Dyck) writes:
-
- >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).
-
- Actually, the functionality of sptalloc() that you seek has been
- replaced by "physmap()", at least on all the SVR4.X's I've used,
- although I can't personally vouch for microport.
-
- In point of fact, sptalloc() is *still available*, although
- marked obsolete, and the implementation of "physmap()" actually
- calls sptalloc() to do the dirty work!!!!!
-
- -Rick
-
- --
- Rick Richardson Email: rick@digibd.com This space intentionally
- Senior Staff Engineer Fax: (612) 943-0803 blank until 1996 elections.
- DigiBoard, Inc. Tel: (612) 943-5383
- 6400 Flying Cloud Dr. Radio: N0NMY
-