netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACX: swap netdevice_t for struct net_device
@ 2006-01-14 23:43 Carlos Martín
  2006-01-15 11:06 ` Denis Vlasenko
  0 siblings, 1 reply; 3+ messages in thread
From: Carlos Martín @ 2006-01-14 23:43 UTC (permalink / raw)
  To: acx100-devel; +Cc: netdev, Denis Vlasenko

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

Hi,

 Does netdevice_t serve any actual purpose now? It used to be for 2.2/2.4 
compatibility, but we don't have that anymore.

 Attached patch does a s/netdevice_t/struct net_device/g on all the files that 
required it. It's against 20060114

   cmn
-- 
Carlos Martín       http://www.cmartin.tk

"Erdbeben? Sicherlich etwas, das mit Erdberen zu tun hat." -- me, paraphrased

[-- Attachment #2: acx-kill-netdevice_t.patch --]
[-- Type: text/x-diff, Size: 7530 bytes --]

diff --git a/acx_func.h b/acx_func.h
index fb55e29..6798b79 100644
--- a/acx_func.h
+++ b/acx_func.h
@@ -352,7 +352,7 @@ acx_up_helper(wlandevice_t *priv, const 
 ** IRQ -> acxpci_l_clean_txdesc -> acx_wake_queue
 ** Review carefully all callsites */
 static inline void
-acx_stop_queue(netdevice_t *dev, const char *msg)
+acx_stop_queue(struct net_device *dev, const char *msg)
 {
 	if (netif_queue_stopped(dev))
 		return;
@@ -363,14 +363,14 @@ acx_stop_queue(netdevice_t *dev, const c
 }
 
 static inline int
-acx_queue_stopped(netdevice_t *dev)
+acx_queue_stopped(struct net_device *dev)
 {
 	return netif_queue_stopped(dev);
 }
 
 /*
 static inline void
-acx_start_queue(netdevice_t *dev, const char *msg)
+acx_start_queue(struct net_device *dev, const char *msg)
 {
 	netif_start_queue(dev);
 	if (msg)
@@ -379,7 +379,7 @@ acx_start_queue(netdevice_t *dev, const 
 */
 
 static inline void
-acx_wake_queue(netdevice_t *dev, const char *msg)
+acx_wake_queue(struct net_device *dev, const char *msg)
 {
 	netif_wake_queue(dev);
 	if (msg)
@@ -387,7 +387,7 @@ acx_wake_queue(netdevice_t *dev, const c
 }
 
 static inline void
-acx_carrier_off(netdevice_t *dev, const char *msg)
+acx_carrier_off(struct net_device *dev, const char *msg)
 {
 	netif_carrier_off(dev);
 	if (msg)
@@ -395,7 +395,7 @@ acx_carrier_off(netdevice_t *dev, const 
 }
 
 static inline void
-acx_carrier_on(netdevice_t *dev, const char *msg)
+acx_carrier_on(struct net_device *dev, const char *msg)
 {
 	netif_carrier_on(dev);
 	if (msg)
@@ -601,7 +601,7 @@ void acx_l_update_ratevector(wlandevice_
 void acx_init_task_scheduler(wlandevice_t *priv);
 void acx_schedule_task(wlandevice_t *priv, unsigned int set_flag);
 
-int acx_e_ioctl_old(netdevice_t *dev, struct ifreq *ifr, int cmd);
+int acx_e_ioctl_old(struct net_device *dev, struct ifreq *ifr, int cmd);
 
 client_t *acx_l_sta_list_get(wlandevice_t *priv, const u8 *address);
 void acx_l_sta_list_del(wlandevice_t *priv, client_t *clt);
@@ -634,7 +634,7 @@ const char* acx_get_packet_type_string(u
 #endif
 const char* acx_cmd_status_str(unsigned int state);
 
-int acx_i_start_xmit(struct sk_buff *skb, netdevice_t *dev);
+int acx_i_start_xmit(struct sk_buff *skb, struct net_device *dev);
 
 void great_inquisitor(wlandevice_t *priv);
 
@@ -642,8 +642,8 @@ void acx_s_get_firmware_version(wlandevi
 void acx_display_hardware_details(wlandevice_t *priv);
 
 int acx_e_change_mtu(struct net_device *dev, int mtu);
-struct net_device_stats* acx_e_get_stats(netdevice_t *dev);
-struct iw_statistics* acx_e_get_wireless_stats(netdevice_t *dev);
+struct net_device_stats* acx_e_get_stats(struct net_device *dev);
+struct iw_statistics* acx_e_get_wireless_stats(struct net_device *dev);
 
 int __init acxpci_e_init_module(void);
 int __init acxusb_e_init_module(void);
diff --git a/common.c b/common.c
index 80fe316..b42f296 100644
--- a/common.c
+++ b/common.c
@@ -755,14 +755,14 @@ acx_e_change_mtu(struct net_device *dev,
 ** acx_e_get_stats, acx_e_get_wireless_stats
 */
 struct net_device_stats*
-acx_e_get_stats(netdevice_t *dev)
+acx_e_get_stats(struct net_device *dev)
 {
 	wlandevice_t *priv = netdev_priv(dev);
 	return &priv->stats;
 }
 
 struct iw_statistics*
-acx_e_get_wireless_stats(netdevice_t *dev)
+acx_e_get_wireless_stats(struct net_device *dev)
 {
 	wlandevice_t *priv = netdev_priv(dev);
 	return &priv->wstats;
@@ -2801,7 +2801,7 @@ acx_l_handle_txrate_auto(wlandevice_t *p
 ** Called by network core. Can be called outside of process context.
 */
 int
-acx_i_start_xmit(struct sk_buff *skb, netdevice_t *dev)
+acx_i_start_xmit(struct sk_buff *skb, struct net_device *dev)
 {
 	wlandevice_t *priv = netdev_priv(dev);
 	tx_t *tx;
@@ -3839,7 +3839,7 @@ acx_l_process_data_frame_client(wlandevi
 {
 	const u8 *da, *bssid;
 	const wlan_hdr_t *hdr;
-	netdevice_t *dev = priv->netdev;
+	struct net_device *dev = priv->netdev;
 	int result = NOT_OK;
 
 	FN_ENTER;
@@ -6492,7 +6492,7 @@ acx_s_after_interrupt_recalib(wlandevice
 static void
 acx_e_after_interrupt_task(void *data)
 {
-	netdevice_t *dev = (netdevice_t *) data;
+	struct net_device *dev = (struct net_device *) data;
 	wlandevice_t *priv = netdev_priv(dev);
 
 	FN_ENTER;
diff --git a/pci.c b/pci.c
index 4bc7b58..de0ddb3 100644
--- a/pci.c
+++ b/pci.c
@@ -95,14 +95,14 @@
 
 /***********************************************************************
 */
-static void acxpci_i_tx_timeout(netdevice_t *dev);
+static void acxpci_i_tx_timeout(struct net_device *dev);
 static irqreturn_t acxpci_i_interrupt(int irq, void *dev_id, struct pt_regs *regs);
-static void acxpci_i_set_multicast_list(netdevice_t *dev);
+static void acxpci_i_set_multicast_list(struct net_device *dev);
 
-static int acxpci_e_open(netdevice_t *dev);
-static int acxpci_e_close(netdevice_t *dev);
-static void acxpci_s_up(netdevice_t *dev);
-static void acxpci_s_down(netdevice_t *dev);
+static int acxpci_e_open(struct net_device *dev);
+static int acxpci_e_close(struct net_device *dev);
+static void acxpci_s_up(struct net_device *dev);
+static void acxpci_s_down(struct net_device *dev);
 
 
 /***********************************************************************
@@ -177,7 +177,7 @@ write_flush(wlandevice_t *priv)
 /***********************************************************************
 */
 typedef struct acx_device {
-	netdevice_t *newest;
+	struct net_device *newest;
 } acx_device_t;
 
 /* if this driver was only about PCI devices, then we probably wouldn't
@@ -1965,7 +1965,7 @@ enable_acx_irq(wlandevice_t *priv)
 }
 
 static void
-acxpci_s_up(netdevice_t *dev)
+acxpci_s_up(struct net_device *dev)
 {
 	wlandevice_t *priv = netdev_priv(dev);
 	unsigned long flags;
@@ -2026,7 +2026,7 @@ disable_acx_irq(wlandevice_t *priv)
 }
 
 static void
-acxpci_s_down(netdevice_t *dev)
+acxpci_s_down(struct net_device *dev)
 {
 	wlandevice_t *priv = netdev_priv(dev);
 	unsigned long flags;
@@ -2091,7 +2091,7 @@ acxpci_s_down(netdevice_t *dev)
 **	<0	driver reported error
 */
 static int
-acxpci_e_open(netdevice_t *dev)
+acxpci_e_open(struct net_device *dev)
 {
 	wlandevice_t *priv = netdev_priv(dev);
 	int result = OK;
@@ -2142,7 +2142,7 @@ done:
 **	<0	driver reported error
 */
 static int
-acxpci_e_close(netdevice_t *dev)
+acxpci_e_close(struct net_device *dev)
 {
 	wlandevice_t *priv = netdev_priv(dev);
 
@@ -2182,7 +2182,7 @@ acxpci_e_close(netdevice_t *dev)
 ** Called from network core. Must not sleep!
 */
 static void
-acxpci_i_tx_timeout(netdevice_t *dev)
+acxpci_i_tx_timeout(struct net_device *dev)
 {
 	wlandevice_t *priv = netdev_priv(dev);
 	unsigned long flags;
@@ -2231,7 +2231,7 @@ acxpci_i_tx_timeout(netdevice_t *dev)
 ** FIXME: most likely needs refinement
 */
 static void
-acxpci_i_set_multicast_list(netdevice_t *dev)
+acxpci_i_set_multicast_list(struct net_device *dev)
 {
 	wlandevice_t *priv = netdev_priv(dev);
 	unsigned long flags;
@@ -2512,7 +2512,7 @@ acxpci_i_interrupt(int irq, void *dev_id
 	register u16 irqtype;
 	u16 unmasked;
 
-	priv = (wlandevice_t *) (((netdevice_t *) dev_id)->priv);
+	priv = (wlandevice_t *) (((struct net_device *) dev_id)->priv);
 
 	/* LOCKING: can just spin_lock() since IRQs are disabled anyway.
 	 * I am paranoid */
diff --git a/wlan_compat.h b/wlan_compat.h
index 8a3b399..9a6ea6b 100644
--- a/wlan_compat.h
+++ b/wlan_compat.h
@@ -219,9 +219,6 @@
 #define __WLAN_PRAGMA_PACK1__
 #define __WLAN_PRAGMA_PACKDFLT__
 
-#undef netdevice_t
-typedef struct net_device netdevice_t;
-
 /* Interrupt handler backwards compatibility stuff */
 #ifndef IRQ_NONE
 #define IRQ_NONE

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ACX: swap netdevice_t for struct net_device
  2006-01-14 23:43 [PATCH] ACX: swap netdevice_t for struct net_device Carlos Martín
@ 2006-01-15 11:06 ` Denis Vlasenko
  2006-01-15 11:54   ` Carlos Martín
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Vlasenko @ 2006-01-15 11:06 UTC (permalink / raw)
  To: acx100-devel; +Cc: Carlos Martín, netdev

On Sunday 15 January 2006 01:43, Carlos Martín wrote:
> Hi,
> 
>  Does netdevice_t serve any actual purpose now? It used to be for 2.2/2.4 
> compatibility, but we don't have that anymore.
> 
>  Attached patch does a s/netdevice_t/struct net_device/g on all the files that 
> required it. It's against 20060114

Too late :)
acx-20060115 already has no netdevice_t.
--
vda


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ACX: swap netdevice_t for struct net_device
  2006-01-15 11:06 ` Denis Vlasenko
@ 2006-01-15 11:54   ` Carlos Martín
  0 siblings, 0 replies; 3+ messages in thread
From: Carlos Martín @ 2006-01-15 11:54 UTC (permalink / raw)
  To: Denis Vlasenko; +Cc: acx100-devel, netdev

On Sunday 15 January 2006 12:06, Denis Vlasenko wrote:
> On Sunday 15 January 2006 01:43, Carlos Martín wrote:
> >  Attached patch does a s/netdevice_t/struct net_device/g on all the files 
that 
> > required it. It's against 20060114
> 
> Too late :)
> acx-20060115 already has no netdevice_t.

Can you read my mind? :) I see you also got rid of wlandevice_t, nice.

   cmn
-- 
Carlos Martín       http://www.cmartin.tk

"Erdbeben? Sicherlich etwas, das mit Erdberen zu tun hat." -- me, paraphrased


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-15 11:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-14 23:43 [PATCH] ACX: swap netdevice_t for struct net_device Carlos Martín
2006-01-15 11:06 ` Denis Vlasenko
2006-01-15 11:54   ` Carlos Martín

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).