* [PATCH] mac8390: update to net_device_ops
@ 2008-12-02 16:14 Stephen Hemminger
2008-12-02 16:16 ` Jeff Garzik
2008-12-02 23:00 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Stephen Hemminger @ 2008-12-02 16:14 UTC (permalink / raw)
To: David Miller, Jeff Garzik; +Cc: netdev
Another related 8390 driver. Since this is for nubus, not sure if anyone
still has the hardware?
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
--- a/drivers/net/Makefile 2008-12-02 07:58:02.000000000 -0800
+++ b/drivers/net/Makefile 2008-12-02 07:56:15.000000000 -0800
@@ -97,7 +97,7 @@ obj-$(CONFIG_HAMACHI) += hamachi.o
obj-$(CONFIG_NET) += Space.o loopback.o
obj-$(CONFIG_SEEQ8005) += seeq8005.o
obj-$(CONFIG_NET_SB1000) += sb1000.o
-obj-$(CONFIG_MAC8390) += mac8390.o
+obj-$(CONFIG_MAC8390) += mac8390.o 8390.o
obj-$(CONFIG_APNE) += apne.o 8390.o
obj-$(CONFIG_PCMCIA_PCNET) += 8390.o
obj-$(CONFIG_HP100) += hp100.o
--- a/drivers/net/mac8390.c 2008-12-02 07:58:07.000000000 -0800
+++ b/drivers/net/mac8390.c 2008-12-02 07:56:24.000000000 -0800
@@ -304,7 +304,7 @@ struct net_device * __init mac8390_probe
if (!MACH_IS_MAC)
return ERR_PTR(-ENODEV);
- dev = ____alloc_ei_netdev(0);
+ dev = alloc_ei_netdev();
if (!dev)
return ERR_PTR(-ENOMEM);
@@ -478,6 +478,20 @@ void cleanup_module(void)
#endif /* MODULE */
+static const struct net_device_ops mac8390_netdev_ops = {
+ .ndo_open = mac8390_open,
+ .ndo_stop = mac8390_close,
+ .ndo_start_xmit = ei_start_xmit,
+ .ndo_tx_timeout = ei_tx_timeout,
+ .ndo_get_stats = ei_get_stats,
+ .ndo_set_multicast_list = ei_set_multicast_list,
+ .ndo_validate_addr = eth_validate_addr,
+ .ndo_change_mtu = eth_change_mtu,
+#ifdef CONFIG_NET_POLL_CONTROLLER
+ .ndo_poll_controller = ei_poll,
+#endif
+};
+
static int __init mac8390_initdev(struct net_device * dev, struct nubus_dev * ndev,
enum mac8390_type type)
{
@@ -503,11 +517,7 @@ static int __init mac8390_initdev(struct
int access_bitmode = 0;
/* Now fill in our stuff */
- dev->open = &mac8390_open;
- dev->stop = &mac8390_close;
-#ifdef CONFIG_NET_POLL_CONTROLLER
- dev->poll_controller = __ei_poll;
-#endif
+ dev->netdev_ops = &mac8390_netdev_ops;
/* GAR, ei_status is actually a macro even though it looks global */
ei_status.name = cardname[type];
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mac8390: update to net_device_ops
2008-12-02 16:14 [PATCH] mac8390: update to net_device_ops Stephen Hemminger
@ 2008-12-02 16:16 ` Jeff Garzik
2008-12-02 16:29 ` Ben Hutchings
2008-12-02 23:00 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2008-12-02 16:16 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: David Miller, netdev
Stephen Hemminger wrote:
> Another related 8390 driver. Since this is for nubus, not sure if anyone
> still has the hardware?
>
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
David indicated that he would prefer to continue handling net driver
patches, so you can drop me from the CC.
Thanks,
Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mac8390: update to net_device_ops
2008-12-02 16:16 ` Jeff Garzik
@ 2008-12-02 16:29 ` Ben Hutchings
0 siblings, 0 replies; 4+ messages in thread
From: Ben Hutchings @ 2008-12-02 16:29 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Stephen Hemminger, David Miller, netdev
On Tue, 2008-12-02 at 11:16 -0500, Jeff Garzik wrote:
> Stephen Hemminger wrote:
> > Another related 8390 driver. Since this is for nubus, not sure if anyone
> > still has the hardware?
> >
> > Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
>
> David indicated that he would prefer to continue handling net driver
> patches, so you can drop me from the CC.
I really don't believe that's what he meant.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mac8390: update to net_device_ops
2008-12-02 16:14 [PATCH] mac8390: update to net_device_ops Stephen Hemminger
2008-12-02 16:16 ` Jeff Garzik
@ 2008-12-02 23:00 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2008-12-02 23:00 UTC (permalink / raw)
To: shemminger; +Cc: jgarzik, netdev
From: Stephen Hemminger <shemminger@vyatta.com>
Date: Tue, 2 Dec 2008 08:14:37 -0800
> Another related 8390 driver. Since this is for nubus, not sure if anyone
> still has the hardware?
>
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Yeah I wonder how well this one gets build tested. As you
noticed it is referencing symbols like ____alloc_ei_netdev()
which are static in lib8390.c and not defined anywhere else
I can see.
I'll apply this to net-next-2.6, and if someone is suitably
motivated I'll accept a tested build fix for net-2.6
I won't hold my breath for that, however :-)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-12-02 23:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 16:14 [PATCH] mac8390: update to net_device_ops Stephen Hemminger
2008-12-02 16:16 ` Jeff Garzik
2008-12-02 16:29 ` Ben Hutchings
2008-12-02 23:00 ` David Miller
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).