X7ROOT File Manager
Current Path:
/usr/include/linux
usr
/
include
/
linux
/
π
..
π
a.out.h
(7.15 KB)
π
acct.h
(3.58 KB)
π
adb.h
(1.05 KB)
π
adfs_fs.h
(873 B)
π
affs_hardblocks.h
(1.45 KB)
π
agpgart.h
(3.83 KB)
π
aio_abi.h
(3.1 KB)
π
apm_bios.h
(3.46 KB)
π
arcfb.h
(150 B)
π
atalk.h
(960 B)
π
atm.h
(7.64 KB)
π
atm_eni.h
(585 B)
π
atm_he.h
(343 B)
π
atm_idt77105.h
(892 B)
π
atm_nicstar.h
(1.19 KB)
π
atm_tcp.h
(1.52 KB)
π
atm_zatm.h
(1.57 KB)
π
atmapi.h
(889 B)
π
atmarp.h
(1.2 KB)
π
atmbr2684.h
(3.13 KB)
π
atmclip.h
(513 B)
π
atmdev.h
(7.44 KB)
π
atmioc.h
(1.55 KB)
π
atmlec.h
(2.26 KB)
π
atmmpc.h
(4.07 KB)
π
atmppp.h
(576 B)
π
atmsap.h
(4.79 KB)
π
atmsvc.h
(1.75 KB)
π
audit.h
(18.03 KB)
π
auto_fs.h
(2.53 KB)
π
auto_fs4.h
(4.3 KB)
π
auxvec.h
(1.4 KB)
π
ax25.h
(2.7 KB)
π
b1lli.h
(1.62 KB)
π
baycom.h
(820 B)
π
bfs_fs.h
(1.79 KB)
π
binfmts.h
(565 B)
π
blkpg.h
(1.53 KB)
π
blktrace_api.h
(4.38 KB)
π
bpf.h
(22.04 KB)
π
bpf_common.h
(1.2 KB)
π
bpf_perf_event.h
(453 B)
π
bpqether.h
(952 B)
π
bsg.h
(2.37 KB)
π
bt-bmc.h
(508 B)
π
btrfs.h
(25.07 KB)
π
byteorder
π
caif
π
can
π
can.h
(5.46 KB)
π
capability.h
(11.25 KB)
π
capi.h
(2.99 KB)
π
cciss_defs.h
(3.14 KB)
π
cciss_ioctl.h
(2.63 KB)
π
cdrom.h
(28.12 KB)
π
cgroupstats.h
(2.1 KB)
π
chio.h
(5.16 KB)
π
cm4000_cs.h
(1.68 KB)
π
cn_proc.h
(3.19 KB)
π
coda.h
(17.09 KB)
π
coda_psdev.h
(720 B)
π
coff.h
(12.12 KB)
π
connector.h
(2.14 KB)
π
const.h
(673 B)
π
cramfs_fs.h
(2.68 KB)
π
cuda.h
(842 B)
π
cyclades.h
(16.65 KB)
π
cycx_cfm.h
(2.86 KB)
π
dcbnl.h
(24.5 KB)
π
dccp.h
(6.22 KB)
π
devlink.h
(9.66 KB)
π
dlm.h
(2.43 KB)
π
dlm_device.h
(2.42 KB)
π
dlm_netlink.h
(1.04 KB)
π
dlm_plock.h
(831 B)
π
dlmconstants.h
(4.9 KB)
π
dm-ioctl.h
(10.55 KB)
π
dm-log-userspace.h
(14.82 KB)
π
dn.h
(4.42 KB)
π
dqblk_xfs.h
(8.72 KB)
π
dvb
π
edd.h
(5.41 KB)
π
efs_fs_sb.h
(2.11 KB)
π
elf-em.h
(1.83 KB)
π
elf-fdpic.h
(1.04 KB)
π
elf.h
(12.69 KB)
π
elfcore.h
(2.86 KB)
π
errno.h
(23 B)
π
errqueue.h
(1.1 KB)
π
ethtool.h
(71.11 KB)
π
eventpoll.h
(1.76 KB)
π
fadvise.h
(779 B)
π
falloc.h
(2.72 KB)
π
fanotify.h
(3.52 KB)
π
fb.h
(16 KB)
π
fcntl.h
(2.16 KB)
π
fd.h
(11.31 KB)
π
fdreg.h
(5.23 KB)
π
fib_rules.h
(1.58 KB)
π
fiemap.h
(2.65 KB)
π
filter.h
(1.99 KB)
π
firewire-cdev.h
(42.86 KB)
π
firewire-constants.h
(3.16 KB)
π
flat.h
(2.04 KB)
π
fou.h
(617 B)
π
fs.h
(8.47 KB)
π
fsl_hypervisor.h
(7.05 KB)
π
fuse.h
(16.41 KB)
π
futex.h
(4.81 KB)
π
gameport.h
(834 B)
π
gen_stats.h
(1.5 KB)
π
genetlink.h
(1.82 KB)
π
gfs2_ondisk.h
(12 KB)
π
gigaset_dev.h
(1.35 KB)
π
hdlc
π
hdlc.h
(574 B)
π
hdlcdrv.h
(2.78 KB)
π
hdreg.h
(22.11 KB)
π
hid.h
(1.79 KB)
π
hiddev.h
(6.13 KB)
π
hidraw.h
(1.41 KB)
π
hpet.h
(680 B)
π
hsi
π
hw_breakpoint.h
(679 B)
π
hyperv.h
(10.22 KB)
π
hysdn_if.h
(1.29 KB)
π
i2c-dev.h
(2.37 KB)
π
i2c.h
(6.66 KB)
π
i2o-dev.h
(11.22 KB)
π
i8k.h
(1.4 KB)
π
icmp.h
(2.82 KB)
π
icmpv6.h
(3.82 KB)
π
if.h
(9.26 KB)
π
if_addr.h
(1.7 KB)
π
if_addrlabel.h
(658 B)
π
if_alg.h
(816 B)
π
if_arcnet.h
(3.63 KB)
π
if_arp.h
(6.3 KB)
π
if_bonding.h
(4.66 KB)
π
if_bridge.h
(6.46 KB)
π
if_cablemodem.h
(922 B)
π
if_eql.h
(1.26 KB)
π
if_ether.h
(7.25 KB)
π
if_fc.h
(1.63 KB)
π
if_fddi.h
(3.6 KB)
π
if_frad.h
(2.89 KB)
π
if_hippi.h
(4.07 KB)
π
if_infiniband.h
(1.13 KB)
π
if_link.h
(19.58 KB)
π
if_ltalk.h
(147 B)
π
if_macsec.h
(5.42 KB)
π
if_packet.h
(7.15 KB)
π
if_phonet.h
(361 B)
π
if_plip.h
(596 B)
π
if_ppp.h
(29 B)
π
if_pppol2tp.h
(3.18 KB)
π
if_pppox.h
(4.64 KB)
π
if_slip.h
(809 B)
π
if_team.h
(2.48 KB)
π
if_tun.h
(3.71 KB)
π
if_tunnel.h
(3.03 KB)
π
if_vlan.h
(1.69 KB)
π
if_x25.h
(817 B)
π
ife.h
(288 B)
π
igmp.h
(2.88 KB)
π
iio
π
in.h
(9.36 KB)
π
in6.h
(6.97 KB)
π
in_route.h
(873 B)
π
inet_diag.h
(2.77 KB)
π
inotify.h
(2.85 KB)
π
input.h
(32.52 KB)
π
ioctl.h
(100 B)
π
ip.h
(3.47 KB)
π
ip6_tunnel.h
(1.67 KB)
π
ip_vs.h
(12.77 KB)
π
ipc.h
(1.99 KB)
π
ipmi.h
(14.63 KB)
π
ipmi_msgdefs.h
(3.21 KB)
π
ipsec.h
(884 B)
π
ipv6.h
(3.66 KB)
π
ipv6_route.h
(1.73 KB)
π
ipx.h
(1.79 KB)
π
irda.h
(7.31 KB)
π
irqnr.h
(104 B)
π
isdn
π
isdn.h
(5.58 KB)
π
isdn_divertif.h
(1.11 KB)
π
isdn_ppp.h
(1.82 KB)
π
isdnif.h
(2.25 KB)
π
iso_fs.h
(6.29 KB)
π
ivtv.h
(2.89 KB)
π
ivtvfb.h
(1.12 KB)
π
ixjuser.h
(24.53 KB)
π
jffs2.h
(6.85 KB)
π
joystick.h
(3.5 KB)
π
kd.h
(6.04 KB)
π
kdev_t.h
(320 B)
π
kernel-page-flags.h
(788 B)
π
kernel.h
(375 B)
π
kernelcapi.h
(956 B)
π
kexec.h
(1.92 KB)
π
keyboard.h
(12.42 KB)
π
keyctl.h
(2.98 KB)
π
kvm.h
(33.89 KB)
π
kvm_para.h
(819 B)
π
l2tp.h
(4.98 KB)
π
libc-compat.h
(4.03 KB)
π
limits.h
(874 B)
π
llc.h
(2.98 KB)
π
loop.h
(2.31 KB)
π
lp.h
(3.72 KB)
π
lwtunnel.h
(839 B)
π
magic.h
(2.9 KB)
π
major.h
(4.48 KB)
π
map_to_7segment.h
(7.02 KB)
π
matroxfb.h
(1.37 KB)
π
mdio.h
(13.74 KB)
π
media.h
(3.5 KB)
π
mei.h
(4.62 KB)
π
membarrier.h
(7.71 KB)
π
memfd.h
(186 B)
π
mempolicy.h
(2.35 KB)
π
meye.h
(2.41 KB)
π
mii.h
(7.76 KB)
π
minix_fs.h
(2.01 KB)
π
mman.h
(230 B)
π
mmc
π
mmtimer.h
(2.01 KB)
π
mpls.h
(1.33 KB)
π
mqueue.h
(2.01 KB)
π
mroute.h
(4.06 KB)
π
mroute6.h
(4.08 KB)
π
msdos_fs.h
(6.28 KB)
π
msg.h
(3.21 KB)
π
mtio.h
(7.92 KB)
π
n_r3964.h
(2.29 KB)
π
nbd.h
(2.34 KB)
π
ncp.h
(4.94 KB)
π
ncp_fs.h
(3.27 KB)
π
ncp_mount.h
(2.06 KB)
π
ncp_no.h
(651 B)
π
ndctl.h
(6.6 KB)
π
neighbour.h
(4.17 KB)
π
net.h
(1.97 KB)
π
net_dropmon.h
(1.07 KB)
π
net_namespace.h
(609 B)
π
net_tstamp.h
(4.06 KB)
π
netconf.h
(423 B)
π
netdevice.h
(1.46 KB)
π
netfilter
π
netfilter.h
(1.6 KB)
π
netfilter_arp
π
netfilter_arp.h
(380 B)
π
netfilter_bridge
π
netfilter_bridge.h
(768 B)
π
netfilter_decnet.h
(1.83 KB)
π
netfilter_ipv4
π
netfilter_ipv4.h
(2.02 KB)
π
netfilter_ipv6
π
netfilter_ipv6.h
(2.04 KB)
π
netlink.h
(6.13 KB)
π
netlink_diag.h
(1005 B)
π
netrom.h
(744 B)
π
nfc.h
(7.72 KB)
π
nfs.h
(4.31 KB)
π
nfs2.h
(1.37 KB)
π
nfs3.h
(2.24 KB)
π
nfs4.h
(5.95 KB)
π
nfs4_mount.h
(1.83 KB)
π
nfs_fs.h
(1.51 KB)
π
nfs_idmap.h
(2.19 KB)
π
nfs_mount.h
(2.32 KB)
π
nfsacl.h
(605 B)
π
nfsd
π
nl80211.h
(270.89 KB)
π
nubus.h
(8.17 KB)
π
nvme_ioctl.h
(1.55 KB)
π
nvram.h
(469 B)
π
omap3isp.h
(20.19 KB)
π
omapfb.h
(5.72 KB)
π
oom.h
(448 B)
π
openvswitch.h
(31.79 KB)
π
packet_diag.h
(1.5 KB)
π
param.h
(78 B)
π
parport.h
(3.56 KB)
π
patchkey.h
(829 B)
π
pci.h
(1.29 KB)
π
pci_regs.h
(50.79 KB)
π
perf_event.h
(31.96 KB)
π
personality.h
(1.99 KB)
π
pfkeyv2.h
(9.91 KB)
π
pg.h
(2.23 KB)
π
phantom.h
(1.55 KB)
π
phonet.h
(4.51 KB)
π
pkt_cls.h
(12.49 KB)
π
pkt_sched.h
(20.63 KB)
π
pktcdvd.h
(2.56 KB)
π
pmu.h
(5.13 KB)
π
poll.h
(22 B)
π
posix_types.h
(1.01 KB)
π
ppdev.h
(3.07 KB)
π
ppp-comp.h
(2.41 KB)
π
ppp-ioctl.h
(5.29 KB)
π
ppp_defs.h
(4.93 KB)
π
pps.h
(4.06 KB)
π
prctl.h
(6.75 KB)
π
psample.h
(735 B)
π
ptp_clock.h
(5.09 KB)
π
ptrace.h
(3.08 KB)
π
qnx4_fs.h
(2.21 KB)
π
qnxtypes.h
(561 B)
π
quota.h
(5.78 KB)
π
radeonfb.h
(297 B)
π
raid
π
random.h
(1.2 KB)
π
raw.h
(302 B)
π
rds.h
(7.9 KB)
π
reboot.h
(1.25 KB)
π
reiserfs_fs.h
(712 B)
π
reiserfs_xattr.h
(470 B)
π
resource.h
(2.09 KB)
π
rfkill.h
(3.5 KB)
π
romfs_fs.h
(1.15 KB)
π
rose.h
(2.12 KB)
π
route.h
(2.21 KB)
π
rtc.h
(3.85 KB)
π
rtnetlink.h
(17.02 KB)
π
scc.h
(4.43 KB)
π
sched.h
(2.26 KB)
π
screen_info.h
(2.36 KB)
π
sctp.h
(29.53 KB)
π
sdla.h
(2.71 KB)
π
seccomp.h
(1.83 KB)
π
securebits.h
(2.58 KB)
π
selinux_netlink.h
(1.11 KB)
π
sem.h
(2.54 KB)
π
serial.h
(3.04 KB)
π
serial_core.h
(5.11 KB)
π
serial_reg.h
(15.66 KB)
π
serio.h
(1.81 KB)
π
shm.h
(2.19 KB)
π
signal.h
(171 B)
π
signalfd.h
(1.07 KB)
π
snmp.h
(12.42 KB)
π
sock_diag.h
(431 B)
π
socket.h
(738 B)
π
sockios.h
(5.83 KB)
π
som.h
(5.35 KB)
π
sonet.h
(2.17 KB)
π
sonypi.h
(5.12 KB)
π
sound.h
(1.15 KB)
π
soundcard.h
(44.96 KB)
π
spi
π
stat.h
(1 KB)
π
stddef.h
(1 B)
π
string.h
(175 B)
π
sunrpc
π
suspend_ioctls.h
(1.34 KB)
π
swab.h
(6.36 KB)
π
synclink.h
(8.71 KB)
π
sysctl.h
(25.46 KB)
π
sysinfo.h
(986 B)
π
target_core_user.h
(3.65 KB)
π
taskstats.h
(6.83 KB)
π
tc_act
π
tc_ematch
π
tcp.h
(5.93 KB)
π
tcp_metrics.h
(1.45 KB)
π
telephony.h
(8.84 KB)
π
termios.h
(443 B)
π
time.h
(1.54 KB)
π
times.h
(215 B)
π
timex.h
(6.17 KB)
π
tiocl.h
(1.63 KB)
π
tipc.h
(5.44 KB)
π
tipc_config.h
(14.1 KB)
π
toshiba.h
(1.24 KB)
π
tty.h
(1.33 KB)
π
tty_flags.h
(3.66 KB)
π
types.h
(1.4 KB)
π
udf_fs_i.h
(634 B)
π
udp.h
(1.28 KB)
π
uhid.h
(2.15 KB)
π
uinput.h
(5 KB)
π
uio.h
(668 B)
π
ultrasound.h
(4.39 KB)
π
un.h
(239 B)
π
unistd.h
(157 B)
π
unix_diag.h
(1.1 KB)
π
usb
π
usbdevice_fs.h
(6.78 KB)
π
userfaultfd.h
(6.59 KB)
π
utime.h
(152 B)
π
utsname.h
(606 B)
π
uuid.h
(1.5 KB)
π
uvcvideo.h
(1.6 KB)
π
v4l2-common.h
(2.38 KB)
π
v4l2-controls.h
(37.34 KB)
π
v4l2-dv-timings.h
(25.75 KB)
π
v4l2-mediabus.h
(4.55 KB)
π
v4l2-subdev.h
(5.27 KB)
π
version.h
(332 B)
π
veth.h
(161 B)
π
vfio.h
(26.54 KB)
π
vhost.h
(7.13 KB)
π
videodev2.h
(67.36 KB)
π
virtio_9p.h
(1.99 KB)
π
virtio_balloon.h
(3.71 KB)
π
virtio_blk.h
(5.2 KB)
π
virtio_config.h
(3.34 KB)
π
virtio_console.h
(2.94 KB)
π
virtio_gpu.h
(8.23 KB)
π
virtio_ids.h
(2.32 KB)
π
virtio_input.h
(2.45 KB)
π
virtio_net.h
(9.5 KB)
π
virtio_pci.h
(6.63 KB)
π
virtio_ring.h
(6.18 KB)
π
virtio_rng.h
(265 B)
π
virtio_scsi.h
(5.13 KB)
π
virtio_types.h
(2.11 KB)
π
virtio_vsock.h
(3.01 KB)
π
vm_sockets.h
(5.13 KB)
π
vsockmon.h
(1.78 KB)
π
vt.h
(2.98 KB)
π
vtpm_proxy.h
(1.62 KB)
π
wait.h
(600 B)
π
wanrouter.h
(390 B)
π
watchdog.h
(2.22 KB)
π
wimax
π
wimax.h
(8.17 KB)
π
wireless.h
(41.65 KB)
π
wmi.h
(1.84 KB)
π
x25.h
(3.42 KB)
π
xattr.h
(2.53 KB)
π
xfrm.h
(11 KB)
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 */
Upload File
Create Folder