Ignore:
File:
1 edited

Legend:

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

    rfeeac0d rc928bb7  
    440440        kbd_add_dev(&msim_port, &stty_ctl);
    441441#endif
     442#if (defined(MACHINE_lgxemul) || defined(MACHINE_bgxemul)) && defined(CONFIG_FB)
     443        kbd_add_dev(&gxemul_port, &gxe_fb_ctl);
     444#endif
     445#if defined(MACHINE_lgxemul) || defined(MACHINE_bgxemul) && !defined(CONFIG_FB)
     446        kbd_add_dev(&gxemul_port, &stty_ctl);
     447#endif
    442448#if defined(UARCH_ppc32)
    443449        kbd_add_dev(&adb_port, &apple_ctl);
     
    470476{
    471477        /* For each keyboard device */
    472         list_foreach(kbd_devs, kbd_devs, kbd_dev_t, kdev) {
     478        list_foreach(kbd_devs, kdev_link) {
     479                kbd_dev_t *kdev = list_get_instance(kdev_link, kbd_dev_t,
     480                    kbd_devs);
     481               
    473482                /* Yield port */
    474483                if (kdev->port_ops != NULL)
     
    480489{
    481490        /* For each keyboard device */
    482         list_foreach(kbd_devs, kbd_devs, kbd_dev_t, kdev) {
     491        list_foreach(kbd_devs, kdev_link) {
     492                kbd_dev_t *kdev = list_get_instance(kdev_link, kbd_dev_t,
     493                    kbd_devs);
     494               
    483495                /* Reclaim port */
    484496                if (kdev->port_ops != NULL)
     
    515527               
    516528                /* Determine whether we already know this device. */
    517                 list_foreach(kbd_devs, kbd_devs, kbd_dev_t, kdev) {
     529                list_foreach(kbd_devs, kdev_link) {
     530                        kbd_dev_t *kdev = list_get_instance(kdev_link,
     531                            kbd_dev_t, kbd_devs);
    518532                        if (kdev->svc_id == svcs[i]) {
    519533                                already_known = true;
     
    566580               
    567581                /* Determine whether we already know this device. */
    568                 list_foreach(mouse_devs, mouse_devs, mouse_dev_t, mdev) {
     582                list_foreach(mouse_devs, mdev_link) {
     583                        mouse_dev_t *mdev = list_get_instance(mdev_link,
     584                            mouse_dev_t, mouse_devs);
    569585                        if (mdev->svc_id == svcs[i]) {
    570586                                already_known = true;
Note: See TracChangeset for help on using the changeset viewer.