1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 13:47:46 +00:00

Kernel+KeyboardSettings: Remove numlock syscall and implement ioctl

This commit is contained in:
Edwin Hoksberg 2021-07-05 21:51:54 +02:00 committed by Gunnar Beutner
parent 385e2ccb66
commit 99328e1038
10 changed files with 21 additions and 38 deletions

View file

@ -137,11 +137,6 @@ int getkeymap(char* name_buffer, size_t name_buffer_size, u32* map, u32* shift_m
__RETURN_WITH_ERRNO(rc, rc, -1);
}
void set_num_lock(bool on)
{
syscall(SC_set_num_lock, on);
}
u16 internet_checksum(const void* ptr, size_t count)
{
u32 checksum = 0;

View file

@ -127,8 +127,6 @@ int serenity_readlink(const char* path, size_t path_length, char* buffer, size_t
int getkeymap(char* name_buffer, size_t name_buffer_size, uint32_t* map, uint32_t* shift_map, uint32_t* alt_map, uint32_t* altgr_map, uint32_t* shift_altgr_map);
int setkeymap(const char* name, const uint32_t* map, uint32_t* const shift_map, const uint32_t* alt_map, const uint32_t* altgr_map, const uint32_t* shift_altgr_map);
void set_num_lock(bool on);
uint16_t internet_checksum(const void* ptr, size_t count);
__END_DECLS