Changeset a1347a7 in mainline for uspace/srv
- Timestamp:
- 2012-01-15T13:51:09Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd79281
- Parents:
- 03e0a244 (diff), f302586 (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. - Location:
- uspace/srv
- Files:
-
- 3 deleted
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/ata_bd/ata_bd.c
r03e0a244 ra1347a7 245 245 void *vaddr; 246 246 int rc; 247 248 rc = loc_server_register(NAME, ata_bd_connection); 247 248 async_set_client_connection(ata_bd_connection); 249 rc = loc_server_register(NAME); 249 250 if (rc < 0) { 250 251 printf(NAME ": Unable to register driver.\n"); -
uspace/srv/bd/file_bd/file_bd.c
r03e0a244 ra1347a7 141 141 int rc; 142 142 long img_size; 143 144 rc = loc_server_register(NAME, file_bd_connection); 143 144 async_set_client_connection(file_bd_connection); 145 rc = loc_server_register(NAME); 145 146 if (rc < 0) { 146 147 printf(NAME ": Unable to register driver.\n"); -
uspace/srv/bd/gxe_bd/gxe_bd.c
r03e0a244 ra1347a7 125 125 int rc, i; 126 126 char name[16]; 127 128 rc = loc_server_register(NAME, gxe_bd_connection); 127 128 async_set_client_connection(gxe_bd_connection); 129 rc = loc_server_register(NAME); 129 130 if (rc < 0) { 130 131 printf(NAME ": Unable to register driver.\n"); -
uspace/srv/bd/part/guid_part/guid_part.c
r03e0a244 ra1347a7 164 164 165 165 /* Register server with location service. */ 166 rc = loc_server_register(NAME, gpt_connection); 166 async_set_client_connection(gpt_connection); 167 rc = loc_server_register(NAME); 167 168 if (rc != EOK) { 168 169 printf(NAME ": Unable to register server.\n"); -
uspace/srv/bd/part/mbr_part/mbr_part.c
r03e0a244 ra1347a7 214 214 215 215 /* Register server with location service. */ 216 rc = loc_server_register(NAME, mbr_connection); 216 async_set_client_connection(mbr_connection); 217 rc = loc_server_register(NAME); 217 218 if (rc != EOK) { 218 219 printf(NAME ": Unable to register server.\n"); -
uspace/srv/bd/rd/rd.c
r03e0a244 ra1347a7 235 235 (void *) addr_phys, size); 236 236 237 ret = loc_server_register(NAME, rd_connection); 237 async_set_client_connection(rd_connection); 238 ret = loc_server_register(NAME); 238 239 if (ret < 0) { 239 240 printf("%s: Unable to register driver (%d)\n", NAME, ret); -
uspace/srv/devman/main.c
r03e0a244 ra1347a7 1309 1309 1310 1310 /* 1311 * !!! devman_connection ... as the device manager is not a real loc 1312 * driver (it uses a completely different ipc protocol than an ordinary 1313 * loc driver) forwarding a connection from client to the devman by 1314 * location service would not work. 1311 * Caution: As the device manager is not a real loc 1312 * driver (it uses a completely different IPC protocol 1313 * than an ordinary loc driver), forwarding a connection 1314 * from client to the devman by location service will 1315 * not work. 1315 1316 */ 1316 loc_server_register(NAME , devman_connection);1317 loc_server_register(NAME); 1317 1318 1318 1319 return true; … … 1325 1326 if (log_init(NAME, LVL_WARN) != EOK) { 1326 1327 printf(NAME ": Error initializing logging subsystem.\n"); 1327 return -1;1328 }1329 1330 if (!devman_init()) {1331 log_msg(LVL_ERROR, "Error while initializing service.");1332 1328 return -1; 1333 1329 } … … 1338 1334 async_set_client_connection(devman_connection); 1339 1335 1336 if (!devman_init()) { 1337 log_msg(LVL_ERROR, "Error while initializing service."); 1338 return -1; 1339 } 1340 1340 1341 /* Register device manager at naming service. */ 1341 1342 if (service_register(SERVICE_DEVMAN) != EOK) { -
uspace/srv/hid/console/console.c
r03e0a244 ra1347a7 825 825 826 826 /* Register server */ 827 int rc = loc_server_register(NAME, client_connection); 827 async_set_client_connection(client_connection); 828 int rc = loc_server_register(NAME); 828 829 if (rc < 0) { 829 830 printf("%s: Unable to register server (%s)\n", NAME, -
uspace/srv/hid/fb/fb.c
r03e0a244 ra1347a7 987 987 988 988 /* Register server */ 989 int rc = loc_server_register(NAME, client_connection); 989 async_set_client_connection(client_connection); 990 int rc = loc_server_register(NAME); 990 991 if (rc != EOK) { 991 992 printf("%s: Unable to register driver (%d)\n", NAME, rc); -
uspace/srv/hid/input/Makefile
r03e0a244 ra1347a7 43 43 port/adb_mouse.c \ 44 44 port/chardev.c \ 45 port/chardev_mouse.c \46 45 port/gxemul.c \ 47 46 port/msim.c \ … … 52 51 proto/adb.c \ 53 52 proto/mousedev.c \ 54 proto/ps2.c \55 53 ctl/apple.c \ 56 54 ctl/gxe_fb.c \ -
uspace/srv/hid/input/generic/input.c
r03e0a244 ra1347a7 172 172 173 173 /** Mouse pointer has moved. */ 174 void mouse_push_event_move(mouse_dev_t *mdev, int dx, int dy )174 void mouse_push_event_move(mouse_dev_t *mdev, int dx, int dy, int dz) 175 175 { 176 176 async_exch_t *exch = async_exchange_begin(client_sess); 177 async_msg_2(exch, INPUT_EVENT_MOVE, dx, dy); 177 if (dx || dy) 178 async_msg_2(exch, INPUT_EVENT_MOVE, dx, dy); 179 if (dz) { 180 // TODO: Implement proper wheel support 181 keycode_t code = dz > 0 ? KC_UP : KC_DOWN; 182 for (int i = 0; i < 3; ++i) { 183 async_msg_4(exch, INPUT_EVENT_KEY, KEY_PRESS, code, 0, 0); 184 } 185 async_msg_4(exch, INPUT_EVENT_KEY, KEY_RELEASE, code, 0, 0); 186 } 178 187 async_exchange_end(exch); 179 188 } … … 397 406 * them automatically. 398 407 */ 399 #if defined(UARCH_amd64)400 kbd_add_dev(&chardev_port, &pc_ctl);401 #endif402 408 #if defined(UARCH_arm32) && defined(MACHINE_gta02) 403 409 kbd_add_dev(&chardev_port, &stty_ctl); … … 411 417 #if defined(UARCH_arm32) && defined(MACHINE_integratorcp) 412 418 kbd_add_dev(&pl050_port, &pc_ctl); 413 #endif414 #if defined(UARCH_ia32)415 kbd_add_dev(&chardev_port, &pc_ctl);416 #endif417 #if defined(MACHINE_i460GX)418 kbd_add_dev(&chardev_port, &pc_ctl);419 419 #endif 420 420 #if defined(MACHINE_ski) … … 450 450 * them automatically. 451 451 */ 452 #if defined(UARCH_amd64)453 mouse_add_dev(&chardev_mouse_port, &ps2_proto);454 #endif455 #if defined(UARCH_ia32)456 mouse_add_dev(&chardev_mouse_port, &ps2_proto);457 #endif458 #if defined(MACHINE_i460GX)459 mouse_add_dev(&chardev_mouse_port, &ps2_proto);460 #endif461 452 #if defined(UARCH_ppc32) 462 453 mouse_add_dev(&adb_mouse_port, &adb_proto); … … 658 649 659 650 /* Register driver */ 660 int rc = loc_server_register(NAME, client_connection); 651 async_set_client_connection(client_connection); 652 int rc = loc_server_register(NAME); 661 653 if (rc < 0) { 662 654 printf("%s: Unable to register server (%d)\n", NAME, rc); -
uspace/srv/hid/input/include/mouse.h
r03e0a244 ra1347a7 62 62 63 63 extern void mouse_push_data(mouse_dev_t *, sysarg_t); 64 extern void mouse_push_event_move(mouse_dev_t *, int, int );64 extern void mouse_push_event_move(mouse_dev_t *, int, int, int); 65 65 extern void mouse_push_event_button(mouse_dev_t *, int, int); 66 66 -
uspace/srv/hid/input/include/mouse_proto.h
r03e0a244 ra1347a7 48 48 49 49 extern mouse_proto_ops_t adb_proto; 50 extern mouse_proto_ops_t ps2_proto;51 50 extern mouse_proto_ops_t mousedev_proto; 52 51 -
uspace/srv/hid/input/port/chardev.c
r03e0a244 ra1347a7 63 63 /** List of devices to try connecting to. */ 64 64 static const char *in_devs[] = { 65 "char/ps2a",66 65 "char/s3c24ser" 67 66 }; -
uspace/srv/hid/input/proto/adb.c
r03e0a244 ra1347a7 82 82 83 83 if (dx != 0 || dy != 0) 84 mouse_push_event_move(mouse_dev, dx, dy );84 mouse_push_event_move(mouse_dev, dx, dy, 0); 85 85 } 86 86 -
uspace/srv/hid/input/proto/mousedev.c
r03e0a244 ra1347a7 91 91 switch (IPC_GET_IMETHOD(call)) { 92 92 case MOUSEEV_MOVE_EVENT: 93 mouse_push_event_move(mousedev->mouse_dev, IPC_GET_ARG1(call), 94 IPC_GET_ARG2(call)); 93 mouse_push_event_move(mousedev->mouse_dev, 94 IPC_GET_ARG1(call), IPC_GET_ARG2(call), 95 IPC_GET_ARG3(call)); 95 96 retval = EOK; 96 97 break; 97 98 case MOUSEEV_BUTTON_EVENT: 98 mouse_push_event_button(mousedev->mouse_dev, IPC_GET_ARG1(call),99 IPC_GET_ARG 2(call));99 mouse_push_event_button(mousedev->mouse_dev, 100 IPC_GET_ARG1(call), IPC_GET_ARG2(call)); 100 101 retval = EOK; 101 102 break; -
uspace/srv/hid/remcons/remcons.c
r03e0a244 ra1347a7 322 322 int port = 2223; 323 323 324 int rc = loc_server_register(NAME, client_connection); 324 async_set_client_connection(client_connection); 325 int rc = loc_server_register(NAME); 325 326 if (rc < 0) { 326 327 fprintf(stderr, NAME ": Unable to register server: %s.\n", -
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
r03e0a244 ra1347a7 85 85 86 86 printf(NAME ": S3C24xx touchscreen driver\n"); 87 88 rc = loc_server_register(NAME, s3c24xx_ts_connection); 87 88 async_set_client_connection(s3c24xx_ts_connection); 89 rc = loc_server_register(NAME); 89 90 if (rc < 0) { 90 91 printf(NAME ": Unable to register driver.\n"); -
uspace/srv/hw/bus/cuda_adb/cuda_adb.c
r03e0a244 ra1347a7 154 154 } 155 155 156 rc = loc_server_register(NAME, cuda_connection); 156 async_set_client_connection(cuda_connection); 157 rc = loc_server_register(NAME); 157 158 if (rc < 0) { 158 159 printf(NAME ": Unable to register server.\n"); -
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
r03e0a244 ra1347a7 79 79 printf(NAME ": S3C24xx on-chip UART driver\n"); 80 80 81 rc = loc_server_register(NAME, s3c24xx_uart_connection); 81 async_set_client_connection(s3c24xx_uart_connection); 82 rc = loc_server_register(NAME); 82 83 if (rc < 0) { 83 84 printf(NAME ": Unable to register server.\n"); -
uspace/srv/net/nil/eth/eth.c
r03e0a244 ra1347a7 802 802 next = tmp; 803 803 } else { 804 nic_send_frame(device->sess, packet_get_data(next), 805 packet_get_data_length(next)); 804 806 next = pq_next(next); 805 807 } 806 808 } while (next); 807 809 808 /* Send packet queue */ 809 if (packet) 810 nic_send_message(device->sess, packet_get_id(packet)); 810 pq_release_remote(eth_globals.net_sess, packet_get_id(packet)); 811 811 812 812 fibril_rwlock_read_unlock(ð_globals.devices_lock); -
uspace/srv/net/nil/nildummy/nildummy.c
r03e0a244 ra1347a7 345 345 services_t sender) 346 346 { 347 packet_t *p; 348 347 349 fibril_rwlock_read_lock(&nildummy_globals.devices_lock); 348 350 … … 354 356 } 355 357 356 /* Send packet queue */ 357 if (packet) 358 nic_send_message(device->sess, packet_get_id(packet)); 358 p = packet; 359 do { 360 nic_send_frame(device->sess, packet_get_data(p), 361 packet_get_data_length(p)); 362 p = pq_next(p); 363 } while (p != NULL); 364 365 pq_release_remote(nildummy_globals.net_sess, packet_get_id(packet)); 359 366 360 367 fibril_rwlock_read_unlock(&nildummy_globals.devices_lock);
Note:
See TracChangeset
for help on using the changeset viewer.