Motorola Sys V help
ftw at datacube.UUCP
ftw at datacube.UUCP
Fri Feb 12 06:41:00 AEST 1988
...one thing I forgot:
I also need to test if a given piece of hardware exists on the bus. There
is a function called bprobe() that does this. It takes two args, the first
is a physical address, the second is a char sized quantity to be *written*
to that address. For my driver, it is unacceptable for the probe to write
to the address. Also, since not all of the hardware I intend to support
will respond to byte-width accesses, I need a 16-bit sized probe as well.
There seems to be an "sprobe" function in my kernel, but I it must not
be what I think it is because it never goes out to the bus (confirmed by
using a VME bus analyzer).
Questions: How do I test for *read* access to hardware? What exactly is
the sprobe() function?
SunOS has peek() and peekc(), which will probe for hardware and return
a 16-bit or 8-bit (resp.) quantity at the address you ask for, or they
returns (int)-1 if there was a bus-error. These are what I need to model
under System V.
Thank You for Your Support.
Farrell T. Woods
Datacube Inc. Systems / Software Group 4 Dearborn Rd. Peabody, Ma 01960
VOICE: 617-535-6644; FAX: (617) 535-5643; TWX: (710) 347-0125
INTERNET: ftw at datacube.COM
UUCP: {rutgers, ihnp4, mirror}!datacube!ftw
"OS/2 -- Half an operating system"
More information about the Comp.unix.wizards
mailing list