Changeset 984a9ba in mainline for uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
- Timestamp:
- 2018-07-05T09:34:09Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63d46341
- Parents:
- 76f566d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
r76f566d r984a9ba 69 69 static s3c24xx_ts_t *ts; 70 70 71 static void s3c24xx_ts_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, 72 void *arg); 73 static void s3c24xx_ts_irq_handler(ipc_call_t *call, void *); 74 static void s3c24xx_ts_pen_down(s3c24xx_ts_t *ts); 75 static void s3c24xx_ts_pen_up(s3c24xx_ts_t *ts); 76 static void s3c24xx_ts_eoc(s3c24xx_ts_t *ts); 77 static int s3c24xx_ts_init(s3c24xx_ts_t *ts); 78 static void s3c24xx_ts_wait_for_int_mode(s3c24xx_ts_t *ts, ts_updn_t updn); 79 static void s3c24xx_ts_convert_samples(int smp0, int smp1, int *x, int *y); 80 static int lin_map_range(int v, int i0, int i1, int o0, int o1); 71 static void s3c24xx_ts_connection(ipc_call_t *, void *); 72 static void s3c24xx_ts_irq_handler(ipc_call_t *, void *); 73 static void s3c24xx_ts_pen_down(s3c24xx_ts_t *); 74 static void s3c24xx_ts_pen_up(s3c24xx_ts_t *); 75 static void s3c24xx_ts_eoc(s3c24xx_ts_t *); 76 static int s3c24xx_ts_init(s3c24xx_ts_t *); 77 static void s3c24xx_ts_wait_for_int_mode(s3c24xx_ts_t *, ts_updn_t); 78 static void s3c24xx_ts_convert_samples(int, int, int *, int *); 79 static int lin_map_range(int, int, int, int, int); 81 80 82 81 int main(int argc, char *argv[]) … … 371 370 372 371 /** Handle mouse client connection. */ 373 static void s3c24xx_ts_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, 374 void *arg) 375 { 376 async_answer_0(icall_handle, EOK); 372 static void s3c24xx_ts_connection(ipc_call_t *icall, void *arg) 373 { 374 async_answer_0(icall, EOK); 377 375 378 376 while (true) { 379 377 ipc_call_t call; 380 cap_call_handle_t chandle =async_get_call(&call);378 async_get_call(&call); 381 379 382 380 if (!IPC_GET_IMETHOD(call)) { … … 386 384 } 387 385 388 async_answer_0( chandle, EOK);386 async_answer_0(&call, EOK); 389 387 return; 390 388 } … … 395 393 if (ts->client_sess == NULL) { 396 394 ts->client_sess = sess; 397 async_answer_0( chandle, EOK);395 async_answer_0(&call, EOK); 398 396 } else 399 async_answer_0( chandle, ELIMIT);397 async_answer_0(&call, ELIMIT); 400 398 } else 401 async_answer_0( chandle, EINVAL);399 async_answer_0(&call, EINVAL); 402 400 } 403 401 }
Note:
See TracChangeset
for help on using the changeset viewer.