Go to the documentation of this file.
30 #include <linux/kernel.h>
50 #define IRDA_MIN(a, b) (((a) < (b)) ? (a) : (b))
54 # define IRDA_ALIGN __attribute__((aligned))
57 #ifdef CONFIG_IRDA_DEBUG
59 extern unsigned int irda_debug;
62 #define IRDA_DEBUG_LEVEL 0
64 #define IRDA_DEBUG(n, args...) \
65 do { if (irda_debug >= (n)) \
66 printk(KERN_DEBUG args); \
68 #define IRDA_ASSERT(expr, func) \
70 printk( "Assertion failed! %s:%s:%d %s\n", \
71 __FILE__,__func__,__LINE__,(#expr) ); \
73 #define IRDA_ASSERT_LABEL(label) label
75 #define IRDA_DEBUG(n, args...) do { } while (0)
76 #define IRDA_ASSERT(expr, func) do { (void)(expr); } while (0)
77 #define IRDA_ASSERT_LABEL(label)
80 #define IRDA_WARNING(args...) do { if (net_ratelimit()) printk(KERN_WARNING args); } while (0)
81 #define IRDA_MESSAGE(args...) do { if (net_ratelimit()) printk(KERN_INFO args); } while (0)
82 #define IRDA_ERROR(args...) do { if (net_ratelimit()) printk(KERN_ERR args); } while (0)
89 #define IRTTY_MAGIC 0x2357
90 #define LAP_MAGIC 0x1357
91 #define LMP_MAGIC 0x4321
92 #define LMP_LSAP_MAGIC 0x69333
93 #define LMP_LAP_MAGIC 0x3432
94 #define IRDA_DEVICE_MAGIC 0x63454
95 #define IAS_MAGIC 0x007
96 #define TTP_MAGIC 0x241169
97 #define TTP_TSAP_MAGIC 0x4345
98 #define IROBEX_MAGIC 0x341324
99 #define HB_MAGIC 0x64534
100 #define IRLAN_MAGIC 0x754
101 #define IAS_OBJECT_MAGIC 0x34234
102 #define IAS_ATTRIB_MAGIC 0x45232
103 #define IRDA_TASK_MAGIC 0x38423
105 #define IAS_DEVICE_ID 0x0000
106 #define IAS_PNP_ID 0xd342
107 #define IAS_OBEX_ID 0x34323
108 #define IAS_IRLAN_ID 0x34234
109 #define IAS_IRCOMM_ID 0x2343
110 #define IAS_IRLPT_ID 0x9876