| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | Re: troubles mmaping PCI device on Au1550 |
| From: | Clem Taylor <clem.taylor@gmail.com> |
| Date: | Tue, 12 Apr 2005 16:56:56 -0400 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=EXANG0ewYmVxOUmh9+F2NCgFYdaOBWQVX7p9N5RQSweNNejEpdm+zrTNllh7jk9hakE7VZreU+9Zi02r2kkFs5Brh19DO7VQpabYC2l0mS28sgoU6x/GN7xPpPV4tzK6mfMjeBBMZL0V7JiGz7e1CNPRkkUB8qlca2VNjRB3rFA= |
| In-reply-to: | <479d91035fe1567525659393491e7ab9@embeddedalley.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <ecb4efd10504101516482a9785@mail.gmail.com> <479d91035fe1567525659393491e7ab9@embeddedalley.com> |
| Reply-to: | Clem Taylor <clem.taylor@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Apr 12, 2005 11:22 AM, Dan Malek <dan@embeddedalley.com> wrote:
> The Au15xx uses 36-bit addressing for the PCI (among other) physical
> addresses. The mmap() in your driver is the right thing, but you need
> to use io_remap_page_range() where the 2nd parameter is a phys_t.
> Your offset should be a phys_t type, and pci_resource_start() also
> returns a phys_t.
Yeah, this was exactly my problem. Last night I managed to find the
comment about this in au1000.h. Now I can happily mmap() the PCI
devices memory. Thanks!
--Clem
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: another 4kc machine check., Greg Weeks |
|---|---|
| Next by Date: | Re: BogoMIPS, Stuart Longland |
| Previous by Thread: | Re: troubles mmaping PCI device on Au1550, Dan Malek |
| Next by Thread: | RE: troubles mmaping PCI device on Au1550, Alexey Shinkin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |