Changeset cf2af94 in mainline for uspace/srv/hw/irc/fhc/fhc.c
- Timestamp:
- 2011-02-09T11:46:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cb15135a
- Parents:
- a49c4002 (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/fhc/fhc.c
ra49c4002 rcf2af94 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 #include <ipc/ bus.h>39 #include <ipc/irc.h> 41 40 #include <ipc/ns.h> 42 41 #include <sysinfo.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) { … … 82 81 83 82 callid = async_get_call(&call); 84 switch (IPC_GET_METHOD(call)) { 85 case BUS_CLEAR_INTERRUPT: 83 switch (IPC_GET_IMETHOD(call)) { 84 case IRC_ENABLE_INTERRUPT: 85 /* Noop */ 86 async_answer_0(callid, EOK); 87 break; 88 case IRC_CLEAR_INTERRUPT: 86 89 inr = IPC_GET_ARG1(call); 87 90 switch (inr) { 88 91 case FHC_UART_INR: 89 92 fhc_uart_virt[FHC_UART_ICLR] = 0; 90 ipc_answer_0(callid, EOK);93 async_answer_0(callid, EOK); 91 94 break; 92 95 default: 93 ipc_answer_0(callid, ENOTSUP);96 async_answer_0(callid, ENOTSUP); 94 97 break; 95 98 } 96 99 break; 97 100 default: 98 ipc_answer_0(callid, EINVAL);101 async_answer_0(callid, EINVAL); 99 102 break; 100 103 } … … 133 136 134 137 async_set_client_connection(fhc_connection); 135 ipcarg_t phonead; 136 ipc_connect_to_me(PHONE_NS, SERVICE_FHC, 0, 0, &phonead); 138 service_register(SERVICE_FHC); 137 139 138 140 return true;
Note:
See TracChangeset
for help on using the changeset viewer.