From 4296f3a8c54731f48030908441de509c09d3cf2e Mon Sep 17 00:00:00 2001 From: Adam Greloch Date: Mon, 7 Oct 2024 10:02:39 +0200 Subject: [PATCH] phoenix: add fbcon ioctls JIRA: RTOS-925 --- include/phoenix/fbcon.h | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 include/phoenix/fbcon.h diff --git a/include/phoenix/fbcon.h b/include/phoenix/fbcon.h new file mode 100644 index 00000000..0cacb635 --- /dev/null +++ b/include/phoenix/fbcon.h @@ -0,0 +1,42 @@ +/* + * Phoenix-RTOS + * + * libphoenix + * + * fbcon.h + * + * Copyright 2024 Phoenix Systems + * Author: Adam Greloch + * + * This file is part of Phoenix-RTOS. + * + * %LICENSE% + */ + +#ifndef _LIBPHOENIX_FBCON_H_ +#define _LIBPHOENIX_FBCON_H_ + + +#include + + +#ifdef __cplusplus +extern "C" { +#endif + +/* ioctls */ +#define FBCONSETMODE _IOV('t', 0x80, int) +#define FBCONGETMODE _IO('t', 0x81) + + +#define FBCON_ENABLED 0x0 +#define FBCON_DISABLED 0x1 +#define FBCON_UNSUPPORTED 0x2 + + +#ifdef __cplusplus +} +#endif + + +#endif