home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / internal / 2064 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!alpha.ces.cwru.edu!seshadri
  2. From: seshadri@ces.cwru.edu (Krishna Seshadri)
  3. Newsgroups: comp.unix.internals
  4. Subject: Re: HELP: kernel routines for device driver
  5. Date: 17 Dec 1992 04:24:07 GMT
  6. Organization: Computer Engineering and Science/CWRU
  7. Lines: 27
  8. Message-ID: <1govd7INN46n@usenet.INS.CWRU.Edu>
  9. References: <522@aldetec.oz.au> <144400004@hpcupt3.cup.hp.com>
  10. NNTP-Posting-Host: mapping.ces.cwru.edu
  11.  
  12. In article <144400004@hpcupt3.cup.hp.com> sbmn@hpcupt3.cup.hp.com (S.Subramanian(contr)) writes:
  13. >/ hpcupt3:comp.unix.internals / hausler@aldetec.oz.au (Graham Hausler) / 12:45 am  Nov 20, 1992 /
  14. >> 1. Can I access physical memory (not in IO space) directly from a
  15. >>   device driver, assumming I have removed this memory from usage by unix?
  16. >>    I want the physical memory at a fixed address, and hence cannot
  17. >>    allocate in virtual address space and then derive the physical address
  18. >>    (assuming I can even manage that !!)
  19. >
  20. >If your kernel has a sptalloc() / ptalloc() routine, you can make use of it.
  21. >It takes a base physical address maps it to a kernel virtual address and
  22. >returns this address.
  23.  
  24.  
  25.  
  26. All you need to do is choose a physical address range (not used by
  27. UNIX) and plunk in a value in the TTRs (Transparent Translation
  28. Registers) so that the physical addresses are directly accessible from
  29. the driver. Pretty cool. I am assuming of course that you are using a
  30. 68040...
  31.  
  32. Krishna
  33.  
  34. -- 
  35.  
  36. seshadri@alpha.ces.cwru.edu    | A bachelor is a selfish, 
  37. kps2@po.cwru.edu                | undeserving guy who has cheated 
  38. Work: (216)-368-5038        | some poor woman out of a divorce.
  39.