James C. McPherson wrote:
 > Andrew Gallatin wrote:

 >> Even if it does, can we please have
 >> enough hooks to make pciutils work on sparc?
 >
 > Given that the homepage for pciutils claims it runs fine on
 > Solaris for the x86/x64 architectures, it shouldn't take you
 > too much effort to run tests on it after building on sparc.

The only reason pciutils works on x86 is because it uses x86-specific
inb/inw/inl/outb/outw/outl access to 0xCF8 which it enables on x86 via
sysi86(SI86V86, V86SC_IOPL, PS_IOPL).

To make it work on sparc, there would need to be generic kernel
provided support for doing the PCI configuration space reads to
arbitrary devices from userspace.  AFAIK, there is no kernel support
in Solaris.  FWIW, FreeBSD userspace PCI I/O API is described by this
header file:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/pciio.h?rev=1.8;content-type=text%2Fplain


Drew
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to