github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/freebsd/dev_smbus.txt (about)

     1  # Copyright 2021 syzkaller project authors. All rights reserved.
     2  # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  # Autogenerated by sys2syz
     4  
     5  include <fcntl.h>
     6  include <sys/types.h>
     7  include <dev/smbus/smb.h>
     8  
     9  resource fd_smbus[fd]
    10  
    11  openat$smbus(fd const[AT_FDCWD], file ptr[in, string["/dev/smbN"]], flags flags[open_flags], mode const[0]) fd_smbus
    12  
    13  ioctl$SMB_QUICK_WRITE(fd fd_smbus, cmd const[SMB_QUICK_WRITE], arg ptr[in, smbcmd])
    14  ioctl$SMB_QUICK_READ(fd fd_smbus, cmd const[SMB_QUICK_READ], arg ptr[in, smbcmd])
    15  ioctl$SMB_SENDB(fd fd_smbus, cmd const[SMB_SENDB], arg ptr[in, smbcmd])
    16  ioctl$SMB_RECVB(fd fd_smbus, cmd const[SMB_RECVB], arg ptr[inout, smbcmd])
    17  ioctl$SMB_WRITEB(fd fd_smbus, cmd const[SMB_WRITEB], arg ptr[in, smbcmd])
    18  ioctl$SMB_WRITEW(fd fd_smbus, cmd const[SMB_WRITEW], arg ptr[in, smbcmd])
    19  ioctl$SMB_READB(fd fd_smbus, cmd const[SMB_READB], arg ptr[inout, smbcmd])
    20  ioctl$SMB_READW(fd fd_smbus, cmd const[SMB_READW], arg ptr[inout, smbcmd])
    21  ioctl$SMB_PCALL(fd fd_smbus, cmd const[SMB_PCALL], arg ptr[inout, smbcmd])
    22  ioctl$SMB_BWRITE(fd fd_smbus, cmd const[SMB_BWRITE], arg ptr[in, smbcmd])
    23  ioctl$SMB_BREAD(fd fd_smbus, cmd const[SMB_BREAD], arg ptr[inout, smbcmd])
    24  ioctl$SMB_OLD_TRANS(fd fd_smbus, cmd const[SMB_OLD_TRANS], arg ptr[inout, smbcmd])
    25  
    26  smbcmd {
    27  	cmd		int8
    28  	reserved	int8
    29  	op		int16
    30  	wdata		wdata
    31  	rdata		rdata
    32  	slave		int32
    33  	wbuf		ptr[in, int8]
    34  	wcount		len[wbuf, int32]
    35  	rbuf		ptr[in, int8]
    36  	rcount		len[rbuf, int32]
    37  }
    38  
    39  wdata [
    40  	byte	int8
    41  	buf	array[int8, 2]
    42  	word	int16
    43  ]
    44  
    45  rdata [
    46  	byte	int8
    47  	buf	array[int8, 2]
    48  	word	int16
    49  ]