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

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!nuug!nntp.nta.no!hal.nta.no!hlj
  3. From: hlj@hal.nta.no (Harald Ljoen FBA)
  4. Subject: Re: 8237A DMA Chip on the PC
  5. Message-ID: <1992Jul22.093502.23979@nntp.nta.no>
  6. Keywords: 8237A DMA Chip on the PC
  7. Sender: news@nntp.nta.no
  8. Nntp-Posting-Host: rimne.nta.no
  9. Reply-To: hlj@hal.nta.no
  10. Organization: Norwegian Telecom Research
  11. References: <tfiske.711742881@qualcom> <1992Jul22.015106.230532@cs.cmu.edu>
  12. Date: Wed, 22 Jul 92 09:35:02 GMT
  13. Lines: 22
  14.  
  15. In article <1992Jul22.015106.230532@cs.cmu.edu>, ralf+@cs.cmu.edu (Ralf Brown) writes:
  16. >In article <tfiske.711742881@qualcom> tfiske@qualcom.qualcomm.com (T.J. Fiske) writes:
  17. >}The 8237A DMA chip on the PC:
  18. >}on the AT and higher models, there are 8 dma channels.
  19. >}I need to program channel 5, since I need to do 16 bit
  20. >}dma transfers.  Anyways, to progam the target address
  21. >}correctly, it needs a "page" address at port 0x8b.
  22. >}What is this page address, and how can I do an address
  23. >
  24. >The high eight bits of the 24-bit linear address, which you compute as
  25. >    ((long)segment)<<4 + offset
  26. >
  27. >(of course, this computation applies only in real mode)
  28.  
  29. For 16 bit channels, the page registers contain bits 17 - 23 (the upper *7*
  30. bits of the 24-bit linear address). The 8237 address registers are programmed
  31. with address bits 1-16, while bit 0 is forced to 0 since 16-bit DMA
  32. transfers are always to even addresses. This scheme also has the implication
  33. that the page size is 128 kbytes, as opposed to 64 kbytes for 8-bit transfers.
  34.  
  35. -- 
  36. ***** hlj@hal.nta.no (Harald Ljo"en) expressing his private opinions ******
  37.