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: irda.h
/********************************************************************* * * Filename: irda.h * Version: * Description: * Status: Experimental. * Author: Dag Brattli <dagb@cs.uit.no> * Created at: Mon Mar 8 14:06:12 1999 * Modified at: Sat Dec 25 16:06:42 1999 * Modified by: Dag Brattli <dagb@cs.uit.no> * * Copyright (c) 1999 Dag Brattli, All Rights Reserved. * * 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. * * Neither Dag Brattli nor University of TromsΓΈ admit liability nor * provide warranty for any of this software. This material is * provided "AS-IS" and at no charge. * ********************************************************************/ #ifndef KERNEL_IRDA_H #define KERNEL_IRDA_H #include <linux/types.h> #include <linux/socket.h> /* Note that this file is shared with user space. */ /* Hint bit positions for first hint byte */ #define HINT_PNP 0x01 #define HINT_PDA 0x02 #define HINT_COMPUTER 0x04 #define HINT_PRINTER 0x08 #define HINT_MODEM 0x10 #define HINT_FAX 0x20 #define HINT_LAN 0x40 #define HINT_EXTENSION 0x80 /* Hint bit positions for second hint byte (first extension byte) */ #define HINT_TELEPHONY 0x01 #define HINT_FILE_SERVER 0x02 #define HINT_COMM 0x04 #define HINT_MESSAGE 0x08 #define HINT_HTTP 0x10 #define HINT_OBEX 0x20 /* IrLMP character code values */ #define CS_ASCII 0x00 #define CS_ISO_8859_1 0x01 #define CS_ISO_8859_2 0x02 #define CS_ISO_8859_3 0x03 #define CS_ISO_8859_4 0x04 #define CS_ISO_8859_5 0x05 #define CS_ISO_8859_6 0x06 #define CS_ISO_8859_7 0x07 #define CS_ISO_8859_8 0x08 #define CS_ISO_8859_9 0x09 #define CS_UNICODE 0xff /* These are the currently known dongles */ typedef enum { IRDA_TEKRAM_DONGLE = 0, IRDA_ESI_DONGLE = 1, IRDA_ACTISYS_DONGLE = 2, IRDA_ACTISYS_PLUS_DONGLE = 3, IRDA_GIRBIL_DONGLE = 4, IRDA_LITELINK_DONGLE = 5, IRDA_AIRPORT_DONGLE = 6, IRDA_OLD_BELKIN_DONGLE = 7, IRDA_EP7211_IR = 8, IRDA_MCP2120_DONGLE = 9, IRDA_ACT200L_DONGLE = 10, IRDA_MA600_DONGLE = 11, IRDA_TOIM3232_DONGLE = 12, IRDA_EP7211_DONGLE = 13, } IRDA_DONGLE; /* Protocol types to be used for SOCK_DGRAM */ enum { IRDAPROTO_UNITDATA = 0, IRDAPROTO_ULTRA = 1, IRDAPROTO_MAX }; #define SOL_IRLMP 266 /* Same as SOL_IRDA for now */ #define SOL_IRTTP 266 /* Same as SOL_IRDA for now */ #define IRLMP_ENUMDEVICES 1 /* Return discovery log */ #define IRLMP_IAS_SET 2 /* Set an attribute in local IAS */ #define IRLMP_IAS_QUERY 3 /* Query remote IAS for attribute */ #define IRLMP_HINTS_SET 4 /* Set hint bits advertised */ #define IRLMP_QOS_SET 5 #define IRLMP_QOS_GET 6 #define IRLMP_MAX_SDU_SIZE 7 #define IRLMP_IAS_GET 8 /* Get an attribute from local IAS */ #define IRLMP_IAS_DEL 9 /* Remove attribute from local IAS */ #define IRLMP_HINT_MASK_SET 10 /* Set discovery filter */ #define IRLMP_WAITDEVICE 11 /* Wait for a new discovery */ #define IRTTP_MAX_SDU_SIZE IRLMP_MAX_SDU_SIZE /* Compatibility */ #define IAS_MAX_STRING 256 /* See IrLMP 1.1, 4.3.3.2 */ #define IAS_MAX_OCTET_STRING 1024 /* See IrLMP 1.1, 4.3.3.2 */ #define IAS_MAX_CLASSNAME 60 /* See IrLMP 1.1, 4.3.1 */ #define IAS_MAX_ATTRIBNAME 60 /* See IrLMP 1.1, 4.3.3.1 */ #define IAS_MAX_ATTRIBNUMBER 256 /* See IrLMP 1.1, 4.3.3.1 */ /* For user space backward compatibility - may be fixed in kernel 2.5.X * Note : need 60+1 ('\0'), make it 64 for alignement - Jean II */ #define IAS_EXPORT_CLASSNAME 64 #define IAS_EXPORT_ATTRIBNAME 256 /* Attribute type needed for struct irda_ias_set */ #define IAS_MISSING 0 #define IAS_INTEGER 1 #define IAS_OCT_SEQ 2 #define IAS_STRING 3 #define LSAP_ANY 0xff struct sockaddr_irda { __kernel_sa_family_t sir_family; /* AF_IRDA */ __u8 sir_lsap_sel; /* LSAP selector */ __u32 sir_addr; /* Device address */ char sir_name[25]; /* Usually <service>:IrDA:TinyTP */ }; struct irda_device_info { __u32 saddr; /* Address of local interface */ __u32 daddr; /* Address of remote device */ char info[22]; /* Description */ __u8 charset; /* Charset used for description */ __u8 hints[2]; /* Hint bits */ }; struct irda_device_list { __u32 len; struct irda_device_info dev[1]; }; struct irda_ias_set { char irda_class_name[IAS_EXPORT_CLASSNAME]; char irda_attrib_name[IAS_EXPORT_ATTRIBNAME]; unsigned int irda_attrib_type; union { unsigned int irda_attrib_int; struct { unsigned short len; __u8 octet_seq[IAS_MAX_OCTET_STRING]; } irda_attrib_octet_seq; struct { __u8 len; __u8 charset; __u8 string[IAS_MAX_STRING]; } irda_attrib_string; } attribute; __u32 daddr; /* Address of device (for some queries only) */ }; /* Some private IOCTL's (max 16) */ #define SIOCSDONGLE (SIOCDEVPRIVATE + 0) #define SIOCGDONGLE (SIOCDEVPRIVATE + 1) #define SIOCSBANDWIDTH (SIOCDEVPRIVATE + 2) #define SIOCSMEDIABUSY (SIOCDEVPRIVATE + 3) #define SIOCGMEDIABUSY (SIOCDEVPRIVATE + 4) #define SIOCGRECEIVING (SIOCDEVPRIVATE + 5) #define SIOCSMODE (SIOCDEVPRIVATE + 6) #define SIOCGMODE (SIOCDEVPRIVATE + 7) #define SIOCSDTRRTS (SIOCDEVPRIVATE + 8) #define SIOCGQOS (SIOCDEVPRIVATE + 9) /* No reason to include <linux/if.h> just because of this one ;-) */ #define IRNAMSIZ 16 /* IrDA quality of service information (must not exceed 16 bytes) */ struct if_irda_qos { unsigned long baudrate; unsigned short data_size; unsigned short window_size; unsigned short min_turn_time; unsigned short max_turn_time; unsigned char add_bofs; unsigned char link_disc; }; /* For setting RTS and DTR lines of a dongle */ struct if_irda_line { __u8 dtr; __u8 rts; }; /* IrDA interface configuration (data part must not exceed 16 bytes) */ struct if_irda_req { union { char ifrn_name[IRNAMSIZ]; /* if name, e.g. "irda0" */ } ifr_ifrn; /* Data part */ union { struct if_irda_line ifru_line; struct if_irda_qos ifru_qos; unsigned short ifru_flags; unsigned int ifru_receiving; unsigned int ifru_mode; unsigned int ifru_dongle; } ifr_ifru; }; #define ifr_baudrate ifr_ifru.ifru_qos.baudrate #define ifr_receiving ifr_ifru.ifru_receiving #define ifr_dongle ifr_ifru.ifru_dongle #define ifr_mode ifr_ifru.ifru_mode #define ifr_dtr ifr_ifru.ifru_line.dtr #define ifr_rts ifr_ifru.ifru_line.rts /* IrDA netlink definitions */ #define IRDA_NL_NAME "irda" #define IRDA_NL_VERSION 1 enum irda_nl_commands { IRDA_NL_CMD_UNSPEC, IRDA_NL_CMD_SET_MODE, IRDA_NL_CMD_GET_MODE, __IRDA_NL_CMD_AFTER_LAST }; #define IRDA_NL_CMD_MAX (__IRDA_NL_CMD_AFTER_LAST - 1) enum nl80211_attrs { IRDA_NL_ATTR_UNSPEC, IRDA_NL_ATTR_IFNAME, IRDA_NL_ATTR_MODE, __IRDA_NL_ATTR_AFTER_LAST }; #define IRDA_NL_ATTR_MAX (__IRDA_NL_ATTR_AFTER_LAST - 1) /* IrDA modes */ #define IRDA_MODE_PRIMARY 0x1 #define IRDA_MODE_SECONDARY 0x2 #define IRDA_MODE_MONITOR 0x4 #endif /* KERNEL_IRDA_H */
Upload File
Create Folder