* [PATCH] Remove auto_irq.c
@ 2004-05-14 15:44 Jonathan Corbet
2004-05-15 22:50 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Corbet @ 2004-05-14 15:44 UTC (permalink / raw)
To: netdev; +Cc: jgarzik
I was looking to see if anything still uses the autoirq_* functions in
2.6. Turns out that nothing does; in fact, the file is not even compiled.
I would guess we don't need to lug auto_irq.c around anymore...
jon
diff -purN -X dontdiff 2.6.6-vanilla/drivers/net/auto_irq.c 2.6.6/drivers/net/auto_irq.c
--- 2.6.6-vanilla/drivers/net/auto_irq.c 2003-09-08 13:50:06.000000000 -0600
+++ 2.6.6/drivers/net/auto_irq.c 1969-12-31 17:00:00.000000000 -0700
@@ -1,68 +0,0 @@
-/* auto_irq.c: Auto-configure IRQ lines for linux. */
-/*
- Written 1994 by Donald Becker.
-
- The author may be reached as becker@scyld.com
-
- This code is a general-purpose IRQ line detector for devices with
- jumpered IRQ lines. If you can make the device raise an IRQ (and
- that IRQ line isn't already being used), these routines will tell
- you what IRQ line it's using -- perfect for those oh-so-cool boot-time
- device probes!
-
- To use this, first call autoirq_setup(timeout). TIMEOUT is how many
- 'jiffies' (1/100 sec.) to detect other devices that have active IRQ lines,
- and can usually be zero at boot. 'autoirq_setup()' returns the bit
- vector of nominally-available IRQ lines (lines may be physically in-use,
- but not yet registered to a device).
- Next, set up your device to trigger an interrupt.
- Finally call autoirq_report(TIMEOUT) to find out which IRQ line was
- most recently active. The TIMEOUT should usually be zero, but may
- be set to the number of jiffies to wait for a slow device to raise an IRQ.
-
- The idea of using the setup timeout to filter out bogus IRQs came from
- the serial driver.
-*/
-
-
-#ifdef version
-static const char *version=
-"auto_irq.c:v1.11 Donald Becker (becker@scyld.com)";
-#endif
-
-#include <linux/module.h>
-#include <linux/jiffies.h>
-#include <linux/delay.h>
-#include <asm/bitops.h>
-#include <asm/io.h>
-#include <asm/irq.h>
-#include <linux/netdevice.h>
-
-static unsigned long irqs;
-
-void autoirq_setup(int waittime)
-{
- irqs = probe_irq_on();
-}
-
-#define BUSY_LOOP_UNTIL(j) while ((long)(jiffies-(j)) < 0) ;
-int autoirq_report(int waittime)
-{
- unsigned long delay = jiffies + waittime;
- BUSY_LOOP_UNTIL(delay)
- return probe_irq_off(irqs);
-}
-
-EXPORT_SYMBOL(autoirq_setup);
-EXPORT_SYMBOL(autoirq_report);
-
-\f
-/*
- * Local variables:
- * compile-command: "gcc -DKERNEL -Wall -O6 -fomit-frame-pointer -I/usr/src/linux/net/tcp -c auto_irq.c"
- * version-control: t
- * kept-new-versions: 5
- * c-indent-level: 4
- * tab-width: 4
- * End:
- */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Remove auto_irq.c
2004-05-14 15:44 [PATCH] Remove auto_irq.c Jonathan Corbet
@ 2004-05-15 22:50 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2004-05-15 22:50 UTC (permalink / raw)
To: Jonathan Corbet; +Cc: netdev
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-15 22:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-14 15:44 [PATCH] Remove auto_irq.c Jonathan Corbet
2004-05-15 22:50 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).