1 --- ixp425-eth-1.1-r4/ixp425_eth.c 2005-06-16 00:47:55.360598896 -0700
2 +++ ixp425-eth-1.1-r4/ixp425_eth.c 2005-06-16 18:42:09.840377651 -0700
6 /* PMU Timer reload : this should be done at each interrupt */
7 +#if 0 /* UNUSED - used for polling */
8 static void dev_pmu_timer_restart(void)
10 __asm__(" mcr p14,0,%0,c1,c1,0\n" /* write current counter */
12 " mcr p14,0,r1,c4,c1,0\n" /* enable interrupts */
17 /* Internal ISR : run a few thousand times per second and calls
18 * the queue manager dispatcher entry point.
20 /* Internal ISR : run a few thousand times per second and calls
21 * the ethernet entry point.
23 +#if 0 /* UNUSED - used for polling */
24 static irqreturn_t dev_poll_os_isr(int irg, void *dev_id, struct pt_regs *regs)
26 int qlevel = __get_cpu_var(softnet_data).input_pkt_queue.qlen;
27 @@ -1127,8 +1130,10 @@
28 ixEthTxFrameDoneQMCallback(0,0);
33 /* initialize the PMU timer */
34 +#if 0 /* UNUSED - used for polling */
35 static int dev_pmu_timer_init(void)
37 UINT32 controlRegisterMask =
44 /* stops the timer when the module terminates */
45 static void dev_pmu_timer_disable(void)
50 +#if 0 /* UNUSED - used for polling */
51 /* The QMgr dispatch entry point can be called from the
52 * IXP425_INT_LVL_QM1 irq (which will trigger
53 * an interrupt for every packet) or a timer (which will
56 if (request_irq(IXP425_INT_LVL_QM1,
59 + SA_SHIRQ | SA_SAMPLE_RANDOM,
61 (void *)IRQ_ANY_PARAMETER))
69 /* Enable the MAC port.
70 * Called on do_dev_open, dev_tx_timeout and mtu size changes
73 if (request_irq(IXP425_INT_LVL_QM1,
76 + SA_SHIRQ | SA_SAMPLE_RANDOM,
78 (void *)IRQ_ANY_PARAMETER))
80 @@ -2669,6 +2671,10 @@
84 +#if 0 /* DISABLE polling */
85 + /* Enable Interrupt driven driver
86 + * see http://www.nslu2-linux.org/wiki/OpenSlug/StabilizeEthernetDriver
88 if (no_csr_init == 0) /* module parameter */
90 /* The QMgr dispatch entry point is called from the IXP425_INT_LVL_QM1 irq