Turnstone Operating System
Loading...
Searching...
No Matches
kbd.h File Reference

keyboard device interface More...

#include <types.h>

Classes

struct  kbd_state_t
 
struct  kbd_report_t
 

Macros

#define ___DEVICE_KBD_H   0
 
#define KBD_DATA_PORT   0x60
 
#define KBD_STATUS_PORT   0x64
 
#define KBD_CMD_PORT   0x64
 
#define KBD_CMD_DISABLE_KBD_PORT   0xAD
 
#define KBD_CMD_DISABLE_MOUSE_PORT   0xA7
 
#define KBD_DEVICE_VENDOR_ID_VIRTIO   0x1AF4
 
#define KBD_DEVICE_DEVICE_ID_VIRTIO   0x1052
 

Typedefs

typedef struct kbd_state_t kbd_state_t
 
typedef struct kbd_report_t kbd_report_t
 

Functions

 _Static_assert (sizeof(kbd_report_t)==10, "kbd_report_t size is not 10 bytes")
 
int8_t kbd_init (void)
 
int8_t dev_virtio_kbd_init (void)
 
int8_t kbd_handle_key (wchar_t key, boolean_t pressed)
 

Detailed Description

keyboard device interface

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Macro Definition Documentation

◆ ___DEVICE_KBD_H

#define ___DEVICE_KBD_H   0

prevent duplicate header error macro