[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100429120321.55b90efc@lxorguk.ukuu.org.uk>
Date: Thu, 29 Apr 2010 12:03:21 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: "Epshteyn, Eugene" <eugene.epshteyn@...el.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH 1/4] Mobile security processor driver
> -struct sep_driver_init_t {
> - /* start of the 1G of the host memory address that SEP can access */
> - unsigned long message_addr;
> + /* new base address */
> + dma_addr_t new_base_addr;
> +};
We seem to be going backwards - deformatting code
> +static inline u32 SEP_READ_REGISTER(struct device_context *dev, int reg)
> +{
> + void __iomem *addr = dev->reg_addr + reg;
> + return readl_be(addr);
> +}
Re adding wrappers
> +#define SEP_CHANGE_ENDIANNESS(val) \
> + (((val) >> 24) | (((val) & 0x00FF0000) >> 8) | \
> + (((val) & 0x0000FF00) << 8) | \
> + (((val) & 0x000000FF) << 24))
And other goo
> * CHANGES:
> *
> - * 2009.06.26 Initial publish
> + * 2010.01.08 Initial publish
Sorry ?????
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists