aboutsummaryrefslogtreecommitdiffstats
path: root/sys/freebsd/dev_smbus.txt
diff options
context:
space:
mode:
authorSimran Kathpalia <skathpalia3@gmail.com>2021-07-08 23:56:22 +0530
committerMark Johnston <markjdb@gmail.com>2021-08-17 09:47:30 -0400
commita2fe1cb58994e43fb14f141ecd6e6dcce9bb697a (patch)
tree0345047bebe5acb999f2262ca9e5bc01a46ec55c /sys/freebsd/dev_smbus.txt
parent33c26cb735dc83786ebebe071a3e17cdd5383ead (diff)
sys/freebsd: added io(4), smbus(4), efidev(4), evdev(4)
Diffstat (limited to 'sys/freebsd/dev_smbus.txt')
-rw-r--r--sys/freebsd/dev_smbus.txt49
1 files changed, 49 insertions, 0 deletions
diff --git a/sys/freebsd/dev_smbus.txt b/sys/freebsd/dev_smbus.txt
new file mode 100644
index 000000000..2e943e1dd
--- /dev/null
+++ b/sys/freebsd/dev_smbus.txt
@@ -0,0 +1,49 @@
+# Copyright 2021 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.
+# Autogenerated by sys2syz
+
+include <fcntl.h>
+include <sys/types.h>
+include <dev/smbus/smb.h>
+
+resource fd_smbus[fd]
+
+openat$smbus(fd const[AT_FDCWD], file ptr[in, string["/dev/smbN"]], flags flags[open_flags], mode const[0]) fd_smbus
+
+ioctl$SMB_QUICK_WRITE(fd fd_smbus, cmd const[SMB_QUICK_WRITE], arg ptr[in, smbcmd])
+ioctl$SMB_QUICK_READ(fd fd_smbus, cmd const[SMB_QUICK_READ], arg ptr[in, smbcmd])
+ioctl$SMB_SENDB(fd fd_smbus, cmd const[SMB_SENDB], arg ptr[in, smbcmd])
+ioctl$SMB_RECVB(fd fd_smbus, cmd const[SMB_RECVB], arg ptr[inout, smbcmd])
+ioctl$SMB_WRITEB(fd fd_smbus, cmd const[SMB_WRITEB], arg ptr[in, smbcmd])
+ioctl$SMB_WRITEW(fd fd_smbus, cmd const[SMB_WRITEW], arg ptr[in, smbcmd])
+ioctl$SMB_READB(fd fd_smbus, cmd const[SMB_READB], arg ptr[inout, smbcmd])
+ioctl$SMB_READW(fd fd_smbus, cmd const[SMB_READW], arg ptr[inout, smbcmd])
+ioctl$SMB_PCALL(fd fd_smbus, cmd const[SMB_PCALL], arg ptr[inout, smbcmd])
+ioctl$SMB_BWRITE(fd fd_smbus, cmd const[SMB_BWRITE], arg ptr[in, smbcmd])
+ioctl$SMB_BREAD(fd fd_smbus, cmd const[SMB_BREAD], arg ptr[inout, smbcmd])
+ioctl$SMB_OLD_TRANS(fd fd_smbus, cmd const[SMB_OLD_TRANS], arg ptr[inout, smbcmd])
+
+smbcmd {
+ cmd int8
+ reserved int8
+ op int16
+ wdata wdata
+ rdata rdata
+ slave int32
+ wbuf ptr[in, int8]
+ wcount len[wbuf, int32]
+ rbuf ptr[in, int8]
+ rcount len[rbuf, int32]
+}
+
+wdata [
+ byte int8
+ buf array[int8, 2]
+ word int16
+]
+
+rdata [
+ byte int8
+ buf array[int8, 2]
+ word int16
+]