There is a internal interface ndi_ra_alloc() for you.
Tough this interface is designed for nexus drivers to allocate
the pci resource,  it is a extra bonus for leaf drivers.  You can
use it in your driver, but it is not guaranteed for leaf drivers.


19:57,:
hi,
I am using the Simics simulator to simulate a serengeti machine for the purpose of research.

The PCI devices have three memory spaces: configuration, i/o and memory space in the memory map. Now, I want to write a driver for a particular PCI device. One of the entries in the driver is going to provide a way allocating the PCI memory space by some designate algorithm.

I am new in PCI driver writing, can anyone tell me if the PCI memory space specified by the BAR(Base Address Register) in PCI configuration space is capable of being allocated by the user program or by the device driver?

Thanks in advance.


--
Regards
Dunning

School Of Computer Science and Technology
Beijng Institute of Technology, China, 100081
[email protected] <mailto:[email protected]>


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

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

Reply via email to