[PATCH] fix semaphore handling in __unregister_chrdev_region
[linux/fpc-iii.git] / include / net / irda / irlan_event.h
blobb9baac9eb8b676e585139d95132ee5b4cefb441e
1 /*********************************************************************
2 *
3 * Filename: irlan_event.h
4 * Version:
5 * Description: LAN access
6 * Status: Experimental.
7 * Author: Dag Brattli <dagb@cs.uit.no>
8 * Created at: Sun Aug 31 20:14:37 1997
9 * Modified at: Tue Feb 2 09:45:17 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 IRLAN_EVENT_H
26 #define IRLAN_EVENT_H
28 #include <linux/kernel.h>
29 #include <linux/skbuff.h>
31 #include <net/irda/irlan_common.h>
33 typedef enum {
34 IRLAN_IDLE,
35 IRLAN_QUERY,
36 IRLAN_CONN,
37 IRLAN_INFO,
38 IRLAN_MEDIA,
39 IRLAN_OPEN,
40 IRLAN_WAIT,
41 IRLAN_ARB,
42 IRLAN_DATA,
43 IRLAN_CLOSE,
44 IRLAN_SYNC
45 } IRLAN_STATE;
47 typedef enum {
48 IRLAN_DISCOVERY_INDICATION,
49 IRLAN_IAS_PROVIDER_AVAIL,
50 IRLAN_IAS_PROVIDER_NOT_AVAIL,
51 IRLAN_LAP_DISCONNECT,
52 IRLAN_LMP_DISCONNECT,
53 IRLAN_CONNECT_COMPLETE,
54 IRLAN_DATA_INDICATION,
55 IRLAN_DATA_CONNECT_INDICATION,
56 IRLAN_RETRY_CONNECT,
58 IRLAN_CONNECT_INDICATION,
59 IRLAN_GET_INFO_CMD,
60 IRLAN_GET_MEDIA_CMD,
61 IRLAN_OPEN_DATA_CMD,
62 IRLAN_FILTER_CONFIG_CMD,
64 IRLAN_CHECK_CON_ARB,
65 IRLAN_PROVIDER_SIGNAL,
67 IRLAN_WATCHDOG_TIMEOUT,
68 } IRLAN_EVENT;
70 extern char *irlan_state[];
72 void irlan_do_client_event(struct irlan_cb *self, IRLAN_EVENT event,
73 struct sk_buff *skb);
75 void irlan_do_provider_event(struct irlan_cb *self, IRLAN_EVENT event,
76 struct sk_buff *skb);
78 void irlan_next_client_state(struct irlan_cb *self, IRLAN_STATE state);
79 void irlan_next_provider_state(struct irlan_cb *self, IRLAN_STATE state);
81 #endif