aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2018-06-19 00:13:04 +0300
committerDmitry Vyukov <dvyukov@google.com>2018-06-19 12:35:31 +0200
commit14e96aad73e6f8af4d359c6c9233154903b7887f (patch)
tree60bfe285934b8dde9fac9d865d9e83991a0e2e88 /sys/linux
parent45c54f755c6dee216beaeeef11e98a0375102712 (diff)
sys/linux: additional scsi_ioctls of sg device
Add previously skipped SCSI_IOCTL_* ioctls in the sg rule. Signed-off-by: Denis Efremov <efremov@linux.com>
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/gen/386.go69
-rw-r--r--sys/linux/gen/amd64.go69
-rw-r--r--sys/linux/gen/arm.go69
-rw-r--r--sys/linux/gen/arm64.go69
-rw-r--r--sys/linux/gen/ppc64le.go69
-rw-r--r--sys/linux/sg.txt23
-rw-r--r--sys/linux/sg_386.const11
-rw-r--r--sys/linux/sg_amd64.const11
-rw-r--r--sys/linux/sg_arm.const11
-rw-r--r--sys/linux/sg_arm64.const11
-rw-r--r--sys/linux/sg_ppc64le.const11
11 files changed, 417 insertions, 6 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go
index 8930f72e3..2e6e1a723 100644
--- a/sys/linux/gen/386.go
+++ b/sys/linux/gen/386.go
@@ -13605,12 +13605,20 @@ var structDescs_386 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "deadlin", TypeSize: 8, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "period", TypeSize: 8, ArgDir: 1}}},
}}},
+ {Key: StructKey{Name: "scsi_idlun", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_idlun", TypeSize: 8, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "dev_id", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "host_unique_id", TypeSize: 4, ArgDir: 1}}},
+ }}},
{Key: StructKey{Name: "scsi_ioctl_command"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_ioctl_command", IsVarlen: true}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "inlen", TypeSize: 4}}, Buf: "data"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "outlen", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "opcode", TypeSize: 4}}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}}},
+ {Key: StructKey{Name: "scsi_ioctl_probe_host_out_buffer", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_ioctl_probe_host_out_buffer", ArgDir: 1, IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4, ArgDir: 1}}, BitSize: 8, Buf: "data"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 1, IsVarlen: true}},
+ }}},
{Key: StructKey{Name: "sctp6_pair", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sctp6_pair", TypeSize: 8, ArgDir: 1}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_sctp6", FldName: "f0", TypeSize: 4, ArgDir: 1}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_sctp6", FldName: "f1", TypeSize: 4, ArgDir: 1}},
@@ -23897,11 +23905,59 @@ var syscalls_386 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20996},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}},
}},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_BENCHMARK_COMMAND", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_DOORLOCK", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21376},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_DOORUNLOCK", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21377},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_GET_BUS_NUMBER", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21382},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_GET_IDLUN", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21378},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "scsi_idlun", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_GET_PCI", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21383},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 20, ArgDir: 1}, Kind: 1, RangeBegin: 20, RangeEnd: 20}},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_PROBE_HOST", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21381},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "scsi_ioctl_probe_host_out_buffer", Dir: 1}}},
+ }},
{NR: 54, Name: "ioctl$SCSI_IOCTL_SEND_COMMAND", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "scsi_ioctl_command"}}},
}},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_START_UNIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 5},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_STOP_UNIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_SYNC", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_TEST_UNIT_READY", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2},
+ }},
{NR: 54, Name: "ioctl$SG_EMULATED_HOST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8707},
@@ -33945,7 +34001,18 @@ var consts_386 = []ConstValue{
{Name: "SCM_RIGHTS", Value: 1},
{Name: "SCO_CONNINFO", Value: 2},
{Name: "SCO_OPTIONS", Value: 1},
+ {Name: "SCSI_IOCTL_BENCHMARK_COMMAND", Value: 3},
+ {Name: "SCSI_IOCTL_DOORLOCK", Value: 21376},
+ {Name: "SCSI_IOCTL_DOORUNLOCK", Value: 21377},
+ {Name: "SCSI_IOCTL_GET_BUS_NUMBER", Value: 21382},
+ {Name: "SCSI_IOCTL_GET_IDLUN", Value: 21378},
+ {Name: "SCSI_IOCTL_GET_PCI", Value: 21383},
+ {Name: "SCSI_IOCTL_PROBE_HOST", Value: 21381},
{Name: "SCSI_IOCTL_SEND_COMMAND", Value: 1},
+ {Name: "SCSI_IOCTL_START_UNIT", Value: 5},
+ {Name: "SCSI_IOCTL_STOP_UNIT", Value: 6},
+ {Name: "SCSI_IOCTL_SYNC", Value: 4},
+ {Name: "SCSI_IOCTL_TEST_UNIT_READY", Value: 2},
{Name: "SCTP_ABORT", Value: 4},
{Name: "SCTP_ADAPTATION_LAYER", Value: 7},
{Name: "SCTP_ADDR_OVER", Value: 2},
@@ -36721,4 +36788,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_386 = "0e6a1736718141be72dd878068a421fea5189e8f"
+const revision_386 = "56fb40048c1a6ad5b7531f4028c39df29c0ec46a"
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index a7af982e3..9d1452505 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -13821,12 +13821,20 @@ var structDescs_amd64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "deadlin", TypeSize: 8, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "period", TypeSize: 8, ArgDir: 1}}},
}}},
+ {Key: StructKey{Name: "scsi_idlun", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_idlun", TypeSize: 8, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "dev_id", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "host_unique_id", TypeSize: 4, ArgDir: 1}}},
+ }}},
{Key: StructKey{Name: "scsi_ioctl_command"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_ioctl_command", IsVarlen: true}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "inlen", TypeSize: 4}}, Buf: "data"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "outlen", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "opcode", TypeSize: 4}}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}}},
+ {Key: StructKey{Name: "scsi_ioctl_probe_host_out_buffer", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_ioctl_probe_host_out_buffer", ArgDir: 1, IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4, ArgDir: 1}}, BitSize: 8, Buf: "data"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 1, IsVarlen: true}},
+ }}},
{Key: StructKey{Name: "sctp6_pair", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sctp6_pair", TypeSize: 8, ArgDir: 1}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_sctp6", FldName: "f0", TypeSize: 4, ArgDir: 1}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_sctp6", FldName: "f1", TypeSize: 4, ArgDir: 1}},
@@ -24338,11 +24346,59 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 20996},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}},
}},
+ {NR: 16, Name: "ioctl$SCSI_IOCTL_BENCHMARK_COMMAND", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3},
+ }},
+ {NR: 16, Name: "ioctl$SCSI_IOCTL_DOORLOCK", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21376},
+ }},
+ {NR: 16, Name: "ioctl$SCSI_IOCTL_DOORUNLOCK", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21377},
+ }},
+ {NR: 16, Name: "ioctl$SCSI_IOCTL_GET_BUS_NUMBER", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21382},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 16, Name: "ioctl$SCSI_IOCTL_GET_IDLUN", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21378},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "scsi_idlun", Dir: 1}}},
+ }},
+ {NR: 16, Name: "ioctl$SCSI_IOCTL_GET_PCI", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21383},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 20, ArgDir: 1}, Kind: 1, RangeBegin: 20, RangeEnd: 20}},
+ }},
+ {NR: 16, Name: "ioctl$SCSI_IOCTL_PROBE_HOST", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21381},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "scsi_ioctl_probe_host_out_buffer", Dir: 1}}},
+ }},
{NR: 16, Name: "ioctl$SCSI_IOCTL_SEND_COMMAND", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "scsi_ioctl_command"}}},
}},
+ {NR: 16, Name: "ioctl$SCSI_IOCTL_START_UNIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 5},
+ }},
+ {NR: 16, Name: "ioctl$SCSI_IOCTL_STOP_UNIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 6},
+ }},
+ {NR: 16, Name: "ioctl$SCSI_IOCTL_SYNC", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 4},
+ }},
+ {NR: 16, Name: "ioctl$SCSI_IOCTL_TEST_UNIT_READY", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2},
+ }},
{NR: 16, Name: "ioctl$SG_EMULATED_HOST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 8707},
@@ -34605,7 +34661,18 @@ var consts_amd64 = []ConstValue{
{Name: "SCM_RIGHTS", Value: 1},
{Name: "SCO_CONNINFO", Value: 2},
{Name: "SCO_OPTIONS", Value: 1},
+ {Name: "SCSI_IOCTL_BENCHMARK_COMMAND", Value: 3},
+ {Name: "SCSI_IOCTL_DOORLOCK", Value: 21376},
+ {Name: "SCSI_IOCTL_DOORUNLOCK", Value: 21377},
+ {Name: "SCSI_IOCTL_GET_BUS_NUMBER", Value: 21382},
+ {Name: "SCSI_IOCTL_GET_IDLUN", Value: 21378},
+ {Name: "SCSI_IOCTL_GET_PCI", Value: 21383},
+ {Name: "SCSI_IOCTL_PROBE_HOST", Value: 21381},
{Name: "SCSI_IOCTL_SEND_COMMAND", Value: 1},
+ {Name: "SCSI_IOCTL_START_UNIT", Value: 5},
+ {Name: "SCSI_IOCTL_STOP_UNIT", Value: 6},
+ {Name: "SCSI_IOCTL_SYNC", Value: 4},
+ {Name: "SCSI_IOCTL_TEST_UNIT_READY", Value: 2},
{Name: "SCTP_ABORT", Value: 4},
{Name: "SCTP_ADAPTATION_LAYER", Value: 7},
{Name: "SCTP_ADDR_OVER", Value: 2},
@@ -37406,4 +37473,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "82afcf536c9fe59ad5ff5eeafc5f6cc92f10f483"
+const revision_amd64 = "43db287579be73b1d0535702676e3d0698c36610"
diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go
index 6d39ed9d6..49dcd89fc 100644
--- a/sys/linux/gen/arm.go
+++ b/sys/linux/gen/arm.go
@@ -13448,12 +13448,20 @@ var structDescs_arm = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "deadlin", TypeSize: 8, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "period", TypeSize: 8, ArgDir: 1}}},
}}},
+ {Key: StructKey{Name: "scsi_idlun", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_idlun", TypeSize: 8, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "dev_id", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "host_unique_id", TypeSize: 4, ArgDir: 1}}},
+ }}},
{Key: StructKey{Name: "scsi_ioctl_command"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_ioctl_command", IsVarlen: true}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "inlen", TypeSize: 4}}, Buf: "data"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "outlen", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "opcode", TypeSize: 4}}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}}},
+ {Key: StructKey{Name: "scsi_ioctl_probe_host_out_buffer", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_ioctl_probe_host_out_buffer", ArgDir: 1, IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4, ArgDir: 1}}, BitSize: 8, Buf: "data"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 1, IsVarlen: true}},
+ }}},
{Key: StructKey{Name: "sctp6_pair", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sctp6_pair", TypeSize: 8, ArgDir: 1}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_sctp6", FldName: "f0", TypeSize: 4, ArgDir: 1}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_sctp6", FldName: "f1", TypeSize: 4, ArgDir: 1}},
@@ -23657,11 +23665,59 @@ var syscalls_arm = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20996},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}},
}},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_BENCHMARK_COMMAND", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_DOORLOCK", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21376},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_DOORUNLOCK", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21377},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_GET_BUS_NUMBER", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21382},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_GET_IDLUN", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21378},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "scsi_idlun", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_GET_PCI", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21383},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 20, ArgDir: 1}, Kind: 1, RangeBegin: 20, RangeEnd: 20}},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_PROBE_HOST", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21381},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "scsi_ioctl_probe_host_out_buffer", Dir: 1}}},
+ }},
{NR: 54, Name: "ioctl$SCSI_IOCTL_SEND_COMMAND", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "scsi_ioctl_command"}}},
}},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_START_UNIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 5},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_STOP_UNIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_SYNC", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_TEST_UNIT_READY", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2},
+ }},
{NR: 54, Name: "ioctl$SG_EMULATED_HOST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8707},
@@ -33805,7 +33861,18 @@ var consts_arm = []ConstValue{
{Name: "SCM_RIGHTS", Value: 1},
{Name: "SCO_CONNINFO", Value: 2},
{Name: "SCO_OPTIONS", Value: 1},
+ {Name: "SCSI_IOCTL_BENCHMARK_COMMAND", Value: 3},
+ {Name: "SCSI_IOCTL_DOORLOCK", Value: 21376},
+ {Name: "SCSI_IOCTL_DOORUNLOCK", Value: 21377},
+ {Name: "SCSI_IOCTL_GET_BUS_NUMBER", Value: 21382},
+ {Name: "SCSI_IOCTL_GET_IDLUN", Value: 21378},
+ {Name: "SCSI_IOCTL_GET_PCI", Value: 21383},
+ {Name: "SCSI_IOCTL_PROBE_HOST", Value: 21381},
{Name: "SCSI_IOCTL_SEND_COMMAND", Value: 1},
+ {Name: "SCSI_IOCTL_START_UNIT", Value: 5},
+ {Name: "SCSI_IOCTL_STOP_UNIT", Value: 6},
+ {Name: "SCSI_IOCTL_SYNC", Value: 4},
+ {Name: "SCSI_IOCTL_TEST_UNIT_READY", Value: 2},
{Name: "SCTP_ABORT", Value: 4},
{Name: "SCTP_ADAPTATION_LAYER", Value: 7},
{Name: "SCTP_ADDR_OVER", Value: 2},
@@ -36579,4 +36646,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm = "50ea1d839a20210c30de6527e1f822af449e3c3b"
+const revision_arm = "2cc3e17a8ad782834dc72de4458366f40d96da68"
diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go
index d704389d5..640d91f06 100644
--- a/sys/linux/gen/arm64.go
+++ b/sys/linux/gen/arm64.go
@@ -13612,12 +13612,20 @@ var structDescs_arm64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "deadlin", TypeSize: 8, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "period", TypeSize: 8, ArgDir: 1}}},
}}},
+ {Key: StructKey{Name: "scsi_idlun", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_idlun", TypeSize: 8, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "dev_id", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "host_unique_id", TypeSize: 4, ArgDir: 1}}},
+ }}},
{Key: StructKey{Name: "scsi_ioctl_command"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_ioctl_command", IsVarlen: true}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "inlen", TypeSize: 4}}, Buf: "data"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "outlen", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "opcode", TypeSize: 4}}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}}},
+ {Key: StructKey{Name: "scsi_ioctl_probe_host_out_buffer", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_ioctl_probe_host_out_buffer", ArgDir: 1, IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4, ArgDir: 1}}, BitSize: 8, Buf: "data"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 1, IsVarlen: true}},
+ }}},
{Key: StructKey{Name: "sctp6_pair", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sctp6_pair", TypeSize: 8, ArgDir: 1}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_sctp6", FldName: "f0", TypeSize: 4, ArgDir: 1}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_sctp6", FldName: "f1", TypeSize: 4, ArgDir: 1}},
@@ -23936,11 +23944,59 @@ var syscalls_arm64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 20996},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}},
}},
+ {NR: 29, Name: "ioctl$SCSI_IOCTL_BENCHMARK_COMMAND", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3},
+ }},
+ {NR: 29, Name: "ioctl$SCSI_IOCTL_DOORLOCK", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21376},
+ }},
+ {NR: 29, Name: "ioctl$SCSI_IOCTL_DOORUNLOCK", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21377},
+ }},
+ {NR: 29, Name: "ioctl$SCSI_IOCTL_GET_BUS_NUMBER", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21382},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 29, Name: "ioctl$SCSI_IOCTL_GET_IDLUN", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21378},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "scsi_idlun", Dir: 1}}},
+ }},
+ {NR: 29, Name: "ioctl$SCSI_IOCTL_GET_PCI", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21383},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 20, ArgDir: 1}, Kind: 1, RangeBegin: 20, RangeEnd: 20}},
+ }},
+ {NR: 29, Name: "ioctl$SCSI_IOCTL_PROBE_HOST", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21381},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "scsi_ioctl_probe_host_out_buffer", Dir: 1}}},
+ }},
{NR: 29, Name: "ioctl$SCSI_IOCTL_SEND_COMMAND", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "scsi_ioctl_command"}}},
}},
+ {NR: 29, Name: "ioctl$SCSI_IOCTL_START_UNIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 5},
+ }},
+ {NR: 29, Name: "ioctl$SCSI_IOCTL_STOP_UNIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 6},
+ }},
+ {NR: 29, Name: "ioctl$SCSI_IOCTL_SYNC", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 4},
+ }},
+ {NR: 29, Name: "ioctl$SCSI_IOCTL_TEST_UNIT_READY", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2},
+ }},
{NR: 29, Name: "ioctl$SG_EMULATED_HOST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 8707},
@@ -34012,7 +34068,18 @@ var consts_arm64 = []ConstValue{
{Name: "SCM_RIGHTS", Value: 1},
{Name: "SCO_CONNINFO", Value: 2},
{Name: "SCO_OPTIONS", Value: 1},
+ {Name: "SCSI_IOCTL_BENCHMARK_COMMAND", Value: 3},
+ {Name: "SCSI_IOCTL_DOORLOCK", Value: 21376},
+ {Name: "SCSI_IOCTL_DOORUNLOCK", Value: 21377},
+ {Name: "SCSI_IOCTL_GET_BUS_NUMBER", Value: 21382},
+ {Name: "SCSI_IOCTL_GET_IDLUN", Value: 21378},
+ {Name: "SCSI_IOCTL_GET_PCI", Value: 21383},
+ {Name: "SCSI_IOCTL_PROBE_HOST", Value: 21381},
{Name: "SCSI_IOCTL_SEND_COMMAND", Value: 1},
+ {Name: "SCSI_IOCTL_START_UNIT", Value: 5},
+ {Name: "SCSI_IOCTL_STOP_UNIT", Value: 6},
+ {Name: "SCSI_IOCTL_SYNC", Value: 4},
+ {Name: "SCSI_IOCTL_TEST_UNIT_READY", Value: 2},
{Name: "SCTP_ABORT", Value: 4},
{Name: "SCTP_ADAPTATION_LAYER", Value: 7},
{Name: "SCTP_ADDR_OVER", Value: 2},
@@ -36771,4 +36838,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm64 = "fd08fc3e4dd89e5c2addde8d343893d2b75c27b1"
+const revision_arm64 = "10035aa14875c0f41ab4dc51f5f46089da0b606a"
diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go
index b63ab74f5..72328f944 100644
--- a/sys/linux/gen/ppc64le.go
+++ b/sys/linux/gen/ppc64le.go
@@ -13578,12 +13578,20 @@ var structDescs_ppc64le = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "deadlin", TypeSize: 8, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "period", TypeSize: 8, ArgDir: 1}}},
}}},
+ {Key: StructKey{Name: "scsi_idlun", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_idlun", TypeSize: 8, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "dev_id", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "host_unique_id", TypeSize: 4, ArgDir: 1}}},
+ }}},
{Key: StructKey{Name: "scsi_ioctl_command"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_ioctl_command", IsVarlen: true}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "inlen", TypeSize: 4}}, Buf: "data"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "outlen", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "opcode", TypeSize: 4}}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}}},
+ {Key: StructKey{Name: "scsi_ioctl_probe_host_out_buffer", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "scsi_ioctl_probe_host_out_buffer", ArgDir: 1, IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4, ArgDir: 1}}, BitSize: 8, Buf: "data"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 1, IsVarlen: true}},
+ }}},
{Key: StructKey{Name: "sctp6_pair", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sctp6_pair", TypeSize: 8, ArgDir: 1}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_sctp6", FldName: "f0", TypeSize: 4, ArgDir: 1}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_sctp6", FldName: "f1", TypeSize: 4, ArgDir: 1}},
@@ -23036,11 +23044,59 @@ var syscalls_ppc64le = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536891908},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}},
}},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_BENCHMARK_COMMAND", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_DOORLOCK", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21376},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_DOORUNLOCK", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21377},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_GET_BUS_NUMBER", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21382},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_GET_IDLUN", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21378},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "scsi_idlun", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_GET_PCI", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21383},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 20, ArgDir: 1}, Kind: 1, RangeBegin: 20, RangeEnd: 20}},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_PROBE_HOST", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21381},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "scsi_ioctl_probe_host_out_buffer", Dir: 1}}},
+ }},
{NR: 54, Name: "ioctl$SCSI_IOCTL_SEND_COMMAND", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "scsi_ioctl_command"}}},
}},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_START_UNIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 5},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_STOP_UNIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 6},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_SYNC", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 4},
+ }},
+ {NR: 54, Name: "ioctl$SCSI_IOCTL_TEST_UNIT_READY", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2},
+ }},
{NR: 54, Name: "ioctl$SG_EMULATED_HOST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 8707},
@@ -32377,7 +32433,18 @@ var consts_ppc64le = []ConstValue{
{Name: "SCM_RIGHTS", Value: 1},
{Name: "SCO_CONNINFO", Value: 2},
{Name: "SCO_OPTIONS", Value: 1},
+ {Name: "SCSI_IOCTL_BENCHMARK_COMMAND", Value: 3},
+ {Name: "SCSI_IOCTL_DOORLOCK", Value: 21376},
+ {Name: "SCSI_IOCTL_DOORUNLOCK", Value: 21377},
+ {Name: "SCSI_IOCTL_GET_BUS_NUMBER", Value: 21382},
+ {Name: "SCSI_IOCTL_GET_IDLUN", Value: 21378},
+ {Name: "SCSI_IOCTL_GET_PCI", Value: 21383},
+ {Name: "SCSI_IOCTL_PROBE_HOST", Value: 21381},
{Name: "SCSI_IOCTL_SEND_COMMAND", Value: 1},
+ {Name: "SCSI_IOCTL_START_UNIT", Value: 5},
+ {Name: "SCSI_IOCTL_STOP_UNIT", Value: 6},
+ {Name: "SCSI_IOCTL_SYNC", Value: 4},
+ {Name: "SCSI_IOCTL_TEST_UNIT_READY", Value: 2},
{Name: "SCTP_ABORT", Value: 4},
{Name: "SCTP_ADAPTATION_LAYER", Value: 7},
{Name: "SCTP_ADDR_OVER", Value: 2},
@@ -34193,4 +34260,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_ppc64le = "155130f5e0b881de4212bf35ed02389a6df2b276"
+const revision_ppc64le = "4c81549a7b63463f240b69fb56ff9933c3762e5e"
diff --git a/sys/linux/sg.txt b/sys/linux/sg.txt
index 5d195ad54..315eed770 100644
--- a/sys/linux/sg.txt
+++ b/sys/linux/sg.txt
@@ -4,6 +4,7 @@
include <linux/types.h>
include <uapi/linux/fs.h>
include <scsi/sg.h>
+include <scsi/scsi.h>
include <scsi/scsi_ioctl.h>
include <uapi/linux/blktrace_api.h>
@@ -34,8 +35,18 @@ ioctl$SG_SET_DEBUG(fd fd_sg, cmd const[SG_SET_DEBUG], arg ptr[in, bool32])
ioctl$SG_SCSI_RESET(fd fd_sg, cmd const[SG_SCSI_RESET], arg const[0])
ioctl$SG_GET_REQUEST_TABLE(fd fd_sg, cmd const[SG_GET_REQUEST_TABLE], arg ptr[out, array[int8, SG_REQUEST_TABLE_SIZE]])
-# TODO: describe more SCSI ioctls and more to a separate file.
ioctl$SCSI_IOCTL_SEND_COMMAND(fd fd_sg, cmd const[SCSI_IOCTL_SEND_COMMAND], arg ptr[in, scsi_ioctl_command])
+ioctl$SCSI_IOCTL_TEST_UNIT_READY(fd fd_sg, cmd const[SCSI_IOCTL_TEST_UNIT_READY])
+ioctl$SCSI_IOCTL_DOORLOCK(fd fd_sg, cmd const[SCSI_IOCTL_DOORLOCK])
+ioctl$SCSI_IOCTL_DOORUNLOCK(fd fd_sg, cmd const[SCSI_IOCTL_DOORUNLOCK])
+ioctl$SCSI_IOCTL_START_UNIT(fd fd_sg, cmd const[SCSI_IOCTL_START_UNIT])
+ioctl$SCSI_IOCTL_STOP_UNIT(fd fd_sg, cmd const[SCSI_IOCTL_STOP_UNIT])
+ioctl$SCSI_IOCTL_SYNC(fd fd_sg, cmd const[SCSI_IOCTL_SYNC])
+ioctl$SCSI_IOCTL_BENCHMARK_COMMAND(fd fd_sg, cmd const[SCSI_IOCTL_BENCHMARK_COMMAND])
+ioctl$SCSI_IOCTL_GET_BUS_NUMBER(fd fd_sg, cmd const[SCSI_IOCTL_GET_BUS_NUMBER], arg ptr[out, int32])
+ioctl$SCSI_IOCTL_GET_PCI(fd fd_sg, cmd const[SCSI_IOCTL_GET_PCI], arg ptr[out, array[int8, 20]])
+ioctl$SCSI_IOCTL_PROBE_HOST(fd fd_sg, cmd const[SCSI_IOCTL_PROBE_HOST], arg ptr[out, scsi_ioctl_probe_host_out_buffer])
+ioctl$SCSI_IOCTL_GET_IDLUN(fd fd_sg, cmd const[SCSI_IOCTL_GET_IDLUN], arg ptr[out, scsi_idlun])
sg_io_hdr {
interface_id flags[sg_interface_id, int32]
@@ -86,6 +97,16 @@ scsi_ioctl_command {
data array[int8]
}
+scsi_idlun {
+ dev_id int32
+ host_unique_id int32
+}
+
+scsi_ioctl_probe_host_out_buffer {
+ len bytesize[data, int32]
+ data array[int8]
+}
+
sg_interface_id = 0, 'S'
sg_dxfer_direction = SG_DXFER_NONE, SG_DXFER_TO_DEV, SG_DXFER_FROM_DEV, SG_DXFER_TO_FROM_DEV, SG_DXFER_UNKNOWN
sg_flags = SG_FLAG_DIRECT_IO, SG_FLAG_UNUSED_LUN_INHIBIT, SG_FLAG_MMAP_IO, SG_FLAG_NO_DXFER, SG_FLAG_Q_AT_TAIL, SG_FLAG_Q_AT_HEAD
diff --git a/sys/linux/sg_386.const b/sys/linux/sg_386.const
index 0832728bb..909be09e0 100644
--- a/sys/linux/sg_386.const
+++ b/sys/linux/sg_386.const
@@ -1,5 +1,16 @@
# AUTOGENERATED FILE
+SCSI_IOCTL_BENCHMARK_COMMAND = 3
+SCSI_IOCTL_DOORLOCK = 21376
+SCSI_IOCTL_DOORUNLOCK = 21377
+SCSI_IOCTL_GET_BUS_NUMBER = 21382
+SCSI_IOCTL_GET_IDLUN = 21378
+SCSI_IOCTL_GET_PCI = 21383
+SCSI_IOCTL_PROBE_HOST = 21381
SCSI_IOCTL_SEND_COMMAND = 1
+SCSI_IOCTL_START_UNIT = 5
+SCSI_IOCTL_STOP_UNIT = 6
+SCSI_IOCTL_SYNC = 4
+SCSI_IOCTL_TEST_UNIT_READY = 2
SG_DXFER_FROM_DEV = 18446744073709551613
SG_DXFER_NONE = 18446744073709551615
SG_DXFER_TO_DEV = 18446744073709551614
diff --git a/sys/linux/sg_amd64.const b/sys/linux/sg_amd64.const
index e873582a3..96e014e26 100644
--- a/sys/linux/sg_amd64.const
+++ b/sys/linux/sg_amd64.const
@@ -1,5 +1,16 @@
# AUTOGENERATED FILE
+SCSI_IOCTL_BENCHMARK_COMMAND = 3
+SCSI_IOCTL_DOORLOCK = 21376
+SCSI_IOCTL_DOORUNLOCK = 21377
+SCSI_IOCTL_GET_BUS_NUMBER = 21382
+SCSI_IOCTL_GET_IDLUN = 21378
+SCSI_IOCTL_GET_PCI = 21383
+SCSI_IOCTL_PROBE_HOST = 21381
SCSI_IOCTL_SEND_COMMAND = 1
+SCSI_IOCTL_START_UNIT = 5
+SCSI_IOCTL_STOP_UNIT = 6
+SCSI_IOCTL_SYNC = 4
+SCSI_IOCTL_TEST_UNIT_READY = 2
SG_DXFER_FROM_DEV = 18446744073709551613
SG_DXFER_NONE = 18446744073709551615
SG_DXFER_TO_DEV = 18446744073709551614
diff --git a/sys/linux/sg_arm.const b/sys/linux/sg_arm.const
index 0832728bb..909be09e0 100644
--- a/sys/linux/sg_arm.const
+++ b/sys/linux/sg_arm.const
@@ -1,5 +1,16 @@
# AUTOGENERATED FILE
+SCSI_IOCTL_BENCHMARK_COMMAND = 3
+SCSI_IOCTL_DOORLOCK = 21376
+SCSI_IOCTL_DOORUNLOCK = 21377
+SCSI_IOCTL_GET_BUS_NUMBER = 21382
+SCSI_IOCTL_GET_IDLUN = 21378
+SCSI_IOCTL_GET_PCI = 21383
+SCSI_IOCTL_PROBE_HOST = 21381
SCSI_IOCTL_SEND_COMMAND = 1
+SCSI_IOCTL_START_UNIT = 5
+SCSI_IOCTL_STOP_UNIT = 6
+SCSI_IOCTL_SYNC = 4
+SCSI_IOCTL_TEST_UNIT_READY = 2
SG_DXFER_FROM_DEV = 18446744073709551613
SG_DXFER_NONE = 18446744073709551615
SG_DXFER_TO_DEV = 18446744073709551614
diff --git a/sys/linux/sg_arm64.const b/sys/linux/sg_arm64.const
index 893669d71..7b1c8ca87 100644
--- a/sys/linux/sg_arm64.const
+++ b/sys/linux/sg_arm64.const
@@ -1,5 +1,16 @@
# AUTOGENERATED FILE
+SCSI_IOCTL_BENCHMARK_COMMAND = 3
+SCSI_IOCTL_DOORLOCK = 21376
+SCSI_IOCTL_DOORUNLOCK = 21377
+SCSI_IOCTL_GET_BUS_NUMBER = 21382
+SCSI_IOCTL_GET_IDLUN = 21378
+SCSI_IOCTL_GET_PCI = 21383
+SCSI_IOCTL_PROBE_HOST = 21381
SCSI_IOCTL_SEND_COMMAND = 1
+SCSI_IOCTL_START_UNIT = 5
+SCSI_IOCTL_STOP_UNIT = 6
+SCSI_IOCTL_SYNC = 4
+SCSI_IOCTL_TEST_UNIT_READY = 2
SG_DXFER_FROM_DEV = 18446744073709551613
SG_DXFER_NONE = 18446744073709551615
SG_DXFER_TO_DEV = 18446744073709551614
diff --git a/sys/linux/sg_ppc64le.const b/sys/linux/sg_ppc64le.const
index c16e156e9..0bea96308 100644
--- a/sys/linux/sg_ppc64le.const
+++ b/sys/linux/sg_ppc64le.const
@@ -1,5 +1,16 @@
# AUTOGENERATED FILE
+SCSI_IOCTL_BENCHMARK_COMMAND = 3
+SCSI_IOCTL_DOORLOCK = 21376
+SCSI_IOCTL_DOORUNLOCK = 21377
+SCSI_IOCTL_GET_BUS_NUMBER = 21382
+SCSI_IOCTL_GET_IDLUN = 21378
+SCSI_IOCTL_GET_PCI = 21383
+SCSI_IOCTL_PROBE_HOST = 21381
SCSI_IOCTL_SEND_COMMAND = 1
+SCSI_IOCTL_START_UNIT = 5
+SCSI_IOCTL_STOP_UNIT = 6
+SCSI_IOCTL_SYNC = 4
+SCSI_IOCTL_TEST_UNIT_READY = 2
SG_DXFER_FROM_DEV = 18446744073709551613
SG_DXFER_NONE = 18446744073709551615
SG_DXFER_TO_DEV = 18446744073709551614