Changeset a33f0a6 in mainline for uspace/srv/hw/bus/cuda_adb/cuda_adb.c
- Timestamp:
- 2011-08-03T17:34:57Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1940326
- Parents:
- 52a79081 (diff), 3fab770 (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/bus/cuda_adb/cuda_adb.c
r52a79081 ra33f0a6 48 48 #include <ipc/adb.h> 49 49 #include <async.h> 50 #include <async_obsolete.h> 50 51 #include <assert.h> 51 52 #include "cuda_adb.h" 52 53 54 // FIXME: remove this header 55 #include <kernel/ipc/ipc_methods.h> 56 53 57 #define NAME "cuda_adb" 54 58 55 static void cuda_connection(ipc_callid_t iid, ipc_call_t *icall );59 static void cuda_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg); 56 60 static int cuda_init(void); 57 61 static void cuda_irq_handler(ipc_callid_t iid, ipc_call_t *call); … … 189 193 190 194 /** Character device connection handler */ 191 static void cuda_connection(ipc_callid_t iid, ipc_call_t *icall )195 static void cuda_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 192 196 { 193 197 ipc_callid_t callid; … … 219 223 callid = async_get_call(&call); 220 224 method = IPC_GET_IMETHOD(call); 221 switch (method) {222 case IPC_M_PHONE_HUNGUP:225 226 if (!method) { 223 227 /* The other side has hung up. */ 224 228 async_answer_0(callid, EOK); 225 229 return; 230 } 231 232 switch (method) { 226 233 case IPC_M_CONNECT_TO_ME: 227 234 if (adb_dev[dev_addr].client_phone != -1) { … … 479 486 return; 480 487 481 async_ msg_1(adb_dev[dev_addr].client_phone, ADB_REG_NOTIF, reg_val);488 async_obsolete_msg_1(adb_dev[dev_addr].client_phone, ADB_REG_NOTIF, reg_val); 482 489 } 483 490
Note:
See TracChangeset
for help on using the changeset viewer.