Changeset 3a11f17 in mainline for uspace/drv/char/ns8250/ns8250.c


Ignore:
Timestamp:
2011-09-16T22:07:51Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a281aec5
Parents:
432a269
Message:

ns8250: enable interrupts using IRC service
This fixes reading of data from the serial port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/ns8250/ns8250.c

    r432a269 r3a11f17  
    5959
    6060#include <devman.h>
     61#include <ns.h>
    6162#include <ipc/devman.h>
     63#include <ipc/services.h>
     64#include <ipc/irc.h>
    6265#include <device/hw_res.h>
    6366#include <ipc/serial_ctl.h>
     
    409412static int ns8250_interrupt_enable(ns8250_t *ns)
    410413{
     414        async_sess_t *irc_sess = service_connect_blocking(EXCHANGE_SERIALIZE,
     415            SERVICE_IRC, 0, 0);
     416
     417        async_exch_t *exch = async_exchange_begin(irc_sess);
     418        async_msg_1(exch, IRC_ENABLE_INTERRUPT, ns->irq);
     419        async_exchange_end(exch);
     420
    411421        /* Enable interrupt on the serial port. */
    412422        ns8250_port_interrupts_enable(ns->port);
Note: See TracChangeset for help on using the changeset viewer.