pccons.c File Reference

#include <core.h>
#include <libpic.h>
#include <libtimer.h>
#include "ttyvar.h"
#include "libtty.h"
#include "pccons.h"
#include "pckbdreg.h"

Data Structures

struct  scan_def

Defines

#define DEBUG_KEYS   1
#define PCCONS_REAL_BS   1
#define SCROLL   0x0001
#define NUM   0x0002
#define CAPS   0x0004
#define SHIFT   0x0008
#define CTL   0x0010
#define ASCII   0x0020
#define ALT   0x0080
#define FUNC   0x0100
#define KP   0x0200
#define NONE   0x0400
#define CODE_SIZE   4
#define RIGHT_SHIFT   0x36
#define LEFT_SHIFT   0x2a
#define LEFT_CTRL   0x1d
#define NBPROCDEFS   10

Functions

void do_kbd_except ()
void kbd_except ()
void create_kbd ()
int pccons_init (t_ttydev *ttydev, t_tty *tty, void **ttydev_data)
void pccons_destroy (void *ttydev_data)
ssize_t pccons_write (void *ttydev_data, char *buf, int len)
int vcons_init (t_ttydev *ttydev, t_tty *tty, void **ttydev_data)
void vcons_destroy (void *ttydev_data)
int vcons_write (void *ttydev_data, char *buf, int len)
void pccons_class_init ()
int lpscmd (int argc, char **argv)
int debug_key (char c)

Variables

t_tty_info info
t_tty ttys [MAXTTY]
t_ttydev ttydevs [MAXTTYDEV]
t_ttykbd_tty = NULL
t_coniopccons_conio = NULL
static scan_def scan_codes []

Define Documentation

#define ALT   0x0080
 

#define ASCII   0x0020
 

#define CAPS   0x0004
 

#define CODE_SIZE   4
 

#define CTL   0x0010
 

#define DEBUG_KEYS   1
 

#define FUNC   0x0100
 

#define KP   0x0200
 

#define LEFT_CTRL   0x1d
 

#define LEFT_SHIFT   0x2a
 

#define NBPROCDEFS   10
 

#define NONE   0x0400
 

#define NUM   0x0002
 

#define PCCONS_REAL_BS   1
 

#define RIGHT_SHIFT   0x36
 

#define SCROLL   0x0001
 

#define SHIFT   0x0008
 


Function Documentation

void create_kbd void   ) 
 

allocate a task for kbd

int debug_key char  c  ) 
 

void do_kbd_except void   ) 
 

void kbd_except void   ) 
 

int lpscmd int  argc,
char **  argv
 

void pccons_class_init void   ) 
 

void pccons_destroy void *  ttydev_data  ) 
 

int pccons_init t_ttydev ttydev,
t_tty tty,
void **  ttydev_data
 

ssize_t pccons_write void *  ttydev_data,
char *  buf,
int  len
 

void vcons_destroy void *  ttydev_data  ) 
 

int vcons_init t_ttydev ttydev,
t_tty tty,
void **  ttydev_data
 

int vcons_write void *  ttydev_data,
char *  buf,
int  len
 


Variable Documentation

t_tty_info info
 

t_tty* kbd_tty = NULL
 

t_conio* pccons_conio = NULL
 

scan_def scan_codes[] [static]
 

t_ttydev ttydevs[MAXTTYDEV]
 

t_tty ttys[MAXTTY]
 


Generated on Wed May 24 23:06:04 2006 for LSE/OS by  doxygen 1.4.6