Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ircomm_tty_attach.h
Go to the documentation of this file.
1 /*********************************************************************
2  *
3  * Filename: ircomm_tty_attach.h
4  * Version:
5  * Description:
6  * Status: Experimental.
7  * Author: Dag Brattli <[email protected]>
8  * Created at: Wed Jun 9 15:55:18 1999
9  * Modified at: Fri Dec 10 21:04:55 1999
10  * Modified by: Dag Brattli <[email protected]>
11  *
12  * Copyright (c) 1999 Dag Brattli, All Rights Reserved.
13  *
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.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to the Free Software
26  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
27  * MA 02111-1307 USA
28  *
29  ********************************************************************/
30 
31 #ifndef IRCOMM_TTY_ATTACH_H
32 #define IRCOMM_TTY_ATTACH_H
33 
34 #include <net/irda/ircomm_tty.h>
35 
36 typedef enum {
44 
45 /* IrCOMM TTY Events */
46 typedef enum {
61 
62 /* Used for passing information through the state-machine */
64  __u32 saddr; /* Source device address */
65  __u32 daddr; /* Destination device address */
67 };
68 
69 extern const char *const ircomm_state[];
70 extern const char *const ircomm_tty_state[];
71 
73  struct sk_buff *skb, struct ircomm_tty_info *info);
74 
75 
76 int ircomm_tty_attach_cable(struct ircomm_tty_cb *self);
77 void ircomm_tty_detach_cable(struct ircomm_tty_cb *self);
78 void ircomm_tty_connect_confirm(void *instance, void *sap,
79  struct qos_info *qos,
80  __u32 max_sdu_size,
81  __u8 max_header_size,
82  struct sk_buff *skb);
83 void ircomm_tty_disconnect_indication(void *instance, void *sap,
85  struct sk_buff *skb);
86 void ircomm_tty_connect_indication(void *instance, void *sap,
87  struct qos_info *qos,
88  __u32 max_sdu_size,
89  __u8 max_header_size,
90  struct sk_buff *skb);
93 
94 #endif /* IRCOMM_TTY_ATTACH_H */