termios: Interrupt server API changes

This commit is contained in:
Sebastian Huber 2017-07-11 10:42:32 +02:00
parent 378b5c2fa6
commit 83574df474

View File

@ -192,7 +192,7 @@ termios_wakeup(struct termios *term, void *arg)
{ {
termios_selinfo *ts = arg; termios_selinfo *ts = arg;
rtems_interrupt_server_request_submit(RTEMS_ID_NONE, &ts->request); rtems_interrupt_server_request_submit(&ts->request);
} }
static struct selinfo * static struct selinfo *
@ -205,8 +205,8 @@ termios_get_selinfo(rtems_termios_tty *tty, struct ttywakeup *wk,
BSD_ASSERT(wk->sw_pfn == NULL); BSD_ASSERT(wk->sw_pfn == NULL);
ts = malloc(sizeof(*ts), M_TEMP, M_WAITOK | M_ZERO); ts = malloc(sizeof(*ts), M_TEMP, M_WAITOK | M_ZERO);
ts->tty = tty; ts->tty = tty;
rtems_interrupt_server_request_initialize(&ts->request, rtems_interrupt_server_request_initialize(RTEMS_INTERRUPT_SERVER_DEFAULT,
handler, ts); &ts->request, handler, ts);
wk->sw_arg = ts; wk->sw_arg = ts;
wk->sw_pfn = termios_wakeup; wk->sw_pfn = termios_wakeup;
} else { } else {