From b004e95a3aead2d756c208ba19bae2cea3bd50e5 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Wed, 5 Jun 2019 16:44:07 +0200 Subject: sys/linux: add hidraw and hiddev descriptions --- executor/defs.h | 10 +- executor/syscalls.h | 165 +++++++++++++++++++- sys/linux/dev_hidraw.txt | 37 +++++ sys/linux/dev_hidraw_386.const | 12 ++ sys/linux/dev_hidraw_amd64.const | 12 ++ sys/linux/dev_hidraw_arm.const | 12 ++ sys/linux/dev_hidraw_arm64.const | 12 ++ sys/linux/dev_hidraw_ppc64le.const | 12 ++ sys/linux/dev_usb_hiddev.txt | 89 +++++++++++ sys/linux/dev_usb_hiddev_386.const | 33 ++++ sys/linux/dev_usb_hiddev_amd64.const | 33 ++++ sys/linux/dev_usb_hiddev_arm.const | 33 ++++ sys/linux/dev_usb_hiddev_arm64.const | 33 ++++ sys/linux/dev_usb_hiddev_ppc64le.const | 33 ++++ sys/linux/gen/386.go | 276 ++++++++++++++++++++++++++++++++- sys/linux/gen/amd64.go | 276 ++++++++++++++++++++++++++++++++- sys/linux/gen/arm.go | 276 ++++++++++++++++++++++++++++++++- sys/linux/gen/arm64.go | 276 ++++++++++++++++++++++++++++++++- sys/linux/gen/ppc64le.go | 276 ++++++++++++++++++++++++++++++++- sys/linux/sys.txt | 1 - 20 files changed, 1861 insertions(+), 46 deletions(-) create mode 100644 sys/linux/dev_hidraw.txt create mode 100644 sys/linux/dev_hidraw_386.const create mode 100644 sys/linux/dev_hidraw_amd64.const create mode 100644 sys/linux/dev_hidraw_arm.const create mode 100644 sys/linux/dev_hidraw_arm64.const create mode 100644 sys/linux/dev_hidraw_ppc64le.const create mode 100644 sys/linux/dev_usb_hiddev.txt create mode 100644 sys/linux/dev_usb_hiddev_386.const create mode 100644 sys/linux/dev_usb_hiddev_amd64.const create mode 100644 sys/linux/dev_usb_hiddev_arm.const create mode 100644 sys/linux/dev_usb_hiddev_arm64.const create mode 100644 sys/linux/dev_usb_hiddev_ppc64le.const diff --git a/executor/defs.h b/executor/defs.h index 59a5fa621..53a1722b8 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -70,7 +70,7 @@ #if GOARCH_386 #define GOARCH "386" -#define SYZ_REVISION "424a5fe965ebbf6871858b76290438939ece5899" +#define SYZ_REVISION "b81e1c9faaab964af1d3646c5a242f3876e1477e" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -80,7 +80,7 @@ #if GOARCH_amd64 #define GOARCH "amd64" -#define SYZ_REVISION "ddbf82ada7a52ee8e8786ee48f374b93283916dd" +#define SYZ_REVISION "2a037cb396e21af51c329cc36af266d089a625b7" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -90,7 +90,7 @@ #if GOARCH_arm #define GOARCH "arm" -#define SYZ_REVISION "119ad8c2d0d27a59585af451149dd221409ba88d" +#define SYZ_REVISION "81a967d0dfb7f8b7da62b8fdfdbd38d4929ade87" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -100,7 +100,7 @@ #if GOARCH_arm64 #define GOARCH "arm64" -#define SYZ_REVISION "ed0579f96e93ea6e5b3b53e58d48bfd87f5f92a9" +#define SYZ_REVISION "854d614e6ac5abb635fa98a1c0487d361758ba57" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -110,7 +110,7 @@ #if GOARCH_ppc64le #define GOARCH "ppc64le" -#define SYZ_REVISION "5c5ba0ff620fdbc206179a532be9ad76f726f12f" +#define SYZ_REVISION "11755b46b0e787b4677561195aeb6b9e7fcbfab9" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 diff --git a/executor/syscalls.h b/executor/syscalls.h index 4584b301d..879ce30b2 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -2820,6 +2820,33 @@ const call_t syscalls[] = { {"ioctl$GIO_UNISCRNMAP", 54}, {"ioctl$HCIINQUIRY", 54}, {"ioctl$HDIO_GETGEO", 54}, + {"ioctl$HIDIOCAPPLICATION", 54}, + {"ioctl$HIDIOCGCOLLECTIONINDEX", 54}, + {"ioctl$HIDIOCGCOLLECTIONINFO", 54}, + {"ioctl$HIDIOCGDEVINFO", 54}, + {"ioctl$HIDIOCGFEATURE", 54}, + {"ioctl$HIDIOCGFIELDINFO", 54}, + {"ioctl$HIDIOCGFLAG", 54}, + {"ioctl$HIDIOCGNAME", 54}, + {"ioctl$HIDIOCGPHYS", 54}, + {"ioctl$HIDIOCGRAWINFO", 54}, + {"ioctl$HIDIOCGRAWNAME", 54}, + {"ioctl$HIDIOCGRAWPHYS", 54}, + {"ioctl$HIDIOCGRDESC", 54}, + {"ioctl$HIDIOCGRDESCSIZE", 54}, + {"ioctl$HIDIOCGREPORT", 54}, + {"ioctl$HIDIOCGREPORTINFO", 54}, + {"ioctl$HIDIOCGSTRING", 54}, + {"ioctl$HIDIOCGUCODE", 54}, + {"ioctl$HIDIOCGUSAGE", 54}, + {"ioctl$HIDIOCGUSAGES", 54}, + {"ioctl$HIDIOCGVERSION", 54}, + {"ioctl$HIDIOCINITREPORT", 54}, + {"ioctl$HIDIOCSFEATURE", 54}, + {"ioctl$HIDIOCSFLAG", 54}, + {"ioctl$HIDIOCSREPORT", 54}, + {"ioctl$HIDIOCSUSAGE", 54}, + {"ioctl$HIDIOCSUSAGES", 54}, {"ioctl$I2C_FUNCS", 54}, {"ioctl$I2C_PEC", 54}, {"ioctl$I2C_RDWR", 54}, @@ -3729,7 +3756,6 @@ const call_t syscalls[] = { {"openat$fb0", 295}, {"openat$full", 295}, {"openat$fuse", 295}, - {"openat$hidraw0", 295}, {"openat$hpet", 295}, {"openat$hwrng", 295}, {"openat$ion", 295}, @@ -3907,6 +3933,8 @@ const call_t syscalls[] = { {"read$FUSE", 3}, {"read$alg", 3}, {"read$eventfd", 3}, + {"read$hiddev", 3}, + {"read$hidraw", 3}, {"read$rfkill", 3}, {"read$trusty", 3}, {"readahead", 225}, @@ -4539,6 +4567,8 @@ const call_t syscalls[] = { {"syz_open_dev$dspn", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$evdev", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$floppy", 0, (syscall_t)syz_open_dev}, + {"syz_open_dev$hiddev", 0, (syscall_t)syz_open_dev}, + {"syz_open_dev$hidraw", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$ibv_device", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$ircomm", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$loop", 0, (syscall_t)syz_open_dev}, @@ -4756,6 +4786,7 @@ const call_t syscalls[] = { {"write$cgroup_type", 4}, {"write$evdev", 4}, {"write$eventfd", 4}, + {"write$hidraw", 4}, {"write$input_event", 4}, {"write$nbd", 4}, {"write$ppp", 4}, @@ -5520,6 +5551,33 @@ const call_t syscalls[] = { {"ioctl$GIO_UNISCRNMAP", 16}, {"ioctl$HCIINQUIRY", 16}, {"ioctl$HDIO_GETGEO", 16}, + {"ioctl$HIDIOCAPPLICATION", 16}, + {"ioctl$HIDIOCGCOLLECTIONINDEX", 16}, + {"ioctl$HIDIOCGCOLLECTIONINFO", 16}, + {"ioctl$HIDIOCGDEVINFO", 16}, + {"ioctl$HIDIOCGFEATURE", 16}, + {"ioctl$HIDIOCGFIELDINFO", 16}, + {"ioctl$HIDIOCGFLAG", 16}, + {"ioctl$HIDIOCGNAME", 16}, + {"ioctl$HIDIOCGPHYS", 16}, + {"ioctl$HIDIOCGRAWINFO", 16}, + {"ioctl$HIDIOCGRAWNAME", 16}, + {"ioctl$HIDIOCGRAWPHYS", 16}, + {"ioctl$HIDIOCGRDESC", 16}, + {"ioctl$HIDIOCGRDESCSIZE", 16}, + {"ioctl$HIDIOCGREPORT", 16}, + {"ioctl$HIDIOCGREPORTINFO", 16}, + {"ioctl$HIDIOCGSTRING", 16}, + {"ioctl$HIDIOCGUCODE", 16}, + {"ioctl$HIDIOCGUSAGE", 16}, + {"ioctl$HIDIOCGUSAGES", 16}, + {"ioctl$HIDIOCGVERSION", 16}, + {"ioctl$HIDIOCINITREPORT", 16}, + {"ioctl$HIDIOCSFEATURE", 16}, + {"ioctl$HIDIOCSFLAG", 16}, + {"ioctl$HIDIOCSREPORT", 16}, + {"ioctl$HIDIOCSUSAGE", 16}, + {"ioctl$HIDIOCSUSAGES", 16}, {"ioctl$I2C_FUNCS", 16}, {"ioctl$I2C_PEC", 16}, {"ioctl$I2C_RDWR", 16}, @@ -6433,7 +6491,6 @@ const call_t syscalls[] = { {"openat$fb0", 257}, {"openat$full", 257}, {"openat$fuse", 257}, - {"openat$hidraw0", 257}, {"openat$hpet", 257}, {"openat$hwrng", 257}, {"openat$ion", 257}, @@ -6611,6 +6668,8 @@ const call_t syscalls[] = { {"read$FUSE", 0}, {"read$alg", 0}, {"read$eventfd", 0}, + {"read$hiddev", 0}, + {"read$hidraw", 0}, {"read$rfkill", 0}, {"read$trusty", 0}, {"readahead", 187}, @@ -7244,6 +7303,8 @@ const call_t syscalls[] = { {"syz_open_dev$dspn", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$evdev", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$floppy", 0, (syscall_t)syz_open_dev}, + {"syz_open_dev$hiddev", 0, (syscall_t)syz_open_dev}, + {"syz_open_dev$hidraw", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$ibv_device", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$ircomm", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$loop", 0, (syscall_t)syz_open_dev}, @@ -7461,6 +7522,7 @@ const call_t syscalls[] = { {"write$cgroup_type", 1}, {"write$evdev", 1}, {"write$eventfd", 1}, + {"write$hidraw", 1}, {"write$input_event", 1}, {"write$nbd", 1}, {"write$ppp", 1}, @@ -8213,6 +8275,33 @@ const call_t syscalls[] = { {"ioctl$GIO_UNISCRNMAP", 54}, {"ioctl$HCIINQUIRY", 54}, {"ioctl$HDIO_GETGEO", 54}, + {"ioctl$HIDIOCAPPLICATION", 54}, + {"ioctl$HIDIOCGCOLLECTIONINDEX", 54}, + {"ioctl$HIDIOCGCOLLECTIONINFO", 54}, + {"ioctl$HIDIOCGDEVINFO", 54}, + {"ioctl$HIDIOCGFEATURE", 54}, + {"ioctl$HIDIOCGFIELDINFO", 54}, + {"ioctl$HIDIOCGFLAG", 54}, + {"ioctl$HIDIOCGNAME", 54}, + {"ioctl$HIDIOCGPHYS", 54}, + {"ioctl$HIDIOCGRAWINFO", 54}, + {"ioctl$HIDIOCGRAWNAME", 54}, + {"ioctl$HIDIOCGRAWPHYS", 54}, + {"ioctl$HIDIOCGRDESC", 54}, + {"ioctl$HIDIOCGRDESCSIZE", 54}, + {"ioctl$HIDIOCGREPORT", 54}, + {"ioctl$HIDIOCGREPORTINFO", 54}, + {"ioctl$HIDIOCGSTRING", 54}, + {"ioctl$HIDIOCGUCODE", 54}, + {"ioctl$HIDIOCGUSAGE", 54}, + {"ioctl$HIDIOCGUSAGES", 54}, + {"ioctl$HIDIOCGVERSION", 54}, + {"ioctl$HIDIOCINITREPORT", 54}, + {"ioctl$HIDIOCSFEATURE", 54}, + {"ioctl$HIDIOCSFLAG", 54}, + {"ioctl$HIDIOCSREPORT", 54}, + {"ioctl$HIDIOCSUSAGE", 54}, + {"ioctl$HIDIOCSUSAGES", 54}, {"ioctl$I2C_FUNCS", 54}, {"ioctl$I2C_PEC", 54}, {"ioctl$I2C_RDWR", 54}, @@ -9092,7 +9181,6 @@ const call_t syscalls[] = { {"openat$fb0", 322}, {"openat$full", 322}, {"openat$fuse", 322}, - {"openat$hidraw0", 322}, {"openat$hpet", 322}, {"openat$hwrng", 322}, {"openat$ion", 322}, @@ -9270,6 +9358,8 @@ const call_t syscalls[] = { {"read$FUSE", 3}, {"read$alg", 3}, {"read$eventfd", 3}, + {"read$hiddev", 3}, + {"read$hidraw", 3}, {"read$rfkill", 3}, {"read$trusty", 3}, {"readahead", 225}, @@ -9901,6 +9991,8 @@ const call_t syscalls[] = { {"syz_open_dev$dspn", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$evdev", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$floppy", 0, (syscall_t)syz_open_dev}, + {"syz_open_dev$hiddev", 0, (syscall_t)syz_open_dev}, + {"syz_open_dev$hidraw", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$ibv_device", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$ircomm", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$loop", 0, (syscall_t)syz_open_dev}, @@ -10116,6 +10208,7 @@ const call_t syscalls[] = { {"write$cgroup_type", 4}, {"write$evdev", 4}, {"write$eventfd", 4}, + {"write$hidraw", 4}, {"write$input_event", 4}, {"write$nbd", 4}, {"write$ppp", 4}, @@ -10859,6 +10952,33 @@ const call_t syscalls[] = { {"ioctl$GIO_UNISCRNMAP", 29}, {"ioctl$HCIINQUIRY", 29}, {"ioctl$HDIO_GETGEO", 29}, + {"ioctl$HIDIOCAPPLICATION", 29}, + {"ioctl$HIDIOCGCOLLECTIONINDEX", 29}, + {"ioctl$HIDIOCGCOLLECTIONINFO", 29}, + {"ioctl$HIDIOCGDEVINFO", 29}, + {"ioctl$HIDIOCGFEATURE", 29}, + {"ioctl$HIDIOCGFIELDINFO", 29}, + {"ioctl$HIDIOCGFLAG", 29}, + {"ioctl$HIDIOCGNAME", 29}, + {"ioctl$HIDIOCGPHYS", 29}, + {"ioctl$HIDIOCGRAWINFO", 29}, + {"ioctl$HIDIOCGRAWNAME", 29}, + {"ioctl$HIDIOCGRAWPHYS", 29}, + {"ioctl$HIDIOCGRDESC", 29}, + {"ioctl$HIDIOCGRDESCSIZE", 29}, + {"ioctl$HIDIOCGREPORT", 29}, + {"ioctl$HIDIOCGREPORTINFO", 29}, + {"ioctl$HIDIOCGSTRING", 29}, + {"ioctl$HIDIOCGUCODE", 29}, + {"ioctl$HIDIOCGUSAGE", 29}, + {"ioctl$HIDIOCGUSAGES", 29}, + {"ioctl$HIDIOCGVERSION", 29}, + {"ioctl$HIDIOCINITREPORT", 29}, + {"ioctl$HIDIOCSFEATURE", 29}, + {"ioctl$HIDIOCSFLAG", 29}, + {"ioctl$HIDIOCSREPORT", 29}, + {"ioctl$HIDIOCSUSAGE", 29}, + {"ioctl$HIDIOCSUSAGES", 29}, {"ioctl$I2C_FUNCS", 29}, {"ioctl$I2C_PEC", 29}, {"ioctl$I2C_RDWR", 29}, @@ -11735,7 +11855,6 @@ const call_t syscalls[] = { {"openat$fb0", 56}, {"openat$full", 56}, {"openat$fuse", 56}, - {"openat$hidraw0", 56}, {"openat$hpet", 56}, {"openat$hwrng", 56}, {"openat$ion", 56}, @@ -11910,6 +12029,8 @@ const call_t syscalls[] = { {"read$FUSE", 63}, {"read$alg", 63}, {"read$eventfd", 63}, + {"read$hiddev", 63}, + {"read$hidraw", 63}, {"read$rfkill", 63}, {"read$trusty", 63}, {"readahead", 213}, @@ -12532,6 +12653,8 @@ const call_t syscalls[] = { {"syz_open_dev$dspn", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$evdev", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$floppy", 0, (syscall_t)syz_open_dev}, + {"syz_open_dev$hiddev", 0, (syscall_t)syz_open_dev}, + {"syz_open_dev$hidraw", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$ibv_device", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$ircomm", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$loop", 0, (syscall_t)syz_open_dev}, @@ -12743,6 +12866,7 @@ const call_t syscalls[] = { {"write$cgroup_type", 64}, {"write$evdev", 64}, {"write$eventfd", 64}, + {"write$hidraw", 64}, {"write$input_event", 64}, {"write$nbd", 64}, {"write$ppp", 64}, @@ -13498,6 +13622,33 @@ const call_t syscalls[] = { {"ioctl$GIO_UNISCRNMAP", 54}, {"ioctl$HCIINQUIRY", 54}, {"ioctl$HDIO_GETGEO", 54}, + {"ioctl$HIDIOCAPPLICATION", 54}, + {"ioctl$HIDIOCGCOLLECTIONINDEX", 54}, + {"ioctl$HIDIOCGCOLLECTIONINFO", 54}, + {"ioctl$HIDIOCGDEVINFO", 54}, + {"ioctl$HIDIOCGFEATURE", 54}, + {"ioctl$HIDIOCGFIELDINFO", 54}, + {"ioctl$HIDIOCGFLAG", 54}, + {"ioctl$HIDIOCGNAME", 54}, + {"ioctl$HIDIOCGPHYS", 54}, + {"ioctl$HIDIOCGRAWINFO", 54}, + {"ioctl$HIDIOCGRAWNAME", 54}, + {"ioctl$HIDIOCGRAWPHYS", 54}, + {"ioctl$HIDIOCGRDESC", 54}, + {"ioctl$HIDIOCGRDESCSIZE", 54}, + {"ioctl$HIDIOCGREPORT", 54}, + {"ioctl$HIDIOCGREPORTINFO", 54}, + {"ioctl$HIDIOCGSTRING", 54}, + {"ioctl$HIDIOCGUCODE", 54}, + {"ioctl$HIDIOCGUSAGE", 54}, + {"ioctl$HIDIOCGUSAGES", 54}, + {"ioctl$HIDIOCGVERSION", 54}, + {"ioctl$HIDIOCINITREPORT", 54}, + {"ioctl$HIDIOCSFEATURE", 54}, + {"ioctl$HIDIOCSFLAG", 54}, + {"ioctl$HIDIOCSREPORT", 54}, + {"ioctl$HIDIOCSUSAGE", 54}, + {"ioctl$HIDIOCSUSAGES", 54}, {"ioctl$I2C_FUNCS", 54}, {"ioctl$I2C_PEC", 54}, {"ioctl$I2C_RDWR", 54}, @@ -14373,7 +14524,6 @@ const call_t syscalls[] = { {"openat$fb0", 286}, {"openat$full", 286}, {"openat$fuse", 286}, - {"openat$hidraw0", 286}, {"openat$hpet", 286}, {"openat$hwrng", 286}, {"openat$ion", 286}, @@ -14551,6 +14701,8 @@ const call_t syscalls[] = { {"read$FUSE", 3}, {"read$alg", 3}, {"read$eventfd", 3}, + {"read$hiddev", 3}, + {"read$hidraw", 3}, {"read$rfkill", 3}, {"read$trusty", 3}, {"readahead", 191}, @@ -15181,6 +15333,8 @@ const call_t syscalls[] = { {"syz_open_dev$dspn", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$evdev", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$floppy", 0, (syscall_t)syz_open_dev}, + {"syz_open_dev$hiddev", 0, (syscall_t)syz_open_dev}, + {"syz_open_dev$hidraw", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$ibv_device", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$ircomm", 0, (syscall_t)syz_open_dev}, {"syz_open_dev$loop", 0, (syscall_t)syz_open_dev}, @@ -15398,6 +15552,7 @@ const call_t syscalls[] = { {"write$cgroup_type", 4}, {"write$evdev", 4}, {"write$eventfd", 4}, + {"write$hidraw", 4}, {"write$input_event", 4}, {"write$nbd", 4}, {"write$ppp", 4}, diff --git a/sys/linux/dev_hidraw.txt b/sys/linux/dev_hidraw.txt new file mode 100644 index 000000000..97394980a --- /dev/null +++ b/sys/linux/dev_hidraw.txt @@ -0,0 +1,37 @@ +# Copyright 2019 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 + +resource fd_hidraw[fd] + +syz_open_dev$hidraw(dev ptr[in, string["/dev/hidraw#"]], id intptr, flags flags[open_flags]) fd_hidraw + +# TODO: binary format (see https://elixir.bootlin.com/linux/v5.1.7/source/drivers/hid/hidraw.c#L111) +write$hidraw(fd fd_hidraw, data buffer[in], len bytesize[data]) +read$hidraw(fd fd_hidraw, data buffer[out], len bytesize[data]) + +# https://elixir.bootlin.com/linux/v5.1.7/source/include/uapi/linux/hidraw.h#L34 +ioctl$HIDIOCGRDESCSIZE(fd fd_hidraw, cmd const[HIDIOCGRDESCSIZE], arg ptr[out, int32]) +ioctl$HIDIOCGRDESC(fd fd_hidraw, cmd const[HIDIOCGRDESC], arg ptr[inout, hidraw_report_descriptor]) +ioctl$HIDIOCGRAWINFO(fd fd_hidraw, cmd const[HIDIOCGRAWINFO], arg buffer[out]) +ioctl$HIDIOCGRAWNAME(fd fd_hidraw, cmd const[HIDIOCGRAWNAME64], arg ptr[out, array[int8, 64]]) +ioctl$HIDIOCGRAWPHYS(fd fd_hidraw, cmd const[HIDIOCGRAWPHYS64], arg ptr[out, array[int8, 64]]) +# TODO: binary format (see https://elixir.bootlin.com/linux/v5.1.7/source/drivers/hid/hidraw.c#L111) +ioctl$HIDIOCSFEATURE(fd fd_hidraw, cmd const[HIDIOCSFEATURE64], arg buffer[in]) +ioctl$HIDIOCGFEATURE(fd fd_hidraw, cmd const[HIDIOCGFEATURE64], arg ptr[inout, hidraw_get_report_arg]) + +hidraw_report_descriptor { + size bytesize[value, int32] + value array[int8, 0:HID_MAX_DESCRIPTOR_SIZE] +} + +hidraw_get_report_arg { + report_number int8 + report array[int8, 64] +} [packed] + +define HIDIOCGRAWNAME64 HIDIOCGRAWNAME(64) +define HIDIOCGRAWPHYS64 HIDIOCGRAWPHYS(64) +define HIDIOCSFEATURE64 HIDIOCSFEATURE(64) +define HIDIOCGFEATURE64 HIDIOCGFEATURE(64) diff --git a/sys/linux/dev_hidraw_386.const b/sys/linux/dev_hidraw_386.const new file mode 100644 index 000000000..83079d767 --- /dev/null +++ b/sys/linux/dev_hidraw_386.const @@ -0,0 +1,12 @@ +# AUTOGENERATED FILE +HIDIOCGFEATURE64 = 3225438215 +HIDIOCGRAWINFO = 2148026371 +HIDIOCGRAWNAME64 = 2151696388 +HIDIOCGRAWPHYS64 = 2151696389 +HIDIOCGRDESC = 2416199682 +HIDIOCGRDESCSIZE = 2147764225 +HIDIOCSFEATURE64 = 3225438214 +HID_MAX_DESCRIPTOR_SIZE = 4096 +__NR_ioctl = 54 +__NR_read = 3 +__NR_write = 4 diff --git a/sys/linux/dev_hidraw_amd64.const b/sys/linux/dev_hidraw_amd64.const new file mode 100644 index 000000000..4d272c8b6 --- /dev/null +++ b/sys/linux/dev_hidraw_amd64.const @@ -0,0 +1,12 @@ +# AUTOGENERATED FILE +HIDIOCGFEATURE64 = 3225438215 +HIDIOCGRAWINFO = 2148026371 +HIDIOCGRAWNAME64 = 2151696388 +HIDIOCGRAWPHYS64 = 2151696389 +HIDIOCGRDESC = 2416199682 +HIDIOCGRDESCSIZE = 2147764225 +HIDIOCSFEATURE64 = 3225438214 +HID_MAX_DESCRIPTOR_SIZE = 4096 +__NR_ioctl = 16 +__NR_read = 0 +__NR_write = 1 diff --git a/sys/linux/dev_hidraw_arm.const b/sys/linux/dev_hidraw_arm.const new file mode 100644 index 000000000..83079d767 --- /dev/null +++ b/sys/linux/dev_hidraw_arm.const @@ -0,0 +1,12 @@ +# AUTOGENERATED FILE +HIDIOCGFEATURE64 = 3225438215 +HIDIOCGRAWINFO = 2148026371 +HIDIOCGRAWNAME64 = 2151696388 +HIDIOCGRAWPHYS64 = 2151696389 +HIDIOCGRDESC = 2416199682 +HIDIOCGRDESCSIZE = 2147764225 +HIDIOCSFEATURE64 = 3225438214 +HID_MAX_DESCRIPTOR_SIZE = 4096 +__NR_ioctl = 54 +__NR_read = 3 +__NR_write = 4 diff --git a/sys/linux/dev_hidraw_arm64.const b/sys/linux/dev_hidraw_arm64.const new file mode 100644 index 000000000..1f165cacb --- /dev/null +++ b/sys/linux/dev_hidraw_arm64.const @@ -0,0 +1,12 @@ +# AUTOGENERATED FILE +HIDIOCGFEATURE64 = 3225438215 +HIDIOCGRAWINFO = 2148026371 +HIDIOCGRAWNAME64 = 2151696388 +HIDIOCGRAWPHYS64 = 2151696389 +HIDIOCGRDESC = 2416199682 +HIDIOCGRDESCSIZE = 2147764225 +HIDIOCSFEATURE64 = 3225438214 +HID_MAX_DESCRIPTOR_SIZE = 4096 +__NR_ioctl = 29 +__NR_read = 63 +__NR_write = 64 diff --git a/sys/linux/dev_hidraw_ppc64le.const b/sys/linux/dev_hidraw_ppc64le.const new file mode 100644 index 000000000..cce9ce895 --- /dev/null +++ b/sys/linux/dev_hidraw_ppc64le.const @@ -0,0 +1,12 @@ +# AUTOGENERATED FILE +HIDIOCGFEATURE64 = 3225438215 +HIDIOCGRAWINFO = 1074284547 +HIDIOCGRAWNAME64 = 1077954564 +HIDIOCGRAWPHYS64 = 1077954565 +HIDIOCGRDESC = 1342457858 +HIDIOCGRDESCSIZE = 1074022401 +HIDIOCSFEATURE64 = 3225438214 +HID_MAX_DESCRIPTOR_SIZE = 4096 +__NR_ioctl = 54 +__NR_read = 3 +__NR_write = 4 diff --git a/sys/linux/dev_usb_hiddev.txt b/sys/linux/dev_usb_hiddev.txt new file mode 100644 index 000000000..a9488d2f1 --- /dev/null +++ b/sys/linux/dev_usb_hiddev.txt @@ -0,0 +1,89 @@ +# Copyright 2019 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 +include + +resource fd_hiddev[fd] + +syz_open_dev$hiddev(dev ptr[in, string["/dev/usb/hiddev#"]], id intptr, flags flags[open_flags]) fd_hiddev + +read$hiddev(fd fd_hiddev, data buffer[out], len bytesize[data]) + +# https://elixir.bootlin.com/linux/v5.1.7/source/include/uapi/linux/hiddev.h#L155 +ioctl$HIDIOCGVERSION(fd fd_hiddev, cmd const[HIDIOCGVERSION], arg ptr[out, int32]) +ioctl$HIDIOCAPPLICATION(fd fd_hiddev, cmd const[HIDIOCAPPLICATION], arg int32) +ioctl$HIDIOCGDEVINFO(fd fd_hiddev, cmd const[HIDIOCGDEVINFO], arg buffer[out]) +ioctl$HIDIOCGSTRING(fd fd_hiddev, cmd const[HIDIOCGSTRING], arg ptr[inout, hiddev_ioctl_string_arg]) +ioctl$HIDIOCINITREPORT(fd fd_hiddev, cmd const[HIDIOCINITREPORT], arg const[0]) +ioctl$HIDIOCGNAME(fd fd_hiddev, cmd const[HIDIOCGNAME64], arg ptr[out, array[int8, 64]]) +ioctl$HIDIOCGREPORT(fd fd_hiddev, cmd const[HIDIOCGREPORT], arg ptr[in, hiddev_report_info]) +ioctl$HIDIOCSREPORT(fd fd_hiddev, cmd const[HIDIOCSREPORT], arg ptr[in, hiddev_report_info]) +ioctl$HIDIOCGREPORTINFO(fd fd_hiddev, cmd const[HIDIOCGREPORTINFO], arg ptr[inout, hiddev_report_info]) +ioctl$HIDIOCGFIELDINFO(fd fd_hiddev, cmd const[HIDIOCGFIELDINFO], arg ptr[inout, hiddev_field_info]) +ioctl$HIDIOCGUSAGE(fd fd_hiddev, cmd const[HIDIOCGUSAGE], arg ptr[inout, hiddev_usage_ref]) +ioctl$HIDIOCSUSAGE(fd fd_hiddev, cmd const[HIDIOCSUSAGE], arg ptr[in, hiddev_usage_ref]) +ioctl$HIDIOCGUCODE(fd fd_hiddev, cmd const[HIDIOCGUCODE], arg ptr[inout, hiddev_usage_ref]) +ioctl$HIDIOCGFLAG(fd fd_hiddev, cmd const[HIDIOCGFLAG], arg ptr[out, int32]) +ioctl$HIDIOCSFLAG(fd fd_hiddev, cmd const[HIDIOCSFLAG], arg ptr[in, flags[hiddev_flags, int32]]) +ioctl$HIDIOCGCOLLECTIONINDEX(fd fd_hiddev, cmd const[HIDIOCGCOLLECTIONINDEX], arg ptr[in, hiddev_usage_ref]) +ioctl$HIDIOCGCOLLECTIONINFO(fd fd_hiddev, cmd const[HIDIOCGCOLLECTIONINFO], arg ptr[inout, hiddev_collection_info]) +ioctl$HIDIOCGPHYS(fd fd_hiddev, cmd const[HIDIOCGPHYS64], arg ptr[out, array[int8, 64]]) +ioctl$HIDIOCGUSAGES(fd fd_hiddev, cmd const[HIDIOCGUSAGES], arg ptr[inout, hiddev_usage_ref_multi]) +ioctl$HIDIOCSUSAGES(fd fd_hiddev, cmd const[HIDIOCSUSAGES], arg ptr[in, hiddev_usage_ref_multi]) + +hiddev_ioctl_string_arg { + idx len[data, int32] + data array[int8] +} + +hiddev_report_info { + report_type int32[HID_REPORT_TYPE_MIN:HID_REPORT_TYPE_MAX] + report_id flags[hid_report_ids, int32] + num_fields int32 +} + +hiddev_field_info { + report_type int32[HID_REPORT_TYPE_MIN:HID_REPORT_TYPE_MAX] + report_id flags[hid_report_ids, int32] + field_index int32 + maxusage int32 + flags int32 + physical int32 + logical int32 + application int32 + logical_minimum int32 + logical_maximum int32 + physical_minimum int32 + physical_maximum int32 + unit_exponent int32 + unit int32 +} + +hiddev_collection_info { + index int32 + type int32 + usage int32 + level int32 +} + +hiddev_usage_ref { + report_type int32[HID_REPORT_TYPE_MIN:HID_REPORT_TYPE_MAX] + report_id flags[hid_report_ids, int32] + field_index int32 + usage_index int32 + usage_code int32 + value int32 +} + +hiddev_usage_ref_multi { + uref hiddev_usage_ref + num_values int32[0:HID_MAX_MULTI_USAGES] + values array[int32, HID_MAX_MULTI_USAGES] +} + +hiddev_flags = HIDDEV_FLAG_UREF, HIDDEV_FLAG_REPORT, HIDDEV_FLAGS +hid_report_ids = 1, 2, 3, HID_REPORT_ID_UNKNOWN, HID_REPORT_ID_FIRST, HID_REPORT_ID_NEXT + +define HIDIOCGNAME64 HIDIOCGNAME(64) +define HIDIOCGPHYS64 HIDIOCGPHYS(64) diff --git a/sys/linux/dev_usb_hiddev_386.const b/sys/linux/dev_usb_hiddev_386.const new file mode 100644 index 000000000..b08225f56 --- /dev/null +++ b/sys/linux/dev_usb_hiddev_386.const @@ -0,0 +1,33 @@ +# AUTOGENERATED FILE +HIDDEV_FLAGS = 3 +HIDDEV_FLAG_REPORT = 2 +HIDDEV_FLAG_UREF = 1 +HIDIOCAPPLICATION = 18434 +HIDIOCGCOLLECTIONINDEX = 1075333136 +HIDIOCGCOLLECTIONINFO = 3222292497 +HIDIOCGDEVINFO = 2149337091 +HIDIOCGFIELDINFO = 3224913930 +HIDIOCGFLAG = 2147764238 +HIDIOCGNAME64 = 2151696390 +HIDIOCGPHYS64 = 2151696402 +HIDIOCGREPORT = 1074546695 +HIDIOCGREPORTINFO = 3222030345 +HIDIOCGSTRING = 2164541444 +HIDIOCGUCODE = 3222816781 +HIDIOCGUSAGE = 3222816779 +HIDIOCGUSAGES = 3491514387 +HIDIOCGVERSION = 2147764225 +HIDIOCINITREPORT = 18437 +HIDIOCSFLAG = 1074022415 +HIDIOCSREPORT = 1074546696 +HIDIOCSUSAGE = 1075333132 +HIDIOCSUSAGES = 1344030740 +HID_MAX_MULTI_USAGES = 1024 +HID_REPORT_ID_FIRST = 256 +HID_REPORT_ID_NEXT = 512 +HID_REPORT_ID_UNKNOWN = 4294967295 +HID_REPORT_TYPE_MAX = 3 +HID_REPORT_TYPE_MIN = 1 +__NR_ioctl = 54 +__NR_read = 3 +__NR_write = 4 diff --git a/sys/linux/dev_usb_hiddev_amd64.const b/sys/linux/dev_usb_hiddev_amd64.const new file mode 100644 index 000000000..9a35b3560 --- /dev/null +++ b/sys/linux/dev_usb_hiddev_amd64.const @@ -0,0 +1,33 @@ +# AUTOGENERATED FILE +HIDDEV_FLAGS = 3 +HIDDEV_FLAG_REPORT = 2 +HIDDEV_FLAG_UREF = 1 +HIDIOCAPPLICATION = 18434 +HIDIOCGCOLLECTIONINDEX = 1075333136 +HIDIOCGCOLLECTIONINFO = 3222292497 +HIDIOCGDEVINFO = 2149337091 +HIDIOCGFIELDINFO = 3224913930 +HIDIOCGFLAG = 2147764238 +HIDIOCGNAME64 = 2151696390 +HIDIOCGPHYS64 = 2151696402 +HIDIOCGREPORT = 1074546695 +HIDIOCGREPORTINFO = 3222030345 +HIDIOCGSTRING = 2164541444 +HIDIOCGUCODE = 3222816781 +HIDIOCGUSAGE = 3222816779 +HIDIOCGUSAGES = 3491514387 +HIDIOCGVERSION = 2147764225 +HIDIOCINITREPORT = 18437 +HIDIOCSFLAG = 1074022415 +HIDIOCSREPORT = 1074546696 +HIDIOCSUSAGE = 1075333132 +HIDIOCSUSAGES = 1344030740 +HID_MAX_MULTI_USAGES = 1024 +HID_REPORT_ID_FIRST = 256 +HID_REPORT_ID_NEXT = 512 +HID_REPORT_ID_UNKNOWN = 4294967295 +HID_REPORT_TYPE_MAX = 3 +HID_REPORT_TYPE_MIN = 1 +__NR_ioctl = 16 +__NR_read = 0 +__NR_write = 1 diff --git a/sys/linux/dev_usb_hiddev_arm.const b/sys/linux/dev_usb_hiddev_arm.const new file mode 100644 index 000000000..b08225f56 --- /dev/null +++ b/sys/linux/dev_usb_hiddev_arm.const @@ -0,0 +1,33 @@ +# AUTOGENERATED FILE +HIDDEV_FLAGS = 3 +HIDDEV_FLAG_REPORT = 2 +HIDDEV_FLAG_UREF = 1 +HIDIOCAPPLICATION = 18434 +HIDIOCGCOLLECTIONINDEX = 1075333136 +HIDIOCGCOLLECTIONINFO = 3222292497 +HIDIOCGDEVINFO = 2149337091 +HIDIOCGFIELDINFO = 3224913930 +HIDIOCGFLAG = 2147764238 +HIDIOCGNAME64 = 2151696390 +HIDIOCGPHYS64 = 2151696402 +HIDIOCGREPORT = 1074546695 +HIDIOCGREPORTINFO = 3222030345 +HIDIOCGSTRING = 2164541444 +HIDIOCGUCODE = 3222816781 +HIDIOCGUSAGE = 3222816779 +HIDIOCGUSAGES = 3491514387 +HIDIOCGVERSION = 2147764225 +HIDIOCINITREPORT = 18437 +HIDIOCSFLAG = 1074022415 +HIDIOCSREPORT = 1074546696 +HIDIOCSUSAGE = 1075333132 +HIDIOCSUSAGES = 1344030740 +HID_MAX_MULTI_USAGES = 1024 +HID_REPORT_ID_FIRST = 256 +HID_REPORT_ID_NEXT = 512 +HID_REPORT_ID_UNKNOWN = 4294967295 +HID_REPORT_TYPE_MAX = 3 +HID_REPORT_TYPE_MIN = 1 +__NR_ioctl = 54 +__NR_read = 3 +__NR_write = 4 diff --git a/sys/linux/dev_usb_hiddev_arm64.const b/sys/linux/dev_usb_hiddev_arm64.const new file mode 100644 index 000000000..adf0c266c --- /dev/null +++ b/sys/linux/dev_usb_hiddev_arm64.const @@ -0,0 +1,33 @@ +# AUTOGENERATED FILE +HIDDEV_FLAGS = 3 +HIDDEV_FLAG_REPORT = 2 +HIDDEV_FLAG_UREF = 1 +HIDIOCAPPLICATION = 18434 +HIDIOCGCOLLECTIONINDEX = 1075333136 +HIDIOCGCOLLECTIONINFO = 3222292497 +HIDIOCGDEVINFO = 2149337091 +HIDIOCGFIELDINFO = 3224913930 +HIDIOCGFLAG = 2147764238 +HIDIOCGNAME64 = 2151696390 +HIDIOCGPHYS64 = 2151696402 +HIDIOCGREPORT = 1074546695 +HIDIOCGREPORTINFO = 3222030345 +HIDIOCGSTRING = 2164541444 +HIDIOCGUCODE = 3222816781 +HIDIOCGUSAGE = 3222816779 +HIDIOCGUSAGES = 3491514387 +HIDIOCGVERSION = 2147764225 +HIDIOCINITREPORT = 18437 +HIDIOCSFLAG = 1074022415 +HIDIOCSREPORT = 1074546696 +HIDIOCSUSAGE = 1075333132 +HIDIOCSUSAGES = 1344030740 +HID_MAX_MULTI_USAGES = 1024 +HID_REPORT_ID_FIRST = 256 +HID_REPORT_ID_NEXT = 512 +HID_REPORT_ID_UNKNOWN = 4294967295 +HID_REPORT_TYPE_MAX = 3 +HID_REPORT_TYPE_MIN = 1 +__NR_ioctl = 29 +__NR_read = 63 +__NR_write = 64 diff --git a/sys/linux/dev_usb_hiddev_ppc64le.const b/sys/linux/dev_usb_hiddev_ppc64le.const new file mode 100644 index 000000000..402006ad4 --- /dev/null +++ b/sys/linux/dev_usb_hiddev_ppc64le.const @@ -0,0 +1,33 @@ +# AUTOGENERATED FILE +HIDDEV_FLAGS = 3 +HIDDEV_FLAG_REPORT = 2 +HIDDEV_FLAG_UREF = 1 +HIDIOCAPPLICATION = 536889346 +HIDIOCGCOLLECTIONINDEX = 2149074960 +HIDIOCGCOLLECTIONINFO = 3222292497 +HIDIOCGDEVINFO = 1075595267 +HIDIOCGFIELDINFO = 3224913930 +HIDIOCGFLAG = 1074022414 +HIDIOCGNAME64 = 1077954566 +HIDIOCGPHYS64 = 1077954578 +HIDIOCGREPORT = 2148288519 +HIDIOCGREPORTINFO = 3222030345 +HIDIOCGSTRING = 1090799620 +HIDIOCGUCODE = 3222816781 +HIDIOCGUSAGE = 3222816779 +HIDIOCGUSAGES = 3491514387 +HIDIOCGVERSION = 1074022401 +HIDIOCINITREPORT = 536889349 +HIDIOCSFLAG = 2147764239 +HIDIOCSREPORT = 2148288520 +HIDIOCSUSAGE = 2149074956 +HIDIOCSUSAGES = 2417772564 +HID_MAX_MULTI_USAGES = 1024 +HID_REPORT_ID_FIRST = 256 +HID_REPORT_ID_NEXT = 512 +HID_REPORT_ID_UNKNOWN = 4294967295 +HID_REPORT_TYPE_MAX = 3 +HID_REPORT_TYPE_MIN = 1 +__NR_ioctl = 54 +__NR_read = 3 +__NR_write = 4 diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 1967b7974..1bb6cedd6 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -51,6 +51,8 @@ var resources_386 = []*ResourceDesc{ {Name: "fd_floppy", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_floppy"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_fscontext", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fscontext"}, 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_hiddev", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_hiddev"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_hidraw", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_hidraw"}, 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_io_uring", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_io_uring"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -6793,6 +6795,68 @@ var structDescs_386 = []*KeyedStruct{ &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}}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 4}, Kind: 1, RangeBegin: 4, RangeEnd: 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}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "level", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_field_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_field_info", TypeSize: 56, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "maxusage", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "application", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical_minimum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical_maximum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical_minimum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical_maximum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "unit_exponent", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "unit", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_ioctl_string_arg", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_ioctl_string_arg", ArgDir: 2, IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "idx", TypeSize: 4, ArgDir: 2}}, Path: []string{"data"}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 2, IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "hiddev_report_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_report_info", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_fields", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "hiddev_report_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_report_info", TypeSize: 12, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_fields", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref", TypeSize: 24}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_index", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_code", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref", TypeSize: 24, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_code", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref_multi"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref_multi", TypeSize: 4124}, Fields: []Type{ + &StructType{Key: StructKey{Name: "hiddev_usage_ref"}, FldName: "uref"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_values", TypeSize: 4}}, Kind: 2, RangeEnd: 1024}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "values", TypeSize: 4096}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 1024, RangeEnd: 1024}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref_multi", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref_multi", TypeSize: 4124, ArgDir: 2}, Fields: []Type{ + &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}, FldName: "uref"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_values", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeEnd: 1024}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "values", TypeSize: 4096, ArgDir: 2}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 2}}}, Kind: 1, RangeBegin: 1024, RangeEnd: 1024}, + }}}, {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", TypeSize: 160}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ctrlsk", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "intrsk", TypeSize: 4}}, @@ -6837,6 +6901,14 @@ var structDescs_386 = []*KeyedStruct{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "cnum", TypeSize: 4}}, Path: []string{"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: "hidraw_get_report_arg", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidraw_get_report_arg", TypeSize: 65, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "report_number", TypeSize: 1, ArgDir: 2}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "report", TypeSize: 64, ArgDir: 2}, Kind: 1, RangeBegin: 64, RangeEnd: 64}, + }}}, + {Key: StructKey{Name: "hidraw_report_descriptor", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidraw_report_descriptor", ArgDir: 2, IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Path: []string{"value"}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "value", ArgDir: 2, IsVarlen: true}, Kind: 1, RangeEnd: 4096}, + }}}, {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}, BitMask: true}, @@ -32960,6 +33032,141 @@ var syscalls_386 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 769}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hd_geometry", Dir: 1}}}, }}, + {NR: 54, Name: "ioctl$HIDIOCAPPLICATION", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18434}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGCOLLECTIONINDEX", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075333136}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGCOLLECTIONINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222292497}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_collection_info", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGDEVINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2149337091}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGFEATURE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3225438215}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hidraw_get_report_arg", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGFIELDINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3224913930}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_field_info", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGFLAG", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147764238}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGNAME", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2151696390}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGPHYS", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2151696402}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRAWINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2148026371}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRAWNAME", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2151696388}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRAWPHYS", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2151696389}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRDESC", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2416199682}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hidraw_report_descriptor", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRDESCSIZE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147764225}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074546695}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGREPORTINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222030345}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGSTRING", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2164541444}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_ioctl_string_arg", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGUCODE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222816781}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGUSAGE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222816779}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGUSAGES", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3491514387}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref_multi", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGVERSION", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147764225}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCINITREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18437}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 4}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSFEATURE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3225438214}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSFLAG", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074022415}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hiddev_flags", TypeSize: 4}}, Vals: []uint64{1, 2, 3}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074546696}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSUSAGE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075333132}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSUSAGES", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1344030740}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref_multi"}}}, + }}, {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}, @@ -37569,12 +37776,6 @@ var syscalls_386 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}, Val: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fuse", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, - {NR: 295, Name: "openat$hidraw0", CallName: "openat", Args: []Type{ - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/hidraw0\x00"}}}, - &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}, BitMask: true}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, - }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 295, Name: "openat$hpet", CallName: "openat", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/hpet\x00"}}}, @@ -38506,6 +38707,16 @@ var syscalls_386 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8, ArgDir: 1}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"val"}}, }}, + {NR: 3, Name: "read$hiddev", CallName: "read", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, + }}, + {NR: 3, Name: "read$hidraw", CallName: "read", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, + }}, {NR: 3, Name: "read$rfkill", CallName: "read", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rfkill_event", Dir: 1}}}, @@ -42367,6 +42578,16 @@ var syscalls_386 = []*Syscall{ &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}, BitMask: true}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_floppy", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "syz_open_dev$hiddev", CallName: "syz_open_dev", Args: []Type{ + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 17}, Kind: 2, Values: []string{"/dev/usb/hiddev#\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}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "syz_open_dev$hidraw", CallName: "syz_open_dev", Args: []Type{ + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/hidraw#\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}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_dev$ibv_device", CallName: "syz_open_dev", Args: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 24}, Kind: 2, Values: []string{"/dev/infiniband/uverbs0\x00"}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 4}}}, @@ -43430,6 +43651,11 @@ var syscalls_386 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"val"}}, }}, + {NR: 4, Name: "write$hidraw", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, + }}, {NR: 4, Name: "write$input_event", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "input_event"}}}, @@ -45114,6 +45340,36 @@ var consts_386 = []ConstValue{ {Name: "HCI_TIME_STAMP", Value: 3}, {Name: "HCI_VENDOR_PKT", Value: 255}, {Name: "HDIO_GETGEO", Value: 769}, + {Name: "HIDDEV_FLAGS", Value: 3}, + {Name: "HIDDEV_FLAG_REPORT", Value: 2}, + {Name: "HIDDEV_FLAG_UREF", Value: 1}, + {Name: "HIDIOCAPPLICATION", Value: 18434}, + {Name: "HIDIOCGCOLLECTIONINDEX", Value: 1075333136}, + {Name: "HIDIOCGCOLLECTIONINFO", Value: 3222292497}, + {Name: "HIDIOCGDEVINFO", Value: 2149337091}, + {Name: "HIDIOCGFEATURE64", Value: 3225438215}, + {Name: "HIDIOCGFIELDINFO", Value: 3224913930}, + {Name: "HIDIOCGFLAG", Value: 2147764238}, + {Name: "HIDIOCGNAME64", Value: 2151696390}, + {Name: "HIDIOCGPHYS64", Value: 2151696402}, + {Name: "HIDIOCGRAWINFO", Value: 2148026371}, + {Name: "HIDIOCGRAWNAME64", Value: 2151696388}, + {Name: "HIDIOCGRAWPHYS64", Value: 2151696389}, + {Name: "HIDIOCGRDESC", Value: 2416199682}, + {Name: "HIDIOCGRDESCSIZE", Value: 2147764225}, + {Name: "HIDIOCGREPORT", Value: 1074546695}, + {Name: "HIDIOCGREPORTINFO", Value: 3222030345}, + {Name: "HIDIOCGSTRING", Value: 2164541444}, + {Name: "HIDIOCGUCODE", Value: 3222816781}, + {Name: "HIDIOCGUSAGE", Value: 3222816779}, + {Name: "HIDIOCGUSAGES", Value: 3491514387}, + {Name: "HIDIOCGVERSION", Value: 2147764225}, + {Name: "HIDIOCINITREPORT", Value: 18437}, + {Name: "HIDIOCSFEATURE64", Value: 3225438214}, + {Name: "HIDIOCSFLAG", Value: 1074022415}, + {Name: "HIDIOCSREPORT", Value: 1074546696}, + {Name: "HIDIOCSUSAGE", Value: 1075333132}, + {Name: "HIDIOCSUSAGES", Value: 1344030740}, {Name: "HIDPCONNADD", Value: 1074022600}, {Name: "HIDPCONNDEL", Value: 1074022601}, {Name: "HIDPGETCONNINFO", Value: 2147764435}, @@ -45156,6 +45412,12 @@ var consts_386 = []ConstValue{ {Name: "HID_MAIN_ITEM_TAG_INPUT", Value: 8}, {Name: "HID_MAIN_ITEM_TAG_OUTPUT", Value: 9}, {Name: "HID_MAX_DESCRIPTOR_SIZE", Value: 4096}, + {Name: "HID_MAX_MULTI_USAGES", Value: 1024}, + {Name: "HID_REPORT_ID_FIRST", Value: 256}, + {Name: "HID_REPORT_ID_NEXT", Value: 512}, + {Name: "HID_REPORT_ID_UNKNOWN", Value: 4294967295}, + {Name: "HID_REPORT_TYPE_MAX", Value: 3}, + {Name: "HID_REPORT_TYPE_MIN", Value: 1}, {Name: "HUB_CHANGE_LOCAL_POWER", Value: 1}, {Name: "HUB_CHANGE_OVERCURRENT", Value: 2}, {Name: "HUB_CHAR_COMMON_LPSM"}, @@ -51305,4 +51567,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "424a5fe965ebbf6871858b76290438939ece5899" +const revision_386 = "b81e1c9faaab964af1d3646c5a242f3876e1477e" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index af83e11a1..64b3a9876 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -51,6 +51,8 @@ var resources_amd64 = []*ResourceDesc{ {Name: "fd_floppy", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_floppy"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_fscontext", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fscontext"}, 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_hiddev", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_hiddev"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_hidraw", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_hidraw"}, 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_io_uring", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_io_uring"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -6895,6 +6897,68 @@ var structDescs_amd64 = []*KeyedStruct{ &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}}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 4}, Kind: 1, RangeBegin: 4, RangeEnd: 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}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "level", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_field_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_field_info", TypeSize: 56, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "maxusage", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "application", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical_minimum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical_maximum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical_minimum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical_maximum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "unit_exponent", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "unit", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_ioctl_string_arg", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_ioctl_string_arg", ArgDir: 2, IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "idx", TypeSize: 4, ArgDir: 2}}, Path: []string{"data"}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 2, IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "hiddev_report_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_report_info", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_fields", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "hiddev_report_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_report_info", TypeSize: 12, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_fields", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref", TypeSize: 24}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_index", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_code", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref", TypeSize: 24, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_code", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref_multi"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref_multi", TypeSize: 4124}, Fields: []Type{ + &StructType{Key: StructKey{Name: "hiddev_usage_ref"}, FldName: "uref"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_values", TypeSize: 4}}, Kind: 2, RangeEnd: 1024}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "values", TypeSize: 4096}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 1024, RangeEnd: 1024}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref_multi", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref_multi", TypeSize: 4124, ArgDir: 2}, Fields: []Type{ + &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}, FldName: "uref"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_values", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeEnd: 1024}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "values", TypeSize: 4096, ArgDir: 2}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 2}}}, Kind: 1, RangeBegin: 1024, RangeEnd: 1024}, + }}}, {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", TypeSize: 168}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ctrlsk", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "intrsk", TypeSize: 4}}, @@ -6941,6 +7005,14 @@ 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: "hidraw_get_report_arg", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidraw_get_report_arg", TypeSize: 65, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "report_number", TypeSize: 1, ArgDir: 2}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "report", TypeSize: 64, ArgDir: 2}, Kind: 1, RangeBegin: 64, RangeEnd: 64}, + }}}, + {Key: StructKey{Name: "hidraw_report_descriptor", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidraw_report_descriptor", ArgDir: 2, IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Path: []string{"value"}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "value", ArgDir: 2, IsVarlen: true}, Kind: 1, RangeEnd: 4096}, + }}}, {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}, BitMask: true}, @@ -33457,6 +33529,141 @@ var syscalls_amd64 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 769}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hd_geometry", Dir: 1}}}, }}, + {NR: 16, Name: "ioctl$HIDIOCAPPLICATION", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 18434}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGCOLLECTIONINDEX", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075333136}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref"}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGCOLLECTIONINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222292497}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_collection_info", Dir: 2}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGDEVINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149337091}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGFEATURE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3225438215}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hidraw_get_report_arg", Dir: 2}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGFIELDINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3224913930}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_field_info", Dir: 2}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGFLAG", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147764238}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGNAME", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151696390}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGPHYS", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151696402}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGRAWINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148026371}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGRAWNAME", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151696388}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGRAWPHYS", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151696389}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGRDESC", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2416199682}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hidraw_report_descriptor", Dir: 2}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGRDESCSIZE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147764225}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074546695}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info"}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGREPORTINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222030345}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info", Dir: 2}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGSTRING", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2164541444}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_ioctl_string_arg", Dir: 2}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGUCODE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222816781}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGUSAGE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222816779}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGUSAGES", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3491514387}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref_multi", Dir: 2}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCGVERSION", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147764225}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCINITREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 18437}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCSFEATURE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3225438214}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCSFLAG", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074022415}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hiddev_flags", TypeSize: 4}}, Vals: []uint64{1, 2, 3}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCSREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074546696}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info"}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCSUSAGE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075333132}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref"}}}, + }}, + {NR: 16, Name: "ioctl$HIDIOCSUSAGES", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1344030740}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref_multi"}}}, + }}, {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}, @@ -38086,12 +38293,6 @@ var syscalls_amd64 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}, Val: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fuse", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, - {NR: 257, Name: "openat$hidraw0", CallName: "openat", Args: []Type{ - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/hidraw0\x00"}}}, - &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}, BitMask: true}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, - }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 257, Name: "openat$hpet", CallName: "openat", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/hpet\x00"}}}, @@ -39023,6 +39224,16 @@ var syscalls_amd64 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8, ArgDir: 1}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Path: []string{"val"}}, }}, + {Name: "read$hiddev", CallName: "read", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, + {Name: "read$hidraw", CallName: "read", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, {Name: "read$rfkill", CallName: "read", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rfkill_event", Dir: 1}}}, @@ -42889,6 +43100,16 @@ var syscalls_amd64 = []*Syscall{ &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}, BitMask: true}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_floppy", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "syz_open_dev$hiddev", CallName: "syz_open_dev", Args: []Type{ + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 17}, Kind: 2, Values: []string{"/dev/usb/hiddev#\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}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "syz_open_dev$hidraw", CallName: "syz_open_dev", Args: []Type{ + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/hidraw#\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}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_dev$ibv_device", CallName: "syz_open_dev", Args: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 24}, Kind: 2, Values: []string{"/dev/infiniband/uverbs0\x00"}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}}, @@ -43952,6 +44173,11 @@ var syscalls_amd64 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Path: []string{"val"}}, }}, + {NR: 1, Name: "write$hidraw", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, {NR: 1, Name: "write$input_event", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "input_event"}}}, @@ -45636,6 +45862,36 @@ var consts_amd64 = []ConstValue{ {Name: "HCI_TIME_STAMP", Value: 3}, {Name: "HCI_VENDOR_PKT", Value: 255}, {Name: "HDIO_GETGEO", Value: 769}, + {Name: "HIDDEV_FLAGS", Value: 3}, + {Name: "HIDDEV_FLAG_REPORT", Value: 2}, + {Name: "HIDDEV_FLAG_UREF", Value: 1}, + {Name: "HIDIOCAPPLICATION", Value: 18434}, + {Name: "HIDIOCGCOLLECTIONINDEX", Value: 1075333136}, + {Name: "HIDIOCGCOLLECTIONINFO", Value: 3222292497}, + {Name: "HIDIOCGDEVINFO", Value: 2149337091}, + {Name: "HIDIOCGFEATURE64", Value: 3225438215}, + {Name: "HIDIOCGFIELDINFO", Value: 3224913930}, + {Name: "HIDIOCGFLAG", Value: 2147764238}, + {Name: "HIDIOCGNAME64", Value: 2151696390}, + {Name: "HIDIOCGPHYS64", Value: 2151696402}, + {Name: "HIDIOCGRAWINFO", Value: 2148026371}, + {Name: "HIDIOCGRAWNAME64", Value: 2151696388}, + {Name: "HIDIOCGRAWPHYS64", Value: 2151696389}, + {Name: "HIDIOCGRDESC", Value: 2416199682}, + {Name: "HIDIOCGRDESCSIZE", Value: 2147764225}, + {Name: "HIDIOCGREPORT", Value: 1074546695}, + {Name: "HIDIOCGREPORTINFO", Value: 3222030345}, + {Name: "HIDIOCGSTRING", Value: 2164541444}, + {Name: "HIDIOCGUCODE", Value: 3222816781}, + {Name: "HIDIOCGUSAGE", Value: 3222816779}, + {Name: "HIDIOCGUSAGES", Value: 3491514387}, + {Name: "HIDIOCGVERSION", Value: 2147764225}, + {Name: "HIDIOCINITREPORT", Value: 18437}, + {Name: "HIDIOCSFEATURE64", Value: 3225438214}, + {Name: "HIDIOCSFLAG", Value: 1074022415}, + {Name: "HIDIOCSREPORT", Value: 1074546696}, + {Name: "HIDIOCSUSAGE", Value: 1075333132}, + {Name: "HIDIOCSUSAGES", Value: 1344030740}, {Name: "HIDPCONNADD", Value: 1074022600}, {Name: "HIDPCONNDEL", Value: 1074022601}, {Name: "HIDPGETCONNINFO", Value: 2147764435}, @@ -45678,6 +45934,12 @@ var consts_amd64 = []ConstValue{ {Name: "HID_MAIN_ITEM_TAG_INPUT", Value: 8}, {Name: "HID_MAIN_ITEM_TAG_OUTPUT", Value: 9}, {Name: "HID_MAX_DESCRIPTOR_SIZE", Value: 4096}, + {Name: "HID_MAX_MULTI_USAGES", Value: 1024}, + {Name: "HID_REPORT_ID_FIRST", Value: 256}, + {Name: "HID_REPORT_ID_NEXT", Value: 512}, + {Name: "HID_REPORT_ID_UNKNOWN", Value: 4294967295}, + {Name: "HID_REPORT_TYPE_MAX", Value: 3}, + {Name: "HID_REPORT_TYPE_MIN", Value: 1}, {Name: "HUB_CHANGE_LOCAL_POWER", Value: 1}, {Name: "HUB_CHANGE_OVERCURRENT", Value: 2}, {Name: "HUB_CHAR_COMMON_LPSM"}, @@ -51842,4 +52104,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "ddbf82ada7a52ee8e8786ee48f374b93283916dd" +const revision_amd64 = "2a037cb396e21af51c329cc36af266d089a625b7" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index d044381f2..57a3c6882 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -51,6 +51,8 @@ var resources_arm = []*ResourceDesc{ {Name: "fd_floppy", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_floppy"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_fscontext", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fscontext"}, 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_hiddev", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_hiddev"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_hidraw", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_hidraw"}, 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_io_uring", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_io_uring"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -6793,6 +6795,68 @@ var structDescs_arm = []*KeyedStruct{ &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}}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 4}, Kind: 1, RangeBegin: 4, RangeEnd: 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}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "level", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_field_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_field_info", TypeSize: 56, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "maxusage", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "application", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical_minimum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical_maximum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical_minimum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical_maximum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "unit_exponent", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "unit", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_ioctl_string_arg", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_ioctl_string_arg", ArgDir: 2, IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "idx", TypeSize: 4, ArgDir: 2}}, Path: []string{"data"}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 2, IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "hiddev_report_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_report_info", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_fields", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "hiddev_report_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_report_info", TypeSize: 12, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_fields", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref", TypeSize: 24}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_index", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_code", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref", TypeSize: 24, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_code", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref_multi"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref_multi", TypeSize: 4124}, Fields: []Type{ + &StructType{Key: StructKey{Name: "hiddev_usage_ref"}, FldName: "uref"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_values", TypeSize: 4}}, Kind: 2, RangeEnd: 1024}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "values", TypeSize: 4096}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 1024, RangeEnd: 1024}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref_multi", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref_multi", TypeSize: 4124, ArgDir: 2}, Fields: []Type{ + &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}, FldName: "uref"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_values", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeEnd: 1024}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "values", TypeSize: 4096, ArgDir: 2}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 2}}}, Kind: 1, RangeBegin: 1024, RangeEnd: 1024}, + }}}, {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", TypeSize: 160}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ctrlsk", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "intrsk", TypeSize: 4}}, @@ -6837,6 +6901,14 @@ var structDescs_arm = []*KeyedStruct{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "cnum", TypeSize: 4}}, Path: []string{"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: "hidraw_get_report_arg", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidraw_get_report_arg", TypeSize: 65, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "report_number", TypeSize: 1, ArgDir: 2}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "report", TypeSize: 64, ArgDir: 2}, Kind: 1, RangeBegin: 64, RangeEnd: 64}, + }}}, + {Key: StructKey{Name: "hidraw_report_descriptor", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidraw_report_descriptor", ArgDir: 2, IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Path: []string{"value"}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "value", ArgDir: 2, IsVarlen: true}, Kind: 1, RangeEnd: 4096}, + }}}, {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}, BitMask: true}, @@ -32769,6 +32841,141 @@ var syscalls_arm = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 769}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hd_geometry", Dir: 1}}}, }}, + {NR: 54, Name: "ioctl$HIDIOCAPPLICATION", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18434}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGCOLLECTIONINDEX", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075333136}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGCOLLECTIONINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222292497}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_collection_info", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGDEVINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2149337091}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGFEATURE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3225438215}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hidraw_get_report_arg", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGFIELDINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3224913930}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_field_info", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGFLAG", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147764238}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGNAME", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2151696390}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGPHYS", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2151696402}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRAWINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2148026371}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRAWNAME", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2151696388}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRAWPHYS", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2151696389}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRDESC", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2416199682}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hidraw_report_descriptor", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRDESCSIZE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147764225}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074546695}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGREPORTINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222030345}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGSTRING", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2164541444}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_ioctl_string_arg", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGUCODE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222816781}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGUSAGE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222816779}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGUSAGES", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3491514387}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref_multi", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGVERSION", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147764225}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCINITREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18437}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 4}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSFEATURE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3225438214}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSFLAG", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074022415}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hiddev_flags", TypeSize: 4}}, Vals: []uint64{1, 2, 3}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074546696}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSUSAGE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075333132}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSUSAGES", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1344030740}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref_multi"}}}, + }}, {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}, @@ -37230,12 +37437,6 @@ var syscalls_arm = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}, Val: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fuse", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, - {NR: 322, Name: "openat$hidraw0", CallName: "openat", Args: []Type{ - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/hidraw0\x00"}}}, - &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}, BitMask: true}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}}, - }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 322, Name: "openat$hpet", CallName: "openat", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/hpet\x00"}}}, @@ -38167,6 +38368,16 @@ var syscalls_arm = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8, ArgDir: 1}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"val"}}, }}, + {NR: 3, Name: "read$hiddev", CallName: "read", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, + }}, + {NR: 3, Name: "read$hidraw", CallName: "read", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, + }}, {NR: 3, Name: "read$rfkill", CallName: "read", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rfkill_event", Dir: 1}}}, @@ -42023,6 +42234,16 @@ var syscalls_arm = []*Syscall{ &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}, BitMask: true}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_floppy", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "syz_open_dev$hiddev", CallName: "syz_open_dev", Args: []Type{ + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 17}, Kind: 2, Values: []string{"/dev/usb/hiddev#\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}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "syz_open_dev$hidraw", CallName: "syz_open_dev", Args: []Type{ + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/hidraw#\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}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_dev$ibv_device", CallName: "syz_open_dev", Args: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 24}, Kind: 2, Values: []string{"/dev/infiniband/uverbs0\x00"}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 4}}}, @@ -43079,6 +43300,11 @@ var syscalls_arm = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"val"}}, }}, + {NR: 4, Name: "write$hidraw", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, + }}, {NR: 4, Name: "write$input_event", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "input_event"}}}, @@ -44754,6 +44980,36 @@ var consts_arm = []ConstValue{ {Name: "HCI_TIME_STAMP", Value: 3}, {Name: "HCI_VENDOR_PKT", Value: 255}, {Name: "HDIO_GETGEO", Value: 769}, + {Name: "HIDDEV_FLAGS", Value: 3}, + {Name: "HIDDEV_FLAG_REPORT", Value: 2}, + {Name: "HIDDEV_FLAG_UREF", Value: 1}, + {Name: "HIDIOCAPPLICATION", Value: 18434}, + {Name: "HIDIOCGCOLLECTIONINDEX", Value: 1075333136}, + {Name: "HIDIOCGCOLLECTIONINFO", Value: 3222292497}, + {Name: "HIDIOCGDEVINFO", Value: 2149337091}, + {Name: "HIDIOCGFEATURE64", Value: 3225438215}, + {Name: "HIDIOCGFIELDINFO", Value: 3224913930}, + {Name: "HIDIOCGFLAG", Value: 2147764238}, + {Name: "HIDIOCGNAME64", Value: 2151696390}, + {Name: "HIDIOCGPHYS64", Value: 2151696402}, + {Name: "HIDIOCGRAWINFO", Value: 2148026371}, + {Name: "HIDIOCGRAWNAME64", Value: 2151696388}, + {Name: "HIDIOCGRAWPHYS64", Value: 2151696389}, + {Name: "HIDIOCGRDESC", Value: 2416199682}, + {Name: "HIDIOCGRDESCSIZE", Value: 2147764225}, + {Name: "HIDIOCGREPORT", Value: 1074546695}, + {Name: "HIDIOCGREPORTINFO", Value: 3222030345}, + {Name: "HIDIOCGSTRING", Value: 2164541444}, + {Name: "HIDIOCGUCODE", Value: 3222816781}, + {Name: "HIDIOCGUSAGE", Value: 3222816779}, + {Name: "HIDIOCGUSAGES", Value: 3491514387}, + {Name: "HIDIOCGVERSION", Value: 2147764225}, + {Name: "HIDIOCINITREPORT", Value: 18437}, + {Name: "HIDIOCSFEATURE64", Value: 3225438214}, + {Name: "HIDIOCSFLAG", Value: 1074022415}, + {Name: "HIDIOCSREPORT", Value: 1074546696}, + {Name: "HIDIOCSUSAGE", Value: 1075333132}, + {Name: "HIDIOCSUSAGES", Value: 1344030740}, {Name: "HIDPCONNADD", Value: 1074022600}, {Name: "HIDPCONNDEL", Value: 1074022601}, {Name: "HIDPGETCONNINFO", Value: 2147764435}, @@ -44796,6 +45052,12 @@ var consts_arm = []ConstValue{ {Name: "HID_MAIN_ITEM_TAG_INPUT", Value: 8}, {Name: "HID_MAIN_ITEM_TAG_OUTPUT", Value: 9}, {Name: "HID_MAX_DESCRIPTOR_SIZE", Value: 4096}, + {Name: "HID_MAX_MULTI_USAGES", Value: 1024}, + {Name: "HID_REPORT_ID_FIRST", Value: 256}, + {Name: "HID_REPORT_ID_NEXT", Value: 512}, + {Name: "HID_REPORT_ID_UNKNOWN", Value: 4294967295}, + {Name: "HID_REPORT_TYPE_MAX", Value: 3}, + {Name: "HID_REPORT_TYPE_MIN", Value: 1}, {Name: "HUB_CHANGE_LOCAL_POWER", Value: 1}, {Name: "HUB_CHANGE_OVERCURRENT", Value: 2}, {Name: "HUB_CHAR_COMMON_LPSM"}, @@ -50882,4 +51144,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "119ad8c2d0d27a59585af451149dd221409ba88d" +const revision_arm = "81a967d0dfb7f8b7da62b8fdfdbd38d4929ade87" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index 765f17fbd..068a0edd6 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -51,6 +51,8 @@ var resources_arm64 = []*ResourceDesc{ {Name: "fd_floppy", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_floppy"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_fscontext", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fscontext"}, 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_hiddev", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_hiddev"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_hidraw", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_hidraw"}, 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_io_uring", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_io_uring"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -6895,6 +6897,68 @@ var structDescs_arm64 = []*KeyedStruct{ &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}}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 4}, Kind: 1, RangeBegin: 4, RangeEnd: 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}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "level", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_field_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_field_info", TypeSize: 56, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "maxusage", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "application", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical_minimum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical_maximum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical_minimum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical_maximum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "unit_exponent", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "unit", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_ioctl_string_arg", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_ioctl_string_arg", ArgDir: 2, IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "idx", TypeSize: 4, ArgDir: 2}}, Path: []string{"data"}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 2, IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "hiddev_report_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_report_info", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_fields", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "hiddev_report_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_report_info", TypeSize: 12, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_fields", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref", TypeSize: 24}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_index", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_code", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref", TypeSize: 24, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_code", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref_multi"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref_multi", TypeSize: 4124}, Fields: []Type{ + &StructType{Key: StructKey{Name: "hiddev_usage_ref"}, FldName: "uref"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_values", TypeSize: 4}}, Kind: 2, RangeEnd: 1024}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "values", TypeSize: 4096}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 1024, RangeEnd: 1024}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref_multi", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref_multi", TypeSize: 4124, ArgDir: 2}, Fields: []Type{ + &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}, FldName: "uref"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_values", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeEnd: 1024}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "values", TypeSize: 4096, ArgDir: 2}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 2}}}, Kind: 1, RangeBegin: 1024, RangeEnd: 1024}, + }}}, {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", TypeSize: 168}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ctrlsk", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "intrsk", TypeSize: 4}}, @@ -6941,6 +7005,14 @@ 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: "hidraw_get_report_arg", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidraw_get_report_arg", TypeSize: 65, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "report_number", TypeSize: 1, ArgDir: 2}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "report", TypeSize: 64, ArgDir: 2}, Kind: 1, RangeBegin: 64, RangeEnd: 64}, + }}}, + {Key: StructKey{Name: "hidraw_report_descriptor", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidraw_report_descriptor", ArgDir: 2, IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Path: []string{"value"}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "value", ArgDir: 2, IsVarlen: true}, Kind: 1, RangeEnd: 4096}, + }}}, {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}, BitMask: true}, @@ -33169,6 +33241,141 @@ var syscalls_arm64 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 769}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hd_geometry", Dir: 1}}}, }}, + {NR: 29, Name: "ioctl$HIDIOCAPPLICATION", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 18434}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGCOLLECTIONINDEX", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075333136}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref"}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGCOLLECTIONINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222292497}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_collection_info", Dir: 2}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGDEVINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149337091}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGFEATURE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3225438215}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hidraw_get_report_arg", Dir: 2}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGFIELDINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3224913930}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_field_info", Dir: 2}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGFLAG", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147764238}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGNAME", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151696390}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGPHYS", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151696402}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGRAWINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148026371}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGRAWNAME", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151696388}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGRAWPHYS", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151696389}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGRDESC", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2416199682}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hidraw_report_descriptor", Dir: 2}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGRDESCSIZE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147764225}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074546695}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info"}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGREPORTINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222030345}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info", Dir: 2}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGSTRING", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2164541444}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_ioctl_string_arg", Dir: 2}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGUCODE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222816781}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGUSAGE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222816779}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGUSAGES", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3491514387}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref_multi", Dir: 2}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCGVERSION", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147764225}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCINITREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 18437}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCSFEATURE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3225438214}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCSFLAG", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074022415}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hiddev_flags", TypeSize: 4}}, Vals: []uint64{1, 2, 3}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCSREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074546696}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info"}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCSUSAGE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075333132}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref"}}}, + }}, + {NR: 29, Name: "ioctl$HIDIOCSUSAGES", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1344030740}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref_multi"}}}, + }}, {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}, @@ -37618,12 +37825,6 @@ var syscalls_arm64 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}, Val: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fuse", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, - {NR: 56, Name: "openat$hidraw0", CallName: "openat", Args: []Type{ - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/hidraw0\x00"}}}, - &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}, BitMask: true}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, - }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 56, Name: "openat$hpet", CallName: "openat", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/hpet\x00"}}}, @@ -38546,6 +38747,16 @@ var syscalls_arm64 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8, ArgDir: 1}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Path: []string{"val"}}, }}, + {NR: 63, Name: "read$hiddev", CallName: "read", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, + {NR: 63, Name: "read$hidraw", CallName: "read", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, {NR: 63, Name: "read$rfkill", CallName: "read", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rfkill_event", Dir: 1}}}, @@ -42365,6 +42576,16 @@ var syscalls_arm64 = []*Syscall{ &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}, BitMask: true}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_floppy", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "syz_open_dev$hiddev", CallName: "syz_open_dev", Args: []Type{ + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 17}, Kind: 2, Values: []string{"/dev/usb/hiddev#\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}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "syz_open_dev$hidraw", CallName: "syz_open_dev", Args: []Type{ + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/hidraw#\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}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_dev$ibv_device", CallName: "syz_open_dev", Args: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 24}, Kind: 2, Values: []string{"/dev/infiniband/uverbs0\x00"}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}}, @@ -43407,6 +43628,11 @@ var syscalls_arm64 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Path: []string{"val"}}, }}, + {NR: 64, Name: "write$hidraw", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, {NR: 64, Name: "write$input_event", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "input_event"}}}, @@ -45082,6 +45308,36 @@ var consts_arm64 = []ConstValue{ {Name: "HCI_TIME_STAMP", Value: 3}, {Name: "HCI_VENDOR_PKT", Value: 255}, {Name: "HDIO_GETGEO", Value: 769}, + {Name: "HIDDEV_FLAGS", Value: 3}, + {Name: "HIDDEV_FLAG_REPORT", Value: 2}, + {Name: "HIDDEV_FLAG_UREF", Value: 1}, + {Name: "HIDIOCAPPLICATION", Value: 18434}, + {Name: "HIDIOCGCOLLECTIONINDEX", Value: 1075333136}, + {Name: "HIDIOCGCOLLECTIONINFO", Value: 3222292497}, + {Name: "HIDIOCGDEVINFO", Value: 2149337091}, + {Name: "HIDIOCGFEATURE64", Value: 3225438215}, + {Name: "HIDIOCGFIELDINFO", Value: 3224913930}, + {Name: "HIDIOCGFLAG", Value: 2147764238}, + {Name: "HIDIOCGNAME64", Value: 2151696390}, + {Name: "HIDIOCGPHYS64", Value: 2151696402}, + {Name: "HIDIOCGRAWINFO", Value: 2148026371}, + {Name: "HIDIOCGRAWNAME64", Value: 2151696388}, + {Name: "HIDIOCGRAWPHYS64", Value: 2151696389}, + {Name: "HIDIOCGRDESC", Value: 2416199682}, + {Name: "HIDIOCGRDESCSIZE", Value: 2147764225}, + {Name: "HIDIOCGREPORT", Value: 1074546695}, + {Name: "HIDIOCGREPORTINFO", Value: 3222030345}, + {Name: "HIDIOCGSTRING", Value: 2164541444}, + {Name: "HIDIOCGUCODE", Value: 3222816781}, + {Name: "HIDIOCGUSAGE", Value: 3222816779}, + {Name: "HIDIOCGUSAGES", Value: 3491514387}, + {Name: "HIDIOCGVERSION", Value: 2147764225}, + {Name: "HIDIOCINITREPORT", Value: 18437}, + {Name: "HIDIOCSFEATURE64", Value: 3225438214}, + {Name: "HIDIOCSFLAG", Value: 1074022415}, + {Name: "HIDIOCSREPORT", Value: 1074546696}, + {Name: "HIDIOCSUSAGE", Value: 1075333132}, + {Name: "HIDIOCSUSAGES", Value: 1344030740}, {Name: "HIDPCONNADD", Value: 1074022600}, {Name: "HIDPCONNDEL", Value: 1074022601}, {Name: "HIDPGETCONNINFO", Value: 2147764435}, @@ -45124,6 +45380,12 @@ var consts_arm64 = []ConstValue{ {Name: "HID_MAIN_ITEM_TAG_INPUT", Value: 8}, {Name: "HID_MAIN_ITEM_TAG_OUTPUT", Value: 9}, {Name: "HID_MAX_DESCRIPTOR_SIZE", Value: 4096}, + {Name: "HID_MAX_MULTI_USAGES", Value: 1024}, + {Name: "HID_REPORT_ID_FIRST", Value: 256}, + {Name: "HID_REPORT_ID_NEXT", Value: 512}, + {Name: "HID_REPORT_ID_UNKNOWN", Value: 4294967295}, + {Name: "HID_REPORT_TYPE_MAX", Value: 3}, + {Name: "HID_REPORT_TYPE_MIN", Value: 1}, {Name: "HUB_CHANGE_LOCAL_POWER", Value: 1}, {Name: "HUB_CHANGE_OVERCURRENT", Value: 2}, {Name: "HUB_CHAR_COMMON_LPSM"}, @@ -51192,4 +51454,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "ed0579f96e93ea6e5b3b53e58d48bfd87f5f92a9" +const revision_arm64 = "854d614e6ac5abb635fa98a1c0487d361758ba57" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 7891312cb..c528c1424 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -51,6 +51,8 @@ var resources_ppc64le = []*ResourceDesc{ {Name: "fd_floppy", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_floppy"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_fscontext", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_fscontext"}, 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_hiddev", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_hiddev"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_hidraw", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_hidraw"}, 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_io_uring", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_io_uring"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -6894,6 +6896,68 @@ var structDescs_ppc64le = []*KeyedStruct{ &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}}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", TypeSize: 4}, Kind: 1, RangeBegin: 4, RangeEnd: 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}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "level", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_field_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_field_info", TypeSize: 56, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "maxusage", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "application", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical_minimum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "logical_maximum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical_minimum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "physical_maximum", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "unit_exponent", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "unit", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_ioctl_string_arg", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_ioctl_string_arg", ArgDir: 2, IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "idx", TypeSize: 4, ArgDir: 2}}, Path: []string{"data"}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 2, IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "hiddev_report_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_report_info", TypeSize: 12}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_fields", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "hiddev_report_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_report_info", TypeSize: 12, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_fields", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref", TypeSize: 24}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_index", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_code", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref", TypeSize: 24, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "report_type", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 3}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hid_report_ids", FldName: "report_id", TypeSize: 4, ArgDir: 2}}, Vals: []uint64{1, 2, 3, 4294967295, 256, 512}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "field_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_index", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "usage_code", TypeSize: 4, ArgDir: 2}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "value", TypeSize: 4, ArgDir: 2}}}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref_multi"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref_multi", TypeSize: 4124}, Fields: []Type{ + &StructType{Key: StructKey{Name: "hiddev_usage_ref"}, FldName: "uref"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_values", TypeSize: 4}}, Kind: 2, RangeEnd: 1024}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "values", TypeSize: 4096}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 1024, RangeEnd: 1024}, + }}}, + {Key: StructKey{Name: "hiddev_usage_ref_multi", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hiddev_usage_ref_multi", TypeSize: 4124, ArgDir: 2}, Fields: []Type{ + &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}, FldName: "uref"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "num_values", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeEnd: 1024}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "values", TypeSize: 4096, ArgDir: 2}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 2}}}, Kind: 1, RangeBegin: 1024, RangeEnd: 1024}, + }}}, {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", TypeSize: 168}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ctrlsk", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "intrsk", TypeSize: 4}}, @@ -6940,6 +7004,14 @@ 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: "hidraw_get_report_arg", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidraw_get_report_arg", TypeSize: 65, ArgDir: 2}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "report_number", TypeSize: 1, ArgDir: 2}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "report", TypeSize: 64, ArgDir: 2}, Kind: 1, RangeBegin: 64, RangeEnd: 64}, + }}}, + {Key: StructKey{Name: "hidraw_report_descriptor", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidraw_report_descriptor", ArgDir: 2, IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Path: []string{"value"}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "value", ArgDir: 2, IsVarlen: true}, Kind: 1, RangeEnd: 4096}, + }}}, {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}, BitMask: true}, @@ -33110,6 +33182,141 @@ var syscalls_ppc64le = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 769}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hd_geometry", Dir: 1}}}, }}, + {NR: 54, Name: "ioctl$HIDIOCAPPLICATION", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536889346}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGCOLLECTIONINDEX", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149074960}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGCOLLECTIONINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222292497}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_collection_info", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGDEVINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075595267}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGFEATURE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3225438215}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hidraw_get_report_arg", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGFIELDINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3224913930}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_field_info", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGFLAG", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074022414}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGNAME", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1077954566}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGPHYS", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1077954578}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRAWINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074284547}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRAWNAME", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1077954564}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRAWPHYS", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1077954565}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRDESC", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1342457858}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hidraw_report_descriptor", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGRDESCSIZE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074022401}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148288519}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGREPORTINFO", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222030345}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGSTRING", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1090799620}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_ioctl_string_arg", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGUCODE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222816781}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGUSAGE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222816779}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGUSAGES", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3491514387}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref_multi", Dir: 2}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCGVERSION", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074022401}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCINITREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536889349}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSFEATURE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3225438214}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSFLAG", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147764239}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hiddev_flags", TypeSize: 4}}, Vals: []uint64{1, 2, 3}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSREPORT", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148288520}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_report_info"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSUSAGE", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149074956}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref"}}}, + }}, + {NR: 54, Name: "ioctl$HIDIOCSUSAGES", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2417772564}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "hiddev_usage_ref_multi"}}}, + }}, {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}, @@ -37549,12 +37756,6 @@ var syscalls_ppc64le = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}, Val: 2}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fuse", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, - {NR: 286, Name: "openat$hidraw0", CallName: "openat", Args: []Type{ - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/hidraw0\x00"}}}, - &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}, BitMask: true}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, - }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 286, Name: "openat$hpet", CallName: "openat", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/hpet\x00"}}}, @@ -38486,6 +38687,16 @@ var syscalls_ppc64le = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8, ArgDir: 1}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Path: []string{"val"}}, }}, + {NR: 3, Name: "read$hiddev", CallName: "read", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, + {NR: 3, Name: "read$hidraw", CallName: "read", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, {NR: 3, Name: "read$rfkill", CallName: "read", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rfkill_event", Dir: 1}}}, @@ -42338,6 +42549,16 @@ var syscalls_ppc64le = []*Syscall{ &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}, BitMask: true}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_floppy", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "syz_open_dev$hiddev", CallName: "syz_open_dev", Args: []Type{ + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 17}, Kind: 2, Values: []string{"/dev/usb/hiddev#\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}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "syz_open_dev$hidraw", CallName: "syz_open_dev", Args: []Type{ + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/hidraw#\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}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_dev$ibv_device", CallName: "syz_open_dev", Args: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 24}, Kind: 2, Values: []string{"/dev/infiniband/uverbs0\x00"}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}}, @@ -43401,6 +43622,11 @@ var syscalls_ppc64le = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Path: []string{"val"}}, }}, + {NR: 4, Name: "write$hidraw", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hidraw", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, {NR: 4, Name: "write$input_event", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "input_event"}}}, @@ -45076,6 +45302,36 @@ var consts_ppc64le = []ConstValue{ {Name: "HCI_TIME_STAMP", Value: 3}, {Name: "HCI_VENDOR_PKT", Value: 255}, {Name: "HDIO_GETGEO", Value: 769}, + {Name: "HIDDEV_FLAGS", Value: 3}, + {Name: "HIDDEV_FLAG_REPORT", Value: 2}, + {Name: "HIDDEV_FLAG_UREF", Value: 1}, + {Name: "HIDIOCAPPLICATION", Value: 536889346}, + {Name: "HIDIOCGCOLLECTIONINDEX", Value: 2149074960}, + {Name: "HIDIOCGCOLLECTIONINFO", Value: 3222292497}, + {Name: "HIDIOCGDEVINFO", Value: 1075595267}, + {Name: "HIDIOCGFEATURE64", Value: 3225438215}, + {Name: "HIDIOCGFIELDINFO", Value: 3224913930}, + {Name: "HIDIOCGFLAG", Value: 1074022414}, + {Name: "HIDIOCGNAME64", Value: 1077954566}, + {Name: "HIDIOCGPHYS64", Value: 1077954578}, + {Name: "HIDIOCGRAWINFO", Value: 1074284547}, + {Name: "HIDIOCGRAWNAME64", Value: 1077954564}, + {Name: "HIDIOCGRAWPHYS64", Value: 1077954565}, + {Name: "HIDIOCGRDESC", Value: 1342457858}, + {Name: "HIDIOCGRDESCSIZE", Value: 1074022401}, + {Name: "HIDIOCGREPORT", Value: 2148288519}, + {Name: "HIDIOCGREPORTINFO", Value: 3222030345}, + {Name: "HIDIOCGSTRING", Value: 1090799620}, + {Name: "HIDIOCGUCODE", Value: 3222816781}, + {Name: "HIDIOCGUSAGE", Value: 3222816779}, + {Name: "HIDIOCGUSAGES", Value: 3491514387}, + {Name: "HIDIOCGVERSION", Value: 1074022401}, + {Name: "HIDIOCINITREPORT", Value: 536889349}, + {Name: "HIDIOCSFEATURE64", Value: 3225438214}, + {Name: "HIDIOCSFLAG", Value: 2147764239}, + {Name: "HIDIOCSREPORT", Value: 2148288520}, + {Name: "HIDIOCSUSAGE", Value: 2149074956}, + {Name: "HIDIOCSUSAGES", Value: 2417772564}, {Name: "HIDPCONNADD", Value: 2147764424}, {Name: "HIDPCONNDEL", Value: 2147764425}, {Name: "HIDPGETCONNINFO", Value: 1074022611}, @@ -45118,6 +45374,12 @@ var consts_ppc64le = []ConstValue{ {Name: "HID_MAIN_ITEM_TAG_INPUT", Value: 8}, {Name: "HID_MAIN_ITEM_TAG_OUTPUT", Value: 9}, {Name: "HID_MAX_DESCRIPTOR_SIZE", Value: 4096}, + {Name: "HID_MAX_MULTI_USAGES", Value: 1024}, + {Name: "HID_REPORT_ID_FIRST", Value: 256}, + {Name: "HID_REPORT_ID_NEXT", Value: 512}, + {Name: "HID_REPORT_ID_UNKNOWN", Value: 4294967295}, + {Name: "HID_REPORT_TYPE_MAX", Value: 3}, + {Name: "HID_REPORT_TYPE_MIN", Value: 1}, {Name: "HUB_CHANGE_LOCAL_POWER", Value: 1}, {Name: "HUB_CHANGE_OVERCURRENT", Value: 2}, {Name: "HUB_CHAR_COMMON_LPSM"}, @@ -51159,4 +51421,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "5c5ba0ff620fdbc206179a532be9ad76f726f12f" +const revision_ppc64le = "11755b46b0e787b4677561195aeb6b9e7fcbfab9" diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index c16b359bc..cb053d256 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -471,7 +471,6 @@ openat$mixer(fd const[AT_FDCWD], file ptr[in, string["/dev/mixer"]], flags flags openat$irnet(fd const[AT_FDCWD], file ptr[in, string["/dev/irnet"]], flags flags[open_flags], mode const[0]) fd openat$hwrng(fd const[AT_FDCWD], file ptr[in, string["/dev/hwrng"]], flags flags[open_flags], mode const[0]) fd openat$hpet(fd const[AT_FDCWD], file ptr[in, string["/dev/hpet"]], flags flags[open_flags], mode const[0]) fd -openat$hidraw0(fd const[AT_FDCWD], file ptr[in, string["/dev/hidraw0"]], flags flags[open_flags], mode const[0]) fd openat$fb0(fd const[AT_FDCWD], file ptr[in, string["/dev/fb0"]], flags flags[open_flags], mode const[0]) fd openat$autofs(fd const[AT_FDCWD], file ptr[in, string["/dev/autofs"]], flags flags[open_flags], mode const[0]) fd openat$keychord(fd const[AT_FDCWD], file ptr[in, string["/dev/keychord"]], flags flags[open_flags], mode const[0]) fd -- cgit mrf-deployment