/
usr
/
include
/
linux
/
/usr/include/linux
mkdir
upload
Name
Size
Mode
Actions
byteorder/
-
0755
rm
can/
-
0755
rm
dvb/
-
0755
rm
hdlc/
-
0755
rm
isdn/
-
0755
rm
netfilter/
-
0755
rm
netfilter_arp/
-
0755
rm
netfilter_bridge/
-
0755
rm
netfilter_ipv4/
-
0755
rm
netfilter_ipv6/
-
0755
rm
nfsd/
-
0755
rm
raid/
-
0755
rm
spi/
-
0755
rm
sunrpc/
-
0755
rm
tc_act/
-
0755
rm
tc_ematch/
-
0755
rm
usb/
-
0755
rm
wimax/
-
0755
rm
a.out.h
7319
0644
edit
dl
rm
acct.h
3490
0644
edit
dl
rm
adb.h
1077
0644
edit
dl
rm
adfs_fs.h
856
0644
edit
dl
rm
affs_hardblocks.h
1481
0644
edit
dl
rm
agpgart.h
3925
0644
edit
dl
rm
aio_abi.h
3112
0644
edit
dl
rm
apm_bios.h
3544
0644
edit
dl
rm
arcfb.h
150
0644
edit
dl
rm
atalk.h
927
0644
edit
dl
rm
atm.h
7806
0644
edit
dl
rm
atmapi.h
889
0644
edit
dl
rm
atmarp.h
1233
0644
edit
dl
rm
atmbr2684.h
3208
0644
edit
dl
rm
atmclip.h
513
0644
edit
dl
rm
atmdev.h
7593
0644
edit
dl
rm
atmioc.h
1583
0644
edit
dl
rm
atmlec.h
2561
0644
edit
dl
rm
atmmpc.h
4163
0644
edit
dl
rm
atmppp.h
576
0644
edit
dl
rm
atmsap.h
4907
0644
edit
dl
rm
atmsvc.h
1790
0644
edit
dl
rm
atm_eni.h
585
0644
edit
dl
rm
atm_he.h
343
0644
edit
dl
rm
atm_idt77105.h
892
0644
edit
dl
rm
atm_nicstar.h
1215
0644
edit
dl
rm
atm_tcp.h
1537
0644
edit
dl
rm
atm_zatm.h
1606
0644
edit
dl
rm
audit.h
15880
0644
edit
dl
rm
auto_fs.h
2346
0644
edit
dl
rm
auto_fs4.h
4131
0644
edit
dl
rm
auxvec.h
1384
0644
edit
dl
rm
ax25.h
2752
0644
edit
dl
rm
b1lli.h
1654
0644
edit
dl
rm
baycom.h
820
0644
edit
dl
rm
bfs_fs.h
1830
0644
edit
dl
rm
binfmts.h
565
0644
edit
dl
rm
blkpg.h
1598
0644
edit
dl
rm
blktrace_api.h
4473
0644
edit
dl
rm
blk_types.h
7106
0644
edit
dl
rm
bpqether.h
952
0644
edit
dl
rm
bsg.h
2385
0644
edit
dl
rm
can.h
3326
0644
edit
dl
rm
capability.h
10589
0644
edit
dl
rm
capi.h
3057
0644
edit
dl
rm
cciss_ioctl.h
5824
0644
edit
dl
rm
cdk.h
12770
0644
edit
dl
rm
cdrom.h
28129
0644
edit
dl
rm
cgroupstats.h
2155
0644
edit
dl
rm
chio.h
5280
0644
edit
dl
rm
cm4000_cs.h
1718
0644
edit
dl
rm
cn_proc.h
2715
0644
edit
dl
rm
coda.h
17487
0644
edit
dl
rm
coda_psdev.h
679
0644
edit
dl
rm
coff.h
12413
0644
edit
dl
rm
comstats.h
3120
0644
edit
dl
rm
connector.h
2129
0644
edit
dl
rm
const.h
682
0644
edit
dl
rm
cramfs_fs.h
2930
0644
edit
dl
rm
cuda.h
769
0644
edit
dl
rm
cyclades.h
17045
0644
edit
dl
rm
cycx_cfm.h
2926
0644
edit
dl
rm
dcbnl.h
22120
0644
edit
dl
rm
dccp.h
5800
0644
edit
dl
rm
dlm.h
2529
0644
edit
dl
rm
dlmconstants.h
5013
0644
edit
dl
rm
dlm_device.h
2480
0644
edit
dl
rm
dlm_netlink.h
1064
0644
edit
dl
rm
dlm_plock.h
806
0644
edit
dl
rm
dm-ioctl.h
10668
0644
edit
dl
rm
dm-log-userspace.h
15173
0644
edit
dl
rm
dn.h
4527
0644
edit
dl
rm
dqblk_xfs.h
6952
0644
edit
dl
rm
edd.h
5544
0644
edit
dl
rm
efs_fs_sb.h
2164
0644
edit
dl
rm
elf-em.h
1834
0644
edit
dl
rm
elf-fdpic.h
2557
0644
edit
dl
rm
elf.h
11236
0644
edit
dl
rm
elfcore.h
2932
0644
edit
dl
rm
errno.h
79
0644
edit
dl
rm
errqueue.h
443
0644
edit
dl
rm
ethtool.h
34166
0644
edit
dl
rm
eventpoll.h
1353
0644
edit
dl
rm
ext2_fs.h
18802
0644
edit
dl
rm
fadvise.h
855
0644
edit
dl
rm
falloc.h
293
0644
edit
dl
rm
fb.h
16016
0644
edit
dl
rm
fcntl.h
1607
0644
edit
dl
rm
fd.h
11563
0644
edit
dl
rm
fdreg.h
5355
0644
edit
dl
rm
fib_rules.h
1459
0644
edit
dl
rm
fiemap.h
2548
0644
edit
dl
rm
filter.h
3534
0644
edit
dl
rm
firewire-cdev.h
25053
0644
edit
dl
rm
firewire-constants.h
1975
0644
edit
dl
rm
flat.h
2085
0644
edit
dl
rm
fs.h
18910
0644
edit
dl
rm
fuse.h
11441
0644
edit
dl
rm
futex.h
4909
0644
edit
dl
rm
gameport.h
816
0644
edit
dl
rm
generic_serial.h
895
0644
edit
dl
rm
genetlink.h
1683
0644
edit
dl
rm
gen_stats.h
1304
0644
edit
dl
rm
gfs2_ondisk.h
11814
0644
edit
dl
rm
gigaset_dev.h
981
0644
edit
dl
rm
hayesesp.h
230
0644
edit
dl
rm
hdlc.h
574
0644
edit
dl
rm
hdlcdrv.h
2845
0644
edit
dl
rm
hdreg.h
22640
0644
edit
dl
rm
hid.h
1824
0644
edit
dl
rm
hiddev.h
6265
0644
edit
dl
rm
hidraw.h
1217
0644
edit
dl
rm
hpet.h
686
0644
edit
dl
rm
hysdn_if.h
1319
0644
edit
dl
rm
i2c-dev.h
2403
0644
edit
dl
rm
i2c.h
6631
0644
edit
dl
rm
i2o-dev.h
11488
0644
edit
dl
rm
i8k.h
1438
0644
edit
dl
rm
icmp.h
2892
0644
edit
dl
rm
icmpv6.h
3831
0644
edit
dl
rm
if.h
8673
0644
edit
dl
rm
if_addr.h
1456
0644
edit
dl
rm
if_addrlabel.h
658
0644
edit
dl
rm
if_arcnet.h
3718
0644
edit
dl
rm
if_arp.h
6109
0644
edit
dl
rm
if_bonding.h
4076
0644
edit
dl
rm
if_bridge.h
3810
0644
edit
dl
rm
if_cablemodem.h
910
0644
edit
dl
rm
if_ec.h
901
0644
edit
dl
rm
if_eql.h
1284
0644
edit
dl
rm
if_ether.h
6539
0644
edit
dl
rm
if_fc.h
1674
0644
edit
dl
rm
if_fddi.h
3700
0644
edit
dl
rm
if_frad.h
2940
0644
edit
dl
rm
if_hippi.h
4175
0644
edit
dl
rm
if_infiniband.h
1145
0644
edit
dl
rm
if_link.h
12078
0644
edit
dl
rm
if_ltalk.h
125
0644
edit
dl
rm
if_packet.h
3530
0644
edit
dl
rm
if_phonet.h
337
0644
edit
dl
rm
if_plip.h
596
0644
edit
dl
rm
if_ppp.h
6938
0644
edit
dl
rm
if_pppol2tp.h
1983
0644
edit
dl
rm
if_pppox.h
3772
0644
edit
dl
rm
if_slip.h
809
0644
edit
dl
rm
if_strip.h
700
0644
edit
dl
rm
if_tr.h
3199
0644
edit
dl
rm
if_tun.h
3014
0644
edit
dl
rm
if_tunnel.h
1459
0644
edit
dl
rm
if_vlan.h
1708
0644
edit
dl
rm
igmp.h
2928
0644
edit
dl
rm
in.h
9203
0644
edit
dl
rm
in6.h
7495
0644
edit
dl
rm
inet_diag.h
2453
0644
edit
dl
rm
inotify.h
2838
0644
edit
dl
rm
input.h
27594
0644
edit
dl
rm
in_route.h
873
0644
edit
dl
rm
ioctl.h
100
0644
edit
dl
rm
ip.h
3555
0644
edit
dl
rm
ip6_tunnel.h
1073
0644
edit
dl
rm
ipc.h
2038
0644
edit
dl
rm
ipmi.h
16543
0644
edit
dl
rm
ipmi_msgdefs.h
4477
0644
edit
dl
rm
ipsec.h
884
0644
edit
dl
rm
ipv6.h
2892
0644
edit
dl
rm
ipv6_route.h
1614
0644
edit
dl
rm
ipx.h
1824
0644
edit
dl
rm
ip_vs.h
12583
0644
edit
dl
rm
irda.h
7651
0644
edit
dl
rm
irqnr.h
93
0644
edit
dl
rm
isdn.h
5687
0644
edit
dl
rm
isdnif.h
2306
0644
edit
dl
rm
isdn_divertif.h
1038
0644
edit
dl
rm
isdn_ppp.h
1859
0644
edit
dl
rm
iso_fs.h
6439
0644
edit
dl
rm
ivtv.h
2726
0644
edit
dl
rm
ivtvfb.h
1143
0644
edit
dl
rm
ixjuser.h
25116
0644
edit
dl
rm
jffs2.h
6949
0644
edit
dl
rm
joystick.h
3587
0644
edit
dl
rm
kd.h
6169
0644
edit
dl
rm
kdev_t.h
298
0644
edit
dl
rm
kernel.h
2457
0644
edit
dl
rm
kernelcapi.h
959
0644
edit
dl
rm
keyboard.h
12695
0644
edit
dl
rm
keyctl.h
2984
0644
edit
dl
rm
kvm.h
20681
0644
edit
dl
rm
kvm_para.h
564
0644
edit
dl
rm
libc-compat.h
3540
0644
edit
dl
rm
limits.h
874
0644
edit
dl
rm
llc.h
2835
0644
edit
dl
rm
loop.h
2189
0644
edit
dl
rm
lp.h
3794
0644
edit
dl
rm
magic.h
2292
0644
edit
dl
rm
major.h
4655
0644
edit
dl
rm
map_to_7segment.h
7187
0644
edit
dl
rm
matroxfb.h
1429
0644
edit
dl
rm
mempolicy.h
2052
0644
edit
dl
rm
meye.h
2544
0644
edit
dl
rm
mii.h
7950
0644
edit
dl
rm
minix_fs.h
2059
0644
edit
dl
rm
mman.h
230
0644
edit
dl
rm
mmtimer.h
2054
0644
edit
dl
rm
mqueue.h
2055
0644
edit
dl
rm
mroute.h
3813
0644
edit
dl
rm
mroute6.h
3991
0644
edit
dl
rm
msdos_fs.h
5839
0644
edit
dl
rm
msg.h
2539
0644
edit
dl
rm
mtio.h
8080
0644
edit
dl
rm
nbd.h
1958
0644
edit
dl
rm
ncp.h
5055
0644
edit
dl
rm
ncp_fs.h
3354
0644
edit
dl
rm
ncp_mount.h
2112
0644
edit
dl
rm
ncp_no.h
651
0644
edit
dl
rm
neighbour.h
4060
0644
edit
dl
rm
net.h
2021
0644
edit
dl
rm
netdevice.h
1771
0644
edit
dl
rm
netfilter.h
1546
0644
edit
dl
rm
netfilter_arp.h
380
0644
edit
dl
rm
netfilter_bridge.h
735
0644
edit
dl
rm
netfilter_decnet.h
1872
0644
edit
dl
rm
netfilter_ipv4.h
2032
0644
edit
dl
rm
netfilter_ipv6.h
2050
0644
edit
dl
rm
netlink.h
4969
0644
edit
dl
rm
netrom.h
719
0644
edit
dl
rm
net_dropmon.h
1091
0644
edit
dl
rm
net_tstamp.h
3468
0644
edit
dl
rm
nfs.h
4351
0644
edit
dl
rm
nfs2.h
1405
0644
edit
dl
rm
nfs3.h
2207
0644
edit
dl
rm
nfs4.h
5763
0644
edit
dl
rm
nfs4_mount.h
1869
0644
edit
dl
rm
nfsacl.h
577
0644
edit
dl
rm
nfs_fs.h
1552
0644
edit
dl
rm
nfs_idmap.h
2238
0644
edit
dl
rm
nfs_mount.h
3200
0644
edit
dl
rm
nl80211.h
192354
0644
edit
dl
rm
nubus.h
8366
0644
edit
dl
rm
nvram.h
470
0644
edit
dl
rm
n_r3964.h
2349
0644
edit
dl
rm
oom.h
456
0644
edit
dl
rm
param.h
78
0644
edit
dl
rm
parport.h
3644
0644
edit
dl
rm
patchkey.h
831
0644
edit
dl
rm
pci.h
1485
0644
edit
dl
rm
pci_regs.h
37975
0644
edit
dl
rm
perf_event.h
21849
0644
edit
dl
rm
personality.h
1998
0644
edit
dl
rm
pfkeyv2.h
10147
0644
edit
dl
rm
pg.h
2282
0644
edit
dl
rm
phantom.h
1590
0644
edit
dl
rm
phonet.h
4349
0644
edit
dl
rm
pktcdvd.h
2623
0644
edit
dl
rm
pkt_cls.h
9293
0644
edit
dl
rm
pkt_sched.h
10887
0644
edit
dl
rm
pmu.h
5187
0644
edit
dl
rm
poll.h
96
0644
edit
dl
rm
posix_types.h
1270
0644
edit
dl
rm
ppdev.h
3147
0644
edit
dl
rm
ppp-comp.h
6516
0644
edit
dl
rm
ppp_defs.h
6461
0644
edit
dl
rm
pps.h
3939
0644
edit
dl
rm
prctl.h
4972
0644
edit
dl
rm
ptp_clock.h
3496
0644
edit
dl
rm
ptrace.h
2290
0644
edit
dl
rm
qnx4_fs.h
2265
0644
edit
dl
rm
qnxtypes.h
561
0644
edit
dl
rm
quota.h
5723
0644
edit
dl
rm
radeonfb.h
297
0644
edit
dl
rm
random.h
1085
0644
edit
dl
rm
raw.h
302
0644
edit
dl
rm
reboot.h
1280
0644
edit
dl
rm
reiserfs_fs.h
907
0644
edit
dl
rm
reiserfs_xattr.h
465
0644
edit
dl
rm
resource.h
2087
0644
edit
dl
rm
rfkill.h
3384
0644
edit
dl
rm
romfs_fs.h
1127
0644
edit
dl
rm
rose.h
2100
0644
edit
dl
rm
route.h
2269
0644
edit
dl
rm
rtc.h
3696
0644
edit
dl
rm
rtnetlink.h
15335
0644
edit
dl
rm
scc.h
4543
0644
edit
dl
rm
sched.h
2096
0644
edit
dl
rm
screen_info.h
2202
0644
edit
dl
rm
sdla.h
2837
0644
edit
dl
rm
selinux_netlink.h
1132
0644
edit
dl
rm
sem.h
3666
0644
edit
dl
rm
serial.h
6780
0644
edit
dl
rm
serial_core.h
4024
0644
edit
dl
rm
serial_reg.h
13245
0644
edit
dl
rm
serio.h
1688
0644
edit
dl
rm
shm.h
2187
0644
edit
dl
rm
signal.h
129
0644
edit
dl
rm
signalfd.h
1096
0644
edit
dl
rm
smb.h
1209
0644
edit
dl
rm
smbno.h
14520
0644
edit
dl
rm
smb_fs.h
535
0644
edit
dl
rm
smb_mount.h
468
0644
edit
dl
rm
snmp.h
11157
0644
edit
dl
rm
socket.h
738
0644
edit
dl
rm
sockios.h
5967
0644
edit
dl
rm
som.h
5480
0644
edit
dl
rm
sonet.h
2207
0644
edit
dl
rm
sonypi.h
5136
0644
edit
dl
rm
sound.h
1099
0644
edit
dl
rm
soundcard.h
46019
0644
edit
dl
rm
stat.h
1005
0644
edit
dl
rm
stddef.h
633
0644
edit
dl
rm
string.h
175
0644
edit
dl
rm
suspend_ioctls.h
1368
0644
edit
dl
rm
swab.h
6292
0644
edit
dl
rm
synclink.h
8695
0644
edit
dl
rm
sysctl.h
26495
0644
edit
dl
rm
taskstats.h
6947
0644
edit
dl
rm
tcp.h
5205
0644
edit
dl
rm
telephony.h
9051
0644
edit
dl
rm
termios.h
544
0644
edit
dl
rm
time.h
1736
0644
edit
dl
rm
times.h
215
0644
edit
dl
rm
timex.h
6221
0644
edit
dl
rm
tiocl.h
1666
0644
edit
dl
rm
tipc.h
5910
0644
edit
dl
rm
tipc_config.h
15370
0644
edit
dl
rm
toshiba.h
1284
0644
edit
dl
rm
tty.h
128
0644
edit
dl
rm
types.h
991
0644
edit
dl
rm
udf_fs_i.h
634
0644
edit
dl
rm
udp.h
1166
0644
edit
dl
rm
uinput.h
5125
0644
edit
dl
rm
uio.h
648
0644
edit
dl
rm
ultrasound.h
4499
0644
edit
dl
rm
un.h
203
0644
edit
dl
rm
unistd.h
157
0644
edit
dl
rm
usbdevice_fs.h
5340
0644
edit
dl
rm
utime.h
152
0644
edit
dl
rm
utsname.h
606
0644
edit
dl
rm
uuid.h
1769
0644
edit
dl
rm
version.h
281
0644
edit
dl
rm
veth.h
474
0644
edit
dl
rm
vhost.h
4566
0644
edit
dl
rm
videodev.h
10513
0644
edit
dl
rm
videodev2.h
66071
0644
edit
dl
rm
videotext.h
4242
0644
edit
dl
rm
virtio_9p.h
351
0644
edit
dl
rm
virtio_balloon.h
1255
0644
edit
dl
rm
virtio_blk.h
2981
0644
edit
dl
rm
virtio_config.h
1284
0644
edit
dl
rm
virtio_console.h
1406
0644
edit
dl
rm
virtio_ids.h
545
0644
edit
dl
rm
virtio_net.h
7026
0644
edit
dl
rm
virtio_pci.h
2263
0644
edit
dl
rm
virtio_ring.h
4489
0644
edit
dl
rm
virtio_rng.h
265
0644
edit
dl
rm
vt.h
3070
0644
edit
dl
rm
wait.h
580
0644
edit
dl
rm
wanrouter.h
17836
0644
edit
dl
rm
watchdog.h
2400
0644
edit
dl
rm
wimax.h
8370
0644
edit
dl
rm
wireless.h
42653
0644
edit
dl
rm
x25.h
3418
0644
edit
dl
rm
xattr.h
646
0644
edit
dl
rm
xfrm.h
10558
0644
edit
dl
rm
Edit:
/usr/include/linux/ixjuser.h
(25116B)
#ifndef __LINUX_IXJUSER_H #define __LINUX_IXJUSER_H /****************************************************************************** * * ixjuser.h * * Device Driver for Quicknet Technologies, Inc.'s Telephony cards * including the Internet PhoneJACK, Internet PhoneJACK Lite, * Internet PhoneJACK PCI, Internet LineJACK, Internet PhoneCARD and * SmartCABLE * * (c) Copyright 1999-2001 Quicknet Technologies, Inc. * * 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. * * Author: Ed Okerson, <eokerson@quicknet.net> * * Contributors: Greg Herlein, <gherlein@quicknet.net> * David W. Erhart, <derhart@quicknet.net> * John Sellers, <jsellers@quicknet.net> * Mike Preston, <mpreston@quicknet.net> * * More information about the hardware related to this driver can be found * at our website: http://www.quicknet.net * * Fixes: * * IN NO EVENT SHALL QUICKNET TECHNOLOGIES, INC. BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF QUICKNET * TECHNOLOGIES, INC.HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * QUICKNET TECHNOLOGIES, INC. SPECIFICALLY DISCLAIMS ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND QUICKNET TECHNOLOGIES, INC. HAS NO OBLIGATION * TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * *****************************************************************************/ #include <linux/telephony.h> /****************************************************************************** * * IOCTL's used for the Quicknet Telephony Cards * * If you use the IXJCTL_TESTRAM command, the card must be power cycled to * reset the SRAM values before futher use. * ******************************************************************************/ #define IXJCTL_DSP_RESET _IO ('q', 0xC0) #define IXJCTL_RING PHONE_RING #define IXJCTL_HOOKSTATE PHONE_HOOKSTATE #define IXJCTL_MAXRINGS PHONE_MAXRINGS #define IXJCTL_RING_CADENCE PHONE_RING_CADENCE #define IXJCTL_RING_START PHONE_RING_START #define IXJCTL_RING_STOP PHONE_RING_STOP #define IXJCTL_CARDTYPE _IOR ('q', 0xC1, int) #define IXJCTL_SERIAL _IOR ('q', 0xC2, int) #define IXJCTL_DSP_TYPE _IOR ('q', 0xC3, int) #define IXJCTL_DSP_VERSION _IOR ('q', 0xC4, int) #define IXJCTL_VERSION _IOR ('q', 0xDA, char *) #define IXJCTL_DSP_IDLE _IO ('q', 0xC5) #define IXJCTL_TESTRAM _IO ('q', 0xC6) /****************************************************************************** * * This group of IOCTLs deal with the record settings of the DSP * * The IXJCTL_REC_DEPTH command sets the internal buffer depth of the DSP. * Setting a lower depth reduces latency, but increases the demand of the * application to service the driver without frame loss. The DSP has 480 * bytes of physical buffer memory for the record channel so the true * maximum limit is determined by how many frames will fit in the buffer. * * 1 uncompressed (480 byte) 16-bit linear frame. * 2 uncompressed (240 byte) 8-bit A-law/mu-law frames. * 15 TrueSpeech 8.5 frames. * 20 TrueSpeech 6.3,5.3,4.8 or 4.1 frames. * * The default in the driver is currently set to 2 frames. * * The IXJCTL_REC_VOLUME and IXJCTL_PLAY_VOLUME commands both use a Q8 * number as a parameter, 0x100 scales the signal by 1.0, 0x200 scales the * signal by 2.0, 0x80 scales the signal by 0.5. No protection is given * against over-scaling, if the multiplication factor times the input * signal exceeds 16 bits, overflow distortion will occur. The default * setting is 0x100 (1.0). * * The IXJCTL_REC_LEVEL returns the average signal level (not r.m.s.) on * the most recently recorded frame as a 16 bit value. ******************************************************************************/ #define IXJCTL_REC_CODEC PHONE_REC_CODEC #define IXJCTL_REC_START PHONE_REC_START #define IXJCTL_REC_STOP PHONE_REC_STOP #define IXJCTL_REC_DEPTH PHONE_REC_DEPTH #define IXJCTL_FRAME PHONE_FRAME #define IXJCTL_REC_VOLUME PHONE_REC_VOLUME #define IXJCTL_REC_LEVEL PHONE_REC_LEVEL typedef enum { f300_640 = 4, f300_500, f1100, f350, f400, f480, f440, f620, f20_50, f133_200, f300, f300_420, f330, f300_425, f330_440, f340, f350_400, f350_440, f350_450, f360, f380_420, f392, f400_425, f400_440, f400_450, f420, f425, f425_450, f425_475, f435, f440_450, f440_480, f445, f450, f452, f475, f480_620, f494, f500, f520, f523, f525, f540_660, f587, f590, f600, f660, f700, f740, f750, f750_1450, f770, f800, f816, f850, f857_1645, f900, f900_1300, f935_1215, f941_1477, f942, f950, f950_1400, f975, f1000, f1020, f1050, f1100_1750, f1140, f1200, f1209, f1330, f1336, lf1366, f1380, f1400, f1477, f1600, f1633_1638, f1800, f1860 } IXJ_FILTER_FREQ; typedef struct { unsigned int filter; IXJ_FILTER_FREQ freq; char enable; } IXJ_FILTER; typedef struct { char enable; char en_filter; unsigned int filter; unsigned int on1; unsigned int off1; unsigned int on2; unsigned int off2; unsigned int on3; unsigned int off3; } IXJ_FILTER_CADENCE; #define IXJCTL_SET_FILTER _IOW ('q', 0xC7, IXJ_FILTER *) #define IXJCTL_SET_FILTER_RAW _IOW ('q', 0xDD, IXJ_FILTER_RAW *) #define IXJCTL_GET_FILTER_HIST _IOW ('q', 0xC8, int) #define IXJCTL_FILTER_CADENCE _IOW ('q', 0xD6, IXJ_FILTER_CADENCE *) #define IXJCTL_PLAY_CID _IO ('q', 0xD7) /****************************************************************************** * * This IOCTL allows you to reassign values in the tone index table. The * tone table has 32 entries (0 - 31), but the driver only allows entries * 13 - 27 to be modified, entry 0 is reserved for silence and 1 - 12 are * the standard DTMF digits and 28 - 31 are the DTMF tones for A, B, C & D. * The positions used internally for Call Progress Tones are as follows: * Dial Tone - 25 * Ring Back - 26 * Busy Signal - 27 * * The freq values are calculated as: * freq = cos(2 * PI * frequency / 8000) * * The most commonly needed values are already calculated and listed in the * enum IXJ_TONE_FREQ. Each tone index can have two frequencies with * different gains, if you are only using a single frequency set the unused * one to 0. * * The gain values range from 0 to 15 indicating +6dB to -24dB in 2dB * increments. * ******************************************************************************/ typedef enum { hz20 = 0x7ffa, hz50 = 0x7fe5, hz133 = 0x7f4c, hz200 = 0x7e6b, hz261 = 0x7d50, /* .63 C1 */ hz277 = 0x7cfa, /* .18 CS1 */ hz293 = 0x7c9f, /* .66 D1 */ hz300 = 0x7c75, hz311 = 0x7c32, /* .13 DS1 */ hz329 = 0x7bbf, /* .63 E1 */ hz330 = 0x7bb8, hz340 = 0x7b75, hz349 = 0x7b37, /* .23 F1 */ hz350 = 0x7b30, hz360 = 0x7ae9, hz369 = 0x7aa8, /* .99 FS1 */ hz380 = 0x7a56, hz392 = 0x79fa, /* .00 G1 */ hz400 = 0x79bb, hz415 = 0x7941, /* .30 GS1 */ hz420 = 0x7918, hz425 = 0x78ee, hz435 = 0x7899, hz440 = 0x786d, /* .00 A1 */ hz445 = 0x7842, hz450 = 0x7815, hz452 = 0x7803, hz466 = 0x7784, /* .16 AS1 */ hz475 = 0x7731, hz480 = 0x7701, hz493 = 0x7685, /* .88 B1 */ hz494 = 0x767b, hz500 = 0x7640, hz520 = 0x7578, hz523 = 0x7559, /* .25 C2 */ hz525 = 0x7544, hz540 = 0x74a7, hz554 = 0x7411, /* .37 CS2 */ hz587 = 0x72a1, /* .33 D2 */ hz590 = 0x727f, hz600 = 0x720b, hz620 = 0x711e, hz622 = 0x7106, /* .25 DS2 */ hz659 = 0x6f3b, /* .26 E2 */ hz660 = 0x6f2e, hz698 = 0x6d3d, /* .46 F2 */ hz700 = 0x6d22, hz739 = 0x6b09, /* .99 FS2 */ hz740 = 0x6afa, hz750 = 0x6a6c, hz770 = 0x694b, hz783 = 0x688b, /* .99 G2 */ hz800 = 0x678d, hz816 = 0x6698, hz830 = 0x65bf, /* .61 GS2 */ hz850 = 0x6484, hz857 = 0x6414, hz880 = 0x629f, /* .00 A2 */ hz900 = 0x6154, hz932 = 0x5f35, /* .33 AS2 */ hz935 = 0x5f01, hz941 = 0x5e9a, hz942 = 0x5e88, hz950 = 0x5dfd, hz975 = 0x5c44, hz1000 = 0x5a81, hz1020 = 0x5912, hz1050 = 0x56e2, hz1100 = 0x5320, hz1140 = 0x5007, hz1200 = 0x4b3b, hz1209 = 0x4a80, hz1215 = 0x4a02, hz1250 = 0x471c, hz1300 = 0x42e0, hz1330 = 0x4049, hz1336 = 0x3fc4, hz1366 = 0x3d22, hz1380 = 0x3be4, hz1400 = 0x3a1b, hz1450 = 0x3596, hz1477 = 0x331c, hz1500 = 0x30fb, hz1600 = 0x278d, hz1633 = 0x2462, hz1638 = 0x23e7, hz1645 = 0x233a, hz1750 = 0x18f8, hz1800 = 0x1405, hz1860 = 0xe0b, hz2100 = 0xf5f6, hz2130 = 0xf2f5, hz2450 = 0xd3b3, hz2750 = 0xb8e4 } IXJ_FREQ; typedef enum { C1 = hz261, CS1 = hz277, D1 = hz293, DS1 = hz311, E1 = hz329, F1 = hz349, FS1 = hz369, G1 = hz392, GS1 = hz415, A1 = hz440, AS1 = hz466, B1 = hz493, C2 = hz523, CS2 = hz554, D2 = hz587, DS2 = hz622, E2 = hz659, F2 = hz698, FS2 = hz739, G2 = hz783, GS2 = hz830, A2 = hz880, AS2 = hz932, } IXJ_NOTE; typedef struct { int tone_index; int freq0; int gain0; int freq1; int gain1; } IXJ_TONE; #define IXJCTL_INIT_TONE _IOW ('q', 0xC9, IXJ_TONE *) /****************************************************************************** * * The IXJCTL_TONE_CADENCE ioctl defines tone sequences used for various * Call Progress Tones (CPT). This is accomplished by setting up an array of * IXJ_CADENCE_ELEMENT structures that sequentially define the states of * the tone sequence. The tone_on_time and tone_off time are in * 250 microsecond intervals. A pointer to this array is passed to the * driver as the ce element of an IXJ_CADENCE structure. The elements_used * must be set to the number of IXJ_CADENCE_ELEMENTS in the array. The * termination variable defines what to do at the end of a cadence, the * options are to play the cadence once and stop, to repeat the last * element of the cadence indefinitely, or to repeat the entire cadence * indefinitely. The ce variable is a pointer to the array of IXJ_TONE * structures. If the freq0 variable is non-zero, the tone table contents * for the tone_index are updated to the frequencies and gains defined. It * should be noted that DTMF tones cannot be reassigned, so if DTMF tone * table indexes are used in a cadence the frequency and gain variables will * be ignored. * * If the array elements contain frequency parameters the driver will * initialize the needed tone table elements and begin playing the tone, * there is no preset limit on the number of elements in the cadence. If * there is more than one frequency used in the cadence, sequential elements * of different frequencies MUST use different tone table indexes. Only one * cadence can be played at a time. It is possible to build complex * cadences with multiple frequencies using 2 tone table indexes by * alternating between them. * ******************************************************************************/ typedef struct { int index; int tone_on_time; int tone_off_time; int freq0; int gain0; int freq1; int gain1; } IXJ_CADENCE_ELEMENT; typedef enum { PLAY_ONCE, REPEAT_LAST_ELEMENT, REPEAT_ALL } IXJ_CADENCE_TERM; typedef struct { int elements_used; IXJ_CADENCE_TERM termination; IXJ_CADENCE_ELEMENT *ce; } IXJ_CADENCE; #define IXJCTL_TONE_CADENCE _IOW ('q', 0xCA, IXJ_CADENCE *) /****************************************************************************** * * This group of IOCTLs deal with the playback settings of the DSP * ******************************************************************************/ #define IXJCTL_PLAY_CODEC PHONE_PLAY_CODEC #define IXJCTL_PLAY_START PHONE_PLAY_START #define IXJCTL_PLAY_STOP PHONE_PLAY_STOP #define IXJCTL_PLAY_DEPTH PHONE_PLAY_DEPTH #define IXJCTL_PLAY_VOLUME PHONE_PLAY_VOLUME #define IXJCTL_PLAY_LEVEL PHONE_PLAY_LEVEL /****************************************************************************** * * This group of IOCTLs deal with the Acoustic Echo Cancellation settings * of the DSP * * Issuing the IXJCTL_AEC_START command with a value of AEC_OFF has the * same effect as IXJCTL_AEC_STOP. This is to simplify slider bar * controls. IXJCTL_AEC_GET_LEVEL returns the current setting of the AEC. ******************************************************************************/ #define IXJCTL_AEC_START _IOW ('q', 0xCB, int) #define IXJCTL_AEC_STOP _IO ('q', 0xCC) #define IXJCTL_AEC_GET_LEVEL _IO ('q', 0xCD) #define AEC_OFF 0 #define AEC_LOW 1 #define AEC_MED 2 #define AEC_HIGH 3 #define AEC_AUTO 4 #define AEC_AGC 5 /****************************************************************************** * * Call Progress Tones, DTMF, etc. * IXJCTL_DTMF_OOB determines if DTMF signaling is sent as Out-Of-Band * only. If you pass a 1, DTMF is suppressed from the audio stream. * Tone on and off times are in 250 microsecond intervals so * ioctl(ixj1, IXJCTL_SET_TONE_ON_TIME, 360); * will set the tone on time of board ixj1 to 360 * 250us = 90ms * the default values of tone on and off times is 840 or 210ms ******************************************************************************/ #define IXJCTL_DTMF_READY PHONE_DTMF_READY #define IXJCTL_GET_DTMF PHONE_GET_DTMF #define IXJCTL_GET_DTMF_ASCII PHONE_GET_DTMF_ASCII #define IXJCTL_DTMF_OOB PHONE_DTMF_OOB #define IXJCTL_EXCEPTION PHONE_EXCEPTION #define IXJCTL_PLAY_TONE PHONE_PLAY_TONE #define IXJCTL_SET_TONE_ON_TIME PHONE_SET_TONE_ON_TIME #define IXJCTL_SET_TONE_OFF_TIME PHONE_SET_TONE_OFF_TIME #define IXJCTL_GET_TONE_ON_TIME PHONE_GET_TONE_ON_TIME #define IXJCTL_GET_TONE_OFF_TIME PHONE_GET_TONE_OFF_TIME #define IXJCTL_GET_TONE_STATE PHONE_GET_TONE_STATE #define IXJCTL_BUSY PHONE_BUSY #define IXJCTL_RINGBACK PHONE_RINGBACK #define IXJCTL_DIALTONE PHONE_DIALTONE #define IXJCTL_CPT_STOP PHONE_CPT_STOP /****************************************************************************** * LineJACK specific IOCTLs * * The lsb 4 bits of the LED argument represent the state of each of the 4 * LED's on the LineJACK ******************************************************************************/ #define IXJCTL_SET_LED _IOW ('q', 0xCE, int) #define IXJCTL_MIXER _IOW ('q', 0xCF, int) /****************************************************************************** * * The master volume controls use attenuation with 32 levels from 0 to -62dB * with steps of 2dB each, the defines should be OR'ed together then sent * as the parameter to the mixer command to change the mixer settings. * ******************************************************************************/ #define MIXER_MASTER_L 0x0000 #define MIXER_MASTER_R 0x0100 #define ATT00DB 0x00 #define ATT02DB 0x01 #define ATT04DB 0x02 #define ATT06DB 0x03 #define ATT08DB 0x04 #define ATT10DB 0x05 #define ATT12DB 0x06 #define ATT14DB 0x07 #define ATT16DB 0x08 #define ATT18DB 0x09 #define ATT20DB 0x0A #define ATT22DB 0x0B #define ATT24DB 0x0C #define ATT26DB 0x0D #define ATT28DB 0x0E #define ATT30DB 0x0F #define ATT32DB 0x10 #define ATT34DB 0x11 #define ATT36DB 0x12 #define ATT38DB 0x13 #define ATT40DB 0x14 #define ATT42DB 0x15 #define ATT44DB 0x16 #define ATT46DB 0x17 #define ATT48DB 0x18 #define ATT50DB 0x19 #define ATT52DB 0x1A #define ATT54DB 0x1B #define ATT56DB 0x1C #define ATT58DB 0x1D #define ATT60DB 0x1E #define ATT62DB 0x1F #define MASTER_MUTE 0x80 /****************************************************************************** * * The input volume controls use gain with 32 levels from +12dB to -50dB * with steps of 2dB each, the defines should be OR'ed together then sent * as the parameter to the mixer command to change the mixer settings. * ******************************************************************************/ #define MIXER_PORT_CD_L 0x0600 #define MIXER_PORT_CD_R 0x0700 #define MIXER_PORT_LINE_IN_L 0x0800 #define MIXER_PORT_LINE_IN_R 0x0900 #define MIXER_PORT_POTS_REC 0x0C00 #define MIXER_PORT_MIC 0x0E00 #define GAIN12DB 0x00 #define GAIN10DB 0x01 #define GAIN08DB 0x02 #define GAIN06DB 0x03 #define GAIN04DB 0x04 #define GAIN02DB 0x05 #define GAIN00DB 0x06 #define GAIN_02DB 0x07 #define GAIN_04DB 0x08 #define GAIN_06DB 0x09 #define GAIN_08DB 0x0A #define GAIN_10DB 0x0B #define GAIN_12DB 0x0C #define GAIN_14DB 0x0D #define GAIN_16DB 0x0E #define GAIN_18DB 0x0F #define GAIN_20DB 0x10 #define GAIN_22DB 0x11 #define GAIN_24DB 0x12 #define GAIN_26DB 0x13 #define GAIN_28DB 0x14 #define GAIN_30DB 0x15 #define GAIN_32DB 0x16 #define GAIN_34DB 0x17 #define GAIN_36DB 0x18 #define GAIN_38DB 0x19 #define GAIN_40DB 0x1A #define GAIN_42DB 0x1B #define GAIN_44DB 0x1C #define GAIN_46DB 0x1D #define GAIN_48DB 0x1E #define GAIN_50DB 0x1F #define INPUT_MUTE 0x80 /****************************************************************************** * * The POTS volume control use attenuation with 8 levels from 0dB to -28dB * with steps of 4dB each, the defines should be OR'ed together then sent * as the parameter to the mixer command to change the mixer settings. * ******************************************************************************/ #define MIXER_PORT_POTS_PLAY 0x0F00 #define POTS_ATT_00DB 0x00 #define POTS_ATT_04DB 0x01 #define POTS_ATT_08DB 0x02 #define POTS_ATT_12DB 0x03 #define POTS_ATT_16DB 0x04 #define POTS_ATT_20DB 0x05 #define POTS_ATT_24DB 0x06 #define POTS_ATT_28DB 0x07 #define POTS_MUTE 0x80 /****************************************************************************** * * The DAA controls the interface to the PSTN port. The driver loads the * US coefficients by default, so if you live in a different country you * need to load the set for your countries phone system. * ******************************************************************************/ #define IXJCTL_DAA_COEFF_SET _IOW ('q', 0xD0, int) #define DAA_US 1 /*PITA 8kHz */ #define DAA_UK 2 /*ISAR34 8kHz */ #define DAA_FRANCE 3 /* */ #define DAA_GERMANY 4 #define DAA_AUSTRALIA 5 #define DAA_JAPAN 6 /****************************************************************************** * * Use IXJCTL_PORT to set or query the port the card is set to. If the * argument is set to PORT_QUERY, the return value of the ioctl will * indicate which port is currently in use, otherwise it will change the * port. * ******************************************************************************/ #define IXJCTL_PORT _IOW ('q', 0xD1, int) #define PORT_QUERY 0 #define PORT_POTS 1 #define PORT_PSTN 2 #define PORT_SPEAKER 3 #define PORT_HANDSET 4 #define IXJCTL_PSTN_SET_STATE PHONE_PSTN_SET_STATE #define IXJCTL_PSTN_GET_STATE PHONE_PSTN_GET_STATE #define PSTN_ON_HOOK 0 #define PSTN_RINGING 1 #define PSTN_OFF_HOOK 2 #define PSTN_PULSE_DIAL 3 /****************************************************************************** * * The DAA Analog GAIN sets 2 parameters at one time, the receive gain (AGRR), * and the transmit gain (AGX). OR together the components and pass them * as the parameter to IXJCTL_DAA_AGAIN. The default setting is both at 0dB. * ******************************************************************************/ #define IXJCTL_DAA_AGAIN _IOW ('q', 0xD2, int) #define AGRR00DB 0x00 /* Analog gain in receive direction 0dB */ #define AGRR3_5DB 0x10 /* Analog gain in receive direction 3.5dB */ #define AGRR06DB 0x30 /* Analog gain in receive direction 6dB */ #define AGX00DB 0x00 /* Analog gain in transmit direction 0dB */ #define AGX_6DB 0x04 /* Analog gain in transmit direction -6dB */ #define AGX3_5DB 0x08 /* Analog gain in transmit direction 3.5dB */ #define AGX_2_5B 0x0C /* Analog gain in transmit direction -2.5dB */ #define IXJCTL_PSTN_LINETEST _IO ('q', 0xD3) #define IXJCTL_CID _IOR ('q', 0xD4, PHONE_CID *) #define IXJCTL_VMWI _IOR ('q', 0xD8, int) #define IXJCTL_CIDCW _IOW ('q', 0xD9, PHONE_CID *) /****************************************************************************** * * The wink duration is tunable with this ioctl. The default wink duration * is 320ms. You do not need to use this ioctl if you do not require a * different wink duration. * ******************************************************************************/ #define IXJCTL_WINK_DURATION PHONE_WINK_DURATION /****************************************************************************** * * This ioctl will connect the POTS port to the PSTN port on the LineJACK * In order for this to work properly the port selection should be set to * the PSTN port with IXJCTL_PORT prior to calling this ioctl. This will * enable conference calls between PSTN callers and network callers. * Passing a 1 to this ioctl enables the POTS<->PSTN connection while * passing a 0 turns it back off. * ******************************************************************************/ #define IXJCTL_POTS_PSTN _IOW ('q', 0xD5, int) /****************************************************************************** * * IOCTLs added by request. * * IXJCTL_HZ sets the value your Linux kernel uses for HZ as defined in * /usr/include/asm/param.h, this determines the fundamental * frequency of the clock ticks on your Linux system. The kernel * must be rebuilt if you change this value, also all modules you * use (except this one) must be recompiled. The default value * is 100, and you only need to use this IOCTL if you use some * other value. * * * IXJCTL_RATE sets the number of times per second that the driver polls * the DSP. This value cannot be larger than HZ. By * increasing both of these values, you may be able to reduce * latency because the max hang time that can exist between the * driver and the DSP will be reduced. * ******************************************************************************/ #define IXJCTL_HZ _IOW ('q', 0xE0, int) #define IXJCTL_RATE _IOW ('q', 0xE1, int) #define IXJCTL_FRAMES_READ _IOR ('q', 0xE2, unsigned long) #define IXJCTL_FRAMES_WRITTEN _IOR ('q', 0xE3, unsigned long) #define IXJCTL_READ_WAIT _IOR ('q', 0xE4, unsigned long) #define IXJCTL_WRITE_WAIT _IOR ('q', 0xE5, unsigned long) #define IXJCTL_DRYBUFFER_READ _IOR ('q', 0xE6, unsigned long) #define IXJCTL_DRYBUFFER_CLEAR _IO ('q', 0xE7) #define IXJCTL_DTMF_PRESCALE _IOW ('q', 0xE8, int) /****************************************************************************** * * This ioctl allows the user application to control what events the driver * will send signals for, and what signals it will send for which event. * By default, if signaling is enabled, all events will send SIGIO when * they occur. To disable signals for an event set the signal to 0. * ******************************************************************************/ typedef enum { SIG_DTMF_READY, SIG_HOOKSTATE, SIG_FLASH, SIG_PSTN_RING, SIG_CALLER_ID, SIG_PSTN_WINK, SIG_F0, SIG_F1, SIG_F2, SIG_F3, SIG_FC0, SIG_FC1, SIG_FC2, SIG_FC3, SIG_READ_READY = 33, SIG_WRITE_READY = 34 } IXJ_SIGEVENT; typedef struct { unsigned int event; int signal; } IXJ_SIGDEF; #define IXJCTL_SIGCTL _IOW ('q', 0xE9, IXJ_SIGDEF *) /****************************************************************************** * * These ioctls allow the user application to change the gain in the * Smart Cable of the Internet Phone Card. Sending -1 as a value will cause * return value to be the current setting. Valid values to set are 0x00 - 0x1F * * 11111 = +12 dB * 10111 = 0 dB * 00000 = -34.5 dB * * IXJCTL_SC_RXG sets the Receive gain * IXJCTL_SC_TXG sets the Transmit gain * ******************************************************************************/ #define IXJCTL_SC_RXG _IOW ('q', 0xEA, int) #define IXJCTL_SC_TXG _IOW ('q', 0xEB, int) /****************************************************************************** * * The intercom IOCTL's short the output from one card to the input of the * other and vice versa (actually done in the DSP read function). It is only * necessary to execute the IOCTL on one card, but it is necessary to have * both devices open to be able to detect hook switch changes. The record * codec and rate of each card must match the playback codec and rate of * the other card for this to work properly. * ******************************************************************************/ #define IXJCTL_INTERCOM_START _IOW ('q', 0xFD, int) #define IXJCTL_INTERCOM_STOP _IOW ('q', 0xFE, int) /****************************************************************************** * * new structure for accessing raw filter information * ******************************************************************************/ typedef struct { unsigned int filter; char enable; unsigned int coeff[19]; } IXJ_FILTER_RAW; #endif
Save
cmd:
run