mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-23 06:52:37 +08:00
termios: Interrupt server API changes
This commit is contained in:
parent
378b5c2fa6
commit
83574df474
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user