Changeset 7aa94304 in mainline for uspace/drv/char/msim-con/msim-con.c
- Timestamp:
- 2017-11-10T18:59:18Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 19397be
- Parents:
- 3a37751
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/msim-con/msim-con.c
r3a37751 r7aa94304 68 68 msim_cmds 69 69 }; 70 #include <stdio.h> 70 71 71 static void msim_irq_handler(ipc_callid_t iid, ipc_call_t *call, void *arg) 72 72 { … … 75 75 76 76 c = IPC_GET_ARG2(*call); 77 printf("key=%d\n", c); 77 78 78 if (con->client_sess != NULL) { 79 79 async_exch_t *exch = async_exchange_begin(con->client_sess); … … 90 90 int rc; 91 91 92 printf("msim_con_add\n");93 92 fun = ddf_fun_create(con->dev, fun_exposed, "a"); 94 93 if (fun == NULL) { … … 112 111 } 113 112 114 printf("msim_con_add: irq subscribe\n");115 116 113 msim_ranges[0].base = paddr; 117 114 msim_cmds[0].addr = (void *) paddr; … … 119 116 subscribed = true; 120 117 121 printf("msim_con_add: bind\n");122 118 rc = ddf_fun_bind(fun); 123 119 if (rc != EOK) { … … 126 122 } 127 123 128 printf("msim_con_add: DONE\n");129 124 return EOK; 130 125 error: … … 162 157 async_answer_0(iid, EOK); 163 158 164 printf("msim_con_connection\n");165 166 159 con = (msim_con_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg)); 167 160 … … 185 178 } else 186 179 async_answer_0(callid, ELIMIT); 187 printf("msim_con_connection: set client_sess\n");188 180 } else { 189 181 switch (method) {
Note:
See TracChangeset
for help on using the changeset viewer.