Changes in uspace/srv/hw/irc/obio/obio.c [ffa2c8ef:124c061] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/obio/obio.c
rffa2c8ef r124c061 27 27 */ 28 28 29 /** @addtogroup obio 29 /** @addtogroup obio 30 30 * @{ 31 */ 31 */ 32 32 33 33 /** 34 * @file 35 * @brief 34 * @file obio.c 35 * @brief OBIO driver. 36 36 * 37 37 * OBIO is a short for on-board I/O. On UltraSPARC IIi and systems with U2P, … … 42 42 */ 43 43 44 #include <ipc/ipc.h> 44 45 #include <ipc/services.h> 45 46 #include <ipc/irc.h> … … 85 86 * Answer the first IPC_M_CONNECT_ME_TO call. 86 87 */ 87 async_answer_0(iid, EOK);88 ipc_answer_0(iid, EOK); 88 89 89 90 while (1) { … … 94 95 case IRC_ENABLE_INTERRUPT: 95 96 /* Noop */ 96 async_answer_0(callid, EOK);97 ipc_answer_0(callid, EOK); 97 98 break; 98 99 case IRC_CLEAR_INTERRUPT: 99 100 inr = IPC_GET_ARG1(call); 100 101 base_virt[OBIO_CIR(inr & INO_MASK)] = 0; 101 async_answer_0(callid, EOK);102 ipc_answer_0(callid, EOK); 102 103 break; 103 104 default: 104 async_answer_0(callid, EINVAL);105 ipc_answer_0(callid, EINVAL); 105 106 break; 106 107 } … … 137 138 138 139 async_set_client_connection(obio_connection); 139 service_register(SERVICE_OBIO);140 ipc_connect_to_me(PHONE_NS, SERVICE_OBIO, 0, 0, NULL, NULL); 140 141 141 142 return true;
Note:
See TracChangeset
for help on using the changeset viewer.