OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [libdev/] [include/] [libdev/] [kmi.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
 
2
#ifndef __KMI_H__
3
#define __KMI_H__
4
 
5
/*
6
 * Current keyboard state
7
 */
8
struct keyboard_state{
9
        int keyup;
10
        int shift;
11
        int caps_lock;
12
};
13
 
14
/* Common functions */
15
void kmi_rx_irq_enable(unsigned long base);
16
int kmi_data_read(unsigned long base);
17
 
18
/* Keyboard specific calls */
19
char kmi_keyboard_read(unsigned long base, struct keyboard_state *state);
20
void kmi_keyboard_init(unsigned long base, unsigned int div);
21
 
22
/* Mouse specific calls */
23
void kmi_mouse_enable(unsigned long base);
24
void kmi_mouse_init(unsigned long base, unsigned int div);
25
 
26
#endif /* __KMI_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.