Changeset 17aca1c in mainline for uspace/srv/hw/irc/i8259/i8259.c


Ignore:
Timestamp:
2011-02-04T20:56:52Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0397e5a4, e29e09cf
Parents:
e778543 (diff), 0b37882 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/irc/i8259/i8259.c

    re778543 r17aca1c  
    3636 */
    3737
    38 #include <ipc/ipc.h>
    3938#include <ipc/services.h>
    4039#include <ipc/irc.h>
     
    109108         * Answer the first IPC_M_CONNECT_ME_TO call.
    110109         */
    111         ipc_answer_0(iid, EOK);
     110        async_answer_0(iid, EOK);
    112111       
    113112        while (true) {
     
    116115                switch (IPC_GET_IMETHOD(call)) {
    117116                case IRC_ENABLE_INTERRUPT:
    118                         ipc_answer_0(callid, pic_enable_irq(IPC_GET_ARG1(call)));
     117                        async_answer_0(callid, pic_enable_irq(IPC_GET_ARG1(call)));
    119118                        break;
    120119                case IRC_CLEAR_INTERRUPT:
    121120                        /* Noop */
    122                         ipc_answer_0(callid, EOK);
     121                        async_answer_0(callid, EOK);
    123122                        break;
    124123                default:
    125                         ipc_answer_0(callid, EINVAL);
     124                        async_answer_0(callid, EINVAL);
    126125                        break;
    127126                }
     
    150149       
    151150        async_set_client_connection(i8259_connection);
    152         ipc_connect_to_me(PHONE_NS, SERVICE_I8259, 0, 0, NULL, NULL);
     151        service_register(SERVICE_I8259);
    153152       
    154153        return true;
Note: See TracChangeset for help on using the changeset viewer.