linux-mips
[Top] [All Lists]

ioremapping pci mem window points to same location

To: linux-mips@linux-mips.org
Subject: ioremapping pci mem window points to same location
From: "atul srivastava" <atulsrivastava9@rediffmail.com>
Date: 10 Oct 2002 13:07:04 -0000
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: "atul srivastava" <atulsrivastava9@rediffmail.com>
Sender: linux-mips-bounce@linux-mips.org
Hello,

in asm-mips/io.h
ioremap() just mask the first three bits then add the KSEG offset. [ (address & 0x1fffffff) + KSEG ]

suppose my pci bridge provides two memory windows
physical 40000000  to 40ffffff   and
physical 60000000  to 60ffffff

doesn't after iorremapping addresses in above two ranges
will point to same location after applying mathematics
of ioremap() ..how i will take care of this ..should i use only one window at a time.

Best Regards,
Ashish
__________________________________________________________
Give your Company an email address like
ravi @ ravi-exports.com.  Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/


<Prev in Thread] Current Thread [Next in Thread>
  • ioremapping pci mem window points to same location, atul srivastava <=