struct console
{
- struct potens_meta* tp_cap;
+ struct termport_potens* tp_cap;
struct lx_timer* flush_timer;
struct fifo_buf output;
struct fifo_buf input;
fifo_putone(&lx_console.input, ttychr);
- struct termport_potens* tpcap;
- tpcap = get_potens(lx_console.tp_cap, typeof(*tpcap));
- term_notify_data_avaliable(tpcap);
+ term_notify_data_avaliable(lx_console.tp_cap);
pwake_all(&lx_reader);
done:
register_device(tty_dev, &devdef->class, "vcon");
- term_attach_potens(tty_dev, NULL, "VCON");
+ lx_console.tp_cap = term_attach_potens(tty_dev, NULL, "VCON");
return 0;
}