Hi Wolfgang, I would say that it is done quite similar. Maybe those defines (CHANNEL_SLAVE_2 ...) are misleading. The main difference is that there is rtcan_peak_pci_add_chan(...) which is called in loop in peak_pci_init_one(...) instead of putting all code here. I left that this way to make may modification minimally invasive to original code.
Pozdrawiam Konrad Banachowicz 2013/11/7 Wolfgang Grandegger <[email protected]> > Hi Konrad, > > could you please add 4 channel support as done for the corresponding Linux > driver: > > http://lxr.free-electrons.com/source/drivers/net/can/sja1000/peak_pci.c > > The master/slave approach is ugly and does not scale properly. > > On Thu, 7 Nov 2013 13:21:17 +0100, Konrad Banachowicz > <[email protected]> wrote: > > --- > > ksrc/drivers/can/sja1000/rtcan_peak_pci.c | 61 > > ++++++++++++++--------------- > > 1 file changed, 30 insertions(+), 31 deletions(-) > > Also please add a patch description next time. > > Thanks, > > Wolfgang. > > _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
