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