Changeset 3e5a814 in mainline for uspace/srv/kbd/generic/kbd.c


Ignore:
Timestamp:
2009-02-25T21:32:18Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b1de7a
Parents:
f542825
Message:

Add simple userspace FHC driver.
Modify the z8530 userspace driver
to send BUS_CLEAR_INTERRUPT
notification to the FHC driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/kbd/generic/kbd.c

    rf542825 r3e5a814  
    3838#include <ipc/ipc.h>
    3939#include <ipc/services.h>
     40#include <sysinfo.h>
    4041#include <stdio.h>
    4142#include <unistd.h>
     
    6667/** Currently pressed lock keys. We track these to tackle autorepeat. */
    6768static unsigned lock_keys;
     69
     70int cir_service = 0;
     71int cir_phone = -1;
    6872
    6973void kbd_push_scancode(int scancode)
     
    173177        ipcarg_t phonead;
    174178       
     179        if (sysinfo_value("kbd.cir.fhc") == 1)
     180                cir_service = SERVICE_FHC;
     181       
     182        if (cir_service) {
     183                while (cir_phone < 0) {
     184                        cir_phone = ipc_connect_me_to(PHONE_NS, cir_service,
     185                            0, 0);
     186                }
     187        }
     188       
    175189        /* Initialize port driver. */
    176190        if (kbd_port_init())
Note: See TracChangeset for help on using the changeset viewer.