[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Xilinx EMAC driver in polling mode
Hi Balajee,
Balajee Premraj wrote:
Hi, we would like to run the Xilinx emac driver in polling mode.
I have already set the option "XEM_POLLED_OPTION" to indicate the Xilinx
driver to operate on the polling mode, We need to intimate the upper
stacks of the kernel as well to run on the polling mode.
Can any one give some brain storming on how to modify the adapter.c file
on the linux to run it on the polling mode.
Any help would be greatly appreciated.
A couple of thoughts:
1. You'll need a tasklet to periodically check if any packets have
arrived, and if so they will be passed up the stack via the netif_rx() call.
2. You'll need a new hard_start_xmit handler that does polled sending.
The curernt handlers (FIFO and SGDMA) rely on an TX completion
uinterrupt to finish processing. You'll replace them with one that
polls, that either
(a) waits until succesfull transmission, or
(b) sets up a tasklet that checks completion status "later on", and
respons accordingly.
Seems a lot easier to just use interrupts, but that's your decision!
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/