Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
atakeyb.c File Reference
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/errno.h>
#include <linux/keyboard.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/kd.h>
#include <linux/random.h>
#include <linux/init.h>
#include <linux/kbd_kern.h>
#include <asm/atariints.h>
#include <asm/atarihw.h>
#include <asm/atarikb.h>
#include <asm/atari_joystick.h>
#include <asm/irq.h>

Go to the source code of this file.

Data Structures

struct  keyboard_state
 

Macros

#define BREAK_MASK   (0x80)
 
#define IS_SYNC_CODE(sc)   ((sc) >= 0x04 && (sc) <= 0xfb)
 

Typedefs

typedef enum kb_state_t KB_STATE_T
 
typedef struct keyboard_state KEYBOARD_STATE
 

Enumerations

enum  kb_state_t {
  KEYBOARD, AMOUSE, RMOUSE, JOYSTICK,
  CLOCK, RESYNC
}
 

Functions

 EXPORT_SYMBOL (atari_input_keyboard_interrupt_hook)
 
 EXPORT_SYMBOL (atari_input_mouse_interrupt_hook)
 
void ikbd_write (const char *str, int len)
 
void ikbd_reset (void)
 
void ikbd_mouse_button_action (int mode)
 
void ikbd_mouse_rel_pos (void)
 
 EXPORT_SYMBOL (ikbd_mouse_rel_pos)
 
void ikbd_mouse_abs_pos (int xmax, int ymax)
 
void ikbd_mouse_kbd_mode (int dx, int dy)
 
void ikbd_mouse_thresh (int x, int y)
 
 EXPORT_SYMBOL (ikbd_mouse_thresh)
 
void ikbd_mouse_scale (int x, int y)
 
void ikbd_mouse_pos_get (int *x, int *y)
 
void ikbd_mouse_pos_set (int x, int y)
 
void ikbd_mouse_y0_bot (void)
 
void ikbd_mouse_y0_top (void)
 
 EXPORT_SYMBOL (ikbd_mouse_y0_top)
 
void ikbd_resume (void)
 
void ikbd_mouse_disable (void)
 
 EXPORT_SYMBOL (ikbd_mouse_disable)
 
void ikbd_pause (void)
 
void ikbd_joystick_event_on (void)
 
void ikbd_joystick_event_off (void)
 
void ikbd_joystick_get_state (void)
 
void ikbd_joystick_disable (void)
 
void ikbd_clock_set (int year, int month, int day, int hour, int minute, int second)
 
void ikbd_clock_get (int *year, int *month, int *day, int *hour, int *minute, int second)
 
void ikbd_mem_write (int address, int size, char *data)
 
void ikbd_mem_read (int address, char data[6])
 
void ikbd_exec (int address)
 
void atari_kbd_leds (unsigned int leds)
 
int atari_keyb_init (void)
 
 EXPORT_SYMBOL_GPL (atari_keyb_init)
 

Variables

void(* atari_MIDI_interrupt_hook )(void)
 
void(* atari_input_keyboard_interrupt_hook )(unsigned char, char)
 
void(* atari_input_mouse_interrupt_hook )(char *)
 
KEYBOARD_STATE kb_state
 

Macro Definition Documentation

#define BREAK_MASK   (0x80)

Definition at line 55 of file atakeyb.c.

#define IS_SYNC_CODE (   sc)    ((sc) >= 0x04 && (sc) <= 0xfb)

Definition at line 107 of file atakeyb.c.

Typedef Documentation

typedef enum kb_state_t KB_STATE_T

Enumeration Type Documentation

enum kb_state_t
Enumerator:
KEYBOARD 
AMOUSE 
RMOUSE 
JOYSTICK 
CLOCK 
RESYNC 

Definition at line 103 of file atakeyb.c.

Function Documentation

void atari_kbd_leds ( unsigned int  leds)

Definition at line 548 of file atakeyb.c.

int atari_keyb_init ( void  )

Definition at line 564 of file atakeyb.c.

EXPORT_SYMBOL ( atari_input_mouse_interrupt_hook  )
EXPORT_SYMBOL ( ikbd_mouse_rel_pos  )
EXPORT_SYMBOL ( ikbd_mouse_thresh  )
EXPORT_SYMBOL ( ikbd_mouse_y0_top  )
EXPORT_SYMBOL ( ikbd_mouse_disable  )
EXPORT_SYMBOL_GPL ( atari_keyb_init  )
void ikbd_clock_get ( int year,
int month,
int day,
int hour,
int minute,
int  second 
)

Definition at line 514 of file atakeyb.c.

void ikbd_clock_set ( int  year,
int  month,
int  day,
int  hour,
int  minute,
int  second 
)

Definition at line 506 of file atakeyb.c.

void ikbd_exec ( int  address)

Definition at line 538 of file atakeyb.c.

void ikbd_joystick_disable ( void  )

Definition at line 498 of file atakeyb.c.

void ikbd_joystick_event_off ( void  )

Definition at line 467 of file atakeyb.c.

void ikbd_joystick_event_on ( void  )

Definition at line 459 of file atakeyb.c.

void ikbd_joystick_get_state ( void  )

Definition at line 475 of file atakeyb.c.

void ikbd_mem_read ( int  address,
char  data[6] 
)

Definition at line 528 of file atakeyb.c.

void ikbd_mem_write ( int  address,
int  size,
char data 
)

Definition at line 522 of file atakeyb.c.

void ikbd_mouse_abs_pos ( int  xmax,
int  ymax 
)

Definition at line 366 of file atakeyb.c.

void ikbd_mouse_button_action ( int  mode)

Definition at line 349 of file atakeyb.c.

void ikbd_mouse_disable ( void  )

Definition at line 442 of file atakeyb.c.

void ikbd_mouse_kbd_mode ( int  dx,
int  dy 
)

Definition at line 374 of file atakeyb.c.

void ikbd_mouse_pos_get ( int x,
int y 
)

Definition at line 399 of file atakeyb.c.

void ikbd_mouse_pos_set ( int  x,
int  y 
)

Definition at line 409 of file atakeyb.c.

void ikbd_mouse_rel_pos ( void  )

Definition at line 357 of file atakeyb.c.

void ikbd_mouse_scale ( int  x,
int  y 
)

Definition at line 391 of file atakeyb.c.

void ikbd_mouse_thresh ( int  x,
int  y 
)

Definition at line 382 of file atakeyb.c.

void ikbd_mouse_y0_bot ( void  )

Definition at line 417 of file atakeyb.c.

void ikbd_mouse_y0_top ( void  )

Definition at line 425 of file atakeyb.c.

void ikbd_pause ( void  )

Definition at line 451 of file atakeyb.c.

void ikbd_reset ( void  )

Definition at line 336 of file atakeyb.c.

void ikbd_resume ( void  )

Definition at line 434 of file atakeyb.c.

void ikbd_write ( const char str,
int  len 
)

Definition at line 320 of file atakeyb.c.

Variable Documentation

void(* atari_input_keyboard_interrupt_hook)(unsigned char, char)

Definition at line 40 of file atakeyb.c.

void(* atari_input_mouse_interrupt_hook)(char *)

Definition at line 42 of file atakeyb.c.

void(* atari_MIDI_interrupt_hook)(void)

Definition at line 38 of file atakeyb.c.

KEYBOARD_STATE kb_state

Definition at line 115 of file atakeyb.c.