Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

ircomm_tty.h File Reference

#include <linux/serial.h>
#include <linux/termios.h>
#include <linux/timer.h>
#include <net/irda/irias_object.h>
#include <net/irda/ircomm_core.h>
#include <net/irda/ircomm_param.h>

Include dependency graph for ircomm_tty.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define IRCOMM_TTY_PORTS   32
#define IRCOMM_TTY_MAGIC   0x3432
#define IRCOMM_TTY_MAJOR   161
#define IRCOMM_TTY_MINOR   0

Functions

void ircomm_tty_start (struct tty_struct *tty)
void ircomm_tty_stop (struct tty_struct *tty)
void ircomm_tty_check_modem_status (struct ircomm_tty_cb *self)
void ircomm_tty_change_speed (struct ircomm_tty_cb *self)
int ircomm_tty_ioctl (struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg)
void ircomm_tty_set_termios (struct tty_struct *tty, struct termios *old_termios)

Variables

hashbin_tircomm_tty


Define Documentation

#define IRCOMM_TTY_MAGIC   0x3432
 

Definition at line 43 of file ircomm_tty.h.

Referenced by ircomm_param_data_format(), ircomm_param_data_rate(), ircomm_param_dce(), ircomm_param_dte(), ircomm_param_enq_ack(), ircomm_param_flow_control(), ircomm_param_poll(), ircomm_param_port_name(), ircomm_param_port_type(), ircomm_param_request(), ircomm_param_service_type(), ircomm_param_xon_xoff(), ircomm_tty_attach_cable(), ircomm_tty_chars_in_buffer(), ircomm_tty_check_modem_status(), ircomm_tty_close(), ircomm_tty_connect_confirm(), ircomm_tty_connect_indication(), ircomm_tty_control_indication(), ircomm_tty_data_indication(), ircomm_tty_detach_cable(), ircomm_tty_disconnect_indication(), ircomm_tty_discovery_indication(), ircomm_tty_do_event(), ircomm_tty_do_softint(), ircomm_tty_flow_indication(), ircomm_tty_flush_buffer(), ircomm_tty_getvalue_confirm(), ircomm_tty_hangup(), ircomm_tty_ias_register(), ircomm_tty_link_established(), ircomm_tty_next_state(), ircomm_tty_open(), ircomm_tty_read_proc(), ircomm_tty_send_initial_parameters(), ircomm_tty_set_modem_info(), ircomm_tty_shutdown(), ircomm_tty_start_watchdog_timer(), ircomm_tty_startup(), ircomm_tty_stop(), ircomm_tty_throttle(), ircomm_tty_unthrottle(), ircomm_tty_wait_until_sent(), ircomm_tty_watchdog_timer_expired(), ircomm_tty_write(), and ircomm_tty_write_room().

#define IRCOMM_TTY_MAJOR   161
 

Definition at line 44 of file ircomm_tty.h.

Referenced by ircomm_tty_init().

#define IRCOMM_TTY_MINOR   0
 

Definition at line 45 of file ircomm_tty.h.

Referenced by ircomm_tty_init().

#define IRCOMM_TTY_PORTS   32
 

Definition at line 42 of file ircomm_tty.h.

Referenced by ircomm_tty_init(), and ircomm_tty_open().


Function Documentation

void ircomm_tty_change_speed struct ircomm_tty_cb self  ) 
 

Definition at line 57 of file ircomm_tty_ioctl.c.

References ASYNC_CHECK_CD, ASYNC_CTS_FLOW, baud, CLOCAL, CRTSCTS, CS5, CS6, CS7, CS8, CSIZE, CSTOPB, driver, FALSE, ircomm_tty_cb::ircomm, IRCOMM_2_STOP_BIT, IRCOMM_DATA_FORMAT, IRCOMM_DATA_RATE, IRCOMM_FLOW_CONTROL, ircomm_param_request(), IRCOMM_PARITY_ENABLE, IRCOMM_PARITY_EVEN, IRCOMM_RTS_CTS_IN, IRCOMM_WSIZE_5, IRCOMM_WSIZE_6, IRCOMM_WSIZE_7, IRCOMM_WSIZE_8, IRDA_DEBUG, LSR_BI, LSR_FE, LSR_OE, LSR_PE, PARENB, PARODD, TRUE, ircomm_tty_cb::tty, and tty_get_baud_rate().

Referenced by ircomm_tty_set_serial_info(), and ircomm_tty_set_termios().

Here is the call graph for this function:

void ircomm_tty_check_modem_status struct ircomm_tty_cb self  ) 
 

Definition at line 1040 of file ircomm_tty.c.

References ASSERT, ASYNC_CALLOUT_ACTIVE, ASYNC_CALLOUT_NOHUP, ASYNC_CHECK_CD, ASYNC_CTS_FLOW, ircomm_tty_cb::flags, IMMEDIATE_BH, IRCOMM_CD, IRCOMM_CTS, IRCOMM_DCE_DELTA_ANY, IRCOMM_DELTA_CD, IRCOMM_TTY_MAGIC, IRDA_DEBUG, ircomm_tty_cb::line, ircomm_tty_cb::magic, mark_bh, NULL, ircomm_tty_cb::open_wait, queue_task, status, tq_immediate, ircomm_tty_cb::tqueue, tty, and tty_hangup().

Referenced by ircomm_param_dce(), ircomm_param_dte(), and ircomm_tty_state_ready().

Here is the call graph for this function:

int ircomm_tty_ioctl struct tty_struct *  tty,
struct file file,
unsigned int  cmd,
unsigned long  arg
 

Definition at line 393 of file ircomm_tty_ioctl.c.

References cli, driver, EIO, ENOIOCTLCMD, error, ircomm_tty_get_modem_info(), ircomm_tty_get_serial_info(), ircomm_tty_set_modem_info(), ircomm_tty_set_serial_info(), IRDA_DEBUG, put_user, restore_flags, ret, save_flags, TIOCGICOUNT, TIOCGSERIAL, TIOCMBIC, TIOCMBIS, TIOCMGET, TIOCMIWAIT, TIOCMSET, TIOCSERCONFIG, TIOCSERGSTRUCT, and TIOCSSERIAL.

Referenced by ircomm_tty_init().

Here is the call graph for this function:

void ircomm_tty_set_termios struct tty_struct *  tty,
struct termios old_termios
 

Definition at line 146 of file ircomm_tty_ioctl.c.

References termios::c_cflag, termios::c_iflag, CBAUD, CRTSCTS, IRCOMM_DTE, IRCOMM_DTR, ircomm_param_request(), IRCOMM_RTS, ircomm_tty_change_speed(), ircomm_tty_start(), IRDA_DEBUG, RELEVANT_IFLAG, test_bit, and TRUE.

Referenced by ircomm_tty_init().

Here is the call graph for this function:

void ircomm_tty_start struct tty_struct *  tty  ) 
 

Definition at line 1010 of file ircomm_tty.c.

References FLOW_START, and ircomm_flow_request().

Referenced by ircomm_tty_init(), and ircomm_tty_set_termios().

Here is the call graph for this function:

void ircomm_tty_stop struct tty_struct *  tty  ) 
 

Definition at line 1023 of file ircomm_tty.c.

References ASSERT, FLOW_STOP, ircomm_flow_request(), IRCOMM_TTY_MAGIC, and NULL.

Referenced by ircomm_tty_init().

Here is the call graph for this function:


Variable Documentation

hashbin_t* ircomm_tty
 

Definition at line 82 of file ircomm_tty.c.

Referenced by ircomm_tty_discovery_indication().