sys/linux: add i2c generic description

Basic description of i2c from SIL2LinuxMP workshop.
This commit is contained in:
Denis Efremov 2018-04-19 11:36:30 +03:00 committed by Dmitry Vyukov
parent d1b2ef6921
commit 4f18337d89
14 changed files with 709 additions and 15 deletions

View File

@ -20,3 +20,4 @@ Ed Maste
Sumukha PK
Mitchell Horne
Hangbin Liu
Denis Efremov

View File

@ -30,3 +30,4 @@ Tim Tianyang Chen
Ed Maste
Sumukha PK
Mitchell Horne
Denis Efremov

View File

@ -2,11 +2,11 @@
#if defined(__i386__) || 0
#define GOARCH "386"
#define SYZ_REVISION "fc0ed121007ac102aa0fb131706b566974a23dd1"
#define SYZ_REVISION "c1cffce2533618cc16d65bcdf36543edbb86c62a"
#define SYZ_PAGE_SIZE 4096
#define SYZ_NUM_PAGES 4096
#define SYZ_DATA_OFFSET 536870912
unsigned syscall_count = 1690;
unsigned syscall_count = 1700;
call_t syscalls[] = {
{"accept4", 364},
{"accept4$alg", 364},
@ -509,6 +509,15 @@ call_t syscalls[] = {
{"ioctl$GIO_SCRNMAP", 54},
{"ioctl$GIO_UNIMAP", 54},
{"ioctl$GIO_UNISCRNMAP", 54},
{"ioctl$I2C_FUNCS", 54},
{"ioctl$I2C_PEC", 54},
{"ioctl$I2C_RDWR", 54},
{"ioctl$I2C_RETRIES", 54},
{"ioctl$I2C_SLAVE", 54},
{"ioctl$I2C_SLAVE_FORCE", 54},
{"ioctl$I2C_SMBUS", 54},
{"ioctl$I2C_TENBIT", 54},
{"ioctl$I2C_TIMEOUT", 54},
{"ioctl$ION_IOC_ALLOC", 54},
{"ioctl$ION_IOC_HEAP_QUERY", 54},
{"ioctl$KDADDIO", 54},
@ -1610,6 +1619,7 @@ call_t syscalls[] = {
{"syz_mount_image$reiserfs", 0, (syscall_t)syz_mount_image},
{"syz_mount_image$vfat", 0, (syscall_t)syz_mount_image},
{"syz_mount_image$xfs", 0, (syscall_t)syz_mount_image},
{"syz_open_dev$I2C", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$admmidi", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$adsp", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$amidi", 0, (syscall_t)syz_open_dev},
@ -1704,11 +1714,11 @@ call_t syscalls[] = {
#if defined(__x86_64__) || 0
#define GOARCH "amd64"
#define SYZ_REVISION "c716d2ca89f24a2f3b177b6521926eb6936a91de"
#define SYZ_REVISION "419554fa64eb8ea5032f6676282d7134e468ad6f"
#define SYZ_PAGE_SIZE 4096
#define SYZ_NUM_PAGES 4096
#define SYZ_DATA_OFFSET 536870912
unsigned syscall_count = 1742;
unsigned syscall_count = 1752;
call_t syscalls[] = {
{"accept", 43},
{"accept$alg", 43},
@ -2221,6 +2231,15 @@ call_t syscalls[] = {
{"ioctl$GIO_SCRNMAP", 16},
{"ioctl$GIO_UNIMAP", 16},
{"ioctl$GIO_UNISCRNMAP", 16},
{"ioctl$I2C_FUNCS", 16},
{"ioctl$I2C_PEC", 16},
{"ioctl$I2C_RDWR", 16},
{"ioctl$I2C_RETRIES", 16},
{"ioctl$I2C_SLAVE", 16},
{"ioctl$I2C_SLAVE_FORCE", 16},
{"ioctl$I2C_SMBUS", 16},
{"ioctl$I2C_TENBIT", 16},
{"ioctl$I2C_TIMEOUT", 16},
{"ioctl$ION_IOC_ALLOC", 16},
{"ioctl$ION_IOC_HEAP_QUERY", 16},
{"ioctl$KDADDIO", 16},
@ -3364,6 +3383,7 @@ call_t syscalls[] = {
{"syz_mount_image$reiserfs", 0, (syscall_t)syz_mount_image},
{"syz_mount_image$vfat", 0, (syscall_t)syz_mount_image},
{"syz_mount_image$xfs", 0, (syscall_t)syz_mount_image},
{"syz_open_dev$I2C", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$admmidi", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$adsp", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$amidi", 0, (syscall_t)syz_open_dev},
@ -3458,11 +3478,11 @@ call_t syscalls[] = {
#if defined(__arm__) || 0
#define GOARCH "arm"
#define SYZ_REVISION "ace49a8f778ef3af7544f14c8b909dc8c0c5169a"
#define SYZ_REVISION "4374ad62df63257035ce9399cf6302403f17330c"
#define SYZ_PAGE_SIZE 4096
#define SYZ_NUM_PAGES 4096
#define SYZ_DATA_OFFSET 536870912
unsigned syscall_count = 1699;
unsigned syscall_count = 1709;
call_t syscalls[] = {
{"accept", 285},
{"accept$alg", 285},
@ -3970,6 +3990,15 @@ call_t syscalls[] = {
{"ioctl$GIO_SCRNMAP", 54},
{"ioctl$GIO_UNIMAP", 54},
{"ioctl$GIO_UNISCRNMAP", 54},
{"ioctl$I2C_FUNCS", 54},
{"ioctl$I2C_PEC", 54},
{"ioctl$I2C_RDWR", 54},
{"ioctl$I2C_RETRIES", 54},
{"ioctl$I2C_SLAVE", 54},
{"ioctl$I2C_SLAVE_FORCE", 54},
{"ioctl$I2C_SMBUS", 54},
{"ioctl$I2C_TENBIT", 54},
{"ioctl$I2C_TIMEOUT", 54},
{"ioctl$ION_IOC_ALLOC", 54},
{"ioctl$ION_IOC_HEAP_QUERY", 54},
{"ioctl$KDADDIO", 54},
@ -5077,6 +5106,7 @@ call_t syscalls[] = {
{"syz_mount_image$reiserfs", 0, (syscall_t)syz_mount_image},
{"syz_mount_image$vfat", 0, (syscall_t)syz_mount_image},
{"syz_mount_image$xfs", 0, (syscall_t)syz_mount_image},
{"syz_open_dev$I2C", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$admmidi", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$adsp", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$amidi", 0, (syscall_t)syz_open_dev},
@ -5169,11 +5199,11 @@ call_t syscalls[] = {
#if defined(__aarch64__) || 0
#define GOARCH "arm64"
#define SYZ_REVISION "cdd5bf8cff3ec1e711a0c754a33646dad6bb2157"
#define SYZ_REVISION "171606e5652b433103cae8bab1d09225faa6221e"
#define SYZ_PAGE_SIZE 4096
#define SYZ_NUM_PAGES 4096
#define SYZ_DATA_OFFSET 536870912
unsigned syscall_count = 1671;
unsigned syscall_count = 1681;
call_t syscalls[] = {
{"accept", 202},
{"accept$alg", 202},
@ -5672,6 +5702,15 @@ call_t syscalls[] = {
{"ioctl$GIO_SCRNMAP", 29},
{"ioctl$GIO_UNIMAP", 29},
{"ioctl$GIO_UNISCRNMAP", 29},
{"ioctl$I2C_FUNCS", 29},
{"ioctl$I2C_PEC", 29},
{"ioctl$I2C_RDWR", 29},
{"ioctl$I2C_RETRIES", 29},
{"ioctl$I2C_SLAVE", 29},
{"ioctl$I2C_SLAVE_FORCE", 29},
{"ioctl$I2C_SMBUS", 29},
{"ioctl$I2C_TENBIT", 29},
{"ioctl$I2C_TIMEOUT", 29},
{"ioctl$ION_IOC_ALLOC", 29},
{"ioctl$ION_IOC_HEAP_QUERY", 29},
{"ioctl$KDADDIO", 29},
@ -6764,6 +6803,7 @@ call_t syscalls[] = {
{"syz_mount_image$reiserfs", 0, (syscall_t)syz_mount_image},
{"syz_mount_image$vfat", 0, (syscall_t)syz_mount_image},
{"syz_mount_image$xfs", 0, (syscall_t)syz_mount_image},
{"syz_open_dev$I2C", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$admmidi", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$adsp", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$amidi", 0, (syscall_t)syz_open_dev},
@ -6852,11 +6892,11 @@ call_t syscalls[] = {
#if defined(__ppc64__) || defined(__PPC64__) || defined(__powerpc64__) || 0
#define GOARCH "ppc64le"
#define SYZ_REVISION "e9495aae8da8022d330e29c5bc70dcc4066184bf"
#define SYZ_REVISION "2384d64bdb573f4dde8f1e1df12af42289c24ebb"
#define SYZ_PAGE_SIZE 4096
#define SYZ_NUM_PAGES 4096
#define SYZ_DATA_OFFSET 536870912
unsigned syscall_count = 1661;
unsigned syscall_count = 1671;
call_t syscalls[] = {
{"accept", 330},
{"accept$alg", 330},
@ -7367,6 +7407,15 @@ call_t syscalls[] = {
{"ioctl$GIO_SCRNMAP", 54},
{"ioctl$GIO_UNIMAP", 54},
{"ioctl$GIO_UNISCRNMAP", 54},
{"ioctl$I2C_FUNCS", 54},
{"ioctl$I2C_PEC", 54},
{"ioctl$I2C_RDWR", 54},
{"ioctl$I2C_RETRIES", 54},
{"ioctl$I2C_SLAVE", 54},
{"ioctl$I2C_SLAVE_FORCE", 54},
{"ioctl$I2C_SMBUS", 54},
{"ioctl$I2C_TENBIT", 54},
{"ioctl$I2C_TIMEOUT", 54},
{"ioctl$ION_IOC_ALLOC", 54},
{"ioctl$ION_IOC_HEAP_QUERY", 54},
{"ioctl$KDADDIO", 54},
@ -8431,6 +8480,7 @@ call_t syscalls[] = {
{"syz_mount_image$reiserfs", 0, (syscall_t)syz_mount_image},
{"syz_mount_image$vfat", 0, (syscall_t)syz_mount_image},
{"syz_mount_image$xfs", 0, (syscall_t)syz_mount_image},
{"syz_open_dev$I2C", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$admmidi", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$adsp", 0, (syscall_t)syz_open_dev},
{"syz_open_dev$amidi", 0, (syscall_t)syz_open_dev},

View File

@ -34,6 +34,7 @@ var resources_386 = []*ResourceDesc{
{Name: "fd_event", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_event"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_fanotify", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fanotify"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_fuse", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fuse"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_i2c", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_i2c"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_inotify", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_inotify"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_ion", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ion"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_kvm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_kvm"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -3685,6 +3686,29 @@ var structDescs_386 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "cnum", TypeSize: 4}}, Buf: "ci"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ci", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "hidp_conninfo", Dir: 1}}}},
}}},
{Key: StructKey{Name: "i2c_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_msg", TypeSize: 12}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "addr", TypeSize: 2}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "i2c_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 16, 512, 1024, 2048, 4096, 8192, 16384, 32768}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 2}}, Buf: "buf"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
}}},
{Key: StructKey{Name: "i2c_rdwr_ioctl_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_rdwr_ioctl_data", TypeSize: 8}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgs", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "i2c_msg"}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nmsgs", TypeSize: 4}}, Buf: "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},
}}},
{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"}}},
}}},
{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},
}, AlignAttr: 8}},
@ -17490,6 +17514,51 @@ var syscalls_386 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 19305},
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}},
}},
{NR: 54, Name: "ioctl$I2C_FUNCS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1797},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4}}}},
}},
{NR: 54, Name: "ioctl$I2C_PEC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1800},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$I2C_RDWR", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1799},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "i2c_rdwr_ioctl_data"}}},
}},
{NR: 54, Name: "ioctl$I2C_RETRIES", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1793},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$I2C_SLAVE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1795},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 1023},
}},
{NR: 54, Name: "ioctl$I2C_SLAVE_FORCE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1798},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 1023},
}},
{NR: 54, Name: "ioctl$I2C_SMBUS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1824},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "i2c_smbus_ioctl_data"}}},
}},
{NR: 54, Name: "ioctl$I2C_TENBIT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1796},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
}},
{NR: 54, Name: "ioctl$I2C_TIMEOUT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1794},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$ION_IOC_ALLOC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222817024},
@ -23648,6 +23717,11 @@ var syscalls_386 = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "xfs_full_options"}}},
}},
{Name: "syz_open_dev$I2C", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 11}, Kind: 2, Values: []string{"/dev/i2c-#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "syz_open_dev$admmidi", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 14}, Kind: 2, Values: []string{"/dev/admmidi#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 4}}},
@ -25109,6 +25183,27 @@ var consts_386 = []ConstValue{
{Name: "HW_BREAKPOINT_R", Value: 1},
{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_M_DMA_SAFE", Value: 512},
{Name: "I2C_M_IGNORE_NAK", Value: 4096},
{Name: "I2C_M_NOSTART", Value: 16384},
{Name: "I2C_M_NO_RD_ACK", Value: 2048},
{Name: "I2C_M_RD", Value: 1},
{Name: "I2C_M_RECV_LEN", Value: 1024},
{Name: "I2C_M_REV_DIR_ADDR", Value: 8192},
{Name: "I2C_M_STOP", Value: 32768},
{Name: "I2C_M_TEN", Value: 16},
{Name: "I2C_PEC", Value: 1800},
{Name: "I2C_RDWR", Value: 1799},
{Name: "I2C_RETRIES", Value: 1793},
{Name: "I2C_SLAVE", Value: 1795},
{Name: "I2C_SLAVE_FORCE", Value: 1798},
{Name: "I2C_SMBUS", Value: 1824},
{Name: "I2C_SMBUS_I2C_BLOCK_DATA", Value: 8},
{Name: "I2C_SMBUS_QUICK"},
{Name: "I2C_TENBIT", Value: 1796},
{Name: "I2C_TIMEOUT", Value: 1794},
{Name: "IB_EVENT_CLIENT_REREGISTER", Value: 17},
{Name: "IB_EVENT_COMM_EST", Value: 4},
{Name: "IB_EVENT_CQ_ERR"},
@ -28463,4 +28558,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_386 = "fc0ed121007ac102aa0fb131706b566974a23dd1"
const revision_386 = "c1cffce2533618cc16d65bcdf36543edbb86c62a"

View File

@ -34,6 +34,7 @@ var resources_amd64 = []*ResourceDesc{
{Name: "fd_event", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_event"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_fanotify", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fanotify"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_fuse", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fuse"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_i2c", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_i2c"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_inotify", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_inotify"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_ion", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ion"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_kvm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_kvm"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -3771,6 +3772,30 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ci", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "hidp_conninfo", Dir: 1}}}},
}}},
{Key: StructKey{Name: "i2c_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_msg", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "addr", TypeSize: 2}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "i2c_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 16, 512, 1024, 2048, 4096, 8192, 16384, 32768}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 2}}, Buf: "buf"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
}}},
{Key: StructKey{Name: "i2c_rdwr_ioctl_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_rdwr_ioctl_data", TypeSize: 16}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgs", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "i2c_msg"}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nmsgs", TypeSize: 4}}, Buf: "msgs"},
&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},
}}},
{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"}}},
}}},
{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},
}, AlignAttr: 8}},
@ -17910,6 +17935,51 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19305},
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}},
}},
{NR: 16, Name: "ioctl$I2C_FUNCS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1797},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}},
}},
{NR: 16, Name: "ioctl$I2C_PEC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1800},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 16, Name: "ioctl$I2C_RDWR", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1799},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "i2c_rdwr_ioctl_data"}}},
}},
{NR: 16, Name: "ioctl$I2C_RETRIES", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1793},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 16, Name: "ioctl$I2C_SLAVE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1795},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 1023},
}},
{NR: 16, Name: "ioctl$I2C_SLAVE_FORCE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1798},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 1023},
}},
{NR: 16, Name: "ioctl$I2C_SMBUS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1824},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "i2c_smbus_ioctl_data"}}},
}},
{NR: 16, Name: "ioctl$I2C_TENBIT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1796},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 1},
}},
{NR: 16, Name: "ioctl$I2C_TIMEOUT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1794},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 16, Name: "ioctl$ION_IOC_ALLOC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222817024},
@ -24287,6 +24357,11 @@ var syscalls_amd64 = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "xfs_full_options"}}},
}},
{Name: "syz_open_dev$I2C", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 11}, Kind: 2, Values: []string{"/dev/i2c-#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "syz_open_dev$admmidi", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 14}, Kind: 2, Values: []string{"/dev/admmidi#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
@ -25748,6 +25823,27 @@ var consts_amd64 = []ConstValue{
{Name: "HW_BREAKPOINT_R", Value: 1},
{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_M_DMA_SAFE", Value: 512},
{Name: "I2C_M_IGNORE_NAK", Value: 4096},
{Name: "I2C_M_NOSTART", Value: 16384},
{Name: "I2C_M_NO_RD_ACK", Value: 2048},
{Name: "I2C_M_RD", Value: 1},
{Name: "I2C_M_RECV_LEN", Value: 1024},
{Name: "I2C_M_REV_DIR_ADDR", Value: 8192},
{Name: "I2C_M_STOP", Value: 32768},
{Name: "I2C_M_TEN", Value: 16},
{Name: "I2C_PEC", Value: 1800},
{Name: "I2C_RDWR", Value: 1799},
{Name: "I2C_RETRIES", Value: 1793},
{Name: "I2C_SLAVE", Value: 1795},
{Name: "I2C_SLAVE_FORCE", Value: 1798},
{Name: "I2C_SMBUS", Value: 1824},
{Name: "I2C_SMBUS_I2C_BLOCK_DATA", Value: 8},
{Name: "I2C_SMBUS_QUICK"},
{Name: "I2C_TENBIT", Value: 1796},
{Name: "I2C_TIMEOUT", Value: 1794},
{Name: "IB_EVENT_CLIENT_REREGISTER", Value: 17},
{Name: "IB_EVENT_COMM_EST", Value: 4},
{Name: "IB_EVENT_CQ_ERR"},
@ -29127,4 +29223,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_amd64 = "c716d2ca89f24a2f3b177b6521926eb6936a91de"
const revision_amd64 = "419554fa64eb8ea5032f6676282d7134e468ad6f"

View File

@ -34,6 +34,7 @@ var resources_arm = []*ResourceDesc{
{Name: "fd_event", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_event"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_fanotify", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fanotify"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_fuse", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fuse"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_i2c", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_i2c"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_inotify", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_inotify"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_ion", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ion"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_kvm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_kvm"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -3690,6 +3691,29 @@ var structDescs_arm = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "cnum", TypeSize: 4}}, Buf: "ci"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ci", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "hidp_conninfo", Dir: 1}}}},
}}},
{Key: StructKey{Name: "i2c_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_msg", TypeSize: 12}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "addr", TypeSize: 2}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "i2c_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 16, 512, 1024, 2048, 4096, 8192, 16384, 32768}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 2}}, Buf: "buf"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
}}},
{Key: StructKey{Name: "i2c_rdwr_ioctl_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_rdwr_ioctl_data", TypeSize: 8}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgs", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "i2c_msg"}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nmsgs", TypeSize: 4}}, Buf: "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},
}}},
{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"}}},
}}},
{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},
}, AlignAttr: 8}},
@ -17369,6 +17393,51 @@ var syscalls_arm = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 19305},
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}},
}},
{NR: 54, Name: "ioctl$I2C_FUNCS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1797},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4}}}},
}},
{NR: 54, Name: "ioctl$I2C_PEC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1800},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$I2C_RDWR", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1799},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "i2c_rdwr_ioctl_data"}}},
}},
{NR: 54, Name: "ioctl$I2C_RETRIES", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1793},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$I2C_SLAVE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1795},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 1023},
}},
{NR: 54, Name: "ioctl$I2C_SLAVE_FORCE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1798},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 1023},
}},
{NR: 54, Name: "ioctl$I2C_SMBUS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1824},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "i2c_smbus_ioctl_data"}}},
}},
{NR: 54, Name: "ioctl$I2C_TENBIT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1796},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
}},
{NR: 54, Name: "ioctl$I2C_TIMEOUT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1794},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$ION_IOC_ALLOC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222817024},
@ -23567,6 +23636,11 @@ var syscalls_arm = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "xfs_full_options"}}},
}},
{Name: "syz_open_dev$I2C", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 11}, Kind: 2, Values: []string{"/dev/i2c-#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "syz_open_dev$admmidi", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 14}, Kind: 2, Values: []string{"/dev/admmidi#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 4}}},
@ -25021,6 +25095,27 @@ var consts_arm = []ConstValue{
{Name: "HW_BREAKPOINT_R", Value: 1},
{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_M_DMA_SAFE", Value: 512},
{Name: "I2C_M_IGNORE_NAK", Value: 4096},
{Name: "I2C_M_NOSTART", Value: 16384},
{Name: "I2C_M_NO_RD_ACK", Value: 2048},
{Name: "I2C_M_RD", Value: 1},
{Name: "I2C_M_RECV_LEN", Value: 1024},
{Name: "I2C_M_REV_DIR_ADDR", Value: 8192},
{Name: "I2C_M_STOP", Value: 32768},
{Name: "I2C_M_TEN", Value: 16},
{Name: "I2C_PEC", Value: 1800},
{Name: "I2C_RDWR", Value: 1799},
{Name: "I2C_RETRIES", Value: 1793},
{Name: "I2C_SLAVE", Value: 1795},
{Name: "I2C_SLAVE_FORCE", Value: 1798},
{Name: "I2C_SMBUS", Value: 1824},
{Name: "I2C_SMBUS_I2C_BLOCK_DATA", Value: 8},
{Name: "I2C_SMBUS_QUICK"},
{Name: "I2C_TENBIT", Value: 1796},
{Name: "I2C_TIMEOUT", Value: 1794},
{Name: "IB_EVENT_CLIENT_REREGISTER", Value: 17},
{Name: "IB_EVENT_COMM_EST", Value: 4},
{Name: "IB_EVENT_CQ_ERR"},
@ -28326,4 +28421,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_arm = "ace49a8f778ef3af7544f14c8b909dc8c0c5169a"
const revision_arm = "4374ad62df63257035ce9399cf6302403f17330c"

View File

@ -34,6 +34,7 @@ var resources_arm64 = []*ResourceDesc{
{Name: "fd_event", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_event"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_fanotify", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fanotify"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_fuse", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fuse"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_i2c", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_i2c"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_inotify", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_inotify"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_ion", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ion"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_kvm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_kvm"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -3771,6 +3772,30 @@ var structDescs_arm64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ci", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "hidp_conninfo", Dir: 1}}}},
}}},
{Key: StructKey{Name: "i2c_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_msg", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "addr", TypeSize: 2}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "i2c_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 16, 512, 1024, 2048, 4096, 8192, 16384, 32768}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 2}}, Buf: "buf"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
}}},
{Key: StructKey{Name: "i2c_rdwr_ioctl_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_rdwr_ioctl_data", TypeSize: 16}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgs", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "i2c_msg"}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nmsgs", TypeSize: 4}}, Buf: "msgs"},
&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},
}}},
{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"}}},
}}},
{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},
}, AlignAttr: 8}},
@ -17633,6 +17658,51 @@ var syscalls_arm64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19305},
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}},
}},
{NR: 29, Name: "ioctl$I2C_FUNCS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1797},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}},
}},
{NR: 29, Name: "ioctl$I2C_PEC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1800},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 29, Name: "ioctl$I2C_RDWR", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1799},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "i2c_rdwr_ioctl_data"}}},
}},
{NR: 29, Name: "ioctl$I2C_RETRIES", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1793},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 29, Name: "ioctl$I2C_SLAVE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1795},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 1023},
}},
{NR: 29, Name: "ioctl$I2C_SLAVE_FORCE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1798},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 1023},
}},
{NR: 29, Name: "ioctl$I2C_SMBUS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1824},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "i2c_smbus_ioctl_data"}}},
}},
{NR: 29, Name: "ioctl$I2C_TENBIT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1796},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 1},
}},
{NR: 29, Name: "ioctl$I2C_TIMEOUT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1794},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 29, Name: "ioctl$ION_IOC_ALLOC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222817024},
@ -23774,6 +23844,11 @@ var syscalls_arm64 = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "xfs_full_options"}}},
}},
{Name: "syz_open_dev$I2C", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 11}, Kind: 2, Values: []string{"/dev/i2c-#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "syz_open_dev$admmidi", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 14}, Kind: 2, Values: []string{"/dev/admmidi#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
@ -25214,6 +25289,27 @@ var consts_arm64 = []ConstValue{
{Name: "HW_BREAKPOINT_R", Value: 1},
{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_M_DMA_SAFE", Value: 512},
{Name: "I2C_M_IGNORE_NAK", Value: 4096},
{Name: "I2C_M_NOSTART", Value: 16384},
{Name: "I2C_M_NO_RD_ACK", Value: 2048},
{Name: "I2C_M_RD", Value: 1},
{Name: "I2C_M_RECV_LEN", Value: 1024},
{Name: "I2C_M_REV_DIR_ADDR", Value: 8192},
{Name: "I2C_M_STOP", Value: 32768},
{Name: "I2C_M_TEN", Value: 16},
{Name: "I2C_PEC", Value: 1800},
{Name: "I2C_RDWR", Value: 1799},
{Name: "I2C_RETRIES", Value: 1793},
{Name: "I2C_SLAVE", Value: 1795},
{Name: "I2C_SLAVE_FORCE", Value: 1798},
{Name: "I2C_SMBUS", Value: 1824},
{Name: "I2C_SMBUS_I2C_BLOCK_DATA", Value: 8},
{Name: "I2C_SMBUS_QUICK"},
{Name: "I2C_TENBIT", Value: 1796},
{Name: "I2C_TIMEOUT", Value: 1794},
{Name: "IB_EVENT_CLIENT_REREGISTER", Value: 17},
{Name: "IB_EVENT_COMM_EST", Value: 4},
{Name: "IB_EVENT_CQ_ERR"},
@ -28509,4 +28605,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_arm64 = "cdd5bf8cff3ec1e711a0c754a33646dad6bb2157"
const revision_arm64 = "171606e5652b433103cae8bab1d09225faa6221e"

49
sys/linux/i2c.txt Normal file
View File

@ -0,0 +1,49 @@
# Copyright 2018 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
include <uapi/linux/i2c-dev.h>
include <uapi/linux/i2c.h>
define I2C_MAX_BLOCK (I2C_SMBUS_BLOCK_MAX + 2)
resource fd_i2c[fd]
syz_open_dev$I2C(dev ptr[in, string["/dev/i2c-#"]], id intptr, flags flags[open_flags]) fd_i2c
ioctl$I2C_RETRIES(fd fd_i2c, cmd const[I2C_RETRIES], arg intptr)
ioctl$I2C_TIMEOUT(fd fd_i2c, cmd const[I2C_TIMEOUT], arg intptr)
ioctl$I2C_SLAVE(fd fd_i2c, cmd const[I2C_SLAVE], arg intptr[0:0x3ff])
ioctl$I2C_SLAVE_FORCE(fd fd_i2c, cmd const[I2C_SLAVE_FORCE], arg intptr[0:0x3ff])
ioctl$I2C_TENBIT(fd fd_i2c, cmd const[I2C_TENBIT], arg boolptr)
ioctl$I2C_PEC(fd fd_i2c, cmd const[I2C_PEC], arg intptr)
ioctl$I2C_FUNCS(fd fd_i2c, cmd const[I2C_FUNCS], arg ptr[in, intptr])
ioctl$I2C_RDWR(fd fd_i2c, cmd const[I2C_RDWR], arg ptr[in, i2c_rdwr_ioctl_data])
ioctl$I2C_SMBUS(fd fd_i2c, cmd const[I2C_SMBUS], arg ptr[in, i2c_smbus_ioctl_data])
i2c_smbus_ioctl_data {
read_write bool8
command int8
size int32[I2C_SMBUS_QUICK:I2C_SMBUS_I2C_BLOCK_DATA]
data ptr[in, i2c_smbus_data]
}
i2c_smbus_data [
byte int8
word int16
block array[int8, I2C_MAX_BLOCK]
]
i2c_rdwr_ioctl_data {
msgs ptr[in, array[i2c_msg]]
nmsgs len[msgs, int32]
}
i2c_msg {
addr int16
flags flags[i2c_msg_flags, int16]
len len[buf, int16]
buf ptr[in, array[int8]]
}
i2c_msg_flags = I2C_M_RD, I2C_M_TEN, I2C_M_DMA_SAFE, I2C_M_RECV_LEN, I2C_M_NO_RD_ACK, I2C_M_IGNORE_NAK, I2C_M_REV_DIR_ADDR, I2C_M_NOSTART, I2C_M_STOP

23
sys/linux/i2c_386.const Normal file
View File

@ -0,0 +1,23 @@
# AUTOGENERATED FILE
I2C_FUNCS = 1797
I2C_MAX_BLOCK = 34
I2C_M_DMA_SAFE = 512
I2C_M_IGNORE_NAK = 4096
I2C_M_NOSTART = 16384
I2C_M_NO_RD_ACK = 2048
I2C_M_RD = 1
I2C_M_RECV_LEN = 1024
I2C_M_REV_DIR_ADDR = 8192
I2C_M_STOP = 32768
I2C_M_TEN = 16
I2C_PEC = 1800
I2C_RDWR = 1799
I2C_RETRIES = 1793
I2C_SLAVE = 1795
I2C_SLAVE_FORCE = 1798
I2C_SMBUS = 1824
I2C_SMBUS_I2C_BLOCK_DATA = 8
I2C_SMBUS_QUICK = 0
I2C_TENBIT = 1796
I2C_TIMEOUT = 1794
__NR_ioctl = 54

23
sys/linux/i2c_amd64.const Normal file
View File

@ -0,0 +1,23 @@
# AUTOGENERATED FILE
I2C_FUNCS = 1797
I2C_MAX_BLOCK = 34
I2C_M_DMA_SAFE = 512
I2C_M_IGNORE_NAK = 4096
I2C_M_NOSTART = 16384
I2C_M_NO_RD_ACK = 2048
I2C_M_RD = 1
I2C_M_RECV_LEN = 1024
I2C_M_REV_DIR_ADDR = 8192
I2C_M_STOP = 32768
I2C_M_TEN = 16
I2C_PEC = 1800
I2C_RDWR = 1799
I2C_RETRIES = 1793
I2C_SLAVE = 1795
I2C_SLAVE_FORCE = 1798
I2C_SMBUS = 1824
I2C_SMBUS_I2C_BLOCK_DATA = 8
I2C_SMBUS_QUICK = 0
I2C_TENBIT = 1796
I2C_TIMEOUT = 1794
__NR_ioctl = 16

23
sys/linux/i2c_arm.const Normal file
View File

@ -0,0 +1,23 @@
# AUTOGENERATED FILE
I2C_FUNCS = 1797
I2C_MAX_BLOCK = 34
I2C_M_DMA_SAFE = 512
I2C_M_IGNORE_NAK = 4096
I2C_M_NOSTART = 16384
I2C_M_NO_RD_ACK = 2048
I2C_M_RD = 1
I2C_M_RECV_LEN = 1024
I2C_M_REV_DIR_ADDR = 8192
I2C_M_STOP = 32768
I2C_M_TEN = 16
I2C_PEC = 1800
I2C_RDWR = 1799
I2C_RETRIES = 1793
I2C_SLAVE = 1795
I2C_SLAVE_FORCE = 1798
I2C_SMBUS = 1824
I2C_SMBUS_I2C_BLOCK_DATA = 8
I2C_SMBUS_QUICK = 0
I2C_TENBIT = 1796
I2C_TIMEOUT = 1794
__NR_ioctl = 54

23
sys/linux/i2c_arm64.const Normal file
View File

@ -0,0 +1,23 @@
# AUTOGENERATED FILE
I2C_FUNCS = 1797
I2C_MAX_BLOCK = 34
I2C_M_DMA_SAFE = 512
I2C_M_IGNORE_NAK = 4096
I2C_M_NOSTART = 16384
I2C_M_NO_RD_ACK = 2048
I2C_M_RD = 1
I2C_M_RECV_LEN = 1024
I2C_M_REV_DIR_ADDR = 8192
I2C_M_STOP = 32768
I2C_M_TEN = 16
I2C_PEC = 1800
I2C_RDWR = 1799
I2C_RETRIES = 1793
I2C_SLAVE = 1795
I2C_SLAVE_FORCE = 1798
I2C_SMBUS = 1824
I2C_SMBUS_I2C_BLOCK_DATA = 8
I2C_SMBUS_QUICK = 0
I2C_TENBIT = 1796
I2C_TIMEOUT = 1794
__NR_ioctl = 29

View File

@ -0,0 +1,23 @@
# AUTOGENERATED FILE
I2C_FUNCS = 1797
I2C_MAX_BLOCK = 34
I2C_M_DMA_SAFE = 512
I2C_M_IGNORE_NAK = 4096
I2C_M_NOSTART = 16384
I2C_M_NO_RD_ACK = 2048
I2C_M_RD = 1
I2C_M_RECV_LEN = 1024
I2C_M_REV_DIR_ADDR = 8192
I2C_M_STOP = 32768
I2C_M_TEN = 16
I2C_PEC = 1800
I2C_RDWR = 1799
I2C_RETRIES = 1793
I2C_SLAVE = 1795
I2C_SLAVE_FORCE = 1798
I2C_SMBUS = 1824
I2C_SMBUS_I2C_BLOCK_DATA = 8
I2C_SMBUS_QUICK = 0
I2C_TENBIT = 1796
I2C_TIMEOUT = 1794
__NR_ioctl = 54

View File

@ -34,6 +34,7 @@ var resources_ppc64le = []*ResourceDesc{
{Name: "fd_event", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_event"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_fanotify", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fanotify"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_fuse", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fuse"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_i2c", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_i2c"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_inotify", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_inotify"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_ion", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ion"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_kvm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_kvm"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -3765,6 +3766,30 @@ var structDescs_ppc64le = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ci", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "hidp_conninfo", Dir: 1}}}},
}}},
{Key: StructKey{Name: "i2c_msg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_msg", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "addr", TypeSize: 2}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "i2c_msg_flags", FldName: "flags", TypeSize: 2}}, Vals: []uint64{1, 16, 512, 1024, 2048, 4096, 8192, 16384, 32768}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 2}}, Buf: "buf"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
}}},
{Key: StructKey{Name: "i2c_rdwr_ioctl_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "i2c_rdwr_ioctl_data", TypeSize: 16}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgs", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "i2c_msg"}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nmsgs", TypeSize: 4}}, Buf: "msgs"},
&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},
}}},
{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"}}},
}}},
{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},
}, AlignAttr: 8}},
@ -17547,6 +17572,51 @@ var syscalls_ppc64le = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19305},
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}},
}},
{NR: 54, Name: "ioctl$I2C_FUNCS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1797},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}},
}},
{NR: 54, Name: "ioctl$I2C_PEC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1800},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 54, Name: "ioctl$I2C_RDWR", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1799},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "i2c_rdwr_ioctl_data"}}},
}},
{NR: 54, Name: "ioctl$I2C_RETRIES", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1793},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 54, Name: "ioctl$I2C_SLAVE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1795},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 1023},
}},
{NR: 54, Name: "ioctl$I2C_SLAVE_FORCE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1798},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 1023},
}},
{NR: 54, Name: "ioctl$I2C_SMBUS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1824},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "i2c_smbus_ioctl_data"}}},
}},
{NR: 54, Name: "ioctl$I2C_TENBIT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1796},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 1},
}},
{NR: 54, Name: "ioctl$I2C_TIMEOUT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1794},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 54, Name: "ioctl$ION_IOC_ALLOC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222817024},
@ -23520,6 +23590,11 @@ var syscalls_ppc64le = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "xfs_full_options"}}},
}},
{Name: "syz_open_dev$I2C", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 11}, Kind: 2, Values: []string{"/dev/i2c-#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 131072, 16384, 128, 65536, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_i2c", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "syz_open_dev$admmidi", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 14}, Kind: 2, Values: []string{"/dev/admmidi#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
@ -24981,6 +25056,27 @@ var consts_ppc64le = []ConstValue{
{Name: "HW_BREAKPOINT_R", Value: 1},
{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_M_DMA_SAFE", Value: 512},
{Name: "I2C_M_IGNORE_NAK", Value: 4096},
{Name: "I2C_M_NOSTART", Value: 16384},
{Name: "I2C_M_NO_RD_ACK", Value: 2048},
{Name: "I2C_M_RD", Value: 1},
{Name: "I2C_M_RECV_LEN", Value: 1024},
{Name: "I2C_M_REV_DIR_ADDR", Value: 8192},
{Name: "I2C_M_STOP", Value: 32768},
{Name: "I2C_M_TEN", Value: 16},
{Name: "I2C_PEC", Value: 1800},
{Name: "I2C_RDWR", Value: 1799},
{Name: "I2C_RETRIES", Value: 1793},
{Name: "I2C_SLAVE", Value: 1795},
{Name: "I2C_SLAVE_FORCE", Value: 1798},
{Name: "I2C_SMBUS", Value: 1824},
{Name: "I2C_SMBUS_I2C_BLOCK_DATA", Value: 8},
{Name: "I2C_SMBUS_QUICK"},
{Name: "I2C_TENBIT", Value: 1796},
{Name: "I2C_TIMEOUT", Value: 1794},
{Name: "IB_EVENT_CLIENT_REREGISTER", Value: 17},
{Name: "IB_EVENT_COMM_EST", Value: 4},
{Name: "IB_EVENT_CQ_ERR"},
@ -28271,4 +28367,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_ppc64le = "e9495aae8da8022d330e29c5bc70dcc4066184bf"
const revision_ppc64le = "2384d64bdb573f4dde8f1e1df12af42289c24ebb"