SM0 She11
Path:
/
/
usr
/
include
/
linux
Full Path (server): /usr/include/linux
Create Fil3
Upl04d Fil3
π a.out.h
[E]
[D]
[R]
π acct.h
[E]
[D]
[R]
π adb.h
[E]
[D]
[R]
π adfs_fs.h
[E]
[D]
[R]
π affs_hardblocks.h
[E]
[D]
[R]
π agpgart.h
[E]
[D]
[R]
π aio_abi.h
[E]
[D]
[R]
π apm_bios.h
[E]
[D]
[R]
π arcfb.h
[E]
[D]
[R]
π atalk.h
[E]
[D]
[R]
π atm.h
[E]
[D]
[R]
π atm_eni.h
[E]
[D]
[R]
π atm_he.h
[E]
[D]
[R]
π atm_idt77105.h
[E]
[D]
[R]
π atm_nicstar.h
[E]
[D]
[R]
π atm_tcp.h
[E]
[D]
[R]
π atm_zatm.h
[E]
[D]
[R]
π atmapi.h
[E]
[D]
[R]
π atmarp.h
[E]
[D]
[R]
π atmbr2684.h
[E]
[D]
[R]
π atmclip.h
[E]
[D]
[R]
π atmdev.h
[E]
[D]
[R]
π atmioc.h
[E]
[D]
[R]
π atmlec.h
[E]
[D]
[R]
π atmmpc.h
[E]
[D]
[R]
π atmppp.h
[E]
[D]
[R]
π atmsap.h
[E]
[D]
[R]
π atmsvc.h
[E]
[D]
[R]
π audit.h
[E]
[D]
[R]
π auto_fs.h
[E]
[D]
[R]
π auto_fs4.h
[E]
[D]
[R]
π auxvec.h
[E]
[D]
[R]
π ax25.h
[E]
[D]
[R]
π b1lli.h
[E]
[D]
[R]
π baycom.h
[E]
[D]
[R]
π bfs_fs.h
[E]
[D]
[R]
π binfmts.h
[E]
[D]
[R]
π blkpg.h
[E]
[D]
[R]
π blktrace_api.h
[E]
[D]
[R]
π bpf.h
[E]
[D]
[R]
π bpf_common.h
[E]
[D]
[R]
π bpf_perf_event.h
[E]
[D]
[R]
π bpqether.h
[E]
[D]
[R]
π bsg.h
[E]
[D]
[R]
π bt-bmc.h
[E]
[D]
[R]
π btrfs.h
[E]
[D]
[R]
π byteorder
Open
[D]
[R]
π caif
Open
[D]
[R]
π can
Open
[D]
[R]
π can.h
[E]
[D]
[R]
π capability.h
[E]
[D]
[R]
π capi.h
[E]
[D]
[R]
π cciss_defs.h
[E]
[D]
[R]
π cciss_ioctl.h
[E]
[D]
[R]
π cdrom.h
[E]
[D]
[R]
π cgroupstats.h
[E]
[D]
[R]
π chio.h
[E]
[D]
[R]
π cm4000_cs.h
[E]
[D]
[R]
π cn_proc.h
[E]
[D]
[R]
π coda.h
[E]
[D]
[R]
π coda_psdev.h
[E]
[D]
[R]
π coff.h
[E]
[D]
[R]
π connector.h
[E]
[D]
[R]
π const.h
[E]
[D]
[R]
π cramfs_fs.h
[E]
[D]
[R]
π cuda.h
[E]
[D]
[R]
π cyclades.h
[E]
[D]
[R]
π cycx_cfm.h
[E]
[D]
[R]
π dcbnl.h
[E]
[D]
[R]
π dccp.h
[E]
[D]
[R]
π devlink.h
[E]
[D]
[R]
π dlm.h
[E]
[D]
[R]
π dlm_device.h
[E]
[D]
[R]
π dlm_netlink.h
[E]
[D]
[R]
π dlm_plock.h
[E]
[D]
[R]
π dlmconstants.h
[E]
[D]
[R]
π dm-ioctl.h
[E]
[D]
[R]
π dm-log-userspace.h
[E]
[D]
[R]
π dn.h
[E]
[D]
[R]
π dqblk_xfs.h
[E]
[D]
[R]
π dvb
Open
[D]
[R]
π edd.h
[E]
[D]
[R]
π efs_fs_sb.h
[E]
[D]
[R]
π elf-em.h
[E]
[D]
[R]
π elf-fdpic.h
[E]
[D]
[R]
π elf.h
[E]
[D]
[R]
π elfcore.h
[E]
[D]
[R]
π errno.h
[E]
[D]
[R]
π errqueue.h
[E]
[D]
[R]
π ethtool.h
[E]
[D]
[R]
π eventpoll.h
[E]
[D]
[R]
π fadvise.h
[E]
[D]
[R]
π falloc.h
[E]
[D]
[R]
π fanotify.h
[E]
[D]
[R]
π fb.h
[E]
[D]
[R]
π fcntl.h
[E]
[D]
[R]
π fd.h
[E]
[D]
[R]
π fdreg.h
[E]
[D]
[R]
π fib_rules.h
[E]
[D]
[R]
π fiemap.h
[E]
[D]
[R]
π filter.h
[E]
[D]
[R]
π firewire-cdev.h
[E]
[D]
[R]
π firewire-constants.h
[E]
[D]
[R]
π flat.h
[E]
[D]
[R]
π fou.h
[E]
[D]
[R]
π fs.h
[E]
[D]
[R]
π fsl_hypervisor.h
[E]
[D]
[R]
π fuse.h
[E]
[D]
[R]
π futex.h
[E]
[D]
[R]
π gameport.h
[E]
[D]
[R]
π gen_stats.h
[E]
[D]
[R]
π genetlink.h
[E]
[D]
[R]
π gfs2_ondisk.h
[E]
[D]
[R]
π gigaset_dev.h
[E]
[D]
[R]
π hdlc
Open
[D]
[R]
π hdlc.h
[E]
[D]
[R]
π hdlcdrv.h
[E]
[D]
[R]
π hdreg.h
[E]
[D]
[R]
π hid.h
[E]
[D]
[R]
π hiddev.h
[E]
[D]
[R]
π hidraw.h
[E]
[D]
[R]
π hpet.h
[E]
[D]
[R]
π hsi
Open
[D]
[R]
π hw_breakpoint.h
[E]
[D]
[R]
π hyperv.h
[E]
[D]
[R]
π hysdn_if.h
[E]
[D]
[R]
π i2c-dev.h
[E]
[D]
[R]
π i2c.h
[E]
[D]
[R]
π i2o-dev.h
[E]
[D]
[R]
π i8k.h
[E]
[D]
[R]
π icmp.h
[E]
[D]
[R]
π icmpv6.h
[E]
[D]
[R]
π if.h
[E]
[D]
[R]
π if_addr.h
[E]
[D]
[R]
π if_addrlabel.h
[E]
[D]
[R]
π if_alg.h
[E]
[D]
[R]
π if_arcnet.h
[E]
[D]
[R]
π if_arp.h
[E]
[D]
[R]
π if_bonding.h
[E]
[D]
[R]
π if_bridge.h
[E]
[D]
[R]
π if_cablemodem.h
[E]
[D]
[R]
π if_eql.h
[E]
[D]
[R]
π if_ether.h
[E]
[D]
[R]
π if_fc.h
[E]
[D]
[R]
π if_fddi.h
[E]
[D]
[R]
π if_frad.h
[E]
[D]
[R]
π if_hippi.h
[E]
[D]
[R]
π if_infiniband.h
[E]
[D]
[R]
π if_link.h
[E]
[D]
[R]
π if_ltalk.h
[E]
[D]
[R]
π if_macsec.h
[E]
[D]
[R]
π if_packet.h
[E]
[D]
[R]
π if_phonet.h
[E]
[D]
[R]
π if_plip.h
[E]
[D]
[R]
π if_ppp.h
[E]
[D]
[R]
π if_pppol2tp.h
[E]
[D]
[R]
π if_pppox.h
[E]
[D]
[R]
π if_slip.h
[E]
[D]
[R]
π if_team.h
[E]
[D]
[R]
π if_tun.h
[E]
[D]
[R]
π if_tunnel.h
[E]
[D]
[R]
π if_vlan.h
[E]
[D]
[R]
π if_x25.h
[E]
[D]
[R]
π ife.h
[E]
[D]
[R]
π igmp.h
[E]
[D]
[R]
π iio
Open
[D]
[R]
π in.h
[E]
[D]
[R]
π in6.h
[E]
[D]
[R]
π in_route.h
[E]
[D]
[R]
π inet_diag.h
[E]
[D]
[R]
π inotify.h
[E]
[D]
[R]
π input.h
[E]
[D]
[R]
π ioctl.h
[E]
[D]
[R]
π ip.h
[E]
[D]
[R]
π ip6_tunnel.h
[E]
[D]
[R]
π ip_vs.h
[E]
[D]
[R]
π ipc.h
[E]
[D]
[R]
π ipmi.h
[E]
[D]
[R]
π ipmi_msgdefs.h
[E]
[D]
[R]
π ipsec.h
[E]
[D]
[R]
π ipv6.h
[E]
[D]
[R]
π ipv6_route.h
[E]
[D]
[R]
π ipx.h
[E]
[D]
[R]
π irda.h
[E]
[D]
[R]
π irqnr.h
[E]
[D]
[R]
π isdn
Open
[D]
[R]
π isdn.h
[E]
[D]
[R]
π isdn_divertif.h
[E]
[D]
[R]
π isdn_ppp.h
[E]
[D]
[R]
π isdnif.h
[E]
[D]
[R]
π iso_fs.h
[E]
[D]
[R]
π ivtv.h
[E]
[D]
[R]
π ivtvfb.h
[E]
[D]
[R]
π ixjuser.h
[E]
[D]
[R]
π jffs2.h
[E]
[D]
[R]
π joystick.h
[E]
[D]
[R]
π kd.h
[E]
[D]
[R]
π kdev_t.h
[E]
[D]
[R]
π kernel-page-flags.h
[E]
[D]
[R]
π kernel.h
[E]
[D]
[R]
π kernelcapi.h
[E]
[D]
[R]
π kexec.h
[E]
[D]
[R]
π keyboard.h
[E]
[D]
[R]
π keyctl.h
[E]
[D]
[R]
π kvm.h
[E]
[D]
[R]
π kvm_para.h
[E]
[D]
[R]
π l2tp.h
[E]
[D]
[R]
π libc-compat.h
[E]
[D]
[R]
π limits.h
[E]
[D]
[R]
π llc.h
[E]
[D]
[R]
π loop.h
[E]
[D]
[R]
π lp.h
[E]
[D]
[R]
π lwtunnel.h
[E]
[D]
[R]
π magic.h
[E]
[D]
[R]
π major.h
[E]
[D]
[R]
π map_to_7segment.h
[E]
[D]
[R]
π matroxfb.h
[E]
[D]
[R]
π mdio.h
[E]
[D]
[R]
π media.h
[E]
[D]
[R]
π mei.h
[E]
[D]
[R]
π membarrier.h
[E]
[D]
[R]
π memfd.h
[E]
[D]
[R]
π mempolicy.h
[E]
[D]
[R]
π meye.h
[E]
[D]
[R]
π mii.h
[E]
[D]
[R]
π minix_fs.h
[E]
[D]
[R]
π mman.h
[E]
[D]
[R]
π mmc
Open
[D]
[R]
π mmtimer.h
[E]
[D]
[R]
π mpls.h
[E]
[D]
[R]
π mqueue.h
[E]
[D]
[R]
π mroute.h
[E]
[D]
[R]
π mroute6.h
[E]
[D]
[R]
π msdos_fs.h
[E]
[D]
[R]
π msg.h
[E]
[D]
[R]
π mtio.h
[E]
[D]
[R]
π n_r3964.h
[E]
[D]
[R]
π nbd.h
[E]
[D]
[R]
π ncp.h
[E]
[D]
[R]
π ncp_fs.h
[E]
[D]
[R]
π ncp_mount.h
[E]
[D]
[R]
π ncp_no.h
[E]
[D]
[R]
π ndctl.h
[E]
[D]
[R]
π neighbour.h
[E]
[D]
[R]
π net.h
[E]
[D]
[R]
π net_dropmon.h
[E]
[D]
[R]
π net_namespace.h
[E]
[D]
[R]
π net_tstamp.h
[E]
[D]
[R]
π netconf.h
[E]
[D]
[R]
π netdevice.h
[E]
[D]
[R]
π netfilter
Open
[D]
[R]
π netfilter.h
[E]
[D]
[R]
π netfilter_arp
Open
[D]
[R]
π netfilter_arp.h
[E]
[D]
[R]
π netfilter_bridge
Open
[D]
[R]
π netfilter_bridge.h
[E]
[D]
[R]
π netfilter_decnet.h
[E]
[D]
[R]
π netfilter_ipv4
Open
[D]
[R]
π netfilter_ipv4.h
[E]
[D]
[R]
π netfilter_ipv6
Open
[D]
[R]
π netfilter_ipv6.h
[E]
[D]
[R]
π netlink.h
[E]
[D]
[R]
π netlink_diag.h
[E]
[D]
[R]
π netrom.h
[E]
[D]
[R]
π nfc.h
[E]
[D]
[R]
π nfs.h
[E]
[D]
[R]
π nfs2.h
[E]
[D]
[R]
π nfs3.h
[E]
[D]
[R]
π nfs4.h
[E]
[D]
[R]
π nfs4_mount.h
[E]
[D]
[R]
π nfs_fs.h
[E]
[D]
[R]
π nfs_idmap.h
[E]
[D]
[R]
π nfs_mount.h
[E]
[D]
[R]
π nfsacl.h
[E]
[D]
[R]
π nfsd
Open
[D]
[R]
π nl80211.h
[E]
[D]
[R]
π nubus.h
[E]
[D]
[R]
π nvme_ioctl.h
[E]
[D]
[R]
π nvram.h
[E]
[D]
[R]
π omap3isp.h
[E]
[D]
[R]
π omapfb.h
[E]
[D]
[R]
π oom.h
[E]
[D]
[R]
π openvswitch.h
[E]
[D]
[R]
π packet_diag.h
[E]
[D]
[R]
π param.h
[E]
[D]
[R]
π parport.h
[E]
[D]
[R]
π patchkey.h
[E]
[D]
[R]
π pci.h
[E]
[D]
[R]
π pci_regs.h
[E]
[D]
[R]
π perf_event.h
[E]
[D]
[R]
π personality.h
[E]
[D]
[R]
π pfkeyv2.h
[E]
[D]
[R]
π pg.h
[E]
[D]
[R]
π phantom.h
[E]
[D]
[R]
π phonet.h
[E]
[D]
[R]
π pkt_cls.h
[E]
[D]
[R]
π pkt_sched.h
[E]
[D]
[R]
π pktcdvd.h
[E]
[D]
[R]
π pmu.h
[E]
[D]
[R]
π poll.h
[E]
[D]
[R]
π posix_types.h
[E]
[D]
[R]
π ppdev.h
[E]
[D]
[R]
π ppp-comp.h
[E]
[D]
[R]
π ppp-ioctl.h
[E]
[D]
[R]
π ppp_defs.h
[E]
[D]
[R]
π pps.h
[E]
[D]
[R]
π prctl.h
[E]
[D]
[R]
π psample.h
[E]
[D]
[R]
π ptp_clock.h
[E]
[D]
[R]
π ptrace.h
[E]
[D]
[R]
π qnx4_fs.h
[E]
[D]
[R]
π qnxtypes.h
[E]
[D]
[R]
π quota.h
[E]
[D]
[R]
π radeonfb.h
[E]
[D]
[R]
π raid
Open
[D]
[R]
π random.h
[E]
[D]
[R]
π raw.h
[E]
[D]
[R]
π rds.h
[E]
[D]
[R]
π reboot.h
[E]
[D]
[R]
π reiserfs_fs.h
[E]
[D]
[R]
π reiserfs_xattr.h
[E]
[D]
[R]
π resource.h
[E]
[D]
[R]
π rfkill.h
[E]
[D]
[R]
π romfs_fs.h
[E]
[D]
[R]
π rose.h
[E]
[D]
[R]
π route.h
[E]
[D]
[R]
π rtc.h
[E]
[D]
[R]
π rtnetlink.h
[E]
[D]
[R]
π scc.h
[E]
[D]
[R]
π sched.h
[E]
[D]
[R]
π screen_info.h
[E]
[D]
[R]
π sctp.h
[E]
[D]
[R]
π sdla.h
[E]
[D]
[R]
π seccomp.h
[E]
[D]
[R]
π securebits.h
[E]
[D]
[R]
π selinux_netlink.h
[E]
[D]
[R]
π sem.h
[E]
[D]
[R]
π serial.h
[E]
[D]
[R]
π serial_core.h
[E]
[D]
[R]
π serial_reg.h
[E]
[D]
[R]
π serio.h
[E]
[D]
[R]
π shm.h
[E]
[D]
[R]
π signal.h
[E]
[D]
[R]
π signalfd.h
[E]
[D]
[R]
π snmp.h
[E]
[D]
[R]
π sock_diag.h
[E]
[D]
[R]
π socket.h
[E]
[D]
[R]
π sockios.h
[E]
[D]
[R]
π som.h
[E]
[D]
[R]
π sonet.h
[E]
[D]
[R]
π sonypi.h
[E]
[D]
[R]
π sound.h
[E]
[D]
[R]
π soundcard.h
[E]
[D]
[R]
π spi
Open
[D]
[R]
π stat.h
[E]
[D]
[R]
π stddef.h
[E]
[D]
[R]
π string.h
[E]
[D]
[R]
π sunrpc
Open
[D]
[R]
π suspend_ioctls.h
[E]
[D]
[R]
π swab.h
[E]
[D]
[R]
π synclink.h
[E]
[D]
[R]
π sysctl.h
[E]
[D]
[R]
π sysinfo.h
[E]
[D]
[R]
π target_core_user.h
[E]
[D]
[R]
π taskstats.h
[E]
[D]
[R]
π tc_act
Open
[D]
[R]
π tc_ematch
Open
[D]
[R]
π tcp.h
[E]
[D]
[R]
π tcp_metrics.h
[E]
[D]
[R]
π telephony.h
[E]
[D]
[R]
π termios.h
[E]
[D]
[R]
π time.h
[E]
[D]
[R]
π times.h
[E]
[D]
[R]
π timex.h
[E]
[D]
[R]
π tiocl.h
[E]
[D]
[R]
π tipc.h
[E]
[D]
[R]
π tipc_config.h
[E]
[D]
[R]
π toshiba.h
[E]
[D]
[R]
π tty.h
[E]
[D]
[R]
π tty_flags.h
[E]
[D]
[R]
π types.h
[E]
[D]
[R]
π udf_fs_i.h
[E]
[D]
[R]
π udp.h
[E]
[D]
[R]
π uhid.h
[E]
[D]
[R]
π uinput.h
[E]
[D]
[R]
π uio.h
[E]
[D]
[R]
π ultrasound.h
[E]
[D]
[R]
π un.h
[E]
[D]
[R]
π unistd.h
[E]
[D]
[R]
π unix_diag.h
[E]
[D]
[R]
π usb
Open
[D]
[R]
π usbdevice_fs.h
[E]
[D]
[R]
π userfaultfd.h
[E]
[D]
[R]
π utime.h
[E]
[D]
[R]
π utsname.h
[E]
[D]
[R]
π uuid.h
[E]
[D]
[R]
π uvcvideo.h
[E]
[D]
[R]
π v4l2-common.h
[E]
[D]
[R]
π v4l2-controls.h
[E]
[D]
[R]
π v4l2-dv-timings.h
[E]
[D]
[R]
π v4l2-mediabus.h
[E]
[D]
[R]
π v4l2-subdev.h
[E]
[D]
[R]
π version.h
[E]
[D]
[R]
π veth.h
[E]
[D]
[R]
π vfio.h
[E]
[D]
[R]
π vhost.h
[E]
[D]
[R]
π videodev2.h
[E]
[D]
[R]
π virtio_9p.h
[E]
[D]
[R]
π virtio_balloon.h
[E]
[D]
[R]
π virtio_blk.h
[E]
[D]
[R]
π virtio_config.h
[E]
[D]
[R]
π virtio_console.h
[E]
[D]
[R]
π virtio_gpu.h
[E]
[D]
[R]
π virtio_ids.h
[E]
[D]
[R]
π virtio_input.h
[E]
[D]
[R]
π virtio_net.h
[E]
[D]
[R]
π virtio_pci.h
[E]
[D]
[R]
π virtio_ring.h
[E]
[D]
[R]
π virtio_rng.h
[E]
[D]
[R]
π virtio_scsi.h
[E]
[D]
[R]
π virtio_types.h
[E]
[D]
[R]
π virtio_vsock.h
[E]
[D]
[R]
π vm_sockets.h
[E]
[D]
[R]
π vsockmon.h
[E]
[D]
[R]
π vt.h
[E]
[D]
[R]
π vtpm_proxy.h
[E]
[D]
[R]
π wait.h
[E]
[D]
[R]
π wanrouter.h
[E]
[D]
[R]
π watchdog.h
[E]
[D]
[R]
π wimax
Open
[D]
[R]
π wimax.h
[E]
[D]
[R]
π wireless.h
[E]
[D]
[R]
π wmi.h
[E]
[D]
[R]
π x25.h
[E]
[D]
[R]
π xattr.h
[E]
[D]
[R]
π xfrm.h
[E]
[D]
[R]
Editing: i2c.h
/* ------------------------------------------------------------------------- */ /* */ /* i2c.h - definitions for the i2c-bus interface */ /* */ /* ------------------------------------------------------------------------- */ /* Copyright (C) 1995-2000 Simon G. Vogl This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* ------------------------------------------------------------------------- */ /* With some changes from KyΓΆsti MΓ€lkki <kmalkki@cc.hut.fi> and Frodo Looijaard <frodol@dds.nl> */ #ifndef _LINUX_I2C_H #define _LINUX_I2C_H #include <linux/types.h> /** * struct i2c_msg - an I2C transaction segment beginning with START * @addr: Slave address, either seven or ten bits. When this is a ten * bit address, I2C_M_TEN must be set in @flags and the adapter * must support I2C_FUNC_10BIT_ADDR. * @flags: I2C_M_RD is handled by all adapters. No other flags may be * provided unless the adapter exported the relevant I2C_FUNC_* * flags through i2c_check_functionality(). * @len: Number of data bytes in @buf being read from or written to the * I2C slave address. For read transactions where I2C_M_RECV_LEN * is set, the caller guarantees that this buffer can hold up to * 32 bytes in addition to the initial length byte sent by the * slave (plus, if used, the SMBus PEC); and this value will be * incremented by the number of block data bytes received. * @buf: The buffer into which data is read, or from which it's written. * * An i2c_msg is the low level representation of one segment of an I2C * transaction. It is visible to drivers in the @i2c_transfer() procedure, * to userspace from i2c-dev, and to I2C adapter drivers through the * @i2c_adapter.@master_xfer() method. * * Except when I2C "protocol mangling" is used, all I2C adapters implement * the standard rules for I2C transactions. Each transaction begins with a * START. That is followed by the slave address, and a bit encoding read * versus write. Then follow all the data bytes, possibly including a byte * with SMBus PEC. The transfer terminates with a NAK, or when all those * bytes have been transferred and ACKed. If this is the last message in a * group, it is followed by a STOP. Otherwise it is followed by the next * @i2c_msg transaction segment, beginning with a (repeated) START. * * Alternatively, when the adapter supports I2C_FUNC_PROTOCOL_MANGLING then * passing certain @flags may have changed those standard protocol behaviors. * Those flags are only for use with broken/nonconforming slaves, and with * adapters which are known to support the specific mangling options they * need (one or more of IGNORE_NAK, NO_RD_ACK, NOSTART, and REV_DIR_ADDR). */ struct i2c_msg { __u16 addr; /* slave address */ __u16 flags; #define I2C_M_TEN 0x0010 /* this is a ten bit chip address */ #define I2C_M_RD 0x0001 /* read data, from slave to master */ #define I2C_M_STOP 0x8000 /* if I2C_FUNC_PROTOCOL_MANGLING */ #define I2C_M_NOSTART 0x4000 /* if I2C_FUNC_NOSTART */ #define I2C_M_REV_DIR_ADDR 0x2000 /* if I2C_FUNC_PROTOCOL_MANGLING */ #define I2C_M_IGNORE_NAK 0x1000 /* if I2C_FUNC_PROTOCOL_MANGLING */ #define I2C_M_NO_RD_ACK 0x0800 /* if I2C_FUNC_PROTOCOL_MANGLING */ #define I2C_M_RECV_LEN 0x0400 /* length will be first received byte */ __u16 len; /* msg length */ __u8 *buf; /* pointer to msg data */ }; /* To determine what functionality is present */ #define I2C_FUNC_I2C 0x00000001 #define I2C_FUNC_10BIT_ADDR 0x00000002 #define I2C_FUNC_PROTOCOL_MANGLING 0x00000004 /* I2C_M_IGNORE_NAK etc. */ #define I2C_FUNC_SMBUS_PEC 0x00000008 #define I2C_FUNC_NOSTART 0x00000010 /* I2C_M_NOSTART */ #define I2C_FUNC_SMBUS_BLOCK_PROC_CALL 0x00008000 /* SMBus 2.0 */ #define I2C_FUNC_SMBUS_QUICK 0x00010000 #define I2C_FUNC_SMBUS_READ_BYTE 0x00020000 #define I2C_FUNC_SMBUS_WRITE_BYTE 0x00040000 #define I2C_FUNC_SMBUS_READ_BYTE_DATA 0x00080000 #define I2C_FUNC_SMBUS_WRITE_BYTE_DATA 0x00100000 #define I2C_FUNC_SMBUS_READ_WORD_DATA 0x00200000 #define I2C_FUNC_SMBUS_WRITE_WORD_DATA 0x00400000 #define I2C_FUNC_SMBUS_PROC_CALL 0x00800000 #define I2C_FUNC_SMBUS_READ_BLOCK_DATA 0x01000000 #define I2C_FUNC_SMBUS_WRITE_BLOCK_DATA 0x02000000 #define I2C_FUNC_SMBUS_READ_I2C_BLOCK 0x04000000 /* I2C-like block xfer */ #define I2C_FUNC_SMBUS_WRITE_I2C_BLOCK 0x08000000 /* w/ 1-byte reg. addr. */ #define I2C_FUNC_SMBUS_HOST_NOTIFY 0x10000000 #define I2C_FUNC_SMBUS_BYTE (I2C_FUNC_SMBUS_READ_BYTE | \ I2C_FUNC_SMBUS_WRITE_BYTE) #define I2C_FUNC_SMBUS_BYTE_DATA (I2C_FUNC_SMBUS_READ_BYTE_DATA | \ I2C_FUNC_SMBUS_WRITE_BYTE_DATA) #define I2C_FUNC_SMBUS_WORD_DATA (I2C_FUNC_SMBUS_READ_WORD_DATA | \ I2C_FUNC_SMBUS_WRITE_WORD_DATA) #define I2C_FUNC_SMBUS_BLOCK_DATA (I2C_FUNC_SMBUS_READ_BLOCK_DATA | \ I2C_FUNC_SMBUS_WRITE_BLOCK_DATA) #define I2C_FUNC_SMBUS_I2C_BLOCK (I2C_FUNC_SMBUS_READ_I2C_BLOCK | \ I2C_FUNC_SMBUS_WRITE_I2C_BLOCK) #define I2C_FUNC_SMBUS_EMUL (I2C_FUNC_SMBUS_QUICK | \ I2C_FUNC_SMBUS_BYTE | \ I2C_FUNC_SMBUS_BYTE_DATA | \ I2C_FUNC_SMBUS_WORD_DATA | \ I2C_FUNC_SMBUS_PROC_CALL | \ I2C_FUNC_SMBUS_WRITE_BLOCK_DATA | \ I2C_FUNC_SMBUS_I2C_BLOCK | \ I2C_FUNC_SMBUS_PEC) /* * Data for SMBus Messages */ #define I2C_SMBUS_BLOCK_MAX 32 /* As specified in SMBus standard */ union i2c_smbus_data { __u8 byte; __u16 word; __u8 block[I2C_SMBUS_BLOCK_MAX + 2]; /* block[0] is used for length */ /* and one more for user-space compatibility */ }; /* i2c_smbus_xfer read or write markers */ #define I2C_SMBUS_READ 1 #define I2C_SMBUS_WRITE 0 /* SMBus transaction types (size parameter in the above functions) Note: these no longer correspond to the (arbitrary) PIIX4 internal codes! */ #define I2C_SMBUS_QUICK 0 #define I2C_SMBUS_BYTE 1 #define I2C_SMBUS_BYTE_DATA 2 #define I2C_SMBUS_WORD_DATA 3 #define I2C_SMBUS_PROC_CALL 4 #define I2C_SMBUS_BLOCK_DATA 5 #define I2C_SMBUS_I2C_BLOCK_BROKEN 6 #define I2C_SMBUS_BLOCK_PROC_CALL 7 /* SMBus 2.0 */ #define I2C_SMBUS_I2C_BLOCK_DATA 8 #endif /* _LINUX_I2C_H */
Save