blob: 920909600e54f3051d68b095c92d096beece9051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/*********************************************************************
*
* Filename: irtty.h
* Version: 1.0
* Description:
* Status: Experimental.
* Author: Dag Brattli <dagb@cs.uit.no>
* Created at: Tue Dec 9 21:13:12 1997
* Modified at: Sun Feb 7 01:57:33 1999
* Modified by: Dag Brattli <dagb@cs.uit.no>
*
* Copyright (c) 1997 Dag Brattli, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* Neither Dag Brattli nor University of Tromsø admit liability nor
* provide warranty for any of this software. This material is
* provided "AS-IS" and at no charge.
*
********************************************************************/
#ifndef IRTTY_H
#define IRTTY_H
#include <linux/if.h>
#include <linux/skbuff.h>
#include <linux/termios.h>
#include <net/irda/irda.h>
#include <net/irda/irqueue.h>
#include <net/irda/irda_device.h>
#include <net/irda/dongle.h>
#define IRTTY_IOC_MAGIC 'e'
#define IRTTY_IOCTDONGLE _IO(IRTTY_IOC_MAGIC, 1)
#define IRTTY_IOC_MAXNR 1
#ifndef N_IRDA
#define N_IRDA 11 /* This one should go in </asm/termio.h> */
#endif
struct dongle_q {
QUEUE q;
struct dongle *dongle;
};
struct irtty_cb {
QUEUE q; /* Must be first */
/* char name[16]; */
int magic;
struct tty_struct *tty; /* Ptr to TTY structure */
struct irda_device idev;
struct dongle_q *dongle_q; /* Has this tty got a dongle attached? */
};
int irtty_register_dongle( struct dongle *dongle);
void irtty_unregister_dongle( struct dongle *dongle);
void irtty_set_dtr_rts(struct tty_struct *tty, int dtr, int rts);
#endif
|