[RTnet-developers] Disabling Soft Interrupts for new Broadcom NetXtreme Driver
Brought to you by:
bet-frogger,
kiszka
|
From: Edward H. <qua...@op...> - 2010-10-04 20:13:19
|
I am attempting to port the Broadcom tg3 NetXtreme linux driver to rtnet. The Broadcom driver internally utilizes spin_lock_bh/spin_unlock_bh to disable/enable software interrupts. There is no rtdm lock equivalent. I believe that software interrupts are used by the driver for the following reasons: 1. To allow for simultaneous DMA read write operations 2. To use shared local variables in a critical section of the driver. 3. To receive changes to settings variables in realtime from the userpace Nextreme utilities. (not sure about this one). What RTDM lock functions should I use to substitute for spin_lock_bh/spin_unlock_bh? Should I substitute rtdm_lock_get_irqsave/rtdm_lock_put_irqrestore? Or does rtdm need to ne extended for softirqs used internally by the driver? I looked through the other device drivers and could not detect the correct substitute. RSVP. Thanks. Best Regards, Ed |