Baolu Lu wrote: > Not helpful for me. > I mean, we know in the Linux kernel, there is a pci device structure > tree. We can traverse this device tree and get the device structure > at all levels. Does OpenSolaris has the same pci device structure tree? > If so, how to access it?
Perhaps if you read the Writing Device Drivers guide, you would have realised that the answers to your questions are yes, and use documented functions from the DDI/DKI. In a really really handy coincidence, those functions are described and their use illustrated in the WDD guide. > On 9/12/07, *James C. McPherson* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Baolu Lu wrote: > > Hi, > > > > I am going to write a kernel component, which will interact with the > > kernel PCI subsystem. This part of code will call the PCI > interface to > > > > 1. traverse the pci device tree > > 2. locate seg,bus,dev,fn > > 3. locate parent p2p bridge > > > > Any reference for this? > > Writing Device Drivers, publication 819-3196 on docs.sun.com > <http://docs.sun.com> I get the impression that you were looking for a very quick cheatsheet. Please take the time to learn how we engineer the OpenSolaris kernel. It is different to Linux. James C. McPherson -- Senior Kernel Software Engineer, Solaris Sun Microsystems _______________________________________________ driver-discuss mailing list driver-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/driver-discuss