Network driver on ppc 405EX

Abg Abg abg.mur22 at
Fri Sep 19 08:08:45 EST 2008

  Hope this is the correct list for driver related queries for ppc boards

I was porting a network driver for a ppc 405EX based embedded system (kilauea config).
The module builds fine and loads and I see the probe routine get called correctly.
However when I try remapping the BAR0 address from the PCI config space, the ioremap fails.
A little debugging showed that the address passed to ioremap was zero.
I pass the address to the ioremap via pci_resource_start(pdev, 0) where pdev is a type struct pci_dev *.

I dumped the contents of the pdev and saw that the vendor-id, device id etc were correct, however the BAR0 address seemed to be all zeroes.

The question that I had was
1. Is there any kernel config that needs to be done for PCI devices to be able to remap the BAR0 addresses.
2. Any other kernel parameter that needs to be tweaked?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Linuxppc-embedded mailing list