aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux/gen/amd64.go')
-rw-r--r--sys/linux/gen/amd64.go75
1 files changed, 49 insertions, 26 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 0817612d1..7ec41fd63 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -6869,36 +6869,61 @@ var structDescs_amd64 = []*KeyedStruct{
&StructType{Key: StructKey{Name: "fs_opt[\"nls\", stringnoz[codepages_names]]"}, FldName: "nls"},
}}},
{Key: StructKey{Name: "hid_descriptor_report"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_descriptor_report", IsVarlen: true}, Fields: []Type{
- &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "items", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "hid_report_item"}}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "items", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "hid_report_item_short"}}},
}}},
- {Key: StructKey{Name: "hid_report_item"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item", IsVarlen: true}, Fields: []Type{
- &UnionType{Key: StructKey{Name: "hid_report_item_short"}, FldName: "short"},
- &StructType{Key: StructKey{Name: "hid_report_item_long"}, FldName: "long"},
+ {Key: StructKey{Name: "hid_report_item_short"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short", IsVarlen: true}, Fields: []Type{
+ &UnionType{Key: StructKey{Name: "hid_report_item_short_t[HID_ITEM_TYPE_MAIN, hid_report_item_main_tags]"}, FldName: "main"},
+ &UnionType{Key: StructKey{Name: "hid_report_item_short_t[HID_ITEM_TYPE_GLOBAL, hid_report_item_global_tags]"}, FldName: "global"},
+ &UnionType{Key: StructKey{Name: "hid_report_item_short_t[HID_ITEM_TYPE_LOCAL, hid_report_item_local_tags]"}, FldName: "local"},
}}},
- {Key: StructKey{Name: "hid_report_item_long"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_long", IsVarlen: true}, Fields: []Type{
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "bSize", TypeSize: 1}, BitfieldLen: 2, BitfieldMdl: true}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "bType", TypeSize: 1}, BitfieldOff: 2, BitfieldLen: 2, BitfieldMdl: true}},
- &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bTag", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Val: 15},
- &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "bDataSize", TypeSize: 1}}, Path: []string{"data"}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_item_tags", FldName: "bLongItemTag", TypeSize: 1}}, Vals: []uint64{15, 8, 9, 11, 10, 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 7, 8, 9, 10}},
- &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}, Kind: 1, RangeEnd: 255},
+ {Key: StructKey{Name: "hid_report_item_short_012_t[HID_ITEM_TYPE_GLOBAL, hid_report_item_global_tags]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short_012_t[HID_ITEM_TYPE_GLOBAL, hid_report_item_global_tags]", IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "bSize", TypeSize: 1}, BitfieldLen: 2, BitfieldMdl: true}, Path: []string{"data"}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bType", TypeSize: 1}, BitfieldOff: 2, BitfieldLen: 2, BitfieldMdl: true}, Val: 1},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_item_global_tags", FldName: "bTag", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}, Kind: 1, RangeEnd: 2},
}}},
- {Key: StructKey{Name: "hid_report_item_short"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short", IsVarlen: true}, Fields: []Type{
- &StructType{Key: StructKey{Name: "hid_report_item_short_012"}, FldName: "item_012"},
- &StructType{Key: StructKey{Name: "hid_report_item_short_4"}, FldName: "item_4"},
+ {Key: StructKey{Name: "hid_report_item_short_012_t[HID_ITEM_TYPE_LOCAL, hid_report_item_local_tags]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short_012_t[HID_ITEM_TYPE_LOCAL, hid_report_item_local_tags]", IsVarlen: true}, Fields: []Type{
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "bSize", TypeSize: 1}, BitfieldLen: 2, BitfieldMdl: true}, Path: []string{"data"}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bType", TypeSize: 1}, BitfieldOff: 2, BitfieldLen: 2, BitfieldMdl: true}, Val: 2},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_item_local_tags", FldName: "bTag", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 7, 8, 9, 10}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}, Kind: 1, RangeEnd: 2},
}}},
- {Key: StructKey{Name: "hid_report_item_short_012"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short_012", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "hid_report_item_short_012_t[HID_ITEM_TYPE_MAIN, hid_report_item_main_tags]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short_012_t[HID_ITEM_TYPE_MAIN, hid_report_item_main_tags]", IsVarlen: true}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "bSize", TypeSize: 1}, BitfieldLen: 2, BitfieldMdl: true}, Path: []string{"data"}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_item_types", FldName: "bType", TypeSize: 1}, BitfieldOff: 2, BitfieldLen: 2, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_item_tags", FldName: "bTag", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{15, 8, 9, 11, 10, 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 7, 8, 9, 10}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bType", TypeSize: 1}, BitfieldOff: 2, BitfieldLen: 2, BitfieldMdl: true}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_item_main_tags", FldName: "bTag", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{8, 9, 11, 10, 12}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}, Kind: 1, RangeEnd: 2},
}}},
- {Key: StructKey{Name: "hid_report_item_short_4"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short_4", TypeSize: 5}, Fields: []Type{
+ {Key: StructKey{Name: "hid_report_item_short_4_t[HID_ITEM_TYPE_GLOBAL, hid_report_item_global_tags]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short_4_t[HID_ITEM_TYPE_GLOBAL, hid_report_item_global_tags]", TypeSize: 5}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bSize", TypeSize: 1}, BitfieldLen: 2, BitfieldMdl: true}, Val: 3},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_item_types", FldName: "bType", TypeSize: 1}, BitfieldOff: 2, BitfieldLen: 2, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_item_tags", FldName: "bTag", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{15, 8, 9, 11, 10, 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 7, 8, 9, 10}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bType", TypeSize: 1}, BitfieldOff: 2, BitfieldLen: 2, BitfieldMdl: true}, Val: 1},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_item_global_tags", FldName: "bTag", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 4}, Kind: 1, RangeBegin: 4, RangeEnd: 4},
}}},
+ {Key: StructKey{Name: "hid_report_item_short_4_t[HID_ITEM_TYPE_LOCAL, hid_report_item_local_tags]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short_4_t[HID_ITEM_TYPE_LOCAL, hid_report_item_local_tags]", TypeSize: 5}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bSize", TypeSize: 1}, BitfieldLen: 2, BitfieldMdl: true}, Val: 3},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bType", TypeSize: 1}, BitfieldOff: 2, BitfieldLen: 2, BitfieldMdl: true}, Val: 2},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_item_local_tags", FldName: "bTag", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 7, 8, 9, 10}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 4}, Kind: 1, RangeBegin: 4, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "hid_report_item_short_4_t[HID_ITEM_TYPE_MAIN, hid_report_item_main_tags]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short_4_t[HID_ITEM_TYPE_MAIN, hid_report_item_main_tags]", TypeSize: 5}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bSize", TypeSize: 1}, BitfieldLen: 2, BitfieldMdl: true}, Val: 3},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bType", TypeSize: 1}, BitfieldOff: 2, BitfieldLen: 2, BitfieldMdl: true}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_item_main_tags", FldName: "bTag", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{8, 9, 11, 10, 12}},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 4}, Kind: 1, RangeBegin: 4, RangeEnd: 4},
+ }}},
+ {Key: StructKey{Name: "hid_report_item_short_t[HID_ITEM_TYPE_GLOBAL, hid_report_item_global_tags]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short_t[HID_ITEM_TYPE_GLOBAL, hid_report_item_global_tags]", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "hid_report_item_short_012_t[HID_ITEM_TYPE_GLOBAL, hid_report_item_global_tags]"}, FldName: "item_012"},
+ &StructType{Key: StructKey{Name: "hid_report_item_short_4_t[HID_ITEM_TYPE_GLOBAL, hid_report_item_global_tags]"}, FldName: "item_4"},
+ }}},
+ {Key: StructKey{Name: "hid_report_item_short_t[HID_ITEM_TYPE_LOCAL, hid_report_item_local_tags]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short_t[HID_ITEM_TYPE_LOCAL, hid_report_item_local_tags]", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "hid_report_item_short_012_t[HID_ITEM_TYPE_LOCAL, hid_report_item_local_tags]"}, FldName: "item_012"},
+ &StructType{Key: StructKey{Name: "hid_report_item_short_4_t[HID_ITEM_TYPE_LOCAL, hid_report_item_local_tags]"}, FldName: "item_4"},
+ }}},
+ {Key: StructKey{Name: "hid_report_item_short_t[HID_ITEM_TYPE_MAIN, hid_report_item_main_tags]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hid_report_item_short_t[HID_ITEM_TYPE_MAIN, hid_report_item_main_tags]", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "hid_report_item_short_012_t[HID_ITEM_TYPE_MAIN, hid_report_item_main_tags]"}, FldName: "item_012"},
+ &StructType{Key: StructKey{Name: "hid_report_item_short_4_t[HID_ITEM_TYPE_MAIN, hid_report_item_main_tags]"}, FldName: "item_4"},
+ }}},
{Key: StructKey{Name: "hiddev_collection_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_collection_info", TypeSize: 16, ArgDir: 2}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4, ArgDir: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "type", TypeSize: 4, ArgDir: 2}}},
@@ -25919,7 +25944,7 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bDescriptorType", TypeSize: 1}}, Val: 5},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bEndpointAddress", TypeSize: 1}}, Val: 129},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bmAttributes", TypeSize: 1}}, Val: 3},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "wMaxPacketSize", TypeSize: 2}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "usb_max_packet_sizes", FldName: "wMaxPacketSize", TypeSize: 2}}, Vals: []uint64{8, 16, 32, 64}, BitMask: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "bInterval", TypeSize: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "bRefresh", TypeSize: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "bSynchAddress", TypeSize: 1}}},
@@ -25930,7 +25955,7 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bDescriptorType", TypeSize: 1}}, Val: 5},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bEndpointAddress", TypeSize: 1}}, Val: 2},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bmAttributes", TypeSize: 1}}, Val: 3},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "wMaxPacketSize", TypeSize: 2}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "usb_max_packet_sizes", FldName: "wMaxPacketSize", TypeSize: 2}}, Vals: []uint64{8, 16, 32, 64}, BitMask: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "bInterval", TypeSize: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "bRefresh", TypeSize: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "bSynchAddress", TypeSize: 1}}},
@@ -25941,7 +25966,7 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "bDescriptorType", TypeSize: 1}}, Val: 5},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "usb_endpoint_addresses", FldName: "bEndpointAddress", TypeSize: 1}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 128}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "usb_endpoint_attributes", FldName: "bmAttributes", TypeSize: 1}}, Vals: []uint64{0, 1, 2, 3, 0, 16, 0, 4, 8, 12, 0, 16, 16}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "wMaxPacketSize", TypeSize: 2}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "usb_max_packet_sizes", FldName: "wMaxPacketSize", TypeSize: 2}}, Vals: []uint64{8, 16, 32, 64}, BitMask: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "bInterval", TypeSize: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "bRefresh", TypeSize: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "bSynchAddress", TypeSize: 1}}},
@@ -46341,11 +46366,9 @@ var consts_amd64 = []ConstValue{
{Name: "HID_GLOBAL_ITEM_TAG_UNIT", Value: 6},
{Name: "HID_GLOBAL_ITEM_TAG_UNIT_EXPONENT", Value: 5},
{Name: "HID_GLOBAL_ITEM_TAG_USAGE_PAGE"},
- {Name: "HID_ITEM_TAG_LONG", Value: 15},
{Name: "HID_ITEM_TYPE_GLOBAL", Value: 1},
{Name: "HID_ITEM_TYPE_LOCAL", Value: 2},
{Name: "HID_ITEM_TYPE_MAIN"},
- {Name: "HID_ITEM_TYPE_RESERVED", Value: 3},
{Name: "HID_LOCAL_ITEM_TAG_DELIMITER", Value: 10},
{Name: "HID_LOCAL_ITEM_TAG_DESIGNATOR_INDEX", Value: 3},
{Name: "HID_LOCAL_ITEM_TAG_DESIGNATOR_MAXIMUM", Value: 5},
@@ -52590,4 +52613,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "db04238eb581f8d6265038791aee4c1d97cc00d2"
+const revision_amd64 = "292a4184c5acef4ffb5b6e767057652187899a00"