mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01:00
There are currently two places with VESA blanking constants definitions: fb.h and console.h. Extract/unify the two to a separate header (vesa.h). Given the fb's is in an uapi header, create the common header in uapi too. Note that instead of macros, an enum (vesa_blank_mode) is created. But the macros are kept too (they now expand to the enum constants), just in case someone in userspace performs some #ifdeffery. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Cc: Helge Deller <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Thomas Zimmermann <[email protected]> Tested-by: Helge Deller <[email protected]> # parisc STI console Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
19 lines
520 B
C
19 lines
520 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef _UAPI_LINUX_VESA_H
|
|
#define _UAPI_LINUX_VESA_H
|
|
|
|
/* VESA Blanking Levels */
|
|
enum vesa_blank_mode {
|
|
VESA_NO_BLANKING = 0,
|
|
#define VESA_NO_BLANKING VESA_NO_BLANKING
|
|
VESA_VSYNC_SUSPEND = 1,
|
|
#define VESA_VSYNC_SUSPEND VESA_VSYNC_SUSPEND
|
|
VESA_HSYNC_SUSPEND = 2,
|
|
#define VESA_HSYNC_SUSPEND VESA_HSYNC_SUSPEND
|
|
VESA_POWERDOWN = VESA_VSYNC_SUSPEND | VESA_HSYNC_SUSPEND,
|
|
#define VESA_POWERDOWN VESA_POWERDOWN
|
|
VESA_BLANK_MAX = VESA_POWERDOWN,
|
|
};
|
|
|
|
#endif
|