summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/natsemi/sonic.h
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2018-02-25 02:27:25 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-26 22:40:02 +0300
commit995b2a65232f9bd54d8e41a7669436a93698bf01 (patch)
treea3bc5b8bc2e6f6f3cca8b394c6c81051b4d12bf5 /drivers/net/ethernet/natsemi/sonic.h
parentbbc2f23a8f32cb403136d20cbed5fd056c1f6a7b (diff)
downloadlinux-995b2a65232f9bd54d8e41a7669436a93698bf01.tar.xz
net/sonic: Replace custom debug logging with netif_* calls
Eliminate duplicated debug code by moving it into the core driver. Don't log the only valid silicon revision number (it's in the source). Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: Chris Zankel <chris@zankel.net> Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/natsemi/sonic.h')
-rw-r--r--drivers/net/ethernet/natsemi/sonic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/natsemi/sonic.h b/drivers/net/ethernet/natsemi/sonic.h
index 421b1a283fed..2b27f7049acb 100644
--- a/drivers/net/ethernet/natsemi/sonic.h
+++ b/drivers/net/ethernet/natsemi/sonic.h
@@ -319,6 +319,7 @@ struct sonic_local {
unsigned int eol_rx;
unsigned int eol_tx; /* last unacked transmit packet */
unsigned int next_tx; /* next free TD */
+ int msg_enable;
struct device *device; /* generic device */
struct net_device_stats stats;
};
@@ -336,6 +337,7 @@ static struct net_device_stats *sonic_get_stats(struct net_device *dev);
static void sonic_multicast_list(struct net_device *dev);
static int sonic_init(struct net_device *dev);
static void sonic_tx_timeout(struct net_device *dev);
+static void sonic_msg_init(struct net_device *dev);
/* Internal inlines for reading/writing DMA buffers. Note that bus
size and endianness matter here, whereas they don't for registers,