[comp.unix.sysv386] SCO Unix Driver problems, sptalloc vs. mapvid

max@lgc.com (Max Heffler) (11/30/90)

I have been having problems using SCO Unix sptalloc in a Graphics Board
driver in a PC Clone.  The manual shows the syntax of the command to be:
vaddr = sptalloc(numpages, PG_flags, physicaladdress, waitflag)
where they show an example of a video driver at 0xB8000 as the pysicaladdress
field above.  A driver we wrote for ISC used btoc around the 3rd parameter.
In any case, the kernel virtual address returned is 0xd1091000 to coorespond
to the 0xD0000 PC-BUS physical address.  Using the kernel virtual address does
not seem to talk to the board at 0xd0000 at all.  There is a vidmap command
that returns a kernel virtual address of c00d0000, which we are experiamenting
with.  The problem with vidmap, is that we cannot pass the address back to
the user process for easier debugging.  Does anybody know why sptalloc does
not appear to work as documented?  Thanx...
--
Max Heffler			internet: max@lgc.com
Landmark Graphics Corp.		uucp: ..!uunet!lgc!max
333 Cypress Run, Suite 100      phone: (713) 579-4751
Houston, Texas  77094