From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Benjamin Herrenschmidt <bh40@calva.net>
Cc: mgreer@mvista.com, linuxppc-dev@lists.linuxppc.org
Subject: Re: Early PCI auto-configuration
Date: Fri, 27 Oct 2000 19:24:57 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.10.10010271921050.390-100000@cassiopeia.home> (raw)
In-Reply-To: <19340920165843.29028@192.168.1.10>
On Fri, 27 Oct 2000, Benjamin Herrenschmidt wrote:
> >[The discussion below is based on the latest fsmlabs 5005 repository
> >code]
>
> You mean linuxppc_2_5, I guess ?
>
> >My problem: The firmware on a couple platform I need to support do
> >absolutely _no_ PCI device initialization.
> But if I understand Geert code correctly, except for IDE devices & VGA
I copied that code from ia32, with some minor modifications to make it work
with the Open Firmware on my LongTrail.
> cards, the pcibios_assign_resources() function will assign bases
> addresses to unassigned devices. This is done by the call to
> pcibios_assign_resources(), and works if your bus resources & ranges have
> been setup properly.
Yep. If you set up the bus resources correctly, that code will assign all
unassigned resources automatically (and reassign conflicting resources) from
the ranges specified by the bus resources.
BTW, before I did this on PPC, I played with PCI resource assignment on a MIPS
board, where the firmware didn't do any PCI assignments (except for Ethernet,
to boot images using TFTP), which is exactly what you want. For reference, that
code is in arch/mips/ddb5074/pci.c.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-10-27 17:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-26 22:46 Early PCI auto-configuration Mark A. Greer
2000-10-26 23:26 ` Benjamin Herrenschmidt
2000-10-27 2:23 ` Matt Porter
2000-10-27 3:01 ` Frank Rowand
2000-10-27 17:24 ` Geert Uytterhoeven [this message]
2000-10-27 19:06 ` Mark A. Greer
2000-11-16 23:05 ` header file location Frank Rowand
2000-11-17 6:52 ` Geert Uytterhoeven
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=Pine.LNX.4.10.10010271921050.390-100000@cassiopeia.home \
--to=geert@linux-m68k.org \
--cc=bh40@calva.net \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=mgreer@mvista.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).