aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-10-08 15:52:10 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-10-08 16:06:26 +0200
commit2ab6c4a4571d4170b0009a5b14b9789b016814b6 (patch)
tree082d60d764ceed201efbb87e7163463ec152c8dc /sys/linux
parentec9371342725651d5d2f461abde83fbe3cf8eee9 (diff)
sys/linux: improve i2c descriptions a bit
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/dev_i2c.txt12
-rw-r--r--sys/linux/dev_i2c_386.const3
-rw-r--r--sys/linux/dev_i2c_amd64.const3
-rw-r--r--sys/linux/dev_i2c_arm.const3
-rw-r--r--sys/linux/dev_i2c_arm64.const3
-rw-r--r--sys/linux/dev_i2c_ppc64le.const3
-rw-r--r--sys/linux/gen/386.go12
-rw-r--r--sys/linux/gen/amd64.go12
-rw-r--r--sys/linux/gen/arm.go12
-rw-r--r--sys/linux/gen/arm64.go12
-rw-r--r--sys/linux/gen/ppc64le.go12
11 files changed, 46 insertions, 41 deletions
diff --git a/sys/linux/dev_i2c.txt b/sys/linux/dev_i2c.txt
index cf7d657f5..e2e537191 100644
--- a/sys/linux/dev_i2c.txt
+++ b/sys/linux/dev_i2c.txt
@@ -4,7 +4,8 @@
include <uapi/linux/i2c-dev.h>
include <uapi/linux/i2c.h>
-define I2C_MAX_BLOCK (I2C_SMBUS_BLOCK_MAX + 2)
+define I2C_MAX_BLOCK_1 (I2C_SMBUS_BLOCK_MAX + 1)
+define I2C_MAX_BLOCK_2 (I2C_SMBUS_BLOCK_MAX + 2)
resource fd_i2c[fd]
@@ -28,11 +29,10 @@ i2c_smbus_ioctl_data {
data ptr[in, i2c_smbus_data]
}
-i2c_smbus_data [
- byte int8
- word int16
- block array[int8, I2C_MAX_BLOCK]
-]
+i2c_smbus_data {
+ size int8[0:I2C_MAX_BLOCK_2]
+ block array[int8, I2C_MAX_BLOCK_1]
+}
i2c_rdwr_ioctl_data {
msgs ptr[in, array[i2c_msg]]
diff --git a/sys/linux/dev_i2c_386.const b/sys/linux/dev_i2c_386.const
index 70ba6e768..fb4463a2d 100644
--- a/sys/linux/dev_i2c_386.const
+++ b/sys/linux/dev_i2c_386.const
@@ -1,6 +1,7 @@
# AUTOGENERATED FILE
I2C_FUNCS = 1797
-I2C_MAX_BLOCK = 34
+I2C_MAX_BLOCK_1 = 33
+I2C_MAX_BLOCK_2 = 34
I2C_M_DMA_SAFE = 512
I2C_M_IGNORE_NAK = 4096
I2C_M_NOSTART = 16384
diff --git a/sys/linux/dev_i2c_amd64.const b/sys/linux/dev_i2c_amd64.const
index fc24bda65..e0978e05f 100644
--- a/sys/linux/dev_i2c_amd64.const
+++ b/sys/linux/dev_i2c_amd64.const
@@ -1,6 +1,7 @@
# AUTOGENERATED FILE
I2C_FUNCS = 1797
-I2C_MAX_BLOCK = 34
+I2C_MAX_BLOCK_1 = 33
+I2C_MAX_BLOCK_2 = 34
I2C_M_DMA_SAFE = 512
I2C_M_IGNORE_NAK = 4096
I2C_M_NOSTART = 16384
diff --git a/sys/linux/dev_i2c_arm.const b/sys/linux/dev_i2c_arm.const
index 70ba6e768..fb4463a2d 100644
--- a/sys/linux/dev_i2c_arm.const
+++ b/sys/linux/dev_i2c_arm.const
@@ -1,6 +1,7 @@
# AUTOGENERATED FILE
I2C_FUNCS = 1797
-I2C_MAX_BLOCK = 34
+I2C_MAX_BLOCK_1 = 33
+I2C_MAX_BLOCK_2 = 34
I2C_M_DMA_SAFE = 512
I2C_M_IGNORE_NAK = 4096
I2C_M_NOSTART = 16384
diff --git a/sys/linux/dev_i2c_arm64.const b/sys/linux/dev_i2c_arm64.const
index 3075ff91e..f5f5fca65 100644
--- a/sys/linux/dev_i2c_arm64.const
+++ b/sys/linux/dev_i2c_arm64.const
@@ -1,6 +1,7 @@
# AUTOGENERATED FILE
I2C_FUNCS = 1797
-I2C_MAX_BLOCK = 34
+I2C_MAX_BLOCK_1 = 33
+I2C_MAX_BLOCK_2 = 34
I2C_M_DMA_SAFE = 512
I2C_M_IGNORE_NAK = 4096
I2C_M_NOSTART = 16384
diff --git a/sys/linux/dev_i2c_ppc64le.const b/sys/linux/dev_i2c_ppc64le.const
index 70ba6e768..fb4463a2d 100644
--- a/sys/linux/dev_i2c_ppc64le.const
+++ b/sys/linux/dev_i2c_ppc64le.const
@@ -1,6 +1,7 @@
# AUTOGENERATED FILE
I2C_FUNCS = 1797
-I2C_MAX_BLOCK = 34
+I2C_MAX_BLOCK_1 = 33
+I2C_MAX_BLOCK_2 = 34
I2C_M_DMA_SAFE = 512
I2C_M_IGNORE_NAK = 4096
I2C_M_NOSTART = 16384
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go
index 6a556b359..2d6cdeeab 100644
--- a/sys/linux/gen/386.go
+++ b/sys/linux/gen/386.go
@@ -7045,16 +7045,15 @@ var structDescs_386 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nmsgs", TypeSize: 4}}, Path: []string{"msgs"}},
}}},
{Key: StructKey{Name: "i2c_smbus_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_smbus_data", TypeSize: 34}, Fields: []Type{
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "byte", TypeSize: 1}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "word", TypeSize: 2}}},
- &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "block", TypeSize: 34}, Kind: 1, RangeBegin: 34, RangeEnd: 34},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "size", TypeSize: 1}}, Kind: 2, RangeEnd: 34},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "block", TypeSize: 33}, Kind: 1, RangeBegin: 33, RangeEnd: 33},
}}},
{Key: StructKey{Name: "i2c_smbus_ioctl_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_smbus_ioctl_data", TypeSize: 12}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "read_write", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "command", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", TypeSize: 4}}, Kind: 2, RangeEnd: 8},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "i2c_smbus_data"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "i2c_smbus_data"}}},
}}},
{Key: StructKey{Name: "ib_addr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ib_addr", TypeSize: 16}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 16}, Kind: 1, RangeBegin: 16, RangeEnd: 16},
@@ -46803,7 +46802,8 @@ var consts_386 = []ConstValue{
{Name: "HW_BREAKPOINT_W", Value: 2},
{Name: "HW_BREAKPOINT_X", Value: 4},
{Name: "I2C_FUNCS", Value: 1797},
- {Name: "I2C_MAX_BLOCK", Value: 34},
+ {Name: "I2C_MAX_BLOCK_1", Value: 33},
+ {Name: "I2C_MAX_BLOCK_2", Value: 34},
{Name: "I2C_M_DMA_SAFE", Value: 512},
{Name: "I2C_M_IGNORE_NAK", Value: 4096},
{Name: "I2C_M_NOSTART", Value: 16384},
@@ -53060,4 +53060,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_386 = "e8fc35104bf083c70be3f75cf0b2bda460dc28ba"
+const revision_386 = "32ec25e64d206fb2799732848a208618f3a6d0fe"
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 54b1b139f..f771baa83 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -7150,16 +7150,15 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}}},
{Key: StructKey{Name: "i2c_smbus_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_smbus_data", TypeSize: 34}, Fields: []Type{
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "byte", TypeSize: 1}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "word", TypeSize: 2}}},
- &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "block", TypeSize: 34}, Kind: 1, RangeBegin: 34, RangeEnd: 34},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "size", TypeSize: 1}}, Kind: 2, RangeEnd: 34},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "block", TypeSize: 33}, Kind: 1, RangeBegin: 33, RangeEnd: 33},
}}},
{Key: StructKey{Name: "i2c_smbus_ioctl_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_smbus_ioctl_data", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "read_write", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "command", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", TypeSize: 4}}, Kind: 2, RangeEnd: 8},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "i2c_smbus_data"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "i2c_smbus_data"}}},
}}},
{Key: StructKey{Name: "ib_addr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ib_addr", TypeSize: 16}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 16}, Kind: 1, RangeBegin: 16, RangeEnd: 16},
@@ -47332,7 +47331,8 @@ var consts_amd64 = []ConstValue{
{Name: "HW_BREAKPOINT_W", Value: 2},
{Name: "HW_BREAKPOINT_X", Value: 4},
{Name: "I2C_FUNCS", Value: 1797},
- {Name: "I2C_MAX_BLOCK", Value: 34},
+ {Name: "I2C_MAX_BLOCK_1", Value: 33},
+ {Name: "I2C_MAX_BLOCK_2", Value: 34},
{Name: "I2C_M_DMA_SAFE", Value: 512},
{Name: "I2C_M_IGNORE_NAK", Value: 4096},
{Name: "I2C_M_NOSTART", Value: 16384},
@@ -53604,4 +53604,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "4902eab7c0cfdeeefcd65020538d28d40cd8d4e7"
+const revision_amd64 = "e67391fb5f288242074ad5ff6365f61b9c247b9e"
diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go
index 59283f027..a340603fe 100644
--- a/sys/linux/gen/arm.go
+++ b/sys/linux/gen/arm.go
@@ -7045,16 +7045,15 @@ var structDescs_arm = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nmsgs", TypeSize: 4}}, Path: []string{"msgs"}},
}}},
{Key: StructKey{Name: "i2c_smbus_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_smbus_data", TypeSize: 34}, Fields: []Type{
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "byte", TypeSize: 1}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "word", TypeSize: 2}}},
- &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "block", TypeSize: 34}, Kind: 1, RangeBegin: 34, RangeEnd: 34},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "size", TypeSize: 1}}, Kind: 2, RangeEnd: 34},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "block", TypeSize: 33}, Kind: 1, RangeBegin: 33, RangeEnd: 33},
}}},
{Key: StructKey{Name: "i2c_smbus_ioctl_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_smbus_ioctl_data", TypeSize: 12}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "read_write", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "command", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", TypeSize: 4}}, Kind: 2, RangeEnd: 8},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "i2c_smbus_data"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "i2c_smbus_data"}}},
}}},
{Key: StructKey{Name: "ib_addr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ib_addr", TypeSize: 16}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 16}, Kind: 1, RangeBegin: 16, RangeEnd: 16},
@@ -46443,7 +46442,8 @@ var consts_arm = []ConstValue{
{Name: "HW_BREAKPOINT_W", Value: 2},
{Name: "HW_BREAKPOINT_X", Value: 4},
{Name: "I2C_FUNCS", Value: 1797},
- {Name: "I2C_MAX_BLOCK", Value: 34},
+ {Name: "I2C_MAX_BLOCK_1", Value: 33},
+ {Name: "I2C_MAX_BLOCK_2", Value: 34},
{Name: "I2C_M_DMA_SAFE", Value: 512},
{Name: "I2C_M_IGNORE_NAK", Value: 4096},
{Name: "I2C_M_NOSTART", Value: 16384},
@@ -52637,4 +52637,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm = "8a4756c93a3fe3a207c9cf963e5c94afe9303b84"
+const revision_arm = "c9bd6b30255ee024f901224d0aa51fb8d1316b0a"
diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go
index 51e827640..1530b5563 100644
--- a/sys/linux/gen/arm64.go
+++ b/sys/linux/gen/arm64.go
@@ -7150,16 +7150,15 @@ var structDescs_arm64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}}},
{Key: StructKey{Name: "i2c_smbus_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_smbus_data", TypeSize: 34}, Fields: []Type{
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "byte", TypeSize: 1}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "word", TypeSize: 2}}},
- &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "block", TypeSize: 34}, Kind: 1, RangeBegin: 34, RangeEnd: 34},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "size", TypeSize: 1}}, Kind: 2, RangeEnd: 34},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "block", TypeSize: 33}, Kind: 1, RangeBegin: 33, RangeEnd: 33},
}}},
{Key: StructKey{Name: "i2c_smbus_ioctl_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_smbus_ioctl_data", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "read_write", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "command", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", TypeSize: 4}}, Kind: 2, RangeEnd: 8},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "i2c_smbus_data"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "i2c_smbus_data"}}},
}}},
{Key: StructKey{Name: "ib_addr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ib_addr", TypeSize: 16}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 16}, Kind: 1, RangeBegin: 16, RangeEnd: 16},
@@ -46778,7 +46777,8 @@ var consts_arm64 = []ConstValue{
{Name: "HW_BREAKPOINT_W", Value: 2},
{Name: "HW_BREAKPOINT_X", Value: 4},
{Name: "I2C_FUNCS", Value: 1797},
- {Name: "I2C_MAX_BLOCK", Value: 34},
+ {Name: "I2C_MAX_BLOCK_1", Value: 33},
+ {Name: "I2C_MAX_BLOCK_2", Value: 34},
{Name: "I2C_M_DMA_SAFE", Value: 512},
{Name: "I2C_M_IGNORE_NAK", Value: 4096},
{Name: "I2C_M_NOSTART", Value: 16384},
@@ -52956,4 +52956,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm64 = "c94ff23c1fb44605f8b500a6e3fe8bae3ad58dfe"
+const revision_arm64 = "eb499140f0bbe4b6bd7b5bf9a9c5d7e0e22409aa"
diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go
index 396455adf..1ca5dd1a7 100644
--- a/sys/linux/gen/ppc64le.go
+++ b/sys/linux/gen/ppc64le.go
@@ -7149,16 +7149,15 @@ var structDescs_ppc64le = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}}},
{Key: StructKey{Name: "i2c_smbus_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_smbus_data", TypeSize: 34}, Fields: []Type{
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "byte", TypeSize: 1}}},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "word", TypeSize: 2}}},
- &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "block", TypeSize: 34}, Kind: 1, RangeBegin: 34, RangeEnd: 34},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "size", TypeSize: 1}}, Kind: 2, RangeEnd: 34},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "block", TypeSize: 33}, Kind: 1, RangeBegin: 33, RangeEnd: 33},
}}},
{Key: StructKey{Name: "i2c_smbus_ioctl_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_smbus_ioctl_data", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "read_write", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "command", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", TypeSize: 4}}, Kind: 2, RangeEnd: 8},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "i2c_smbus_data"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "i2c_smbus_data"}}},
}}},
{Key: StructKey{Name: "ib_addr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ib_addr", TypeSize: 16}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 16}, Kind: 1, RangeBegin: 16, RangeEnd: 16},
@@ -46772,7 +46771,8 @@ var consts_ppc64le = []ConstValue{
{Name: "HW_BREAKPOINT_W", Value: 2},
{Name: "HW_BREAKPOINT_X", Value: 4},
{Name: "I2C_FUNCS", Value: 1797},
- {Name: "I2C_MAX_BLOCK", Value: 34},
+ {Name: "I2C_MAX_BLOCK_1", Value: 33},
+ {Name: "I2C_MAX_BLOCK_2", Value: 34},
{Name: "I2C_M_DMA_SAFE", Value: 512},
{Name: "I2C_M_IGNORE_NAK", Value: 4096},
{Name: "I2C_M_NOSTART", Value: 16384},
@@ -52921,4 +52921,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_ppc64le = "dcec244463223488f2168a6f56e3365ff267a388"
+const revision_ppc64le = "d168ef7dc35b8b5c166dd9327de68c4cb4c49020"