Changeset 19a1800 in mainline for uspace/srv/hw/irc/i8259/i8259.c
- Timestamp:
- 2011-03-01T22:20:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e24e7b1
- Parents:
- 976f546 (diff), ac8285d (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified uspace/srv/hw/irc/i8259/i8259.c ¶
r976f546 r19a1800 36 36 */ 37 37 38 #include <ipc/ipc.h>39 38 #include <ipc/services.h> 40 39 #include <ipc/irc.h> … … 109 108 * Answer the first IPC_M_CONNECT_ME_TO call. 110 109 */ 111 ipc_answer_0(iid, EOK);110 async_answer_0(iid, EOK); 112 111 113 112 while (true) { … … 116 115 switch (IPC_GET_IMETHOD(call)) { 117 116 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))); 119 118 break; 120 119 case IRC_CLEAR_INTERRUPT: 121 120 /* Noop */ 122 ipc_answer_0(callid, EOK);121 async_answer_0(callid, EOK); 123 122 break; 124 123 default: 125 ipc_answer_0(callid, EINVAL);124 async_answer_0(callid, EINVAL); 126 125 break; 127 126 } … … 150 149 151 150 async_set_client_connection(i8259_connection); 152 sysarg_t phonead; 153 ipc_connect_to_me(PHONE_NS, SERVICE_I8259, 0, 0, &phonead); 151 service_register(SERVICE_I8259); 154 152 155 153 return true;
Note:
See TracChangeset
for help on using the changeset viewer.