This function is needed for (nearly) all OFW PCI(e) drivers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
What pci drivers do we have that could use this?
sys/dev/ofw/ofw_pci.c | ||
---|---|---|
112 | It looks a bit odd using (*ranges)[i] som any times, perhaps create a variable to point at *ranges? |
Comment Actions
I'm not 100% sure, but probably all arm PCIe drivers have 'ranges' property. To be specific, each one who have I/O, memory and/or config space mapped to fixed (or configurable) address in host address space.
sys/dev/ofw/ofw_pci.c | ||
---|---|---|
112 | oki, i will do it |
Comment Actions
On PPC, instead of a utility function, we have a common newbus base class that does this (powerpc/ofw/ofw_pci*). These remove 99% of the boilerplate from PCI bus drivers as well. I'd prefer that approach on ARM to new functions.