/usr/include/linux
NameSizeModeActions
android/-0755rm
byteorder/-0755rm
caif/-0755rm
can/-0755rm
cifs/-0755rm
dvb/-0755rm
genwqe/-0755rm
hdlc/-0755rm
hsi/-0755rm
iio/-0755rm
isdn/-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
tc_act/-0755rm
tc_ematch/-0755rm
usb/-0755rm
wimax/-0755rm
a.out.h68920644editdlrm
acct.h37330644editdlrm
adb.h11400644editdlrm
adfs_fs.h9930644editdlrm
affs_hardblocks.h15780644editdlrm
agpgart.h39400644editdlrm
aio_abi.h33980644editdlrm
am437x-vpfe.h36810644editdlrm
apm_bios.h36830644editdlrm
arcfb.h2130644editdlrm
arm_sdei.h27510644editdlrm
aspeed-lpc-ctrl.h17800644editdlrm
aspeed-p2a-ctrl.h19060644editdlrm
atalk.h10230644editdlrm
atm.h78880644editdlrm
atmapi.h9520644editdlrm
atmarp.h12960644editdlrm
atmbr2684.h32710644editdlrm
atmclip.h5760644editdlrm
atmdev.h76770644editdlrm
atmioc.h16460644editdlrm
atmlec.h23810644editdlrm
atmmpc.h42260644editdlrm
atmppp.h6390644editdlrm
atmsap.h49700644editdlrm
atmsvc.h18530644editdlrm
atm_eni.h6480644editdlrm
atm_he.h4060644editdlrm
atm_idt77105.h9550644editdlrm
atm_nicstar.h12780644editdlrm
atm_tcp.h16220644editdlrm
atm_zatm.h15400644editdlrm
audit.h207600644editdlrm
aufs_type.h111590644editdlrm
auto_dev-ioctl.h49860644editdlrm
auto_fs.h64280644editdlrm
auto_fs4.h4510644editdlrm
auxvec.h14960644editdlrm
ax25.h28240644editdlrm
b1lli.h17170644editdlrm
batadv_packet.h203730644editdlrm
batman_adv.h163060644editdlrm
baycom.h8830644editdlrm
bcache.h84250644editdlrm
bcm933xx_hcs.h4190644editdlrm
bfs_fs.h19050644editdlrm
binfmts.h6280644editdlrm
blkpg.h16340644editdlrm
blktrace_api.h47010644editdlrm
blkzoned.h53930644editdlrm
bpf.h1385020644editdlrm
bpfilter.h4650644editdlrm
bpf_common.h13670644editdlrm
bpf_perf_event.h5290644editdlrm
bpqether.h9810644editdlrm
bsg.h24940644editdlrm
bt-bmc.h5720644editdlrm
btf.h46240644editdlrm
btrfs.h293090644editdlrm
btrfs_tree.h255070644editdlrm
can.h82130644editdlrm
capability.h117810644editdlrm
capi.h31240644editdlrm
cciss_defs.h32810644editdlrm
cciss_ioctl.h27610644editdlrm
cdrom.h288590644editdlrm
cec-funcs.h536250644editdlrm
cec.h364680644editdlrm
cgroupstats.h22190644editdlrm
chio.h53440644editdlrm
cm4000_cs.h18060644editdlrm
cn_proc.h34560644editdlrm
coda.h182160644editdlrm
coff.h125490644editdlrm
connector.h22530644editdlrm
const.h9910644editdlrm
coresight-stm.h7060644editdlrm
cramfs_fs.h35550644editdlrm
cryptouser.h53210644editdlrm
cuda.h9050644editdlrm
cyclades.h171080644editdlrm
cycx_cfm.h29900644editdlrm
dcbnl.h252910644editdlrm
dccp.h64360644editdlrm
devlink.h148600644editdlrm
dlm.h25530644editdlrm
dlmconstants.h50800644editdlrm
dlm_device.h25430644editdlrm
dlm_netlink.h11590644editdlrm
dlm_plock.h8940644editdlrm
dm-ioctl.h109880644editdlrm
dm-log-userspace.h151910644editdlrm
dma-buf.h17040644editdlrm
dns_resolver.h39490644editdlrm
dqblk_xfs.h89990644editdlrm
edd.h56040644editdlrm
efs_fs_sb.h22270644editdlrm
elf-em.h25860644editdlrm
elf-fdpic.h11240644editdlrm
elf.h136420644editdlrm
elfcore.h29950644editdlrm
errno.h230644editdlrm
errqueue.h15720644editdlrm
erspan.h10590644editdlrm
ethtool.h747840644editdlrm
eventpoll.h27430644editdlrm
fadvise.h8420644editdlrm
falloc.h35840644editdlrm
fanotify.h53690644editdlrm
fb.h164120644editdlrm
fcntl.h34380644editdlrm
fd.h116720644editdlrm
fdreg.h54200644editdlrm
fib_rules.h20360644editdlrm
fiemap.h27750644editdlrm
filter.h22160644editdlrm
firewire-cdev.h442420644editdlrm
firewire-constants.h32310644editdlrm
fou.h8940644editdlrm
fpga-dfl.h61030644editdlrm
fs.h122050644editdlrm
fscrypt.h61200644editdlrm
fsi.h22550644editdlrm
fsl_hypervisor.h73010644editdlrm
fsmap.h43930644editdlrm
fsverity.h9310644editdlrm
fuse.h204070644editdlrm
futex.h49930644editdlrm
gameport.h8970644editdlrm
genetlink.h19230644editdlrm
gen_stats.h15990644editdlrm
gfs2_ondisk.h146510644editdlrm
gigaset_dev.h14420644editdlrm
gpio.h57530644editdlrm
gsmmux.h11440644editdlrm
gtp.h6810644editdlrm
hash_info.h9710644editdlrm
hdlc.h6370644editdlrm
hdlcdrv.h29080644editdlrm
hdreg.h227030644editdlrm
hid.h19010644editdlrm
hiddev.h63450644editdlrm
hidraw.h15110644editdlrm
hpet.h7430644editdlrm
hsr_netlink.h10810644editdlrm
hw_breakpoint.h7420644editdlrm
hyperv.h105690644editdlrm
hysdn_if.h13820644editdlrm
i2c-dev.h26120644editdlrm
i2c.h71320644editdlrm
i2o-dev.h115550644editdlrm
i8k.h15280644editdlrm
icmp.h29750644editdlrm
icmpv6.h41120644editdlrm
if.h108130644editdlrm
ife.h3510644editdlrm
if_addr.h18860644editdlrm
if_addrlabel.h7210644editdlrm
if_alg.h15340644editdlrm
if_arcnet.h37170644editdlrm
if_arp.h65650644editdlrm
if_bonding.h48390644editdlrm
if_bridge.h72660644editdlrm
if_cablemodem.h9860644editdlrm
if_eql.h13490644editdlrm
if_ether.h82270644editdlrm
if_fc.h17380644editdlrm
if_fddi.h43720644editdlrm
if_frad.h30190644editdlrm
if_hippi.h42350644editdlrm
if_infiniband.h12450644editdlrm
if_link.h236750644editdlrm
if_ltalk.h2100644editdlrm
if_macsec.h58320644editdlrm
if_packet.h79550644editdlrm
if_phonet.h4240644editdlrm
if_plip.h6600644editdlrm
if_ppp.h290644editdlrm
if_pppol2tp.h32920644editdlrm
if_pppox.h48790644editdlrm
if_slip.h8720644editdlrm
if_team.h26000644editdlrm
if_tun.h40980644editdlrm
if_tunnel.h48350644editdlrm
if_vlan.h18310644editdlrm
if_x25.h8810644editdlrm
if_xdp.h28190644editdlrm
igmp.h30640644editdlrm
ila.h12460644editdlrm
in.h100750644editdlrm
in6.h75050644editdlrm
inet_diag.h45400644editdlrm
inotify.h32920644editdlrm
input-event-codes.h255680644editdlrm
input.h159850644editdlrm
in_route.h9360644editdlrm
ioctl.h1630644editdlrm
iommu.h45780644editdlrm
io_uring.h34780644editdlrm
ip.h47280644editdlrm
ip6_tunnel.h19530644editdlrm
ipc.h21010644editdlrm
ipmi.h150490644editdlrm
ipmi_bmc.h4880644editdlrm
ipmi_msgdefs.h33500644editdlrm
ipsec.h9470644editdlrm
ipv6.h39670644editdlrm
ipv6_route.h19080644editdlrm
ipx.h23470644editdlrm
ip_vs.h141350644editdlrm
irqnr.h1040644editdlrm
iso_fs.h64850644editdlrm
isst_if.h54080644editdlrm
ivtv.h30220644editdlrm
ivtvfb.h12070644editdlrm
jffs2.h68150644editdlrm
joystick.h34340644editdlrm
kcm.h8220644editdlrm
kcmp.h5220644editdlrm
kcov.h10990644editdlrm
kd.h62830644editdlrm
kdev_t.h3830644editdlrm
kernel-page-flags.h9000644editdlrm
kernel.h1940644editdlrm
kernelcapi.h10190644editdlrm
kexec.h18730644editdlrm
keyboard.h134590644editdlrm
keyctl.h58370644editdlrm
kfd_ioctl.h162630644editdlrm
kvm.h476200644editdlrm
kvm_para.h9680644editdlrm
l2tp.h56720644editdlrm
libc-compat.h82890644editdlrm
lightnvm.h50420644editdlrm
limits.h9370644editdlrm
lirc.h81020644editdlrm
llc.h31640644editdlrm
loop.h25200644editdlrm
lp.h41900644editdlrm
lwtunnel.h12730644editdlrm
magic.h36850644editdlrm
major.h47130644editdlrm
map_to_7segment.h72510644editdlrm
matroxfb.h14640644editdlrm
max2175.h10350644editdlrm
mdio.h156450644editdlrm
media-bus-format.h68220644editdlrm
media.h126410644editdlrm
mei.h19930644editdlrm
membarrier.h78990644editdlrm
memfd.h13240644editdlrm
mempolicy.h21540644editdlrm
meye.h25290644editdlrm
mic_common.h65190644editdlrm
mic_ioctl.h22520644editdlrm
mii.h82810644editdlrm
minix_fs.h21220644editdlrm
mman.h15080644editdlrm
mmtimer.h21170644editdlrm
module.h2550644editdlrm
mount.h45460644editdlrm
mpls.h23020644editdlrm
mpls_iptunnel.h7610644editdlrm
mqueue.h22010644editdlrm
mroute.h58810644editdlrm
mroute6.h49300644editdlrm
msdos_fs.h67310644editdlrm
msg.h33740644editdlrm
mtio.h81750644editdlrm
nbd-netlink.h23780644editdlrm
nbd.h30240644editdlrm
ncsi.h48280644editdlrm
ndctl.h67700644editdlrm
neighbour.h44060644editdlrm
net.h20850644editdlrm
netconf.h6140644editdlrm
netdevice.h22530644editdlrm
netfilter.h16740644editdlrm
netfilter_arp.h4450644editdlrm
netfilter_bridge.h11680644editdlrm
netfilter_ipv4.h14880644editdlrm
netfilter_ipv6.h13830644editdlrm
netlink.h78350644editdlrm
netlink_diag.h15240644editdlrm
netrom.h8070644editdlrm
net_dropmon.h28390644editdlrm
net_namespace.h7150644editdlrm
net_tstamp.h49140644editdlrm
nexthop.h15340644editdlrm
nfc.h112360644editdlrm
nfs.h45000644editdlrm
nfs2.h14680644editdlrm
nfs3.h23590644editdlrm
nfs4.h64320644editdlrm
nfs4_mount.h19320644editdlrm
nfsacl.h6680644editdlrm
nfs_fs.h16080644editdlrm
nfs_idmap.h22430644editdlrm
nfs_mount.h21420644editdlrm
nilfs2_api.h75890644editdlrm
nilfs2_ondisk.h180850644editdlrm
nl80211.h2807150644editdlrm
nsfs.h6390644editdlrm
nubus.h81910644editdlrm
nvme_ioctl.h16610644editdlrm
nvram.h5320644editdlrm
n_r3964.h24100644editdlrm
omap3isp.h208530644editdlrm
omapfb.h59180644editdlrm
oom.h5110644editdlrm
openvswitch.h376760644editdlrm
packet_diag.h16720644editdlrm
param.h1410644editdlrm
parport.h36440644editdlrm
patchkey.h8920644editdlrm
pci.h13800644editdlrm
pcitest.h7110644editdlrm
pci_regs.h572290644editdlrm
perf_event.h343570644editdlrm
personality.h20970644editdlrm
pfkeyv2.h105690644editdlrm
pg.h23940644editdlrm
phantom.h16540644editdlrm
phonet.h46770644editdlrm
pktcdvd.h26870644editdlrm
pkt_cls.h154410644editdlrm
pkt_sched.h276940644editdlrm
pmu.h54440644editdlrm
poll.h220644editdlrm
posix_acl.h12540644editdlrm
posix_acl_xattr.h11150644editdlrm
posix_types.h10980644editdlrm
ppdev.h32850644editdlrm
ppp-comp.h25270644editdlrm
ppp-ioctl.h54380644editdlrm
ppp_defs.h51070644editdlrm
pps.h47340644editdlrm
pr.h10730644editdlrm
prctl.h80730644editdlrm
psample.h7980644editdlrm
psci.h43280644editdlrm
psp-sev.h40360644editdlrm
ptp_clock.h67310644editdlrm
ptrace.h42350644editdlrm
qemu_fw_cfg.h24690644editdlrm
qnx4_fs.h23280644editdlrm
qnxtypes.h6240644editdlrm
qrtr.h8930644editdlrm
quota.h62910644editdlrm
radeonfb.h3600644editdlrm
random.h14150644editdlrm
raw.h3650644editdlrm
rds.h110810644editdlrm
reboot.h13430644editdlrm
reiserfs_fs.h7750644editdlrm
reiserfs_xattr.h5330644editdlrm
resource.h23730644editdlrm
rfkill.h36820644editdlrm
rio_cm_cdev.h32480644editdlrm
rio_mport_cdev.h93300644editdlrm
romfs_fs.h12380644editdlrm
rose.h22320644editdlrm
route.h23320644editdlrm
rpmsg.h5440644editdlrm
rseq.h49040644editdlrm
rtc.h40090644editdlrm
rtnetlink.h190550644editdlrm
rxrpc.h48970644editdlrm
scc.h45970644editdlrm
sched.h46470644editdlrm
scif_ioctl.h63820644editdlrm
screen_info.h24790644editdlrm
sctp.h347830644editdlrm
sdla.h28390644editdlrm
seccomp.h49380644editdlrm
securebits.h27040644editdlrm
sed-opal.h32970644editdlrm
seg6.h11700644editdlrm
seg6_genl.h5890644editdlrm
seg6_hmac.h4230644editdlrm
seg6_iptunnel.h9270644editdlrm
seg6_local.h20600644editdlrm
selinux_netlink.h11950644editdlrm
sem.h30430644editdlrm
serial.h38660644editdlrm
serial_core.h64360644editdlrm
serial_reg.h155520644editdlrm
serio.h20990644editdlrm
shm.h37850644editdlrm
signal.h3880644editdlrm
signalfd.h12330644editdlrm
smc.h7800644editdlrm
smc_diag.h28350644editdlrm
smiapp.h10580644editdlrm
snmp.h130140644editdlrm
socket.h8190644editdlrm
sockios.h68460644editdlrm
sock_diag.h7270644editdlrm
sonet.h22900644editdlrm
sonypi.h53090644editdlrm
sound.h12370644editdlrm
soundcard.h460380644editdlrm
stat.h61000644editdlrm
stddef.h6120644editdlrm
stm.h12750644editdlrm
string.h2380644editdlrm
suspend_ioctls.h14310644editdlrm
swab.h69460644editdlrm
switchtec_ioctl.h47680644editdlrm
synclink.h89850644editdlrm
sync_file.h28840644editdlrm
sysctl.h258870644editdlrm
sysinfo.h10490644editdlrm
target_core_user.h38990644editdlrm
taskstats.h71520644editdlrm
tcp.h112040644editdlrm
tcp_metrics.h15490644editdlrm
tee.h125810644editdlrm
termios.h5060644editdlrm
thermal.h9240644editdlrm
time.h17480644editdlrm
timerfd.h9360644editdlrm
times.h2780644editdlrm
timex.h78170644editdlrm
time_types.h9960644editdlrm
tiocl.h17290644editdlrm
tipc.h87300644editdlrm
tipc_config.h148480644editdlrm
tipc_netlink.h91560644editdlrm
tipc_sockets_diag.h4680644editdlrm
tls.h42880644editdlrm
toshiba.h19300644editdlrm
tty.h15850644editdlrm
tty_flags.h45270644editdlrm
types.h14760644editdlrm
udf_fs_i.h6970644editdlrm
udmabuf.h6430644editdlrm
udp.h16130644editdlrm
uhid.h46480644editdlrm
uinput.h92610644editdlrm
uio.h7320644editdlrm
uleds.h7980644editdlrm
ultrasound.h45620644editdlrm
un.h3840644editdlrm
unistd.h2200644editdlrm
unix_diag.h13280644editdlrm
usbdevice_fs.h83170644editdlrm
usbip.h6400644editdlrm
userfaultfd.h68110644editdlrm
userio.h15160644editdlrm
utime.h2150644editdlrm
utsname.h6690644editdlrm
uuid.h13560644editdlrm
uvcvideo.h25900644editdlrm
v4l2-common.h41770644editdlrm
v4l2-controls.h520610644editdlrm
v4l2-dv-timings.h315620644editdlrm
v4l2-mediabus.h51010644editdlrm
v4l2-subdev.h63390644editdlrm
vboxguest.h86990644editdlrm
vbox_err.h72570644editdlrm
vbox_vmmdev_types.h115090644editdlrm
version.h1170644editdlrm
veth.h2240644editdlrm
vfio.h341880644editdlrm
vfio_ccw.h8360644editdlrm
vhost.h50690644editdlrm
vhost_types.h31640644editdlrm
videodev2.h913370644editdlrm
virtio_9p.h20410644editdlrm
virtio_balloon.h50360644editdlrm
virtio_blk.h67970644editdlrm
virtio_config.h38360644editdlrm
virtio_console.h31360644editdlrm
virtio_crypto.h139330644editdlrm
virtio_fs.h4900644editdlrm
virtio_gpu.h85400644editdlrm
virtio_ids.h25920644editdlrm
virtio_input.h25060644editdlrm
virtio_iommu.h37830644editdlrm
virtio_mmio.h45860644editdlrm
virtio_net.h105490644editdlrm
virtio_pci.h70790644editdlrm
virtio_pmem.h6390644editdlrm
virtio_ring.h74300644editdlrm
virtio_rng.h2650644editdlrm
virtio_scsi.h60350644editdlrm
virtio_types.h21530644editdlrm
virtio_vsock.h30860644editdlrm
vmcore.h4550644editdlrm
vm_sockets.h53140644editdlrm
vm_sockets_diag.h9630644editdlrm
vsockmon.h18850644editdlrm
vt.h30590644editdlrm
vtpm_proxy.h17190644editdlrm
wait.h6820644editdlrm
watchdog.h23350644editdlrm
watch_queue.h17680644editdlrm
wimax.h83710644editdlrm
wireless.h427150644editdlrm
wmi.h17610644editdlrm
x25.h35620644editdlrm
xattr.h28600644editdlrm
xdp_diag.h12590644editdlrm
xfrm.h119940644editdlrm
xilinx-v4l2-controls.h29760644editdlrm
zorro.h32960644editdlrm
zorro_ids.h300650644editdlrm
Edit: /usr/include/linux/atm.h (7888B)
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* atm.h - general ATM declarations */ /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ /* * WARNING: User-space programs should not #include directly. * Instead, #include */ #ifndef _LINUX_ATM_H #define _LINUX_ATM_H /* * BEGIN_xx and END_xx markers are used for automatic generation of * documentation. Do not change them. */ #include #include #include #include /* general ATM constants */ #define ATM_CELL_SIZE 53 /* ATM cell size incl. header */ #define ATM_CELL_PAYLOAD 48 /* ATM payload size */ #define ATM_AAL0_SDU 52 /* AAL0 SDU size */ #define ATM_MAX_AAL34_PDU 65535 /* maximum AAL3/4 PDU payload */ #define ATM_AAL5_TRAILER 8 /* AAL5 trailer size */ #define ATM_MAX_AAL5_PDU 65535 /* maximum AAL5 PDU payload */ #define ATM_MAX_CDV 9999 /* maximum (default) CDV */ #define ATM_NOT_RSV_VCI 32 /* first non-reserved VCI value */ #define ATM_MAX_VPI 255 /* maximum VPI at the UNI */ #define ATM_MAX_VPI_NNI 4096 /* maximum VPI at the NNI */ #define ATM_MAX_VCI 65535 /* maximum VCI */ /* "protcol" values for the socket system call */ #define ATM_NO_AAL 0 /* AAL not specified */ #define ATM_AAL0 13 /* "raw" ATM cells */ #define ATM_AAL1 1 /* AAL1 (CBR) */ #define ATM_AAL2 2 /* AAL2 (VBR) */ #define ATM_AAL34 3 /* AAL3/4 (data) */ #define ATM_AAL5 5 /* AAL5 (data) */ /* * socket option name coding functions * * Note that __SO_ENCODE and __SO_LEVEL are somewhat a hack since the * << 22 only reserves 9 bits for the level. On some architectures * SOL_SOCKET is 0xFFFF, so that's a bit of a problem */ #define __SO_ENCODE(l,n,t) ((((l) & 0x1FF) << 22) | ((n) << 16) | \ sizeof(t)) #define __SO_LEVEL_MATCH(c,m) (((c) >> 22) == ((m) & 0x1FF)) #define __SO_NUMBER(c) (((c) >> 16) & 0x3f) #define __SO_SIZE(c) ((c) & 0x3fff) /* * ATM layer */ #define SO_SETCLP __SO_ENCODE(SOL_ATM,0,int) /* set CLP bit value - TODO */ #define SO_CIRANGE __SO_ENCODE(SOL_ATM,1,struct atm_cirange) /* connection identifier range; socket must be bound or connected */ #define SO_ATMQOS __SO_ENCODE(SOL_ATM,2,struct atm_qos) /* Quality of Service setting */ #define SO_ATMSAP __SO_ENCODE(SOL_ATM,3,struct atm_sap) /* Service Access Point */ #define SO_ATMPVC __SO_ENCODE(SOL_ATM,4,struct sockaddr_atmpvc) /* "PVC" address (also for SVCs); get only */ #define SO_MULTIPOINT __SO_ENCODE(SOL_ATM, 5, int) /* make this vc a p2mp */ /* * Note @@@: since the socket layers don't really distinguish the control and * the data plane but generally seems to be data plane-centric, any layer is * about equally wrong for the SAP. If you have a better idea about this, * please speak up ... */ /* ATM cell header (for AAL0) */ /* BEGIN_CH */ #define ATM_HDR_GFC_MASK 0xf0000000 #define ATM_HDR_GFC_SHIFT 28 #define ATM_HDR_VPI_MASK 0x0ff00000 #define ATM_HDR_VPI_SHIFT 20 #define ATM_HDR_VCI_MASK 0x000ffff0 #define ATM_HDR_VCI_SHIFT 4 #define ATM_HDR_PTI_MASK 0x0000000e #define ATM_HDR_PTI_SHIFT 1 #define ATM_HDR_CLP 0x00000001 /* END_CH */ /* PTI codings */ /* BEGIN_PTI */ #define ATM_PTI_US0 0 /* user data cell, congestion not exp, SDU-type 0 */ #define ATM_PTI_US1 1 /* user data cell, congestion not exp, SDU-type 1 */ #define ATM_PTI_UCES0 2 /* user data cell, cong. experienced, SDU-type 0 */ #define ATM_PTI_UCES1 3 /* user data cell, cong. experienced, SDU-type 1 */ #define ATM_PTI_SEGF5 4 /* segment OAM F5 flow related cell */ #define ATM_PTI_E2EF5 5 /* end-to-end OAM F5 flow related cell */ #define ATM_PTI_RSV_RM 6 /* reserved for traffic control/resource mgmt */ #define ATM_PTI_RSV 7 /* reserved */ /* END_PTI */ /* * The following items should stay in linux/atm.h, which should be linked to * netatm/atm.h */ /* Traffic description */ #define ATM_NONE 0 /* no traffic */ #define ATM_UBR 1 #define ATM_CBR 2 #define ATM_VBR 3 #define ATM_ABR 4 #define ATM_ANYCLASS 5 /* compatible with everything */ #define ATM_MAX_PCR -1 /* maximum available PCR */ struct atm_trafprm { unsigned char traffic_class; /* traffic class (ATM_UBR, ...) */ int max_pcr; /* maximum PCR in cells per second */ int pcr; /* desired PCR in cells per second */ int min_pcr; /* minimum PCR in cells per second */ int max_cdv; /* maximum CDV in microseconds */ int max_sdu; /* maximum SDU in bytes */ /* extra params for ABR */ unsigned int icr; /* Initial Cell Rate (24-bit) */ unsigned int tbe; /* Transient Buffer Exposure (24-bit) */ unsigned int frtt : 24; /* Fixed Round Trip Time (24-bit) */ unsigned int rif : 4; /* Rate Increment Factor (4-bit) */ unsigned int rdf : 4; /* Rate Decrease Factor (4-bit) */ unsigned int nrm_pres :1; /* nrm present bit */ unsigned int trm_pres :1; /* rm present bit */ unsigned int adtf_pres :1; /* adtf present bit */ unsigned int cdf_pres :1; /* cdf present bit*/ unsigned int nrm :3; /* Max # of Cells for each forward RM cell (3-bit) */ unsigned int trm :3; /* Time between forward RM cells (3-bit) */ unsigned int adtf :10; /* ACR Decrease Time Factor (10-bit) */ unsigned int cdf :3; /* Cutoff Decrease Factor (3-bit) */ unsigned int spare :9; /* spare bits */ }; struct atm_qos { struct atm_trafprm txtp; /* parameters in TX direction */ struct atm_trafprm rxtp __ATM_API_ALIGN; /* parameters in RX direction */ unsigned char aal __ATM_API_ALIGN; }; /* PVC addressing */ #define ATM_ITF_ANY -1 /* "magic" PVC address values */ #define ATM_VPI_ANY -1 #define ATM_VCI_ANY -1 #define ATM_VPI_UNSPEC -2 #define ATM_VCI_UNSPEC -2 struct sockaddr_atmpvc { unsigned short sap_family; /* address family, AF_ATMPVC */ struct { /* PVC address */ short itf; /* ATM interface */ short vpi; /* VPI (only 8 bits at UNI) */ int vci; /* VCI (only 16 bits at UNI) */ } sap_addr __ATM_API_ALIGN; /* PVC address */ }; /* SVC addressing */ #define ATM_ESA_LEN 20 /* ATM End System Address length */ #define ATM_E164_LEN 12 /* maximum E.164 number length */ #define ATM_AFI_DCC 0x39 /* DCC ATM Format */ #define ATM_AFI_ICD 0x47 /* ICD ATM Format */ #define ATM_AFI_E164 0x45 /* E.164 ATM Format */ #define ATM_AFI_LOCAL 0x49 /* Local ATM Format */ #define ATM_AFI_DCC_GROUP 0xBD /* DCC ATM Group Format */ #define ATM_AFI_ICD_GROUP 0xC5 /* ICD ATM Group Format */ #define ATM_AFI_E164_GROUP 0xC3 /* E.164 ATM Group Format */ #define ATM_AFI_LOCAL_GROUP 0xC7 /* Local ATM Group Format */ #define ATM_LIJ_NONE 0 /* no leaf-initiated join */ #define ATM_LIJ 1 /* request joining */ #define ATM_LIJ_RPJ 2 /* set to root-prompted join */ #define ATM_LIJ_NJ 3 /* set to network join */ struct sockaddr_atmsvc { unsigned short sas_family; /* address family, AF_ATMSVC */ struct { /* SVC address */ unsigned char prv[ATM_ESA_LEN];/* private ATM address */ char pub[ATM_E164_LEN+1]; /* public address (E.164) */ /* unused addresses must be bzero'ed */ char lij_type; /* role in LIJ call; one of ATM_LIJ* */ __u32 lij_id; /* LIJ call identifier */ } sas_addr __ATM_API_ALIGN; /* SVC address */ }; static __inline__ int atmsvc_addr_in_use(struct sockaddr_atmsvc addr) { return *addr.sas_addr.prv || *addr.sas_addr.pub; } static __inline__ int atmpvc_addr_in_use(struct sockaddr_atmpvc addr) { return addr.sap_addr.itf || addr.sap_addr.vpi || addr.sap_addr.vci; } /* * Some stuff for linux/sockios.h */ struct atmif_sioc { int number; int length; void *arg; }; typedef unsigned short atm_backend_t; #endif /* _LINUX_ATM_H */