home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sun / hardware / 3994 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.8 KB

  1. Xref: sparky comp.sys.sun.hardware:3994 comp.sys.sun.misc:3824
  2. Path: sparky!uunet!ogicse!uwm.edu!linac!newsaintmail
  3. From: sim@mdtf14.fnal.gov (Jim Sim)
  4. Newsgroups: comp.sys.sun.hardware,comp.sys.sun.misc
  5. Subject: VME address modifier codes on SparcEngine 1e boards
  6. Message-ID: <SIM.92Aug21105846@mdtf14.fnal.gov>
  7. Date: 21 Aug 92 16:58:46 GMT
  8. Article-I.D.: mdtf14.SIM.92Aug21105846
  9. Sender: daemon@linac.fnal.gov (The Background Man)
  10. Distribution: usa
  11. Organization: Fermilab, Batavia, IL
  12. Lines: 23
  13. Nntp-Posting-Host: mdtf14.fnal.gov
  14.  
  15. I am using a SparcEngine 1e board to control several VME devices.  The 
  16. CPU is running SunOS 4.1e. I am programming the devices by opening the
  17. appropriate device files (/dev/vme24d16 and /dev/vme16d16), calling mmap 
  18. to map to the device registers, and then peeking and poking to the appropriate 
  19. registers.
  20.  
  21. One of the VME devices I am programming is jumper-selectable to use 
  22. either supervisory or non-privileged short addressing.  This device responds
  23. only when jumpered for non-privileged addressing.   However, this device 
  24. responded on a different (non-Sun) computer, even while jumpered for 
  25. supervisory mode addressing.
  26.  
  27. Another of the VME devices I am programming uses standard addressing, 
  28. but has no jumper for selecting supervisory or non-privileged modes.  This 
  29. device responds on the non-Sun computer, but not on the SparcEngine 1e.  
  30. The documentation for this device does not indicate whether it uses 
  31. supervisory or non-privileged addressing modes, but the fact that it 
  32. responds on the non-Sun computer, but not on the SparcEngine 1e board,
  33. suggests that it uses supervisory addressing mode.
  34.  
  35. Is there a way of programming the address modifier bits of the VME bus from the
  36. SparcEngine 1e board running SunOS?  Does SunOS provide non-privileged 
  37. access by default when mmap is called?
  38.