Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/port/chardev.c

    rf9b2cb4c r7aa94304  
    5959/** List of devices to try connecting to. */
    6060static const char *in_devs[] = {
    61         "char/s3c24xx_uart"
     61        /** S3C24xx UART - Openmoko debug console */
     62        "char/s3c24xx_uart",
     63        /** Ski console, MSIM console, Sun4v console */
     64        "devices/\\hw\\console\\a"
    6265};
    6366
     
    7275       
    7376        kbd_dev = kdev;
    74        
     77again:
    7578        for (i = 0; i < num_devs; i++) {
    7679                rc = loc_service_get_id(in_devs[i], &service_id, 0);
     
    8083       
    8184        if (i >= num_devs) {
    82                 printf("%s: Could not find any suitable input device\n", NAME);
    83                 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;
    8489        }
    8590       
     
    110115        }
    111116       
     117        printf("%s: Found input device '%s'\n", NAME, in_devs[i]);
    112118        return 0;
    113119}
Note: See TracChangeset for help on using the changeset viewer.