Go to the documentation of this file.
5 #define LAPB_HEADER_LEN 20
7 #define LAPB_ACK_PENDING_CONDITION 0x01
8 #define LAPB_REJECT_CONDITION 0x02
9 #define LAPB_PEER_RX_BUSY_CONDITION 0x04
20 #define LAPB_SABM 0x2F
21 #define LAPB_SABME 0x6F
22 #define LAPB_DISC 0x43
25 #define LAPB_FRMR 0x87
27 #define LAPB_ILLEGAL 0x100
32 #define LAPB_FRMR_W 0x01
33 #define LAPB_FRMR_X 0x02
34 #define LAPB_FRMR_Y 0x04
35 #define LAPB_FRMR_Z 0x08
37 #define LAPB_POLLOFF 0
41 #define LAPB_COMMAND 1
42 #define LAPB_RESPONSE 2
44 #define LAPB_ADDR_A 0x03
45 #define LAPB_ADDR_B 0x01
46 #define LAPB_ADDR_C 0x0F
47 #define LAPB_ADDR_D 0x07
58 #define LAPB_DEFAULT_MODE (LAPB_STANDARD | LAPB_SLP | LAPB_DTE)
59 #define LAPB_DEFAULT_WINDOW 7
60 #define LAPB_DEFAULT_T1 (5 * HZ)
61 #define LAPB_DEFAULT_T2 (1 * HZ)
62 #define LAPB_DEFAULT_N2 20
64 #define LAPB_SMODULUS 8
65 #define LAPB_EMODULUS 128
152 #define lapb_dbg(level, fmt, ...) \
154 if (level < LAPB_DEBUG) \
155 pr_debug(fmt, ##__VA_ARGS__); \