aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2019-06-29 23:26:06 +0200
committerAnton Lindqvist <anton@basename.se>2019-06-30 20:34:23 +0200
commit699d6448c8e087ef95dbe7d3fa79ef20bcf833b5 (patch)
treef1301c7435b9c1b33b3dd85235584119f9faccdf /sys
parent7509bf360eba1461ac6059e4cacfbc29c9d2d4c7 (diff)
sys/openbsd: add missing WSDISPLAYIO_SBURNER ioctl command
Diffstat (limited to 'sys')
-rw-r--r--sys/openbsd/gen/amd64.go13
-rw-r--r--sys/openbsd/wscons.txt1
-rw-r--r--sys/openbsd/wscons_amd64.const1
3 files changed, 14 insertions, 1 deletions
diff --git a/sys/openbsd/gen/amd64.go b/sys/openbsd/gen/amd64.go
index d82c59ca1..77554810b 100644
--- a/sys/openbsd/gen/amd64.go
+++ b/sys/openbsd/gen/amd64.go
@@ -652,6 +652,11 @@ var structDescs_amd64 = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "screentype", TypeSize: 16}, Kind: 3},
&BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "emul", TypeSize: 16}, Kind: 3},
}}},
+ {Key: StructKey{Name: "wsdisplay_burner"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "wsdisplay_burner", TypeSize: 12}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "off", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "on", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "wsdisplay_burner_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true},
+ }}},
{Key: StructKey{Name: "wsdisplay_burner", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "wsdisplay_burner", TypeSize: 12, ArgDir: 1}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "off", TypeSize: 4, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "on", TypeSize: 4, ArgDir: 1}}},
@@ -1573,6 +1578,11 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3227014990},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "wsdisplay_font", Dir: 1}}},
}},
+ {NR: 54, Name: "ioctl$WSDISPLAYIO_SBURNER", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_wsdisplay", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148292433},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "wsdisplay_burner"}}},
+ }},
{NR: 54, Name: "ioctl$WSDISPLAYIO_SETSCREEN", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_wsdisplay", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147768150},
@@ -2885,6 +2895,7 @@ var consts_amd64 = []ConstValue{
{Name: "WSDISPLAYIO_MODE_DUMBFB", Value: 2},
{Name: "WSDISPLAYIO_MODE_EMUL"},
{Name: "WSDISPLAYIO_MODE_MAPPED", Value: 1},
+ {Name: "WSDISPLAYIO_SBURNER", Value: 2148292433},
{Name: "WSDISPLAYIO_SETSCREEN", Value: 2147768150},
{Name: "WSDISPLAYIO_SMODE", Value: 2147768140},
{Name: "WSDISPLAYIO_SVIDEO", Value: 2147768133},
@@ -2970,4 +2981,4 @@ var consts_amd64 = []ConstValue{
{Name: "__MAP_NOREPLACE", Value: 2048},
}
-const revision_amd64 = "6255253f9674826c8aeacb80503607f3c81dade2"
+const revision_amd64 = "7f4015fe5d4b3777d30d2d5dd379e3de766e0e8e"
diff --git a/sys/openbsd/wscons.txt b/sys/openbsd/wscons.txt
index 674a5b47e..5df87d21e 100644
--- a/sys/openbsd/wscons.txt
+++ b/sys/openbsd/wscons.txt
@@ -40,6 +40,7 @@ ioctl$WSDISPLAYIO_GMODE(fd fd_wsdisplay, cmd const[WSDISPLAYIO_GMODE], arg ptr[o
ioctl$WSDISPLAYIO_GVIDEO(fd fd_wsdisplay, cmd const[WSDISPLAYIO_GVIDEO], arg ptr[out, int32])
ioctl$WSDISPLAYIO_LDFONT(fd fd_wsdisplay, cmd const[WSDISPLAYIO_LDFONT], arg ptr[in, wsdisplay_font])
ioctl$WSDISPLAYIO_LSFONT(fd fd_wsdisplay, cmd const[WSDISPLAYIO_LSFONT], arg ptr[out, wsdisplay_font])
+ioctl$WSDISPLAYIO_SBURNER(fd fd_wsdisplay, cmd const[WSDISPLAYIO_SBURNER], arg ptr[in, wsdisplay_burner])
ioctl$WSDISPLAYIO_SETSCREEN(fd fd_wsdisplay, cmd const[WSDISPLAYIO_SETSCREEN], arg ptr[in, int32])
ioctl$WSDISPLAYIO_SMODE(fd fd_wsdisplay, cmd const[WSDISPLAYIO_SMODE], arg ptr[in, wsdisplay_mode])
ioctl$WSDISPLAYIO_SVIDEO(fd fd_wsdisplay, cmd const[WSDISPLAYIO_SVIDEO], arg ptr[in, wsdisplay_svideo])
diff --git a/sys/openbsd/wscons_amd64.const b/sys/openbsd/wscons_amd64.const
index 5110bb504..b390b088c 100644
--- a/sys/openbsd/wscons_amd64.const
+++ b/sys/openbsd/wscons_amd64.const
@@ -44,6 +44,7 @@ WSDISPLAYIO_LSFONT = 3227014990
WSDISPLAYIO_MODE_DUMBFB = 2
WSDISPLAYIO_MODE_EMUL = 0
WSDISPLAYIO_MODE_MAPPED = 1
+WSDISPLAYIO_SBURNER = 2148292433
WSDISPLAYIO_SETSCREEN = 2147768150
WSDISPLAYIO_SMODE = 2147768140
WSDISPLAYIO_SVIDEO = 2147768133