sb1000.c (6ed106549d17474ca17a16057f4c0ed4eba5a7ca) | sb1000.c (61357325f377889a1daffa14962d705dc814dd0e) |
---|---|
1/* sb1000.c: A General Instruments SB1000 driver for linux. */ 2/* 3 Written 1998 by Franco Venturi. 4 5 Copyright 1998 by Franco Venturi. 6 Copyright 1994,1995 by Donald Becker. 7 Copyright 1993 United States Government as represented by the 8 Director, National Security Agency. --- 68 unchanged lines hidden (view full) --- 77 unsigned char rx_frame_id[NPIDS]; 78 unsigned char rx_pkt_type[NPIDS]; 79}; 80 81/* prototypes for Linux interface */ 82extern int sb1000_probe(struct net_device *dev); 83static int sb1000_open(struct net_device *dev); 84static int sb1000_dev_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd); | 1/* sb1000.c: A General Instruments SB1000 driver for linux. */ 2/* 3 Written 1998 by Franco Venturi. 4 5 Copyright 1998 by Franco Venturi. 6 Copyright 1994,1995 by Donald Becker. 7 Copyright 1993 United States Government as represented by the 8 Director, National Security Agency. --- 68 unchanged lines hidden (view full) --- 77 unsigned char rx_frame_id[NPIDS]; 78 unsigned char rx_pkt_type[NPIDS]; 79}; 80 81/* prototypes for Linux interface */ 82extern int sb1000_probe(struct net_device *dev); 83static int sb1000_open(struct net_device *dev); 84static int sb1000_dev_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd); |
85static int sb1000_start_xmit(struct sk_buff *skb, struct net_device *dev); | 85static netdev_tx_t sb1000_start_xmit(struct sk_buff *skb, 86 struct net_device *dev); |
86static irqreturn_t sb1000_interrupt(int irq, void *dev_id); 87static int sb1000_close(struct net_device *dev); 88 89 90/* SB1000 hardware routines to be used during open/configuration phases */ 91static int card_wait_for_busy_clear(const int ioaddr[], 92 const char* name); 93static int card_wait_for_ready(const int ioaddr[], const char* name, --- 981 unchanged lines hidden (view full) --- 1075 default: 1076 status = -EINVAL; 1077 break; 1078 } 1079 return status; 1080} 1081 1082/* transmit function: do nothing since SB1000 can't send anything out */ | 87static irqreturn_t sb1000_interrupt(int irq, void *dev_id); 88static int sb1000_close(struct net_device *dev); 89 90 91/* SB1000 hardware routines to be used during open/configuration phases */ 92static int card_wait_for_busy_clear(const int ioaddr[], 93 const char* name); 94static int card_wait_for_ready(const int ioaddr[], const char* name, --- 981 unchanged lines hidden (view full) --- 1076 default: 1077 status = -EINVAL; 1078 break; 1079 } 1080 return status; 1081} 1082 1083/* transmit function: do nothing since SB1000 can't send anything out */ |
1083static int | 1084static netdev_tx_t |
1084sb1000_start_xmit(struct sk_buff *skb, struct net_device *dev) 1085{ 1086 printk(KERN_WARNING "%s: trying to transmit!!!\n", dev->name); 1087 /* sb1000 can't xmit datagrams */ 1088 dev_kfree_skb(skb); 1089 return NETDEV_TX_OK; 1090} 1091 --- 103 unchanged lines hidden --- | 1085sb1000_start_xmit(struct sk_buff *skb, struct net_device *dev) 1086{ 1087 printk(KERN_WARNING "%s: trying to transmit!!!\n", dev->name); 1088 /* sb1000 can't xmit datagrams */ 1089 dev_kfree_skb(skb); 1090 return NETDEV_TX_OK; 1091} 1092 --- 103 unchanged lines hidden --- |