Subversion Repositories HelenOS

Rev

Rev 3944 | Rev 3978 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3944 Rev 3969
Line 35... Line 35...
35
/** @file
35
/** @file
36
 */
36
 */
37
 
37
 
38
#include <ipc/ipc.h>
38
#include <ipc/ipc.h>
39
#include <ipc/services.h>
39
#include <ipc/services.h>
-
 
40
#include <sysinfo.h>
40
#include <stdio.h>
41
#include <stdio.h>
41
#include <unistd.h>
42
#include <unistd.h>
42
#include <stdlib.h>
43
#include <stdlib.h>
43
#include <stdio.h>
44
#include <stdio.h>
44
#include <ipc/ns.h>
45
#include <ipc/ns.h>
Line 64... Line 65...
64
static unsigned mods = KM_NUM_LOCK;
65
static unsigned mods = KM_NUM_LOCK;
65
 
66
 
66
/** Currently pressed lock keys. We track these to tackle autorepeat. */
67
/** Currently pressed lock keys. We track these to tackle autorepeat. */
67
static unsigned lock_keys;
68
static unsigned lock_keys;
68
 
69
 
-
 
70
int cir_service = 0;
-
 
71
int cir_phone = -1;
-
 
72
 
69
void kbd_push_scancode(int scancode)
73
void kbd_push_scancode(int scancode)
70
{
74
{
71
/*  printf("scancode: 0x%x\n", scancode);*/
75
/*  printf("scancode: 0x%x\n", scancode);*/
72
    kbd_ctl_parse_scancode(scancode);
76
    kbd_ctl_parse_scancode(scancode);
73
}
77
}
Line 170... Line 174...
170
{
174
{
171
    printf(NAME ": HelenOS Keyboard service\n");
175
    printf(NAME ": HelenOS Keyboard service\n");
172
   
176
   
173
    ipcarg_t phonead;
177
    ipcarg_t phonead;
174
   
178
   
-
 
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
   
175
    /* Initialize port driver. */
189
    /* Initialize port driver. */
176
    if (kbd_port_init())
190
    if (kbd_port_init())
177
        return -1;
191
        return -1;
178
   
192
   
179
    /* Initialize key buffer */
193
    /* Initialize key buffer */