home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 7991 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.4 KB  |  45 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!mips!pacbell.com!network.ucsd.edu!qualcom.qualcomm.com!qualcom!tfiske
  3. From: tfiske@qualcom.qualcomm.com (T.J. Fiske)
  4. Subject: 8237A DMA Chip on the PC
  5. Message-ID: <tfiske.711742881@qualcom>
  6. Keywords: 8237A DMA Chip on the PC
  7. Sender: news@qualcomm.com
  8. Nntp-Posting-Host: qualcom.qualcomm.com
  9. Organization: Qualcomm, Inc., San Diego, CA
  10. Date: Tue, 21 Jul 1992 18:21:21 GMT
  11. Lines: 32
  12.  
  13. I am posting this for a friend please send E-mail to him at....
  14. calvin@mpl.UCSD.EDU (Calvin Ly)
  15.  
  16. The question is:
  17.  
  18. The 8237A DMA chip on the PC:
  19.  
  20. on the AT and higher models, there are 8 dma channels.
  21. I need to program channel 5, since I need to do 16 bit
  22. dma transfers.  Anyways, to progam the target address
  23. correctly, it needs a "page" address at port 0x8b.
  24. What is this page address, and how can I do an address
  25. translation to obtain this page number from
  26. a data pointer.  The data pointer's memory space is allocated
  27. using the "halloc()" under Microsoft C 5.1 which returns a
  28. 32 bit address.  And how can at obtain the base address from
  29. this data pointer to send to port 0xc6.
  30.  
  31. i.e.
  32.     unsigned short huge * dmaptr;
  33.     dmatrp = (unsigned short huge *) halloc( 8196L, 2);
  34.  
  35. Thanks for the help,
  36.  
  37. -- T.J. Fiske
  38.  
  39. ------------------------------
  40. QUALCOMM, Inc.
  41. Room A-230                      E-Mail: tfiske@qualcomm.com
  42. 10555 Sorrento Valley Rd.       Phone:  (619) 587-1121 x5763
  43. San Diego, CA 92121-1617
  44.  
  45.