site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Andrew Gallatin writes:
My suggestion would be to write a simple driver and communicate with it. That will free you from the availability of the CHUD API.
The problem with this is that the only thing I can visualize will work only on x86 (io port access). I can't seem to figure out a way to get "random access" to the PCI bus. Eg, I don't see a way specify a bus/slot/function and access its PCI config space, even in the kernel.
FWIW, I wrote a trivial kernel extension to allow in/out{b,w,l}, and our tools are working fine on Intel. Powerpc is still a problem, but since ppc seems to be pretty much dead, I guess I'll have to not worry about it. I would still be interested to know if it is possible somehow to access PCI device classes on a bus/slot/function bases so I could use the iokit IOPCIDevice::configRead functions.. Drew _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Andrew Gallatin