aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/amd64.go
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/gen/amd64.go
parent43c501b98320947b3f6a89d601001589cb403072 (diff)
sys/linux: refine few framebuffer/kbd ioctls
Diffstat (limited to 'sys/linux/gen/amd64.go')
-rw-r--r--sys/linux/gen/amd64.go146
1 files changed, 107 insertions, 39 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 255bedb5e..05b82e42d 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -4930,27 +4930,27 @@ var structDescs_amd64 = []*KeyedStruct{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "transp", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2, ArgDir: 1}}}}},
}}},
{Key: StructKey{Name: "fb_con2fbmap"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fb_con2fbmap", TypeSize: 8}, Fields: []Type{
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "console", TypeSize: 4}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "framebuffer", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "console", TypeSize: 4}}, Kind: 1, RangeEnd: 63},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "framebuffer", TypeSize: 4}}, Kind: 1, RangeEnd: 2},
}}},
{Key: StructKey{Name: "fb_var_screeninfo"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fb_var_screeninfo", TypeSize: 160}, Fields: []Type{
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "xres", TypeSize: 4}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "yres", TypeSize: 4}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "xres_virtual", TypeSize: 4}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "yres_virtual", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_xres", FldName: "xres", TypeSize: 4}}, Vals: []uint64{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}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_yres", FldName: "yres", TypeSize: 4}}, Vals: []uint64{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}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_xres", FldName: "xres_virtual", TypeSize: 4}}, Vals: []uint64{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}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_yres", FldName: "yres_virtual", TypeSize: 4}}, Vals: []uint64{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}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "xoffset", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "yoffset", TypeSize: 4}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_bpp", FldName: "bits_per_pixel", TypeSize: 4}}, Vals: []uint64{1, 2, 8, 15, 16, 24, 32}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "grayscale", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_bpp", FldName: "bits_per_pixel", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4, 8, 15, 16, 24, 32}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "grayscale", TypeSize: 4}}, Kind: 1, RangeEnd: 2},
&StructType{Key: StructKey{Name: "fb_bitfield"}, FldName: "red"},
&StructType{Key: StructKey{Name: "fb_bitfield"}, FldName: "green"},
&StructType{Key: StructKey{Name: "fb_bitfield"}, FldName: "blue"},
&StructType{Key: StructKey{Name: "fb_bitfield"}, FldName: "transp"},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "nonstd", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_nonstd", FldName: "nonstd", TypeSize: 4}}, Vals: []uint64{0, 1, 2}, BitMask: true},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_activate", FldName: "activate", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 16, 64, 128, 256}, BitMask: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "height", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "width", TypeSize: 4}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "accel_flags", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_accel_flags", FldName: "accel_flags", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pixclock", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "left_margin", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "right_margin", TypeSize: 4}}},
@@ -4958,10 +4958,10 @@ var structDescs_amd64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "lower_margin", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "hsync_len", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vsync_len", TypeSize: 4}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sync", TypeSize: 4}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_mode", FldName: "vmode", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4}, BitMask: true},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "rotate", TypeSize: 4}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "colorspace", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_sync", FldName: "sync", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4, 8, 16, 32}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_mode", FldName: "vmode", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4, 256, 512, 512}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fb_rotate", FldName: "rotate", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "v4l2_colorspace", FldName: "colorspace", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "reserved", TypeSize: 16}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 4, RangeEnd: 4},
}}},
{Key: StructKey{Name: "fd_set", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fd_set", TypeSize: 64, ArgDir: 2}, Fields: []Type{
@@ -10436,6 +10436,10 @@ var structDescs_amd64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "scan", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "key", TypeSize: 4}}},
}}},
+ {Key: StructKey{Name: "kbsentry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "kbsentry", TypeSize: 513}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "kb_func", TypeSize: 1}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "kb_string", TypeSize: 512}, Kind: 1, RangeBegin: 512, RangeEnd: 512},
+ }}},
{Key: StructKey{Name: "kcm_attach"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "kcm_attach", TypeSize: 8}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "bpf_fd", TypeSize: 4}},
@@ -11365,9 +11369,8 @@ var structDescs_amd64 = []*KeyedStruct{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ether_types", FldName: "protocol_id", TypeSize: 2}, ArgFormat: 1}, Vals: []uint64{96, 512, 513, 8944, 2048, 2053, 2054, 2560, 2561, 17157, 24576, 24577, 24578, 24579, 24580, 24581, 24582, 24583, 25944, 32821, 32923, 33011, 33024, 35006, 8939, 33079, 34525, 34824, 34825, 34878, 34887, 34888, 34892, 34915, 34916, 34924, 34948, 34958, 34978, 34984, 34997, 35018, 35045, 35047, 35061, 35063, 35064, 35067, 35078, 35085, 35092, 35095, 35119, 36864, 37120, 37376, 37632, 56026, 64507, 1536, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 16, 17, 21, 22, 23, 24, 25, 26, 27, 28, 245, 246, 247, 248, 249}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "payload", IsVarlen: true}},
}}},
- {Key: StructKey{Name: "loadlut"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "loadlut", TypeSize: 40}, Fields: []Type{
+ {Key: StructKey{Name: "loadlut"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "loadlut", TypeSize: 33}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "submode", TypeSize: 1}}, Val: 5},
- &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 7}}, IsPad: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "tab0", TypeSize: 8}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "tab1", TypeSize: 8}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "tab2", TypeSize: 8}}},
@@ -26484,23 +26487,23 @@ var structDescs_amd64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "stuff24", TypeSize: 8}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "stuff25", TypeSize: 8}}},
}}},
- {Key: StructKey{Name: "tiocl_report_mouse"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tiocl_report_mouse", TypeSize: 2}, Fields: []Type{
- &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "subcode", TypeSize: 1}}, Val: 7},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "shift", TypeSize: 1}}},
- }}},
- {Key: StructKey{Name: "tiocl_selection"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tiocl_selection", TypeSize: 12}, Fields: []Type{
+ {Key: StructKey{Name: "tiocl_selection"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tiocl_selection", TypeSize: 11}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "subcode", TypeSize: 1}}, Val: 2},
- &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 1}}, IsPad: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "xs", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "ys", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "xe", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "ye", TypeSize: 2}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "mode", TypeSize: 2}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "tiocl_selection_mode", FldName: "mode", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 3, 4, 16, 15}},
}}},
{Key: StructKey{Name: "tiocl_shift_state"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tiocl_shift_state", TypeSize: 2}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "subcode", TypeSize: 1}}, Val: 6},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "shift", TypeSize: 1}}},
}}},
+ {Key: StructKey{Name: "tioctl_scroll_console"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tioctl_scroll_console", TypeSize: 8}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "subcode", TypeSize: 1}}, Val: 13},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 3}}, IsPad: true},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "lines", TypeSize: 4}}},
+ }}},
{Key: StructKey{Name: "tipc_address_name"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tipc_address_name", TypeSize: 12}, Fields: []Type{
&StructType{Key: StructKey{Name: "tipc_service_addr"}, FldName: "name"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "domain", TypeSize: 4}}, Kind: 1, RangeEnd: 4},
@@ -37490,7 +37493,7 @@ var syscalls_amd64 = []*Syscall{
{NR: 16, Name: "ioctl$KDGKBSENT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19272},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "kbentry"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "kbsentry"}}},
}},
{NR: 16, Name: "ioctl$KDGKBTYPE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
@@ -37515,13 +37518,18 @@ var syscalls_amd64 = []*Syscall{
{NR: 16, Name: "ioctl$KDSETMODE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19258},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1},
}},
{NR: 16, Name: "ioctl$KDSIGACCEPT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19278},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65},
}},
+ {NR: 16, Name: "ioctl$KDSKBENT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19271},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "kbentry"}}},
+ }},
{NR: 16, Name: "ioctl$KDSKBLED", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19301},
@@ -37530,17 +37538,17 @@ var syscalls_amd64 = []*Syscall{
{NR: 16, Name: "ioctl$KDSKBMETA", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19299},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}, Kind: 1, RangeBegin: 3, RangeEnd: 4}},
}},
{NR: 16, Name: "ioctl$KDSKBMODE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19269},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}, Kind: 1, RangeEnd: 4}},
}},
{NR: 16, Name: "ioctl$KDSKBSENT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19273},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "kbsentry"}}},
}},
{NR: 16, Name: "ioctl$KIOCSOUND", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
@@ -39897,35 +39905,55 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21523},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "winsize", Dir: 1}}},
}},
- {NR: 16, Name: "ioctl$TIOCLINUX2", CallName: "ioctl", Args: []Type{
+ {NR: 16, Name: "ioctl$TIOCL_BLANKSCREEN", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21532},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tiocl_selection"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 14}},
}},
- {NR: 16, Name: "ioctl$TIOCLINUX3", CallName: "ioctl", Args: []Type{
+ {NR: 16, Name: "ioctl$TIOCL_GETKMSGREDIRECT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21532},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 17}},
+ }},
+ {NR: 16, Name: "ioctl$TIOCL_GETMOUSEREPORTING", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21532},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 7}},
+ }},
+ {NR: 16, Name: "ioctl$TIOCL_GETSHIFTSTATE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21532},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tiocl_shift_state"}}},
+ }},
+ {NR: 16, Name: "ioctl$TIOCL_PASTESEL", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21532},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 3}},
}},
- {NR: 16, Name: "ioctl$TIOCLINUX4", CallName: "ioctl", Args: []Type{
+ {NR: 16, Name: "ioctl$TIOCL_SCROLLCONSOLE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21532},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tioctl_scroll_console"}}},
}},
- {NR: 16, Name: "ioctl$TIOCLINUX5", CallName: "ioctl", Args: []Type{
+ {NR: 16, Name: "ioctl$TIOCL_SELLOADLUT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21532},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "loadlut"}}},
}},
- {NR: 16, Name: "ioctl$TIOCLINUX6", CallName: "ioctl", Args: []Type{
+ {NR: 16, Name: "ioctl$TIOCL_SETSEL", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21532},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tiocl_shift_state"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tiocl_selection"}}},
}},
- {NR: 16, Name: "ioctl$TIOCLINUX7", CallName: "ioctl", Args: []Type{
+ {NR: 16, Name: "ioctl$TIOCL_SETVESABLANK", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21532},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tiocl_report_mouse"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 10}},
+ }},
+ {NR: 16, Name: "ioctl$TIOCL_UNBLANKSCREEN", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21532},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}, Val: 4}},
}},
{NR: 16, Name: "ioctl$TIOCMBIC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}},
@@ -50680,6 +50708,7 @@ var consts_amd64 = []ConstValue{
{Name: "FBIOPUT_CON2FBMAP", Value: 17936},
{Name: "FBIOPUT_VSCREENINFO", Value: 17921},
{Name: "FBIO_WAITFORVSYNC", Value: 1074021920},
+ {Name: "FB_ACCELF_TEXT", Value: 1},
{Name: "FB_ACTIVATE_ALL", Value: 64},
{Name: "FB_ACTIVATE_FORCE", Value: 128},
{Name: "FB_ACTIVATE_INV_MODE", Value: 256},
@@ -50690,11 +50719,26 @@ var consts_amd64 = []ConstValue{
{Name: "FB_BLANK_POWERDOWN", Value: 4},
{Name: "FB_BLANK_UNBLANK"},
{Name: "FB_FIX_SCREENINFO_SIZE", Value: 80},
+ {Name: "FB_NONSTD_HAM", Value: 1},
+ {Name: "FB_NONSTD_REV_PIX_IN_B", Value: 2},
+ {Name: "FB_ROTATE_CCW", Value: 3},
+ {Name: "FB_ROTATE_CW", Value: 1},
+ {Name: "FB_ROTATE_UD", Value: 2},
+ {Name: "FB_ROTATE_UR"},
+ {Name: "FB_SYNC_BROADCAST", Value: 16},
+ {Name: "FB_SYNC_COMP_HIGH_ACT", Value: 8},
+ {Name: "FB_SYNC_EXT", Value: 4},
+ {Name: "FB_SYNC_HOR_HIGH_ACT", Value: 1},
+ {Name: "FB_SYNC_ON_GREEN", Value: 32},
+ {Name: "FB_SYNC_VERT_HIGH_ACT", Value: 2},
{Name: "FB_VAR_SCREENINFO_SIZE", Value: 160},
+ {Name: "FB_VMODE_CONUPDATE", Value: 512},
{Name: "FB_VMODE_DOUBLE", Value: 2},
{Name: "FB_VMODE_INTERLACED", Value: 1},
{Name: "FB_VMODE_NONINTERLACED"},
{Name: "FB_VMODE_ODD_FLD_FIRST", Value: 4},
+ {Name: "FB_VMODE_SMOOTH_XPAN", Value: 512},
+ {Name: "FB_VMODE_YWRAP", Value: 256},
{Name: "FDCLRPRM", Value: 577},
{Name: "FDDEFPRM", Value: 1075839555},
{Name: "FDEJECT", Value: 602},
@@ -52113,6 +52157,7 @@ var consts_amd64 = []ConstValue{
{Name: "KDSETLED", Value: 19250},
{Name: "KDSETMODE", Value: 19258},
{Name: "KDSIGACCEPT", Value: 19278},
+ {Name: "KDSKBENT", Value: 19271},
{Name: "KDSKBLED", Value: 19301},
{Name: "KDSKBMETA", Value: 19299},
{Name: "KDSKBMODE", Value: 19269},
@@ -52121,6 +52166,8 @@ var consts_amd64 = []ConstValue{
{Name: "KD_FONT_OP_GET", Value: 1},
{Name: "KD_FONT_OP_SET"},
{Name: "KD_FONT_OP_SET_DEFAULT", Value: 2},
+ {Name: "KD_GRAPHICS", Value: 1},
+ {Name: "KD_TEXT"},
{Name: "KERNEL_CLIENT", Value: 2},
{Name: "KEXEC_ARCH_386", Value: 196608},
{Name: "KEXEC_ARCH_ARM", Value: 2621440},
@@ -52375,6 +52422,10 @@ var consts_amd64 = []ConstValue{
{Name: "KVM_X86_SETUP_MCE", Value: 1074310812},
{Name: "KVM_X86_SET_MCE", Value: 1077980830},
{Name: "KVM_XEN_HVM_CONFIG", Value: 1077456506},
+ {Name: "K_ESCPREFIX", Value: 4},
+ {Name: "K_METABIT", Value: 3},
+ {Name: "K_OFF", Value: 4},
+ {Name: "K_RAW"},
{Name: "L2CAP_CONNINFO", Value: 2},
{Name: "L2CAP_LM", Value: 3},
{Name: "L2CAP_LM_AUTH", Value: 2},
@@ -55419,6 +55470,23 @@ var consts_amd64 = []ConstValue{
{Name: "TIOCGWINSZ", Value: 21523},
{Name: "TIOCINQ", Value: 21531},
{Name: "TIOCLINUX", Value: 21532},
+ {Name: "TIOCL_BLANKSCREEN", Value: 14},
+ {Name: "TIOCL_GETKMSGREDIRECT", Value: 17},
+ {Name: "TIOCL_GETMOUSEREPORTING", Value: 7},
+ {Name: "TIOCL_GETSHIFTSTATE", Value: 6},
+ {Name: "TIOCL_PASTESEL", Value: 3},
+ {Name: "TIOCL_SCROLLCONSOLE", Value: 13},
+ {Name: "TIOCL_SELBUTTONMASK", Value: 15},
+ {Name: "TIOCL_SELCHAR"},
+ {Name: "TIOCL_SELCLEAR", Value: 4},
+ {Name: "TIOCL_SELLINE", Value: 2},
+ {Name: "TIOCL_SELLOADLUT", Value: 5},
+ {Name: "TIOCL_SELMOUSEREPORT", Value: 16},
+ {Name: "TIOCL_SELPOINTER", Value: 3},
+ {Name: "TIOCL_SELWORD", Value: 1},
+ {Name: "TIOCL_SETSEL", Value: 2},
+ {Name: "TIOCL_SETVESABLANK", Value: 10},
+ {Name: "TIOCL_UNBLANKSCREEN", Value: 4},
{Name: "TIOCMBIC", Value: 21527},
{Name: "TIOCMBIS", Value: 21526},
{Name: "TIOCMGET", Value: 21525},
@@ -57828,4 +57896,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "489918ee4cccee63854b73ddcaf026f5457f9d49"
+const revision_amd64 = "12fd85c5ed7ba166e02657faae7d73526aecc497"