PatchworkOS  3984a1d
A non-POSIX operating system.
Loading...
Searching...
No Matches
PS/2 Keyboard Driver

PS/2 Keyboard Driver. More...

Collaboration diagram for PS/2 Keyboard Driver:

Detailed Description

PS/2 Keyboard Driver.

Data Structures

struct  ps2_kbd_t
 PS/2 keyboard private data. More...
 

Enumerations

enum  ps2_kbd_flags_t { PS2_KBD_NONE = 0 , PS2_KBD_EXTENDED = 1 << 0 , PS2_KBD_RELEASE = 1 << 1 }
 PS/2 keyboard flags. More...
 

Functions

uint64_t ps2_kbd_init (ps2_device_info_t *info)
 Initialize a PS/2 keyboard device.
 
uint64_t ps2_kbd_irq_register (ps2_device_info_t *info)
 Register the IRQ handler for a PS/2 keyboard device.
 
void ps2_kbd_deinit (ps2_device_info_t *info)
 Deinitialize a PS/2 keyboard device.
 

Enumeration Type Documentation

◆ ps2_kbd_flags_t

PS/2 keyboard flags.

Enumerator
PS2_KBD_NONE 
PS2_KBD_EXTENDED 
PS2_KBD_RELEASE 

Definition at line 19 of file ps2_kbd.h.

Function Documentation

◆ ps2_kbd_init()

uint64_t ps2_kbd_init ( ps2_device_info_t info)

Initialize a PS/2 keyboard device.

Parameters
infoDevice information structure.
Returns
On success, 0. On failure, ERR.

Definition at line 51 of file ps2_kbd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ps2_kbd_irq_register()

uint64_t ps2_kbd_irq_register ( ps2_device_info_t info)

Register the IRQ handler for a PS/2 keyboard device.

Parameters
infoDevice information structure.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 78 of file ps2_kbd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ps2_kbd_deinit()

void ps2_kbd_deinit ( ps2_device_info_t info)

Deinitialize a PS/2 keyboard device.

Parameters
infoDevice information structure.

Definition at line 97 of file ps2_kbd.c.

Here is the call graph for this function:
Here is the caller graph for this function: