home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6503 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.2 KB

  1. Path: sparky!uunet!usc!rpi!uwm.edu!caen!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!aegsg!genshirt
  2. From: genshirt@aegsg.UUCP (E312 Genshirt)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: accessing paged physical memory
  5. Keywords: device driver, memory mapping, paging
  6. Message-ID: <486@aegsg.UUCP>
  7. Date: 17 Nov 92 10:13:54 GMT
  8. Organization: AEG-Seligenstadt, W. Germany
  9. Lines: 19
  10.  
  11. We want to run a device-driver written for OS2-V1.3 under OS2-V2.0. The
  12. driver uses DMA-transfer. V1.3 does not page physical memory. How does V2.0
  13. make the adress-convertions for a memory block.
  14.  
  15.    virtual adress  --> linear adress --> physical adress
  16.  
  17. The DMA-controller needs physical contiguous memory. The OS2-system will
  18. map the virtual data-buffer adress used in a DosRead() or DosWrite() to
  19. a physical (or linear?) adress for the driver. Also the system will lock
  20. the memory. Do we have to bother that the locked physical memory might not
  21. be contiguous? Could IO-memory be parted in separeted 4k-pages?
  22.  
  23. Are there additional device-helper-functions? What can be done to get and
  24. to verify contiguous memory?
  25.  
  26. Any information on OS2-2.x adress-mapping and paging would be highly
  27. appreciated.
  28.  
  29. Thomas
  30.