aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-01-24 11:07:16 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-01-24 16:49:39 +0100
commit5db97d84e9032fb37ed266873cea296ec6a6d6ce (patch)
tree7d2016644d40de296b32f31fc5032c95e74737f9 /sys/linux
parent91c9476c39826cc0dd94701540a591f4deba8b16 (diff)
sys/linux: describe trusty storage service interface
Update #933
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/gen/386.go194
-rw-r--r--sys/linux/gen/amd64.go194
-rw-r--r--sys/linux/gen/arm.go194
-rw-r--r--sys/linux/gen/arm64.go194
-rw-r--r--sys/linux/gen/ppc64le.go194
-rw-r--r--sys/linux/trusty.txt114
-rw-r--r--sys/linux/trusty_386.const11
-rw-r--r--sys/linux/trusty_amd64.const11
-rw-r--r--sys/linux/trusty_arm.const11
-rw-r--r--sys/linux/trusty_arm64.const11
-rw-r--r--sys/linux/trusty_ppc64le.const11
11 files changed, 1128 insertions, 11 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go
index cff4fa716..c91d79b4c 100644
--- a/sys/linux/gen/386.go
+++ b/sys/linux/gen/386.go
@@ -91,6 +91,7 @@ var resources_386 = []*ResourceDesc{
{Name: "fd_trusty_gatekeeper", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_gatekeeper"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_trusty_km", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_trusty_km_secure", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km_secure"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
+ {Name: "fd_trusty_storage", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_storage"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -22487,6 +22488,168 @@ var structDescs_386 = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "signature", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hardware_backed", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
}}},
+ {Key: StructKey{Name: "trusty_storage"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, FldName: "delete"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, FldName: "open"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, FldName: "close"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, FldName: "read"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, FldName: "write"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, FldName: "get_size"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, FldName: "set_size"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, FldName: "rpmb"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, FldName: "end_trans"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, FldName: "move"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, FldName: "list"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_close_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_close_req", TypeSize: 4}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_delete_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_delete_req", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_get_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_get_size_req", TypeSize: 4}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_list_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_list_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "max_count", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}, Kind: 2, RangeEnd: 7},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_move_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_move_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "old_name_len", TypeSize: 4}}, BitSize: 8, Buf: "old_new_name"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "old_new_name", IsVarlen: true}, Kind: 2, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "new_new_name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_open_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_open_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_read_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_read_req", TypeSize: 16}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_set_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_set_size_req", TypeSize: 16}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "size", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_write_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_write_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]", TypeSize: 24}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]", TypeSize: 28}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_close_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_delete_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]", TypeSize: 28}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_get_size_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 22},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_list_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_move_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_open_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]", TypeSize: 40}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_read_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]", TypeSize: 40}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_set_size_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_write_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_send_req", IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "reliable_write_size", TypeSize: 4}}, BitSize: 8, Buf: "reliable_write"},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "write_size", TypeSize: 4}}, BitSize: 8, Buf: "write"},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_read_size", FldName: "read_size", TypeSize: 4}}, Vals: []uint64{0, 512, 1024, 1536, 1536, 2048, 2560, 3072, 3584, 4096}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "reliable_write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}},
+ }}},
{Key: StructKey{Name: "tun_buffer"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tun_buffer", IsVarlen: true}, Fields: []Type{
&UnionType{Key: StructKey{Name: "optional[tun_pi]"}, FldName: "pi"},
&UnionType{Key: StructKey{Name: "optional[virtio_net_hdr]"}, FldName: "hdr"},
@@ -32033,7 +32196,7 @@ var syscalls_386 = []*Syscall{
{NR: 54, Name: "ioctl$TIPC_IOC_CONNECT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}},
}},
{NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_avb", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}},
@@ -32055,6 +32218,11 @@ var syscalls_386 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 29}, Kind: 2, Values: []string{"com.android.trusty.keymaster\x00"}}},
}},
+ {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_storage", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_storage_ports", Values: []string{"com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00"}}},
+ }},
{NR: 54, Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074287829},
@@ -34606,6 +34774,12 @@ var syscalls_386 = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ {NR: 295, Name: "openat$trusty_storage", CallName: "openat", Args: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 295, Name: "openat$tun", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/net/tun\x00"}}},
@@ -39845,6 +40019,11 @@ var syscalls_386 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "trusty_km_secure_msg"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"},
}},
+ {NR: 4, Name: "write$trusty_storage", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "trusty_storage"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"},
+ }},
{NR: 4, Name: "write$tun", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}},
@@ -45297,6 +45476,17 @@ var consts_386 = []ConstValue{
{Name: "TRUSTY_KM_UPDATE_OPERATION", Value: 8},
{Name: "TRUSTY_KM_UPGRADE_KEY", Value: 68},
{Name: "TRUSTY_KM_VERIFY_AUTHORIZATION", Value: 84},
+ {Name: "TRUSTY_STORAGE_END_TRANSACTION", Value: 18},
+ {Name: "TRUSTY_STORAGE_FILE_CLOSE", Value: 6},
+ {Name: "TRUSTY_STORAGE_FILE_DELETE", Value: 2},
+ {Name: "TRUSTY_STORAGE_FILE_GET_SIZE", Value: 12},
+ {Name: "TRUSTY_STORAGE_FILE_LIST", Value: 22},
+ {Name: "TRUSTY_STORAGE_FILE_MOVE", Value: 20},
+ {Name: "TRUSTY_STORAGE_FILE_OPEN", Value: 4},
+ {Name: "TRUSTY_STORAGE_FILE_READ", Value: 8},
+ {Name: "TRUSTY_STORAGE_FILE_SET_SIZE", Value: 14},
+ {Name: "TRUSTY_STORAGE_FILE_WRITE", Value: 10},
+ {Name: "TRUSTY_STORAGE_RPMB_SEND", Value: 16},
{Name: "TUNATTACHFILTER", Value: 1074287829},
{Name: "TUNDETACHFILTER", Value: 1074287830},
{Name: "TUNGETFEATURES", Value: 2147767503},
@@ -47092,4 +47282,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_386 = "8b4ceadf223864953d15b1689d59745ac9f1d97b"
+const revision_386 = "ef99674b7a38926844535442873c0f7e78db63a7"
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 42ae57071..f3d7c0446 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -91,6 +91,7 @@ var resources_amd64 = []*ResourceDesc{
{Name: "fd_trusty_gatekeeper", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_gatekeeper"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_trusty_km", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_trusty_km_secure", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km_secure"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
+ {Name: "fd_trusty_storage", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_storage"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -22849,6 +22850,168 @@ var structDescs_amd64 = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "signature", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hardware_backed", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
}}},
+ {Key: StructKey{Name: "trusty_storage"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, FldName: "delete"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, FldName: "open"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, FldName: "close"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, FldName: "read"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, FldName: "write"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, FldName: "get_size"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, FldName: "set_size"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, FldName: "rpmb"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, FldName: "end_trans"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, FldName: "move"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, FldName: "list"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_close_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_close_req", TypeSize: 4}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_delete_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_delete_req", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_get_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_get_size_req", TypeSize: 4}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_list_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_list_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "max_count", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}, Kind: 2, RangeEnd: 7},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_move_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_move_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "old_name_len", TypeSize: 4}}, BitSize: 8, Buf: "old_new_name"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "old_new_name", IsVarlen: true}, Kind: 2, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "new_new_name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_open_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_open_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_read_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_read_req", TypeSize: 16}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_set_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_set_size_req", TypeSize: 16}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "size", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_write_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_write_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]", TypeSize: 24}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]", TypeSize: 28}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_close_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_delete_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]", TypeSize: 28}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_get_size_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 22},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_list_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_move_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_open_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]", TypeSize: 40}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_read_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]", TypeSize: 40}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_set_size_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_write_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_send_req", IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "reliable_write_size", TypeSize: 4}}, BitSize: 8, Buf: "reliable_write"},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "write_size", TypeSize: 4}}, BitSize: 8, Buf: "write"},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_read_size", FldName: "read_size", TypeSize: 4}}, Vals: []uint64{0, 512, 1024, 1536, 1536, 2048, 2560, 3072, 3584, 4096}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "reliable_write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}},
+ }}},
{Key: StructKey{Name: "tun_buffer"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tun_buffer", IsVarlen: true}, Fields: []Type{
&UnionType{Key: StructKey{Name: "optional[tun_pi]"}, FldName: "pi"},
&UnionType{Key: StructKey{Name: "optional[virtio_net_hdr]"}, FldName: "hdr"},
@@ -32540,7 +32703,7 @@ var syscalls_amd64 = []*Syscall{
{NR: 16, Name: "ioctl$TIPC_IOC_CONNECT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}},
}},
{NR: 16, Name: "ioctl$TIPC_IOC_CONNECT_avb", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}},
@@ -32562,6 +32725,11 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 29}, Kind: 2, Values: []string{"com.android.trusty.keymaster\x00"}}},
}},
+ {NR: 16, Name: "ioctl$TIPC_IOC_CONNECT_storage", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_storage_ports", Values: []string{"com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00"}}},
+ }},
{NR: 16, Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074812117},
@@ -35113,6 +35281,12 @@ var syscalls_amd64 = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ {NR: 257, Name: "openat$trusty_storage", CallName: "openat", Args: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 257, Name: "openat$tun", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/net/tun\x00"}}},
@@ -40357,6 +40531,11 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "trusty_km_secure_msg"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"},
}},
+ {NR: 1, Name: "write$trusty_storage", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_storage"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"},
+ }},
{NR: 1, Name: "write$tun", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}},
@@ -45823,6 +46002,17 @@ var consts_amd64 = []ConstValue{
{Name: "TRUSTY_KM_UPDATE_OPERATION", Value: 8},
{Name: "TRUSTY_KM_UPGRADE_KEY", Value: 68},
{Name: "TRUSTY_KM_VERIFY_AUTHORIZATION", Value: 84},
+ {Name: "TRUSTY_STORAGE_END_TRANSACTION", Value: 18},
+ {Name: "TRUSTY_STORAGE_FILE_CLOSE", Value: 6},
+ {Name: "TRUSTY_STORAGE_FILE_DELETE", Value: 2},
+ {Name: "TRUSTY_STORAGE_FILE_GET_SIZE", Value: 12},
+ {Name: "TRUSTY_STORAGE_FILE_LIST", Value: 22},
+ {Name: "TRUSTY_STORAGE_FILE_MOVE", Value: 20},
+ {Name: "TRUSTY_STORAGE_FILE_OPEN", Value: 4},
+ {Name: "TRUSTY_STORAGE_FILE_READ", Value: 8},
+ {Name: "TRUSTY_STORAGE_FILE_SET_SIZE", Value: 14},
+ {Name: "TRUSTY_STORAGE_FILE_WRITE", Value: 10},
+ {Name: "TRUSTY_STORAGE_RPMB_SEND", Value: 16},
{Name: "TUNATTACHFILTER", Value: 1074812117},
{Name: "TUNDETACHFILTER", Value: 1074812118},
{Name: "TUNGETFEATURES", Value: 2147767503},
@@ -47619,4 +47809,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "500c7bc6de19838af5ea3773877b28e9c9c3ea06"
+const revision_amd64 = "967577a619d816cf7f54ea5962c337b5247f34e6"
diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go
index e6792df9f..060627f59 100644
--- a/sys/linux/gen/arm.go
+++ b/sys/linux/gen/arm.go
@@ -91,6 +91,7 @@ var resources_arm = []*ResourceDesc{
{Name: "fd_trusty_gatekeeper", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_gatekeeper"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_trusty_km", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_trusty_km_secure", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km_secure"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
+ {Name: "fd_trusty_storage", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_storage"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -22309,6 +22310,168 @@ var structDescs_arm = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "signature", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hardware_backed", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
}}},
+ {Key: StructKey{Name: "trusty_storage"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, FldName: "delete"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, FldName: "open"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, FldName: "close"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, FldName: "read"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, FldName: "write"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, FldName: "get_size"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, FldName: "set_size"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, FldName: "rpmb"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, FldName: "end_trans"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, FldName: "move"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, FldName: "list"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_close_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_close_req", TypeSize: 4}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_delete_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_delete_req", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_get_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_get_size_req", TypeSize: 4}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_list_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_list_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "max_count", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}, Kind: 2, RangeEnd: 7},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_move_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_move_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "old_name_len", TypeSize: 4}}, BitSize: 8, Buf: "old_new_name"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "old_new_name", IsVarlen: true}, Kind: 2, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "new_new_name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_open_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_open_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_read_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_read_req", TypeSize: 16}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_set_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_set_size_req", TypeSize: 16}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "size", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_write_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_write_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]", TypeSize: 24}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]", TypeSize: 28}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_close_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_delete_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]", TypeSize: 28}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_get_size_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 22},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_list_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_move_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_open_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]", TypeSize: 40}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_read_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]", TypeSize: 40}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_set_size_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_write_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_send_req", IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "reliable_write_size", TypeSize: 4}}, BitSize: 8, Buf: "reliable_write"},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "write_size", TypeSize: 4}}, BitSize: 8, Buf: "write"},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_read_size", FldName: "read_size", TypeSize: 4}}, Vals: []uint64{0, 512, 1024, 1536, 1536, 2048, 2560, 3072, 3584, 4096}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "reliable_write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}},
+ }}},
{Key: StructKey{Name: "tun_buffer"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tun_buffer", IsVarlen: true}, Fields: []Type{
&UnionType{Key: StructKey{Name: "optional[tun_pi]"}, FldName: "pi"},
&UnionType{Key: StructKey{Name: "optional[virtio_net_hdr]"}, FldName: "hdr"},
@@ -31727,7 +31890,7 @@ var syscalls_arm = []*Syscall{
{NR: 54, Name: "ioctl$TIPC_IOC_CONNECT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}},
}},
{NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_avb", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}},
@@ -31749,6 +31912,11 @@ var syscalls_arm = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 29}, Kind: 2, Values: []string{"com.android.trusty.keymaster\x00"}}},
}},
+ {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_storage", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074033280},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_storage_ports", Values: []string{"com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00"}}},
+ }},
{NR: 54, Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074287829},
@@ -34272,6 +34440,12 @@ var syscalls_arm = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ {NR: 322, Name: "openat$trusty_storage", CallName: "openat", Args: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 322, Name: "openat$tun", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/net/tun\x00"}}},
@@ -39499,6 +39673,11 @@ var syscalls_arm = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "trusty_km_secure_msg"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"},
}},
+ {NR: 4, Name: "write$trusty_storage", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "trusty_storage"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "msg"},
+ }},
{NR: 4, Name: "write$tun", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}},
@@ -44890,6 +45069,17 @@ var consts_arm = []ConstValue{
{Name: "TRUSTY_KM_UPDATE_OPERATION", Value: 8},
{Name: "TRUSTY_KM_UPGRADE_KEY", Value: 68},
{Name: "TRUSTY_KM_VERIFY_AUTHORIZATION", Value: 84},
+ {Name: "TRUSTY_STORAGE_END_TRANSACTION", Value: 18},
+ {Name: "TRUSTY_STORAGE_FILE_CLOSE", Value: 6},
+ {Name: "TRUSTY_STORAGE_FILE_DELETE", Value: 2},
+ {Name: "TRUSTY_STORAGE_FILE_GET_SIZE", Value: 12},
+ {Name: "TRUSTY_STORAGE_FILE_LIST", Value: 22},
+ {Name: "TRUSTY_STORAGE_FILE_MOVE", Value: 20},
+ {Name: "TRUSTY_STORAGE_FILE_OPEN", Value: 4},
+ {Name: "TRUSTY_STORAGE_FILE_READ", Value: 8},
+ {Name: "TRUSTY_STORAGE_FILE_SET_SIZE", Value: 14},
+ {Name: "TRUSTY_STORAGE_FILE_WRITE", Value: 10},
+ {Name: "TRUSTY_STORAGE_RPMB_SEND", Value: 16},
{Name: "TUNATTACHFILTER", Value: 1074287829},
{Name: "TUNDETACHFILTER", Value: 1074287830},
{Name: "TUNGETFEATURES", Value: 2147767503},
@@ -46675,4 +46865,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm = "414cbfb7f7d9453f4037bf1097b908dc37f73905"
+const revision_arm = "03db1fe7cf7f9f84aeead0cb002e09b648fe4805"
diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go
index 78da87cca..a112eb9e8 100644
--- a/sys/linux/gen/arm64.go
+++ b/sys/linux/gen/arm64.go
@@ -91,6 +91,7 @@ var resources_arm64 = []*ResourceDesc{
{Name: "fd_trusty_gatekeeper", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_gatekeeper"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_trusty_km", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_trusty_km_secure", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km_secure"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
+ {Name: "fd_trusty_storage", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_storage"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -22666,6 +22667,168 @@ var structDescs_arm64 = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "signature", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hardware_backed", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
}}},
+ {Key: StructKey{Name: "trusty_storage"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, FldName: "delete"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, FldName: "open"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, FldName: "close"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, FldName: "read"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, FldName: "write"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, FldName: "get_size"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, FldName: "set_size"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, FldName: "rpmb"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, FldName: "end_trans"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, FldName: "move"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, FldName: "list"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_close_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_close_req", TypeSize: 4}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_delete_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_delete_req", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_get_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_get_size_req", TypeSize: 4}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_list_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_list_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "max_count", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}, Kind: 2, RangeEnd: 7},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_move_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_move_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "old_name_len", TypeSize: 4}}, BitSize: 8, Buf: "old_new_name"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "old_new_name", IsVarlen: true}, Kind: 2, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "new_new_name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_open_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_open_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_read_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_read_req", TypeSize: 16}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_set_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_set_size_req", TypeSize: 16}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "size", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_write_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_write_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]", TypeSize: 24}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]", TypeSize: 28}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_close_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_delete_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]", TypeSize: 28}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_get_size_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 22},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_list_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_move_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_open_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]", TypeSize: 40}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_read_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]", TypeSize: 40}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_set_size_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_write_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_send_req", IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "reliable_write_size", TypeSize: 4}}, BitSize: 8, Buf: "reliable_write"},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "write_size", TypeSize: 4}}, BitSize: 8, Buf: "write"},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_read_size", FldName: "read_size", TypeSize: 4}}, Vals: []uint64{0, 512, 1024, 1536, 1536, 2048, 2560, 3072, 3584, 4096}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "reliable_write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}},
+ }}},
{Key: StructKey{Name: "tun_buffer"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tun_buffer", IsVarlen: true}, Fields: []Type{
&UnionType{Key: StructKey{Name: "optional[tun_pi]"}, FldName: "pi"},
&UnionType{Key: StructKey{Name: "optional[virtio_net_hdr]"}, FldName: "hdr"},
@@ -32137,7 +32300,7 @@ var syscalls_arm64 = []*Syscall{
{NR: 29, Name: "ioctl$TIPC_IOC_CONNECT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}},
}},
{NR: 29, Name: "ioctl$TIPC_IOC_CONNECT_avb", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}},
@@ -32159,6 +32322,11 @@ var syscalls_arm64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 29}, Kind: 2, Values: []string{"com.android.trusty.keymaster\x00"}}},
}},
+ {NR: 29, Name: "ioctl$TIPC_IOC_CONNECT_storage", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_storage_ports", Values: []string{"com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00"}}},
+ }},
{NR: 29, Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074812117},
@@ -34645,6 +34813,12 @@ var syscalls_arm64 = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ {NR: 56, Name: "openat$trusty_storage", CallName: "openat", Args: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 56, Name: "openat$tun", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/net/tun\x00"}}},
@@ -39812,6 +39986,11 @@ var syscalls_arm64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "trusty_km_secure_msg"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"},
}},
+ {NR: 64, Name: "write$trusty_storage", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_storage"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"},
+ }},
{NR: 64, Name: "write$tun", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}},
@@ -45222,6 +45401,17 @@ var consts_arm64 = []ConstValue{
{Name: "TRUSTY_KM_UPDATE_OPERATION", Value: 8},
{Name: "TRUSTY_KM_UPGRADE_KEY", Value: 68},
{Name: "TRUSTY_KM_VERIFY_AUTHORIZATION", Value: 84},
+ {Name: "TRUSTY_STORAGE_END_TRANSACTION", Value: 18},
+ {Name: "TRUSTY_STORAGE_FILE_CLOSE", Value: 6},
+ {Name: "TRUSTY_STORAGE_FILE_DELETE", Value: 2},
+ {Name: "TRUSTY_STORAGE_FILE_GET_SIZE", Value: 12},
+ {Name: "TRUSTY_STORAGE_FILE_LIST", Value: 22},
+ {Name: "TRUSTY_STORAGE_FILE_MOVE", Value: 20},
+ {Name: "TRUSTY_STORAGE_FILE_OPEN", Value: 4},
+ {Name: "TRUSTY_STORAGE_FILE_READ", Value: 8},
+ {Name: "TRUSTY_STORAGE_FILE_SET_SIZE", Value: 14},
+ {Name: "TRUSTY_STORAGE_FILE_WRITE", Value: 10},
+ {Name: "TRUSTY_STORAGE_RPMB_SEND", Value: 16},
{Name: "TUNATTACHFILTER", Value: 1074812117},
{Name: "TUNDETACHFILTER", Value: 1074812118},
{Name: "TUNGETFEATURES", Value: 2147767503},
@@ -46977,4 +47167,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm64 = "af45f2618b94c99d583082584da8785e0a2f4ea0"
+const revision_arm64 = "199a3c175e09859a222d80cbaf97b19436cbee6f"
diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go
index d1ce7123e..8c5bd8edb 100644
--- a/sys/linux/gen/ppc64le.go
+++ b/sys/linux/gen/ppc64le.go
@@ -90,6 +90,7 @@ var resources_ppc64le = []*ResourceDesc{
{Name: "fd_trusty_gatekeeper", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_gatekeeper"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_trusty_km", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_trusty_km_secure", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km_secure"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
+ {Name: "fd_trusty_storage", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_storage"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -22539,6 +22540,168 @@ var structDescs_ppc64le = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "signature", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hardware_backed", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
}}},
+ {Key: StructKey{Name: "trusty_storage"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, FldName: "delete"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, FldName: "open"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, FldName: "close"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, FldName: "read"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, FldName: "write"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, FldName: "get_size"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, FldName: "set_size"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, FldName: "rpmb"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, FldName: "end_trans"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, FldName: "move"},
+ &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, FldName: "list"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_close_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_close_req", TypeSize: 4}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_delete_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_delete_req", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_get_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_get_size_req", TypeSize: 4}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_list_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_list_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "max_count", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}, Kind: 2, RangeEnd: 7},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_move_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_move_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "old_name_len", TypeSize: 4}}, BitSize: 8, Buf: "old_new_name"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "old_new_name", IsVarlen: true}, Kind: 2, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "new_new_name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_open_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_open_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_read_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_read_req", TypeSize: 16}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_set_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_set_size_req", TypeSize: 16}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "size", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_file_write_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_write_req", IsVarlen: true}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]", TypeSize: 24}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]", TypeSize: 28}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_close_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_delete_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]", TypeSize: 28}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_get_size_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 22},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_list_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_move_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_open_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]", TypeSize: 40}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_read_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]", TypeSize: 40}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_set_size_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_file_write_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, FldName: "payload"},
+ }}},
+ {Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_send_req", IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "reliable_write_size", TypeSize: 4}}, BitSize: 8, Buf: "reliable_write"},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "write_size", TypeSize: 4}}, BitSize: 8, Buf: "write"},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_read_size", FldName: "read_size", TypeSize: 4}}, Vals: []uint64{0, 512, 1024, 1536, 1536, 2048, 2560, 3072, 3584, 4096}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "reliable_write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}},
+ }}},
{Key: StructKey{Name: "tun_buffer"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tun_buffer", IsVarlen: true}, Fields: []Type{
&UnionType{Key: StructKey{Name: "optional[tun_pi]"}, FldName: "pi"},
&UnionType{Key: StructKey{Name: "optional[virtio_net_hdr]"}, FldName: "hdr"},
@@ -31176,7 +31339,7 @@ var syscalls_ppc64le = []*Syscall{
{NR: 54, Name: "ioctl$TIPC_IOC_CONNECT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148037248},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}},
}},
{NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_avb", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}},
@@ -31198,6 +31361,11 @@ var syscalls_ppc64le = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148037248},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 29}, Kind: 2, Values: []string{"com.android.trusty.keymaster\x00"}}},
}},
+ {NR: 54, Name: "ioctl$TIPC_IOC_CONNECT_storage", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148037248},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_storage_ports", Values: []string{"com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00"}}},
+ }},
{NR: 54, Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148553941},
@@ -33244,6 +33412,12 @@ var syscalls_ppc64le = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ {NR: 286, Name: "openat$trusty_storage", CallName: "openat", Args: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 286, Name: "openat$tun", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/net/tun\x00"}}},
@@ -38474,6 +38648,11 @@ var syscalls_ppc64le = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "trusty_km_secure_msg"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"},
}},
+ {NR: 4, Name: "write$trusty_storage", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_storage"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"},
+ }},
{NR: 4, Name: "write$tun", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}},
@@ -43766,6 +43945,17 @@ var consts_ppc64le = []ConstValue{
{Name: "TRUSTY_KM_UPDATE_OPERATION", Value: 8},
{Name: "TRUSTY_KM_UPGRADE_KEY", Value: 68},
{Name: "TRUSTY_KM_VERIFY_AUTHORIZATION", Value: 84},
+ {Name: "TRUSTY_STORAGE_END_TRANSACTION", Value: 18},
+ {Name: "TRUSTY_STORAGE_FILE_CLOSE", Value: 6},
+ {Name: "TRUSTY_STORAGE_FILE_DELETE", Value: 2},
+ {Name: "TRUSTY_STORAGE_FILE_GET_SIZE", Value: 12},
+ {Name: "TRUSTY_STORAGE_FILE_LIST", Value: 22},
+ {Name: "TRUSTY_STORAGE_FILE_MOVE", Value: 20},
+ {Name: "TRUSTY_STORAGE_FILE_OPEN", Value: 4},
+ {Name: "TRUSTY_STORAGE_FILE_READ", Value: 8},
+ {Name: "TRUSTY_STORAGE_FILE_SET_SIZE", Value: 14},
+ {Name: "TRUSTY_STORAGE_FILE_WRITE", Value: 10},
+ {Name: "TRUSTY_STORAGE_RPMB_SEND", Value: 16},
{Name: "TUNATTACHFILTER", Value: 2148553941},
{Name: "TUNDETACHFILTER", Value: 2148553942},
{Name: "TUNGETFEATURES", Value: 1074025679},
@@ -44613,4 +44803,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_ppc64le = "17d7600b015d97bd96d700574c983101c89e7387"
+const revision_ppc64le = "4c347d3d3b8fe455b6eacc8b53381f0993792df3"
diff --git a/sys/linux/trusty.txt b/sys/linux/trusty.txt
index 3c1dba8da..4efa57b38 100644
--- a/sys/linux/trusty.txt
+++ b/sys/linux/trusty.txt
@@ -13,7 +13,7 @@ ioctl$TIPC_IOC_CONNECT(fd fd_trusty, cmd const[TIPC_IOC_CONNECT], arg ptr[in, st
write$trusty(fd fd_trusty, msg ptr[in, array[int8]], len len[msg])
# TODO: describe interface for the rest of ports.
-trusty_ports = "com.android.trusty.gatekeeper", "com.android.trusty.keymaster", "com.android.trusty.keymaster.secure", "com.android.trusty.avb", "com.android.trusty.storage.proxy", "com.android.trusty.hwrng", "com.android.trusty.storage.client.td", "com.android.trusty.storage.client.tdea", "com.android.trusty.storage.client.tp", "com.android.trusty.storage.proxy", "com.android.trusty.hwkey", "com.android.trusty.appmgmt.srv2.start"
+trusty_ports = "com.android.trusty.gatekeeper", "com.android.trusty.keymaster", "com.android.trusty.keymaster.secure", "com.android.trusty.avb", "com.android.trusty.storage.proxy", "com.android.trusty.storage.client.td", "com.android.trusty.storage.client.tdea", "com.android.trusty.storage.client.tp", "com.android.trusty.hwkey", "com.android.trusty.hwrng", "com.android.trusty.appmgmt.srv2.start"
trusty_open_flags = O_RDWR, O_RDWR_NONBLOCK
@@ -352,3 +352,115 @@ define TRUSTY_AVB_WRITE_PERMANENT_ATTRIBUTES 4 << TRUSTY_AVB_REQ_SHIFT
define TRUSTY_AVB_READ_LOCK_STATE 5 << TRUSTY_AVB_REQ_SHIFT
define TRUSTY_AVB_WRITE_LOCK_STATE 6 << TRUSTY_AVB_REQ_SHIFT
define TRUSTY_AVB_LOCK_BOOT_STATE 7 << TRUSTY_AVB_REQ_SHIFT
+
+### storage ###
+
+resource fd_trusty_storage[fd_trusty]
+
+openat$trusty_storage(fd const[AT_FDCWD], file ptr[in, string["/dev/trusty-ipc-dev0"]], flags flags[trusty_open_flags], mode const[0]) fd_trusty_storage
+ioctl$TIPC_IOC_CONNECT_storage(fd fd_trusty_storage, cmd const[TIPC_IOC_CONNECT], arg ptr[in, string[trusty_storage_ports]])
+write$trusty_storage(fd fd_trusty_storage, msg ptr[in, trusty_storage], len len[msg])
+
+trusty_storage_ports = "com.android.trusty.storage.proxy", "com.android.trusty.storage.client.td", "com.android.trusty.storage.client.tdea", "com.android.trusty.storage.client.tp"
+
+trusty_storage [
+ delete trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]
+ open trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]
+ close trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]
+ read trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]
+ write trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]
+ get_size trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]
+ set_size trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]
+ rpmb trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]
+ end_trans trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]
+ move trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]
+ list trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]
+] [varlen]
+
+type trusty_storage_msg[CMD, PAYLOAD] {
+ cmd const[CMD, int32]
+ op_id int32[0:4]
+ flags int32[0:7]
+ size bytesize[parent, int32]
+# TODO: this is only output, right?
+ result const[0, int32]
+ __reserved const[0, int32]
+ payload PAYLOAD
+}
+
+define TRUSTY_STORAGE_FILE_DELETE 1 << 1
+define TRUSTY_STORAGE_FILE_OPEN 2 << 1
+define TRUSTY_STORAGE_FILE_CLOSE 3 << 1
+define TRUSTY_STORAGE_FILE_READ 4 << 1
+define TRUSTY_STORAGE_FILE_WRITE 5 << 1
+define TRUSTY_STORAGE_FILE_GET_SIZE 6 << 1
+define TRUSTY_STORAGE_FILE_SET_SIZE 7 << 1
+define TRUSTY_STORAGE_RPMB_SEND 8 << 1
+define TRUSTY_STORAGE_END_TRANSACTION 9 << 1
+define TRUSTY_STORAGE_FILE_MOVE 10 << 1
+define TRUSTY_STORAGE_FILE_LIST 11 << 1
+
+# Server returns handles in responses to requests, we don't parse them, so we just use int32 for now.
+type trusty_storage_handle int32[0:4]
+
+trusty_storage_file_delete_req {
+ flags const[0, int32]
+ name stringnoz
+}
+
+trusty_storage_file_move_req {
+ flags int32[0:7]
+ handle trusty_storage_handle
+ old_name_len bytesize[old_new_name, int32]
+ old_new_name stringnoz
+ new_new_name stringnoz
+} [packed]
+
+trusty_storage_file_open_req {
+ flags int32[0:7]
+ name stringnoz
+}
+
+trusty_storage_file_close_req {
+ handle trusty_storage_handle
+}
+
+trusty_storage_file_read_req {
+ handle trusty_storage_handle
+ size int32
+ offset int64
+}
+
+trusty_storage_file_write_req {
+ offset int64
+ handle trusty_storage_handle
+ __reserved const[0, int32]
+ data array[int8]
+}
+
+trusty_storage_file_list_req {
+ max_count int8
+ flags int8[0:7]
+ name stringnoz
+}
+
+trusty_storage_file_get_size_req {
+ handle trusty_storage_handle
+}
+
+trusty_storage_file_set_size_req {
+ size int64
+ handle trusty_storage_handle
+}
+
+trusty_storage_rpmb_send_req {
+ reliable_write_size bytesize[reliable_write, int32]
+ write_size bytesize[write, int32]
+ read_size flags[trusty_storage_rpmb_read_size, int32]
+ __reserved const[0, int32]
+ reliable_write array[array[const[0, int8], 512]]
+ write array[array[const[0, int8], 512]]
+} [packed]
+
+# NEED: this should be a 512-aligned int in range [0:4096]
+trusty_storage_rpmb_read_size = 0, 512, 1024, 1536, 1536, 2048, 2560, 3072, 3584, 4096
diff --git a/sys/linux/trusty_386.const b/sys/linux/trusty_386.const
index c5dbf0b58..ed69fc1d4 100644
--- a/sys/linux/trusty_386.const
+++ b/sys/linux/trusty_386.const
@@ -56,6 +56,17 @@ TRUSTY_KM_ULONG_REP = 2684354560
TRUSTY_KM_UPDATE_OPERATION = 8
TRUSTY_KM_UPGRADE_KEY = 68
TRUSTY_KM_VERIFY_AUTHORIZATION = 84
+TRUSTY_STORAGE_END_TRANSACTION = 18
+TRUSTY_STORAGE_FILE_CLOSE = 6
+TRUSTY_STORAGE_FILE_DELETE = 2
+TRUSTY_STORAGE_FILE_GET_SIZE = 12
+TRUSTY_STORAGE_FILE_LIST = 22
+TRUSTY_STORAGE_FILE_MOVE = 20
+TRUSTY_STORAGE_FILE_OPEN = 4
+TRUSTY_STORAGE_FILE_READ = 8
+TRUSTY_STORAGE_FILE_SET_SIZE = 14
+TRUSTY_STORAGE_FILE_WRITE = 10
+TRUSTY_STORAGE_RPMB_SEND = 16
__NR_ioctl = 54
__NR_openat = 295
__NR_write = 4
diff --git a/sys/linux/trusty_amd64.const b/sys/linux/trusty_amd64.const
index 923782c6d..d17106105 100644
--- a/sys/linux/trusty_amd64.const
+++ b/sys/linux/trusty_amd64.const
@@ -56,6 +56,17 @@ TRUSTY_KM_ULONG_REP = 2684354560
TRUSTY_KM_UPDATE_OPERATION = 8
TRUSTY_KM_UPGRADE_KEY = 68
TRUSTY_KM_VERIFY_AUTHORIZATION = 84
+TRUSTY_STORAGE_END_TRANSACTION = 18
+TRUSTY_STORAGE_FILE_CLOSE = 6
+TRUSTY_STORAGE_FILE_DELETE = 2
+TRUSTY_STORAGE_FILE_GET_SIZE = 12
+TRUSTY_STORAGE_FILE_LIST = 22
+TRUSTY_STORAGE_FILE_MOVE = 20
+TRUSTY_STORAGE_FILE_OPEN = 4
+TRUSTY_STORAGE_FILE_READ = 8
+TRUSTY_STORAGE_FILE_SET_SIZE = 14
+TRUSTY_STORAGE_FILE_WRITE = 10
+TRUSTY_STORAGE_RPMB_SEND = 16
__NR_ioctl = 16
__NR_openat = 257
__NR_write = 1
diff --git a/sys/linux/trusty_arm.const b/sys/linux/trusty_arm.const
index 7c69de7d9..b25c93b1f 100644
--- a/sys/linux/trusty_arm.const
+++ b/sys/linux/trusty_arm.const
@@ -56,6 +56,17 @@ TRUSTY_KM_ULONG_REP = 2684354560
TRUSTY_KM_UPDATE_OPERATION = 8
TRUSTY_KM_UPGRADE_KEY = 68
TRUSTY_KM_VERIFY_AUTHORIZATION = 84
+TRUSTY_STORAGE_END_TRANSACTION = 18
+TRUSTY_STORAGE_FILE_CLOSE = 6
+TRUSTY_STORAGE_FILE_DELETE = 2
+TRUSTY_STORAGE_FILE_GET_SIZE = 12
+TRUSTY_STORAGE_FILE_LIST = 22
+TRUSTY_STORAGE_FILE_MOVE = 20
+TRUSTY_STORAGE_FILE_OPEN = 4
+TRUSTY_STORAGE_FILE_READ = 8
+TRUSTY_STORAGE_FILE_SET_SIZE = 14
+TRUSTY_STORAGE_FILE_WRITE = 10
+TRUSTY_STORAGE_RPMB_SEND = 16
__NR_ioctl = 54
__NR_openat = 322
__NR_write = 4
diff --git a/sys/linux/trusty_arm64.const b/sys/linux/trusty_arm64.const
index 0a4898347..31207730e 100644
--- a/sys/linux/trusty_arm64.const
+++ b/sys/linux/trusty_arm64.const
@@ -56,6 +56,17 @@ TRUSTY_KM_ULONG_REP = 2684354560
TRUSTY_KM_UPDATE_OPERATION = 8
TRUSTY_KM_UPGRADE_KEY = 68
TRUSTY_KM_VERIFY_AUTHORIZATION = 84
+TRUSTY_STORAGE_END_TRANSACTION = 18
+TRUSTY_STORAGE_FILE_CLOSE = 6
+TRUSTY_STORAGE_FILE_DELETE = 2
+TRUSTY_STORAGE_FILE_GET_SIZE = 12
+TRUSTY_STORAGE_FILE_LIST = 22
+TRUSTY_STORAGE_FILE_MOVE = 20
+TRUSTY_STORAGE_FILE_OPEN = 4
+TRUSTY_STORAGE_FILE_READ = 8
+TRUSTY_STORAGE_FILE_SET_SIZE = 14
+TRUSTY_STORAGE_FILE_WRITE = 10
+TRUSTY_STORAGE_RPMB_SEND = 16
__NR_ioctl = 29
__NR_openat = 56
__NR_write = 64
diff --git a/sys/linux/trusty_ppc64le.const b/sys/linux/trusty_ppc64le.const
index 0f196d2f8..ae09594a8 100644
--- a/sys/linux/trusty_ppc64le.const
+++ b/sys/linux/trusty_ppc64le.const
@@ -56,6 +56,17 @@ TRUSTY_KM_ULONG_REP = 2684354560
TRUSTY_KM_UPDATE_OPERATION = 8
TRUSTY_KM_UPGRADE_KEY = 68
TRUSTY_KM_VERIFY_AUTHORIZATION = 84
+TRUSTY_STORAGE_END_TRANSACTION = 18
+TRUSTY_STORAGE_FILE_CLOSE = 6
+TRUSTY_STORAGE_FILE_DELETE = 2
+TRUSTY_STORAGE_FILE_GET_SIZE = 12
+TRUSTY_STORAGE_FILE_LIST = 22
+TRUSTY_STORAGE_FILE_MOVE = 20
+TRUSTY_STORAGE_FILE_OPEN = 4
+TRUSTY_STORAGE_FILE_READ = 8
+TRUSTY_STORAGE_FILE_SET_SIZE = 14
+TRUSTY_STORAGE_FILE_WRITE = 10
+TRUSTY_STORAGE_RPMB_SEND = 16
__NR_ioctl = 54
__NR_openat = 286
__NR_write = 4