Lines Matching refs:tty_drv
1156 struct tty_driver *tty_drv; in sdio_uart_init() local
1158 sdio_uart_tty_driver = tty_drv = alloc_tty_driver(UART_NR); in sdio_uart_init()
1159 if (!tty_drv) in sdio_uart_init()
1162 tty_drv->driver_name = "sdio_uart"; in sdio_uart_init()
1163 tty_drv->name = "ttySDIO"; in sdio_uart_init()
1164 tty_drv->major = 0; /* dynamically allocated */ in sdio_uart_init()
1165 tty_drv->minor_start = 0; in sdio_uart_init()
1166 tty_drv->type = TTY_DRIVER_TYPE_SERIAL; in sdio_uart_init()
1167 tty_drv->subtype = SERIAL_TYPE_NORMAL; in sdio_uart_init()
1168 tty_drv->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; in sdio_uart_init()
1169 tty_drv->init_termios = tty_std_termios; in sdio_uart_init()
1170 tty_drv->init_termios.c_cflag = B4800 | CS8 | CREAD | HUPCL | CLOCAL; in sdio_uart_init()
1171 tty_drv->init_termios.c_ispeed = 4800; in sdio_uart_init()
1172 tty_drv->init_termios.c_ospeed = 4800; in sdio_uart_init()
1173 tty_set_operations(tty_drv, &sdio_uart_ops); in sdio_uart_init()
1175 ret = tty_register_driver(tty_drv); in sdio_uart_init()
1186 tty_unregister_driver(tty_drv); in sdio_uart_init()
1188 put_tty_driver(tty_drv); in sdio_uart_init()