From 08319ef4c7d4e757a7a58e5874727fed95e60720 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Thu, 20 Feb 2025 02:09:09 +0200 Subject: [PATCH] docs(syscalls): add documentation for FBIOGET_SCREEN_INFO ioctl Signed-off-by: EnderIce2 --- Drivers/include/syscalls.h | 11 +++++++++++ Userspace/libc/include/fennix/syscalls.h | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/Drivers/include/syscalls.h b/Drivers/include/syscalls.h index 157a9b50..960229e6 100644 --- a/Drivers/include/syscalls.h +++ b/Drivers/include/syscalls.h @@ -540,6 +540,17 @@ typedef struct FramebufferScreenInfo __UINT32_TYPE__ Size; } FramebufferScreenInfo; +/** + * @brief Get framebuffer screen info + * + * @code + * struct FramebufferScreenInfo info; + * int ioctl(fd, FBIOGET_SCREEN_INFO, &info); + * @endcode + * + * @param fd File descriptor of the framebuffer device + * @param info Pointer to the framebuffer screen info structure + */ #define FBIOGET_SCREEN_INFO 0xf0 /** diff --git a/Userspace/libc/include/fennix/syscalls.h b/Userspace/libc/include/fennix/syscalls.h index 157a9b50..960229e6 100644 --- a/Userspace/libc/include/fennix/syscalls.h +++ b/Userspace/libc/include/fennix/syscalls.h @@ -540,6 +540,17 @@ typedef struct FramebufferScreenInfo __UINT32_TYPE__ Size; } FramebufferScreenInfo; +/** + * @brief Get framebuffer screen info + * + * @code + * struct FramebufferScreenInfo info; + * int ioctl(fd, FBIOGET_SCREEN_INFO, &info); + * @endcode + * + * @param fd File descriptor of the framebuffer device + * @param info Pointer to the framebuffer screen info structure + */ #define FBIOGET_SCREEN_INFO 0xf0 /**