| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | Re: VR4131 - MQ1132 - UPD63335 |
| From: | Dimitri Torfs <dimitri@sonycom.com> |
| Date: | Sun, 18 Jan 2004 10:23:19 +0100 |
| In-reply-to: | <20040117125142.GX14285@lug-owl.de> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <40079391.7080301@mistralsoftware.com> <20040117122022.GD5288@linux-mips.org> <20040117125142.GX14285@lug-owl.de> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.4.1i |
On Sat, Jan 17, 2004 at 01:51:42PM +0100, Jan-Benedict Glaw wrote: > On Sat, 2004-01-17 13:20:22 +0100, Ralf Baechle <ralf@linux-mips.org> > wrote in message <20040117122022.GD5288@linux-mips.org>: > > #define FOO_BASE 0x12340000UL /* physical address */ > ^^^^^^^^^^ > > #define FOO_SIZE 0x00001000UL > > > > base = ioremap(0x1234, FOO_SIZE); > ^^^^^^ > Not FOO_BASE? > And it's better to use writel/readl and friends on thingies returned by ioremap: struct foo_regs* foo = ioremap(FOO_BASE, FOO_SIZE); ... writel(42, &foo->blinkenlight); Dimitri -- Dimitri Torfs | NSCE dimitri@sonycom.com | The Corporate Village tel: +32 2 7008541 | Da Vincilaan 7 - D1 fax: +32 2 7008622 | B-1935 Zaventem - Belgium |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Trouble compiling MIPS cross-compiler, Kumba |
|---|---|
| Next by Date: | Re: Trouble compiling MIPS cross-compiler, Geert Uytterhoeven |
| Previous by Thread: | Re: VR4131 - MQ1132 - UPD63335, Jan-Benedict Glaw |
| Next by Thread: | hang in setup_irq, Bruno Randolf |
| Indexes: | [Date] [Thread] [Top] [All Lists] |