Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] netpoll support for lasi_82596
Date: Tue, 5 Jul 2005 22:43:32 +0200	[thread overview]
Message-ID: <200507052243.32912.deller@gmx.de> (raw)
In-Reply-To: <878y0t66v5.fsf@deprecated.intranet.astaro.de>

Thanks Sven,

I've applied your patch (with small modifications).

Helge

On Wednesday 29 June 2005 07:59, Sven Schnelle wrote:
> Hi,
> 
> i'm working on kgdb for linux-2.6, and added netpoll support to the
> lasi_82596 driver. Maybe we can add this patch?
> 
> ---------------------------------------------------------------
> Index: lasi_82596.c
> ===================================================================
> RCS file: /var/cvs/linux-2.6/drivers/net/lasi_82596.c,v
> retrieving revision 1.15
> diff -u -r1.15 lasi_82596.c
> --- lasi_82596.c	29 Nov 2004 19:56:12 -0000	1.15
> +++ lasi_82596.c	29 Jun 2005 05:25:40 -0000
> @@ -415,6 +415,9 @@
>  static int ticks_limit = 100;
>  static int max_cmd_backlog = TX_RING_SIZE-1;
>  
> +#if CONFIG_NET_POLL_CONTROLLER
> +static void i596_poll_controller(struct net_device *dev);
> +#endif
>  
>  static inline void CA(struct net_device *dev)
>  {
> @@ -1209,7 +1212,9 @@
>  	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);
>  
>  	lp = dev->priv;
> @@ -1242,6 +1247,14 @@
>  	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)
>  {
> --------------------------------------------------------------------------------
> 
> Thanks,
> 
> Sven.
> -- 
> We've seen the restless children at the head of the columns
> Come to purify the future with the arrogance of youth
> 
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

  reply	other threads:[~2005-07-05 20:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-29  5:59 [parisc-linux] netpoll support for lasi_82596 Sven Schnelle
2005-07-05 20:43 ` Helge Deller [this message]
2005-07-06  6:22   ` kgdb (was: Re: [parisc-linux] netpoll support for lasi_82596) Sven Schnelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200507052243.32912.deller@gmx.de \
    --to=deller@gmx.de \
    --cc=parisc-linux@lists.parisc-linux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox