Lines Matching refs:rs_driver
59 static struct tty_driver rs_driver, rs_callout_driver; variable
617 memset(&rs_driver, 0, sizeof(rs_driver)); in tx3912_rs_init()
636 rs_driver.magic = TTY_DRIVER_MAGIC; in tx3912_rs_init()
637 rs_driver.driver_name = "serial"; in tx3912_rs_init()
638 rs_driver.name = "ttyS"; in tx3912_rs_init()
639 rs_driver.major = TTY_MAJOR; in tx3912_rs_init()
640 rs_driver.minor_start = 64; in tx3912_rs_init()
641 rs_driver.num = 1; in tx3912_rs_init()
642 rs_driver.type = TTY_DRIVER_TYPE_SERIAL; in tx3912_rs_init()
643 rs_driver.subtype = SERIAL_TYPE_NORMAL; in tx3912_rs_init()
644 rs_driver.init_termios = tty_std_termios; in tx3912_rs_init()
645 rs_driver.init_termios.c_cflag = B115200 | CS8 | CREAD | HUPCL | CLOCAL; in tx3912_rs_init()
646 rs_driver.refcount = &rs_refcount; in tx3912_rs_init()
647 rs_driver.table = rs_tty; in tx3912_rs_init()
648 rs_driver.termios = rs_termios; in tx3912_rs_init()
649 rs_driver.termios_locked = rs_termios_locked; in tx3912_rs_init()
650 rs_driver.open = rs_open; in tx3912_rs_init()
651 rs_driver.close = gs_close; in tx3912_rs_init()
652 rs_driver.write = gs_write; in tx3912_rs_init()
653 rs_driver.put_char = gs_put_char; in tx3912_rs_init()
654 rs_driver.flush_chars = gs_flush_chars; in tx3912_rs_init()
655 rs_driver.write_room = gs_write_room; in tx3912_rs_init()
656 rs_driver.chars_in_buffer = gs_chars_in_buffer; in tx3912_rs_init()
657 rs_driver.flush_buffer = gs_flush_buffer; in tx3912_rs_init()
658 rs_driver.ioctl = rs_ioctl; in tx3912_rs_init()
659 rs_driver.throttle = rs_throttle; in tx3912_rs_init()
660 rs_driver.unthrottle = rs_unthrottle; in tx3912_rs_init()
661 rs_driver.set_termios = gs_set_termios; in tx3912_rs_init()
662 rs_driver.stop = gs_stop; in tx3912_rs_init()
663 rs_driver.start = gs_start; in tx3912_rs_init()
664 rs_driver.hangup = gs_hangup; in tx3912_rs_init()
665 rs_callout_driver = rs_driver; in tx3912_rs_init()
671 if(tty_register_driver(&rs_driver)) { in tx3912_rs_init()
676 tty_unregister_driver(&rs_driver); in tx3912_rs_init()