diff options
Diffstat (limited to 'include/net/irda/ircomm_tty.h')
| -rw-r--r-- | include/net/irda/ircomm_tty.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/include/net/irda/ircomm_tty.h b/include/net/irda/ircomm_tty.h index 59ba38bc400f..80ffde3bb164 100644 --- a/include/net/irda/ircomm_tty.h +++ b/include/net/irda/ircomm_tty.h | |||
| @@ -52,21 +52,16 @@ | |||
| 52 | /* Same for payload size. See qos.c for the smallest max data size */ | 52 | /* Same for payload size. See qos.c for the smallest max data size */ |
| 53 | #define IRCOMM_TTY_DATA_UNINITIALISED (64 - IRCOMM_TTY_HDR_UNINITIALISED) | 53 | #define IRCOMM_TTY_DATA_UNINITIALISED (64 - IRCOMM_TTY_HDR_UNINITIALISED) |
| 54 | 54 | ||
| 55 | /* Those are really defined in include/linux/serial.h - Jean II */ | ||
| 56 | #define ASYNC_B_INITIALIZED 31 /* Serial port was initialized */ | ||
| 57 | #define ASYNC_B_NORMAL_ACTIVE 29 /* Normal device is active */ | ||
| 58 | #define ASYNC_B_CLOSING 27 /* Serial port is closing */ | ||
| 59 | |||
| 60 | /* | 55 | /* |
| 61 | * IrCOMM TTY driver state | 56 | * IrCOMM TTY driver state |
| 62 | */ | 57 | */ |
| 63 | struct ircomm_tty_cb { | 58 | struct ircomm_tty_cb { |
| 64 | irda_queue_t queue; /* Must be first */ | 59 | irda_queue_t queue; /* Must be first */ |
| 60 | struct tty_port port; | ||
| 65 | magic_t magic; | 61 | magic_t magic; |
| 66 | 62 | ||
| 67 | int state; /* Connect state */ | 63 | int state; /* Connect state */ |
| 68 | 64 | ||
| 69 | struct tty_struct *tty; | ||
| 70 | struct ircomm_cb *ircomm; /* IrCOMM layer instance */ | 65 | struct ircomm_cb *ircomm; /* IrCOMM layer instance */ |
| 71 | 66 | ||
| 72 | struct sk_buff *tx_skb; /* Transmit buffer */ | 67 | struct sk_buff *tx_skb; /* Transmit buffer */ |
| @@ -80,7 +75,6 @@ struct ircomm_tty_cb { | |||
| 80 | LOCAL_FLOW flow; /* IrTTP flow status */ | 75 | LOCAL_FLOW flow; /* IrTTP flow status */ |
| 81 | 76 | ||
| 82 | int line; | 77 | int line; |
| 83 | unsigned long flags; | ||
| 84 | 78 | ||
| 85 | __u8 dlsap_sel; | 79 | __u8 dlsap_sel; |
| 86 | __u8 slsap_sel; | 80 | __u8 slsap_sel; |
| @@ -97,19 +91,10 @@ struct ircomm_tty_cb { | |||
| 97 | void *skey; | 91 | void *skey; |
| 98 | void *ckey; | 92 | void *ckey; |
| 99 | 93 | ||
| 100 | wait_queue_head_t open_wait; | ||
| 101 | wait_queue_head_t close_wait; | ||
| 102 | struct timer_list watchdog_timer; | 94 | struct timer_list watchdog_timer; |
| 103 | struct work_struct tqueue; | 95 | struct work_struct tqueue; |
| 104 | 96 | ||
| 105 | unsigned short close_delay; | ||
| 106 | unsigned short closing_wait; /* time to wait before closing */ | ||
| 107 | |||
| 108 | int open_count; | ||
| 109 | int blocked_open; /* # of blocked opens */ | ||
| 110 | |||
| 111 | /* Protect concurent access to : | 97 | /* Protect concurent access to : |
| 112 | * o self->open_count | ||
| 113 | * o self->ctrl_skb | 98 | * o self->ctrl_skb |
| 114 | * o self->tx_skb | 99 | * o self->tx_skb |
| 115 | * Maybe other things may gain to be protected as well... | 100 | * Maybe other things may gain to be protected as well... |
