|
PatchworkOS
|
#include <kernel/drivers/hpet.h>#include <kernel/drivers/ps2/ps2.h>#include <kernel/drivers/ps2/ps2_kbd.h>#include <kernel/drivers/ps2/ps2_mouse.h>#include <kernel/acpi/tables.h>#include <kernel/log/log.h>#include <kernel/log/panic.h>#include <kernel/sched/timer.h>#include <errno.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | PS2_KNOWN_DEVICE_AMOUNT (sizeof(knownDevices) / sizeof(knownDevices[0])) |
Variables | |
| static bool | isDualChannel = false |
| static ps2_device_info_t | devices [PS2_DEV_COUNT] = {0} |
| static const ps2_device_info_t | knownDevices [] |
| #define PS2_KNOWN_DEVICE_AMOUNT (sizeof(knownDevices) / sizeof(knownDevices[0])) |
|
static |
Definition at line 146 of file ps2.c.
References ERR, isDualChannel, LOG_ERR, LOG_INFO, PS2_CFG_SECOND_CLOCK_DISABLE, PS2_CMD_AND_READ, PS2_CMD_CFG_READ, PS2_CMD_SECOND_DISABLE, PS2_CMD_SECOND_ENABLE, and ps2_send_cmd().
Referenced by ps2_init().
|
static |
Definition at line 226 of file ps2.c.
References devices, EOK, ERR, errno, ETIMEDOUT, ps2_device_info_t::firstIdByte, hpet_wait(), info, knownDevices, LOG_ERR, LOG_INFO, ps2_device_info_t::name, fb_info_t::name, PS2_DEV_CMD, PS2_DEV_CMD_AND_READ, PS2_DEV_CMD_DISABLE_SCANNING, PS2_DEV_CMD_ENABLE_SCANNING, PS2_DEV_CMD_IDENTIFY, PS2_DEV_CMD_RESET, PS2_DEV_RESPONSE_BAT_OK, PS2_DEV_TYPE_KEYBOARD, PS2_DEV_TYPE_UNKNOWN, ps2_device_to_string(), ps2_drain(), ps2_kbd_init(), PS2_KNOWN_DEVICE_AMOUNT, PS2_LARGE_DELAY, ps2_mouse_init(), PS2_READ, and ps2_device_info_t::type.
Referenced by ps2_init().
|
static |
Definition at line 30 of file ps2.c.
References PS2_DEV_TEST_CLOCK_STUCK_HIGH, PS2_DEV_TEST_CLOCK_STUCK_LOW, PS2_DEV_TEST_DATA_STUCK_HIGH, PS2_DEV_TEST_DATA_STUCK_LOW, and PS2_DEV_TEST_PASS.
Referenced by ps2_devices_test().
|
static |
Definition at line 62 of file ps2.c.
References PS2_DEV_FIRST, and PS2_DEV_SECOND.
Referenced by ps2_device_init(), and ps2_send_device_cmd().
|
static |
Definition at line 75 of file ps2.c.
References PS2_DEV_TYPE_KEYBOARD, PS2_DEV_TYPE_MOUSE_5BUTTON, PS2_DEV_TYPE_MOUSE_SCROLL, PS2_DEV_TYPE_MOUSE_STANDARD, and PS2_DEV_TYPE_UNKNOWN.
|
static |
Definition at line 195 of file ps2.c.
References ps2_device_info_t::active, devices, ERR, isDualChannel, LOG_WARN, PS2_CMD_AND_READ, PS2_CMD_FIRST_TEST, PS2_CMD_SECOND_TEST, PS2_DEV_TEST_PASS, and ps2_device_test_response_to_string().
Referenced by ps2_init().
|
static |
Definition at line 115 of file ps2.c.
References ERR, LOG_ERR, PS2_CMD_AND_READ, PS2_CMD_AND_WRITE, PS2_CMD_CFG_READ, PS2_CMD_CFG_WRITE, PS2_CMD_SELF_TEST, PS2_SELF_TEST_PASS, and ps2_self_test_response_to_string().
Referenced by ps2_init().
|
static |
Definition at line 49 of file ps2.c.
References PS2_SELF_TEST_FAIL, and PS2_SELF_TEST_PASS.
Referenced by ps2_self_test().
|
static |
Definition at line 94 of file ps2.c.
References ERR, LOG_DEBUG, LOG_ERR, PS2_CFG_FIRST_CLOCK_DISABLE, PS2_CFG_FIRST_IRQ, PS2_CFG_FIRST_TRANSLATION, PS2_CFG_SECOND_IRQ, PS2_CMD_AND_READ, PS2_CMD_AND_WRITE, PS2_CMD_CFG_READ, and PS2_CMD_CFG_WRITE.
Referenced by ps2_init().
|
static |
Definition at line 15 of file ps2.c.
Referenced by ps2_device_init(), ps2_devices_test(), and ps2_init().
Definition at line 14 of file ps2.c.
Referenced by ps2_check_if_dual_channel(), and ps2_devices_test().
|
static |
Definition at line 18 of file ps2.c.
Referenced by ps2_device_init().