Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

irlmp_frame.h

Go to the documentation of this file.
00001 /*********************************************************************
00002  *                
00003  * Filename:      irlmp_frame.h
00004  * Version:       0.9
00005  * Description:   
00006  * Status:        Experimental.
00007  * Author:        Dag Brattli <dagb@cs.uit.no>
00008  * Created at:    Tue Aug 19 02:09:59 1997
00009  * Modified at:   Fri Dec 10 13:21:53 1999
00010  * Modified by:   Dag Brattli <dagb@cs.uit.no>
00011  * 
00012  *     Copyright (c) 1997, 1999 Dag Brattli <dagb@cs.uit.no>, 
00013  *     All Rights Reserved.
00014  *     
00015  *     This program is free software; you can redistribute it and/or 
00016  *     modify it under the terms of the GNU General Public License as 
00017  *     published by the Free Software Foundation; either version 2 of 
00018  *     the License, or (at your option) any later version.
00019  *
00020  *     Neither Dag Brattli nor University of Tromsų admit liability nor
00021  *     provide warranty for any of this software. This material is 
00022  *     provided "AS-IS" and at no charge.
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 /* IrLMP frame opcodes */
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 /* CONFIG_IRDA_ULTRA */
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