equal
deleted
inserted
replaced
48 int ec_dbgdev_stop(struct net_device *); |
48 int ec_dbgdev_stop(struct net_device *); |
49 int ec_dbgdev_tx(struct sk_buff *, struct net_device *); |
49 int ec_dbgdev_tx(struct sk_buff *, struct net_device *); |
50 struct net_device_stats *ec_dbgdev_stats(struct net_device *); |
50 struct net_device_stats *ec_dbgdev_stats(struct net_device *); |
51 |
51 |
52 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) |
52 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) |
|
53 /** Device operations for debug interfaces. |
|
54 */ |
53 static const struct net_device_ops ec_dbg_netdev_ops = |
55 static const struct net_device_ops ec_dbg_netdev_ops = |
54 { |
56 { |
55 .ndo_open = ec_dbgdev_open, |
57 .ndo_open = ec_dbgdev_open, |
56 .ndo_stop = ec_dbgdev_stop, |
58 .ndo_stop = ec_dbgdev_stop, |
57 .ndo_start_xmit = ec_dbgdev_tx, |
59 .ndo_start_xmit = ec_dbgdev_tx, |