MentOS  0.8.0
The Mentoring Operating System
keyboard.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include "ring_buffer.h"
14 #include "kernel.h"
15 
16 DECLARE_FIXED_SIZE_RING_BUFFER(int, scancode, 256, -1)
17 
18 void keyboard_isr(pt_regs *f);
21 
23 void keyboard_enable(void);
24 
26 void keyboard_disable(void);
27 
29 void keyboard_update_leds(void);
30 
33 int keyboard_pop_back(void);
34 
37 int keyboard_back(void);
38 
41 int keyboard_front(void);
42 
45 int keyboard_initialize(void);
46 
49 int keyboard_finalize(void);
50 
int keyboard_finalize(void)
De-initializes the keyboard drivers.
Definition: keyboard.c:320
int keyboard_back(void)
Gets a char from the back of the buffer.
Definition: keyboard.c:91
void keyboard_update_leds(void)
Leds handler.
Definition: keyboard.c:283
int keyboard_pop_back(void)
Gets and removes a char from the back of the buffer.
Definition: keyboard.c:78
void keyboard_enable(void)
Enable the keyboard.
Definition: keyboard.c:295
int keyboard_front(void)
Gets a char from the front of the buffer.
Definition: keyboard.c:104
int keyboard_initialize(void)
Initializes the keyboard drivers.
Definition: keyboard.c:305
void keyboard_isr(pt_regs *f)
The interrupt service routine of the keyboard.
Definition: keyboard.c:117
void keyboard_disable(void)
Disable the keyboard.
Definition: keyboard.c:300
Kernel generic data structure and functions.
#define DECLARE_FIXED_SIZE_RING_BUFFER(type, name, length, init)
Declares a fixed-size ring-buffer.
Definition: ring_buffer.h:9
Interrupt stack frame.
Definition: kernel.h:24