linux-mips
[Top] [All Lists]

Re: [patch] some cleanups for Alchemy processors

To: Ulrich Eckhardt <eckhardt@satorlaser.com>
Subject: Re: [patch] some cleanups for Alchemy processors
From: Dan malek <danm@embeddededge.com>
Date: Mon, 18 Apr 2005 10:45:33 -0400
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
In-reply-to: <200504181137.49593.eckhardt@satorlaser.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <200504181137.49593.eckhardt@satorlaser.com>
Sender: linux-mips-bounce@linux-mips.org

On Apr 18, 2005, at 5:37 AM, Ulrich Eckhardt wrote:

-void static inline au_writeb(u8 val, int reg)
+void static inline au_writeb(u8 val, unsigned long port)
 {
-       *(volatile u8 *)(reg) = val;
+       *(volatile u8 *)(port) = val;

Technically, these are registers, not "ports", so please
don't change their name.  They are memory mapped
registers, as their name implies.

Thanks.


        -- Dan


<Prev in Thread] Current Thread [Next in Thread>