Subversion Repositories HelenOS

Rev

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

Rev 4223 Rev 4311
Line 99... Line 99...
99
    ((type *) (sgcn_buffer_begin + (offset)))
99
    ((type *) (sgcn_buffer_begin + (offset)))
100
 
100
 
101
/** Returns a pointer to the console buffer header. */
101
/** Returns a pointer to the console buffer header. */
102
#define SGCN_BUFFER_HEADER  (SGCN_BUFFER(sgcn_buffer_header_t, 0))
102
#define SGCN_BUFFER_HEADER  (SGCN_BUFFER(sgcn_buffer_header_t, 0))
103
 
103
 
104
/** defined in drivers/kbd.c */
-
 
105
extern kbd_type_t kbd_type;
-
 
106
 
-
 
107
/** starting address of SRAM, will be set by the init_sram_begin function */
104
/** starting address of SRAM, will be set by the init_sram_begin function */
108
static uintptr_t sram_begin;
105
static uintptr_t sram_begin;
109
 
106
 
110
/**
107
/**
111
 * starting address of the SGCN buffer, will be set by the
108
 * starting address of the SGCN buffer, will be set by the
Line 351... Line 348...
351
 */
348
 */
352
indev_t *sgcnin_init(void)
349
indev_t *sgcnin_init(void)
353
{
350
{
354
    sgcn_buffer_begin_init();
351
    sgcn_buffer_begin_init();
355
 
352
 
356
    kbd_type = KBD_SGCN;
-
 
357
 
-
 
358
    sysinfo_set_item_val("kbd", NULL, true);
353
    sysinfo_set_item_val("kbd", NULL, true);
359
    sysinfo_set_item_val("kbd.type", NULL, KBD_SGCN);
-
 
360
 
354
 
361
    thread_t *t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", true);
355
    thread_t *t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", true);
362
    if (!t)
356
    if (!t)
363
        panic("Cannot create kkbdpoll.");
357
        panic("Cannot create kkbdpoll.");
364
    thread_ready(t);
358
    thread_ready(t);