/usr/src/linux-headers-5.15.0-181/include/uapi/linux
NameSizeModeActions
android/-0755rm
byteorder/-0755rm
caif/-0755rm
can/-0755rm
cifs/-0755rm
dvb/-0755rm
genwqe/-0755rm
hdlc/-0755rm
hsi/-0755rm
iio/-0755rm
isdn/-0755rm
misc/-0755rm
mmc/-0755rm
netfilter/-0755rm
netfilter_arp/-0755rm
netfilter_bridge/-0755rm
netfilter_ipv4/-0755rm
netfilter_ipv6/-0755rm
nfsd/-0755rm
raid/-0755rm
sched/-0755rm
spi/-0755rm
sunrpc/-0755rm
surface_aggregator/-0755rm
tc_act/-0755rm
tc_ematch/-0755rm
usb/-0755rm
a.out.h69590644editdlrm
acct.h40130644editdlrm
acrn.h167050644editdlrm
adb.h11550644editdlrm
adfs_fs.h10080644editdlrm
affs_hardblocks.h15780644editdlrm
agpgart.h40010644editdlrm
aio_abi.h33980644editdlrm
am437x-vpfe.h36810644editdlrm
apm_bios.h36980644editdlrm
arcfb.h2130644editdlrm
arm_sdei.h27660644editdlrm
aspeed-lpc-ctrl.h17950644editdlrm
aspeed-p2a-ctrl.h19210644editdlrm
atalk.h10380644editdlrm
atm.h79370644editdlrm
atmapi.h9520644editdlrm
atmarp.h12960644editdlrm
atmbr2684.h32710644editdlrm
atmclip.h5760644editdlrm
atmdev.h76990644editdlrm
atmioc.h16470644editdlrm
atmlec.h23810644editdlrm
atmmpc.h42260644editdlrm
atmppp.h6390644editdlrm
atmsap.h49700644editdlrm
atmsvc.h18530644editdlrm
atm_eni.h6480644editdlrm
atm_he.h4060644editdlrm
atm_idt77105.h9550644editdlrm
atm_nicstar.h12780644editdlrm
atm_tcp.h16370644editdlrm
atm_zatm.h15400644editdlrm
audit.h212670644editdlrm
aufs_type.h126410644editdlrm
auto_dev-ioctl.h49960644editdlrm
auto_fs.h64500644editdlrm
auto_fs4.h4660644editdlrm
auxvec.h16120644editdlrm
ax25.h28240644editdlrm
batadv_packet.h203600644editdlrm
batman_adv.h169020644editdlrm
baycom.h8830644editdlrm
bcache.h99100644editdlrm
bcm933xx_hcs.h4190644editdlrm
bfs_fs.h19050644editdlrm
binfmts.h7910644editdlrm
blkpg.h9530644editdlrm
blktrace_api.h47160644editdlrm
blkzoned.h65080644editdlrm
bpf.h2350840644editdlrm
bpfilter.h4800644editdlrm
bpf_common.h13820644editdlrm
bpf_perf_event.h5440644editdlrm
bpqether.h9810644editdlrm
bsg.h25090644editdlrm
bt-bmc.h5870644editdlrm
btf.h48110644editdlrm
btrfs.h309040644editdlrm
btrfs_tree.h273920644editdlrm
can.h92680644editdlrm
capability.h135470644editdlrm
capi.h31570644editdlrm
cciss_defs.h32810644editdlrm
cciss_ioctl.h27900644editdlrm
ccs.h7670644editdlrm
cdrom.h289490644editdlrm
cec-funcs.h534530644editdlrm
cec.h413340644editdlrm
cfm_bridge.h14660644editdlrm
cgroupstats.h22190644editdlrm
chio.h53040644editdlrm
close_range.h3920644editdlrm
cm4000_cs.h18210644editdlrm
cn_proc.h34710644editdlrm
coda.h183930644editdlrm
coff.h125640644editdlrm
connector.h22680644editdlrm
const.h10060644editdlrm
coresight-stm.h7470644editdlrm
cramfs_fs.h35700644editdlrm
cryptouser.h53360644editdlrm
cuda.h9200644editdlrm
cxl_mem.h64890644editdlrm
cyclades.h9840644editdlrm
cycx_cfm.h29900644editdlrm
dcbnl.h252920644editdlrm
dccp.h64470644editdlrm
devlink.h202070644editdlrm
dlm.h25680644editdlrm
dlmconstants.h50800644editdlrm
dlm_device.h25990644editdlrm
dlm_netlink.h11590644editdlrm
dlm_plock.h9090644editdlrm
dm-ioctl.h116020644editdlrm
dm-log-userspace.h151910644editdlrm
dma-buf.h37790644editdlrm
dma-heap.h14090644editdlrm
dns_resolver.h39040644editdlrm
dqblk_xfs.h93880644editdlrm
edd.h56190644editdlrm
efs_fs_sb.h22270644editdlrm
elf-em.h25860644editdlrm
elf-fdpic.h11390644editdlrm
elf.h141800644editdlrm
errno.h230644editdlrm
errqueue.h20660644editdlrm
erspan.h10740644editdlrm
ethtool.h825540644editdlrm
ethtool_netlink.h230880644editdlrm
eventpoll.h30560644editdlrm
f2fs.h33160644editdlrm
fadvise.h8420644editdlrm
falloc.h35990644editdlrm
fanotify.h74950644editdlrm
fb.h165180644editdlrm
fcntl.h42660644editdlrm
fd.h121660644editdlrm
fdreg.h53640644editdlrm
fib_rules.h20360644editdlrm
fiemap.h27900644editdlrm
filter.h22650644editdlrm
firewire-cdev.h442400644editdlrm
firewire-constants.h32310644editdlrm
fou.h9090644editdlrm
fpga-dfl.h87430644editdlrm
fs.h124110644editdlrm
fscrypt.h66380644editdlrm
fsi.h22700644editdlrm
fsl_hypervisor.h73160644editdlrm
fsl_mc.h7490644editdlrm
fsmap.h43850644editdlrm
fsverity.h32930644editdlrm
fuse.h230480644editdlrm
futex.h51450644editdlrm
gameport.h9120644editdlrm
genetlink.h21900644editdlrm
gen_stats.h15260644editdlrm
gfs2_ondisk.h147690644editdlrm
gpio.h197830644editdlrm
gsmmux.h11440644editdlrm
gtp.h7310644editdlrm
hash_info.h9860644editdlrm
hdlc.h6520644editdlrm
hdlcdrv.h29230644editdlrm
hdreg.h229450644editdlrm
hid.h19160644editdlrm
hiddev.h63600644editdlrm
hidraw.h20080644editdlrm
hpet.h7850644editdlrm
hsr_netlink.h11010644editdlrm
hw_breakpoint.h7570644editdlrm
hyperv.h105830644editdlrm
i2c-dev.h19310644editdlrm
i2c.h69050644editdlrm
i2o-dev.h116460644editdlrm
i8k.h15280644editdlrm
icmp.h48000644editdlrm
icmpv6.h42840644editdlrm
idxd.h76240644editdlrm
if.h110150644editdlrm
ife.h3510644editdlrm
if_addr.h19120644editdlrm
if_addrlabel.h7210644editdlrm
if_alg.h15660644editdlrm
if_arcnet.h37170644editdlrm
if_arp.h66040644editdlrm
if_bonding.h51450644editdlrm
if_bridge.h191210644editdlrm
if_cablemodem.h9860644editdlrm
if_eql.h13640644editdlrm
if_ether.h84570644editdlrm
if_fc.h17380644editdlrm
if_fddi.h43840644editdlrm
if_hippi.h42350644editdlrm
if_infiniband.h12450644editdlrm
if_link.h317600644editdlrm
if_ltalk.h2250644editdlrm
if_macsec.h64900644editdlrm
if_packet.h81470644editdlrm
if_phonet.h4390644editdlrm
if_plip.h6600644editdlrm
if_ppp.h290644editdlrm
if_pppol2tp.h33180644editdlrm
if_pppox.h48040644editdlrm
if_slip.h8720644editdlrm
if_team.h26150644editdlrm
if_tun.h41130644editdlrm
if_tunnel.h48580644editdlrm
if_vlan.h18460644editdlrm
if_x25.h8810644editdlrm
if_xdp.h30110644editdlrm
igmp.h30790644editdlrm
ila.h12610644editdlrm
in.h108970644editdlrm
in6.h75930644editdlrm
inet_diag.h50320644editdlrm
inotify.h33070644editdlrm
input-event-codes.h288940644editdlrm
input.h160300644editdlrm
in_route.h9360644editdlrm
ioam6.h23990644editdlrm
ioam6_genl.h9600644editdlrm
ioam6_iptunnel.h4510644editdlrm
ioctl.h1630644editdlrm
iommu.h120310644editdlrm
ioprio.h14710644editdlrm
io_uring.h97950644editdlrm
ip.h48280644editdlrm
ip6_tunnel.h19530644editdlrm
ipc.h21230644editdlrm
ipmi.h151120644editdlrm
ipmi_bmc.h5030644editdlrm
ipmi_msgdefs.h34300644editdlrm
ipsec.h9470644editdlrm
ipu-isys.h4810644editdlrm
ipu-psys.h36630644editdlrm
ipv6.h43410644editdlrm
ipv6_route.h19230644editdlrm
ip_vs.h141350644editdlrm
irqnr.h1040644editdlrm
iso_fs.h64850644editdlrm
isst_if.h54040644editdlrm
ivtv.h30630644editdlrm
ivtvfb.h12410644editdlrm
jffs2.h68150644editdlrm
joystick.h34490644editdlrm
kcm.h8220644editdlrm
kcmp.h5370644editdlrm
kcov.h19590644editdlrm
kd.h63110644editdlrm
kdev_t.h4410644editdlrm
kernel-page-flags.h9150644editdlrm
kernel.h2090644editdlrm
kernelcapi.h10340644editdlrm
kexec.h19700644editdlrm
keyboard.h134740644editdlrm
keyctl.h60100644editdlrm
kfd_ioctl.h241510644editdlrm
kvm.h607960644editdlrm
kvm_para.h10160644editdlrm
l2tp.h57880644editdlrm
landlock.h49150644editdlrm
libc-compat.h83040644editdlrm
limits.h9470644editdlrm
lirc.h81440644editdlrm
llc.h31790644editdlrm
loop.h35120644editdlrm
lp.h42050644editdlrm
lwtunnel.h22380644editdlrm
magic.h38010644editdlrm
major.h46570644editdlrm
map_to_7segment.h66080644editdlrm
matroxfb.h14640644editdlrm
max2175.h10350644editdlrm
mctp.h7360644editdlrm
mdio.h172830644editdlrm
media-bus-format.h69090644editdlrm
media.h132230644editdlrm
mei.h34750644editdlrm
membarrier.h93770644editdlrm
memfd.h13390644editdlrm
mempolicy.h25830644editdlrm
meye.h25290644editdlrm
mii.h95110644editdlrm
minix_fs.h21220644editdlrm
mman.h15990644editdlrm
mmtimer.h21170644editdlrm
module.h2700644editdlrm
mount.h51070644editdlrm
mpls.h23170644editdlrm
mpls_iptunnel.h7760644editdlrm
mptcp.h57500644editdlrm
mqueue.h22010644editdlrm
mroute.h59370644editdlrm
mroute6.h49450644editdlrm
mrp_bridge.h17180644editdlrm
msdos_fs.h67460644editdlrm
msg.h34010644editdlrm
mtio.h81750644editdlrm
nbd-netlink.h24230644editdlrm
nbd.h30390644editdlrm
ncsi.h48280644editdlrm
ndctl.h67930644editdlrm
neighbour.h51240644editdlrm
net.h21000644editdlrm
netconf.h6290644editdlrm
netdevice.h22680644editdlrm
netfilter.h17800644editdlrm
netfilter_arp.h4710644editdlrm
netfilter_bridge.h12090644editdlrm
netfilter_ipv4.h15480644editdlrm
netfilter_ipv6.h14430644editdlrm
netlink.h117170644editdlrm
netlink_diag.h15500644editdlrm
netrom.h8070644editdlrm
net_dropmon.h28860644editdlrm
net_namespace.h7300644editdlrm
net_tstamp.h55710644editdlrm
nexthop.h28350644editdlrm
nfc.h112360644editdlrm
nfs.h44810644editdlrm
nfs2.h14680644editdlrm
nfs3.h24680644editdlrm
nfs4.h65060644editdlrm
nfs4_mount.h19530644editdlrm
nfsacl.h7330644editdlrm
nfs_fs.h16560644editdlrm
nfs_idmap.h22580644editdlrm
nfs_mount.h21420644editdlrm
nilfs2_api.h75650644editdlrm
nilfs2_ondisk.h180530644editdlrm
nitro_enclaves.h131670644editdlrm
nl80211-vnd-intel.h29370644editdlrm
nl80211.h3140080644editdlrm
nsfs.h6390644editdlrm
nubus.h82060644editdlrm
nvme_ioctl.h16760644editdlrm
nvram.h5470644editdlrm
omap3isp.h214230644editdlrm
omapfb.h59400644editdlrm
oom.h5260644editdlrm
openat2.h14650644editdlrm
openvswitch.h406950644editdlrm
packet_diag.h16720644editdlrm
param.h1410644editdlrm
parport.h36590644editdlrm
patchkey.h9650644editdlrm
pci.h13950644editdlrm
pcitest.h8780644editdlrm
pci_regs.h586560644editdlrm
perf_event.h397810644editdlrm
personality.h21120644editdlrm
pfkeyv2.h105690644editdlrm
pg.h24090644editdlrm
phantom.h16540644editdlrm
phonet.h46400644editdlrm
pidfd.h2710644editdlrm
pktcdvd.h27020644editdlrm
pkt_cls.h181710644editdlrm
pkt_sched.h301060644editdlrm
pmu.h54590644editdlrm
poll.h220644editdlrm
posix_acl.h12540644editdlrm
posix_acl_xattr.h11150644editdlrm
posix_types.h10980644editdlrm
ppdev.h33000644editdlrm
ppp-comp.h25420644editdlrm
ppp-ioctl.h57630644editdlrm
ppp_defs.h55720644editdlrm
pps.h47340644editdlrm
pr.h10880644editdlrm
prctl.h93950644editdlrm
psample.h22710644editdlrm
psci.h43430644editdlrm
psp-sev.h40530644editdlrm
ptp_clock.h74560644editdlrm
ptrace.h44260644editdlrm
qemu_fw_cfg.h24690644editdlrm
qnx4_fs.h23280644editdlrm
qnxtypes.h6240644editdlrm
qrtr.h8780644editdlrm
quota.h63060644editdlrm
radeonfb.h3600644editdlrm
random.h14300644editdlrm
rds.h111680644editdlrm
reboot.h13580644editdlrm
reiserfs_fs.h7750644editdlrm
reiserfs_xattr.h5330644editdlrm
remoteproc_cdev.h11120644editdlrm
resource.h23880644editdlrm
rfkill.h61180644editdlrm
rio_cm_cdev.h32480644editdlrm
rio_mport_cdev.h93300644editdlrm
rkisp1-config.h313770644editdlrm
romfs_fs.h12380644editdlrm
rose.h22320644editdlrm
route.h23920644editdlrm
rpl.h8240644editdlrm
rpl_iptunnel.h4340644editdlrm
rpmsg.h8130644editdlrm
rpmsg_types.h3030644editdlrm
rseq.h47210644editdlrm
rtc.h46100644editdlrm
rtnetlink.h207840644editdlrm
rxrpc.h49370644editdlrm
scc.h46390644editdlrm
sched.h62810644editdlrm
scif_ioctl.h63820644editdlrm
screen_info.h24940644editdlrm
sctp.h360990644editdlrm
seccomp.h57740644editdlrm
securebits.h27190644editdlrm
sed-opal.h37770644editdlrm
seg6.h11800644editdlrm
seg6_genl.h5990644editdlrm
seg6_hmac.h4330644editdlrm
seg6_iptunnel.h9940644editdlrm
seg6_local.h33380644editdlrm
selinux_netlink.h12210644editdlrm
sem.h30940644editdlrm
serial.h38250644editdlrm
serial_core.h61290644editdlrm
serial_reg.h155520644editdlrm
serio.h21140644editdlrm
shm.h38350644editdlrm
signal.h4030644editdlrm
signalfd.h12480644editdlrm
smc.h80190644editdlrm
smc_diag.h28500644editdlrm
smiapp.h10580644editdlrm
snmp.h139500644editdlrm
socket.h9550644editdlrm
sockios.h68460644editdlrm
sock_diag.h13160644editdlrm
sonet.h23050644editdlrm
sonypi.h53240644editdlrm
sound.h12520644editdlrm
soundcard.h461700644editdlrm
stat.h67670644editdlrm
stddef.h15770644editdlrm
stm.h12900644editdlrm
string.h2960644editdlrm
suspend_ioctls.h14310644editdlrm
swab.h70160644editdlrm
switchtec_ioctl.h52720644editdlrm
synclink.h90000644editdlrm
sync_file.h28990644editdlrm
sysctl.h259880644editdlrm
sysinfo.h10490644editdlrm
target_core_user.h45570644editdlrm
taskstats.h72900644editdlrm
tcp.h119490644editdlrm
tcp_metrics.h15490644editdlrm
tee.h135920644editdlrm
termios.h1720644editdlrm
thermal.h30880644editdlrm
time.h17930644editdlrm
timerfd.h9510644editdlrm
times.h2780644editdlrm
timex.h78840644editdlrm
time_types.h12820644editdlrm
tiocl.h17290644editdlrm
tipc.h88050644editdlrm
tipc_config.h148380644editdlrm
tipc_netlink.h93950644editdlrm
tipc_sockets_diag.h4830644editdlrm
tls.h49180644editdlrm
toshiba.h19450644editdlrm
tty.h16000644editdlrm
tty_flags.h45530644editdlrm
types.h17380644editdlrm
udf_fs_i.h6970644editdlrm
udmabuf.h6580644editdlrm
udp.h17030644editdlrm
uhid.h46550644editdlrm
uinput.h92760644editdlrm
uio.h7810644editdlrm
uleds.h8130644editdlrm
ultrasound.h45620644editdlrm
um_timetravel.h39760644editdlrm
un.h3840644editdlrm
unistd.h2200644editdlrm
unix_diag.h13280644editdlrm
usbdevice_fs.h83740644editdlrm
usbip.h6550644editdlrm
userfaultfd.h90890644editdlrm
userio.h15160644editdlrm
utime.h2230644editdlrm
utsname.h6840644editdlrm
uuid.h13710644editdlrm
uvcvideo.h25810644editdlrm
v4l2-common.h42030644editdlrm
v4l2-controls.h864530644editdlrm
v4l2-dv-timings.h315620644editdlrm
v4l2-mediabus.h54610644editdlrm
v4l2-subdev.h77820644editdlrm
vboxguest.h93680644editdlrm
vbox_err.h72570644editdlrm
vbox_vmmdev_types.h115910644editdlrm
vdpa.h11830644editdlrm
vduse.h83060644editdlrm
veth.h2240644editdlrm
vfio.h538090644editdlrm
vfio_ccw.h12570644editdlrm
vfio_zdev.h25420644editdlrm
vhost.h64180644editdlrm
vhost_types.h40240644editdlrm
videodev2.h961870644editdlrm
virtio_9p.h20530644editdlrm
virtio_balloon.h52790644editdlrm
virtio_blk.h68880644editdlrm
virtio_bt.h7870644editdlrm
virtio_config.h40630644editdlrm
virtio_console.h31710644editdlrm
virtio_crypto.h138870644editdlrm
virtio_fs.h5880644editdlrm
virtio_gpio.h10390644editdlrm
virtio_gpu.h110530644editdlrm
virtio_i2c.h10040644editdlrm
virtio_ids.h43030644editdlrm
virtio_input.h25150644editdlrm
virtio_iommu.h37930644editdlrm
virtio_mem.h69550644editdlrm
virtio_mmio.h49690644editdlrm
virtio_net.h138310644editdlrm
virtio_pci.h74060644editdlrm
virtio_pcidev.h24620644editdlrm
virtio_pmem.h6510644editdlrm
virtio_ring.h86060644editdlrm
virtio_rng.h2650644editdlrm
virtio_scmi.h6520644editdlrm
virtio_scsi.h60850644editdlrm
virtio_snd.h93040644editdlrm
virtio_types.h21680644editdlrm
virtio_vsock.h33630644editdlrm
vmcore.h4700644editdlrm
vm_sockets.h66090644editdlrm
vm_sockets_diag.h9780644editdlrm
vsockmon.h18950644editdlrm
vt.h30740644editdlrm
vtpm_proxy.h17340644editdlrm
wait.h6970644editdlrm
watchdog.h23500644editdlrm
watch_queue.h35050644editdlrm
wireguard.h77480644editdlrm
wireless.h428040644editdlrm
wmi.h17180644editdlrm
wwan.h3100644editdlrm
x25.h35620644editdlrm
xattr.h30380644editdlrm
xdp_diag.h14680644editdlrm
xfrm.h124330644editdlrm
xilinx-v4l2-controls.h29760644editdlrm
zorro.h32660644editdlrm
zorro_ids.h300650644editdlrm
Edit: /usr/src/linux-headers-5.15.0-181/include/uapi/linux/nfc.h (11236B)
/* * Copyright (C) 2011 Instituto Nokia de Tecnologia * * Authors: * Lauro Ramos Venancio * Aloisio Almeida Jr * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef __LINUX_NFC_H #define __LINUX_NFC_H #include #include #define NFC_GENL_NAME "nfc" #define NFC_GENL_VERSION 1 #define NFC_GENL_MCAST_EVENT_NAME "events" /** * enum nfc_commands - supported nfc commands * * @NFC_CMD_UNSPEC: unspecified command * * @NFC_CMD_GET_DEVICE: request information about a device (requires * %NFC_ATTR_DEVICE_INDEX) or dump request to get a list of all nfc devices * @NFC_CMD_DEV_UP: turn on the nfc device * (requires %NFC_ATTR_DEVICE_INDEX) * @NFC_CMD_DEV_DOWN: turn off the nfc device * (requires %NFC_ATTR_DEVICE_INDEX) * @NFC_CMD_START_POLL: start polling for targets using the given protocols * (requires %NFC_ATTR_DEVICE_INDEX and %NFC_ATTR_PROTOCOLS) * @NFC_CMD_STOP_POLL: stop polling for targets (requires * %NFC_ATTR_DEVICE_INDEX) * @NFC_CMD_GET_TARGET: dump all targets found by the previous poll (requires * %NFC_ATTR_DEVICE_INDEX) * @NFC_EVENT_TARGETS_FOUND: event emitted when a new target is found * (it sends %NFC_ATTR_DEVICE_INDEX) * @NFC_EVENT_DEVICE_ADDED: event emitted when a new device is registred * (it sends %NFC_ATTR_DEVICE_NAME, %NFC_ATTR_DEVICE_INDEX and * %NFC_ATTR_PROTOCOLS) * @NFC_EVENT_DEVICE_REMOVED: event emitted when a device is removed * (it sends %NFC_ATTR_DEVICE_INDEX) * @NFC_EVENT_TM_ACTIVATED: event emitted when the adapter is activated in * target mode. * @NFC_EVENT_DEVICE_DEACTIVATED: event emitted when the adapter is deactivated * from target mode. * @NFC_CMD_LLC_GET_PARAMS: request LTO, RW, and MIUX parameters for a device * @NFC_CMD_LLC_SET_PARAMS: set one or more of LTO, RW, and MIUX parameters for * a device. LTO must be set before the link is up otherwise -EINPROGRESS * is returned. RW and MIUX can be set at anytime and will be passed in * subsequent CONNECT and CC messages. * If one of the passed parameters is wrong none is set and -EINVAL is * returned. * @NFC_CMD_ENABLE_SE: Enable the physical link to a specific secure element. * Once enabled a secure element will handle card emulation mode, i.e. * starting a poll from a device which has a secure element enabled means * we want to do SE based card emulation. * @NFC_CMD_DISABLE_SE: Disable the physical link to a specific secure element. * @NFC_CMD_FW_DOWNLOAD: Request to Load/flash firmware, or event to inform * that some firmware was loaded * @NFC_EVENT_SE_ADDED: Event emitted when a new secure element is discovered. * This typically will be sent whenever a new NFC controller with either * an embedded SE or an UICC one connected to it through SWP. * @NFC_EVENT_SE_REMOVED: Event emitted when a secure element is removed from * the system, as a consequence of e.g. an NFC controller being unplugged. * @NFC_EVENT_SE_CONNECTIVITY: This event is emitted whenever a secure element * is requesting connectivity access. For example a UICC SE may need to * talk with a sleeping modem and will notify this need by sending this * event. It is then up to userspace to decide if it will wake the modem * up or not. * @NFC_EVENT_SE_TRANSACTION: This event is sent when an application running on * a specific SE notifies us about the end of a transaction. The parameter * for this event is the application ID (AID). * @NFC_CMD_GET_SE: Dump all discovered secure elements from an NFC controller. * @NFC_CMD_SE_IO: Send/Receive APDUs to/from the selected secure element. * @NFC_CMD_ACTIVATE_TARGET: Request NFC controller to reactivate target. * @NFC_CMD_VENDOR: Vendor specific command, to be implemented directly * from the driver in order to support hardware specific operations. * @NFC_CMD_DEACTIVATE_TARGET: Request NFC controller to deactivate target. */ enum nfc_commands { NFC_CMD_UNSPEC, NFC_CMD_GET_DEVICE, NFC_CMD_DEV_UP, NFC_CMD_DEV_DOWN, NFC_CMD_DEP_LINK_UP, NFC_CMD_DEP_LINK_DOWN, NFC_CMD_START_POLL, NFC_CMD_STOP_POLL, NFC_CMD_GET_TARGET, NFC_EVENT_TARGETS_FOUND, NFC_EVENT_DEVICE_ADDED, NFC_EVENT_DEVICE_REMOVED, NFC_EVENT_TARGET_LOST, NFC_EVENT_TM_ACTIVATED, NFC_EVENT_TM_DEACTIVATED, NFC_CMD_LLC_GET_PARAMS, NFC_CMD_LLC_SET_PARAMS, NFC_CMD_ENABLE_SE, NFC_CMD_DISABLE_SE, NFC_CMD_LLC_SDREQ, NFC_EVENT_LLC_SDRES, NFC_CMD_FW_DOWNLOAD, NFC_EVENT_SE_ADDED, NFC_EVENT_SE_REMOVED, NFC_EVENT_SE_CONNECTIVITY, NFC_EVENT_SE_TRANSACTION, NFC_CMD_GET_SE, NFC_CMD_SE_IO, NFC_CMD_ACTIVATE_TARGET, NFC_CMD_VENDOR, NFC_CMD_DEACTIVATE_TARGET, /* private: internal use only */ __NFC_CMD_AFTER_LAST }; #define NFC_CMD_MAX (__NFC_CMD_AFTER_LAST - 1) /** * enum nfc_attrs - supported nfc attributes * * @NFC_ATTR_UNSPEC: unspecified attribute * * @NFC_ATTR_DEVICE_INDEX: index of nfc device * @NFC_ATTR_DEVICE_NAME: device name, max 8 chars * @NFC_ATTR_PROTOCOLS: nfc protocols - bitwise or-ed combination from * NFC_PROTO_*_MASK constants * @NFC_ATTR_TARGET_INDEX: index of the nfc target * @NFC_ATTR_TARGET_SENS_RES: NFC-A targets extra information such as NFCID * @NFC_ATTR_TARGET_SEL_RES: NFC-A targets extra information (useful if the * target is not NFC-Forum compliant) * @NFC_ATTR_TARGET_NFCID1: NFC-A targets identifier, max 10 bytes * @NFC_ATTR_TARGET_SENSB_RES: NFC-B targets extra information, max 12 bytes * @NFC_ATTR_TARGET_SENSF_RES: NFC-F targets extra information, max 18 bytes * @NFC_ATTR_COMM_MODE: Passive or active mode * @NFC_ATTR_RF_MODE: Initiator or target * @NFC_ATTR_IM_PROTOCOLS: Initiator mode protocols to poll for * @NFC_ATTR_TM_PROTOCOLS: Target mode protocols to listen for * @NFC_ATTR_LLC_PARAM_LTO: Link TimeOut parameter * @NFC_ATTR_LLC_PARAM_RW: Receive Window size parameter * @NFC_ATTR_LLC_PARAM_MIUX: MIU eXtension parameter * @NFC_ATTR_SE: Available Secure Elements * @NFC_ATTR_FIRMWARE_NAME: Free format firmware version * @NFC_ATTR_SE_INDEX: Secure element index * @NFC_ATTR_SE_TYPE: Secure element type (UICC or EMBEDDED) * @NFC_ATTR_FIRMWARE_DOWNLOAD_STATUS: Firmware download operation status * @NFC_ATTR_APDU: Secure element APDU * @NFC_ATTR_TARGET_ISO15693_DSFID: ISO 15693 Data Storage Format Identifier * @NFC_ATTR_TARGET_ISO15693_UID: ISO 15693 Unique Identifier * @NFC_ATTR_SE_PARAMS: Parameters data from an evt_transaction * @NFC_ATTR_VENDOR_ID: NFC manufacturer unique ID, typically an OUI * @NFC_ATTR_VENDOR_SUBCMD: Vendor specific sub command * @NFC_ATTR_VENDOR_DATA: Vendor specific data, to be optionally passed * to a vendor specific command implementation */ enum nfc_attrs { NFC_ATTR_UNSPEC, NFC_ATTR_DEVICE_INDEX, NFC_ATTR_DEVICE_NAME, NFC_ATTR_PROTOCOLS, NFC_ATTR_TARGET_INDEX, NFC_ATTR_TARGET_SENS_RES, NFC_ATTR_TARGET_SEL_RES, NFC_ATTR_TARGET_NFCID1, NFC_ATTR_TARGET_SENSB_RES, NFC_ATTR_TARGET_SENSF_RES, NFC_ATTR_COMM_MODE, NFC_ATTR_RF_MODE, NFC_ATTR_DEVICE_POWERED, NFC_ATTR_IM_PROTOCOLS, NFC_ATTR_TM_PROTOCOLS, NFC_ATTR_LLC_PARAM_LTO, NFC_ATTR_LLC_PARAM_RW, NFC_ATTR_LLC_PARAM_MIUX, NFC_ATTR_SE, NFC_ATTR_LLC_SDP, NFC_ATTR_FIRMWARE_NAME, NFC_ATTR_SE_INDEX, NFC_ATTR_SE_TYPE, NFC_ATTR_SE_AID, NFC_ATTR_FIRMWARE_DOWNLOAD_STATUS, NFC_ATTR_SE_APDU, NFC_ATTR_TARGET_ISO15693_DSFID, NFC_ATTR_TARGET_ISO15693_UID, NFC_ATTR_SE_PARAMS, NFC_ATTR_VENDOR_ID, NFC_ATTR_VENDOR_SUBCMD, NFC_ATTR_VENDOR_DATA, /* private: internal use only */ __NFC_ATTR_AFTER_LAST }; #define NFC_ATTR_MAX (__NFC_ATTR_AFTER_LAST - 1) enum nfc_sdp_attr { NFC_SDP_ATTR_UNSPEC, NFC_SDP_ATTR_URI, NFC_SDP_ATTR_SAP, /* private: internal use only */ __NFC_SDP_ATTR_AFTER_LAST }; #define NFC_SDP_ATTR_MAX (__NFC_SDP_ATTR_AFTER_LAST - 1) #define NFC_DEVICE_NAME_MAXSIZE 8 #define NFC_NFCID1_MAXSIZE 10 #define NFC_NFCID2_MAXSIZE 8 #define NFC_NFCID3_MAXSIZE 10 #define NFC_SENSB_RES_MAXSIZE 12 #define NFC_SENSF_RES_MAXSIZE 18 #define NFC_ATR_REQ_MAXSIZE 64 #define NFC_ATR_RES_MAXSIZE 64 #define NFC_ATR_REQ_GB_MAXSIZE 48 #define NFC_ATR_RES_GB_MAXSIZE 47 #define NFC_GB_MAXSIZE 48 #define NFC_FIRMWARE_NAME_MAXSIZE 32 #define NFC_ISO15693_UID_MAXSIZE 8 /* NFC protocols */ #define NFC_PROTO_JEWEL 1 #define NFC_PROTO_MIFARE 2 #define NFC_PROTO_FELICA 3 #define NFC_PROTO_ISO14443 4 #define NFC_PROTO_NFC_DEP 5 #define NFC_PROTO_ISO14443_B 6 #define NFC_PROTO_ISO15693 7 #define NFC_PROTO_MAX 8 /* NFC communication modes */ #define NFC_COMM_ACTIVE 0 #define NFC_COMM_PASSIVE 1 /* NFC RF modes */ #define NFC_RF_INITIATOR 0 #define NFC_RF_TARGET 1 #define NFC_RF_NONE 2 /* NFC protocols masks used in bitsets */ #define NFC_PROTO_JEWEL_MASK (1 << NFC_PROTO_JEWEL) #define NFC_PROTO_MIFARE_MASK (1 << NFC_PROTO_MIFARE) #define NFC_PROTO_FELICA_MASK (1 << NFC_PROTO_FELICA) #define NFC_PROTO_ISO14443_MASK (1 << NFC_PROTO_ISO14443) #define NFC_PROTO_NFC_DEP_MASK (1 << NFC_PROTO_NFC_DEP) #define NFC_PROTO_ISO14443_B_MASK (1 << NFC_PROTO_ISO14443_B) #define NFC_PROTO_ISO15693_MASK (1 << NFC_PROTO_ISO15693) /* NFC Secure Elements */ #define NFC_SE_UICC 0x1 #define NFC_SE_EMBEDDED 0x2 #define NFC_SE_DISABLED 0x0 #define NFC_SE_ENABLED 0x1 struct sockaddr_nfc { __kernel_sa_family_t sa_family; __u32 dev_idx; __u32 target_idx; __u32 nfc_protocol; }; #define NFC_LLCP_MAX_SERVICE_NAME 63 struct sockaddr_nfc_llcp { __kernel_sa_family_t sa_family; __u32 dev_idx; __u32 target_idx; __u32 nfc_protocol; __u8 dsap; /* Destination SAP, if known */ __u8 ssap; /* Source SAP to be bound to */ char service_name[NFC_LLCP_MAX_SERVICE_NAME]; /* Service name URI */; __kernel_size_t service_name_len; }; /* NFC socket protocols */ #define NFC_SOCKPROTO_RAW 0 #define NFC_SOCKPROTO_LLCP 1 #define NFC_SOCKPROTO_MAX 2 #define NFC_HEADER_SIZE 1 /** * Pseudo-header info for raw socket packets * First byte is the adapter index * Second byte contains flags * - 0x01 - Direction (0=RX, 1=TX) * - 0x02-0x04 - Payload type (000=LLCP, 001=NCI, 010=HCI, 011=Digital, * 100=Proprietary) * - 0x05-0x80 - Reserved **/ #define NFC_RAW_HEADER_SIZE 2 #define NFC_DIRECTION_RX 0x00 #define NFC_DIRECTION_TX 0x01 #define RAW_PAYLOAD_LLCP 0 #define RAW_PAYLOAD_NCI 1 #define RAW_PAYLOAD_HCI 2 #define RAW_PAYLOAD_DIGITAL 3 #define RAW_PAYLOAD_PROPRIETARY 4 /* socket option names */ #define NFC_LLCP_RW 0 #define NFC_LLCP_MIUX 1 #define NFC_LLCP_REMOTE_MIU 2 #define NFC_LLCP_REMOTE_LTO 3 #define NFC_LLCP_REMOTE_RW 4 #endif /*__LINUX_NFC_H */