aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tc35815.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tc35815.c')
-rw-r--r--drivers/net/tc35815.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c
index df20cafff7dd..44126c463fac 100644
--- a/drivers/net/tc35815.c
+++ b/drivers/net/tc35815.c
@@ -236,7 +236,7 @@ struct tc35815_regs {
236#define Rx_Halted 0x00008000 /* Rx Halted */ 236#define Rx_Halted 0x00008000 /* Rx Halted */
237#define Rx_Good 0x00004000 /* Rx Good */ 237#define Rx_Good 0x00004000 /* Rx Good */
238#define Rx_RxPar 0x00002000 /* Rx Parity Error */ 238#define Rx_RxPar 0x00002000 /* Rx Parity Error */
239 /* 0x00001000 not use */ 239#define Rx_TypePkt 0x00001000 /* Rx Type Packet */
240#define Rx_LongErr 0x00000800 /* Rx Long Error */ 240#define Rx_LongErr 0x00000800 /* Rx Long Error */
241#define Rx_Over 0x00000400 /* Rx Overflow */ 241#define Rx_Over 0x00000400 /* Rx Overflow */
242#define Rx_CRCErr 0x00000200 /* Rx CRC Error */ 242#define Rx_CRCErr 0x00000200 /* Rx CRC Error */
@@ -244,8 +244,9 @@ struct tc35815_regs {
244#define Rx_10Stat 0x00000080 /* Rx 10Mbps Status */ 244#define Rx_10Stat 0x00000080 /* Rx 10Mbps Status */
245#define Rx_IntRx 0x00000040 /* Rx Interrupt */ 245#define Rx_IntRx 0x00000040 /* Rx Interrupt */
246#define Rx_CtlRecd 0x00000020 /* Rx Control Receive */ 246#define Rx_CtlRecd 0x00000020 /* Rx Control Receive */
247#define Rx_InLenErr 0x00000010 /* Rx In Range Frame Length Error */
247 248
248#define Rx_Stat_Mask 0x0000EFC0 /* Rx All Status Mask */ 249#define Rx_Stat_Mask 0x0000FFF0 /* Rx All Status Mask */
249 250
250/* Int_En bit asign -------------------------------------------------------- */ 251/* Int_En bit asign -------------------------------------------------------- */
251#define Int_NRAbtEn 0x00000800 /* 1:Non-recoverable Abort Enable */ 252#define Int_NRAbtEn 0x00000800 /* 1:Non-recoverable Abort Enable */
@@ -865,7 +866,6 @@ static int __devinit tc35815_init_one(struct pci_dev *pdev,
865 struct net_device *dev; 866 struct net_device *dev;
866 struct tc35815_local *lp; 867 struct tc35815_local *lp;
867 int rc; 868 int rc;
868 DECLARE_MAC_BUF(mac);
869 869
870 static int printed_version; 870 static int printed_version;
871 if (!printed_version++) { 871 if (!printed_version++) {
@@ -942,11 +942,11 @@ static int __devinit tc35815_init_one(struct pci_dev *pdev,
942 goto err_out; 942 goto err_out;
943 943
944 memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); 944 memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
945 printk(KERN_INFO "%s: %s at 0x%lx, %s, IRQ %d\n", 945 printk(KERN_INFO "%s: %s at 0x%lx, %pM, IRQ %d\n",
946 dev->name, 946 dev->name,
947 chip_info[ent->driver_data].name, 947 chip_info[ent->driver_data].name,
948 dev->base_addr, 948 dev->base_addr,
949 print_mac(mac, dev->dev_addr), 949 dev->dev_addr,
950 dev->irq); 950 dev->irq);
951 951
952 rc = tc_mii_init(dev); 952 rc = tc_mii_init(dev);
@@ -1288,12 +1288,9 @@ panic_queues(struct net_device *dev)
1288 1288
1289static void print_eth(const u8 *add) 1289static void print_eth(const u8 *add)
1290{ 1290{
1291 DECLARE_MAC_BUF(mac);
1292
1293 printk(KERN_DEBUG "print_eth(%p)\n", add); 1291 printk(KERN_DEBUG "print_eth(%p)\n", add);
1294 printk(KERN_DEBUG " %s =>", print_mac(mac, add + 6)); 1292 printk(KERN_DEBUG " %pM => %pM : %02x%02x\n",
1295 printk(KERN_CONT " %s : %02x%02x\n", 1293 add + 6, add, add[12], add[13]);
1296 print_mac(mac, add), add[12], add[13]);
1297} 1294}
1298 1295
1299static int tc35815_tx_full(struct net_device *dev) 1296static int tc35815_tx_full(struct net_device *dev)
@@ -1760,7 +1757,6 @@ tc35815_rx(struct net_device *dev)
1760#else 1757#else
1761 netif_rx(skb); 1758 netif_rx(skb);
1762#endif 1759#endif
1763 dev->last_rx = jiffies;
1764 dev->stats.rx_packets++; 1760 dev->stats.rx_packets++;
1765 dev->stats.rx_bytes += pkt_len; 1761 dev->stats.rx_bytes += pkt_len;
1766 } else { 1762 } else {
@@ -2153,13 +2149,12 @@ static void tc35815_set_cam_entry(struct net_device *dev, int index, unsigned ch
2153 int cam_index = index * 6; 2149 int cam_index = index * 6;
2154 u32 cam_data; 2150 u32 cam_data;
2155 u32 saved_addr; 2151 u32 saved_addr;
2156 DECLARE_MAC_BUF(mac);
2157 2152
2158 saved_addr = tc_readl(&tr->CAM_Adr); 2153 saved_addr = tc_readl(&tr->CAM_Adr);
2159 2154
2160 if (netif_msg_hw(lp)) 2155 if (netif_msg_hw(lp))
2161 printk(KERN_DEBUG "%s: CAM %d: %s\n", 2156 printk(KERN_DEBUG "%s: CAM %d: %pM\n",
2162 dev->name, index, print_mac(mac, addr)); 2157 dev->name, index, addr);
2163 if (index & 1) { 2158 if (index & 1) {
2164 /* read modify write */ 2159 /* read modify write */
2165 tc_writel(cam_index - 2, &tr->CAM_Adr); 2160 tc_writel(cam_index - 2, &tr->CAM_Adr);