00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef IRMLP_FRAME_H
00027 #define IRMLP_FRAME_H
00028
00029 #include <linux/skbuff.h>
00030
00031 #include <net/irda/discovery.h>
00032
00033
00034 #define CONNECT_CMD 0x01
00035 #define CONNECT_CNF 0x81
00036 #define DISCONNECT 0x02
00037 #define ACCESSMODE_CMD 0x03
00038 #define ACCESSMODE_CNF 0x83
00039
00040 #define CONTROL_BIT 0x80
00041
00042 inline void irlmp_send_data_pdu(struct lap_cb *self, __u8 dlsap, __u8 slsap,
00043 int expedited, struct sk_buff *skb);
00044 void irlmp_send_lcf_pdu(struct lap_cb *self, __u8 dlsap, __u8 slsap,
00045 __u8 opcode, struct sk_buff *skb);
00046 void irlmp_link_data_indication(struct lap_cb *, struct sk_buff *,
00047 int unreliable);
00048 #ifdef CONFIG_IRDA_ULTRA
00049 void irlmp_link_unitdata_indication(struct lap_cb *, struct sk_buff *);
00050 #endif
00051
00052 void irlmp_link_connect_indication(struct lap_cb *, __u32 saddr, __u32 daddr,
00053 struct qos_info *qos, struct sk_buff *skb);
00054 void irlmp_link_connect_request(__u32 daddr);
00055 void irlmp_link_connect_confirm(struct lap_cb *self, struct qos_info *qos,
00056 struct sk_buff *skb);
00057 void irlmp_link_disconnect_indication(struct lap_cb *, struct irlap_cb *,
00058 LAP_REASON reason, struct sk_buff *);
00059 void irlmp_link_discovery_confirm(struct lap_cb *self, hashbin_t *log);
00060 void irlmp_link_discovery_indication(struct lap_cb *, discovery_t *discovery);
00061
00062 #endif