acc_card_interrupt(9)
π acc_card_interrupt(9) β Kernel API Manual π
β¨ NAME β¨
okay bestie, this one is acc_card_interrupt β handle the interrupts of an esdACC FPGA. no cap, thatβs the whole name vibe π¦
πΈ SYNOPSIS πΈ
irqreturn_t acc_card_interrupt (struct acc_ov *ov , struct acc_core *cores );
π ARGUMENTS π
ovβ overview module structure. main-character struct energy π«Άcoresβ array of core structures. yes, an array, bestie π
π DESCRIPTION π
This function handles all interrupts pending for the overview module and the CAN cores of the esdACC FPGA. itβs giving interrupt central π₯
For all cores β the overview module core and the CAN cores β it examines bmfifo.irq_cnt and compares it with the previously saved bmfifo.local_irq_cnt. An IRQ is pending if they differ. The esdACC FPGA updates the bmfifo.irq_cnt values by DMA. slay, DMA is doing the background work β¨
The pending interrupts are masked by writing to the IRQ mask register at ACC_OV_OF_BM_IRQ_MASK. This register has, for each core, a two-bit command field. The source lays it out with the header Define, bit pattern: meaning, and the entries are: 00: no action; ACC_BM_IRQ_UNMASK, 01: unmask interrupt; ACC_BM_IRQ_MASK, 10: mask interrupt; 11: no action. keep those exact constants, iykyk π
For each CAN core with a pending IRQ, handle_core_interrupt handles all busmaster messages from the message FIFO. The last handled message (FIFO index) is written to the CAN core to acknowledge its handling. thatβs the little receipt, fr fr π§Ύ
Last step: unmask all interrupts in the FPGA using ACC_BM_IRQ_UNMASK_ALL. iconic finishing move π
π RETURN π
IRQ_HANDLEDβ if the card generated an interrupt that was handled. πIRQ_NONEβ if the interrupt is not ours. not me looking away π
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/can/esd/esdacc.cβ go read it, bestie π
Made with π from ./drivers/net/can/esd, dated October 2026, and filed under acc_card_interrupt(9). byeee π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms