* [PATCH 2.6.9-rc4 1/2] typhoon: use module_param
@ 2004-10-15 20:53 Stephen Hemminger
2004-10-15 23:47 ` Jeff Garzik
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2004-10-15 20:53 UTC (permalink / raw)
To: Jeff Garzik; +Cc: netdev
Use module_param
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
diff -Nru a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c
--- a/drivers/net/via-rhine.c 2004-10-15 12:27:28 -07:00
+++ b/drivers/net/via-rhine.c 2004-10-15 12:27:28 -07:00
@@ -177,6 +177,7 @@
#define PKT_BUF_SZ 1536 /* Size of each temporary Rx buffer.*/
#include <linux/module.h>
+#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/timer.h>
@@ -226,9 +227,9 @@
MODULE_DESCRIPTION("VIA Rhine PCI Fast Ethernet driver");
MODULE_LICENSE("GPL");
-MODULE_PARM(max_interrupt_work, "i");
-MODULE_PARM(debug, "i");
-MODULE_PARM(rx_copybreak, "i");
+module_param(max_interrupt_work, int, 0);
+module_param(debug, int, 0);
+module_param(rx_copybreak, int, 0);
MODULE_PARM_DESC(max_interrupt_work, "VIA Rhine maximum events handled per interrupt");
MODULE_PARM_DESC(debug, "VIA Rhine debug level (0-7)");
MODULE_PARM_DESC(rx_copybreak, "VIA Rhine copy breakpoint for copy-only-tiny-frames");
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/10/15 12:46:45-07:00 shemminger@zqx3.pdx.osdl.net
# use module_param
#
# drivers/net/typhoon.c
# 2004/10/15 12:46:34-07:00 shemminger@zqx3.pdx.osdl.net +2 -1
# use module_param
#
diff -Nru a/drivers/net/typhoon.c b/drivers/net/typhoon.c
--- a/drivers/net/typhoon.c 2004-10-15 12:46:59 -07:00
+++ b/drivers/net/typhoon.c 2004-10-15 12:46:59 -07:00
@@ -99,6 +99,7 @@
#define ERR_PFX KERN_ERR PFX
#include <linux/module.h>
+#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/timer.h>
@@ -132,7 +133,7 @@
MODULE_AUTHOR("David Dillow <dave@thedillows.org>");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("3Com Typhoon Family (3C990, 3CR990, and variants)");
-MODULE_PARM(rx_copybreak, "i");
+module_param(rx_copybreak, int, 0);
#if defined(NETIF_F_TSO) && MAX_SKB_FRAGS > 32
#warning Typhoon only supports 32 entries in its SG list for TSO, disabling TSO
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH 2.6.9-rc4 1/2] typhoon: use module_param
2004-10-15 20:53 [PATCH 2.6.9-rc4 1/2] typhoon: use module_param Stephen Hemminger
@ 2004-10-15 23:47 ` Jeff Garzik
2004-10-18 20:46 ` Stephen Hemminger
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2004-10-15 23:47 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: netdev
looks like the via-rhine patch got sucked into this one.
can you retransmit -just- the typhoon module_param patch, it looks like
somebody else already got to netdev_priv in typhoon.
Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2.6.9-rc4 1/2] typhoon: use module_param
2004-10-15 23:47 ` Jeff Garzik
@ 2004-10-18 20:46 ` Stephen Hemminger
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2004-10-18 20:46 UTC (permalink / raw)
To: Jeff Garzik; +Cc: netdev
Here is the diff between my current and your netdev tree.
--- netdev-2.6/drivers/net/typhoon.c 2004-09-22 14:39:42.000000000 -0700
+++ tcp-2.6/drivers/net/typhoon.c 2004-10-18 12:59:51.000000000 -0700
@@ -99,6 +99,7 @@
#define ERR_PFX KERN_ERR PFX
#include <linux/module.h>
+#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/timer.h>
@@ -132,7 +133,7 @@
MODULE_AUTHOR("David Dillow <dave@thedillows.org>");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("3Com Typhoon Family (3C990, 3CR990, and variants)");
-MODULE_PARM(rx_copybreak, "i");
+module_param(rx_copybreak, int, 0);
#if defined(NETIF_F_TSO) && MAX_SKB_FRAGS > 32
#warning Typhoon only supports 32 entries in its SG list for TSO, disabling TSO
@@ -1777,7 +1778,7 @@
typhoon_interrupt(int irq, void *dev_instance, struct pt_regs *rgs)
{
struct net_device *dev = (struct net_device *) dev_instance;
- struct typhoon *tp = dev->priv;
+ struct typhoon *tp = netdev_priv(dev);
void __iomem *ioaddr = tp->ioaddr;
u32 intr_status;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-18 20:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-15 20:53 [PATCH 2.6.9-rc4 1/2] typhoon: use module_param Stephen Hemminger
2004-10-15 23:47 ` Jeff Garzik
2004-10-18 20:46 ` Stephen Hemminger
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).