1 /*********************************************************************
3 * Filename: irlmp_event.h
5 * Description: IrDA-LMP event handling
6 * Status: Experimental.
7 * Author: Dag Brattli <dagb@cs.uit.no>
8 * Created at: Mon Aug 4 20:40:53 1997
9 * Modified at: Thu Jul 8 12:18:54 1999
10 * Modified by: Dag Brattli <dagb@cs.uit.no>
12 * Copyright (c) 1997, 1999 Dag Brattli <dagb@cs.uit.no>,
13 * All Rights Reserved.
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License as
17 * published by the Free Software Foundation; either version 2 of
18 * the License, or (at your option) any later version.
20 * Neither Dag Brattli nor University of Tromsø admit liability nor
21 * provide warranty for any of this software. This material is
22 * provided "AS-IS" and at no charge.
24 ********************************************************************/
35 /* IrLAP connection control states */
36 LAP_STANDBY
, /* No LAP connection */
37 LAP_U_CONNECT
, /* Starting LAP connection */
38 LAP_ACTIVE
, /* LAP connection is active */
41 /* LSAP connection control states */
43 LSAP_DISCONNECTED
, /* No LSAP connection */
44 LSAP_CONNECT
, /* Connect indication from peer */
45 LSAP_CONNECT_PEND
, /* Connect request from service user */
46 LSAP_DATA_TRANSFER_READY
, /* LSAP connection established */
47 LSAP_SETUP
, /* Trying to set up LSAP connection */
48 LSAP_SETUP_PEND
, /* Request to start LAP connection */
56 LM_CONNECT_INDICATION
,
58 LM_DISCONNECT_INDICATION
,
59 LM_DISCONNECT_REQUEST
,
69 LM_LAP_CONNECT_REQUEST
,
70 LM_LAP_CONNECT_INDICATION
,
71 LM_LAP_CONNECT_CONFIRM
,
72 LM_LAP_DISCONNECT_INDICATION
,
73 LM_LAP_DISCONNECT_REQUEST
,
74 LM_LAP_DISCOVERY_REQUEST
,
75 LM_LAP_DISCOVERY_CONFIRM
,
80 * Information which is used by the current thread, when executing in the
96 discovery_t
*discovery
;
99 extern const char *irlmp_state
[];
100 extern const char *irlsap_state
[];
102 void irlmp_watchdog_timer_expired(void *data
);
103 void irlmp_discovery_timer_expired(void *data
);
104 void irlmp_idle_timer_expired(void *data
);
106 void irlmp_next_station_state(IRLMP_STATE state
);
107 void irlmp_next_lsap_state(struct lsap_cb
*self
, LSAP_STATE state
);
108 void irlmp_next_lap_state(struct lap_cb
*self
, IRLMP_STATE state
);
110 void irlmp_do_lap_event(struct lap_cb
*self
, IRLMP_EVENT event
,
111 struct sk_buff
*skb
);
112 int irlmp_do_lsap_event(struct lsap_cb
*self
, IRLMP_EVENT event
,
113 struct sk_buff
*skb
);
115 #endif /* IRLMP_EVENT_H */