Go to the documentation of this file.
241 #include <linux/module.h>
243 #include <linux/kernel.h>
245 #include <linux/tty.h>
247 #include <linux/netdevice.h>
249 #include <linux/poll.h>
250 #include <linux/capability.h>
251 #include <linux/ctype.h>
252 #include <linux/string.h>
253 #include <asm/uaccess.h>
256 #include <linux/ppp_defs.h>
275 #define DISCOVERY_NOMASK
276 #define ADVERTISE_HINT
277 #define ALLOW_SIMULT_CONNECT
278 #define DISCOVERY_EVENTS
279 #define INITIAL_DISCOVERY
281 #undef CONNECT_INDIC_KICK
282 #undef FAIL_SEND_DISCONNECT
283 #undef PASS_CONNECT_PACKETS
284 #undef MISSING_PPP_API
287 #define BLOCK_WHEN_CONNECT
288 #define CONNECT_IN_SEND
290 #undef SECURE_DEVIRNET
300 #define DEBUG_CTRL_TRACE 0
301 #define DEBUG_CTRL_INFO 0
302 #define DEBUG_CTRL_ERROR 1
303 #define DEBUG_FS_TRACE 0
304 #define DEBUG_FS_INFO 0
305 #define DEBUG_FS_ERROR 1
306 #define DEBUG_PPP_TRACE 0
307 #define DEBUG_PPP_INFO 0
308 #define DEBUG_PPP_ERROR 1
309 #define DEBUG_MODULE_TRACE 0
310 #define DEBUG_MODULE_ERROR 1
313 #define DEBUG_IRDA_SR_TRACE 0
314 #define DEBUG_IRDA_SR_INFO 0
315 #define DEBUG_IRDA_SR_ERROR 1
316 #define DEBUG_IRDA_SOCK_TRACE 0
317 #define DEBUG_IRDA_SOCK_INFO 0
318 #define DEBUG_IRDA_SOCK_ERROR 1
319 #define DEBUG_IRDA_SERV_TRACE 0
320 #define DEBUG_IRDA_SERV_INFO 0
321 #define DEBUG_IRDA_SERV_ERROR 1
322 #define DEBUG_IRDA_TCB_TRACE 0
323 #define DEBUG_IRDA_CB_INFO 0
324 #define DEBUG_IRDA_CB_ERROR 1
325 #define DEBUG_IRDA_OCB_TRACE 0
326 #define DEBUG_IRDA_OCB_INFO 0
327 #define DEBUG_IRDA_OCB_ERROR 1
329 #define DEBUG_ASSERT 0
339 #define DERROR(dbg, format, args...) \
341 printk(KERN_INFO "irnet: %s(): " format, __func__ , ##args);}
344 #define DEBUG(dbg, format, args...) \
346 printk(KERN_DEBUG "irnet: %s(): " format, __func__ , ##args);}
349 #define DENTER(dbg, format, args...) \
351 printk(KERN_DEBUG "irnet: -> %s" format, __func__ , ##args);}
354 #define DPASS(dbg, format, args...) \
356 printk(KERN_DEBUG "irnet: <>%s" format, __func__ , ##args);}
359 #define DEXIT(dbg, format, args...) \
361 printk(KERN_DEBUG "irnet: <-%s()" format, __func__ , ##args);}
364 #define DRETURN(ret, dbg, args...) \
365 {DEXIT(dbg, ": " args);\
369 #define DABORT(cond, ret, dbg, args...) \
375 #define DASSERT(cond, ret, dbg, args...) \
376 {if((DEBUG_ASSERT) && !(cond)) {\
377 DERROR(dbg, "Invalid assertion: " args);\
383 #define IRNET_MAGIC 0xB00754
386 #define IRNET_MAX_EVENTS 8