From: Kristoffer Carlsson <kristoffer@gaisler.com>
To: sparclinux@vger.kernel.org
Subject: pci layer
Date: Sun, 27 Aug 2006 14:28:14 +0000 [thread overview]
Message-ID: <44F1ABFE.1080102@gaisler.com> (raw)
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
reply other threads:[~2006-08-27 14:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44F1ABFE.1080102@gaisler.com \
--to=kristoffer@gaisler.com \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.