14 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
16 #include <linux/slab.h>
18 #include <asm/byteorder.h>
19 #include <linux/netdevice.h>
21 #include <linux/hdlc.h>
28 #ifdef SBE_INCLUDE_SYMBOLS
34 #if defined(CONFIG_SBE_HDLC_V7) || defined(CONFIG_SBE_WAN256T3_HDLC_V7) || \
35 defined(CONFIG_SBE_HDLC_V7_MODULE) || defined(CONFIG_SBE_WAN256T3_HDLC_V7_MODULE)
42 #define V7(x) (x ## _v7)
45 extern int unregister_hdlc_device_v7 (
hdlc_device *);
52 #ifndef USE_MAX_INT_DELAY
133 wdp->
ticks = (
HZ) * (usec / 1000) / 1000;
139 wdp->
h.data = (
unsigned long) &ci->
wd;
154 tmp = (usec / 1000) * 1000;
173 #ifndef USE_MAX_INT_DELAY
194 sema_init (sem, state);
205 return (netif_carrier_ok (ndev));
231 netif_stop_queue (dev);
240 netif_wake_queue (dev);
249 return (netif_queue_stopped (ndev));
259 skb->
protocol = hdlc_type_trans(skb, ndev);