Gregg Levine wrote: >Hello! >I normally design and build odd examples of peripherals for the >generic PC. Within the past year or so I've started exploring Solaris, >and Open Solaris. > >And I am looking at building something on a prototype board based PCI >thing that would be usable through Solaris. > >And naturally that is the reason behind the subject, "Does a generic >PCI device driver exist?"? > > > There is no existing generic driver for a PCI device. But there're tools that you can use to peek/poke your PCI device.
/usr/X11/bin/scanpci -v can be used to iterate through the PCI device tree and dump the important registers in the config space. From the console, kmdb -K, then ::rdpcicfg and ::wrpcicfg can be used to read/write any register in the config space of any PCI device. If you need to write a driver, you may take any existing PCI device driver as your starting skeleton. You're welcome to ask questions about writing device drivers. Vincent. _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
