* pci layer
@ 2006-08-27 14:28 Kristoffer Carlsson
0 siblings, 0 replies; only message in thread
From: Kristoffer Carlsson @ 2006-08-27 14:28 UTC (permalink / raw)
To: sparclinux
Hi all,
I'm adding PCI support to the LEON sparc linux port and I have
some questions for you.
The pci controller is set up to have one 256 MB big window to
which accesses generates PCI memory cycles and a 64 KB big
window for IO cycles.
First I configured the PCIBIOS_MIN_MEM/IO macros to match
these windows and called pci_scan_bus() followed by
pci_assign_unassigned_resources(). I got this working quite
nicely but I realised that the PCI IO resources should be
remapped by the kernel and not by the drivers.
I'm not sure in which way to achieve this. I tried to replace the
resource for pci devices with io from pcibios_fixup_bus somewhat
like in the sparc32 port but that seemed to be ignored by the
generic pci code.
I based my pci layer port on the sparc32 version but have taken
bits and pieces from other archs. Many archs seem to set the
PCIBIOS_MIN_MEM/IO to 0 and use request_resource to setup iomem_resource
and ioport_resource but I don't get that to work properly.
Can someone provide any helpful pointers to how this should
be done?
Regards,
Kristoffer Carlsson
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-27 14:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-27 14:28 pci layer Kristoffer Carlsson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.