Changeset cd50486 in mainline for uspace/srv/hw/irc/fhc/fhc.c
- Timestamp:
- 2011-02-06T22:03:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25971d2
- Parents:
- 1110ebd (diff), 960ff451 (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
-
uspace/srv/hw/irc/fhc/fhc.c
r1110ebd rcd50486 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 ipc_connect_to_me(PHONE_NS, SERVICE_FHC, 0, 0, NULL, NULL);138 service_register(SERVICE_FHC); 140 139 141 140 return true;
Note:
See TracChangeset
for help on using the changeset viewer.