[PATCH v2.6.26] gianfar: Determine TBIPA value dynamically
Scott Wood
scottwood at freescale.com
Sat Apr 12 01:31:25 EST 2008
On Thu, Apr 10, 2008 at 06:34:31PM -0500, Andy Fleming wrote:
>
> + /*
> + * This is mildly evil, but so is our hardware for doing this.
> + * Also, we have to cast back to struct gfar_mii because of
> + * definition weirdness done in gianfar.h.
> + */
> + enet_regs = (struct gfar __iomem *)
> + ((char *)regs - offsetof(struct gfar, gfar_mii_regs));
Can we use to_container() here?
-Scott
More information about the Linuxppc-dev
mailing list