Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10507
b: refs/heads/master
c: c270902
h: refs/heads/master
i:
  10505: cc08631
  10503: 72436a7
v: v3
  • Loading branch information
Sven Schnelle authored and Kyle McMartin committed Oct 22, 2005
1 parent fdbb3fb commit 61e6e69
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd0fd51dc1585941c2edccdb40e5f11ea3a64496
refs/heads/master: c2709020adb442f7d25f0805af08a3b6cfedd7be
21 changes: 18 additions & 3 deletions trunk/drivers/net/lasi_82596.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ static int rx_ring_size = RX_RING_SIZE;
static int ticks_limit = 100;
static int max_cmd_backlog = TX_RING_SIZE-1;

#ifdef CONFIG_NET_POLL_CONTROLLER
static void i596_poll_controller(struct net_device *dev);
#endif


static inline void CA(struct net_device *dev)
{
Expand Down Expand Up @@ -636,11 +640,11 @@ static int init_i596_mem(struct net_device *dev)

disable_irq(dev->irq); /* disable IRQs from LAN */
DEB(DEB_INIT,
printk("RESET 82596 port: %p (with IRQ %d disabled)\n",
(void*)(dev->base_addr + PA_I82596_RESET),
printk("RESET 82596 port: %lx (with IRQ %d disabled)\n",
(dev->base_addr + PA_I82596_RESET),
dev->irq));

gsc_writel(0, (void*)(dev->base_addr + PA_I82596_RESET)); /* Hard Reset */
gsc_writel(0, (dev->base_addr + PA_I82596_RESET)); /* Hard Reset */
udelay(100); /* Wait 100us - seems to help */

/* change the scp address */
Expand Down Expand Up @@ -1209,6 +1213,9 @@ static int __devinit i82596_probe(struct net_device *dev,
dev->set_multicast_list = set_multicast_list;
dev->tx_timeout = i596_tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = i596_poll_controller;
#endif

dev->priv = (void *)(dev->mem_start);

Expand Down Expand Up @@ -1242,6 +1249,14 @@ static int __devinit i82596_probe(struct net_device *dev,
return 0;
}

#ifdef CONFIG_NET_POLL_CONTROLLER
static void i596_poll_controller(struct net_device *dev)
{
disable_irq(dev->irq);
i596_interrupt(dev->irq, dev, NULL);
enable_irq(dev->irq);
}
#endif

static irqreturn_t i596_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
Expand Down

0 comments on commit 61e6e69

Please sign in to comment.