From: Michel Lanners <mlan@cpu.lu>
To: ran@krazynet.com
Cc: mj@ucw.cz, linuxppc-dev@lists.linuxppc.org
Subject: Re: Various PMac PCI patches
Date: Fri, 20 Aug 1999 19:10:32 +0200 (CEST) [thread overview]
Message-ID: <199908201710.TAA00326@piglet.cpu.lu> (raw)
In-Reply-To: <19990819233530.A138@gondolin.asf>
On 19 Aug, this message from Ryan Nielsen echoed through cyberspace:
> Michel Lanners wrote:
>> > isa_io_base is set to the address of bus 0 !
>> > so inl() and friends use wrong address for cards on bus 1.
>>
>> That's expected (and broken) behaviour right now; I know how to correct
>> the problem, but I need to do some hacking to get it coded right.
>
> What are you plannering ?
>
> I got tulip working by #define _IO_BASE DRIVER_IO_BASE (ifdef) in asm/io.h
> and define DRIVER_IO_BASE to a value from pci_io_base(bus) in tulip.c
Fixing IO space addresses in the kernel pci structs, so that any driver
referencing the pci structs gets the right kernel virtual address for
the ports without fiddling with _IO_BASE. In fact, it means adding an
offset to the address reported in the PCI device's config registers.
This offset id provided by the parent bus bridge.
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art.
23, Rue Paul Henkes | Ask Questions. Make Mistakes.
L-1710 Luxembourg |
email mlan@cpu.lu |
http://www.cpu.lu/~mlan | Learn Always. "
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
next prev parent reply other threads:[~1999-08-20 17:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-08 20:34 Various PMac PCI patches Michel Lanners
1999-08-15 8:33 ` Martin Mares
1999-08-15 9:40 ` Michel Lanners
1999-08-16 7:32 ` Geert Uytterhoeven
1999-08-20 3:47 ` Ryan Nielsen
1999-08-20 5:58 ` Michel Lanners
1999-08-20 6:35 ` Ryan Nielsen
1999-08-20 17:10 ` Michel Lanners [this message]
1999-08-25 17:27 ` Michel Lanners
1999-08-25 23:32 ` Ryan Nielsen
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=199908201710.TAA00326@piglet.cpu.lu \
--to=mlan@cpu.lu \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=mj@ucw.cz \
--cc=ran@krazynet.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).