mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Renaud Barbier <renaud.barbier@ge.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/1] ppc io.h: update following MMIO primitives fix
Date: Fri, 11 May 2012 09:06:55 +0200	[thread overview]
Message-ID: <20120511070655.GW27341@pengutronix.de> (raw)
In-Reply-To: <1336658071-14428-1-git-send-email-renaud.barbier@ge.com>

On Thu, May 10, 2012 at 02:54:31PM +0100, Renaud Barbier wrote:
> Following the MMIO primitives fix, the definitions of __raw_* function
> is sourced from Linux and added.
> 
> Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>

Applied, thanks

Sascha

> ---
>  arch/ppc/include/asm/io.h |   28 ++++++++++++++++++++++++++++
>  1 files changed, 28 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/ppc/include/asm/io.h b/arch/ppc/include/asm/io.h
> index 13187ca..0052989 100644
> --- a/arch/ppc/include/asm/io.h
> +++ b/arch/ppc/include/asm/io.h
> @@ -105,6 +105,34 @@ extern void _outsl_ns(volatile u32 *port, const void *buf, int nl);
>  #define iobarrier_w()  eieio()
>  
>  /*
> + * Non ordered and non-swapping "raw" accessors
> + */
> +static inline unsigned char __raw_readb(const volatile void __iomem *addr)
> +{
> +	return *(volatile unsigned char __force *)(addr);
> +}
> +static inline unsigned short __raw_readw(const volatile void __iomem *addr)
> +{
> +	return *(volatile unsigned short __force *)(addr);
> +}
> +static inline unsigned int __raw_readl(const volatile void __iomem *addr)
> +{
> +	return *(volatile unsigned int __force *)(addr);
> +}
> +static inline void __raw_writeb(unsigned char v, volatile void __iomem *addr)
> +{
> +	*(volatile unsigned char __force *)(addr) = v;
> +}
> +static inline void __raw_writew(unsigned short v, volatile void __iomem *addr)
> +{
> +	*(volatile unsigned short __force *)(addr) = v;
> +}
> +static inline void __raw_writel(unsigned int v, volatile void __iomem *addr)
> +{
> +	*(volatile unsigned int __force *)(addr) = v;
> +}
> +
> +/*
>   * 8, 16 and 32 bit, big and little endian I/O operations, with barrier.
>   */
>  extern inline int in_8(volatile u8 *addr)
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2012-05-11  7:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-10 13:54 Renaud Barbier
2012-05-11  7:06 ` Sascha Hauer [this message]

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=20120511070655.GW27341@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=renaud.barbier@ge.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