Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!ucsd!nosc!helios.ee.lbl.gov!lll-tis!ames!pacbell!hoptoad!unisoft!gethen!bdt!david
From: david@bdt.UUCP (David Beckemeyer)
Newsgroups: comp.unix.xenix
Subject: Physio in Xenix 386 drivers
Message-ID: <363@bdt.UUCP>
Date: 9 Aug 88 01:15:03 GMT
Organization: Beckemeyer Development Tools, Oakland CA
Lines: 20


I'm in the process of porting a Xenix driver from 286 to 386.
The memory mapping calls must be different but I haven't been
able to find it.   The 286 code uses the following code to
map in a physical address:

	int sel;
	faddr_t base;

	sel = dscralloc();
	mmudescr(sel, 0xc0000, 0x4000, DSA_DATA);
	base = sotofar(sel, 0);

This sets base to be a far pointer to the physical memory at 0xc0000
which is 16K (0x4000).  How do I do the same thing with 386 Xenix?
-- 
David Beckemeyer (david@bdt.uucp)	| "Don't call me Stupid!"
Beckemeyer Development Tools		| "No.  That would be an insult
478 Santa Clara Ave, Oakland, CA 94610	|  to all the stupid people!"
UUCP: {unisoft,sun}!hoptoad!bdt!david 	|         - A fish called Wanda