X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/d8365e7fd56ca15c05502848338017013e628a9d..c759ac4ffabb78a8863d9bced695980077eeb319:/lincan/src/can_devrtl.c diff --git a/lincan/src/can_devrtl.c b/lincan/src/can_devrtl.c index 812ea84..d25072a 100644 --- a/lincan/src/can_devrtl.c +++ b/lincan/src/can_devrtl.c @@ -3,7 +3,7 @@ * New CAN queues by Pavel Pisa - OCERA team member * email:pisa@cmp.felk.cvut.cz * This software is released under the GPL-License. - * Version lincan-0.2 9 Jul 2003 + * Version lincan-0.3 17 Jun 2004 */ #ifdef CAN_WITH_RTL @@ -16,6 +16,8 @@ #include +can_spinlock_t can_irq_manipulation_lock; + unsigned int can_rtl_isr( unsigned int irq_num, struct pt_regs *r ) { struct chip_t *chip; @@ -109,10 +111,15 @@ void * can_chip_worker_thread(void *arg) for(i=0;imax_objects;i++){ if((obj=chip->msgobj[i])==NULL) continue; - if(!can_msgobj_test_and_clear_fl(obj,TX_REQUEST)) - continue; - DEBUGMSG("Calling wakeup_tx\n"); - chip->chipspecops->wakeup_tx(chip, obj); + if(can_msgobj_test_fl(obj,TX_REQUEST)) { + DEBUGMSG("Calling wakeup_tx\n"); + chip->chipspecops->wakeup_tx(chip, obj); + } + if(can_msgobj_test_fl(obj,FILTCH_REQUEST)) { + DEBUGMSG("Calling filtch_rq\n"); + if(chip->chipspecops->filtch_rq) + chip->chipspecops->filtch_rq(chip, obj); + } } continue; }