tty: Introduce a tty_port common structure