sgcn.c File Reference

SGCN (Serengeti Console) keyboard port driver. More...

#include <as.h>
#include <ddi.h>
#include <async.h>
#include <kbd.h>
#include <kbd_port.h>
#include <sysinfo.h>
#include <stdio.h>
#include <thread.h>
#include <bool.h>
#include <errno.h>

Go to the source code of this file.

Data Structures

struct  sgcn_buffer_header_t
 SGCN buffer header. More...

Defines

#define POLL_INTERVAL   10000
#define SGCN_BUFFER(type, offset)   ((type *) (sram_virt_addr + sram_buffer_offset + (offset)))
#define SGCN_BUFFER_HEADER   (SGCN_BUFFER(sgcn_buffer_header_t, 0))
 Returns a pointer to the console buffer header.

Functions

int kbd_port_init (void)
 Initializes keyboard handler.
void kbd_port_reclaim (void)
void kbd_port_write (uint8_t data)
void kbd_port_yield (void)
static void sgcn_key_pressed (void)
 Handler of the "key pressed" event.
static void sgcn_thread_impl (void *arg)
 Thread to poll SGCN for keypresses.

Variables

static volatile bool polling_disabled = false
static uintptr_t sram_buffer_offset
 SGCN buffer offset within SGCN.
static uintptr_t sram_virt_addr
 Virtual address mapped to SRAM.


Detailed Description

SGCN (Serengeti Console) keyboard port driver.

Definition in file sgcn.c.


Generated on Thu Jun 2 07:45:55 2011 for HelenOS/USB by  doxygen 1.4.7