master/debug.c
changeset 1907 dd276ae226b4
parent 1579 326d47aa986c
child 1921 d9cf40facbc4
equal deleted inserted replaced
1906:96805a6eae3d 1907:dd276ae226b4
    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,