On Wed, Jan 30, 2008 at 06:30:53PM +0800, Zhang Wei wrote:
> The RapidIO system size will auto probe in RIO setup. The route
> table and rionet_active in rionet.c are changed to be allocated
> dynamically according the system size.

<snip>

> +     port->sys_size = (in_be32((priv->regs_win + RIO_PEF_CAR))
> +                                     & RIO_PEF_CTLS) >> 4;
> +     dev_info(&dev->dev, "RapidIO Common Transport System size: %d\n",
> +                     port->sys_size ? 65536 : 256);
> +

This is much nicer than the original hardcoded transport size
implementation.

-Matt
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to