niagara.c File Reference

Niagara 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  input_buffer_t

Defines

#define INPUT_BUFFER_SIZE   ((PAGE_SIZE) - 2 * 8)
#define POLL_INTERVAL   10000

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 niagara_key_pressed (void)
 Called regularly by the polling thread.
static void niagara_thread_impl (void *arg)
 Thread to poll SGCN for keypresses.

Variables

input_buffer_t input_buffer
static uintptr_t input_buffer_addr
 Virtual address mapped to the buffer shared with the kernel counterpart.
static volatile bool polling_disabled = false


Detailed Description

Niagara console keyboard port driver.

Definition in file niagara.c.


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