sja1000p_irq_handler

Name

sja1000p_irq_handler --  interrupt service routine

Synopsis

irqreturn_t sja1000p_irq_handler (int irq, void * dev_id, struct pt_regs * regs);

Arguments

irq

interrupt vector number, this value is system specific

dev_id

driver private pointer registered at time of request_irq call. The CAN driver uses this pointer to store relationship of interrupt to chip state structure - struct chip_t

regs

system dependent value pointing to registers stored in exception frame

Description

Interrupt handler is activated when state of CAN controller chip changes, there is message to be read or there is more space for new messages or error occurs. The receive events results in reading of the message from CAN controller chip and distribution of message through attached message queues.

File

src/sja1000p.c