Subversion Repositories HelenOS-historic

Rev

Rev 1353 | Rev 1632 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1353 Rev 1451
Line 26... Line 26...
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
#include <arch/kbd.h>
29
#include <arch/kbd.h>
30
#include <ipc/ipc.h>
30
#include <ipc/ipc.h>
31
#include <key_buffer.h>
-
 
32
 
31
 
33
irq_cmd_t msim_cmds[1] = {
32
irq_cmd_t msim_cmds[1] = {
34
    { CMD_MEM_READ_1, (void *)0xB0000000, 0 }
33
    { CMD_MEM_READ_1, (void *)0xB0000000, 0 }
35
};
34
};
36
 
35
 
Line 43... Line 42...
43
{
42
{
44
    ipc_register_irq(2, &msim_kbd);
43
    ipc_register_irq(2, &msim_kbd);
45
    return 1;
44
    return 1;
46
}
45
}
47
 
46
 
48
int kbd_arch_process(int scan_code)
47
int kbd_arch_process(keybuffer_t *keybuffer, int scan_code)
49
{
48
{
50
    key_buffer_push(scan_code);
49
    keybuffer_push(keybuffer, scan_code);
51
    return  1;
50
    return  1;
52
}
51
}