X7ROOT File Manager
Current Path:
/usr/include/linux
usr
/
include
/
linux
/
📁
..
📄
a.out.h
(6.73 KB)
📄
acct.h
(3.82 KB)
📄
acrn.h
(16.29 KB)
📄
adb.h
(1.11 KB)
📄
adfs_fs.h
(993 B)
📄
affs_hardblocks.h
(1.54 KB)
📄
agpgart.h
(3.85 KB)
📄
aio_abi.h
(3.32 KB)
📄
am437x-vpfe.h
(3.59 KB)
📁
android
📄
apm_bios.h
(3.6 KB)
📄
arcfb.h
(213 B)
📄
arm_sdei.h
(2.69 KB)
📄
aspeed-lpc-ctrl.h
(1.74 KB)
📄
aspeed-p2a-ctrl.h
(1.86 KB)
📄
atalk.h
(1023 B)
📄
atm.h
(7.7 KB)
📄
atm_eni.h
(648 B)
📄
atm_he.h
(406 B)
📄
atm_idt77105.h
(955 B)
📄
atm_nicstar.h
(1.25 KB)
📄
atm_tcp.h
(1.58 KB)
📄
atm_zatm.h
(1.5 KB)
📄
atmapi.h
(952 B)
📄
atmarp.h
(1.27 KB)
📄
atmbr2684.h
(3.19 KB)
📄
atmclip.h
(576 B)
📄
atmdev.h
(7.5 KB)
📄
atmioc.h
(1.61 KB)
📄
atmlec.h
(2.33 KB)
📄
atmmpc.h
(4.13 KB)
📄
atmppp.h
(639 B)
📄
atmsap.h
(4.85 KB)
📄
atmsvc.h
(1.81 KB)
📄
audit.h
(21.06 KB)
📄
auto_dev-ioctl.h
(4.87 KB)
📄
auto_fs.h
(6.28 KB)
📄
auto_fs4.h
(451 B)
📄
auxvec.h
(1.56 KB)
📄
ax25.h
(2.76 KB)
📄
batadv_packet.h
(19.87 KB)
📄
batman_adv.h
(16.49 KB)
📄
baycom.h
(883 B)
📄
bcm933xx_hcs.h
(419 B)
📄
bfs_fs.h
(1.86 KB)
📄
binfmts.h
(776 B)
📄
bits.h
(447 B)
📄
blkpg.h
(904 B)
📄
blktrace_api.h
(4.59 KB)
📄
blkzoned.h
(6.34 KB)
📄
bpf.h
(272.11 KB)
📄
bpf_common.h
(1.33 KB)
📄
bpf_perf_event.h
(529 B)
📄
bpfilter.h
(465 B)
📄
bpqether.h
(981 B)
📄
bsg.h
(2.44 KB)
📄
bt-bmc.h
(572 B)
📄
btf.h
(5.46 KB)
📄
btrfs.h
(29.85 KB)
📄
btrfs_tree.h
(25.22 KB)
📁
byteorder
📄
cachefiles.h
(1.61 KB)
📁
caif
📁
can
📄
can.h
(11.23 KB)
📄
capability.h
(13.17 KB)
📄
capi.h
(3.05 KB)
📄
cciss_defs.h
(3.2 KB)
📄
cciss_ioctl.h
(2.7 KB)
📄
ccs.h
(767 B)
📄
cdrom.h
(28.87 KB)
📄
cec-funcs.h
(53.14 KB)
📄
cec.h
(40.47 KB)
📄
cfm_bridge.h
(1.42 KB)
📄
cgroupstats.h
(2.17 KB)
📄
chio.h
(5.16 KB)
📁
cifs
📄
close_range.h
(377 B)
📄
cm4000_cs.h
(1.76 KB)
📄
cn_proc.h
(4.05 KB)
📄
coda.h
(17.79 KB)
📄
coff.h
(12.25 KB)
📄
connector.h
(2.2 KB)
📄
const.h
(987 B)
📄
coresight-stm.h
(747 B)
📄
cramfs_fs.h
(3.47 KB)
📄
cryptouser.h
(5.2 KB)
📄
cuda.h
(905 B)
📄
cxl_mem.h
(7.73 KB)
📄
cycx_cfm.h
(2.92 KB)
📄
dcbnl.h
(24.7 KB)
📄
dccp.h
(6.29 KB)
📄
devlink.h
(22.77 KB)
📄
dlm.h
(2.49 KB)
📄
dlm_device.h
(2.48 KB)
📄
dlm_netlink.h
(1.13 KB)
📄
dlm_plock.h
(894 B)
📄
dlmconstants.h
(4.96 KB)
📄
dm-ioctl.h
(11.48 KB)
📄
dm-log-userspace.h
(14.83 KB)
📄
dma-buf.h
(5.12 KB)
📄
dma-heap.h
(1.36 KB)
📄
dn.h
(4.53 KB)
📄
dns_resolver.h
(3.86 KB)
📄
dpll.h
(8.56 KB)
📄
dqblk_xfs.h
(9.17 KB)
📁
dvb
📄
edd.h
(5.47 KB)
📄
efs_fs_sb.h
(2.17 KB)
📄
elf-em.h
(2.57 KB)
📄
elf-fdpic.h
(1.1 KB)
📄
elf.h
(14.69 KB)
📄
errno.h
(23 B)
📄
errqueue.h
(1.94 KB)
📄
erspan.h
(1.03 KB)
📄
ethtool.h
(101.42 KB)
📄
ethtool_netlink.h
(6.17 KB)
📄
ethtool_netlink_generated.h
(19.17 KB)
📄
eventfd.h
(264 B)
📄
eventpoll.h
(2.84 KB)
📄
f2fs.h
(3.22 KB)
📄
fadvise.h
(842 B)
📄
falloc.h
(3.56 KB)
📄
fanotify.h
(7.7 KB)
📄
fb.h
(16.09 KB)
📄
fcntl.h
(4.22 KB)
📄
fd.h
(11.83 KB)
📄
fdreg.h
(5.24 KB)
📄
fib_rules.h
(1.99 KB)
📄
fiemap.h
(2.71 KB)
📄
filter.h
(2.16 KB)
📄
firewire-cdev.h
(43.2 KB)
📄
firewire-constants.h
(3.16 KB)
📄
fou.h
(819 B)
📄
fpga-dfl.h
(8.52 KB)
📄
fs.h
(12.88 KB)
📄
fscrypt.h
(6.41 KB)
📄
fsi.h
(2.2 KB)
📄
fsl_hypervisor.h
(7.13 KB)
📄
fsl_mc.h
(734 B)
📄
fsmap.h
(4.29 KB)
📄
fsverity.h
(3.11 KB)
📄
fuse.h
(25.36 KB)
📄
futex.h
(5.98 KB)
📄
gameport.h
(897 B)
📄
gen_stats.h
(1.49 KB)
📄
genetlink.h
(2.19 KB)
📁
genwqe
📄
gfs2_ondisk.h
(14.43 KB)
📄
gpio.h
(19.46 KB)
📄
gsmmux.h
(4.4 KB)
📄
gtp.h
(734 B)
📄
handshake.h
(1.61 KB)
📄
hash_info.h
(971 B)
📁
hdlc
📄
hdlc.h
(637 B)
📄
hdlcdrv.h
(2.84 KB)
📄
hdreg.h
(22.17 KB)
📄
hid.h
(2.04 KB)
📄
hiddev.h
(6.2 KB)
📄
hidraw.h
(1.95 KB)
📄
hpet.h
(743 B)
📁
hsi
📄
hsr_netlink.h
(1.08 KB)
📄
hw_breakpoint.h
(742 B)
📄
hyperv.h
(10.89 KB)
📄
i2c-dev.h
(1.83 KB)
📄
i2c.h
(6.73 KB)
📄
i2o-dev.h
(11.28 KB)
📄
i8k.h
(1.49 KB)
📄
icmp.h
(4.67 KB)
📄
icmpv6.h
(4.2 KB)
📄
idxd.h
(9.11 KB)
📄
if.h
(10.67 KB)
📄
if_addr.h
(1.84 KB)
📄
if_addrlabel.h
(721 B)
📄
if_alg.h
(1.53 KB)
📄
if_arcnet.h
(3.63 KB)
📄
if_arp.h
(6.41 KB)
📄
if_bonding.h
(5.02 KB)
📄
if_bridge.h
(20.27 KB)
📄
if_cablemodem.h
(986 B)
📄
if_eql.h
(1.32 KB)
📄
if_ether.h
(8.21 KB)
📄
if_fc.h
(1.7 KB)
📄
if_fddi.h
(4.27 KB)
📄
if_hippi.h
(4.14 KB)
📄
if_infiniband.h
(1.22 KB)
📄
if_link.h
(52.92 KB)
📄
if_ltalk.h
(210 B)
📄
if_macsec.h
(6.35 KB)
📄
if_packet.h
(7.99 KB)
📄
if_phonet.h
(424 B)
📄
if_plip.h
(660 B)
📄
if_ppp.h
(29 B)
📄
if_pppol2tp.h
(3.23 KB)
📄
if_pppox.h
(4.76 KB)
📄
if_slip.h
(872 B)
📄
if_team.h
(2.54 KB)
📄
if_tun.h
(4 KB)
📄
if_tunnel.h
(5.36 KB)
📄
if_vlan.h
(1.79 KB)
📄
if_x25.h
(881 B)
📄
if_xdp.h
(5.29 KB)
📄
ife.h
(351 B)
📄
igmp.h
(2.99 KB)
📁
iio
📄
ila.h
(1.22 KB)
📄
in.h
(10.24 KB)
📄
in6.h
(7.36 KB)
📄
in_route.h
(936 B)
📄
inet_diag.h
(4.9 KB)
📄
inotify.h
(3.21 KB)
📄
input-event-codes.h
(29.5 KB)
📄
input.h
(15.84 KB)
📄
io_uring.h
(20.4 KB)
📄
ioctl.h
(163 B)
📄
iommufd.h
(36.45 KB)
📄
ioprio.h
(4.08 KB)
📄
ip.h
(4.7 KB)
📄
ip6_tunnel.h
(1.91 KB)
📄
ip_vs.h
(13.8 KB)
📄
ipc.h
(2.05 KB)
📄
ipmi.h
(15.08 KB)
📄
ipmi_bmc.h
(488 B)
📄
ipmi_msgdefs.h
(3.35 KB)
📄
ipmi_ssif_bmc.h
(441 B)
📄
ipsec.h
(947 B)
📄
ipv6.h
(4.07 KB)
📄
ipv6_route.h
(1.86 KB)
📄
ipx.h
(2.29 KB)
📄
irqnr.h
(104 B)
📁
isdn
📄
iso_fs.h
(6.33 KB)
📄
isst_if.h
(14.92 KB)
📄
ivtv.h
(2.95 KB)
📄
ivtvfb.h
(1.18 KB)
📄
jffs2.h
(6.66 KB)
📄
joystick.h
(3.35 KB)
📄
kcm.h
(822 B)
📄
kcmp.h
(522 B)
📄
kcov.h
(1.92 KB)
📄
kd.h
(6.3 KB)
📄
kdev_t.h
(383 B)
📄
kernel-page-flags.h
(900 B)
📄
kernel.h
(194 B)
📄
kernelcapi.h
(1019 B)
📄
kexec.h
(2.05 KB)
📄
keyboard.h
(13.14 KB)
📄
keyctl.h
(5.86 KB)
📄
kfd_ioctl.h
(57.06 KB)
📄
kfd_sysfs.h
(5.25 KB)
📄
kvm.h
(47.24 KB)
📄
kvm_para.h
(1001 B)
📄
l2tp.h
(5.61 KB)
📄
landlock.h
(11.55 KB)
📄
libc-compat.h
(8.09 KB)
📄
limits.h
(937 B)
📄
lirc.h
(7.95 KB)
📄
llc.h
(3.09 KB)
📄
loadpin.h
(834 B)
📄
loop.h
(3.32 KB)
📄
lp.h
(4.09 KB)
📄
lsm.h
(1.51 KB)
📄
lwtunnel.h
(2.31 KB)
📄
magic.h
(3.73 KB)
📄
major.h
(4.55 KB)
📄
map_to_7segment.h
(6.45 KB)
📄
matroxfb.h
(1.43 KB)
📄
max2175.h
(1.01 KB)
📄
mdio.h
(23.78 KB)
📄
media-bus-format.h
(6.75 KB)
📄
media.h
(12.46 KB)
📄
mei.h
(3.4 KB)
📄
mei_uuid.h
(738 B)
📄
membarrier.h
(9.14 KB)
📄
memfd.h
(1.43 KB)
📄
mempolicy.h
(2.51 KB)
📄
meye.h
(2.47 KB)
📄
mii.h
(9.27 KB)
📄
minix_fs.h
(2.07 KB)
📁
misc
📄
mman.h
(1.75 KB)
📁
mmc
📄
mmtimer.h
(2.07 KB)
📄
module.h
(293 B)
📄
mount.h
(4.9 KB)
📄
mpls.h
(2.25 KB)
📄
mpls_iptunnel.h
(761 B)
📄
mptcp.h
(3.67 KB)
📄
mptcp_pm.h
(4.3 KB)
📄
mqueue.h
(2.15 KB)
📄
mroute.h
(5.78 KB)
📄
mroute6.h
(4.81 KB)
📄
mrp_bridge.h
(1.67 KB)
📄
msdos_fs.h
(6.57 KB)
📄
msg.h
(3.31 KB)
📄
mshv.h
(7.93 KB)
📄
mtio.h
(7.98 KB)
📄
nbd-netlink.h
(2.35 KB)
📄
nbd.h
(3.77 KB)
📄
ncsi.h
(4.71 KB)
📄
ndctl.h
(6.67 KB)
📄
neighbour.h
(5.91 KB)
📄
net.h
(2.04 KB)
📄
net_dropmon.h
(2.85 KB)
📄
net_namespace.h
(715 B)
📄
net_shaper.h
(2.52 KB)
📄
net_tstamp.h
(6.3 KB)
📄
netconf.h
(614 B)
📄
netdev.h
(5.65 KB)
📄
netdevice.h
(2.2 KB)
📁
netfilter
📄
netfilter.h
(1.69 KB)
📁
netfilter_arp
📄
netfilter_arp.h
(445 B)
📁
netfilter_bridge
📄
netfilter_bridge.h
(1.14 KB)
📄
netfilter_decnet.h
(1.72 KB)
📁
netfilter_ipv4
📄
netfilter_ipv4.h
(1.45 KB)
📁
netfilter_ipv6
📄
netfilter_ipv6.h
(1.35 KB)
📄
netlink.h
(12.09 KB)
📄
netlink_diag.h
(1.49 KB)
📄
netrom.h
(807 B)
📄
nexthop.h
(3.97 KB)
📄
nfc.h
(10.95 KB)
📄
nfs.h
(4.36 KB)
📄
nfs2.h
(1.43 KB)
📄
nfs3.h
(2.4 KB)
📄
nfs4.h
(6.54 KB)
📄
nfs4_mount.h
(1.89 KB)
📄
nfs_fs.h
(1.62 KB)
📄
nfs_idmap.h
(2.19 KB)
📄
nfs_mount.h
(2.09 KB)
📄
nfsacl.h
(718 B)
📁
nfsd
📄
nfsd_netlink.h
(1.95 KB)
📄
nilfs2_api.h
(7.41 KB)
📄
nilfs2_ondisk.h
(17.66 KB)
📄
nitro_enclaves.h
(12.85 KB)
📄
nl80211.h
(341.33 KB)
📄
nsfs.h
(639 B)
📄
nubus.h
(8 KB)
📄
nvme_ioctl.h
(2.43 KB)
📄
nvram.h
(532 B)
📄
omap3isp.h
(20.36 KB)
📄
omapfb.h
(5.78 KB)
📄
oom.h
(511 B)
📄
openat2.h
(1.42 KB)
📄
openvswitch.h
(40.75 KB)
📄
packet_diag.h
(1.63 KB)
📄
param.h
(141 B)
📄
parport.h
(3.56 KB)
📄
patchkey.h
(892 B)
📄
pci.h
(1.35 KB)
📄
pci_regs.h
(61.89 KB)
📄
pcitest.h
(920 B)
📄
perf_event.h
(42.68 KB)
📄
personality.h
(2.05 KB)
📄
pfkeyv2.h
(10.32 KB)
📄
pfrut.h
(7.8 KB)
📄
pg.h
(2.34 KB)
📄
phantom.h
(1.62 KB)
📄
phonet.h
(4.57 KB)
📄
pidfd.h
(256 B)
📄
pkt_cls.h
(18.65 KB)
📄
pkt_sched.h
(28.75 KB)
📄
pktcdvd.h
(2.63 KB)
📄
pmu.h
(5.32 KB)
📄
poll.h
(22 B)
📄
posix_acl.h
(1.22 KB)
📄
posix_acl_xattr.h
(1.09 KB)
📄
posix_types.h
(1.07 KB)
📄
ppdev.h
(3.21 KB)
📄
ppp-comp.h
(2.47 KB)
📄
ppp-ioctl.h
(5.59 KB)
📄
ppp_defs.h
(5.43 KB)
📄
pps.h
(4.62 KB)
📄
pr.h
(1.59 KB)
📄
prctl.h
(10.81 KB)
📄
psample.h
(2.57 KB)
📄
psci.h
(5.21 KB)
📄
psp-dbc.h
(5.16 KB)
📄
psp-sev.h
(7.59 KB)
📄
ptp_clock.h
(7.35 KB)
📄
ptrace.h
(4.29 KB)
📄
qemu_fw_cfg.h
(2.41 KB)
📄
qnx4_fs.h
(2.27 KB)
📄
qnxtypes.h
(624 B)
📄
qrtr.h
(893 B)
📄
quota.h
(6.16 KB)
📄
radeonfb.h
(360 B)
📁
raid
📄
random.h
(1.38 KB)
📄
rds.h
(10.91 KB)
📄
reboot.h
(1.31 KB)
📄
reiserfs_fs.h
(775 B)
📄
reiserfs_xattr.h
(533 B)
📄
remoteproc_cdev.h
(1.08 KB)
📄
resource.h
(2.32 KB)
📄
rfkill.h
(6.45 KB)
📄
rio_cm_cdev.h
(3.17 KB)
📄
rio_mport_cdev.h
(9.11 KB)
📄
rkisp1-config.h
(30.63 KB)
📄
romfs_fs.h
(1.21 KB)
📄
rose.h
(2.18 KB)
📄
route.h
(2.28 KB)
📄
rpl.h
(814 B)
📄
rpl_iptunnel.h
(424 B)
📄
rpmsg.h
(1.03 KB)
📄
rpmsg_types.h
(288 B)
📄
rseq.h
(4.79 KB)
📄
rtc.h
(5.19 KB)
📄
rtnetlink.h
(20.8 KB)
📄
rxrpc.h
(4.81 KB)
📄
scc.h
(4.52 KB)
📁
sched
📄
sched.h
(6.12 KB)
📄
scif_ioctl.h
(6.23 KB)
📄
screen_info.h
(2.42 KB)
📄
sctp.h
(35.18 KB)
📄
seccomp.h
(5.6 KB)
📄
securebits.h
(2.64 KB)
📄
sed-opal.h
(5.29 KB)
📄
seg6.h
(1.14 KB)
📄
seg6_genl.h
(589 B)
📄
seg6_hmac.h
(423 B)
📄
seg6_iptunnel.h
(984 B)
📄
seg6_local.h
(3.78 KB)
📄
selinux_netlink.h
(1.17 KB)
📄
sem.h
(2.98 KB)
📄
serial.h
(4.9 KB)
📄
serial_core.h
(4.93 KB)
📄
serial_reg.h
(15.65 KB)
📄
serio.h
(2.09 KB)
📄
sev-guest.h
(2.47 KB)
📄
shm.h
(3.71 KB)
📄
signal.h
(388 B)
📄
signalfd.h
(1.2 KB)
📄
smc.h
(8.46 KB)
📄
smc_diag.h
(2.88 KB)
📄
smiapp.h
(1.03 KB)
📄
snmp.h
(14.01 KB)
📄
sock_diag.h
(1.27 KB)
📄
socket.h
(919 B)
📄
sockios.h
(6.69 KB)
📄
sonet.h
(2.24 KB)
📄
sonypi.h
(5.18 KB)
📄
sound.h
(1.21 KB)
📄
soundcard.h
(44.96 KB)
📁
spi
📄
stat.h
(7.23 KB)
📄
stddef.h
(1.69 KB)
📄
stm.h
(1.25 KB)
📄
string.h
(238 B)
📁
sunrpc
📁
surface_aggregator
📄
suspend_ioctls.h
(1.4 KB)
📄
swab.h
(6.76 KB)
📄
switchtec_ioctl.h
(5.14 KB)
📄
sync_file.h
(3.49 KB)
📄
synclink.h
(8.77 KB)
📄
sysctl.h
(25.3 KB)
📄
sysinfo.h
(1.02 KB)
📄
target_core_user.h
(4.52 KB)
📄
taskstats.h
(8.13 KB)
📁
tc_act
📁
tc_ematch
📄
tcp.h
(11.65 KB)
📄
tcp_metrics.h
(1.94 KB)
📄
tdx-guest.h
(1.27 KB)
📄
tee.h
(13.09 KB)
📄
termios.h
(172 B)
📄
thermal.h
(3.23 KB)
📄
time.h
(1.71 KB)
📄
time_types.h
(1.24 KB)
📄
timerfd.h
(936 B)
📄
times.h
(278 B)
📄
timex.h
(7.63 KB)
📄
tiocl.h
(1.69 KB)
📄
tipc.h
(8.62 KB)
📄
tipc_config.h
(14.52 KB)
📄
tipc_netlink.h
(9.17 KB)
📄
tipc_sockets_diag.h
(468 B)
📄
tls.h
(7.06 KB)
📄
toshiba.h
(1.88 KB)
📄
tps6594_pfsm.h
(1.13 KB)
📄
tty.h
(1.55 KB)
📄
tty_flags.h
(4.4 KB)
📄
types.h
(1.6 KB)
📄
udf_fs_i.h
(697 B)
📄
udmabuf.h
(643 B)
📄
udp.h
(1.65 KB)
📄
uhid.h
(4.54 KB)
📄
uinput.h
(9.04 KB)
📄
uio.h
(732 B)
📄
uleds.h
(798 B)
📄
ultrasound.h
(4.46 KB)
📄
um_timetravel.h
(3.87 KB)
📄
un.h
(384 B)
📄
unistd.h
(220 B)
📄
unix_diag.h
(1.3 KB)
📁
usb
📄
usbdevice_fs.h
(8.12 KB)
📄
usbip.h
(1.47 KB)
📄
userfaultfd.h
(10.68 KB)
📄
userio.h
(1.48 KB)
📄
utime.h
(223 B)
📄
utsname.h
(669 B)
📄
uuid.h
(28 B)
📄
uvcvideo.h
(2.57 KB)
📄
v4l2-common.h
(2.01 KB)
📄
v4l2-controls.h
(94.59 KB)
📄
v4l2-dv-timings.h
(30.39 KB)
📄
v4l2-mediabus.h
(5.3 KB)
📄
v4l2-subdev.h
(9.76 KB)
📄
vbox_err.h
(7.09 KB)
📄
vbox_vmmdev_types.h
(11.38 KB)
📄
vboxguest.h
(9.15 KB)
📄
vdpa.h
(1.74 KB)
📄
vduse.h
(9.58 KB)
📄
version.h
(374 B)
📄
veth.h
(224 B)
📄
vfio.h
(70.13 KB)
📄
vfio_ccw.h
(1.29 KB)
📄
vfio_zdev.h
(2.48 KB)
📄
vhost.h
(8.24 KB)
📄
vhost_types.h
(4.77 KB)
📄
videodev2.h
(99.3 KB)
📄
virtio_9p.h
(2 KB)
📄
virtio_balloon.h
(5.16 KB)
📄
virtio_blk.h
(9.75 KB)
📄
virtio_bt.h
(910 B)
📄
virtio_config.h
(4.36 KB)
📄
virtio_console.h
(3.08 KB)
📄
virtio_crypto.h
(13.56 KB)
📄
virtio_fs.h
(573 B)
📄
virtio_gpio.h
(1.7 KB)
📄
virtio_gpu.h
(11.28 KB)
📄
virtio_i2c.h
(1.16 KB)
📄
virtio_ids.h
(3.7 KB)
📄
virtio_input.h
(2.46 KB)
📄
virtio_iommu.h
(3.84 KB)
📄
virtio_mem.h
(6.99 KB)
📄
virtio_mmio.h
(4.85 KB)
📄
virtio_net.h
(14.72 KB)
📄
virtio_pci.h
(7.3 KB)
📄
virtio_pcidev.h
(2.33 KB)
📄
virtio_pmem.h
(641 B)
📄
virtio_ring.h
(8.52 KB)
📄
virtio_rng.h
(265 B)
📄
virtio_scmi.h
(637 B)
📄
virtio_scsi.h
(5.94 KB)
📄
virtio_snd.h
(12.86 KB)
📄
virtio_types.h
(2.1 KB)
📄
virtio_vsock.h
(3.27 KB)
📄
vm_sockets.h
(7.18 KB)
📄
vm_sockets_diag.h
(963 B)
📄
vmcore.h
(455 B)
📄
vsockmon.h
(1.84 KB)
📄
vt.h
(2.99 KB)
📄
vtpm_proxy.h
(1.68 KB)
📄
wait.h
(682 B)
📄
watch_queue.h
(3.41 KB)
📄
watchdog.h
(2.28 KB)
📄
wireguard.h
(7.57 KB)
📄
wireless.h
(41.7 KB)
📄
wmi.h
(1.72 KB)
📄
wwan.h
(295 B)
📄
x25.h
(3.48 KB)
📄
xattr.h
(2.95 KB)
📄
xdp_diag.h
(1.43 KB)
📄
xfrm.h
(12.33 KB)
📄
xilinx-v4l2-controls.h
(2.91 KB)
📄
zorro.h
(3.22 KB)
📄
zorro_ids.h
(29.26 KB)
Editing: rkisp1-config.h
/* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR MIT) */ /* * Rockchip ISP1 userspace API * Copyright (C) 2017 Rockchip Electronics Co., Ltd. */ #ifndef _RKISP1_CONFIG_H #define _RKISP1_CONFIG_H #include <linux/types.h> /* Defect Pixel Cluster Detection */ #define RKISP1_CIF_ISP_MODULE_DPCC (1U << 0) /* Black Level Subtraction */ #define RKISP1_CIF_ISP_MODULE_BLS (1U << 1) /* Sensor De-gamma */ #define RKISP1_CIF_ISP_MODULE_SDG (1U << 2) /* Histogram statistics configuration */ #define RKISP1_CIF_ISP_MODULE_HST (1U << 3) /* Lens Shade Control */ #define RKISP1_CIF_ISP_MODULE_LSC (1U << 4) /* Auto White Balance Gain */ #define RKISP1_CIF_ISP_MODULE_AWB_GAIN (1U << 5) /* Filter */ #define RKISP1_CIF_ISP_MODULE_FLT (1U << 6) /* Bayer Demosaic */ #define RKISP1_CIF_ISP_MODULE_BDM (1U << 7) /* Cross Talk */ #define RKISP1_CIF_ISP_MODULE_CTK (1U << 8) /* Gamma Out Curve */ #define RKISP1_CIF_ISP_MODULE_GOC (1U << 9) /* Color Processing */ #define RKISP1_CIF_ISP_MODULE_CPROC (1U << 10) /* Auto Focus Control statistics configuration */ #define RKISP1_CIF_ISP_MODULE_AFC (1U << 11) /* Auto White Balancing statistics configuration */ #define RKISP1_CIF_ISP_MODULE_AWB (1U << 12) /* Image Effect */ #define RKISP1_CIF_ISP_MODULE_IE (1U << 13) /* Auto Exposure Control statistics configuration */ #define RKISP1_CIF_ISP_MODULE_AEC (1U << 14) /* Wide Dynamic Range */ #define RKISP1_CIF_ISP_MODULE_WDR (1U << 15) /* Denoise Pre-Filter */ #define RKISP1_CIF_ISP_MODULE_DPF (1U << 16) /* Denoise Pre-Filter Strength */ #define RKISP1_CIF_ISP_MODULE_DPF_STRENGTH (1U << 17) #define RKISP1_CIF_ISP_CTK_COEFF_MAX 0x100 #define RKISP1_CIF_ISP_CTK_OFFSET_MAX 0x800 #define RKISP1_CIF_ISP_AE_MEAN_MAX_V10 25 #define RKISP1_CIF_ISP_AE_MEAN_MAX_V12 81 #define RKISP1_CIF_ISP_AE_MEAN_MAX RKISP1_CIF_ISP_AE_MEAN_MAX_V12 #define RKISP1_CIF_ISP_HIST_BIN_N_MAX_V10 16 #define RKISP1_CIF_ISP_HIST_BIN_N_MAX_V12 32 #define RKISP1_CIF_ISP_HIST_BIN_N_MAX RKISP1_CIF_ISP_HIST_BIN_N_MAX_V12 #define RKISP1_CIF_ISP_AFM_MAX_WINDOWS 3 #define RKISP1_CIF_ISP_DEGAMMA_CURVE_SIZE 17 #define RKISP1_CIF_ISP_BDM_MAX_TH 0xff /* * Black level compensation */ /* maximum value for horizontal start address */ #define RKISP1_CIF_ISP_BLS_START_H_MAX 0x00000fff /* maximum value for horizontal stop address */ #define RKISP1_CIF_ISP_BLS_STOP_H_MAX 0x00000fff /* maximum value for vertical start address */ #define RKISP1_CIF_ISP_BLS_START_V_MAX 0x00000fff /* maximum value for vertical stop address */ #define RKISP1_CIF_ISP_BLS_STOP_V_MAX 0x00000fff /* maximum is 2^18 = 262144*/ #define RKISP1_CIF_ISP_BLS_SAMPLES_MAX 0x00000012 /* maximum value for fixed black level */ #define RKISP1_CIF_ISP_BLS_FIX_SUB_MAX 0x00000fff /* minimum value for fixed black level */ #define RKISP1_CIF_ISP_BLS_FIX_SUB_MIN 0xfffff000 /* 13 bit range (signed)*/ #define RKISP1_CIF_ISP_BLS_FIX_MASK 0x00001fff /* * Automatic white balance measurements */ #define RKISP1_CIF_ISP_AWB_MAX_GRID 1 #define RKISP1_CIF_ISP_AWB_MAX_FRAMES 7 /* * Gamma out */ /* Maximum number of color samples supported */ #define RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES_V10 17 #define RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES_V12 34 #define RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES_V12 /* * Lens shade correction */ #define RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE 8 /* * The following matches the tuning process, * not the max capabilities of the chip. */ #define RKISP1_CIF_ISP_LSC_SAMPLES_MAX 17 /* * Histogram calculation */ #define RKISP1_CIF_ISP_HISTOGRAM_WEIGHT_GRIDS_SIZE_V10 25 #define RKISP1_CIF_ISP_HISTOGRAM_WEIGHT_GRIDS_SIZE_V12 81 #define RKISP1_CIF_ISP_HISTOGRAM_WEIGHT_GRIDS_SIZE RKISP1_CIF_ISP_HISTOGRAM_WEIGHT_GRIDS_SIZE_V12 /* * Defect Pixel Cluster Correction */ #define RKISP1_CIF_ISP_DPCC_METHODS_MAX 3 /* * Denoising pre filter */ #define RKISP1_CIF_ISP_DPF_MAX_NLF_COEFFS 17 #define RKISP1_CIF_ISP_DPF_MAX_SPATIAL_COEFFS 6 /* * Measurement types */ #define RKISP1_CIF_ISP_STAT_AWB (1U << 0) #define RKISP1_CIF_ISP_STAT_AUTOEXP (1U << 1) #define RKISP1_CIF_ISP_STAT_AFM (1U << 2) #define RKISP1_CIF_ISP_STAT_HIST (1U << 3) /** * enum rkisp1_cif_isp_version - ISP variants * * @RKISP1_V10: used at least in rk3288 and rk3399 * @RKISP1_V11: declared in the original vendor code, but not used * @RKISP1_V12: used at least in rk3326 and px30 * @RKISP1_V13: used at least in rk1808 */ enum rkisp1_cif_isp_version { RKISP1_V10 = 10, RKISP1_V11, RKISP1_V12, RKISP1_V13, }; enum rkisp1_cif_isp_histogram_mode { RKISP1_CIF_ISP_HISTOGRAM_MODE_DISABLE, RKISP1_CIF_ISP_HISTOGRAM_MODE_RGB_COMBINED, RKISP1_CIF_ISP_HISTOGRAM_MODE_R_HISTOGRAM, RKISP1_CIF_ISP_HISTOGRAM_MODE_G_HISTOGRAM, RKISP1_CIF_ISP_HISTOGRAM_MODE_B_HISTOGRAM, RKISP1_CIF_ISP_HISTOGRAM_MODE_Y_HISTOGRAM }; enum rkisp1_cif_isp_awb_mode_type { RKISP1_CIF_ISP_AWB_MODE_MANUAL, RKISP1_CIF_ISP_AWB_MODE_RGB, RKISP1_CIF_ISP_AWB_MODE_YCBCR }; enum rkisp1_cif_isp_flt_mode { RKISP1_CIF_ISP_FLT_STATIC_MODE, RKISP1_CIF_ISP_FLT_DYNAMIC_MODE }; /** * enum rkisp1_cif_isp_exp_ctrl_autostop - stop modes * @RKISP1_CIF_ISP_EXP_CTRL_AUTOSTOP_0: continuous measurement * @RKISP1_CIF_ISP_EXP_CTRL_AUTOSTOP_1: stop measuring after a complete frame */ enum rkisp1_cif_isp_exp_ctrl_autostop { RKISP1_CIF_ISP_EXP_CTRL_AUTOSTOP_0 = 0, RKISP1_CIF_ISP_EXP_CTRL_AUTOSTOP_1 = 1, }; /** * enum rkisp1_cif_isp_exp_meas_mode - Exposure measure mode * @RKISP1_CIF_ISP_EXP_MEASURING_MODE_0: Y = 16 + 0.25R + 0.5G + 0.1094B * @RKISP1_CIF_ISP_EXP_MEASURING_MODE_1: Y = (R + G + B) x (85/256) */ enum rkisp1_cif_isp_exp_meas_mode { RKISP1_CIF_ISP_EXP_MEASURING_MODE_0, RKISP1_CIF_ISP_EXP_MEASURING_MODE_1, }; /*---------- PART1: Input Parameters ------------*/ /** * struct rkisp1_cif_isp_window - measurement window. * * Measurements are calculated per window inside the frame. * This struct represents a window for a measurement. * * @h_offs: the horizontal offset of the window from the left of the frame in pixels. * @v_offs: the vertical offset of the window from the top of the frame in pixels. * @h_size: the horizontal size of the window in pixels * @v_size: the vertical size of the window in pixels. */ struct rkisp1_cif_isp_window { __u16 h_offs; __u16 v_offs; __u16 h_size; __u16 v_size; }; /** * struct rkisp1_cif_isp_bls_fixed_val - BLS fixed subtraction values * * The values will be subtracted from the sensor * values. Therefore a negative value means addition instead of subtraction! * * @r: Fixed (signed!) subtraction value for Bayer pattern R * @gr: Fixed (signed!) subtraction value for Bayer pattern Gr * @gb: Fixed (signed!) subtraction value for Bayer pattern Gb * @b: Fixed (signed!) subtraction value for Bayer pattern B */ struct rkisp1_cif_isp_bls_fixed_val { __s16 r; __s16 gr; __s16 gb; __s16 b; }; /** * struct rkisp1_cif_isp_bls_config - Configuration used by black level subtraction * * @enable_auto: Automatic mode activated means that the measured values * are subtracted. Otherwise the fixed subtraction * values will be subtracted. * @en_windows: enabled window * @bls_window1: Measurement window 1 size * @bls_window2: Measurement window 2 size * @bls_samples: Set amount of measured pixels for each Bayer position * (A, B,C and D) to 2^bls_samples. * @fixed_val: Fixed subtraction values */ struct rkisp1_cif_isp_bls_config { __u8 enable_auto; __u8 en_windows; struct rkisp1_cif_isp_window bls_window1; struct rkisp1_cif_isp_window bls_window2; __u8 bls_samples; struct rkisp1_cif_isp_bls_fixed_val fixed_val; }; /** * struct rkisp1_cif_isp_dpcc_methods_config - Methods Configuration used by DPCC * * Methods Configuration used by Defect Pixel Cluster Correction * * @method: Method enable bits * @line_thresh: Line threshold * @line_mad_fac: Line MAD factor * @pg_fac: Peak gradient factor * @rnd_thresh: Rank Neighbor Difference threshold * @rg_fac: Rank gradient factor */ struct rkisp1_cif_isp_dpcc_methods_config { __u32 method; __u32 line_thresh; __u32 line_mad_fac; __u32 pg_fac; __u32 rnd_thresh; __u32 rg_fac; }; /** * struct rkisp1_cif_isp_dpcc_config - Configuration used by DPCC * * Configuration used by Defect Pixel Cluster Correction * * @mode: dpcc output mode * @output_mode: whether use hard coded methods * @set_use: stage1 methods set * @methods: methods config * @ro_limits: rank order limits * @rnd_offs: differential rank offsets for rank neighbor difference */ struct rkisp1_cif_isp_dpcc_config { __u32 mode; __u32 output_mode; __u32 set_use; struct rkisp1_cif_isp_dpcc_methods_config methods[RKISP1_CIF_ISP_DPCC_METHODS_MAX]; __u32 ro_limits; __u32 rnd_offs; }; /** * struct rkisp1_cif_isp_gamma_corr_curve - gamma curve point definition y-axis (output). * * The reset values define a linear curve which has the same effect as bypass. Reset values are: * gamma_y[0] = 0x0000, gamma_y[1] = 0x0100, ... gamma_y[15] = 0x0f00, gamma_y[16] = 0xfff * * @gamma_y: the values for the y-axis of gamma curve points. Each value is 12 bit. */ struct rkisp1_cif_isp_gamma_corr_curve { __u16 gamma_y[RKISP1_CIF_ISP_DEGAMMA_CURVE_SIZE]; }; /** * struct rkisp1_cif_isp_gamma_curve_x_axis_pnts - De-Gamma Curve definition x increments * (sampling points). gamma_dx0 is for the lower samples (1-8), gamma_dx1 is for the * higher samples (9-16). The reset values for both fields is 0x44444444. This means * that each sample is 4 units away from the previous one on the x-axis. * * @gamma_dx0: gamma curve sample points definitions. Bits 0:2 for sample 1. Bit 3 unused. * Bits 4:6 for sample 2. bit 7 unused ... Bits 28:30 for sample 8. Bit 31 unused * @gamma_dx1: gamma curve sample points definitions. Bits 0:2 for sample 9. Bit 3 unused. * Bits 4:6 for sample 10. bit 7 unused ... Bits 28:30 for sample 16. Bit 31 unused */ struct rkisp1_cif_isp_gamma_curve_x_axis_pnts { __u32 gamma_dx0; __u32 gamma_dx1; }; /** * struct rkisp1_cif_isp_sdg_config - Configuration used by sensor degamma * * @curve_r: gamma curve point definition axis for red * @curve_g: gamma curve point definition axis for green * @curve_b: gamma curve point definition axis for blue * @xa_pnts: x axis increments */ struct rkisp1_cif_isp_sdg_config { struct rkisp1_cif_isp_gamma_corr_curve curve_r; struct rkisp1_cif_isp_gamma_corr_curve curve_g; struct rkisp1_cif_isp_gamma_corr_curve curve_b; struct rkisp1_cif_isp_gamma_curve_x_axis_pnts xa_pnts; }; /** * struct rkisp1_cif_isp_lsc_config - Configuration used by Lens shading correction * * @r_data_tbl: sample table red * @gr_data_tbl: sample table green (red) * @gb_data_tbl: sample table green (blue) * @b_data_tbl: sample table blue * @x_grad_tbl: gradient table x * @y_grad_tbl: gradient table y * @x_size_tbl: size table x * @y_size_tbl: size table y * @config_width: not used at the moment * @config_height: not used at the moment */ struct rkisp1_cif_isp_lsc_config { __u16 r_data_tbl[RKISP1_CIF_ISP_LSC_SAMPLES_MAX][RKISP1_CIF_ISP_LSC_SAMPLES_MAX]; __u16 gr_data_tbl[RKISP1_CIF_ISP_LSC_SAMPLES_MAX][RKISP1_CIF_ISP_LSC_SAMPLES_MAX]; __u16 gb_data_tbl[RKISP1_CIF_ISP_LSC_SAMPLES_MAX][RKISP1_CIF_ISP_LSC_SAMPLES_MAX]; __u16 b_data_tbl[RKISP1_CIF_ISP_LSC_SAMPLES_MAX][RKISP1_CIF_ISP_LSC_SAMPLES_MAX]; __u16 x_grad_tbl[RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE]; __u16 y_grad_tbl[RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE]; __u16 x_size_tbl[RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE]; __u16 y_size_tbl[RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE]; __u16 config_width; __u16 config_height; }; /** * struct rkisp1_cif_isp_ie_config - Configuration used by image effects * * @effect: values from 'enum v4l2_colorfx'. Possible values are: V4L2_COLORFX_SEPIA, * V4L2_COLORFX_SET_CBCR, V4L2_COLORFX_AQUA, V4L2_COLORFX_EMBOSS, * V4L2_COLORFX_SKETCH, V4L2_COLORFX_BW, V4L2_COLORFX_NEGATIVE * @color_sel: bits 0:2 - colors bitmask (001 - blue, 010 - green, 100 - red). * bits 8:15 - Threshold value of the RGB colors for the color selection effect. * @eff_mat_1: 3x3 Matrix Coefficients for Emboss Effect 1 * @eff_mat_2: 3x3 Matrix Coefficients for Emboss Effect 2 * @eff_mat_3: 3x3 Matrix Coefficients for Emboss 3/Sketch 1 * @eff_mat_4: 3x3 Matrix Coefficients for Sketch Effect 2 * @eff_mat_5: 3x3 Matrix Coefficients for Sketch Effect 3 * @eff_tint: Chrominance increment values of tint (used for sepia effect) */ struct rkisp1_cif_isp_ie_config { __u16 effect; __u16 color_sel; __u16 eff_mat_1; __u16 eff_mat_2; __u16 eff_mat_3; __u16 eff_mat_4; __u16 eff_mat_5; __u16 eff_tint; }; /** * struct rkisp1_cif_isp_cproc_config - Configuration used by Color Processing * * @c_out_range: Chrominance pixel clipping range at output. * (0 for limit, 1 for full) * @y_in_range: Luminance pixel clipping range at output. * @y_out_range: Luminance pixel clipping range at output. * @contrast: 00~ff, 0.0~1.992 * @brightness: 80~7F, -128~+127 * @sat: saturation, 00~FF, 0.0~1.992 * @hue: 80~7F, -90~+87.188 */ struct rkisp1_cif_isp_cproc_config { __u8 c_out_range; __u8 y_in_range; __u8 y_out_range; __u8 contrast; __u8 brightness; __u8 sat; __u8 hue; }; /** * struct rkisp1_cif_isp_awb_meas_config - Configuration for the AWB statistics * * @awb_mode: the awb meas mode. From enum rkisp1_cif_isp_awb_mode_type. * @awb_wnd: white balance measurement window (in pixels) * @max_y: only pixels values < max_y contribute to awb measurement, set to 0 * to disable this feature * @min_y: only pixels values > min_y contribute to awb measurement * @max_csum: Chrominance sum maximum value, only consider pixels with Cb+Cr, * smaller than threshold for awb measurements * @min_c: Chrominance minimum value, only consider pixels with Cb/Cr * each greater than threshold value for awb measurements * @frames: number of frames - 1 used for mean value calculation * (ucFrames=0 means 1 Frame) * @awb_ref_cr: reference Cr value for AWB regulation, target for AWB * @awb_ref_cb: reference Cb value for AWB regulation, target for AWB * @enable_ymax_cmp: enable Y_MAX compare (Not valid in RGB measurement mode.) */ struct rkisp1_cif_isp_awb_meas_config { /* * Note: currently the h and v offsets are mapped to grid offsets */ struct rkisp1_cif_isp_window awb_wnd; __u32 awb_mode; __u8 max_y; __u8 min_y; __u8 max_csum; __u8 min_c; __u8 frames; __u8 awb_ref_cr; __u8 awb_ref_cb; __u8 enable_ymax_cmp; }; /** * struct rkisp1_cif_isp_awb_gain_config - Configuration used by auto white balance gain * * All fields in this struct are 10 bit, where: * 0x100h = 1, unsigned integer value, range 0 to 4 with 8 bit fractional part. * * out_data_x = ( AWB_GAIN_X * in_data + 128) >> 8 * * @gain_red: gain value for red component. * @gain_green_r: gain value for green component in red line. * @gain_blue: gain value for blue component. * @gain_green_b: gain value for green component in blue line. */ struct rkisp1_cif_isp_awb_gain_config { __u16 gain_red; __u16 gain_green_r; __u16 gain_blue; __u16 gain_green_b; }; /** * struct rkisp1_cif_isp_flt_config - Configuration used by ISP filtering * * All 4 threshold fields (thresh_*) are 10 bits. * All 6 factor fields (fac_*) are 6 bits. * * @mode: ISP_FILT_MODE register fields (from enum rkisp1_cif_isp_flt_mode) * @grn_stage1: Green filter stage 1 select (range 0x0...0x8) * @chr_h_mode: Chroma filter horizontal mode * @chr_v_mode: Chroma filter vertical mode * @thresh_bl0: If thresh_bl1 < sum_grad < thresh_bl0 then fac_bl0 is selected (blurring th) * @thresh_bl1: If sum_grad < thresh_bl1 then fac_bl1 is selected (blurring th) * @thresh_sh0: If thresh_sh0 < sum_grad < thresh_sh1 then thresh_sh0 is selected (sharpening th) * @thresh_sh1: If thresh_sh1 < sum_grad then thresh_sh1 is selected (sharpening th) * @lum_weight: Parameters for luminance weight function. * @fac_sh1: filter factor for sharp1 level * @fac_sh0: filter factor for sharp0 level * @fac_mid: filter factor for mid level and for static filter mode * @fac_bl0: filter factor for blur 0 level * @fac_bl1: filter factor for blur 1 level (max blur) */ struct rkisp1_cif_isp_flt_config { __u32 mode; __u8 grn_stage1; __u8 chr_h_mode; __u8 chr_v_mode; __u32 thresh_bl0; __u32 thresh_bl1; __u32 thresh_sh0; __u32 thresh_sh1; __u32 lum_weight; __u32 fac_sh1; __u32 fac_sh0; __u32 fac_mid; __u32 fac_bl0; __u32 fac_bl1; }; /** * struct rkisp1_cif_isp_bdm_config - Configuration used by Bayer DeMosaic * * @demosaic_th: threshold for bayer demosaicing texture detection */ struct rkisp1_cif_isp_bdm_config { __u8 demosaic_th; }; /** * struct rkisp1_cif_isp_ctk_config - Configuration used by Cross Talk correction * * @coeff: color correction matrix. Values are 11-bit signed fixed-point numbers with 4 bit integer * and 7 bit fractional part, ranging from -8 (0x400) to +7.992 (0x3FF). 0 is * represented by 0x000 and a coefficient value of 1 as 0x080. * @ct_offset: Red, Green, Blue offsets for the crosstalk correction matrix */ struct rkisp1_cif_isp_ctk_config { __u16 coeff[3][3]; __u16 ct_offset[3]; }; enum rkisp1_cif_isp_goc_mode { RKISP1_CIF_ISP_GOC_MODE_LOGARITHMIC, RKISP1_CIF_ISP_GOC_MODE_EQUIDISTANT }; /** * struct rkisp1_cif_isp_goc_config - Configuration used by Gamma Out correction * * @mode: goc mode (from enum rkisp1_cif_isp_goc_mode) * @gamma_y: gamma out curve y-axis for all color components * * The number of entries of @gamma_y depends on the hardware revision * as is reported by the hw_revision field of the struct media_device_info * that is returned by ioctl MEDIA_IOC_DEVICE_INFO. * * Versions <= V11 have RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES_V10 * entries, versions >= V12 have RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES_V12 * entries. RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES is equal to the maximum * of the two. */ struct rkisp1_cif_isp_goc_config { __u32 mode; __u16 gamma_y[RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES]; }; /** * struct rkisp1_cif_isp_hst_config - Configuration for Histogram statistics * * @mode: histogram mode (from enum rkisp1_cif_isp_histogram_mode) * @histogram_predivider: process every stepsize pixel, all other pixels are * skipped * @meas_window: coordinates of the measure window * @hist_weight: weighting factor for sub-windows * * The number of entries of @hist_weight depends on the hardware revision * as is reported by the hw_revision field of the struct media_device_info * that is returned by ioctl MEDIA_IOC_DEVICE_INFO. * * Versions <= V11 have RKISP1_CIF_ISP_HISTOGRAM_WEIGHT_GRIDS_SIZE_V10 * entries, versions >= V12 have RKISP1_CIF_ISP_HISTOGRAM_WEIGHT_GRIDS_SIZE_V12 * entries. RKISP1_CIF_ISP_HISTOGRAM_WEIGHT_GRIDS_SIZE is equal to the maximum * of the two. */ struct rkisp1_cif_isp_hst_config { __u32 mode; __u8 histogram_predivider; struct rkisp1_cif_isp_window meas_window; __u8 hist_weight[RKISP1_CIF_ISP_HISTOGRAM_WEIGHT_GRIDS_SIZE]; }; /** * struct rkisp1_cif_isp_aec_config - Configuration for Auto Exposure statistics * * @mode: Exposure measure mode (from enum rkisp1_cif_isp_exp_meas_mode) * @autostop: stop mode (from enum rkisp1_cif_isp_exp_ctrl_autostop) * @meas_window: coordinates of the measure window */ struct rkisp1_cif_isp_aec_config { __u32 mode; __u32 autostop; struct rkisp1_cif_isp_window meas_window; }; /** * struct rkisp1_cif_isp_afc_config - Configuration for the Auto Focus statistics * * @num_afm_win: max RKISP1_CIF_ISP_AFM_MAX_WINDOWS * @afm_win: coordinates of the meas window * @thres: threshold used for minimizing the influence of noise * @var_shift: the number of bits for the shift operation at the end of the * calculation chain. */ struct rkisp1_cif_isp_afc_config { __u8 num_afm_win; struct rkisp1_cif_isp_window afm_win[RKISP1_CIF_ISP_AFM_MAX_WINDOWS]; __u32 thres; __u32 var_shift; }; /** * enum rkisp1_cif_isp_dpf_gain_usage - dpf gain usage * @RKISP1_CIF_ISP_DPF_GAIN_USAGE_DISABLED: don't use any gains in preprocessing stage * @RKISP1_CIF_ISP_DPF_GAIN_USAGE_NF_GAINS: use only the noise function gains from * registers DPF_NF_GAIN_R, ... * @RKISP1_CIF_ISP_DPF_GAIN_USAGE_LSC_GAINS: use only the gains from LSC module * @RKISP1_CIF_ISP_DPF_GAIN_USAGE_NF_LSC_GAINS: use the noise function gains and the * gains from LSC module * @RKISP1_CIF_ISP_DPF_GAIN_USAGE_AWB_GAINS: use only the gains from AWB module * @RKISP1_CIF_ISP_DPF_GAIN_USAGE_AWB_LSC_GAINS: use the gains from AWB and LSC module * @RKISP1_CIF_ISP_DPF_GAIN_USAGE_MAX: upper border (only for an internal evaluation) */ enum rkisp1_cif_isp_dpf_gain_usage { RKISP1_CIF_ISP_DPF_GAIN_USAGE_DISABLED, RKISP1_CIF_ISP_DPF_GAIN_USAGE_NF_GAINS, RKISP1_CIF_ISP_DPF_GAIN_USAGE_LSC_GAINS, RKISP1_CIF_ISP_DPF_GAIN_USAGE_NF_LSC_GAINS, RKISP1_CIF_ISP_DPF_GAIN_USAGE_AWB_GAINS, RKISP1_CIF_ISP_DPF_GAIN_USAGE_AWB_LSC_GAINS, RKISP1_CIF_ISP_DPF_GAIN_USAGE_MAX }; /** * enum rkisp1_cif_isp_dpf_rb_filtersize - Red and blue filter sizes * @RKISP1_CIF_ISP_DPF_RB_FILTERSIZE_13x9: red and blue filter kernel size 13x9 * (means 7x5 active pixel) * @RKISP1_CIF_ISP_DPF_RB_FILTERSIZE_9x9: red and blue filter kernel size 9x9 * (means 5x5 active pixel) */ enum rkisp1_cif_isp_dpf_rb_filtersize { RKISP1_CIF_ISP_DPF_RB_FILTERSIZE_13x9, RKISP1_CIF_ISP_DPF_RB_FILTERSIZE_9x9, }; /** * enum rkisp1_cif_isp_dpf_nll_scale_mode - dpf noise level scale mode * @RKISP1_CIF_ISP_NLL_SCALE_LINEAR: use a linear scaling * @RKISP1_CIF_ISP_NLL_SCALE_LOGARITHMIC: use a logarithmic scaling */ enum rkisp1_cif_isp_dpf_nll_scale_mode { RKISP1_CIF_ISP_NLL_SCALE_LINEAR, RKISP1_CIF_ISP_NLL_SCALE_LOGARITHMIC, }; /** * struct rkisp1_cif_isp_dpf_nll - Noise level lookup * * @coeff: Noise level Lookup coefficient * @scale_mode: dpf noise level scale mode (from enum rkisp1_cif_isp_dpf_nll_scale_mode) */ struct rkisp1_cif_isp_dpf_nll { __u16 coeff[RKISP1_CIF_ISP_DPF_MAX_NLF_COEFFS]; __u32 scale_mode; }; /** * struct rkisp1_cif_isp_dpf_rb_flt - Red blue filter config * * @fltsize: The filter size for the red and blue pixels * (from enum rkisp1_cif_isp_dpf_rb_filtersize) * @spatial_coeff: Spatial weights * @r_enable: enable filter processing for red pixels * @b_enable: enable filter processing for blue pixels */ struct rkisp1_cif_isp_dpf_rb_flt { __u32 fltsize; __u8 spatial_coeff[RKISP1_CIF_ISP_DPF_MAX_SPATIAL_COEFFS]; __u8 r_enable; __u8 b_enable; }; /** * struct rkisp1_cif_isp_dpf_g_flt - Green filter Configuration * * @spatial_coeff: Spatial weights * @gr_enable: enable filter processing for green pixels in green/red lines * @gb_enable: enable filter processing for green pixels in green/blue lines */ struct rkisp1_cif_isp_dpf_g_flt { __u8 spatial_coeff[RKISP1_CIF_ISP_DPF_MAX_SPATIAL_COEFFS]; __u8 gr_enable; __u8 gb_enable; }; /** * struct rkisp1_cif_isp_dpf_gain - Noise function Configuration * * @mode: dpf gain usage (from enum rkisp1_cif_isp_dpf_gain_usage) * @nf_r_gain: Noise function Gain that replaces the AWB gain for red pixels * @nf_b_gain: Noise function Gain that replaces the AWB gain for blue pixels * @nf_gr_gain: Noise function Gain that replaces the AWB gain * for green pixels in a red line * @nf_gb_gain: Noise function Gain that replaces the AWB gain * for green pixels in a blue line */ struct rkisp1_cif_isp_dpf_gain { __u32 mode; __u16 nf_r_gain; __u16 nf_b_gain; __u16 nf_gr_gain; __u16 nf_gb_gain; }; /** * struct rkisp1_cif_isp_dpf_config - Configuration used by De-noising pre-filter * * @gain: noise function gain * @g_flt: green filter config * @rb_flt: red blue filter config * @nll: noise level lookup */ struct rkisp1_cif_isp_dpf_config { struct rkisp1_cif_isp_dpf_gain gain; struct rkisp1_cif_isp_dpf_g_flt g_flt; struct rkisp1_cif_isp_dpf_rb_flt rb_flt; struct rkisp1_cif_isp_dpf_nll nll; }; /** * struct rkisp1_cif_isp_dpf_strength_config - strength of the filter * * @r: filter strength of the RED filter * @g: filter strength of the GREEN filter * @b: filter strength of the BLUE filter */ struct rkisp1_cif_isp_dpf_strength_config { __u8 r; __u8 g; __u8 b; }; /** * struct rkisp1_cif_isp_isp_other_cfg - Parameters for some blocks in rockchip isp1 * * @dpcc_config: Defect Pixel Cluster Correction config * @bls_config: Black Level Subtraction config * @sdg_config: sensor degamma config * @lsc_config: Lens Shade config * @awb_gain_config: Auto White balance gain config * @flt_config: filter config * @bdm_config: demosaic config * @ctk_config: cross talk config * @goc_config: gamma out config * @bls_config: black level subtraction config * @dpf_config: De-noising pre-filter config * @dpf_strength_config: dpf strength config * @cproc_config: color process config * @ie_config: image effects config */ struct rkisp1_cif_isp_isp_other_cfg { struct rkisp1_cif_isp_dpcc_config dpcc_config; struct rkisp1_cif_isp_bls_config bls_config; struct rkisp1_cif_isp_sdg_config sdg_config; struct rkisp1_cif_isp_lsc_config lsc_config; struct rkisp1_cif_isp_awb_gain_config awb_gain_config; struct rkisp1_cif_isp_flt_config flt_config; struct rkisp1_cif_isp_bdm_config bdm_config; struct rkisp1_cif_isp_ctk_config ctk_config; struct rkisp1_cif_isp_goc_config goc_config; struct rkisp1_cif_isp_dpf_config dpf_config; struct rkisp1_cif_isp_dpf_strength_config dpf_strength_config; struct rkisp1_cif_isp_cproc_config cproc_config; struct rkisp1_cif_isp_ie_config ie_config; }; /** * struct rkisp1_cif_isp_isp_meas_cfg - Rockchip ISP1 Measure Parameters * * @awb_meas_config: auto white balance config * @hst_config: histogram config * @aec_config: auto exposure config * @afc_config: auto focus config */ struct rkisp1_cif_isp_isp_meas_cfg { struct rkisp1_cif_isp_awb_meas_config awb_meas_config; struct rkisp1_cif_isp_hst_config hst_config; struct rkisp1_cif_isp_aec_config aec_config; struct rkisp1_cif_isp_afc_config afc_config; }; /** * struct rkisp1_params_cfg - Rockchip ISP1 Input Parameters Meta Data * * @module_en_update: mask the enable bits of which module should be updated * @module_ens: mask the enable value of each module, only update the module * which correspond bit was set in module_en_update * @module_cfg_update: mask the config bits of which module should be updated * @meas: measurement config * @others: other config */ struct rkisp1_params_cfg { __u32 module_en_update; __u32 module_ens; __u32 module_cfg_update; struct rkisp1_cif_isp_isp_meas_cfg meas; struct rkisp1_cif_isp_isp_other_cfg others; }; /*---------- PART2: Measurement Statistics ------------*/ /** * struct rkisp1_cif_isp_awb_meas - AWB measured values * * @cnt: White pixel count, number of "white pixels" found during last * measurement * @mean_y_or_g: Mean value of Y within window and frames, * Green if RGB is selected. * @mean_cb_or_b: Mean value of Cb within window and frames, * Blue if RGB is selected. * @mean_cr_or_r: Mean value of Cr within window and frames, * Red if RGB is selected. */ struct rkisp1_cif_isp_awb_meas { __u32 cnt; __u8 mean_y_or_g; __u8 mean_cb_or_b; __u8 mean_cr_or_r; }; /** * struct rkisp1_cif_isp_awb_stat - statistics automatic white balance data * * @awb_mean: Mean measured data */ struct rkisp1_cif_isp_awb_stat { struct rkisp1_cif_isp_awb_meas awb_mean[RKISP1_CIF_ISP_AWB_MAX_GRID]; }; /** * struct rkisp1_cif_isp_bls_meas_val - BLS measured values * * @meas_r: Mean measured value for Bayer pattern R * @meas_gr: Mean measured value for Bayer pattern Gr * @meas_gb: Mean measured value for Bayer pattern Gb * @meas_b: Mean measured value for Bayer pattern B */ struct rkisp1_cif_isp_bls_meas_val { __u16 meas_r; __u16 meas_gr; __u16 meas_gb; __u16 meas_b; }; /** * struct rkisp1_cif_isp_ae_stat - statistics auto exposure data * * @exp_mean: Mean luminance value of block xx * @bls_val: BLS measured values * * The number of entries of @exp_mean depends on the hardware revision * as is reported by the hw_revision field of the struct media_device_info * that is returned by ioctl MEDIA_IOC_DEVICE_INFO. * * Versions <= V11 have RKISP1_CIF_ISP_AE_MEAN_MAX_V10 entries, * versions >= V12 have RKISP1_CIF_ISP_AE_MEAN_MAX_V12 entries. * RKISP1_CIF_ISP_AE_MEAN_MAX is equal to the maximum of the two. * * Image is divided into 5x5 blocks on V10 and 9x9 blocks on V12. */ struct rkisp1_cif_isp_ae_stat { __u8 exp_mean[RKISP1_CIF_ISP_AE_MEAN_MAX]; struct rkisp1_cif_isp_bls_meas_val bls_val; }; /** * struct rkisp1_cif_isp_af_meas_val - AF measured values * * @sum: sharpness value * @lum: luminance value */ struct rkisp1_cif_isp_af_meas_val { __u32 sum; __u32 lum; }; /** * struct rkisp1_cif_isp_af_stat - statistics auto focus data * * @window: AF measured value of window x * * The module measures the sharpness in 3 windows of selectable size via * register settings(ISP_AFM_*_A/B/C) */ struct rkisp1_cif_isp_af_stat { struct rkisp1_cif_isp_af_meas_val window[RKISP1_CIF_ISP_AFM_MAX_WINDOWS]; }; /** * struct rkisp1_cif_isp_hist_stat - statistics histogram data * * @hist_bins: measured bin counters. Each bin is a 20 bits unsigned fixed point * type. Bits 0-4 are the fractional part and bits 5-19 are the * integer part. * * The window of the measurements area is divided to 5x5 sub-windows for * V10/V11 and to 9x9 sub-windows for V12. The histogram is then computed for * each sub-window independently and the final result is a weighted average of * the histogram measurements on all sub-windows. The window of the * measurements area and the weight of each sub-window are configurable using * struct @rkisp1_cif_isp_hst_config. * * The histogram contains 16 bins in V10/V11 and 32 bins in V12/V13. * * The number of entries of @hist_bins depends on the hardware revision * as is reported by the hw_revision field of the struct media_device_info * that is returned by ioctl MEDIA_IOC_DEVICE_INFO. * * Versions <= V11 have RKISP1_CIF_ISP_HIST_BIN_N_MAX_V10 entries, * versions >= V12 have RKISP1_CIF_ISP_HIST_BIN_N_MAX_V12 entries. * RKISP1_CIF_ISP_HIST_BIN_N_MAX is equal to the maximum of the two. */ struct rkisp1_cif_isp_hist_stat { __u32 hist_bins[RKISP1_CIF_ISP_HIST_BIN_N_MAX]; }; /** * struct rkisp1_cif_isp_stat - Rockchip ISP1 Statistics Data * * @awb: statistics data for automatic white balance * @ae: statistics data for auto exposure * @af: statistics data for auto focus * @hist: statistics histogram data */ struct rkisp1_cif_isp_stat { struct rkisp1_cif_isp_awb_stat awb; struct rkisp1_cif_isp_ae_stat ae; struct rkisp1_cif_isp_af_stat af; struct rkisp1_cif_isp_hist_stat hist; }; /** * struct rkisp1_stat_buffer - Rockchip ISP1 Statistics Meta Data * * @meas_type: measurement types (RKISP1_CIF_ISP_STAT_* definitions) * @frame_id: frame ID for sync * @params: statistics data */ struct rkisp1_stat_buffer { __u32 meas_type; __u32 frame_id; struct rkisp1_cif_isp_stat params; }; #endif /* _RKISP1_CONFIG_H */
Upload File
Create Folder