home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / wizards / 4542 next >
Encoding:
Text File  |  1992-11-04  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!cs.utexas.edu!uwm.edu!rpi!psinntp!psinntp!wmi2!joel
  3. From: joel@wmi.com (Joel Coltoff)
  4. Subject: Identifying SBus adapter cards
  5. Message-ID: <1992Nov4.195929.4080@wmi.com>
  6. Organization: Woodward McCoach, Inc.
  7. Date: Wed, 4 Nov 1992 19:59:29 GMT
  8. Lines: 24
  9.  
  10. The hardware platform is Sparcstations
  11.  
  12. I've got a problem I know is solvable but have reached the limit of
  13. my resources in dealing with it. Basically I need to duplicate some
  14. of the functionality of the 'devinfo' program. I can't figure out
  15. what the correct ioctl() incantation to do on /dev/openprom is.
  16.  
  17. The purpose of all this is that the product we support requires the
  18. customer to set jumper options on an external box. To verify this
  19. they run a program and watch for a particular pattern of lights
  20. to appear. This is the simple part. The bad thing I am doing is
  21. counting on the customer to invoke the program correctly. i.e.
  22. If the SBus card is slot 1 they type 'cfgtest 1'. If it's in
  23. slot 2 they type 'cfgtest 2'. If it's really in slot 1 and they
  24. type 'cfgtest 2' then whatever is in slot 2 gets some (probably)
  25. meaningless bit pattern written to it.
  26.  
  27. How can I verify from a non-kernel program that the SBus card I'm
  28. about to write to is the correct one?
  29.  
  30. Please send email as I do not get this newsgroup here.
  31.  
  32.     Thanks,
  33.       - Joel
  34.