Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to increase size of PCI device BAR?: (5 Items)
   
How to increase size of PCI device BAR?  
Hope this is a suitable forum for this question.

I need to increase size of BAR-mapped memory of certain PCI device
(actually it is a bridge to some other bus, so -B switch is required for pci-bios to recognize it).
The BAR size is hard-coded as 4 KB; pci_attach_device successfully allocates it.

Now, is there a way to tell pci-bios (or the pci driver?) to assign a larger memory space to that BAR? The size is not 
known until runtime.

Saul
Re: How to increase size of PCI device BAR?  
Ok, it is  a hard one... let me ask it in another way:

What is  QNX equivalent of pci_bus_alloc_resource() in Linux?

- S.

Re: How to increase size of PCI device BAR?  
Still a tough question? :-(  Let me try again...

a.Have anyone heard about special versions of pci-bios for systems with non-standard PCI configuration?

b. If we need to make such a special version, is there a way to get pci-bios source?

Thanks,
Saul
Re: How to increase size of PCI device BAR?  
Ok, so assume this is not feasible in QNX; at least without change of pci-bios.
- S.
Re: How to increase size of PCI device BAR?  
The  QNX equivalent of pci_bus_alloc_resource() in Linux is rsrcdbmgr_... group of functions (rsrcdbmgr_attach ... )

Hope this can help to these who will come with  similar questions later. The rsrcdbmgr API was not mentioned in hardware
 related articles, nor in the System architecture book.

So in order to find a free physical memory  to map a PCI device, need to call rsrcdbmgr_attach ? Not yet. the resources 
don't seem to be organized as tree, so there is no way to ask for a memory range that is child to specific PCI bridge ?

- S.