* add p cc
[mascara-docs.git] / i386 / linux / linux-2.3.21 / include / net / irda / irlmp_frame.h
blobd0584f1a76373980fde8a18f56684883f019d2ee
1 /*********************************************************************
2 *
3 * Filename: irlmp_frame.h
4 * Version: 0.9
5 * Description:
6 * Status: Experimental.
7 * Author: Dag Brattli <dagb@cs.uit.no>
8 * Created at: Tue Aug 19 02:09:59 1997
9 * Modified at: Tue Apr 6 17:12:57 1999
10 * Modified by: Dag Brattli <dagb@cs.uit.no>
12 * Copyright (c) 1997 Dag Brattli <dagb@cs.uit.no>, All Rights Reserved.
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License as
16 * published by the Free Software Foundation; either version 2 of
17 * the License, or (at your option) any later version.
19 * Neither Dag Brattli nor University of Tromsø admit liability nor
20 * provide warranty for any of this software. This material is
21 * provided "AS-IS" and at no charge.
23 ********************************************************************/
25 #ifndef IRMLP_FRAME_H
26 #define IRMLP_FRAME_H
28 #include <linux/skbuff.h>
30 #include <net/irda/discovery.h>
32 /* IrLMP frame opcodes */
33 #define CONNECT_CMD 0x01
34 #define CONNECT_CNF 0x81
35 #define DISCONNECT 0x02
36 #define ACCESSMODE_CMD 0x03
37 #define ACCESSMODE_CNF 0x83
39 #define CONTROL_BIT 0x80
41 inline void irlmp_send_data_pdu(struct lap_cb *self, __u8 dlsap, __u8 slsap,
42 int expedited, struct sk_buff *skb);
43 void irlmp_send_lcf_pdu(struct lap_cb *self, __u8 dlsap, __u8 slsap,
44 __u8 opcode, struct sk_buff *skb);
45 void irlmp_link_data_indication(struct lap_cb *, int reliable,
46 struct sk_buff *);
47 void irlmp_link_connect_indication(struct lap_cb *, __u32 saddr, __u32 daddr,
48 struct qos_info *qos, struct sk_buff *skb);
49 void irlmp_link_connect_request(__u32 daddr);
50 void irlmp_link_connect_confirm(struct lap_cb *self, struct qos_info *qos,
51 struct sk_buff *skb);
52 void irlmp_link_disconnect_indication(struct lap_cb *, struct irlap_cb *,
53 LAP_REASON reason, struct sk_buff *);
54 void irlmp_link_discovery_confirm(struct lap_cb *self, hashbin_t *log);
55 void irlmp_link_discovery_indication(struct lap_cb *, discovery_t *discovery);
57 #endif