home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!strath-cs!memex!scott
- From: scott@memex.co.uk (Scott Williamson)
- Newsgroups: comp.unix.sysv386
- Subject: Mapping user virtual addresses to physical addresses
- Message-ID: <1992Nov16.131602.14931@memex.co.uk>
- Date: 16 Nov 92 13:16:02 GMT
- Organization: Memex Information Systems Ltd, East Kilbrde, Scotland
- Lines: 22
-
- I am currently writing a device driver for a Wyse 9000i running
- UNIX System V/386 Release 4.0 Version 3.0.1. The purpose of this
- driver is to allow a user program to map part of VME address space
- into its virtual address space.
-
- The main bus of the system is not VME but there is a VME chassis and
- interface board to allow addition of VME boards. With this subsystem
- comes software to allow kernel device drivers to map VME physical
- addresses to system physical addresses. This part seems to work fine.
-
- The next step is to map these physical addresses to user virtual
- addresses. In a previous version of the operating system (SVR3.2.1A)
- I was able to use the routines freemappages() and mappages() in the
- driver to achieve this purpose. Now I can call the the routines but
- they appear to have no effect. They return a value of 13 (EPERM?).
-
- I don't know how generic or Wyse-specific these routines are. Is there
- a standard SysV way of doing this mapping or is everything dependant
- on the hardware manufacturer at this level? Any help on this would be
- appreciated.
-
- Scott Williamson scott@memex.co.uk
-