[Xenomai-core] [PATCH] RT-Socket-CAN, TX loopback and further improvements

2006-11-14 Thread Wolfgang Grandegger
Hi Jan, attached is a patch implementing the TX loopback, apart from some other fixes and improvements. The TX loopback to foreign local sockets allows to have a net-alike behavior of the CAN bus. Local sockets listening to a device can receive TX messages as well. As discussed, the TX

Re: [Xenomai-core] [PATCH] RT-Socket-CAN, TX loopback and further improvements

2006-11-14 Thread Wolfgang Grandegger
Attached is the missing patch! Wolfgang Grandegger wrote: Hi Jan, attached is a patch implementing the TX loopback, apart from some other fixes and improvements. The TX loopback to foreign local sockets allows to have a net-alike behavior of the CAN bus. Local sockets listening to a device

Re: [Xenomai-core] [PATCH] Don't call __ipipe_mach_set_dec in rthal_timer_release directly

2006-11-14 Thread Gilles Chanteperdrix
Sebastian Smolorz wrote: Hi, here's a proposal for a minor change in the I-pipe implementation for ARM. Since it is required for my S3C24xx patch not to call __ipipe_mach_set_dec directly when the timer is released by the Xenomai domain I suggest the following changes. The patch

Re: [Xenomai-core] [PATCH] RT-Socket-CAN, TX loopback and further improvements

2006-11-14 Thread Wolfgang Grandegger
Jan Kiszka wrote: Wolfgang Grandegger wrote: @@ -894,6 +937,12 @@ /* We got access */ +#ifdef CONFIG_XENO_DRIVERS_RTCAN_TX_LOOPBACK +/* Push message onto stack for loopback when TX done */ +if (sock-tx_loopback) +rtcan_tx_push(dev, sock, frame); +#endif /*

Re: [Xenomai-core] [PATCH] RT-Socket-CAN, TX loopback and further improvements

2006-11-14 Thread Jan Kiszka
Wolfgang Grandegger wrote: Hi Jan, Jan Kiszka wrote: Hi Wolfgang, [...deletions...] Last remark: For the sake of completeness, tx-loopback should also be implemented in the virtual CAN driver. The virtual CAN driver already works like TX loopback. It routes TX messages to local