equal
deleted
inserted
replaced
500 static void ec_tty_flush_buffer(struct tty_struct *tty) |
500 static void ec_tty_flush_buffer(struct tty_struct *tty) |
501 { |
501 { |
502 #if EC_TTY_DEBUG >= 2 |
502 #if EC_TTY_DEBUG >= 2 |
503 printk(KERN_INFO PFX "%s().\n", __func__); |
503 printk(KERN_INFO PFX "%s().\n", __func__); |
504 #endif |
504 #endif |
|
505 |
|
506 // FIXME empty ring buffer |
505 } |
507 } |
506 |
508 |
507 /*****************************************************************************/ |
509 /*****************************************************************************/ |
508 |
510 |
509 static int ec_tty_ioctl(struct tty_struct *tty, struct file *file, |
511 static int ec_tty_ioctl(struct tty_struct *tty, struct file *file, |
532 case TIOCSSERIAL: // TODO |
534 case TIOCSSERIAL: // TODO |
533 break; |
535 break; |
534 |
536 |
535 default: |
537 default: |
536 #if EC_TTY_DEBUG >= 2 |
538 #if EC_TTY_DEBUG >= 2 |
537 printk(KERN_INFO PFX "no ioctl()!\n"); |
539 printk(KERN_INFO PFX "no ioctl() -> handled by tty core!\n"); |
538 #endif |
540 #endif |
539 ret = -ENOIOCTLCMD; |
541 ret = -ENOIOCTLCMD; |
540 break; |
542 break; |
541 } |
543 } |
542 |
544 |