aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/dev_fb.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-12-07 18:45:45 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-12-07 18:45:45 +0100
commit1508f45368a309a3b1196a342b3d64ce7be4cc43 (patch)
tree338a9ccc4e9ef28883d15256f8835cd0e0916e3a /sys/linux/dev_fb.txt
parent43c501b98320947b3f6a89d601001589cb403072 (diff)
sys/linux: refine few framebuffer/kbd ioctls
Diffstat (limited to 'sys/linux/dev_fb.txt')
-rw-r--r--sys/linux/dev_fb.txt35
1 files changed, 21 insertions, 14 deletions
diff --git a/sys/linux/dev_fb.txt b/sys/linux/dev_fb.txt
index d395f4bc1..a63bb05b5 100644
--- a/sys/linux/dev_fb.txt
+++ b/sys/linux/dev_fb.txt
@@ -4,6 +4,7 @@
include <uapi/asm/ioctl.h>
include <uapi/linux/fcntl.h>
include <uapi/linux/fb.h>
+include <uapi/linux/videodev2.h>
resource fd_fb[fd]
@@ -26,23 +27,23 @@ ioctl$FBIOBLANK(fd fd_fb, cmd const[FBIOBLANK], arg intptr[FB_BLANK_UNBLANK:FB_B
ioctl$FBIO_WAITFORVSYNC(fd fd_fb, cmd const[FBIO_WAITFORVSYNC], arg const[0])
fb_var_screeninfo {
- xres int32
- yres int32
- xres_virtual int32
- yres_virtual int32
+ xres flags[fb_xres, int32]
+ yres flags[fb_yres, int32]
+ xres_virtual flags[fb_xres, int32]
+ yres_virtual flags[fb_yres, int32]
xoffset int32
yoffset int32
bits_per_pixel flags[fb_bpp, int32]
- grayscale int32
+ grayscale int32[0:2]
red fb_bitfield
green fb_bitfield
blue fb_bitfield
transp fb_bitfield
- nonstd int32
+ nonstd flags[fb_nonstd, int32]
activate flags[fb_activate, int32]
height int32
width int32
- accel_flags int32
+ accel_flags flags[fb_accel_flags, int32]
pixclock int32
left_margin int32
right_margin int32
@@ -50,16 +51,22 @@ fb_var_screeninfo {
lower_margin int32
hsync_len int32
vsync_len int32
- sync int32
+ sync flags[fb_sync, int32]
vmode flags[fb_mode, int32]
- rotate int32
- colorspace int32
+ rotate flags[fb_rotate, int32]
+ colorspace flags[v4l2_colorspace, int32]
reserved array[const[0, int32], 4]
}
fb_activate = FB_ACTIVATE_NOW, FB_ACTIVATE_NXTOPEN, FB_ACTIVATE_TEST, FB_ACTIVATE_VBL, FB_ACTIVATE_ALL, FB_ACTIVATE_FORCE, FB_ACTIVATE_INV_MODE
-fb_mode = FB_VMODE_NONINTERLACED, FB_VMODE_INTERLACED, FB_VMODE_DOUBLE, FB_VMODE_ODD_FLD_FIRST
-fb_bpp = 1, 2, 8, 15, 16, 24, 32
+fb_mode = FB_VMODE_NONINTERLACED, FB_VMODE_INTERLACED, FB_VMODE_DOUBLE, FB_VMODE_ODD_FLD_FIRST, FB_VMODE_YWRAP, FB_VMODE_SMOOTH_XPAN, FB_VMODE_CONUPDATE
+fb_bpp = 0, 1, 2, 4, 8, 15, 16, 24, 32
+fb_nonstd = 0, FB_NONSTD_HAM, FB_NONSTD_REV_PIX_IN_B
+fb_sync = 0, FB_SYNC_HOR_HIGH_ACT, FB_SYNC_VERT_HIGH_ACT, FB_SYNC_EXT, FB_SYNC_COMP_HIGH_ACT, FB_SYNC_BROADCAST, FB_SYNC_ON_GREEN
+fb_rotate = FB_ROTATE_UR, FB_ROTATE_CW, FB_ROTATE_UD, FB_ROTATE_CCW
+fb_accel_flags = 0, FB_ACCELF_TEXT
+fb_xres = 16, 32, 48, 64, 96, 128, 160, 240, 320, 400, 480, 640, 768, 800, 854, 960, 1024, 1280, 1360, 1366, 1400, 1600, 1680, 1920, 2048, 2560, 3200, 3840, 4096, 8192, 15360
+fb_yres = 16, 32, 48, 64, 128, 120, 160, 240, 320, 480, 576, 600, 640, 768, 800, 864, 900, 1024, 1152, 1200, 1536, 1600, 2048, 2400, 4096, 8192
type fb_cmap_user[DIR] {
start int32
@@ -78,8 +85,8 @@ fb_bitfield {
}
fb_con2fbmap {
- console int32
- framebuffer int32
+ console int32[0:63]
+ framebuffer int32[0:2]
}
define FB_VAR_SCREENINFO_SIZE sizeof(struct fb_var_screeninfo)