Changes in uspace/drv/char/ns8250/ns8250.c [128c78b:5b68e0c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ns8250/ns8250.c
r128c78b r5b68e0c 59 59 60 60 #include <devman.h> 61 #include <ns.h>62 61 #include <ipc/devman.h> 63 #include <ipc/services.h>64 #include <ipc/irc.h>65 62 #include <device/hw_res.h> 66 63 #include <ipc/serial_ctl.h> … … 412 409 static int ns8250_interrupt_enable(ns8250_t *ns) 413 410 { 414 /*415 * Enable interrupt using IRC service.416 * TODO: This is a temporary solution until the device framework417 * takes care of this itself.418 */419 async_sess_t *irc_sess = service_connect_blocking(EXCHANGE_SERIALIZE,420 SERVICE_IRC, 0, 0);421 if (!irc_sess) {422 return EIO;423 }424 425 async_exch_t *exch = async_exchange_begin(irc_sess);426 if (!exch) {427 return EIO;428 }429 async_msg_1(exch, IRC_ENABLE_INTERRUPT, ns->irq);430 async_exchange_end(exch);431 432 411 /* Enable interrupt on the serial port. */ 433 412 ns8250_port_interrupts_enable(ns->port);
Note:
See TracChangeset
for help on using the changeset viewer.