Changeset 676e833 in mainline for uspace/srv/hid
- Timestamp:
- 2017-11-10T14:15:41Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ee98e81
- Parents:
- 7654f3e
- Location:
- uspace/srv/hid/input
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/Makefile
r7654f3e r676e833 40 40 port/adb_mouse.c \ 41 41 port/chardev.c \ 42 port/msim.c \43 42 port/niagara.c \ 44 43 proto/adb.c \ -
uspace/srv/hid/input/input.c
r7654f3e r676e833 641 641 #endif 642 642 #if defined(MACHINE_msim) 643 kbd_add_dev(& msim_port, &stty_ctl);643 kbd_add_dev(&chardev_port, &stty_ctl); 644 644 #endif 645 645 #if defined(UARCH_ppc32) -
uspace/srv/hid/input/kbd_port.h
r7654f3e r676e833 49 49 extern kbd_port_ops_t adb_port; 50 50 extern kbd_port_ops_t chardev_port; 51 extern kbd_port_ops_t msim_port;52 51 extern kbd_port_ops_t niagara_port; 53 52 extern kbd_port_ops_t ns16550_port; -
uspace/srv/hid/input/port/chardev.c
r7654f3e r676e833 61 61 /** S3C24xx UART - Openmoko debug console */ 62 62 "char/s3c24xx_uart", 63 /** Ski console */63 /** Ski console, MSIM console */ 64 64 "devices/\\hw\\console\\a" 65 65 }; … … 75 75 76 76 kbd_dev = kdev; 77 77 again: 78 78 for (i = 0; i < num_devs; i++) { 79 79 rc = loc_service_get_id(in_devs[i], &service_id, 0); … … 83 83 84 84 if (i >= num_devs) { 85 printf("%s: Could not find any suitable input device\n", NAME); 86 return -1; 85 /* XXX This is just a hack. */ 86 printf("%s: No input device found, sleep for retry.\n", NAME); 87 async_usleep(1000 * 1000); 88 goto again; 87 89 } 88 90 … … 113 115 } 114 116 117 printf("%s: Found input device '%s'\n", NAME, in_devs[i]); 115 118 return 0; 116 119 }
Note:
See TracChangeset
for help on using the changeset viewer.