~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/net/irda/ircomm_tty.h

Version: ~ [ 2.2.5 ] ~ [ 2.4.1 ] ~ [ 2.4.9 ] ~ [ 2.6.17.10 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*********************************************************************
  2  *                
  3  * Filename:      ircomm_tty.h
  4  * Version:       
  5  * Description:   
  6  * Status:        Experimental.
  7  * Author:        Dag Brattli <dagb@cs.uit.no>
  8  * Created at:    Sun Jun  6 23:24:22 1999
  9  * Modified at:   Fri Jan 28 13:16:57 2000
 10  * Modified by:   Dag Brattli <dagb@cs.uit.no>
 11  * 
 12  *     Copyright (c) 1999-2000 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_H
 32 #define IRCOMM_TTY_H
 33 
 34 #include <linux/serial.h>
 35 #include <linux/termios.h>
 36 #include <linux/timer.h>
 37 
 38 #include <net/irda/irias_object.h>
 39 #include <net/irda/ircomm_core.h>
 40 #include <net/irda/ircomm_param.h>
 41 
 42 #define IRCOMM_TTY_PORTS 32
 43 #define IRCOMM_TTY_MAGIC 0x3432
 44 #define IRCOMM_TTY_MAJOR 161
 45 #define IRCOMM_TTY_MINOR 0
 46 
 47 /*
 48  * IrCOMM TTY driver state
 49  */
 50 struct ircomm_tty_cb {
 51         irda_queue_t queue;            /* Must be first */
 52         magic_t magic;
 53 
 54         int state;                /* Connect state */
 55 
 56         struct tty_struct *tty;
 57         struct ircomm_cb *ircomm; /* IrCOMM layer instance */
 58 
 59         struct sk_buff *tx_skb;   /* Transmit buffer */
 60         struct sk_buff *ctrl_skb; /* Control data buffer */
 61 
 62         /* Parameters */
 63         struct ircomm_params settings;
 64 
 65         __u8 service_type;        /* The service that we support */
 66         int client;               /* True if we are a client */
 67         LOCAL_FLOW flow;          /* IrTTP flow status */
 68 
 69         int line;
 70         __u32 flags;
 71 
 72         __u8 dlsap_sel;
 73         __u8 slsap_sel;
 74 
 75         __u32 saddr;
 76         __u32 daddr;
 77 
 78         __u32 max_data_size;   /* Max data we can transmit in one packet */
 79         __u32 max_header_size; /* The amount of header space we must reserve */
 80 
 81         struct iriap_cb *iriap; /* Instance used for querying remote IAS */
 82         struct ias_object* obj;
 83         int skey;
 84         int ckey;
 85 
 86         struct termios    normal_termios;
 87         struct termios    callout_termios;
 88 
 89         wait_queue_head_t open_wait;
 90         wait_queue_head_t close_wait;
 91         struct timer_list watchdog_timer;
 92         struct tq_struct  tqueue;
 93 
 94         unsigned short    close_delay;
 95         unsigned short    closing_wait; /* time to wait before closing */
 96 
 97         long session;           /* Session of opening process */
 98         long pgrp;              /* pgrp of opening process */
 99         int  open_count;
100         int  blocked_open;      /* # of blocked opens */
101 };
102 
103 void ircomm_tty_start(struct tty_struct *tty);
104 void ircomm_tty_stop(struct tty_struct *tty);
105 void ircomm_tty_check_modem_status(struct ircomm_tty_cb *self);
106 
107 extern void ircomm_tty_change_speed(struct ircomm_tty_cb *self);
108 extern int ircomm_tty_ioctl(struct tty_struct *tty, struct file *file, 
109                             unsigned int cmd, unsigned long arg);
110 extern void ircomm_tty_set_termios(struct tty_struct *tty, 
111                                    struct termios *old_termios);
112 extern hashbin_t *ircomm_tty;
113 
114 #endif
115 
116 
117 
118 
119 
120 
121 
122 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.