Changes in uspace/srv/hw/irc/fhc/fhc.c [acc7ce4:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/fhc/fhc.c
racc7ce4 rffa2c8ef 29 29 /** @addtogroup fhc 30 30 * @{ 31 */ 31 */ 32 32 33 33 /** 34 * @file 35 * @brief 34 * @file fhc.c 35 * @brief FHC bus controller driver. 36 36 */ 37 37 38 #include <ipc/ipc.h>39 38 #include <ipc/services.h> 40 39 #include <ipc/irc.h> … … 76 75 * Answer the first IPC_M_CONNECT_ME_TO call. 77 76 */ 78 ipc_answer_0(iid, EOK);77 async_answer_0(iid, EOK); 79 78 80 79 while (1) { … … 85 84 case IRC_ENABLE_INTERRUPT: 86 85 /* Noop */ 87 ipc_answer_0(callid, EOK);86 async_answer_0(callid, EOK); 88 87 break; 89 88 case IRC_CLEAR_INTERRUPT: … … 92 91 case FHC_UART_INR: 93 92 fhc_uart_virt[FHC_UART_ICLR] = 0; 94 ipc_answer_0(callid, EOK);93 async_answer_0(callid, EOK); 95 94 break; 96 95 default: 97 ipc_answer_0(callid, ENOTSUP);96 async_answer_0(callid, ENOTSUP); 98 97 break; 99 98 } 100 99 break; 101 100 default: 102 ipc_answer_0(callid, EINVAL);101 async_answer_0(callid, EINVAL); 103 102 break; 104 103 } … … 137 136 138 137 async_set_client_connection(fhc_connection); 139 sysarg_t phonead; 140 ipc_connect_to_me(PHONE_NS, SERVICE_FHC, 0, 0, &phonead); 138 service_register(SERVICE_FHC); 141 139 142 140 return true;
Note:
See TracChangeset
for help on using the changeset viewer.