我最近在lowRISC
工作,我想为它添加Ethernet support
。我添加了Ethernet IP
并将其连接到AXI bus
和Ethernet PHY
,我将Ethernet interrupt
添加到interrupt wire
,就像uart
一样和spi
做。
现在我正在linux kernel
编写驱动程序以支持我的以太网。但我没有找到uart和spi中断的句柄函数,只有2个中断称为IRQ_SOFTWARE
和IRQ_TIMER
(在文件arch/riscv/include/asm/irq.h
中)。
lowRISC芯片如何处理uart
和spi
中断?如何处理lowRISC芯片上的以太网中断?