├── Makefile ├── README.md ├── UPDATE.sh ├── aarch64 ├── arch ├── arm ├── arm64 ├── m68k ├── microblaze ├── mips ├── openrisc ├── powerpc ├── s390 ├── sh └── x86 ├── arm └── include │ ├── asm-generic │ ├── asm │ ├── auxvec.h │ ├── bitsperlong.h │ ├── bpf_perf_event.h │ ├── byteorder.h │ ├── errno.h │ ├── fcntl.h │ ├── hwcap.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── kvm.h │ ├── kvm_para.h │ ├── mman.h │ ├── msgbuf.h │ ├── param.h │ ├── perf_regs.h │ ├── poll.h │ ├── posix_types.h │ ├── ptrace.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── sigcontext.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── swab.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── unistd-common.h │ ├── unistd-eabi.h │ ├── unistd-oabi.h │ └── unistd.h │ ├── drm │ ├── linux │ ├── mtd │ ├── rdma │ ├── scsi │ ├── sound │ ├── video │ └── xen ├── arm64 └── include │ ├── asm-generic │ ├── asm │ ├── auxvec.h │ ├── bitsperlong.h │ ├── bpf_perf_event.h │ ├── byteorder.h │ ├── errno.h │ ├── fcntl.h │ ├── hwcap.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── kvm.h │ ├── kvm_para.h │ ├── mman.h │ ├── msgbuf.h │ ├── param.h │ ├── perf_regs.h │ ├── poll.h │ ├── posix_types.h │ ├── ptrace.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── sigcontext.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── swab.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── ucontext.h │ └── unistd.h │ ├── drm │ ├── linux │ ├── mtd │ ├── rdma │ ├── scsi │ ├── sound │ ├── video │ └── xen ├── create-dist.sh ├── generic └── include │ ├── asm-generic │ ├── auxvec.h │ ├── bitsperlong.h │ ├── bpf_perf_event.h │ ├── errno-base.h │ ├── errno.h │ ├── fcntl.h │ ├── hugetlb_encode.h │ ├── int-l64.h │ ├── int-ll64.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── kvm_para.h │ ├── mman-common.h │ ├── mman.h │ ├── msgbuf.h │ ├── param.h │ ├── poll.h │ ├── posix_types.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── shmparam.h │ ├── siginfo.h │ ├── signal-defs.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── swab.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── ucontext.h │ └── unistd.h │ ├── drm │ ├── amdgpu_drm.h │ ├── armada_drm.h │ ├── drm.h │ ├── drm_fourcc.h │ ├── drm_mode.h │ ├── drm_sarea.h │ ├── etnaviv_drm.h │ ├── exynos_drm.h │ ├── i810_drm.h │ ├── i915_drm.h │ ├── mga_drm.h │ ├── msm_drm.h │ ├── nouveau_drm.h │ ├── omap_drm.h │ ├── qxl_drm.h │ ├── r128_drm.h │ ├── radeon_drm.h │ ├── savage_drm.h │ ├── sis_drm.h │ ├── tegra_drm.h │ ├── v3d_drm.h │ ├── vc4_drm.h │ ├── vgem_drm.h │ ├── via_drm.h │ ├── virtgpu_drm.h │ └── vmwgfx_drm.h │ ├── linux │ ├── a.out.h │ ├── acct.h │ ├── adb.h │ ├── adfs_fs.h │ ├── affs_hardblocks.h │ ├── agpgart.h │ ├── aio_abi.h │ ├── am437x-vpfe.h │ ├── android │ │ └── binder.h │ ├── apm_bios.h │ ├── arcfb.h │ ├── arm_sdei.h │ ├── aspeed-lpc-ctrl.h │ ├── atalk.h │ ├── atm.h │ ├── atm_eni.h │ ├── atm_he.h │ ├── atm_idt77105.h │ ├── atm_nicstar.h │ ├── atm_tcp.h │ ├── atm_zatm.h │ ├── atmapi.h │ ├── atmarp.h │ ├── atmbr2684.h │ ├── atmclip.h │ ├── atmdev.h │ ├── atmioc.h │ ├── atmlec.h │ ├── atmmpc.h │ ├── atmppp.h │ ├── atmsap.h │ ├── atmsvc.h │ ├── audit.h │ ├── auto_dev-ioctl.h │ ├── auto_fs.h │ ├── auto_fs4.h │ ├── auxvec.h │ ├── ax25.h │ ├── b1lli.h │ ├── batadv_packet.h │ ├── batman_adv.h │ ├── baycom.h │ ├── bcache.h │ ├── bcm933xx_hcs.h │ ├── bfs_fs.h │ ├── binfmts.h │ ├── blkpg.h │ ├── blktrace_api.h │ ├── blkzoned.h │ ├── bpf.h │ ├── bpf_common.h │ ├── bpf_perf_event.h │ ├── bpfilter.h │ ├── bpqether.h │ ├── bsg.h │ ├── bt-bmc.h │ ├── btf.h │ ├── btrfs.h │ ├── btrfs_tree.h │ ├── byteorder │ │ ├── big_endian.h │ │ └── little_endian.h │ ├── caif │ │ ├── caif_socket.h │ │ └── if_caif.h │ ├── can.h │ ├── can │ │ ├── bcm.h │ │ ├── error.h │ │ ├── gw.h │ │ ├── netlink.h │ │ ├── raw.h │ │ └── vxcan.h │ ├── capability.h │ ├── capi.h │ ├── cciss_defs.h │ ├── cciss_ioctl.h │ ├── cdrom.h │ ├── cec-funcs.h │ ├── cec.h │ ├── cgroupstats.h │ ├── chio.h │ ├── cifs │ │ └── cifs_mount.h │ ├── cm4000_cs.h │ ├── cn_proc.h │ ├── coda.h │ ├── coda_psdev.h │ ├── coff.h │ ├── connector.h │ ├── const.h │ ├── coresight-stm.h │ ├── cramfs_fs.h │ ├── cryptouser.h │ ├── cuda.h │ ├── cyclades.h │ ├── cycx_cfm.h │ ├── dcbnl.h │ ├── dccp.h │ ├── devlink.h │ ├── dlm.h │ ├── dlm_device.h │ ├── dlm_netlink.h │ ├── dlm_plock.h │ ├── dlmconstants.h │ ├── dm-ioctl.h │ ├── dm-log-userspace.h │ ├── dma-buf.h │ ├── dn.h │ ├── dqblk_xfs.h │ ├── dvb │ │ ├── audio.h │ │ ├── ca.h │ │ ├── dmx.h │ │ ├── frontend.h │ │ ├── net.h │ │ ├── osd.h │ │ ├── version.h │ │ └── video.h │ ├── edd.h │ ├── efs_fs_sb.h │ ├── elf-em.h │ ├── elf-fdpic.h │ ├── elf.h │ ├── elfcore.h │ ├── errno.h │ ├── errqueue.h │ ├── erspan.h │ ├── ethtool.h │ ├── eventpoll.h │ ├── fadvise.h │ ├── falloc.h │ ├── fanotify.h │ ├── fb.h │ ├── fcntl.h │ ├── fd.h │ ├── fdreg.h │ ├── fib_rules.h │ ├── fiemap.h │ ├── filter.h │ ├── firewire-cdev.h │ ├── firewire-constants.h │ ├── flat.h │ ├── fou.h │ ├── fpga-dfl.h │ ├── fs.h │ ├── fsi.h │ ├── fsl_hypervisor.h │ ├── fsmap.h │ ├── fuse.h │ ├── futex.h │ ├── gameport.h │ ├── gen_stats.h │ ├── genetlink.h │ ├── genwqe │ │ └── genwqe_card.h │ ├── gfs2_ondisk.h │ ├── gigaset_dev.h │ ├── gpio.h │ ├── gsmmux.h │ ├── gtp.h │ ├── hash_info.h │ ├── hdlc.h │ ├── hdlc │ │ └── ioctl.h │ ├── hdlcdrv.h │ ├── hdreg.h │ ├── hid.h │ ├── hiddev.h │ ├── hidraw.h │ ├── hpet.h │ ├── hsi │ │ ├── cs-protocol.h │ │ └── hsi_char.h │ ├── hsr_netlink.h │ ├── hw_breakpoint.h │ ├── hyperv.h │ ├── hysdn_if.h │ ├── i2c-dev.h │ ├── i2c.h │ ├── i2o-dev.h │ ├── i8k.h │ ├── icmp.h │ ├── icmpv6.h │ ├── if.h │ ├── if_addr.h │ ├── if_addrlabel.h │ ├── if_alg.h │ ├── if_arcnet.h │ ├── if_arp.h │ ├── if_bonding.h │ ├── if_bridge.h │ ├── if_cablemodem.h │ ├── if_eql.h │ ├── if_ether.h │ ├── if_fc.h │ ├── if_fddi.h │ ├── if_frad.h │ ├── if_hippi.h │ ├── if_infiniband.h │ ├── if_link.h │ ├── if_ltalk.h │ ├── if_macsec.h │ ├── if_packet.h │ ├── if_phonet.h │ ├── if_plip.h │ ├── if_ppp.h │ ├── if_pppol2tp.h │ ├── if_pppox.h │ ├── if_slip.h │ ├── if_team.h │ ├── if_tun.h │ ├── if_tunnel.h │ ├── if_vlan.h │ ├── if_x25.h │ ├── if_xdp.h │ ├── ife.h │ ├── igmp.h │ ├── iio │ │ ├── events.h │ │ └── types.h │ ├── ila.h │ ├── in.h │ ├── in6.h │ ├── in_route.h │ ├── inet_diag.h │ ├── inotify.h │ ├── input-event-codes.h │ ├── input.h │ ├── ioctl.h │ ├── ip.h │ ├── ip6_tunnel.h │ ├── ip_vs.h │ ├── ipc.h │ ├── ipmi.h │ ├── ipmi_bmc.h │ ├── ipmi_msgdefs.h │ ├── ipsec.h │ ├── ipv6.h │ ├── ipv6_route.h │ ├── ipx.h │ ├── irqnr.h │ ├── isdn.h │ ├── isdn │ │ └── capicmd.h │ ├── isdn_divertif.h │ ├── isdn_ppp.h │ ├── isdnif.h │ ├── iso_fs.h │ ├── ivtv.h │ ├── ivtvfb.h │ ├── jffs2.h │ ├── joystick.h │ ├── kcm.h │ ├── kcmp.h │ ├── kcov.h │ ├── kd.h │ ├── kdev_t.h │ ├── kernel-page-flags.h │ ├── kernel.h │ ├── kernelcapi.h │ ├── kexec.h │ ├── keyboard.h │ ├── keyctl.h │ ├── kfd_ioctl.h │ ├── kvm.h │ ├── kvm_para.h │ ├── l2tp.h │ ├── libc-compat.h │ ├── lightnvm.h │ ├── limits.h │ ├── lirc.h │ ├── llc.h │ ├── loop.h │ ├── lp.h │ ├── lwtunnel.h │ ├── magic.h │ ├── major.h │ ├── map_to_7segment.h │ ├── matroxfb.h │ ├── max2175.h │ ├── mdio.h │ ├── media-bus-format.h │ ├── media.h │ ├── mei.h │ ├── membarrier.h │ ├── memfd.h │ ├── mempolicy.h │ ├── meye.h │ ├── mic_common.h │ ├── mic_ioctl.h │ ├── mii.h │ ├── minix_fs.h │ ├── mman.h │ ├── mmc │ │ └── ioctl.h │ ├── mmtimer.h │ ├── module.h │ ├── mpls.h │ ├── mpls_iptunnel.h │ ├── mqueue.h │ ├── mroute.h │ ├── mroute6.h │ ├── msdos_fs.h │ ├── msg.h │ ├── mtio.h │ ├── n_r3964.h │ ├── nbd-netlink.h │ ├── nbd.h │ ├── ncsi.h │ ├── ndctl.h │ ├── neighbour.h │ ├── net.h │ ├── net_dropmon.h │ ├── net_namespace.h │ ├── net_tstamp.h │ ├── netconf.h │ ├── netdevice.h │ ├── netfilter.h │ ├── netfilter │ │ ├── ipset │ │ │ ├── ip_set.h │ │ │ ├── ip_set_bitmap.h │ │ │ ├── ip_set_hash.h │ │ │ └── ip_set_list.h │ │ ├── nf_conntrack_common.h │ │ ├── nf_conntrack_ftp.h │ │ ├── nf_conntrack_sctp.h │ │ ├── nf_conntrack_tcp.h │ │ ├── nf_conntrack_tuple_common.h │ │ ├── nf_log.h │ │ ├── nf_nat.h │ │ ├── nf_tables.h │ │ ├── nf_tables_compat.h │ │ ├── nfnetlink.h │ │ ├── nfnetlink_acct.h │ │ ├── nfnetlink_compat.h │ │ ├── nfnetlink_conntrack.h │ │ ├── nfnetlink_cthelper.h │ │ ├── nfnetlink_cttimeout.h │ │ ├── nfnetlink_log.h │ │ ├── nfnetlink_osf.h │ │ ├── nfnetlink_queue.h │ │ ├── x_tables.h │ │ ├── xt_AUDIT.h │ │ ├── xt_CHECKSUM.h │ │ ├── xt_CLASSIFY.h │ │ ├── xt_CONNMARK.h │ │ ├── xt_CONNSECMARK.h │ │ ├── xt_CT.h │ │ ├── xt_DSCP.h │ │ ├── xt_HMARK.h │ │ ├── xt_IDLETIMER.h │ │ ├── xt_LED.h │ │ ├── xt_LOG.h │ │ ├── xt_MARK.h │ │ ├── xt_NFLOG.h │ │ ├── xt_NFQUEUE.h │ │ ├── xt_RATEEST.h │ │ ├── xt_SECMARK.h │ │ ├── xt_SYNPROXY.h │ │ ├── xt_TCPMSS.h │ │ ├── xt_TCPOPTSTRIP.h │ │ ├── xt_TEE.h │ │ ├── xt_TPROXY.h │ │ ├── xt_addrtype.h │ │ ├── xt_bpf.h │ │ ├── xt_cgroup.h │ │ ├── xt_cluster.h │ │ ├── xt_comment.h │ │ ├── xt_connbytes.h │ │ ├── xt_connlabel.h │ │ ├── xt_connlimit.h │ │ ├── xt_connmark.h │ │ ├── xt_conntrack.h │ │ ├── xt_cpu.h │ │ ├── xt_dccp.h │ │ ├── xt_devgroup.h │ │ ├── xt_dscp.h │ │ ├── xt_ecn.h │ │ ├── xt_esp.h │ │ ├── xt_hashlimit.h │ │ ├── xt_helper.h │ │ ├── xt_ipcomp.h │ │ ├── xt_iprange.h │ │ ├── xt_ipvs.h │ │ ├── xt_l2tp.h │ │ ├── xt_length.h │ │ ├── xt_limit.h │ │ ├── xt_mac.h │ │ ├── xt_mark.h │ │ ├── xt_multiport.h │ │ ├── xt_nfacct.h │ │ ├── xt_osf.h │ │ ├── xt_owner.h │ │ ├── xt_physdev.h │ │ ├── xt_pkttype.h │ │ ├── xt_policy.h │ │ ├── xt_quota.h │ │ ├── xt_rateest.h │ │ ├── xt_realm.h │ │ ├── xt_recent.h │ │ ├── xt_rpfilter.h │ │ ├── xt_sctp.h │ │ ├── xt_set.h │ │ ├── xt_socket.h │ │ ├── xt_state.h │ │ ├── xt_statistic.h │ │ ├── xt_string.h │ │ ├── xt_tcpmss.h │ │ ├── xt_tcpudp.h │ │ ├── xt_time.h │ │ └── xt_u32.h │ ├── netfilter_arp.h │ ├── netfilter_arp │ │ ├── arp_tables.h │ │ └── arpt_mangle.h │ ├── netfilter_bridge.h │ ├── netfilter_bridge │ │ ├── ebt_802_3.h │ │ ├── ebt_among.h │ │ ├── ebt_arp.h │ │ ├── ebt_arpreply.h │ │ ├── ebt_ip.h │ │ ├── ebt_ip6.h │ │ ├── ebt_limit.h │ │ ├── ebt_log.h │ │ ├── ebt_mark_m.h │ │ ├── ebt_mark_t.h │ │ ├── ebt_nat.h │ │ ├── ebt_nflog.h │ │ ├── ebt_pkttype.h │ │ ├── ebt_redirect.h │ │ ├── ebt_stp.h │ │ ├── ebt_vlan.h │ │ └── ebtables.h │ ├── netfilter_decnet.h │ ├── netfilter_ipv4.h │ ├── netfilter_ipv4 │ │ ├── ip_tables.h │ │ ├── ipt_CLUSTERIP.h │ │ ├── ipt_ECN.h │ │ ├── ipt_LOG.h │ │ ├── ipt_REJECT.h │ │ ├── ipt_TTL.h │ │ ├── ipt_ah.h │ │ ├── ipt_ecn.h │ │ └── ipt_ttl.h │ ├── netfilter_ipv6.h │ ├── netfilter_ipv6 │ │ ├── ip6_tables.h │ │ ├── ip6t_HL.h │ │ ├── ip6t_LOG.h │ │ ├── ip6t_NPT.h │ │ ├── ip6t_REJECT.h │ │ ├── ip6t_ah.h │ │ ├── ip6t_frag.h │ │ ├── ip6t_hl.h │ │ ├── ip6t_ipv6header.h │ │ ├── ip6t_mh.h │ │ ├── ip6t_opts.h │ │ ├── ip6t_rt.h │ │ └── ip6t_srh.h │ ├── netlink.h │ ├── netlink_diag.h │ ├── netrom.h │ ├── nfc.h │ ├── nfs.h │ ├── nfs2.h │ ├── nfs3.h │ ├── nfs4.h │ ├── nfs4_mount.h │ ├── nfs_fs.h │ ├── nfs_idmap.h │ ├── nfs_mount.h │ ├── nfsacl.h │ ├── nfsd │ │ ├── cld.h │ │ ├── debug.h │ │ ├── export.h │ │ ├── nfsfh.h │ │ └── stats.h │ ├── nilfs2_api.h │ ├── nilfs2_ondisk.h │ ├── nl80211.h │ ├── nsfs.h │ ├── nubus.h │ ├── nvme_ioctl.h │ ├── nvram.h │ ├── omap3isp.h │ ├── omapfb.h │ ├── oom.h │ ├── openvswitch.h │ ├── packet_diag.h │ ├── param.h │ ├── parport.h │ ├── patchkey.h │ ├── pci.h │ ├── pci_regs.h │ ├── pcitest.h │ ├── perf_event.h │ ├── personality.h │ ├── pfkeyv2.h │ ├── pg.h │ ├── phantom.h │ ├── phonet.h │ ├── pkt_cls.h │ ├── pkt_sched.h │ ├── pktcdvd.h │ ├── pmu.h │ ├── poll.h │ ├── posix_acl.h │ ├── posix_acl_xattr.h │ ├── posix_types.h │ ├── ppdev.h │ ├── ppp-comp.h │ ├── ppp-ioctl.h │ ├── ppp_defs.h │ ├── pps.h │ ├── pr.h │ ├── prctl.h │ ├── psample.h │ ├── psci.h │ ├── psp-sev.h │ ├── ptp_clock.h │ ├── ptrace.h │ ├── qemu_fw_cfg.h │ ├── qnx4_fs.h │ ├── qnxtypes.h │ ├── qrtr.h │ ├── quota.h │ ├── radeonfb.h │ ├── raid │ │ ├── md_p.h │ │ └── md_u.h │ ├── random.h │ ├── raw.h │ ├── rds.h │ ├── reboot.h │ ├── reiserfs_fs.h │ ├── reiserfs_xattr.h │ ├── resource.h │ ├── rfkill.h │ ├── rio_cm_cdev.h │ ├── rio_mport_cdev.h │ ├── romfs_fs.h │ ├── rose.h │ ├── route.h │ ├── rpmsg.h │ ├── rseq.h │ ├── rtc.h │ ├── rtnetlink.h │ ├── rxrpc.h │ ├── scc.h │ ├── sched.h │ ├── sched │ │ └── types.h │ ├── scif_ioctl.h │ ├── screen_info.h │ ├── sctp.h │ ├── sdla.h │ ├── seccomp.h │ ├── securebits.h │ ├── sed-opal.h │ ├── seg6.h │ ├── seg6_genl.h │ ├── seg6_hmac.h │ ├── seg6_iptunnel.h │ ├── seg6_local.h │ ├── selinux_netlink.h │ ├── sem.h │ ├── serial.h │ ├── serial_core.h │ ├── serial_reg.h │ ├── serio.h │ ├── shm.h │ ├── signal.h │ ├── signalfd.h │ ├── smc.h │ ├── smc_diag.h │ ├── smiapp.h │ ├── snmp.h │ ├── sock_diag.h │ ├── socket.h │ ├── sockios.h │ ├── sonet.h │ ├── sonypi.h │ ├── sound.h │ ├── soundcard.h │ ├── spi │ │ └── spidev.h │ ├── stat.h │ ├── stddef.h │ ├── stm.h │ ├── string.h │ ├── sunrpc │ │ └── debug.h │ ├── suspend_ioctls.h │ ├── swab.h │ ├── switchtec_ioctl.h │ ├── sync_file.h │ ├── synclink.h │ ├── sysctl.h │ ├── sysinfo.h │ ├── target_core_user.h │ ├── taskstats.h │ ├── tc_act │ │ ├── tc_bpf.h │ │ ├── tc_connmark.h │ │ ├── tc_csum.h │ │ ├── tc_defact.h │ │ ├── tc_gact.h │ │ ├── tc_ife.h │ │ ├── tc_ipt.h │ │ ├── tc_mirred.h │ │ ├── tc_nat.h │ │ ├── tc_pedit.h │ │ ├── tc_sample.h │ │ ├── tc_skbedit.h │ │ ├── tc_skbmod.h │ │ ├── tc_tunnel_key.h │ │ └── tc_vlan.h │ ├── tc_ematch │ │ ├── tc_em_cmp.h │ │ ├── tc_em_ipt.h │ │ ├── tc_em_meta.h │ │ ├── tc_em_nbyte.h │ │ └── tc_em_text.h │ ├── tcp.h │ ├── tcp_metrics.h │ ├── tee.h │ ├── termios.h │ ├── thermal.h │ ├── time.h │ ├── timerfd.h │ ├── times.h │ ├── timex.h │ ├── tiocl.h │ ├── tipc.h │ ├── tipc_config.h │ ├── tipc_netlink.h │ ├── tipc_sockets_diag.h │ ├── tls.h │ ├── toshiba.h │ ├── tty.h │ ├── tty_flags.h │ ├── types.h │ ├── udf_fs_i.h │ ├── udp.h │ ├── uhid.h │ ├── uinput.h │ ├── uio.h │ ├── uleds.h │ ├── ultrasound.h │ ├── un.h │ ├── unistd.h │ ├── unix_diag.h │ ├── usb │ │ ├── audio.h │ │ ├── cdc-wdm.h │ │ ├── cdc.h │ │ ├── ch11.h │ │ ├── ch9.h │ │ ├── charger.h │ │ ├── functionfs.h │ │ ├── g_printer.h │ │ ├── g_uvc.h │ │ ├── gadgetfs.h │ │ ├── midi.h │ │ ├── tmc.h │ │ └── video.h │ ├── usbdevice_fs.h │ ├── usbip.h │ ├── userfaultfd.h │ ├── userio.h │ ├── utime.h │ ├── utsname.h │ ├── uuid.h │ ├── uvcvideo.h │ ├── v4l2-common.h │ ├── v4l2-controls.h │ ├── v4l2-dv-timings.h │ ├── v4l2-mediabus.h │ ├── v4l2-subdev.h │ ├── vbox_err.h │ ├── vbox_vmmdev_types.h │ ├── vboxguest.h │ ├── version.h │ ├── veth.h │ ├── vfio.h │ ├── vfio_ccw.h │ ├── vhost.h │ ├── videodev2.h │ ├── virtio_9p.h │ ├── virtio_balloon.h │ ├── virtio_blk.h │ ├── virtio_config.h │ ├── virtio_console.h │ ├── virtio_crypto.h │ ├── virtio_gpu.h │ ├── virtio_ids.h │ ├── virtio_input.h │ ├── virtio_mmio.h │ ├── virtio_net.h │ ├── virtio_pci.h │ ├── virtio_ring.h │ ├── virtio_rng.h │ ├── virtio_scsi.h │ ├── virtio_types.h │ ├── virtio_vsock.h │ ├── vm_sockets.h │ ├── vm_sockets_diag.h │ ├── vmcore.h │ ├── vsockmon.h │ ├── vt.h │ ├── vtpm_proxy.h │ ├── wait.h │ ├── wanrouter.h │ ├── watchdog.h │ ├── wimax.h │ ├── wimax │ │ └── i2400m.h │ ├── wireless.h │ ├── wmi.h │ ├── x25.h │ ├── xattr.h │ ├── xfrm.h │ ├── xilinx-v4l2-controls.h │ ├── zorro.h │ └── zorro_ids.h │ ├── mtd │ ├── inftl-user.h │ ├── mtd-abi.h │ ├── mtd-user.h │ ├── nftl-user.h │ └── ubi-user.h │ ├── rdma │ ├── bnxt_re-abi.h │ ├── cxgb3-abi.h │ ├── cxgb4-abi.h │ ├── hfi │ │ ├── hfi1_ioctl.h │ │ └── hfi1_user.h │ ├── hns-abi.h │ ├── i40iw-abi.h │ ├── ib_user_cm.h │ ├── ib_user_ioctl_cmds.h │ ├── ib_user_ioctl_verbs.h │ ├── ib_user_mad.h │ ├── ib_user_sa.h │ ├── ib_user_verbs.h │ ├── mlx4-abi.h │ ├── mlx5-abi.h │ ├── mlx5_user_ioctl_cmds.h │ ├── mlx5_user_ioctl_verbs.h │ ├── mthca-abi.h │ ├── nes-abi.h │ ├── ocrdma-abi.h │ ├── qedr-abi.h │ ├── rdma_netlink.h │ ├── rdma_user_cm.h │ ├── rdma_user_ioctl.h │ ├── rdma_user_ioctl_cmds.h │ ├── rdma_user_rxe.h │ └── vmw_pvrdma-abi.h │ ├── scsi │ ├── cxlflash_ioctl.h │ ├── fc │ │ ├── fc_els.h │ │ ├── fc_fs.h │ │ ├── fc_gs.h │ │ └── fc_ns.h │ ├── scsi_bsg_fc.h │ ├── scsi_netlink.h │ └── scsi_netlink_fc.h │ ├── sound │ ├── asequencer.h │ ├── asoc.h │ ├── asound.h │ ├── asound_fm.h │ ├── compress_offload.h │ ├── compress_params.h │ ├── emu10k1.h │ ├── firewire.h │ ├── hdsp.h │ ├── hdspm.h │ ├── sb16_csp.h │ ├── sfnt_info.h │ ├── skl-tplg-interface.h │ ├── snd_sst_tokens.h │ ├── tlv.h │ └── usb_stream.h │ ├── video │ ├── edid.h │ ├── sisfb.h │ └── uvesafb.h │ └── xen │ ├── evtchn.h │ ├── gntalloc.h │ ├── gntdev.h │ └── privcmd.h ├── i386 ├── m68k └── include │ ├── asm-generic │ ├── asm │ ├── a.out.h │ ├── auxvec.h │ ├── bitsperlong.h │ ├── bootinfo-amiga.h │ ├── bootinfo-apollo.h │ ├── bootinfo-atari.h │ ├── bootinfo-hp300.h │ ├── bootinfo-mac.h │ ├── bootinfo-q40.h │ ├── bootinfo-vme.h │ ├── bootinfo.h │ ├── bpf_perf_event.h │ ├── byteorder.h │ ├── cachectl.h │ ├── errno.h │ ├── fcntl.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── kvm_para.h │ ├── mman.h │ ├── msgbuf.h │ ├── param.h │ ├── poll.h │ ├── posix_types.h │ ├── ptrace.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── shmparam.h │ ├── sigcontext.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── swab.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ └── unistd.h │ ├── drm │ ├── linux │ ├── mtd │ ├── rdma │ ├── scsi │ ├── sound │ ├── video │ └── xen ├── microblaze └── include │ ├── asm-generic │ ├── asm │ ├── auxvec.h │ ├── bitsperlong.h │ ├── bpf_perf_event.h │ ├── byteorder.h │ ├── elf.h │ ├── errno.h │ ├── fcntl.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── kvm_para.h │ ├── mman.h │ ├── msgbuf.h │ ├── param.h │ ├── poll.h │ ├── posix_types.h │ ├── ptrace.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── shmparam.h │ ├── sigcontext.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── swab.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── ucontext.h │ └── unistd.h │ ├── drm │ ├── linux │ ├── mtd │ ├── rdma │ ├── scsi │ ├── sound │ ├── video │ └── xen ├── mips └── include │ ├── asm-generic │ ├── asm │ ├── auxvec.h │ ├── bitfield.h │ ├── bitsperlong.h │ ├── bpf_perf_event.h │ ├── break.h │ ├── byteorder.h │ ├── cachectl.h │ ├── errno.h │ ├── fcntl.h │ ├── hwcap.h │ ├── inst.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── kvm.h │ ├── kvm_para.h │ ├── mman.h │ ├── msgbuf.h │ ├── param.h │ ├── poll.h │ ├── posix_types.h │ ├── ptrace.h │ ├── reg.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── sgidefs.h │ ├── shmbuf.h │ ├── sigcontext.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── swab.h │ ├── sysmips.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── ucontext.h │ └── unistd.h │ ├── drm │ ├── linux │ ├── mtd │ ├── rdma │ ├── scsi │ ├── sound │ ├── video │ └── xen ├── openrisc └── include │ ├── asm-generic │ ├── asm │ ├── auxvec.h │ ├── bitsperlong.h │ ├── bpf_perf_event.h │ ├── byteorder.h │ ├── elf.h │ ├── errno.h │ ├── fcntl.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── kvm_para.h │ ├── mman.h │ ├── msgbuf.h │ ├── param.h │ ├── poll.h │ ├── posix_types.h │ ├── ptrace.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── shmparam.h │ ├── sigcontext.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── swab.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── ucontext.h │ └── unistd.h │ ├── drm │ ├── linux │ ├── mtd │ ├── rdma │ ├── scsi │ ├── sound │ ├── video │ └── xen ├── or1k ├── patches ├── 0001-fix-3-do-not-wrap-linux-stat.h-in-ifdef-KERNEL.patch ├── 0002-remove-inclusion-of-sysinfo.h-in-kernel.h.patch ├── 0003-fix-redefinition-of-struct-tcphdr.patch ├── 0004-fix-linux-time.h.patch └── 0005-prevent-TCP_NLA_-definition-when-netinet-tcp.h-is-in.patch ├── powerpc └── include │ ├── asm-generic │ ├── asm │ ├── auxvec.h │ ├── bitsperlong.h │ ├── bootx.h │ ├── bpf_perf_event.h │ ├── byteorder.h │ ├── cputable.h │ ├── eeh.h │ ├── elf.h │ ├── epapr_hcalls.h │ ├── errno.h │ ├── fcntl.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── kvm.h │ ├── kvm_para.h │ ├── mman.h │ ├── msgbuf.h │ ├── nvram.h │ ├── opal-prd.h │ ├── param.h │ ├── perf_event.h │ ├── perf_regs.h │ ├── poll.h │ ├── posix_types.h │ ├── ps3fb.h │ ├── ptrace.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── sigcontext.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── spu_info.h │ ├── stat.h │ ├── statfs.h │ ├── swab.h │ ├── termbits.h │ ├── termios.h │ ├── tm.h │ ├── types.h │ ├── ucontext.h │ └── unistd.h │ ├── drm │ ├── linux │ ├── mtd │ ├── rdma │ ├── scsi │ ├── sound │ ├── video │ └── xen ├── ppc64le ├── riscv └── include │ ├── asm-generic │ ├── asm │ ├── auxvec.h │ ├── bitsperlong.h │ ├── bpf_perf_event.h │ ├── byteorder.h │ ├── elf.h │ ├── errno.h │ ├── fcntl.h │ ├── hwcap.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── mman.h │ ├── msgbuf.h │ ├── param.h │ ├── poll.h │ ├── posix_types.h │ ├── ptrace.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── sigcontext.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── swab.h │ ├── syscalls.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── ucontext.h │ └── unistd.h │ ├── drm │ ├── linux │ ├── mtd │ ├── rdma │ ├── scsi │ ├── sound │ ├── video │ └── xen ├── riscv32 ├── riscv64 ├── s390 └── include │ ├── asm-generic │ ├── asm │ ├── auxvec.h │ ├── bitsperlong.h │ ├── bpf_perf_event.h │ ├── byteorder.h │ ├── chpid.h │ ├── chsc.h │ ├── clp.h │ ├── cmb.h │ ├── dasd.h │ ├── debug.h │ ├── errno.h │ ├── fcntl.h │ ├── guarded_storage.h │ ├── hypfs.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── kvm.h │ ├── kvm_para.h │ ├── kvm_perf.h │ ├── mman.h │ ├── monwriter.h │ ├── msgbuf.h │ ├── param.h │ ├── perf_regs.h │ ├── pkey.h │ ├── poll.h │ ├── posix_types.h │ ├── ptrace.h │ ├── qeth.h │ ├── resource.h │ ├── runtime_instr.h │ ├── schid.h │ ├── sclp_ctl.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── sie.h │ ├── sigcontext.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── sthyi.h │ ├── swab.h │ ├── tape390.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── ucontext.h │ ├── unistd.h │ ├── unistd_32.h │ ├── unistd_64.h │ ├── virtio-ccw.h │ ├── vmcp.h │ ├── vtoc.h │ └── zcrypt.h │ ├── drm │ ├── linux │ ├── mtd │ ├── rdma │ ├── scsi │ ├── sound │ ├── video │ └── xen ├── sh └── include │ ├── asm-generic │ ├── asm │ ├── auxvec.h │ ├── bitsperlong.h │ ├── bpf_perf_event.h │ ├── byteorder.h │ ├── cachectl.h │ ├── cpu-features.h │ ├── errno.h │ ├── fcntl.h │ ├── hw_breakpoint.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── kvm_para.h │ ├── mman.h │ ├── msgbuf.h │ ├── param.h │ ├── poll.h │ ├── posix_types.h │ ├── posix_types_32.h │ ├── posix_types_64.h │ ├── ptrace.h │ ├── ptrace_32.h │ ├── ptrace_64.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── sigcontext.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── swab.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── ucontext.h │ ├── unistd.h │ ├── unistd_32.h │ └── unistd_64.h │ ├── drm │ ├── linux │ ├── mtd │ ├── rdma │ ├── scsi │ ├── sound │ ├── video │ └── xen ├── test.sh ├── test ├── allheaders.c ├── em_arm.c ├── ethhdr.c ├── if.c ├── if_bridge.c ├── if_ether.c ├── in6.c ├── input_namespace.c ├── kernel_sysinfo.c ├── module.c ├── ptrace.c ├── stat.c ├── tcphdr.c └── timespec.c ├── tools └── install.sh ├── x32 ├── x86 └── include │ ├── asm-generic │ ├── asm │ ├── a.out.h │ ├── auxvec.h │ ├── bitsperlong.h │ ├── boot.h │ ├── bootparam.h │ ├── bpf_perf_event.h │ ├── byteorder.h │ ├── debugreg.h │ ├── e820.h │ ├── errno.h │ ├── fcntl.h │ ├── hw_breakpoint.h │ ├── hwcap2.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── ist.h │ ├── kvm.h │ ├── kvm_para.h │ ├── kvm_perf.h │ ├── ldt.h │ ├── mce.h │ ├── mman.h │ ├── msgbuf.h │ ├── msr.h │ ├── mtrr.h │ ├── param.h │ ├── perf_regs.h │ ├── poll.h │ ├── posix_types.h │ ├── posix_types_32.h │ ├── posix_types_64.h │ ├── posix_types_x32.h │ ├── prctl.h │ ├── processor-flags.h │ ├── ptrace-abi.h │ ├── ptrace.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── sigcontext.h │ ├── sigcontext32.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── svm.h │ ├── swab.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── ucontext.h │ ├── unistd.h │ ├── unistd_32.h │ ├── unistd_64.h │ ├── unistd_x32.h │ ├── vm86.h │ ├── vmx.h │ └── vsyscall.h │ ├── drm │ ├── linux │ ├── mtd │ ├── rdma │ ├── scsi │ ├── sound │ ├── video │ └── xen ├── x86_64 └── x86_64-x32 /Makefile: -------------------------------------------------------------------------------- 1 | # Use config.mak to override any of the following variables. 2 | # Or pass them to make, i.e. "make prefix=/usr install" 3 | # Do not make changes here. 4 | 5 | prefix = /usr/local 6 | 7 | LEVELS = * */* */*/* */*/*/* */*/*/*/* 8 | ALL_INCLUDES = $(sort $(wildcard $(LEVELS:%=$(ARCH)/include/%.h))) 9 | INSTALL_HDR_PATH = $(DESTDIR)$(prefix) 10 | INSTALL_CMD=tools/install.sh 11 | 12 | -include config.mak 13 | 14 | ARCH ?= $(error ARCH must be set) 15 | 16 | all: 17 | defconfig: 18 | mmu_config: 19 | g5_defconfig: 20 | 21 | headers_install: install 22 | 23 | install: $(ALL_INCLUDES:$(ARCH)/include/%=$(INSTALL_HDR_PATH)/include/%) 24 | 25 | $(INSTALL_HDR_PATH)/include/%: $(ARCH)/include/% 26 | $(INSTALL_CMD) -D -m 644 $< $@ 27 | 28 | .PHONY: install headers_install all defconfig mmu_config g5_defconfig 29 | -------------------------------------------------------------------------------- /aarch64: -------------------------------------------------------------------------------- 1 | arm64 -------------------------------------------------------------------------------- /arch/arm: -------------------------------------------------------------------------------- 1 | ../arm -------------------------------------------------------------------------------- /arch/arm64: -------------------------------------------------------------------------------- 1 | ../arm64 -------------------------------------------------------------------------------- /arch/m68k: -------------------------------------------------------------------------------- 1 | ../m68k -------------------------------------------------------------------------------- /arch/microblaze: -------------------------------------------------------------------------------- 1 | ../microblaze -------------------------------------------------------------------------------- /arch/mips: -------------------------------------------------------------------------------- 1 | ../mips -------------------------------------------------------------------------------- /arch/openrisc: -------------------------------------------------------------------------------- 1 | ../openrisc -------------------------------------------------------------------------------- /arch/powerpc: -------------------------------------------------------------------------------- 1 | ../powerpc -------------------------------------------------------------------------------- /arch/s390: -------------------------------------------------------------------------------- 1 | ../s390 -------------------------------------------------------------------------------- /arch/sh: -------------------------------------------------------------------------------- 1 | ../sh -------------------------------------------------------------------------------- /arch/x86: -------------------------------------------------------------------------------- 1 | ../x86 -------------------------------------------------------------------------------- /arm/include/asm-generic: -------------------------------------------------------------------------------- 1 | ../../generic/include/asm-generic -------------------------------------------------------------------------------- /arm/include/asm/auxvec.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_AUXVEC_H 3 | #define __ASM_AUXVEC_H 4 | 5 | /* VDSO location */ 6 | #define AT_SYSINFO_EHDR 33 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /arm/include/asm/bitsperlong.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * arch/arm/include/asm/byteorder.h 4 | * 5 | * ARM Endian-ness. In little endian mode, the data bus is connected such 6 | * that byte accesses appear as: 7 | * 0 = d0...d7, 1 = d8...d15, 2 = d16...d23, 3 = d24...d31 8 | * and word accesses (data or instruction) appear as: 9 | * d0...d31 10 | * 11 | * When in big endian mode, byte accesses appear as: 12 | * 0 = d24...d31, 1 = d16...d23, 2 = d8...d15, 3 = d0...d7 13 | * and word accesses (data or instruction) appear as: 14 | * d0...d31 15 | */ 16 | #ifndef __ASM_ARM_BYTEORDER_H 17 | #define __ASM_ARM_BYTEORDER_H 18 | 19 | #ifdef __ARMEB__ 20 | #include 21 | #else 22 | #include 23 | #endif 24 | 25 | #endif 26 | 27 | -------------------------------------------------------------------------------- /arm/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ARM_FCNTL_H 3 | #define _ARM_FCNTL_H 4 | 5 | #define O_DIRECTORY 040000 /* must be a directory */ 6 | #define O_NOFOLLOW 0100000 /* don't follow links */ 7 | #define O_DIRECT 0200000 /* direct disk access hint - currently ignored */ 8 | #define O_LARGEFILE 0400000 9 | 10 | #include 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /arm/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/ioctls.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_ARM_IOCTLS_H 3 | #define __ASM_ARM_IOCTLS_H 4 | 5 | #define FIOQSIZE 0x545E 6 | 7 | #include 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /arm/include/asm/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/kvm_para.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #include 3 | -------------------------------------------------------------------------------- /arm/include/asm/mman.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define arch_mmap_check(addr, len, flags) \ 4 | (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0) 5 | -------------------------------------------------------------------------------- /arm/include/asm/msgbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/param.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/perf_regs.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_ARM_PERF_REGS_H 3 | #define _ASM_ARM_PERF_REGS_H 4 | 5 | enum perf_event_arm_regs { 6 | PERF_REG_ARM_R0, 7 | PERF_REG_ARM_R1, 8 | PERF_REG_ARM_R2, 9 | PERF_REG_ARM_R3, 10 | PERF_REG_ARM_R4, 11 | PERF_REG_ARM_R5, 12 | PERF_REG_ARM_R6, 13 | PERF_REG_ARM_R7, 14 | PERF_REG_ARM_R8, 15 | PERF_REG_ARM_R9, 16 | PERF_REG_ARM_R10, 17 | PERF_REG_ARM_FP, 18 | PERF_REG_ARM_IP, 19 | PERF_REG_ARM_SP, 20 | PERF_REG_ARM_LR, 21 | PERF_REG_ARM_PC, 22 | PERF_REG_ARM_MAX, 23 | }; 24 | #endif /* _ASM_ARM_PERF_REGS_H */ 25 | -------------------------------------------------------------------------------- /arm/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/sembuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/shmbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/siginfo.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/socket.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/statfs.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASMARM_STATFS_H 3 | #define _ASMARM_STATFS_H 4 | 5 | /* 6 | * With EABI there is 4 bytes of padding added to this structure. 7 | * Let's pack it so the padding goes away to simplify dual ABI support. 8 | * Note that user space does NOT have to pack this structure. 9 | */ 10 | #define ARCH_PACK_STATFS64 __attribute__((packed,aligned(4))) 11 | 12 | #include 13 | #endif 14 | -------------------------------------------------------------------------------- /arm/include/asm/termbits.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/termios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm/include/asm/unistd-eabi.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_ARM_UNISTD_EABI_H 2 | #define _ASM_ARM_UNISTD_EABI_H 1 3 | 4 | 5 | #endif /* _ASM_ARM_UNISTD_EABI_H */ 6 | -------------------------------------------------------------------------------- /arm/include/asm/unistd-oabi.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_ARM_UNISTD_OABI_H 2 | #define _ASM_ARM_UNISTD_OABI_H 1 3 | 4 | #define __NR_time (__NR_SYSCALL_BASE + 13) 5 | #define __NR_umount (__NR_SYSCALL_BASE + 22) 6 | #define __NR_stime (__NR_SYSCALL_BASE + 25) 7 | #define __NR_alarm (__NR_SYSCALL_BASE + 27) 8 | #define __NR_utime (__NR_SYSCALL_BASE + 30) 9 | #define __NR_getrlimit (__NR_SYSCALL_BASE + 76) 10 | #define __NR_select (__NR_SYSCALL_BASE + 82) 11 | #define __NR_readdir (__NR_SYSCALL_BASE + 89) 12 | #define __NR_mmap (__NR_SYSCALL_BASE + 90) 13 | #define __NR_socketcall (__NR_SYSCALL_BASE + 102) 14 | #define __NR_syscall (__NR_SYSCALL_BASE + 113) 15 | #define __NR_ipc (__NR_SYSCALL_BASE + 117) 16 | 17 | #endif /* _ASM_ARM_UNISTD_OABI_H */ 18 | -------------------------------------------------------------------------------- /arm/include/drm: -------------------------------------------------------------------------------- 1 | ../../generic/include/drm -------------------------------------------------------------------------------- /arm/include/linux: -------------------------------------------------------------------------------- 1 | ../../generic/include/linux -------------------------------------------------------------------------------- /arm/include/mtd: -------------------------------------------------------------------------------- 1 | ../../generic/include/mtd -------------------------------------------------------------------------------- /arm/include/rdma: -------------------------------------------------------------------------------- 1 | ../../generic/include/rdma -------------------------------------------------------------------------------- /arm/include/scsi: -------------------------------------------------------------------------------- 1 | ../../generic/include/scsi -------------------------------------------------------------------------------- /arm/include/sound: -------------------------------------------------------------------------------- 1 | ../../generic/include/sound -------------------------------------------------------------------------------- /arm/include/video: -------------------------------------------------------------------------------- 1 | ../../generic/include/video -------------------------------------------------------------------------------- /arm/include/xen: -------------------------------------------------------------------------------- 1 | ../../generic/include/xen -------------------------------------------------------------------------------- /arm64/include/asm-generic: -------------------------------------------------------------------------------- 1 | ../../generic/include/asm-generic -------------------------------------------------------------------------------- /arm64/include/asm/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef __ASM_BPF_PERF_EVENT_H__ 3 | #define __ASM_BPF_PERF_EVENT_H__ 4 | 5 | #include 6 | 7 | typedef struct user_pt_regs bpf_user_pt_regs_t; 8 | 9 | #endif /* __ASM_BPF_PERF_EVENT_H__ */ 10 | -------------------------------------------------------------------------------- /arm64/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/ioctls.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/kvm_para.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/mman.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/msgbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/posix_types.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_POSIX_TYPES_H 3 | #define __ASM_POSIX_TYPES_H 4 | 5 | typedef unsigned short __kernel_old_uid_t; 6 | typedef unsigned short __kernel_old_gid_t; 7 | #define __kernel_old_uid_t __kernel_old_uid_t 8 | 9 | #include 10 | 11 | #endif /* __ASM_POSIX_TYPES_H */ 12 | -------------------------------------------------------------------------------- /arm64/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/sembuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/shmbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/socket.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/stat.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Copyright (C) 2012 ARM Ltd. 4 | * 5 | * This program is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License version 2 as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program. If not, see . 16 | */ 17 | #include 18 | -------------------------------------------------------------------------------- /arm64/include/asm/swab.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/termbits.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/termios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/asm/types.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /arm64/include/drm: -------------------------------------------------------------------------------- 1 | ../../generic/include/drm -------------------------------------------------------------------------------- /arm64/include/linux: -------------------------------------------------------------------------------- 1 | ../../generic/include/linux -------------------------------------------------------------------------------- /arm64/include/mtd: -------------------------------------------------------------------------------- 1 | ../../generic/include/mtd -------------------------------------------------------------------------------- /arm64/include/rdma: -------------------------------------------------------------------------------- 1 | ../../generic/include/rdma -------------------------------------------------------------------------------- /arm64/include/scsi: -------------------------------------------------------------------------------- 1 | ../../generic/include/scsi -------------------------------------------------------------------------------- /arm64/include/sound: -------------------------------------------------------------------------------- 1 | ../../generic/include/sound -------------------------------------------------------------------------------- /arm64/include/video: -------------------------------------------------------------------------------- 1 | ../../generic/include/video -------------------------------------------------------------------------------- /arm64/include/xen: -------------------------------------------------------------------------------- 1 | ../../generic/include/xen -------------------------------------------------------------------------------- /create-dist.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if [ -z "$VER" ] ; then 3 | echo set VER! 4 | exit 5 | fi 6 | me=`pwd` 7 | 8 | proj=linux-headers 9 | projver=${proj}-${VER} 10 | repo="$me" 11 | 12 | tempdir=/tmp/${proj}-0000 13 | rm -rf $tempdir 14 | mkdir -p $tempdir 15 | 16 | cd $tempdir || { echo ERROR CDing ; exit 1 ; } 17 | git clone $repo $projver 18 | #(cd $projver ; git checkout v$VER ) 19 | rm -rf $projver/.git 20 | rm -rf $projver/.gitignore 21 | rm -rf $projver/docs 22 | rm $projver/*.sh 23 | 24 | tar cf $proj.tar $projver/ 25 | xz -z -9 -e -c < $proj.tar > $proj.tar.xz 26 | mv $proj.tar.xz $me/$projver.tar.xz 27 | echo done 28 | -------------------------------------------------------------------------------- /generic/include/asm-generic/auxvec.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_AUXVEC_H 2 | #define __ASM_GENERIC_AUXVEC_H 3 | /* 4 | * Not all architectures need their own auxvec.h, the most 5 | * common definitions are already in linux/auxvec.h. 6 | */ 7 | 8 | #endif /* __ASM_GENERIC_AUXVEC_H */ 9 | -------------------------------------------------------------------------------- /generic/include/asm-generic/bitsperlong.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_GENERIC_BITS_PER_LONG 3 | #define __ASM_GENERIC_BITS_PER_LONG 4 | 5 | /* 6 | * There seems to be no way of detecting this automatically from user 7 | * space, so 64 bit architectures should override this in their 8 | * bitsperlong.h. In particular, an architecture that supports 9 | * both 32 and 64 bit user space must not rely on CONFIG_64BIT 10 | * to decide it, but rather check a compiler provided macro. 11 | */ 12 | #ifndef __BITS_PER_LONG 13 | #define __BITS_PER_LONG 32 14 | #endif 15 | 16 | #endif /* __ASM_GENERIC_BITS_PER_LONG */ 17 | -------------------------------------------------------------------------------- /generic/include/asm-generic/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_BPF_PERF_EVENT_H__ 2 | #define __ASM_GENERIC_BPF_PERF_EVENT_H__ 3 | 4 | #include 5 | 6 | /* Export kernel pt_regs structure */ 7 | typedef struct pt_regs bpf_user_pt_regs_t; 8 | 9 | #endif /* __ASM_GENERIC_BPF_PERF_EVENT_H__ */ 10 | -------------------------------------------------------------------------------- /generic/include/asm-generic/kvm_para.h: -------------------------------------------------------------------------------- 1 | /* 2 | * There isn't anything here, but the file must not be empty or patch 3 | * will delete it. 4 | */ 5 | -------------------------------------------------------------------------------- /generic/include/asm-generic/param.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_GENERIC_PARAM_H 3 | #define __ASM_GENERIC_PARAM_H 4 | 5 | #ifndef HZ 6 | #define HZ 100 7 | #endif 8 | 9 | #ifndef EXEC_PAGESIZE 10 | #define EXEC_PAGESIZE 4096 11 | #endif 12 | 13 | #ifndef NOGROUP 14 | #define NOGROUP (-1) 15 | #endif 16 | 17 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ 18 | 19 | 20 | #endif /* __ASM_GENERIC_PARAM_H */ 21 | -------------------------------------------------------------------------------- /generic/include/asm-generic/setup.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_GENERIC_SETUP_H 3 | #define __ASM_GENERIC_SETUP_H 4 | 5 | #define COMMAND_LINE_SIZE 512 6 | 7 | #endif /* __ASM_GENERIC_SETUP_H */ 8 | -------------------------------------------------------------------------------- /generic/include/asm-generic/shmparam.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_GENERIC_SHMPARAM_H 3 | #define __ASM_GENERIC_SHMPARAM_H 4 | 5 | #define SHMLBA PAGE_SIZE /* attach addr a multiple of this */ 6 | 7 | #endif /* _ASM_GENERIC_SHMPARAM_H */ 8 | -------------------------------------------------------------------------------- /generic/include/asm-generic/sockios.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_GENERIC_SOCKIOS_H 3 | #define __ASM_GENERIC_SOCKIOS_H 4 | 5 | /* Socket-level I/O control calls. */ 6 | #define FIOSETOWN 0x8901 7 | #define SIOCSPGRP 0x8902 8 | #define FIOGETOWN 0x8903 9 | #define SIOCGPGRP 0x8904 10 | #define SIOCATMARK 0x8905 11 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ 12 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ 13 | 14 | #endif /* __ASM_GENERIC_SOCKIOS_H */ 15 | -------------------------------------------------------------------------------- /generic/include/asm-generic/swab.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_GENERIC_SWAB_H 3 | #define _ASM_GENERIC_SWAB_H 4 | 5 | #include 6 | 7 | /* 8 | * 32 bit architectures typically (but not always) want to 9 | * set __SWAB_64_THRU_32__. In user space, this is only 10 | * valid if the compiler supports 64 bit data types. 11 | */ 12 | 13 | #if __BITS_PER_LONG == 32 14 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__) 15 | #define __SWAB_64_THRU_32__ 16 | #endif 17 | #endif 18 | 19 | #endif /* _ASM_GENERIC_SWAB_H */ 20 | -------------------------------------------------------------------------------- /generic/include/asm-generic/types.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_GENERIC_TYPES_H 3 | #define _ASM_GENERIC_TYPES_H 4 | /* 5 | * int-ll64 is used everywhere now. 6 | */ 7 | #include 8 | 9 | #endif /* _ASM_GENERIC_TYPES_H */ 10 | -------------------------------------------------------------------------------- /generic/include/asm-generic/ucontext.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_GENERIC_UCONTEXT_H 3 | #define __ASM_GENERIC_UCONTEXT_H 4 | 5 | struct ucontext { 6 | unsigned long uc_flags; 7 | struct ucontext *uc_link; 8 | stack_t uc_stack; 9 | struct sigcontext uc_mcontext; 10 | sigset_t uc_sigmask; /* mask last for extensibility */ 11 | }; 12 | 13 | #endif /* __ASM_GENERIC_UCONTEXT_H */ 14 | -------------------------------------------------------------------------------- /generic/include/linux/arcfb.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_ARCFB_H__ 3 | #define __LINUX_ARCFB_H__ 4 | 5 | #define FBIO_WAITEVENT _IO('F', 0x88) 6 | #define FBIO_GETCONTROL2 _IOR('F', 0x89, size_t) 7 | 8 | #endif 9 | 10 | -------------------------------------------------------------------------------- /generic/include/linux/atm_eni.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* atm_eni.h - Driver-specific declarations of the ENI driver (for use by 3 | driver-specific utilities) */ 4 | 5 | /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ 6 | 7 | 8 | #ifndef LINUX_ATM_ENI_H 9 | #define LINUX_ATM_ENI_H 10 | 11 | #include 12 | 13 | 14 | struct eni_multipliers { 15 | int tx,rx; /* values are in percent and must be > 100 */ 16 | }; 17 | 18 | 19 | #define ENI_MEMDUMP _IOW('a',ATMIOC_SARPRV,struct atmif_sioc) 20 | /* printk memory map */ 21 | #define ENI_SETMULT _IOW('a',ATMIOC_SARPRV+7,struct atmif_sioc) 22 | /* set buffer multipliers */ 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /generic/include/linux/atm_he.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* atm_he.h */ 3 | 4 | #ifndef LINUX_ATM_HE_H 5 | #define LINUX_ATM_HE_H 6 | 7 | #include 8 | 9 | #define HE_GET_REG _IOW('a', ATMIOC_SARPRV, struct atmif_sioc) 10 | 11 | #define HE_REGTYPE_PCI 1 12 | #define HE_REGTYPE_RCM 2 13 | #define HE_REGTYPE_TCM 3 14 | #define HE_REGTYPE_MBOX 4 15 | 16 | struct he_ioctl_reg { 17 | unsigned addr, val; 18 | char type; 19 | }; 20 | 21 | #endif /* LINUX_ATM_HE_H */ 22 | -------------------------------------------------------------------------------- /generic/include/linux/atmclip.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* atmclip.h - Classical IP over ATM */ 3 | 4 | /* Written 1995-1998 by Werner Almesberger, EPFL LRC/ICA */ 5 | 6 | 7 | #ifndef LINUX_ATMCLIP_H 8 | #define LINUX_ATMCLIP_H 9 | 10 | #include 11 | #include 12 | 13 | 14 | #define RFC1483LLC_LEN 8 /* LLC+OUI+PID = 8 */ 15 | #define RFC1626_MTU 9180 /* RFC1626 default MTU */ 16 | 17 | #define CLIP_DEFAULT_IDLETIMER 1200 /* 20 minutes, see RFC1755 */ 18 | #define CLIP_CHECK_INTERVAL 10 /* check every ten seconds */ 19 | 20 | #define SIOCMKCLIP _IO('a',ATMIOC_CLIP) /* create IP interface */ 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /generic/include/linux/atmppp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* atmppp.h - RFC2364 PPPoATM */ 3 | 4 | /* Written 2000 by Mitchell Blank Jr */ 5 | 6 | #ifndef _LINUX_ATMPPP_H 7 | #define _LINUX_ATMPPP_H 8 | 9 | #include 10 | 11 | #define PPPOATM_ENCAPS_AUTODETECT (0) 12 | #define PPPOATM_ENCAPS_VC (1) 13 | #define PPPOATM_ENCAPS_LLC (2) 14 | 15 | /* 16 | * This is for the ATM_SETBACKEND call - these are like socket families: 17 | * the first element of the structure is the backend number and the rest 18 | * is per-backend specific 19 | */ 20 | struct atm_backend_ppp { 21 | atm_backend_t backend_num; /* ATM_BACKEND_PPP */ 22 | int encaps; /* PPPOATM_ENCAPS_* */ 23 | }; 24 | 25 | #endif /* _LINUX_ATMPPP_H */ 26 | -------------------------------------------------------------------------------- /generic/include/linux/auto_fs4.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 | /* 3 | * Copyright 1999-2000 Jeremy Fitzhardinge 4 | * 5 | * This file is part of the Linux kernel and is made available under 6 | * the terms of the GNU General Public License, version 2, or at your 7 | * option, any later version, incorporated herein by reference. 8 | */ 9 | 10 | #ifndef _LINUX_AUTO_FS4_H 11 | #define _LINUX_AUTO_FS4_H 12 | 13 | #include 14 | 15 | #endif /* _LINUX_AUTO_FS4_H */ 16 | -------------------------------------------------------------------------------- /generic/include/linux/bcm933xx_hcs.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Broadcom Cable Modem firmware format 4 | */ 5 | 6 | #ifndef __BCM933XX_HCS_H 7 | #define __BCM933XX_HCS_H 8 | 9 | #include 10 | 11 | struct bcm_hcs { 12 | __u16 magic; 13 | __u16 control; 14 | __u16 rev_maj; 15 | __u16 rev_min; 16 | __u32 build_date; 17 | __u32 filelen; 18 | __u32 ldaddress; 19 | char filename[64]; 20 | __u16 hcs; 21 | __u16 her_znaet_chto; 22 | __u32 crc; 23 | }; 24 | 25 | #endif /* __BCM933XX_HCS */ 26 | -------------------------------------------------------------------------------- /generic/include/linux/binfmts.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_BINFMTS_H 3 | #define _LINUX_BINFMTS_H 4 | 5 | #include 6 | 7 | struct pt_regs; 8 | 9 | /* 10 | * These are the maximum length and maximum number of strings passed to the 11 | * execve() system call. MAX_ARG_STRLEN is essentially random but serves to 12 | * prevent the kernel from being unduly impacted by misaddressed pointers. 13 | * MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer. 14 | */ 15 | #define MAX_ARG_STRLEN (PAGE_SIZE * 32) 16 | #define MAX_ARG_STRINGS 0x7FFFFFFF 17 | 18 | /* sizeof(linux_binprm->buf) */ 19 | #define BINPRM_BUF_SIZE 128 20 | 21 | #endif /* _LINUX_BINFMTS_H */ 22 | -------------------------------------------------------------------------------- /generic/include/linux/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* Copyright (c) 2016 Facebook 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of version 2 of the GNU General Public 6 | * License as published by the Free Software Foundation. 7 | */ 8 | #ifndef __LINUX_BPF_PERF_EVENT_H__ 9 | #define __LINUX_BPF_PERF_EVENT_H__ 10 | 11 | #include 12 | 13 | struct bpf_perf_event_data { 14 | bpf_user_pt_regs_t regs; 15 | __u64 sample_period; 16 | __u64 addr; 17 | }; 18 | 19 | #endif /* __LINUX_BPF_PERF_EVENT_H__ */ 20 | -------------------------------------------------------------------------------- /generic/include/linux/bpfilter.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef _LINUX_BPFILTER_H 3 | #define _LINUX_BPFILTER_H 4 | 5 | #include 6 | 7 | enum { 8 | BPFILTER_IPT_SO_SET_REPLACE = 64, 9 | BPFILTER_IPT_SO_SET_ADD_COUNTERS = 65, 10 | BPFILTER_IPT_SET_MAX, 11 | }; 12 | 13 | enum { 14 | BPFILTER_IPT_SO_GET_INFO = 64, 15 | BPFILTER_IPT_SO_GET_ENTRIES = 65, 16 | BPFILTER_IPT_SO_GET_REVISION_MATCH = 66, 17 | BPFILTER_IPT_SO_GET_REVISION_TARGET = 67, 18 | BPFILTER_IPT_GET_MAX, 19 | }; 20 | 21 | #endif /* _LINUX_BPFILTER_H */ 22 | -------------------------------------------------------------------------------- /generic/include/linux/bt-bmc.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 | /* 3 | * Copyright (c) 2015-2016, IBM Corporation. 4 | * 5 | * This program is free software; you can redistribute it and/or 6 | * modify it under the terms of the GNU General Public License 7 | * as published by the Free Software Foundation; either version 8 | * 2 of the License, or (at your option) any later version. 9 | */ 10 | 11 | #ifndef _LINUX_BT_BMC_H 12 | #define _LINUX_BT_BMC_H 13 | 14 | #include 15 | 16 | #define __BT_BMC_IOCTL_MAGIC 0xb1 17 | #define BT_BMC_IOCTL_SMS_ATN _IO(__BT_BMC_IOCTL_MAGIC, 0x00) 18 | 19 | #endif /* _LINUX_BT_BMC_H */ 20 | -------------------------------------------------------------------------------- /generic/include/linux/can/vxcan.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _CAN_VXCAN_H 3 | #define _CAN_VXCAN_H 4 | 5 | enum { 6 | VXCAN_INFO_UNSPEC, 7 | VXCAN_INFO_PEER, 8 | 9 | __VXCAN_INFO_MAX 10 | #define VXCAN_INFO_MAX (__VXCAN_INFO_MAX - 1) 11 | }; 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /generic/include/linux/coda_psdev.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __CODA_PSDEV_H 3 | #define __CODA_PSDEV_H 4 | 5 | #include 6 | 7 | #define CODA_PSDEV_MAJOR 67 8 | #define MAX_CODADEVS 5 /* how many do we allow */ 9 | 10 | #define CODA_REQ_ASYNC 0x1 11 | #define CODA_REQ_READ 0x2 12 | #define CODA_REQ_WRITE 0x4 13 | #define CODA_REQ_ABORT 0x8 14 | 15 | #endif /* __CODA_PSDEV_H */ 16 | -------------------------------------------------------------------------------- /generic/include/linux/coresight-stm.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __UAPI_CORESIGHT_STM_H_ 3 | #define __UAPI_CORESIGHT_STM_H_ 4 | 5 | #define STM_FLAG_TIMESTAMPED BIT(3) 6 | #define STM_FLAG_GUARANTEED BIT(7) 7 | 8 | /* 9 | * The CoreSight STM supports guaranteed and invariant timing 10 | * transactions. Guaranteed transactions are guaranteed to be 11 | * traced, this might involve stalling the bus or system to 12 | * ensure the transaction is accepted by the STM. While invariant 13 | * timing transactions are not guaranteed to be traced, they 14 | * will take an invariant amount of time regardless of the 15 | * state of the STM. 16 | */ 17 | enum { 18 | STM_OPTION_GUARANTEED = 0, 19 | STM_OPTION_INVARIANT, 20 | }; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /generic/include/linux/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /generic/include/linux/hdlc.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Generic HDLC support routines for Linux 4 | * 5 | * Copyright (C) 1999-2005 Krzysztof Halasa 6 | * 7 | * This program is free software; you can redistribute it and/or modify it 8 | * under the terms of version 2 of the GNU General Public License 9 | * as published by the Free Software Foundation. 10 | */ 11 | 12 | #ifndef __HDLC_H 13 | #define __HDLC_H 14 | 15 | 16 | #define HDLC_MAX_MTU 1500 /* Ethernet 1500 bytes */ 17 | #if 0 18 | #define HDLC_MAX_MRU (HDLC_MAX_MTU + 10 + 14 + 4) /* for ETH+VLAN over FR */ 19 | #else 20 | #define HDLC_MAX_MRU 1600 /* as required for FR network */ 21 | #endif 22 | 23 | 24 | #endif /* __HDLC_H */ 25 | -------------------------------------------------------------------------------- /generic/include/linux/if_ltalk.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_LTALK_H 3 | #define __LINUX_LTALK_H 4 | 5 | #define LTALK_HLEN 1 6 | #define LTALK_MTU 600 7 | #define LTALK_ALEN 1 8 | 9 | 10 | #endif /* __LINUX_LTALK_H */ 11 | -------------------------------------------------------------------------------- /generic/include/linux/if_phonet.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * File: if_phonet.h 4 | * 5 | * Phonet interface kernel definitions 6 | * 7 | * Copyright (C) 2008 Nokia Corporation. All rights reserved. 8 | */ 9 | #ifndef LINUX_IF_PHONET_H 10 | #define LINUX_IF_PHONET_H 11 | 12 | #define PHONET_MIN_MTU 6 /* pn_length = 0 */ 13 | #define PHONET_MAX_MTU 65541 /* pn_length = 0xffff */ 14 | #define PHONET_DEV_MTU PHONET_MAX_MTU 15 | 16 | 17 | #endif /* LINUX_IF_PHONET_H */ 18 | -------------------------------------------------------------------------------- /generic/include/linux/if_plip.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 | /* 3 | * NET3 PLIP tuning facilities for the new Niibe PLIP. 4 | * 5 | * This program is free software; you can redistribute it and/or 6 | * modify it under the terms of the GNU General Public License 7 | * as published by the Free Software Foundation; either version 8 | * 2 of the License, or (at your option) any later version. 9 | * 10 | */ 11 | 12 | #ifndef _LINUX_IF_PLIP_H 13 | #define _LINUX_IF_PLIP_H 14 | 15 | #include 16 | 17 | #define SIOCDEVPLIP SIOCDEVPRIVATE 18 | 19 | struct plipconf { 20 | unsigned short pcmd; 21 | unsigned long nibble; 22 | unsigned long trigger; 23 | }; 24 | 25 | #define PLIP_GET_TIMEOUT 0x1 26 | #define PLIP_SET_TIMEOUT 0x2 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /generic/include/linux/if_ppp.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /generic/include/linux/ife.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __UAPI_IFE_H 3 | #define __UAPI_IFE_H 4 | 5 | #define IFE_METAHDRLEN 2 6 | 7 | enum { 8 | IFE_META_SKBMARK = 1, 9 | IFE_META_HASHID, 10 | IFE_META_PRIO, 11 | IFE_META_QMAP, 12 | IFE_META_TCINDEX, 13 | __IFE_META_MAX 14 | }; 15 | 16 | /*Can be overridden at runtime by module option*/ 17 | #define IFE_META_MAX (__IFE_META_MAX - 1) 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /generic/include/linux/ioctl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_IOCTL_H 3 | #define _LINUX_IOCTL_H 4 | 5 | #include 6 | 7 | #endif /* _LINUX_IOCTL_H */ 8 | 9 | -------------------------------------------------------------------------------- /generic/include/linux/ipmi_bmc.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | /* 3 | * Copyright (c) 2015-2018, Intel Corporation. 4 | */ 5 | 6 | #ifndef _LINUX_IPMI_BMC_H 7 | #define _LINUX_IPMI_BMC_H 8 | 9 | #include 10 | 11 | #define __IPMI_BMC_IOCTL_MAGIC 0xB1 12 | #define IPMI_BMC_IOCTL_SET_SMS_ATN _IO(__IPMI_BMC_IOCTL_MAGIC, 0x00) 13 | #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN _IO(__IPMI_BMC_IOCTL_MAGIC, 0x01) 14 | #define IPMI_BMC_IOCTL_FORCE_ABORT _IO(__IPMI_BMC_IOCTL_MAGIC, 0x02) 15 | 16 | #endif /* _LINUX_IPMI_BMC_H */ 17 | -------------------------------------------------------------------------------- /generic/include/linux/irqnr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * There isn't anything here anymore, but the file must not be empty or patch 3 | * will delete it. 4 | */ 5 | -------------------------------------------------------------------------------- /generic/include/linux/kcmp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_KCMP_H 3 | #define _LINUX_KCMP_H 4 | 5 | #include 6 | 7 | /* Comparison type */ 8 | enum kcmp_type { 9 | KCMP_FILE, 10 | KCMP_VM, 11 | KCMP_FILES, 12 | KCMP_FS, 13 | KCMP_SIGHAND, 14 | KCMP_IO, 15 | KCMP_SYSVSEM, 16 | KCMP_EPOLL_TFD, 17 | 18 | KCMP_TYPES, 19 | }; 20 | 21 | /* Slot for KCMP_EPOLL_TFD */ 22 | struct kcmp_epoll_slot { 23 | __u32 efd; /* epoll file descriptor */ 24 | __u32 tfd; /* target file number */ 25 | __u32 toff; /* target offset within same numbered sequence */ 26 | }; 27 | 28 | #endif /* _LINUX_KCMP_H */ 29 | -------------------------------------------------------------------------------- /generic/include/linux/kdev_t.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_KDEV_T_H 3 | #define _LINUX_KDEV_T_H 4 | 5 | /* 6 | Some programs want their definitions of MAJOR and MINOR and MKDEV 7 | from the kernel sources. These must be the externally visible ones. 8 | */ 9 | #define MAJOR(dev) ((dev)>>8) 10 | #define MINOR(dev) ((dev) & 0xff) 11 | #define MKDEV(ma,mi) ((ma)<<8 | (mi)) 12 | #endif /* _LINUX_KDEV_T_H */ 13 | -------------------------------------------------------------------------------- /generic/include/linux/kernel.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_KERNEL_H 3 | #define _LINUX_KERNEL_H 4 | 5 | /* 6 | * 'kernel.h' contains some often-used function prototypes etc 7 | */ 8 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) 9 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) 10 | 11 | #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) 12 | 13 | #endif /* _LINUX_KERNEL_H */ 14 | -------------------------------------------------------------------------------- /generic/include/linux/module.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_MODULE_H 3 | #define _LINUX_MODULE_H 4 | 5 | /* Flags for sys_finit_module: */ 6 | #define MODULE_INIT_IGNORE_MODVERSIONS 1 7 | #define MODULE_INIT_IGNORE_VERMAGIC 2 8 | 9 | #endif /* _LINUX_MODULE_H */ 10 | -------------------------------------------------------------------------------- /generic/include/linux/net_namespace.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* Copyright (c) 2015 6WIND S.A. 3 | * Author: Nicolas Dichtel 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms and conditions of the GNU General Public License, 7 | * version 2, as published by the Free Software Foundation. 8 | */ 9 | #ifndef _LINUX_NET_NAMESPACE_H_ 10 | #define _LINUX_NET_NAMESPACE_H_ 11 | 12 | /* Attributes of RTM_NEWNSID/RTM_GETNSID messages */ 13 | enum { 14 | NETNSA_NONE, 15 | #define NETNSA_NSID_NOT_ASSIGNED -1 16 | NETNSA_NSID, 17 | NETNSA_PID, 18 | NETNSA_FD, 19 | __NETNSA_MAX, 20 | }; 21 | 22 | #define NETNSA_MAX (__NETNSA_MAX - 1) 23 | 24 | #endif /* _LINUX_NET_NAMESPACE_H_ */ 25 | -------------------------------------------------------------------------------- /generic/include/linux/netconf.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_NETCONF_H_ 3 | #define _LINUX_NETCONF_H_ 4 | 5 | #include 6 | #include 7 | 8 | struct netconfmsg { 9 | __u8 ncm_family; 10 | }; 11 | 12 | enum { 13 | NETCONFA_UNSPEC, 14 | NETCONFA_IFINDEX, 15 | NETCONFA_FORWARDING, 16 | NETCONFA_RP_FILTER, 17 | NETCONFA_MC_FORWARDING, 18 | NETCONFA_PROXY_NEIGH, 19 | NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN, 20 | NETCONFA_INPUT, 21 | NETCONFA_BC_FORWARDING, 22 | __NETCONFA_MAX 23 | }; 24 | #define NETCONFA_MAX (__NETCONFA_MAX - 1) 25 | #define NETCONFA_ALL -1 26 | 27 | #define NETCONFA_IFINDEX_ALL -1 28 | #define NETCONFA_IFINDEX_DEFAULT -2 29 | 30 | #endif /* _LINUX_NETCONF_H_ */ 31 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/ipset/ip_set_bitmap.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __IP_SET_BITMAP_H 3 | #define __IP_SET_BITMAP_H 4 | 5 | #include 6 | 7 | /* Bitmap type specific error codes */ 8 | enum { 9 | /* The element is out of the range of the set */ 10 | IPSET_ERR_BITMAP_RANGE = IPSET_ERR_TYPE_SPECIFIC, 11 | /* The range exceeds the size limit of the set type */ 12 | IPSET_ERR_BITMAP_RANGE_SIZE, 13 | }; 14 | 15 | 16 | #endif /* __IP_SET_BITMAP_H */ 17 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/ipset/ip_set_hash.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __IP_SET_HASH_H 3 | #define __IP_SET_HASH_H 4 | 5 | #include 6 | 7 | /* Hash type specific error codes */ 8 | enum { 9 | /* Hash is full */ 10 | IPSET_ERR_HASH_FULL = IPSET_ERR_TYPE_SPECIFIC, 11 | /* Null-valued element */ 12 | IPSET_ERR_HASH_ELEM, 13 | /* Invalid protocol */ 14 | IPSET_ERR_INVALID_PROTO, 15 | /* Protocol missing but must be specified */ 16 | IPSET_ERR_MISSING_PROTO, 17 | /* Range not supported */ 18 | IPSET_ERR_HASH_RANGE_UNSUPPORTED, 19 | /* Invalid range */ 20 | IPSET_ERR_HASH_RANGE, 21 | }; 22 | 23 | 24 | #endif /* __IP_SET_HASH_H */ 25 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/ipset/ip_set_list.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __IP_SET_LIST_H 3 | #define __IP_SET_LIST_H 4 | 5 | #include 6 | 7 | /* List type specific error codes */ 8 | enum { 9 | /* Set name to be added/deleted/tested does not exist. */ 10 | IPSET_ERR_NAME = IPSET_ERR_TYPE_SPECIFIC, 11 | /* list:set type is not permitted to add */ 12 | IPSET_ERR_LOOP, 13 | /* Missing reference set */ 14 | IPSET_ERR_BEFORE, 15 | /* Reference set does not exist */ 16 | IPSET_ERR_NAMEREF, 17 | /* Set is full */ 18 | IPSET_ERR_LIST_FULL, 19 | /* Reference set is not added to the set */ 20 | IPSET_ERR_REF_EXIST, 21 | }; 22 | 23 | 24 | #endif /* __IP_SET_LIST_H */ 25 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/nf_conntrack_ftp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _NF_CONNTRACK_FTP_H 3 | #define _NF_CONNTRACK_FTP_H 4 | /* FTP tracking. */ 5 | 6 | /* This enum is exposed to userspace */ 7 | enum nf_ct_ftp_type { 8 | /* PORT command from client */ 9 | NF_CT_FTP_PORT, 10 | /* PASV response from server */ 11 | NF_CT_FTP_PASV, 12 | /* EPRT command from client */ 13 | NF_CT_FTP_EPRT, 14 | /* EPSV response from server */ 15 | NF_CT_FTP_EPSV, 16 | }; 17 | 18 | 19 | #endif /* _NF_CONNTRACK_FTP_H */ 20 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/nf_conntrack_sctp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _NF_CONNTRACK_SCTP_H 3 | #define _NF_CONNTRACK_SCTP_H 4 | /* SCTP tracking. */ 5 | 6 | #include 7 | 8 | enum sctp_conntrack { 9 | SCTP_CONNTRACK_NONE, 10 | SCTP_CONNTRACK_CLOSED, 11 | SCTP_CONNTRACK_COOKIE_WAIT, 12 | SCTP_CONNTRACK_COOKIE_ECHOED, 13 | SCTP_CONNTRACK_ESTABLISHED, 14 | SCTP_CONNTRACK_SHUTDOWN_SENT, 15 | SCTP_CONNTRACK_SHUTDOWN_RECD, 16 | SCTP_CONNTRACK_SHUTDOWN_ACK_SENT, 17 | SCTP_CONNTRACK_HEARTBEAT_SENT, 18 | SCTP_CONNTRACK_HEARTBEAT_ACKED, 19 | SCTP_CONNTRACK_MAX 20 | }; 21 | 22 | #endif /* _NF_CONNTRACK_SCTP_H */ 23 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/nf_log.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _NETFILTER_NF_LOG_H 3 | #define _NETFILTER_NF_LOG_H 4 | 5 | #define NF_LOG_TCPSEQ 0x01 /* Log TCP sequence numbers */ 6 | #define NF_LOG_TCPOPT 0x02 /* Log TCP options */ 7 | #define NF_LOG_IPOPT 0x04 /* Log IP options */ 8 | #define NF_LOG_UID 0x08 /* Log UID owning local socket */ 9 | #define NF_LOG_NFLOG 0x10 /* Unsupported, don't reuse */ 10 | #define NF_LOG_MACDECODE 0x20 /* Decode MAC header */ 11 | #define NF_LOG_MASK 0x2f 12 | 13 | #define NF_LOG_PREFIXLEN 128 14 | 15 | #endif /* _NETFILTER_NF_LOG_H */ 16 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_CHECKSUM.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* Header file for iptables ipt_CHECKSUM target 3 | * 4 | * (C) 2002 by Harald Welte 5 | * (C) 2010 Red Hat Inc 6 | * Author: Michael S. Tsirkin 7 | * 8 | * This software is distributed under GNU GPL v2, 1991 9 | */ 10 | #ifndef _XT_CHECKSUM_TARGET_H 11 | #define _XT_CHECKSUM_TARGET_H 12 | 13 | #include 14 | 15 | #define XT_CHECKSUM_OP_FILL 0x01 /* fill in checksum in IP header */ 16 | 17 | struct xt_CHECKSUM_info { 18 | __u8 operation; /* bitset of operations */ 19 | }; 20 | 21 | #endif /* _XT_CHECKSUM_TARGET_H */ 22 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_CLASSIFY.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_CLASSIFY_H 3 | #define _XT_CLASSIFY_H 4 | 5 | #include 6 | 7 | struct xt_classify_target_info { 8 | __u32 priority; 9 | }; 10 | 11 | #endif /*_XT_CLASSIFY_H */ 12 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_CONNMARK.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_CONNMARK_H_target 3 | #define _XT_CONNMARK_H_target 4 | 5 | #include 6 | 7 | #endif /*_XT_CONNMARK_H_target*/ 8 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_CONNSECMARK.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_CONNSECMARK_H_target 3 | #define _XT_CONNSECMARK_H_target 4 | 5 | #include 6 | 7 | enum { 8 | CONNSECMARK_SAVE = 1, 9 | CONNSECMARK_RESTORE, 10 | }; 11 | 12 | struct xt_connsecmark_target_info { 13 | __u8 mode; 14 | }; 15 | 16 | #endif /*_XT_CONNSECMARK_H_target */ 17 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_LED.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_LED_H 3 | #define _XT_LED_H 4 | 5 | #include 6 | 7 | struct xt_led_info { 8 | char id[27]; /* Unique ID for this trigger in the LED class */ 9 | __u8 always_blink; /* Blink even if the LED is already on */ 10 | __u32 delay; /* Delay until LED is switched off after trigger */ 11 | 12 | /* Kernel data used in the module */ 13 | void *internal_data __attribute__((aligned(8))); 14 | }; 15 | 16 | #endif /* _XT_LED_H */ 17 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_LOG.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_LOG_H 3 | #define _XT_LOG_H 4 | 5 | /* make sure not to change this without changing nf_log.h:NF_LOG_* (!) */ 6 | #define XT_LOG_TCPSEQ 0x01 /* Log TCP sequence numbers */ 7 | #define XT_LOG_TCPOPT 0x02 /* Log TCP options */ 8 | #define XT_LOG_IPOPT 0x04 /* Log IP options */ 9 | #define XT_LOG_UID 0x08 /* Log UID owning local socket */ 10 | #define XT_LOG_NFLOG 0x10 /* Unsupported, don't reuse */ 11 | #define XT_LOG_MACDECODE 0x20 /* Decode MAC header */ 12 | #define XT_LOG_MASK 0x2f 13 | 14 | struct xt_log_info { 15 | unsigned char level; 16 | unsigned char logflags; 17 | char prefix[30]; 18 | }; 19 | 20 | #endif /* _XT_LOG_H */ 21 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_MARK.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_MARK_H_target 3 | #define _XT_MARK_H_target 4 | 5 | #include 6 | 7 | #endif /*_XT_MARK_H_target */ 8 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_NFLOG.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_NFLOG_TARGET 3 | #define _XT_NFLOG_TARGET 4 | 5 | #include 6 | 7 | #define XT_NFLOG_DEFAULT_GROUP 0x1 8 | #define XT_NFLOG_DEFAULT_THRESHOLD 0 9 | 10 | #define XT_NFLOG_MASK 0x1 11 | 12 | /* This flag indicates that 'len' field in xt_nflog_info is set*/ 13 | #define XT_NFLOG_F_COPY_LEN 0x1 14 | 15 | struct xt_nflog_info { 16 | /* 'len' will be used iff you set XT_NFLOG_F_COPY_LEN in flags */ 17 | __u32 len; 18 | __u16 group; 19 | __u16 threshold; 20 | __u16 flags; 21 | __u16 pad; 22 | char prefix[64]; 23 | }; 24 | 25 | #endif /* _XT_NFLOG_TARGET */ 26 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_RATEEST.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_RATEEST_TARGET_H 3 | #define _XT_RATEEST_TARGET_H 4 | 5 | #include 6 | #include 7 | 8 | struct xt_rateest_target_info { 9 | char name[IFNAMSIZ]; 10 | __s8 interval; 11 | __u8 ewma_log; 12 | 13 | /* Used internally by the kernel */ 14 | struct xt_rateest *est __attribute__((aligned(8))); 15 | }; 16 | 17 | #endif /* _XT_RATEEST_TARGET_H */ 18 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_SECMARK.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_SECMARK_H_target 3 | #define _XT_SECMARK_H_target 4 | 5 | #include 6 | 7 | /* 8 | * This is intended for use by various security subsystems (but not 9 | * at the same time). 10 | * 11 | * 'mode' refers to the specific security subsystem which the 12 | * packets are being marked for. 13 | */ 14 | #define SECMARK_MODE_SEL 0x01 /* SELinux */ 15 | #define SECMARK_SECCTX_MAX 256 16 | 17 | struct xt_secmark_target_info { 18 | __u8 mode; 19 | __u32 secid; 20 | char secctx[SECMARK_SECCTX_MAX]; 21 | }; 22 | 23 | #endif /*_XT_SECMARK_H_target */ 24 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_SYNPROXY.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_SYNPROXY_H 3 | #define _XT_SYNPROXY_H 4 | 5 | #include 6 | 7 | #define XT_SYNPROXY_OPT_MSS 0x01 8 | #define XT_SYNPROXY_OPT_WSCALE 0x02 9 | #define XT_SYNPROXY_OPT_SACK_PERM 0x04 10 | #define XT_SYNPROXY_OPT_TIMESTAMP 0x08 11 | #define XT_SYNPROXY_OPT_ECN 0x10 12 | 13 | struct xt_synproxy_info { 14 | __u8 options; 15 | __u8 wscale; 16 | __u16 mss; 17 | }; 18 | 19 | #endif /* _XT_SYNPROXY_H */ 20 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_TCPMSS.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_TCPMSS_H 3 | #define _XT_TCPMSS_H 4 | 5 | #include 6 | 7 | struct xt_tcpmss_info { 8 | __u16 mss; 9 | }; 10 | 11 | #define XT_TCPMSS_CLAMP_PMTU 0xffff 12 | 13 | #endif /* _XT_TCPMSS_H */ 14 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_TCPOPTSTRIP.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_TCPOPTSTRIP_H 3 | #define _XT_TCPOPTSTRIP_H 4 | 5 | #include 6 | 7 | #define tcpoptstrip_set_bit(bmap, idx) \ 8 | (bmap[(idx) >> 5] |= 1U << (idx & 31)) 9 | #define tcpoptstrip_test_bit(bmap, idx) \ 10 | (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0) 11 | 12 | struct xt_tcpoptstrip_target_info { 13 | __u32 strip_bmap[8]; 14 | }; 15 | 16 | #endif /* _XT_TCPOPTSTRIP_H */ 17 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_TEE.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_TEE_TARGET_H 3 | #define _XT_TEE_TARGET_H 4 | 5 | #include 6 | 7 | struct xt_tee_tginfo { 8 | union nf_inet_addr gw; 9 | char oif[16]; 10 | 11 | /* used internally by the kernel */ 12 | struct xt_tee_priv *priv __attribute__((aligned(8))); 13 | }; 14 | 15 | #endif /* _XT_TEE_TARGET_H */ 16 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_TPROXY.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_TPROXY_H 3 | #define _XT_TPROXY_H 4 | 5 | #include 6 | #include 7 | 8 | /* TPROXY target is capable of marking the packet to perform 9 | * redirection. We can get rid of that whenever we get support for 10 | * mutliple targets in the same rule. */ 11 | struct xt_tproxy_target_info { 12 | __u32 mark_mask; 13 | __u32 mark_value; 14 | __be32 laddr; 15 | __be16 lport; 16 | }; 17 | 18 | struct xt_tproxy_target_info_v1 { 19 | __u32 mark_mask; 20 | __u32 mark_value; 21 | union nf_inet_addr laddr; 22 | __be16 lport; 23 | }; 24 | 25 | #endif /* _XT_TPROXY_H */ 26 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_cluster.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_CLUSTER_MATCH_H 3 | #define _XT_CLUSTER_MATCH_H 4 | 5 | #include 6 | 7 | enum xt_cluster_flags { 8 | XT_CLUSTER_F_INV = (1 << 0) 9 | }; 10 | 11 | struct xt_cluster_match_info { 12 | __u32 total_nodes; 13 | __u32 node_mask; 14 | __u32 hash_seed; 15 | __u32 flags; 16 | }; 17 | 18 | #define XT_CLUSTER_NODES_MAX 32 19 | 20 | #endif /* _XT_CLUSTER_MATCH_H */ 21 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_comment.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_COMMENT_H 3 | #define _XT_COMMENT_H 4 | 5 | #define XT_MAX_COMMENT_LEN 256 6 | 7 | struct xt_comment_info { 8 | char comment[XT_MAX_COMMENT_LEN]; 9 | }; 10 | 11 | #endif /* XT_COMMENT_H */ 12 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_connbytes.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_CONNBYTES_H 3 | #define _XT_CONNBYTES_H 4 | 5 | #include 6 | 7 | enum xt_connbytes_what { 8 | XT_CONNBYTES_PKTS, 9 | XT_CONNBYTES_BYTES, 10 | XT_CONNBYTES_AVGPKT, 11 | }; 12 | 13 | enum xt_connbytes_direction { 14 | XT_CONNBYTES_DIR_ORIGINAL, 15 | XT_CONNBYTES_DIR_REPLY, 16 | XT_CONNBYTES_DIR_BOTH, 17 | }; 18 | 19 | struct xt_connbytes_info { 20 | struct { 21 | __aligned_u64 from; /* count to be matched */ 22 | __aligned_u64 to; /* count to be matched */ 23 | } count; 24 | __u8 what; /* ipt_connbytes_what */ 25 | __u8 direction; /* ipt_connbytes_direction */ 26 | }; 27 | #endif 28 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_connlabel.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #include 3 | 4 | #define XT_CONNLABEL_MAXBIT 127 5 | enum xt_connlabel_mtopts { 6 | XT_CONNLABEL_OP_INVERT = 1 << 0, 7 | XT_CONNLABEL_OP_SET = 1 << 1, 8 | }; 9 | 10 | struct xt_connlabel_mtinfo { 11 | __u16 bit; 12 | __u16 options; 13 | }; 14 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_connlimit.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_CONNLIMIT_H 3 | #define _XT_CONNLIMIT_H 4 | 5 | #include 6 | #include 7 | 8 | struct xt_connlimit_data; 9 | 10 | enum { 11 | XT_CONNLIMIT_INVERT = 1 << 0, 12 | XT_CONNLIMIT_DADDR = 1 << 1, 13 | }; 14 | 15 | struct xt_connlimit_info { 16 | union { 17 | union nf_inet_addr mask; 18 | union { 19 | __be32 v4_mask; 20 | __be32 v6_mask[4]; 21 | }; 22 | }; 23 | unsigned int limit; 24 | /* revision 1 */ 25 | __u32 flags; 26 | 27 | /* Used internally by the kernel */ 28 | struct nf_conncount_data *data __attribute__((aligned(8))); 29 | }; 30 | 31 | #endif /* _XT_CONNLIMIT_H */ 32 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_cpu.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_CPU_H 3 | #define _XT_CPU_H 4 | 5 | #include 6 | 7 | struct xt_cpu_info { 8 | __u32 cpu; 9 | __u32 invert; 10 | }; 11 | 12 | #endif /*_XT_CPU_H*/ 13 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_dccp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_DCCP_H_ 3 | #define _XT_DCCP_H_ 4 | 5 | #include 6 | 7 | #define XT_DCCP_SRC_PORTS 0x01 8 | #define XT_DCCP_DEST_PORTS 0x02 9 | #define XT_DCCP_TYPE 0x04 10 | #define XT_DCCP_OPTION 0x08 11 | 12 | #define XT_DCCP_VALID_FLAGS 0x0f 13 | 14 | struct xt_dccp_info { 15 | __u16 dpts[2]; /* Min, Max */ 16 | __u16 spts[2]; /* Min, Max */ 17 | 18 | __u16 flags; 19 | __u16 invflags; 20 | 21 | __u16 typemask; 22 | __u8 option; 23 | }; 24 | 25 | #endif /* _XT_DCCP_H_ */ 26 | 27 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_devgroup.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_DEVGROUP_H 3 | #define _XT_DEVGROUP_H 4 | 5 | #include 6 | 7 | enum xt_devgroup_flags { 8 | XT_DEVGROUP_MATCH_SRC = 0x1, 9 | XT_DEVGROUP_INVERT_SRC = 0x2, 10 | XT_DEVGROUP_MATCH_DST = 0x4, 11 | XT_DEVGROUP_INVERT_DST = 0x8, 12 | }; 13 | 14 | struct xt_devgroup_info { 15 | __u32 flags; 16 | __u32 src_group; 17 | __u32 src_mask; 18 | __u32 dst_group; 19 | __u32 dst_mask; 20 | }; 21 | 22 | #endif /* _XT_DEVGROUP_H */ 23 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_esp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_ESP_H 3 | #define _XT_ESP_H 4 | 5 | #include 6 | 7 | struct xt_esp { 8 | __u32 spis[2]; /* Security Parameter Index */ 9 | __u8 invflags; /* Inverse flags */ 10 | }; 11 | 12 | /* Values for "invflags" field in struct xt_esp. */ 13 | #define XT_ESP_INV_SPI 0x01 /* Invert the sense of spi. */ 14 | #define XT_ESP_INV_MASK 0x01 /* All possible flags. */ 15 | 16 | #endif /*_XT_ESP_H*/ 17 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_helper.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_HELPER_H 3 | #define _XT_HELPER_H 4 | 5 | struct xt_helper_info { 6 | int invert; 7 | char name[30]; 8 | }; 9 | #endif /* _XT_HELPER_H */ 10 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_ipcomp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_IPCOMP_H 3 | #define _XT_IPCOMP_H 4 | 5 | #include 6 | 7 | struct xt_ipcomp { 8 | __u32 spis[2]; /* Security Parameter Index */ 9 | __u8 invflags; /* Inverse flags */ 10 | __u8 hdrres; /* Test of the Reserved Filed */ 11 | }; 12 | 13 | /* Values for "invflags" field in struct xt_ipcomp. */ 14 | #define XT_IPCOMP_INV_SPI 0x01 /* Invert the sense of spi. */ 15 | #define XT_IPCOMP_INV_MASK 0x01 /* All possible flags. */ 16 | 17 | #endif /*_XT_IPCOMP_H*/ 18 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_iprange.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_NETFILTER_XT_IPRANGE_H 3 | #define _LINUX_NETFILTER_XT_IPRANGE_H 1 4 | 5 | #include 6 | #include 7 | 8 | enum { 9 | IPRANGE_SRC = 1 << 0, /* match source IP address */ 10 | IPRANGE_DST = 1 << 1, /* match destination IP address */ 11 | IPRANGE_SRC_INV = 1 << 4, /* negate the condition */ 12 | IPRANGE_DST_INV = 1 << 5, /* -"- */ 13 | }; 14 | 15 | struct xt_iprange_mtinfo { 16 | union nf_inet_addr src_min, src_max; 17 | union nf_inet_addr dst_min, dst_max; 18 | __u8 flags; 19 | }; 20 | 21 | #endif /* _LINUX_NETFILTER_XT_IPRANGE_H */ 22 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_length.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_LENGTH_H 3 | #define _XT_LENGTH_H 4 | 5 | #include 6 | 7 | struct xt_length_info { 8 | __u16 min, max; 9 | __u8 invert; 10 | }; 11 | 12 | #endif /*_XT_LENGTH_H*/ 13 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_limit.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_RATE_H 3 | #define _XT_RATE_H 4 | 5 | #include 6 | 7 | /* timings are in milliseconds. */ 8 | #define XT_LIMIT_SCALE 10000 9 | 10 | struct xt_limit_priv; 11 | 12 | /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 13 | seconds, or one every 59 hours. */ 14 | struct xt_rateinfo { 15 | __u32 avg; /* Average secs between packets * scale */ 16 | __u32 burst; /* Period multiplier for upper limit. */ 17 | 18 | /* Used internally by the kernel */ 19 | unsigned long prev; /* moved to xt_limit_priv */ 20 | __u32 credit; /* moved to xt_limit_priv */ 21 | __u32 credit_cap, cost; 22 | 23 | struct xt_limit_priv *master; 24 | }; 25 | #endif /*_XT_RATE_H*/ 26 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_mac.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_MAC_H 3 | #define _XT_MAC_H 4 | 5 | #include 6 | 7 | struct xt_mac_info { 8 | unsigned char srcaddr[ETH_ALEN]; 9 | int invert; 10 | }; 11 | #endif /*_XT_MAC_H*/ 12 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_mark.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_MARK_H 3 | #define _XT_MARK_H 4 | 5 | #include 6 | 7 | struct xt_mark_tginfo2 { 8 | __u32 mark, mask; 9 | }; 10 | 11 | struct xt_mark_mtinfo1 { 12 | __u32 mark, mask; 13 | __u8 invert; 14 | }; 15 | 16 | #endif /*_XT_MARK_H*/ 17 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_nfacct.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_NFACCT_MATCH_H 3 | #define _XT_NFACCT_MATCH_H 4 | 5 | #include 6 | 7 | struct nf_acct; 8 | 9 | struct xt_nfacct_match_info { 10 | char name[NFACCT_NAME_MAX]; 11 | struct nf_acct *nfacct; 12 | }; 13 | 14 | struct xt_nfacct_match_info_v1 { 15 | char name[NFACCT_NAME_MAX]; 16 | struct nf_acct *nfacct __attribute__((aligned(8))); 17 | }; 18 | 19 | #endif /* _XT_NFACCT_MATCH_H */ 20 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_owner.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_OWNER_MATCH_H 3 | #define _XT_OWNER_MATCH_H 4 | 5 | #include 6 | 7 | enum { 8 | XT_OWNER_UID = 1 << 0, 9 | XT_OWNER_GID = 1 << 1, 10 | XT_OWNER_SOCKET = 1 << 2, 11 | }; 12 | 13 | struct xt_owner_match_info { 14 | __u32 uid_min, uid_max; 15 | __u32 gid_min, gid_max; 16 | __u8 match, invert; 17 | }; 18 | 19 | #endif /* _XT_OWNER_MATCH_H */ 20 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_physdev.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_PHYSDEV_H 3 | #define _XT_PHYSDEV_H 4 | 5 | #include 6 | #include 7 | 8 | #define XT_PHYSDEV_OP_IN 0x01 9 | #define XT_PHYSDEV_OP_OUT 0x02 10 | #define XT_PHYSDEV_OP_BRIDGED 0x04 11 | #define XT_PHYSDEV_OP_ISIN 0x08 12 | #define XT_PHYSDEV_OP_ISOUT 0x10 13 | #define XT_PHYSDEV_OP_MASK (0x20 - 1) 14 | 15 | struct xt_physdev_info { 16 | char physindev[IFNAMSIZ]; 17 | char in_mask[IFNAMSIZ]; 18 | char physoutdev[IFNAMSIZ]; 19 | char out_mask[IFNAMSIZ]; 20 | __u8 invert; 21 | __u8 bitmask; 22 | }; 23 | 24 | #endif /* _XT_PHYSDEV_H */ 25 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_pkttype.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_PKTTYPE_H 3 | #define _XT_PKTTYPE_H 4 | 5 | struct xt_pkttype_info { 6 | int pkttype; 7 | int invert; 8 | }; 9 | #endif /*_XT_PKTTYPE_H*/ 10 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_quota.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_QUOTA_H 3 | #define _XT_QUOTA_H 4 | 5 | #include 6 | 7 | enum xt_quota_flags { 8 | XT_QUOTA_INVERT = 0x1, 9 | }; 10 | #define XT_QUOTA_MASK 0x1 11 | 12 | struct xt_quota_priv; 13 | 14 | struct xt_quota_info { 15 | __u32 flags; 16 | __u32 pad; 17 | __aligned_u64 quota; 18 | 19 | /* Used internally by the kernel */ 20 | struct xt_quota_priv *master; 21 | }; 22 | 23 | #endif /* _XT_QUOTA_H */ 24 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_realm.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_REALM_H 3 | #define _XT_REALM_H 4 | 5 | #include 6 | 7 | struct xt_realm_info { 8 | __u32 id; 9 | __u32 mask; 10 | __u8 invert; 11 | }; 12 | 13 | #endif /* _XT_REALM_H */ 14 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_rpfilter.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_RPATH_H 3 | #define _XT_RPATH_H 4 | 5 | #include 6 | 7 | enum { 8 | XT_RPFILTER_LOOSE = 1 << 0, 9 | XT_RPFILTER_VALID_MARK = 1 << 1, 10 | XT_RPFILTER_ACCEPT_LOCAL = 1 << 2, 11 | XT_RPFILTER_INVERT = 1 << 3, 12 | }; 13 | 14 | struct xt_rpfilter_info { 15 | __u8 flags; 16 | }; 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_socket.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_SOCKET_H 3 | #define _XT_SOCKET_H 4 | 5 | #include 6 | 7 | enum { 8 | XT_SOCKET_TRANSPARENT = 1 << 0, 9 | XT_SOCKET_NOWILDCARD = 1 << 1, 10 | XT_SOCKET_RESTORESKMARK = 1 << 2, 11 | }; 12 | 13 | struct xt_socket_mtinfo1 { 14 | __u8 flags; 15 | }; 16 | #define XT_SOCKET_FLAGS_V1 XT_SOCKET_TRANSPARENT 17 | 18 | struct xt_socket_mtinfo2 { 19 | __u8 flags; 20 | }; 21 | #define XT_SOCKET_FLAGS_V2 (XT_SOCKET_TRANSPARENT | XT_SOCKET_NOWILDCARD) 22 | 23 | struct xt_socket_mtinfo3 { 24 | __u8 flags; 25 | }; 26 | #define XT_SOCKET_FLAGS_V3 (XT_SOCKET_TRANSPARENT \ 27 | | XT_SOCKET_NOWILDCARD \ 28 | | XT_SOCKET_RESTORESKMARK) 29 | 30 | #endif /* _XT_SOCKET_H */ 31 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_state.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_STATE_H 3 | #define _XT_STATE_H 4 | 5 | #define XT_STATE_BIT(ctinfo) (1 << ((ctinfo)%IP_CT_IS_REPLY+1)) 6 | #define XT_STATE_INVALID (1 << 0) 7 | 8 | #define XT_STATE_UNTRACKED (1 << (IP_CT_NUMBER + 1)) 9 | 10 | struct xt_state_info { 11 | unsigned int statemask; 12 | }; 13 | #endif /*_XT_STATE_H*/ 14 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter/xt_tcpmss.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _XT_TCPMSS_MATCH_H 3 | #define _XT_TCPMSS_MATCH_H 4 | 5 | #include 6 | 7 | struct xt_tcpmss_match_info { 8 | __u16 mss_min, mss_max; 9 | __u8 invert; 10 | }; 11 | 12 | #endif /*_XT_TCPMSS_MATCH_H*/ 13 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_arp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */ 2 | #ifndef __LINUX_ARP_NETFILTER_H 3 | #define __LINUX_ARP_NETFILTER_H 4 | 5 | /* ARP-specific defines for netfilter. 6 | * (C)2002 Rusty Russell IBM -- This code is GPL. 7 | */ 8 | 9 | #include 10 | 11 | /* There is no PF_ARP. */ 12 | #define NF_ARP 0 13 | 14 | /* ARP Hooks */ 15 | #define NF_ARP_IN 0 16 | #define NF_ARP_OUT 1 17 | #define NF_ARP_FORWARD 2 18 | 19 | #define NF_ARP_NUMHOOKS 3 20 | 21 | #endif /* __LINUX_ARP_NETFILTER_H */ 22 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_arp/arpt_mangle.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ARPT_MANGLE_H 3 | #define _ARPT_MANGLE_H 4 | #include 5 | 6 | #define ARPT_MANGLE_ADDR_LEN_MAX sizeof(struct in_addr) 7 | struct arpt_mangle 8 | { 9 | char src_devaddr[ARPT_DEV_ADDR_LEN_MAX]; 10 | char tgt_devaddr[ARPT_DEV_ADDR_LEN_MAX]; 11 | union { 12 | struct in_addr src_ip; 13 | } u_s; 14 | union { 15 | struct in_addr tgt_ip; 16 | } u_t; 17 | __u8 flags; 18 | int target; 19 | }; 20 | 21 | #define ARPT_MANGLE_SDEV 0x01 22 | #define ARPT_MANGLE_TDEV 0x02 23 | #define ARPT_MANGLE_SIP 0x04 24 | #define ARPT_MANGLE_TIP 0x08 25 | #define ARPT_MANGLE_MASK 0x0f 26 | 27 | #endif /* _ARPT_MANGLE_H */ 28 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_bridge/ebt_arpreply.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_BRIDGE_EBT_ARPREPLY_H 3 | #define __LINUX_BRIDGE_EBT_ARPREPLY_H 4 | 5 | #include 6 | 7 | struct ebt_arpreply_info { 8 | unsigned char mac[ETH_ALEN]; 9 | int target; 10 | }; 11 | #define EBT_ARPREPLY_TARGET "arpreply" 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_bridge/ebt_limit.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_BRIDGE_EBT_LIMIT_H 3 | #define __LINUX_BRIDGE_EBT_LIMIT_H 4 | 5 | #include 6 | 7 | #define EBT_LIMIT_MATCH "limit" 8 | 9 | /* timings are in milliseconds. */ 10 | #define EBT_LIMIT_SCALE 10000 11 | 12 | /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 13 | seconds, or one every 59 hours. */ 14 | 15 | struct ebt_limit_info { 16 | __u32 avg; /* Average secs between packets * scale */ 17 | __u32 burst; /* Period multiplier for upper limit. */ 18 | 19 | /* Used internally by the kernel */ 20 | unsigned long prev; 21 | __u32 credit; 22 | __u32 credit_cap, cost; 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_bridge/ebt_log.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_BRIDGE_EBT_LOG_H 3 | #define __LINUX_BRIDGE_EBT_LOG_H 4 | 5 | #include 6 | 7 | #define EBT_LOG_IP 0x01 /* if the frame is made by ip, log the ip information */ 8 | #define EBT_LOG_ARP 0x02 9 | #define EBT_LOG_NFLOG 0x04 10 | #define EBT_LOG_IP6 0x08 11 | #define EBT_LOG_MASK (EBT_LOG_IP | EBT_LOG_ARP | EBT_LOG_IP6) 12 | #define EBT_LOG_PREFIX_SIZE 30 13 | #define EBT_LOG_WATCHER "log" 14 | 15 | struct ebt_log_info { 16 | __u8 loglevel; 17 | __u8 prefix[EBT_LOG_PREFIX_SIZE]; 18 | __u32 bitmask; 19 | }; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_bridge/ebt_mark_m.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_BRIDGE_EBT_MARK_M_H 3 | #define __LINUX_BRIDGE_EBT_MARK_M_H 4 | 5 | #include 6 | 7 | #define EBT_MARK_AND 0x01 8 | #define EBT_MARK_OR 0x02 9 | #define EBT_MARK_MASK (EBT_MARK_AND | EBT_MARK_OR) 10 | struct ebt_mark_m_info { 11 | unsigned long mark, mask; 12 | __u8 invert; 13 | __u8 bitmask; 14 | }; 15 | #define EBT_MARK_MATCH "mark_m" 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_bridge/ebt_nat.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_BRIDGE_EBT_NAT_H 3 | #define __LINUX_BRIDGE_EBT_NAT_H 4 | 5 | #include 6 | 7 | #define NAT_ARP_BIT (0x00000010) 8 | struct ebt_nat_info { 9 | unsigned char mac[ETH_ALEN]; 10 | /* EBT_ACCEPT, EBT_DROP, EBT_CONTINUE or EBT_RETURN */ 11 | int target; 12 | }; 13 | #define EBT_SNAT_TARGET "snat" 14 | #define EBT_DNAT_TARGET "dnat" 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_bridge/ebt_nflog.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_BRIDGE_EBT_NFLOG_H 3 | #define __LINUX_BRIDGE_EBT_NFLOG_H 4 | 5 | #include 6 | 7 | #define EBT_NFLOG_MASK 0x0 8 | 9 | #define EBT_NFLOG_PREFIX_SIZE 64 10 | #define EBT_NFLOG_WATCHER "nflog" 11 | 12 | #define EBT_NFLOG_DEFAULT_GROUP 0x1 13 | #define EBT_NFLOG_DEFAULT_THRESHOLD 1 14 | 15 | struct ebt_nflog_info { 16 | __u32 len; 17 | __u16 group; 18 | __u16 threshold; 19 | __u16 flags; 20 | __u16 pad; 21 | char prefix[EBT_NFLOG_PREFIX_SIZE]; 22 | }; 23 | 24 | #endif /* __LINUX_BRIDGE_EBT_NFLOG_H */ 25 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_bridge/ebt_pkttype.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_BRIDGE_EBT_PKTTYPE_H 3 | #define __LINUX_BRIDGE_EBT_PKTTYPE_H 4 | 5 | #include 6 | 7 | struct ebt_pkttype_info { 8 | __u8 pkt_type; 9 | __u8 invert; 10 | }; 11 | #define EBT_PKTTYPE_MATCH "pkttype" 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_bridge/ebt_redirect.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_BRIDGE_EBT_REDIRECT_H 3 | #define __LINUX_BRIDGE_EBT_REDIRECT_H 4 | 5 | struct ebt_redirect_info { 6 | /* EBT_ACCEPT, EBT_DROP, EBT_CONTINUE or EBT_RETURN */ 7 | int target; 8 | }; 9 | #define EBT_REDIRECT_TARGET "redirect" 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv4/ipt_REJECT.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _IPT_REJECT_H 3 | #define _IPT_REJECT_H 4 | 5 | enum ipt_reject_with { 6 | IPT_ICMP_NET_UNREACHABLE, 7 | IPT_ICMP_HOST_UNREACHABLE, 8 | IPT_ICMP_PROT_UNREACHABLE, 9 | IPT_ICMP_PORT_UNREACHABLE, 10 | IPT_ICMP_ECHOREPLY, 11 | IPT_ICMP_NET_PROHIBITED, 12 | IPT_ICMP_HOST_PROHIBITED, 13 | IPT_TCP_RESET, 14 | IPT_ICMP_ADMIN_PROHIBITED 15 | }; 16 | 17 | struct ipt_reject_info { 18 | enum ipt_reject_with with; /* reject type */ 19 | }; 20 | 21 | #endif /*_IPT_REJECT_H*/ 22 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv4/ipt_TTL.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* TTL modification module for IP tables 3 | * (C) 2000 by Harald Welte */ 4 | 5 | #ifndef _IPT_TTL_H 6 | #define _IPT_TTL_H 7 | 8 | #include 9 | 10 | enum { 11 | IPT_TTL_SET = 0, 12 | IPT_TTL_INC, 13 | IPT_TTL_DEC 14 | }; 15 | 16 | #define IPT_TTL_MAXMODE IPT_TTL_DEC 17 | 18 | struct ipt_TTL_info { 19 | __u8 mode; 20 | __u8 ttl; 21 | }; 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv4/ipt_ah.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _IPT_AH_H 3 | #define _IPT_AH_H 4 | 5 | #include 6 | 7 | struct ipt_ah { 8 | __u32 spis[2]; /* Security Parameter Index */ 9 | __u8 invflags; /* Inverse flags */ 10 | }; 11 | 12 | 13 | 14 | /* Values for "invflags" field in struct ipt_ah. */ 15 | #define IPT_AH_INV_SPI 0x01 /* Invert the sense of spi. */ 16 | #define IPT_AH_INV_MASK 0x01 /* All possible flags. */ 17 | 18 | #endif /*_IPT_AH_H*/ 19 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv4/ipt_ecn.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _IPT_ECN_H 3 | #define _IPT_ECN_H 4 | 5 | #include 6 | #define ipt_ecn_info xt_ecn_info 7 | 8 | enum { 9 | IPT_ECN_IP_MASK = XT_ECN_IP_MASK, 10 | IPT_ECN_OP_MATCH_IP = XT_ECN_OP_MATCH_IP, 11 | IPT_ECN_OP_MATCH_ECE = XT_ECN_OP_MATCH_ECE, 12 | IPT_ECN_OP_MATCH_CWR = XT_ECN_OP_MATCH_CWR, 13 | IPT_ECN_OP_MATCH_MASK = XT_ECN_OP_MATCH_MASK, 14 | }; 15 | 16 | #endif /* IPT_ECN_H */ 17 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv4/ipt_ttl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* IP tables module for matching the value of the TTL 3 | * (C) 2000 by Harald Welte */ 4 | 5 | #ifndef _IPT_TTL_H 6 | #define _IPT_TTL_H 7 | 8 | #include 9 | 10 | enum { 11 | IPT_TTL_EQ = 0, /* equals */ 12 | IPT_TTL_NE, /* not equals */ 13 | IPT_TTL_LT, /* less than */ 14 | IPT_TTL_GT, /* greater than */ 15 | }; 16 | 17 | 18 | struct ipt_ttl_info { 19 | __u8 mode; 20 | __u8 ttl; 21 | }; 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv6/ip6t_HL.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* Hop Limit modification module for ip6tables 3 | * Maciej Soltysiak 4 | * Based on HW's TTL module */ 5 | 6 | #ifndef _IP6T_HL_H 7 | #define _IP6T_HL_H 8 | 9 | #include 10 | 11 | enum { 12 | IP6T_HL_SET = 0, 13 | IP6T_HL_INC, 14 | IP6T_HL_DEC 15 | }; 16 | 17 | #define IP6T_HL_MAXMODE IP6T_HL_DEC 18 | 19 | struct ip6t_HL_info { 20 | __u8 mode; 21 | __u8 hop_limit; 22 | }; 23 | 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv6/ip6t_NPT.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __NETFILTER_IP6T_NPT 3 | #define __NETFILTER_IP6T_NPT 4 | 5 | #include 6 | #include 7 | 8 | struct ip6t_npt_tginfo { 9 | union nf_inet_addr src_pfx; 10 | union nf_inet_addr dst_pfx; 11 | __u8 src_pfx_len; 12 | __u8 dst_pfx_len; 13 | /* Used internally by the kernel */ 14 | __sum16 adjustment; 15 | }; 16 | 17 | #endif /* __NETFILTER_IP6T_NPT */ 18 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv6/ip6t_REJECT.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _IP6T_REJECT_H 3 | #define _IP6T_REJECT_H 4 | 5 | #include 6 | 7 | enum ip6t_reject_with { 8 | IP6T_ICMP6_NO_ROUTE, 9 | IP6T_ICMP6_ADM_PROHIBITED, 10 | IP6T_ICMP6_NOT_NEIGHBOUR, 11 | IP6T_ICMP6_ADDR_UNREACH, 12 | IP6T_ICMP6_PORT_UNREACH, 13 | IP6T_ICMP6_ECHOREPLY, 14 | IP6T_TCP_RESET, 15 | IP6T_ICMP6_POLICY_FAIL, 16 | IP6T_ICMP6_REJECT_ROUTE 17 | }; 18 | 19 | struct ip6t_reject_info { 20 | __u32 with; /* reject type */ 21 | }; 22 | 23 | #endif /*_IP6T_REJECT_H*/ 24 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv6/ip6t_ah.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _IP6T_AH_H 3 | #define _IP6T_AH_H 4 | 5 | #include 6 | 7 | struct ip6t_ah { 8 | __u32 spis[2]; /* Security Parameter Index */ 9 | __u32 hdrlen; /* Header Length */ 10 | __u8 hdrres; /* Test of the Reserved Filed */ 11 | __u8 invflags; /* Inverse flags */ 12 | }; 13 | 14 | #define IP6T_AH_SPI 0x01 15 | #define IP6T_AH_LEN 0x02 16 | #define IP6T_AH_RES 0x04 17 | 18 | /* Values for "invflags" field in struct ip6t_ah. */ 19 | #define IP6T_AH_INV_SPI 0x01 /* Invert the sense of spi. */ 20 | #define IP6T_AH_INV_LEN 0x02 /* Invert the sense of length. */ 21 | #define IP6T_AH_INV_MASK 0x03 /* All possible flags. */ 22 | 23 | #endif /*_IP6T_AH_H*/ 24 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv6/ip6t_hl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* ip6tables module for matching the Hop Limit value 3 | * Maciej Soltysiak 4 | * Based on HW's ttl module */ 5 | 6 | #ifndef _IP6T_HL_H 7 | #define _IP6T_HL_H 8 | 9 | #include 10 | 11 | enum { 12 | IP6T_HL_EQ = 0, /* equals */ 13 | IP6T_HL_NE, /* not equals */ 14 | IP6T_HL_LT, /* less than */ 15 | IP6T_HL_GT, /* greater than */ 16 | }; 17 | 18 | 19 | struct ip6t_hl_info { 20 | __u8 mode; 21 | __u8 hop_limit; 22 | }; 23 | 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv6/ip6t_ipv6header.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* ipv6header match - matches IPv6 packets based 3 | on whether they contain certain headers */ 4 | 5 | /* Original idea: Brad Chapman 6 | * Rewritten by: Andras Kis-Szabo */ 7 | 8 | 9 | #ifndef __IPV6HEADER_H 10 | #define __IPV6HEADER_H 11 | 12 | #include 13 | 14 | struct ip6t_ipv6header_info { 15 | __u8 matchflags; 16 | __u8 invflags; 17 | __u8 modeflag; 18 | }; 19 | 20 | #define MASK_HOPOPTS 128 21 | #define MASK_DSTOPTS 64 22 | #define MASK_ROUTING 32 23 | #define MASK_FRAGMENT 16 24 | #define MASK_AH 8 25 | #define MASK_ESP 4 26 | #define MASK_NONE 2 27 | #define MASK_PROTO 1 28 | 29 | #endif /* __IPV6HEADER_H */ 30 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv6/ip6t_mh.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _IP6T_MH_H 3 | #define _IP6T_MH_H 4 | 5 | #include 6 | 7 | /* MH matching stuff */ 8 | struct ip6t_mh { 9 | __u8 types[2]; /* MH type range */ 10 | __u8 invflags; /* Inverse flags */ 11 | }; 12 | 13 | /* Values for "invflags" field in struct ip6t_mh. */ 14 | #define IP6T_MH_INV_TYPE 0x01 /* Invert the sense of type. */ 15 | #define IP6T_MH_INV_MASK 0x01 /* All possible flags. */ 16 | 17 | #endif /*_IP6T_MH_H*/ 18 | -------------------------------------------------------------------------------- /generic/include/linux/netfilter_ipv6/ip6t_opts.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _IP6T_OPTS_H 3 | #define _IP6T_OPTS_H 4 | 5 | #include 6 | 7 | #define IP6T_OPTS_OPTSNR 16 8 | 9 | struct ip6t_opts { 10 | __u32 hdrlen; /* Header Length */ 11 | __u8 flags; /* */ 12 | __u8 invflags; /* Inverse flags */ 13 | __u16 opts[IP6T_OPTS_OPTSNR]; /* opts */ 14 | __u8 optsnr; /* Nr of OPts */ 15 | }; 16 | 17 | #define IP6T_OPTS_LEN 0x01 18 | #define IP6T_OPTS_OPTS 0x02 19 | #define IP6T_OPTS_NSTRICT 0x04 20 | 21 | /* Values for "invflags" field in struct ip6t_rt. */ 22 | #define IP6T_OPTS_INV_LEN 0x01 /* Invert the sense of length. */ 23 | #define IP6T_OPTS_INV_MASK 0x01 /* All possible flags. */ 24 | 25 | #endif /*_IP6T_OPTS_H*/ 26 | -------------------------------------------------------------------------------- /generic/include/linux/nfsacl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * File: linux/nfsacl.h 4 | * 5 | * (C) 2003 Andreas Gruenbacher 6 | */ 7 | #ifndef __LINUX_NFSACL_H 8 | #define __LINUX_NFSACL_H 9 | 10 | #define NFS_ACL_PROGRAM 100227 11 | 12 | #define ACLPROC2_GETACL 1 13 | #define ACLPROC2_SETACL 2 14 | #define ACLPROC2_GETATTR 3 15 | #define ACLPROC2_ACCESS 4 16 | 17 | #define ACLPROC3_GETACL 1 18 | #define ACLPROC3_SETACL 2 19 | 20 | 21 | /* Flags for the getacl/setacl mode */ 22 | #define NFS_ACL 0x0001 23 | #define NFS_ACLCNT 0x0002 24 | #define NFS_DFACL 0x0004 25 | #define NFS_DFACLCNT 0x0008 26 | #define NFS_ACL_MASK 0x000f 27 | 28 | /* Flag for Default ACL entries */ 29 | #define NFS_ACL_DEFAULT 0x1000 30 | 31 | #endif /* __LINUX_NFSACL_H */ 32 | -------------------------------------------------------------------------------- /generic/include/linux/nfsd/stats.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * linux/include/linux/nfsd/stats.h 4 | * 5 | * Statistics for NFS server. 6 | * 7 | * Copyright (C) 1995, 1996 Olaf Kirch 8 | */ 9 | 10 | #ifndef LINUX_NFSD_STATS_H 11 | #define LINUX_NFSD_STATS_H 12 | 13 | #include 14 | 15 | /* thread usage wraps very million seconds (approx one fortnight) */ 16 | #define NFSD_USAGE_WRAP (HZ*1000000) 17 | 18 | #endif /* LINUX_NFSD_STATS_H */ 19 | -------------------------------------------------------------------------------- /generic/include/linux/nsfs.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_NSFS_H 3 | #define __LINUX_NSFS_H 4 | 5 | #include 6 | 7 | #define NSIO 0xb7 8 | 9 | /* Returns a file descriptor that refers to an owning user namespace */ 10 | #define NS_GET_USERNS _IO(NSIO, 0x1) 11 | /* Returns a file descriptor that refers to a parent namespace */ 12 | #define NS_GET_PARENT _IO(NSIO, 0x2) 13 | /* Returns the type of namespace (CLONE_NEW* value) referred to by 14 | file descriptor */ 15 | #define NS_GET_NSTYPE _IO(NSIO, 0x3) 16 | /* Get owner UID (in the caller's user namespace) for a user namespace */ 17 | #define NS_GET_OWNER_UID _IO(NSIO, 0x4) 18 | 19 | #endif /* __LINUX_NSFS_H */ 20 | -------------------------------------------------------------------------------- /generic/include/linux/nvram.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_NVRAM_H 3 | #define _LINUX_NVRAM_H 4 | 5 | #include 6 | 7 | /* /dev/nvram ioctls */ 8 | #define NVRAM_INIT _IO('p', 0x40) /* initialize NVRAM and set checksum */ 9 | #define NVRAM_SETCKS _IO('p', 0x41) /* recalculate checksum */ 10 | 11 | /* for all current systems, this is where NVRAM starts */ 12 | #define NVRAM_FIRST_BYTE 14 13 | /* all these functions expect an NVRAM offset, not an absolute */ 14 | #define NVRAM_OFFSET(x) ((x)-NVRAM_FIRST_BYTE) 15 | 16 | 17 | #endif /* _LINUX_NVRAM_H */ 18 | -------------------------------------------------------------------------------- /generic/include/linux/oom.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __INCLUDE_LINUX_OOM_H 3 | #define __INCLUDE_LINUX_OOM_H 4 | 5 | /* 6 | * /proc//oom_score_adj set to OOM_SCORE_ADJ_MIN disables oom killing for 7 | * pid. 8 | */ 9 | #define OOM_SCORE_ADJ_MIN (-1000) 10 | #define OOM_SCORE_ADJ_MAX 1000 11 | 12 | /* 13 | * /proc//oom_adj set to -17 protects from the oom killer for legacy 14 | * purposes. 15 | */ 16 | #define OOM_DISABLE (-17) 17 | /* inclusive */ 18 | #define OOM_ADJUST_MIN (-16) 19 | #define OOM_ADJUST_MAX 15 20 | 21 | #endif /* __INCLUDE_LINUX_OOM_H */ 22 | -------------------------------------------------------------------------------- /generic/include/linux/param.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_PARAM_H 3 | #define _LINUX_PARAM_H 4 | 5 | #include 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /generic/include/linux/pcitest.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /** 3 | * pcitest.h - PCI test uapi defines 4 | * 5 | * Copyright (C) 2017 Texas Instruments 6 | * Author: Kishon Vijay Abraham I 7 | * 8 | */ 9 | 10 | #ifndef __UAPI_LINUX_PCITEST_H 11 | #define __UAPI_LINUX_PCITEST_H 12 | 13 | #define PCITEST_BAR _IO('P', 0x1) 14 | #define PCITEST_LEGACY_IRQ _IO('P', 0x2) 15 | #define PCITEST_MSI _IOW('P', 0x3, int) 16 | #define PCITEST_WRITE _IOW('P', 0x4, unsigned long) 17 | #define PCITEST_READ _IOW('P', 0x5, unsigned long) 18 | #define PCITEST_COPY _IOW('P', 0x6, unsigned long) 19 | #define PCITEST_MSIX _IOW('P', 0x7, int) 20 | #define PCITEST_SET_IRQTYPE _IOW('P', 0x8, int) 21 | #define PCITEST_GET_IRQTYPE _IO('P', 0x9) 22 | 23 | #endif /* __UAPI_LINUX_PCITEST_H */ 24 | -------------------------------------------------------------------------------- /generic/include/linux/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /generic/include/linux/qnxtypes.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Name : qnxtypes.h 4 | * Author : Richard Frowijn 5 | * Function : standard qnx types 6 | * History : 22-03-1998 created 7 | * 8 | */ 9 | 10 | #ifndef _QNX4TYPES_H 11 | #define _QNX4TYPES_H 12 | 13 | #include 14 | 15 | typedef __le16 qnx4_nxtnt_t; 16 | typedef __u8 qnx4_ftype_t; 17 | 18 | typedef struct { 19 | __le32 xtnt_blk; 20 | __le32 xtnt_size; 21 | } qnx4_xtnt_t; 22 | 23 | typedef __le16 qnx4_mode_t; 24 | typedef __le16 qnx4_muid_t; 25 | typedef __le16 qnx4_mgid_t; 26 | typedef __le32 qnx4_off_t; 27 | typedef __le16 qnx4_nlink_t; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /generic/include/linux/radeonfb.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_RADEONFB_H__ 3 | #define __LINUX_RADEONFB_H__ 4 | 5 | #include 6 | #include 7 | 8 | #define ATY_RADEON_LCD_ON 0x00000001 9 | #define ATY_RADEON_CRT_ON 0x00000002 10 | 11 | 12 | #define FBIO_RADEON_GET_MIRROR _IOR('@', 3, size_t) 13 | #define FBIO_RADEON_SET_MIRROR _IOW('@', 4, size_t) 14 | 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /generic/include/linux/raw.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_RAW_H 3 | #define __LINUX_RAW_H 4 | 5 | #include 6 | 7 | #define RAW_SETBIND _IO( 0xac, 0 ) 8 | #define RAW_GETBIND _IO( 0xac, 1 ) 9 | 10 | struct raw_config_request 11 | { 12 | int raw_minor; 13 | __u64 block_major; 14 | __u64 block_minor; 15 | }; 16 | 17 | #define MAX_RAW_MINORS CONFIG_MAX_RAW_DEVS 18 | 19 | #endif /* __LINUX_RAW_H */ 20 | -------------------------------------------------------------------------------- /generic/include/linux/reiserfs_xattr.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | File: linux/reiserfs_xattr.h 4 | */ 5 | 6 | #ifndef _LINUX_REISERFS_XATTR_H 7 | #define _LINUX_REISERFS_XATTR_H 8 | 9 | #include 10 | 11 | /* Magic value in header */ 12 | #define REISERFS_XATTR_MAGIC 0x52465841 /* "RFXA" */ 13 | 14 | struct reiserfs_xattr_header { 15 | __le32 h_magic; /* magic number for identification */ 16 | __le32 h_hash; /* hash of the value */ 17 | }; 18 | 19 | struct reiserfs_security_handle { 20 | const char *name; 21 | void *value; 22 | size_t length; 23 | }; 24 | 25 | #endif /* _LINUX_REISERFS_XATTR_H */ 26 | -------------------------------------------------------------------------------- /generic/include/linux/rpmsg.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Copyright (c) 2016, Linaro Ltd. 4 | */ 5 | 6 | #ifndef _RPMSG_H_ 7 | #define _RPMSG_H_ 8 | 9 | #include 10 | #include 11 | 12 | /** 13 | * struct rpmsg_endpoint_info - endpoint info representation 14 | * @name: name of service 15 | * @src: local address 16 | * @dst: destination address 17 | */ 18 | struct rpmsg_endpoint_info { 19 | char name[32]; 20 | __u32 src; 21 | __u32 dst; 22 | }; 23 | 24 | #define RPMSG_CREATE_EPT_IOCTL _IOW(0xb5, 0x1, struct rpmsg_endpoint_info) 25 | #define RPMSG_DESTROY_EPT_IOCTL _IO(0xb5, 0x2) 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /generic/include/linux/seg6_genl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_SEG6_GENL_H 3 | #define _LINUX_SEG6_GENL_H 4 | 5 | #define SEG6_GENL_NAME "SEG6" 6 | #define SEG6_GENL_VERSION 0x1 7 | 8 | enum { 9 | SEG6_ATTR_UNSPEC, 10 | SEG6_ATTR_DST, 11 | SEG6_ATTR_DSTLEN, 12 | SEG6_ATTR_HMACKEYID, 13 | SEG6_ATTR_SECRET, 14 | SEG6_ATTR_SECRETLEN, 15 | SEG6_ATTR_ALGID, 16 | SEG6_ATTR_HMACINFO, 17 | __SEG6_ATTR_MAX, 18 | }; 19 | 20 | #define SEG6_ATTR_MAX (__SEG6_ATTR_MAX - 1) 21 | 22 | enum { 23 | SEG6_CMD_UNSPEC, 24 | SEG6_CMD_SETHMAC, 25 | SEG6_CMD_DUMPHMAC, 26 | SEG6_CMD_SET_TUNSRC, 27 | SEG6_CMD_GET_TUNSRC, 28 | __SEG6_CMD_MAX, 29 | }; 30 | 31 | #define SEG6_CMD_MAX (__SEG6_CMD_MAX - 1) 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /generic/include/linux/seg6_hmac.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_SEG6_HMAC_H 3 | #define _LINUX_SEG6_HMAC_H 4 | 5 | #include 6 | #include 7 | 8 | #define SEG6_HMAC_SECRET_LEN 64 9 | #define SEG6_HMAC_FIELD_LEN 32 10 | 11 | struct sr6_tlv_hmac { 12 | struct sr6_tlv tlvhdr; 13 | __u16 reserved; 14 | __be32 hmackeyid; 15 | __u8 hmac[SEG6_HMAC_FIELD_LEN]; 16 | }; 17 | 18 | enum { 19 | SEG6_HMAC_ALGO_SHA1 = 1, 20 | SEG6_HMAC_ALGO_SHA256 = 2, 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /generic/include/linux/signal.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_SIGNAL_H 3 | #define _LINUX_SIGNAL_H 4 | 5 | #include 6 | #include 7 | 8 | #define SS_ONSTACK 1 9 | #define SS_DISABLE 2 10 | 11 | /* bit-flags */ 12 | #define SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ 13 | /* mask for all SS_xxx flags */ 14 | #define SS_FLAG_BITS SS_AUTODISARM 15 | 16 | #endif /* _LINUX_SIGNAL_H */ 17 | -------------------------------------------------------------------------------- /generic/include/linux/stddef.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | 3 | 4 | #ifndef __always_inline 5 | #define __always_inline __inline__ 6 | #endif 7 | -------------------------------------------------------------------------------- /generic/include/linux/string.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_STRING_H_ 3 | #define _LINUX_STRING_H_ 4 | 5 | /* We don't want strings.h stuff being used by user stuff by accident */ 6 | 7 | #include 8 | #endif /* _LINUX_STRING_H_ */ 9 | -------------------------------------------------------------------------------- /generic/include/linux/tc_act/tc_connmark.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __UAPI_TC_CONNMARK_H 3 | #define __UAPI_TC_CONNMARK_H 4 | 5 | #include 6 | #include 7 | 8 | #define TCA_ACT_CONNMARK 14 9 | 10 | struct tc_connmark { 11 | tc_gen; 12 | __u16 zone; 13 | }; 14 | 15 | enum { 16 | TCA_CONNMARK_UNSPEC, 17 | TCA_CONNMARK_PARMS, 18 | TCA_CONNMARK_TM, 19 | TCA_CONNMARK_PAD, 20 | __TCA_CONNMARK_MAX 21 | }; 22 | #define TCA_CONNMARK_MAX (__TCA_CONNMARK_MAX - 1) 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /generic/include/linux/tc_act/tc_defact.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_TC_DEF_H 3 | #define __LINUX_TC_DEF_H 4 | 5 | #include 6 | 7 | struct tc_defact { 8 | tc_gen; 9 | }; 10 | 11 | enum { 12 | TCA_DEF_UNSPEC, 13 | TCA_DEF_TM, 14 | TCA_DEF_PARMS, 15 | TCA_DEF_DATA, 16 | TCA_DEF_PAD, 17 | __TCA_DEF_MAX 18 | }; 19 | #define TCA_DEF_MAX (__TCA_DEF_MAX - 1) 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /generic/include/linux/tc_act/tc_gact.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_TC_GACT_H 3 | #define __LINUX_TC_GACT_H 4 | 5 | #include 6 | #include 7 | 8 | #define TCA_ACT_GACT 5 9 | struct tc_gact { 10 | tc_gen; 11 | 12 | }; 13 | 14 | struct tc_gact_p { 15 | #define PGACT_NONE 0 16 | #define PGACT_NETRAND 1 17 | #define PGACT_DETERM 2 18 | #define MAX_RAND (PGACT_DETERM + 1 ) 19 | __u16 ptype; 20 | __u16 pval; 21 | int paction; 22 | }; 23 | 24 | enum { 25 | TCA_GACT_UNSPEC, 26 | TCA_GACT_TM, 27 | TCA_GACT_PARMS, 28 | TCA_GACT_PROB, 29 | TCA_GACT_PAD, 30 | __TCA_GACT_MAX 31 | }; 32 | #define TCA_GACT_MAX (__TCA_GACT_MAX - 1) 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /generic/include/linux/tc_act/tc_ife.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __UAPI_TC_IFE_H 3 | #define __UAPI_TC_IFE_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | #define TCA_ACT_IFE 25 10 | /* Flag bits for now just encoding/decoding; mutually exclusive */ 11 | #define IFE_ENCODE 1 12 | #define IFE_DECODE 0 13 | 14 | struct tc_ife { 15 | tc_gen; 16 | __u16 flags; 17 | }; 18 | 19 | /*XXX: We need to encode the total number of bytes consumed */ 20 | enum { 21 | TCA_IFE_UNSPEC, 22 | TCA_IFE_PARMS, 23 | TCA_IFE_TM, 24 | TCA_IFE_DMAC, 25 | TCA_IFE_SMAC, 26 | TCA_IFE_TYPE, 27 | TCA_IFE_METALST, 28 | TCA_IFE_PAD, 29 | __TCA_IFE_MAX 30 | }; 31 | #define TCA_IFE_MAX (__TCA_IFE_MAX - 1) 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /generic/include/linux/tc_act/tc_ipt.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_TC_IPT_H 3 | #define __LINUX_TC_IPT_H 4 | 5 | #include 6 | 7 | #define TCA_ACT_IPT 6 8 | #define TCA_ACT_XT 10 9 | 10 | enum { 11 | TCA_IPT_UNSPEC, 12 | TCA_IPT_TABLE, 13 | TCA_IPT_HOOK, 14 | TCA_IPT_INDEX, 15 | TCA_IPT_CNT, 16 | TCA_IPT_TM, 17 | TCA_IPT_TARG, 18 | TCA_IPT_PAD, 19 | __TCA_IPT_MAX 20 | }; 21 | #define TCA_IPT_MAX (__TCA_IPT_MAX - 1) 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /generic/include/linux/tc_act/tc_nat.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_TC_NAT_H 3 | #define __LINUX_TC_NAT_H 4 | 5 | #include 6 | #include 7 | 8 | #define TCA_ACT_NAT 9 9 | 10 | enum { 11 | TCA_NAT_UNSPEC, 12 | TCA_NAT_PARMS, 13 | TCA_NAT_TM, 14 | TCA_NAT_PAD, 15 | __TCA_NAT_MAX 16 | }; 17 | #define TCA_NAT_MAX (__TCA_NAT_MAX - 1) 18 | 19 | #define TCA_NAT_FLAG_EGRESS 1 20 | 21 | struct tc_nat { 22 | tc_gen; 23 | __be32 old_addr; 24 | __be32 new_addr; 25 | __be32 mask; 26 | __u32 flags; 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /generic/include/linux/tc_act/tc_sample.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_TC_SAMPLE_H 3 | #define __LINUX_TC_SAMPLE_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | #define TCA_ACT_SAMPLE 26 10 | 11 | struct tc_sample { 12 | tc_gen; 13 | }; 14 | 15 | enum { 16 | TCA_SAMPLE_UNSPEC, 17 | TCA_SAMPLE_TM, 18 | TCA_SAMPLE_PARMS, 19 | TCA_SAMPLE_RATE, 20 | TCA_SAMPLE_TRUNC_SIZE, 21 | TCA_SAMPLE_PSAMPLE_GROUP, 22 | TCA_SAMPLE_PAD, 23 | __TCA_SAMPLE_MAX 24 | }; 25 | #define TCA_SAMPLE_MAX (__TCA_SAMPLE_MAX - 1) 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /generic/include/linux/tc_ematch/tc_em_cmp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_TC_EM_CMP_H 3 | #define __LINUX_TC_EM_CMP_H 4 | 5 | #include 6 | #include 7 | 8 | struct tcf_em_cmp { 9 | __u32 val; 10 | __u32 mask; 11 | __u16 off; 12 | __u8 align:4; 13 | __u8 flags:4; 14 | __u8 layer:4; 15 | __u8 opnd:4; 16 | }; 17 | 18 | enum { 19 | TCF_EM_ALIGN_U8 = 1, 20 | TCF_EM_ALIGN_U16 = 2, 21 | TCF_EM_ALIGN_U32 = 4 22 | }; 23 | 24 | #define TCF_EM_CMP_TRANS 1 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /generic/include/linux/tc_ematch/tc_em_ipt.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_TC_EM_IPT_H 3 | #define __LINUX_TC_EM_IPT_H 4 | 5 | #include 6 | #include 7 | 8 | enum { 9 | TCA_EM_IPT_UNSPEC, 10 | TCA_EM_IPT_HOOK, 11 | TCA_EM_IPT_MATCH_NAME, 12 | TCA_EM_IPT_MATCH_REVISION, 13 | TCA_EM_IPT_NFPROTO, 14 | TCA_EM_IPT_MATCH_DATA, 15 | __TCA_EM_IPT_MAX 16 | }; 17 | 18 | #define TCA_EM_IPT_MAX (__TCA_EM_IPT_MAX - 1) 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /generic/include/linux/tc_ematch/tc_em_nbyte.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_TC_EM_NBYTE_H 3 | #define __LINUX_TC_EM_NBYTE_H 4 | 5 | #include 6 | #include 7 | 8 | struct tcf_em_nbyte { 9 | __u16 off; 10 | __u16 len:12; 11 | __u8 layer:4; 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /generic/include/linux/tc_ematch/tc_em_text.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __LINUX_TC_EM_TEXT_H 3 | #define __LINUX_TC_EM_TEXT_H 4 | 5 | #include 6 | #include 7 | 8 | #define TC_EM_TEXT_ALGOSIZ 16 9 | 10 | struct tcf_em_text { 11 | char algo[TC_EM_TEXT_ALGOSIZ]; 12 | __u16 from_offset; 13 | __u16 to_offset; 14 | __u16 pattern_len; 15 | __u8 from_layer:4; 16 | __u8 to_layer:4; 17 | __u8 pad; 18 | }; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /generic/include/linux/termios.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_TERMIOS_H 3 | #define _LINUX_TERMIOS_H 4 | 5 | #include 6 | #include 7 | 8 | #define NFF 5 9 | 10 | struct termiox 11 | { 12 | __u16 x_hflag; 13 | __u16 x_cflag; 14 | __u16 x_rflag[NFF]; 15 | __u16 x_sflag; 16 | }; 17 | 18 | #define RTSXOFF 0x0001 /* RTS flow control on input */ 19 | #define CTSXON 0x0002 /* CTS flow control on output */ 20 | #define DTRXOFF 0x0004 /* DTR flow control on input */ 21 | #define DSRXON 0x0008 /* DCD flow control on output */ 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /generic/include/linux/times.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_TIMES_H 3 | #define _LINUX_TIMES_H 4 | 5 | #include 6 | 7 | struct tms { 8 | __kernel_clock_t tms_utime; 9 | __kernel_clock_t tms_stime; 10 | __kernel_clock_t tms_cutime; 11 | __kernel_clock_t tms_cstime; 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /generic/include/linux/tipc_sockets_diag.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* AF_TIPC sock_diag interface for querying open sockets */ 3 | 4 | #ifndef __TIPC_SOCKETS_DIAG_H__ 5 | #define __TIPC_SOCKETS_DIAG_H__ 6 | 7 | #include 8 | #include 9 | 10 | /* Request */ 11 | struct tipc_sock_diag_req { 12 | __u8 sdiag_family; /* must be AF_TIPC */ 13 | __u8 sdiag_protocol; /* must be 0 */ 14 | __u16 pad; /* must be 0 */ 15 | __u32 tidiag_states; /* query*/ 16 | }; 17 | #endif /* __TIPC_SOCKETS_DIAG_H__ */ 18 | -------------------------------------------------------------------------------- /generic/include/linux/udf_fs_i.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * udf_fs_i.h 4 | * 5 | * This file is intended for the Linux kernel/module. 6 | * 7 | * COPYRIGHT 8 | * This file is distributed under the terms of the GNU General Public 9 | * License (GPL). Copies of the GPL can be obtained from: 10 | * ftp://prep.ai.mit.edu/pub/gnu/GPL 11 | * Each contributing author retains all rights to their own work. 12 | */ 13 | #ifndef _UDF_FS_I_H 14 | #define _UDF_FS_I_H 1 15 | 16 | /* exported IOCTLs, we have 'l', 0x40-0x7f */ 17 | #define UDF_GETEASIZE _IOR('l', 0x40, int) 18 | #define UDF_GETEABLOCK _IOR('l', 0x41, void *) 19 | #define UDF_GETVOLIDENT _IOR('l', 0x42, void *) 20 | #define UDF_RELOCATE_BLOCKS _IOWR('l', 0x43, long) 21 | 22 | #endif /* _UDF_FS_I_H */ 23 | -------------------------------------------------------------------------------- /generic/include/linux/un.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_UN_H 3 | #define _LINUX_UN_H 4 | 5 | #include 6 | 7 | #define UNIX_PATH_MAX 108 8 | 9 | struct sockaddr_un { 10 | __kernel_sa_family_t sun_family; /* AF_UNIX */ 11 | char sun_path[UNIX_PATH_MAX]; /* pathname */ 12 | }; 13 | 14 | #define SIOCUNIXFILE (SIOCPROTOPRIVATE + 0) /* open a socket file with O_PATH */ 15 | 16 | #endif /* _LINUX_UN_H */ 17 | -------------------------------------------------------------------------------- /generic/include/linux/unistd.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_UNISTD_H_ 3 | #define _LINUX_UNISTD_H_ 4 | 5 | /* 6 | * Include machine specific syscall numbers 7 | */ 8 | #include 9 | 10 | #endif /* _LINUX_UNISTD_H_ */ 11 | -------------------------------------------------------------------------------- /generic/include/linux/usb/charger.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file defines the USB charger type and state that are needed for 3 | * USB device APIs. 4 | */ 5 | 6 | #ifndef __LINUX_USB_CHARGER_H 7 | #define __LINUX_USB_CHARGER_H 8 | 9 | /* 10 | * USB charger type: 11 | * SDP (Standard Downstream Port) 12 | * DCP (Dedicated Charging Port) 13 | * CDP (Charging Downstream Port) 14 | * ACA (Accessory Charger Adapters) 15 | */ 16 | enum usb_charger_type { 17 | UNKNOWN_TYPE, 18 | SDP_TYPE, 19 | DCP_TYPE, 20 | CDP_TYPE, 21 | ACA_TYPE, 22 | }; 23 | 24 | /* USB charger state */ 25 | enum usb_charger_state { 26 | USB_CHARGER_DEFAULT, 27 | USB_CHARGER_PRESENT, 28 | USB_CHARGER_ABSENT, 29 | }; 30 | 31 | #endif /* __LINUX_USB_CHARGER_H */ 32 | -------------------------------------------------------------------------------- /generic/include/linux/usbip.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * usbip.h 4 | * 5 | * USBIP uapi defines and function prototypes etc. 6 | */ 7 | 8 | #ifndef _LINUX_USBIP_H 9 | #define _LINUX_USBIP_H 10 | 11 | /* usbip device status - exported in usbip device sysfs status */ 12 | enum usbip_device_status { 13 | /* sdev is available. */ 14 | SDEV_ST_AVAILABLE = 0x01, 15 | /* sdev is now used. */ 16 | SDEV_ST_USED, 17 | /* sdev is unusable because of a fatal error. */ 18 | SDEV_ST_ERROR, 19 | 20 | /* vdev does not connect a remote device. */ 21 | VDEV_ST_NULL, 22 | /* vdev is used, but the USB address is not assigned yet */ 23 | VDEV_ST_NOTASSIGNED, 24 | VDEV_ST_USED, 25 | VDEV_ST_ERROR 26 | }; 27 | #endif /* _LINUX_USBIP_H */ 28 | -------------------------------------------------------------------------------- /generic/include/linux/utime.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_UTIME_H 3 | #define _LINUX_UTIME_H 4 | 5 | #include 6 | 7 | struct utimbuf { 8 | __kernel_time_t actime; 9 | __kernel_time_t modtime; 10 | }; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /generic/include/linux/version.h: -------------------------------------------------------------------------------- 1 | #define LINUX_VERSION_CODE 267096 2 | #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) 3 | -------------------------------------------------------------------------------- /generic/include/linux/veth.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __NET_VETH_H_ 3 | #define __NET_VETH_H_ 4 | 5 | enum { 6 | VETH_INFO_UNSPEC, 7 | VETH_INFO_PEER, 8 | 9 | __VETH_INFO_MAX 10 | #define VETH_INFO_MAX (__VETH_INFO_MAX - 1) 11 | }; 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /generic/include/linux/vfio_ccw.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Interfaces for vfio-ccw 4 | * 5 | * Copyright IBM Corp. 2017 6 | * 7 | * Author(s): Dong Jia Shi 8 | */ 9 | 10 | #ifndef _VFIO_CCW_H_ 11 | #define _VFIO_CCW_H_ 12 | 13 | #include 14 | 15 | struct ccw_io_region { 16 | #define ORB_AREA_SIZE 12 17 | __u8 orb_area[ORB_AREA_SIZE]; 18 | #define SCSW_AREA_SIZE 12 19 | __u8 scsw_area[SCSW_AREA_SIZE]; 20 | #define IRB_AREA_SIZE 96 21 | __u8 irb_area[IRB_AREA_SIZE]; 22 | __u32 ret_code; 23 | } __attribute__((packed)); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /generic/include/linux/virtio_rng.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_VIRTIO_RNG_H 2 | #define _LINUX_VIRTIO_RNG_H 3 | /* This header is BSD licensed so anyone can use the definitions to implement 4 | * compatible drivers/servers. */ 5 | #include 6 | #include 7 | 8 | #endif /* _LINUX_VIRTIO_RNG_H */ 9 | -------------------------------------------------------------------------------- /generic/include/linux/vmcore.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef _VMCORE_H 3 | #define _VMCORE_H 4 | 5 | #include 6 | 7 | #define VMCOREDD_NOTE_NAME "LINUX" 8 | #define VMCOREDD_MAX_NAME_BYTES 44 9 | 10 | struct vmcoredd_header { 11 | __u32 n_namesz; /* Name size */ 12 | __u32 n_descsz; /* Content size */ 13 | __u32 n_type; /* NT_VMCOREDD */ 14 | __u8 name[8]; /* LINUX\0\0\0 */ 15 | __u8 dump_name[VMCOREDD_MAX_NAME_BYTES]; /* Device dump's name */ 16 | }; 17 | 18 | #endif /* _VMCORE_H */ 19 | -------------------------------------------------------------------------------- /generic/include/linux/wait.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _LINUX_WAIT_H 3 | #define _LINUX_WAIT_H 4 | 5 | #define WNOHANG 0x00000001 6 | #define WUNTRACED 0x00000002 7 | #define WSTOPPED WUNTRACED 8 | #define WEXITED 0x00000004 9 | #define WCONTINUED 0x00000008 10 | #define WNOWAIT 0x01000000 /* Don't reap, just poll status. */ 11 | 12 | #define __WNOTHREAD 0x20000000 /* Don't wait on children of other threads in this group */ 13 | #define __WALL 0x40000000 /* Wait on all children, regardless of type */ 14 | #define __WCLONE 0x80000000 /* Wait only on non-SIGCHLD children */ 15 | 16 | /* First argument to waitid: */ 17 | #define P_ALL 0 18 | #define P_PID 1 19 | #define P_PGID 2 20 | 21 | 22 | #endif /* _LINUX_WAIT_H */ 23 | -------------------------------------------------------------------------------- /generic/include/linux/wanrouter.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * wanrouter.h Legacy declarations kept around until X25 is removed 4 | */ 5 | 6 | #ifndef _ROUTER_H 7 | #define _ROUTER_H 8 | 9 | /* 'state' defines */ 10 | enum wan_states 11 | { 12 | WAN_UNCONFIGURED, /* link/channel is not configured */ 13 | WAN_DISCONNECTED, /* link/channel is disconnected */ 14 | WAN_CONNECTING, /* connection is in progress */ 15 | WAN_CONNECTED /* link/channel is operational */ 16 | }; 17 | 18 | #endif /* _ROUTER_H */ 19 | -------------------------------------------------------------------------------- /generic/include/video/edid.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __linux_video_edid_h__ 3 | #define __linux_video_edid_h__ 4 | 5 | struct edid_info { 6 | unsigned char dummy[128]; 7 | }; 8 | 9 | 10 | #endif /* __linux_video_edid_h__ */ 11 | -------------------------------------------------------------------------------- /i386: -------------------------------------------------------------------------------- 1 | x86 -------------------------------------------------------------------------------- /m68k/include/asm-generic: -------------------------------------------------------------------------------- 1 | ../../generic/include/asm-generic -------------------------------------------------------------------------------- /m68k/include/asm/auxvec.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/bitsperlong.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/bootinfo-apollo.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | ** asm/bootinfo-apollo.h -- Apollo-specific boot information definitions 4 | */ 5 | 6 | #ifndef _ASM_M68K_BOOTINFO_APOLLO_H 7 | #define _ASM_M68K_BOOTINFO_APOLLO_H 8 | 9 | 10 | /* 11 | * Apollo-specific tags 12 | */ 13 | 14 | #define BI_APOLLO_MODEL 0x8000 /* model (__be32) */ 15 | 16 | 17 | /* 18 | * Apollo models (BI_APOLLO_MODEL) 19 | */ 20 | 21 | #define APOLLO_UNKNOWN 0 22 | #define APOLLO_DN3000 1 23 | #define APOLLO_DN3010 2 24 | #define APOLLO_DN3500 3 25 | #define APOLLO_DN4000 4 26 | #define APOLLO_DN4500 5 27 | 28 | 29 | #endif /* _ASM_M68K_BOOTINFO_APOLLO_H */ 30 | -------------------------------------------------------------------------------- /m68k/include/asm/bootinfo-q40.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | ** asm/bootinfo-q40.h -- Q40-specific boot information definitions 4 | */ 5 | 6 | #ifndef _ASM_M68K_BOOTINFO_Q40_H 7 | #define _ASM_M68K_BOOTINFO_Q40_H 8 | 9 | 10 | /* 11 | * Latest Q40 bootinfo version 12 | */ 13 | 14 | #define Q40_BOOTI_VERSION MK_BI_VERSION(2, 0) 15 | 16 | 17 | #endif /* _ASM_M68K_BOOTINFO_Q40_H */ 18 | -------------------------------------------------------------------------------- /m68k/include/asm/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _M68K_BYTEORDER_H 3 | #define _M68K_BYTEORDER_H 4 | 5 | #include 6 | 7 | #endif /* _M68K_BYTEORDER_H */ 8 | -------------------------------------------------------------------------------- /m68k/include/asm/cachectl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _M68K_CACHECTL_H 3 | #define _M68K_CACHECTL_H 4 | 5 | /* Definitions for the cacheflush system call. */ 6 | 7 | #define FLUSH_SCOPE_LINE 1 /* Flush a cache line */ 8 | #define FLUSH_SCOPE_PAGE 2 /* Flush a page */ 9 | #define FLUSH_SCOPE_ALL 3 /* Flush the whole cache -- superuser only */ 10 | 11 | #define FLUSH_CACHE_DATA 1 /* Writeback and flush data cache */ 12 | #define FLUSH_CACHE_INSN 2 /* Flush instruction cache */ 13 | #define FLUSH_CACHE_BOTH 3 /* Flush both caches */ 14 | 15 | #endif /* _M68K_CACHECTL_H */ 16 | -------------------------------------------------------------------------------- /m68k/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _M68K_FCNTL_H 3 | #define _M68K_FCNTL_H 4 | 5 | #define O_DIRECTORY 040000 /* must be a directory */ 6 | #define O_NOFOLLOW 0100000 /* don't follow links */ 7 | #define O_DIRECT 0200000 /* direct disk access hint - currently ignored */ 8 | #define O_LARGEFILE 0400000 9 | 10 | #include 11 | 12 | #endif /* _M68K_FCNTL_H */ 13 | -------------------------------------------------------------------------------- /m68k/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/ioctls.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ARCH_M68K_IOCTLS_H__ 3 | #define __ARCH_M68K_IOCTLS_H__ 4 | 5 | #define FIOQSIZE 0x545E 6 | 7 | #include 8 | 9 | #endif /* __ARCH_M68K_IOCTLS_H__ */ 10 | -------------------------------------------------------------------------------- /m68k/include/asm/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/kvm_para.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/mman.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/msgbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/param.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _M68K_PARAM_H 3 | #define _M68K_PARAM_H 4 | 5 | #ifdef __uClinux__ 6 | #define EXEC_PAGESIZE 4096 7 | #else 8 | #define EXEC_PAGESIZE 8192 9 | #endif 10 | 11 | #include 12 | 13 | #endif /* _M68K_PARAM_H */ 14 | -------------------------------------------------------------------------------- /m68k/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __m68k_POLL_H 3 | #define __m68k_POLL_H 4 | 5 | #define POLLWRNORM POLLOUT 6 | #define POLLWRBAND 256 7 | 8 | #include 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /m68k/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/sembuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/setup.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | ** asm/setup.h -- Definition of the Linux/m68k setup information 4 | ** 5 | ** Copyright 1992 by Greg Harp 6 | ** 7 | ** This file is subject to the terms and conditions of the GNU General Public 8 | ** License. See the file COPYING in the main directory of this archive 9 | ** for more details. 10 | */ 11 | 12 | #ifndef _M68K_SETUP_H 13 | #define _M68K_SETUP_H 14 | 15 | #define COMMAND_LINE_SIZE 256 16 | 17 | #endif /* _M68K_SETUP_H */ 18 | -------------------------------------------------------------------------------- /m68k/include/asm/shmbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/shmparam.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/sigcontext.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_M68k_SIGCONTEXT_H 3 | #define _ASM_M68k_SIGCONTEXT_H 4 | 5 | struct sigcontext { 6 | unsigned long sc_mask; /* old sigmask */ 7 | unsigned long sc_usp; /* old user stack pointer */ 8 | unsigned long sc_d0; 9 | unsigned long sc_d1; 10 | unsigned long sc_a0; 11 | unsigned long sc_a1; 12 | #ifdef __uClinux__ 13 | unsigned long sc_a5; 14 | #endif 15 | unsigned short sc_sr; 16 | unsigned long sc_pc; 17 | unsigned short sc_formatvec; 18 | #ifndef __uClinux__ 19 | unsigned long sc_fpregs[2*3]; /* room for two fp registers */ 20 | unsigned long sc_fpcntl[3]; 21 | unsigned char sc_fpstate[216]; 22 | #endif 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /m68k/include/asm/siginfo.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/socket.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/statfs.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/swab.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _M68K_SWAB_H 3 | #define _M68K_SWAB_H 4 | 5 | #include 6 | 7 | 8 | #define __SWAB_64_THRU_32__ 9 | 10 | #if defined (__mcfisaaplus__) || defined (__mcfisac__) 11 | static __inline__ __u32 __arch_swab32(__u32 val) 12 | { 13 | __asm__("byterev %0" : "=d" (val) : "0" (val)); 14 | return val; 15 | } 16 | 17 | #define __arch_swab32 __arch_swab32 18 | #elif !defined(__mcoldfire__) 19 | 20 | static __inline__ __u32 __arch_swab32(__u32 val) 21 | { 22 | __asm__("rolw #8,%0; swap %0; rolw #8,%0" : "=d" (val) : "0" (val)); 23 | return val; 24 | } 25 | #define __arch_swab32 __arch_swab32 26 | #endif 27 | 28 | #endif /* _M68K_SWAB_H */ 29 | -------------------------------------------------------------------------------- /m68k/include/asm/termbits.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/termios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/asm/types.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /m68k/include/drm: -------------------------------------------------------------------------------- 1 | ../../generic/include/drm -------------------------------------------------------------------------------- /m68k/include/linux: -------------------------------------------------------------------------------- 1 | ../../generic/include/linux -------------------------------------------------------------------------------- /m68k/include/mtd: -------------------------------------------------------------------------------- 1 | ../../generic/include/mtd -------------------------------------------------------------------------------- /m68k/include/rdma: -------------------------------------------------------------------------------- 1 | ../../generic/include/rdma -------------------------------------------------------------------------------- /m68k/include/scsi: -------------------------------------------------------------------------------- 1 | ../../generic/include/scsi -------------------------------------------------------------------------------- /m68k/include/sound: -------------------------------------------------------------------------------- 1 | ../../generic/include/sound -------------------------------------------------------------------------------- /m68k/include/video: -------------------------------------------------------------------------------- 1 | ../../generic/include/video -------------------------------------------------------------------------------- /m68k/include/xen: -------------------------------------------------------------------------------- 1 | ../../generic/include/xen -------------------------------------------------------------------------------- /microblaze/include/asm-generic: -------------------------------------------------------------------------------- 1 | ../../generic/include/asm-generic -------------------------------------------------------------------------------- /microblaze/include/asm/auxvec.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | 3 | -------------------------------------------------------------------------------- /microblaze/include/asm/bitsperlong.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_MICROBLAZE_BYTEORDER_H 3 | #define _ASM_MICROBLAZE_BYTEORDER_H 4 | 5 | #ifdef __MICROBLAZEEL__ 6 | #include 7 | #else 8 | #include 9 | #endif 10 | 11 | #endif /* _ASM_MICROBLAZE_BYTEORDER_H */ 12 | -------------------------------------------------------------------------------- /microblaze/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/ioctls.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/kvm_para.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/mman.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/msgbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/param.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/posix_types.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_MICROBLAZE_POSIX_TYPES_H 3 | #define _ASM_MICROBLAZE_POSIX_TYPES_H 4 | 5 | typedef unsigned short __kernel_mode_t; 6 | #define __kernel_mode_t __kernel_mode_t 7 | 8 | #include 9 | 10 | #endif /* _ASM_MICROBLAZE_POSIX_TYPES_H */ 11 | -------------------------------------------------------------------------------- /microblaze/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/sembuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/setup.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Copyright (C) 2007-2009 Michal Simek 4 | * Copyright (C) 2007-2009 PetaLogix 5 | * Copyright (C) 2006 Atmark Techno, Inc. 6 | * 7 | * This file is subject to the terms and conditions of the GNU General Public 8 | * License. See the file "COPYING" in the main directory of this archive 9 | * for more details. 10 | */ 11 | 12 | #ifndef _ASM_MICROBLAZE_SETUP_H 13 | #define _ASM_MICROBLAZE_SETUP_H 14 | 15 | #define COMMAND_LINE_SIZE 256 16 | 17 | # ifndef __ASSEMBLY__ 18 | 19 | # endif /* __ASSEMBLY__ */ 20 | #endif /* _ASM_MICROBLAZE_SETUP_H */ 21 | -------------------------------------------------------------------------------- /microblaze/include/asm/shmbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/shmparam.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/sigcontext.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Copyright (C) 2006 Atmark Techno, Inc. 4 | * 5 | * This file is subject to the terms and conditions of the GNU General Public 6 | * License. See the file "COPYING" in the main directory of this archive 7 | * for more details. 8 | */ 9 | 10 | #ifndef _ASM_MICROBLAZE_SIGCONTEXT_H 11 | #define _ASM_MICROBLAZE_SIGCONTEXT_H 12 | 13 | /* FIXME should be linux/ptrace.h */ 14 | #include 15 | 16 | struct sigcontext { 17 | struct pt_regs regs; 18 | unsigned long oldmask; 19 | }; 20 | 21 | #endif /* _ASM_MICROBLAZE_SIGCONTEXT_H */ 22 | -------------------------------------------------------------------------------- /microblaze/include/asm/siginfo.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/signal.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/socket.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/stat.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/statfs.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/swab.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/termbits.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/termios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/types.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/asm/ucontext.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /microblaze/include/drm: -------------------------------------------------------------------------------- 1 | ../../generic/include/drm -------------------------------------------------------------------------------- /microblaze/include/linux: -------------------------------------------------------------------------------- 1 | ../../generic/include/linux -------------------------------------------------------------------------------- /microblaze/include/mtd: -------------------------------------------------------------------------------- 1 | ../../generic/include/mtd -------------------------------------------------------------------------------- /microblaze/include/rdma: -------------------------------------------------------------------------------- 1 | ../../generic/include/rdma -------------------------------------------------------------------------------- /microblaze/include/scsi: -------------------------------------------------------------------------------- 1 | ../../generic/include/scsi -------------------------------------------------------------------------------- /microblaze/include/sound: -------------------------------------------------------------------------------- 1 | ../../generic/include/sound -------------------------------------------------------------------------------- /microblaze/include/video: -------------------------------------------------------------------------------- 1 | ../../generic/include/video -------------------------------------------------------------------------------- /microblaze/include/xen: -------------------------------------------------------------------------------- 1 | ../../generic/include/xen -------------------------------------------------------------------------------- /mips/include/asm-generic: -------------------------------------------------------------------------------- 1 | ../../generic/include/asm-generic -------------------------------------------------------------------------------- /mips/include/asm/auxvec.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 | /* 3 | * Copyright (C) 2015 Imagination Technologies 4 | * Author: Alex Smith 5 | * 6 | * This program is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by the 8 | * Free Software Foundation; either version 2 of the License, or (at your 9 | * option) any later version. 10 | */ 11 | 12 | #ifndef __ASM_AUXVEC_H 13 | #define __ASM_AUXVEC_H 14 | 15 | /* Location of VDSO image. */ 16 | #define AT_SYSINFO_EHDR 33 17 | 18 | #define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */ 19 | 20 | #endif /* __ASM_AUXVEC_H */ 21 | -------------------------------------------------------------------------------- /mips/include/asm/bitsperlong.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_MIPS_BITSPERLONG_H 3 | #define __ASM_MIPS_BITSPERLONG_H 4 | 5 | #define __BITS_PER_LONG _MIPS_SZLONG 6 | 7 | #include 8 | 9 | #endif /* __ASM_MIPS_BITSPERLONG_H */ 10 | -------------------------------------------------------------------------------- /mips/include/asm/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /mips/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * This file is subject to the terms and conditions of the GNU General Public 4 | * License. See the file "COPYING" in the main directory of this archive 5 | * for more details. 6 | * 7 | * Copyright (C) 1996, 99, 2003 by Ralf Baechle 8 | */ 9 | #ifndef _ASM_BYTEORDER_H 10 | #define _ASM_BYTEORDER_H 11 | 12 | #if defined(__MIPSEB__) 13 | #include 14 | #elif defined(__MIPSEL__) 15 | #include 16 | #else 17 | # error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???" 18 | #endif 19 | 20 | #endif /* _ASM_BYTEORDER_H */ 21 | -------------------------------------------------------------------------------- /mips/include/asm/hwcap.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_HWCAP_H 3 | #define _ASM_HWCAP_H 4 | 5 | /* HWCAP flags */ 6 | #define HWCAP_MIPS_R6 (1 << 0) 7 | #define HWCAP_MIPS_MSA (1 << 1) 8 | #define HWCAP_MIPS_CRC32 (1 << 2) 9 | #define HWCAP_MIPS_MIPS16 (1 << 3) 10 | #define HWCAP_MIPS_MDMX (1 << 4) 11 | #define HWCAP_MIPS_MIPS3D (1 << 5) 12 | #define HWCAP_MIPS_SMARTMIPS (1 << 6) 13 | #define HWCAP_MIPS_DSP (1 << 7) 14 | #define HWCAP_MIPS_DSP2 (1 << 8) 15 | #define HWCAP_MIPS_DSP3 (1 << 9) 16 | #define HWCAP_MIPS_MIPS16E2 (1 << 10) 17 | #define HWCAP_LOONGSON_MMI (1 << 11) 18 | #define HWCAP_LOONGSON_EXT (1 << 12) 19 | #define HWCAP_LOONGSON_EXT2 (1 << 13) 20 | 21 | #endif /* _ASM_HWCAP_H */ 22 | -------------------------------------------------------------------------------- /mips/include/asm/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /mips/include/asm/kvm_para.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_MIPS_KVM_PARA_H 2 | #define _ASM_MIPS_KVM_PARA_H 3 | 4 | 5 | #endif /* _ASM_MIPS_KVM_PARA_H */ 6 | -------------------------------------------------------------------------------- /mips/include/asm/param.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * This file is subject to the terms and conditions of the GNU General Public 4 | * License. See the file "COPYING" in the main directory of this archive 5 | * for more details. 6 | * 7 | * Copyright 1994 - 2000, 2002 Ralf Baechle (ralf@gnu.org) 8 | * Copyright 2000 Silicon Graphics, Inc. 9 | */ 10 | #ifndef _ASM_PARAM_H 11 | #define _ASM_PARAM_H 12 | 13 | #define EXEC_PAGESIZE 65536 14 | 15 | #include 16 | 17 | #endif /* _ASM_PARAM_H */ 18 | -------------------------------------------------------------------------------- /mips/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_POLL_H 3 | #define __ASM_POLL_H 4 | 5 | #define POLLWRNORM POLLOUT 6 | #define POLLWRBAND 0x0100 7 | 8 | #include 9 | 10 | #endif /* __ASM_POLL_H */ 11 | -------------------------------------------------------------------------------- /mips/include/asm/setup.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _MIPS_SETUP_H 3 | #define _MIPS_SETUP_H 4 | 5 | #define COMMAND_LINE_SIZE 4096 6 | 7 | 8 | #endif /* _MIPS_SETUP_H */ 9 | -------------------------------------------------------------------------------- /mips/include/drm: -------------------------------------------------------------------------------- 1 | ../../generic/include/drm -------------------------------------------------------------------------------- /mips/include/linux: -------------------------------------------------------------------------------- 1 | ../../generic/include/linux -------------------------------------------------------------------------------- /mips/include/mtd: -------------------------------------------------------------------------------- 1 | ../../generic/include/mtd -------------------------------------------------------------------------------- /mips/include/rdma: -------------------------------------------------------------------------------- 1 | ../../generic/include/rdma -------------------------------------------------------------------------------- /mips/include/scsi: -------------------------------------------------------------------------------- 1 | ../../generic/include/scsi -------------------------------------------------------------------------------- /mips/include/sound: -------------------------------------------------------------------------------- 1 | ../../generic/include/sound -------------------------------------------------------------------------------- /mips/include/video: -------------------------------------------------------------------------------- 1 | ../../generic/include/video -------------------------------------------------------------------------------- /mips/include/xen: -------------------------------------------------------------------------------- 1 | ../../generic/include/xen -------------------------------------------------------------------------------- /openrisc/include/asm-generic: -------------------------------------------------------------------------------- 1 | ../../generic/include/asm-generic -------------------------------------------------------------------------------- /openrisc/include/asm/auxvec.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/bitsperlong.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/ioctls.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/kvm_para.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/mman.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/msgbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/posix_types.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/sembuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/setup.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/shmbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/shmparam.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/siginfo.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/signal.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/socket.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/stat.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/statfs.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/swab.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/termbits.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/termios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/types.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/asm/ucontext.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /openrisc/include/drm: -------------------------------------------------------------------------------- 1 | ../../generic/include/drm -------------------------------------------------------------------------------- /openrisc/include/linux: -------------------------------------------------------------------------------- 1 | ../../generic/include/linux -------------------------------------------------------------------------------- /openrisc/include/mtd: -------------------------------------------------------------------------------- 1 | ../../generic/include/mtd -------------------------------------------------------------------------------- /openrisc/include/rdma: -------------------------------------------------------------------------------- 1 | ../../generic/include/rdma -------------------------------------------------------------------------------- /openrisc/include/scsi: -------------------------------------------------------------------------------- 1 | ../../generic/include/scsi -------------------------------------------------------------------------------- /openrisc/include/sound: -------------------------------------------------------------------------------- 1 | ../../generic/include/sound -------------------------------------------------------------------------------- /openrisc/include/video: -------------------------------------------------------------------------------- 1 | ../../generic/include/video -------------------------------------------------------------------------------- /openrisc/include/xen: -------------------------------------------------------------------------------- 1 | ../../generic/include/xen -------------------------------------------------------------------------------- /or1k: -------------------------------------------------------------------------------- 1 | openrisc -------------------------------------------------------------------------------- /powerpc/include/asm-generic: -------------------------------------------------------------------------------- 1 | ../../generic/include/asm-generic -------------------------------------------------------------------------------- /powerpc/include/asm/bitsperlong.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_POWERPC_BITSPERLONG_H 3 | #define __ASM_POWERPC_BITSPERLONG_H 4 | 5 | #if defined(__powerpc64__) 6 | # define __BITS_PER_LONG 64 7 | #else 8 | # define __BITS_PER_LONG 32 9 | #endif 10 | 11 | #include 12 | 13 | #endif /* __ASM_POWERPC_BITSPERLONG_H */ 14 | -------------------------------------------------------------------------------- /powerpc/include/asm/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /powerpc/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 | #ifndef _ASM_POWERPC_BYTEORDER_H 3 | #define _ASM_POWERPC_BYTEORDER_H 4 | 5 | /* 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License 8 | * as published by the Free Software Foundation; either version 9 | * 2 of the License, or (at your option) any later version. 10 | */ 11 | #ifdef __LITTLE_ENDIAN__ 12 | #include 13 | #else 14 | #include 15 | #endif 16 | 17 | #endif /* _ASM_POWERPC_BYTEORDER_H */ 18 | -------------------------------------------------------------------------------- /powerpc/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_POWERPC_ERRNO_H 3 | #define _ASM_POWERPC_ERRNO_H 4 | 5 | #include 6 | 7 | #undef EDEADLOCK 8 | #define EDEADLOCK 58 /* File locking deadlock error */ 9 | 10 | #endif /* _ASM_POWERPC_ERRNO_H */ 11 | -------------------------------------------------------------------------------- /powerpc/include/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_FCNTL_H 3 | #define _ASM_FCNTL_H 4 | 5 | #define O_DIRECTORY 040000 /* must be a directory */ 6 | #define O_NOFOLLOW 0100000 /* don't follow links */ 7 | #define O_LARGEFILE 0200000 8 | #define O_DIRECT 0400000 /* direct disk access hint */ 9 | 10 | #include 11 | 12 | #endif /* _ASM_FCNTL_H */ 13 | -------------------------------------------------------------------------------- /powerpc/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_POWERPC_IOCTL_H 3 | #define _ASM_POWERPC_IOCTL_H 4 | 5 | #define _IOC_SIZEBITS 13 6 | #define _IOC_DIRBITS 3 7 | 8 | #define _IOC_NONE 1U 9 | #define _IOC_READ 2U 10 | #define _IOC_WRITE 4U 11 | 12 | #include 13 | 14 | #endif /* _ASM_POWERPC_IOCTL_H */ 15 | -------------------------------------------------------------------------------- /powerpc/include/asm/param.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /powerpc/include/asm/perf_event.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Copyright 2013 Michael Ellerman, IBM Corp. 4 | * 5 | * This program is free software; you can redistribute it and/or 6 | * modify it under the terms of the GNU General Public License 7 | * as published by the Free Software Foundation; version 2 of the 8 | * License. 9 | */ 10 | 11 | #ifndef _ASM_POWERPC_PERF_EVENT_H 12 | #define _ASM_POWERPC_PERF_EVENT_H 13 | 14 | /* 15 | * We use bit 63 of perf_event_attr.config as a flag to request EBB. 16 | */ 17 | #define PERF_EVENT_CONFIG_EBB_SHIFT 63 18 | 19 | #endif /* _ASM_POWERPC_PERF_EVENT_H */ 20 | -------------------------------------------------------------------------------- /powerpc/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /powerpc/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /powerpc/include/asm/setup.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_POWERPC_SETUP_H 3 | #define _ASM_POWERPC_SETUP_H 4 | 5 | #define COMMAND_LINE_SIZE 2048 6 | 7 | #endif /* _ASM_POWERPC_SETUP_H */ 8 | -------------------------------------------------------------------------------- /powerpc/include/asm/siginfo.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 | #ifndef _ASM_POWERPC_SIGINFO_H 3 | #define _ASM_POWERPC_SIGINFO_H 4 | 5 | /* 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License 8 | * as published by the Free Software Foundation; either version 9 | * 2 of the License, or (at your option) any later version. 10 | */ 11 | 12 | #ifdef __powerpc64__ 13 | # define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) 14 | #endif 15 | 16 | #include 17 | 18 | #endif /* _ASM_POWERPC_SIGINFO_H */ 19 | -------------------------------------------------------------------------------- /powerpc/include/asm/socket.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 | #ifndef _ASM_POWERPC_SOCKET_H 3 | #define _ASM_POWERPC_SOCKET_H 4 | 5 | /* 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License 8 | * as published by the Free Software Foundation; either version 9 | * 2 of the License, or (at your option) any later version. 10 | */ 11 | 12 | #define SO_RCVLOWAT 16 13 | #define SO_SNDLOWAT 17 14 | #define SO_RCVTIMEO 18 15 | #define SO_SNDTIMEO 19 16 | #define SO_PASSCRED 20 17 | #define SO_PEERCRED 21 18 | 19 | #include 20 | 21 | #endif /* _ASM_POWERPC_SOCKET_H */ 22 | -------------------------------------------------------------------------------- /powerpc/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /powerpc/include/asm/statfs.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /powerpc/include/asm/swab.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 | /* 3 | * This program is free software; you can redistribute it and/or 4 | * modify it under the terms of the GNU General Public License 5 | * as published by the Free Software Foundation; either version 6 | * 2 of the License, or (at your option) any later version. 7 | */ 8 | #ifndef _ASM_POWERPC_SWAB_H 9 | #define _ASM_POWERPC_SWAB_H 10 | 11 | 12 | #include 13 | 14 | 15 | #ifdef __GNUC__ 16 | 17 | #ifndef __powerpc64__ 18 | #define __SWAB_64_THRU_32__ 19 | #endif /* __powerpc64__ */ 20 | 21 | 22 | #endif /* __GNUC__ */ 23 | 24 | #endif /* _ASM_POWERPC_SWAB_H */ 25 | -------------------------------------------------------------------------------- /powerpc/include/asm/tm.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_POWERPC_TM_H 3 | #define _ASM_POWERPC_TM_H 4 | 5 | /* Reason codes describing kernel causes for transaction aborts. By 6 | * convention, bit0 is copied to TEXASR[56] (IBM bit 7) which is set if 7 | * the failure is persistent. PAPR saves 0xff-0xe0 for the hypervisor. 8 | */ 9 | #define TM_CAUSE_PERSISTENT 0x01 10 | #define TM_CAUSE_KVM_RESCHED 0xe0 /* From PAPR */ 11 | #define TM_CAUSE_KVM_FAC_UNAV 0xe2 /* From PAPR */ 12 | #define TM_CAUSE_RESCHED 0xde 13 | #define TM_CAUSE_TLBI 0xdc 14 | #define TM_CAUSE_FAC_UNAV 0xda 15 | #define TM_CAUSE_SYSCALL 0xd8 16 | #define TM_CAUSE_MISC 0xd6 /* future use */ 17 | #define TM_CAUSE_SIGNAL 0xd4 18 | #define TM_CAUSE_ALIGNMENT 0xd2 19 | #define TM_CAUSE_EMULATE 0xd0 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /powerpc/include/drm: -------------------------------------------------------------------------------- 1 | ../../generic/include/drm -------------------------------------------------------------------------------- /powerpc/include/linux: -------------------------------------------------------------------------------- 1 | ../../generic/include/linux -------------------------------------------------------------------------------- /powerpc/include/mtd: -------------------------------------------------------------------------------- 1 | ../../generic/include/mtd -------------------------------------------------------------------------------- /powerpc/include/rdma: -------------------------------------------------------------------------------- 1 | ../../generic/include/rdma -------------------------------------------------------------------------------- /powerpc/include/scsi: -------------------------------------------------------------------------------- 1 | ../../generic/include/scsi -------------------------------------------------------------------------------- /powerpc/include/sound: -------------------------------------------------------------------------------- 1 | ../../generic/include/sound -------------------------------------------------------------------------------- /powerpc/include/video: -------------------------------------------------------------------------------- 1 | ../../generic/include/video -------------------------------------------------------------------------------- /powerpc/include/xen: -------------------------------------------------------------------------------- 1 | ../../generic/include/xen -------------------------------------------------------------------------------- /ppc64le: -------------------------------------------------------------------------------- 1 | powerpc -------------------------------------------------------------------------------- /riscv/include/asm-generic: -------------------------------------------------------------------------------- 1 | ../../generic/include/asm-generic -------------------------------------------------------------------------------- /riscv/include/asm/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/ioctls.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/mman.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/msgbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/param.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/posix_types.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/sembuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/setup.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/shmbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/signal.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/socket.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/stat.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/statfs.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/swab.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/termbits.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/termios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/types.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/asm/unistd.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /riscv/include/drm: -------------------------------------------------------------------------------- 1 | ../../generic/include/drm -------------------------------------------------------------------------------- /riscv/include/linux: -------------------------------------------------------------------------------- 1 | ../../generic/include/linux -------------------------------------------------------------------------------- /riscv/include/mtd: -------------------------------------------------------------------------------- 1 | ../../generic/include/mtd -------------------------------------------------------------------------------- /riscv/include/rdma: -------------------------------------------------------------------------------- 1 | ../../generic/include/rdma -------------------------------------------------------------------------------- /riscv/include/scsi: -------------------------------------------------------------------------------- 1 | ../../generic/include/scsi -------------------------------------------------------------------------------- /riscv/include/sound: -------------------------------------------------------------------------------- 1 | ../../generic/include/sound -------------------------------------------------------------------------------- /riscv/include/video: -------------------------------------------------------------------------------- 1 | ../../generic/include/video -------------------------------------------------------------------------------- /riscv/include/xen: -------------------------------------------------------------------------------- 1 | ../../generic/include/xen -------------------------------------------------------------------------------- /riscv32: -------------------------------------------------------------------------------- 1 | riscv -------------------------------------------------------------------------------- /riscv64: -------------------------------------------------------------------------------- 1 | riscv -------------------------------------------------------------------------------- /s390/include/asm-generic: -------------------------------------------------------------------------------- 1 | ../../generic/include/asm-generic -------------------------------------------------------------------------------- /s390/include/asm/auxvec.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASMS390_AUXVEC_H 3 | #define __ASMS390_AUXVEC_H 4 | 5 | #define AT_SYSINFO_EHDR 33 6 | 7 | #define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */ 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /s390/include/asm/bitsperlong.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_S390_BITSPERLONG_H 3 | #define __ASM_S390_BITSPERLONG_H 4 | 5 | #ifndef __s390x__ 6 | #define __BITS_PER_LONG 32 7 | #else 8 | #define __BITS_PER_LONG 64 9 | #endif 10 | 11 | #include 12 | 13 | #endif /* __ASM_S390_BITSPERLONG_H */ 14 | 15 | -------------------------------------------------------------------------------- /s390/include/asm/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef __ASM_BPF_PERF_EVENT_H__ 3 | #define __ASM_BPF_PERF_EVENT_H__ 4 | 5 | #include 6 | 7 | typedef user_pt_regs bpf_user_pt_regs_t; 8 | 9 | #endif /* __ASM_BPF_PERF_EVENT_H__ */ 10 | -------------------------------------------------------------------------------- /s390/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _S390_BYTEORDER_H 3 | #define _S390_BYTEORDER_H 4 | 5 | #include 6 | 7 | #endif /* _S390_BYTEORDER_H */ 8 | -------------------------------------------------------------------------------- /s390/include/asm/chpid.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Copyright IBM Corp. 2007, 2012 4 | * Author(s): Peter Oberparleiter 5 | */ 6 | 7 | #ifndef _ASM_S390_CHPID_H 8 | #define _ASM_S390_CHPID_H 9 | 10 | #include 11 | #include 12 | 13 | #define __MAX_CHPID 255 14 | 15 | struct chp_id { 16 | __u8 reserved1; 17 | __u8 cssid; 18 | __u8 reserved2; 19 | __u8 id; 20 | } __attribute__((packed)); 21 | 22 | 23 | #endif /* _ASM_S390_CHPID_H */ 24 | -------------------------------------------------------------------------------- /s390/include/asm/clp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * ioctl interface for /dev/clp 4 | * 5 | * Copyright IBM Corp. 2016 6 | * Author(s): Martin Schwidefsky 7 | */ 8 | 9 | #ifndef _ASM_CLP_H 10 | #define _ASM_CLP_H 11 | 12 | #include 13 | #include 14 | 15 | struct clp_req { 16 | unsigned int c : 1; 17 | unsigned int r : 1; 18 | unsigned int lps : 6; 19 | unsigned int cmd : 8; 20 | unsigned int : 16; 21 | unsigned int reserved; 22 | __u64 data_p; 23 | }; 24 | 25 | #define CLP_IOCTL_MAGIC 'c' 26 | 27 | #define CLP_SYNC _IOWR(CLP_IOCTL_MAGIC, 0xC1, struct clp_req) 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /s390/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/ioctls.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ARCH_S390_IOCTLS_H__ 3 | #define __ARCH_S390_IOCTLS_H__ 4 | 5 | #define FIOQSIZE 0x545E 6 | 7 | #include 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /s390/include/asm/kvm_para.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * User API definitions for paravirtual devices on s390 4 | * 5 | * Copyright IBM Corp. 2008 6 | * 7 | * Author(s): Christian Borntraeger 8 | */ 9 | -------------------------------------------------------------------------------- /s390/include/asm/kvm_perf.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Definitions for perf-kvm on s390 4 | * 5 | * Copyright 2014 IBM Corp. 6 | * Author(s): Alexander Yarygin 7 | */ 8 | 9 | #ifndef __LINUX_KVM_PERF_S390_H 10 | #define __LINUX_KVM_PERF_S390_H 11 | 12 | #include 13 | 14 | #define DECODE_STR_LEN 40 15 | 16 | #define VCPU_ID "id" 17 | 18 | #define KVM_ENTRY_TRACE "kvm:kvm_s390_sie_enter" 19 | #define KVM_EXIT_TRACE "kvm:kvm_s390_sie_exit" 20 | #define KVM_EXIT_REASON "icptcode" 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /s390/include/asm/mman.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/msgbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/param.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/schid.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef ASM_SCHID_H 3 | #define ASM_SCHID_H 4 | 5 | #include 6 | 7 | struct subchannel_id { 8 | __u32 cssid : 8; 9 | __u32 : 4; 10 | __u32 m : 1; 11 | __u32 ssid : 2; 12 | __u32 one : 1; 13 | __u32 sch_no : 16; 14 | } __attribute__ ((packed, aligned(4))); 15 | 16 | 17 | #endif /* ASM_SCHID_H */ 18 | -------------------------------------------------------------------------------- /s390/include/asm/sclp_ctl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * IOCTL interface for SCLP 4 | * 5 | * Copyright IBM Corp. 2012 6 | * 7 | * Author: Michael Holzheu 8 | */ 9 | 10 | #ifndef _ASM_SCLP_CTL_H 11 | #define _ASM_SCLP_CTL_H 12 | 13 | #include 14 | 15 | struct sclp_ctl_sccb { 16 | __u32 cmdw; 17 | __u64 sccb; 18 | } __attribute__((packed)); 19 | 20 | #define SCLP_CTL_IOCTL_MAGIC 0x10 21 | 22 | #define SCLP_CTL_SCCB \ 23 | _IOWR(SCLP_CTL_IOCTL_MAGIC, 0x10, struct sclp_ctl_sccb) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /s390/include/asm/sembuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/setup.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * S390 version 4 | * Copyright IBM Corp. 1999, 2010 5 | */ 6 | 7 | #ifndef _ASM_S390_SETUP_H 8 | #define _ASM_S390_SETUP_H 9 | 10 | #define COMMAND_LINE_SIZE 4096 11 | 12 | #define ARCH_COMMAND_LINE_SIZE 896 13 | 14 | #endif /* _ASM_S390_SETUP_H */ 15 | -------------------------------------------------------------------------------- /s390/include/asm/shmbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/siginfo.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * S390 version 4 | * 5 | * Derived from "include/asm-i386/siginfo.h" 6 | */ 7 | 8 | #ifndef _S390_SIGINFO_H 9 | #define _S390_SIGINFO_H 10 | 11 | #ifdef __s390x__ 12 | #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) 13 | #endif 14 | 15 | #include 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /s390/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/sthyi.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_STHYI_H 3 | #define _ASM_STHYI_H 4 | 5 | #define STHYI_FC_CP_IFL_CAP 0 6 | 7 | #endif /* _ASM_STHYI_H */ 8 | -------------------------------------------------------------------------------- /s390/include/asm/swab.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/termbits.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /s390/include/asm/types.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * S390 version 4 | * 5 | * Derived from "include/asm-i386/types.h" 6 | */ 7 | 8 | #ifndef _S390_TYPES_H 9 | #define _S390_TYPES_H 10 | 11 | #include 12 | 13 | #ifndef __ASSEMBLY__ 14 | 15 | /* A address type so that arithmetic can be done on it & it can be upgraded to 16 | 64 bit when necessary 17 | */ 18 | typedef unsigned long addr_t; 19 | typedef __signed__ long saddr_t; 20 | 21 | typedef struct { 22 | __u32 u[4]; 23 | } __vector128; 24 | 25 | #endif /* __ASSEMBLY__ */ 26 | 27 | #endif /* _S390_TYPES_H */ 28 | -------------------------------------------------------------------------------- /s390/include/asm/unistd.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * S390 version 4 | * 5 | * Derived from "include/asm-i386/unistd.h" 6 | */ 7 | 8 | #ifndef _ASM_S390_UNISTD_H_ 9 | #define _ASM_S390_UNISTD_H_ 10 | 11 | #ifdef __s390x__ 12 | #include 13 | #else 14 | #include 15 | #endif 16 | 17 | #endif /* _ASM_S390_UNISTD_H_ */ 18 | -------------------------------------------------------------------------------- /s390/include/asm/virtio-ccw.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ 2 | /* 3 | * Definitions for virtio-ccw devices. 4 | * 5 | * Copyright IBM Corp. 2013 6 | * 7 | * Author(s): Cornelia Huck 8 | */ 9 | #ifndef __KVM_VIRTIO_CCW_H 10 | #define __KVM_VIRTIO_CCW_H 11 | 12 | /* Alignment of vring buffers. */ 13 | #define KVM_VIRTIO_CCW_RING_ALIGN 4096 14 | 15 | /* Subcode for diagnose 500 (virtio hypercall). */ 16 | #define KVM_S390_VIRTIO_CCW_NOTIFY 3 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /s390/include/asm/vmcp.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * Copyright IBM Corp. 2004, 2005 4 | * Interface implementation for communication with the z/VM control program 5 | * Version 1.0 6 | * Author(s): Christian Borntraeger 7 | * 8 | * 9 | * z/VMs CP offers the possibility to issue commands via the diagnose code 8 10 | * this driver implements a character device that issues these commands and 11 | * returns the answer of CP. 12 | * 13 | * The idea of this driver is based on cpint from Neale Ferguson 14 | */ 15 | 16 | #ifndef _ASM_VMCP_H 17 | #define _ASM_VMCP_H 18 | 19 | #include 20 | 21 | #define VMCP_GETCODE _IOR(0x10, 1, int) 22 | #define VMCP_SETBUF _IOW(0x10, 2, int) 23 | #define VMCP_GETSIZE _IOR(0x10, 3, int) 24 | 25 | #endif /* _ASM_VMCP_H */ 26 | -------------------------------------------------------------------------------- /s390/include/drm: -------------------------------------------------------------------------------- 1 | ../../generic/include/drm -------------------------------------------------------------------------------- /s390/include/linux: -------------------------------------------------------------------------------- 1 | ../../generic/include/linux -------------------------------------------------------------------------------- /s390/include/mtd: -------------------------------------------------------------------------------- 1 | ../../generic/include/mtd -------------------------------------------------------------------------------- /s390/include/rdma: -------------------------------------------------------------------------------- 1 | ../../generic/include/rdma -------------------------------------------------------------------------------- /s390/include/scsi: -------------------------------------------------------------------------------- 1 | ../../generic/include/scsi -------------------------------------------------------------------------------- /s390/include/sound: -------------------------------------------------------------------------------- 1 | ../../generic/include/sound -------------------------------------------------------------------------------- /s390/include/video: -------------------------------------------------------------------------------- 1 | ../../generic/include/video -------------------------------------------------------------------------------- /s390/include/xen: -------------------------------------------------------------------------------- 1 | ../../generic/include/xen -------------------------------------------------------------------------------- /sh/include/asm-generic: -------------------------------------------------------------------------------- 1 | ../../generic/include/asm-generic -------------------------------------------------------------------------------- /sh/include/asm/bitsperlong.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_SH_BYTEORDER_H 3 | #define __ASM_SH_BYTEORDER_H 4 | 5 | #ifdef __LITTLE_ENDIAN__ 6 | #include 7 | #else 8 | #include 9 | #endif 10 | 11 | #endif /* __ASM_SH_BYTEORDER_H */ 12 | -------------------------------------------------------------------------------- /sh/include/asm/cachectl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _SH_CACHECTL_H 3 | #define _SH_CACHECTL_H 4 | 5 | /* Definitions for the cacheflush system call. */ 6 | 7 | #define CACHEFLUSH_D_INVAL 0x1 /* invalidate (without write back) */ 8 | #define CACHEFLUSH_D_WB 0x2 /* write back (without invalidate) */ 9 | #define CACHEFLUSH_D_PURGE 0x3 /* writeback and invalidate */ 10 | 11 | #define CACHEFLUSH_I 0x4 12 | 13 | /* 14 | * Options for cacheflush system call 15 | */ 16 | #define ICACHE CACHEFLUSH_I /* flush instruction cache */ 17 | #define DCACHE CACHEFLUSH_D_PURGE /* writeback and flush data cache */ 18 | #define BCACHE (ICACHE|DCACHE) /* flush both caches */ 19 | 20 | #endif /* _SH_CACHECTL_H */ 21 | -------------------------------------------------------------------------------- /sh/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/hw_breakpoint.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* 3 | * There isn't anything here anymore, but the file must not be empty or patch 4 | * will delete it. 5 | */ 6 | -------------------------------------------------------------------------------- /sh/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/kvm_para.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/mman.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/msgbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/param.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/posix_types.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | # ifdef __SH5__ 3 | # include 4 | # else 5 | # include 6 | # endif 7 | -------------------------------------------------------------------------------- /sh/include/asm/ptrace_64.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_SH_PTRACE_64_H 3 | #define __ASM_SH_PTRACE_64_H 4 | 5 | struct pt_regs { 6 | unsigned long long pc; 7 | unsigned long long sr; 8 | long long syscall_nr; 9 | unsigned long long regs[63]; 10 | unsigned long long tregs[8]; 11 | unsigned long long pad[2]; 12 | }; 13 | 14 | 15 | #endif /* __ASM_SH_PTRACE_64_H */ 16 | -------------------------------------------------------------------------------- /sh/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/sembuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/setup.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/shmbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/siginfo.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/signal.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_SH_SIGNAL_H 3 | #define __ASM_SH_SIGNAL_H 4 | 5 | #define SA_RESTORER 0x04000000 6 | 7 | #include 8 | 9 | struct old_sigaction { 10 | __sighandler_t sa_handler; 11 | old_sigset_t sa_mask; 12 | unsigned long sa_flags; 13 | void (*sa_restorer)(void); 14 | }; 15 | 16 | #endif /* __ASM_SH_SIGNAL_H */ 17 | -------------------------------------------------------------------------------- /sh/include/asm/socket.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_SH_SOCKIOS_H 3 | #define __ASM_SH_SOCKIOS_H 4 | 5 | /* Socket-level I/O control calls. */ 6 | #define FIOGETOWN _IOR('f', 123, int) 7 | #define FIOSETOWN _IOW('f', 124, int) 8 | 9 | #define SIOCATMARK _IOR('s', 7, int) 10 | #define SIOCSPGRP _IOW('s', 8, pid_t) 11 | #define SIOCGPGRP _IOR('s', 9, pid_t) 12 | 13 | #define SIOCGSTAMP _IOR('s', 100, struct timeval) /* Get stamp (timeval) */ 14 | #define SIOCGSTAMPNS _IOR('s', 101, struct timespec) /* Get stamp (timespec) */ 15 | #endif /* __ASM_SH_SOCKIOS_H */ 16 | -------------------------------------------------------------------------------- /sh/include/asm/statfs.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/termbits.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/termios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/types.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/ucontext.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sh/include/asm/unistd.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | # ifdef __SH5__ 3 | # include 4 | # else 5 | # include 6 | # endif 7 | -------------------------------------------------------------------------------- /sh/include/drm: -------------------------------------------------------------------------------- 1 | ../../generic/include/drm -------------------------------------------------------------------------------- /sh/include/linux: -------------------------------------------------------------------------------- 1 | ../../generic/include/linux -------------------------------------------------------------------------------- /sh/include/mtd: -------------------------------------------------------------------------------- 1 | ../../generic/include/mtd -------------------------------------------------------------------------------- /sh/include/rdma: -------------------------------------------------------------------------------- 1 | ../../generic/include/rdma -------------------------------------------------------------------------------- /sh/include/scsi: -------------------------------------------------------------------------------- 1 | ../../generic/include/scsi -------------------------------------------------------------------------------- /sh/include/sound: -------------------------------------------------------------------------------- 1 | ../../generic/include/sound -------------------------------------------------------------------------------- /sh/include/video: -------------------------------------------------------------------------------- 1 | ../../generic/include/video -------------------------------------------------------------------------------- /sh/include/xen: -------------------------------------------------------------------------------- 1 | ../../generic/include/xen -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | test -z "$CC" && CC=cc 3 | for x in test/*.c ; do 4 | test "$x" = "test/allheaders.c" && continue 5 | printf "testing $(basename $x)..." 6 | $CC $x 7 | if test $? = 0 ; then 8 | echo OK 9 | rm a.out 10 | else 11 | echo FAIL 12 | fi 13 | done 14 | -------------------------------------------------------------------------------- /test/em_arm.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | int main() { 5 | printf("%d\n", EM_ARM); 6 | } 7 | -------------------------------------------------------------------------------- /test/ethhdr.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | int main() { 6 | printf("%zu\n", sizeof(struct ethhdr)); 7 | } 8 | -------------------------------------------------------------------------------- /test/if.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main() { return 0; } 4 | 5 | -------------------------------------------------------------------------------- /test/if_bridge.c: -------------------------------------------------------------------------------- 1 | //#include 2 | #include 3 | 4 | #include 5 | int main() { 6 | printf("%zu\n", sizeof(struct sockaddr_in6)); 7 | } 8 | -------------------------------------------------------------------------------- /test/if_ether.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main() { return 0; } 4 | -------------------------------------------------------------------------------- /test/in6.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | int main() { 6 | printf("%zu\n", sizeof(struct sockaddr_in6)); 7 | } 8 | -------------------------------------------------------------------------------- /test/input_namespace.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | // 46140a4d4a93f5cee5d0e472c66027f81df62bcf 5 | 6 | struct winsize { 7 | char dummy[16]; 8 | }; 9 | int main() { 10 | printf("%zu\n", sizeof(struct winsize)); 11 | } 12 | -------------------------------------------------------------------------------- /test/kernel_sysinfo.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | int main() { 6 | printf("%zu\n", sizeof(struct sysinfo)); 7 | } 8 | -------------------------------------------------------------------------------- /test/module.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | int main() { 5 | printf("%d\n", MODULE_INIT_IGNORE_VERMAGIC); 6 | } 7 | -------------------------------------------------------------------------------- /test/ptrace.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | int main() { 6 | printf("%zu\n", sizeof(struct pt_regs)); 7 | } 8 | -------------------------------------------------------------------------------- /test/stat.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | int main() { 6 | printf("%zu\n", sizeof(struct stat)); 7 | } 8 | -------------------------------------------------------------------------------- /test/tcphdr.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | int main() { 6 | printf("%zu\n", sizeof(struct tcphdr)); 7 | } 8 | -------------------------------------------------------------------------------- /test/timespec.c: -------------------------------------------------------------------------------- 1 | #define _GNU_SOURCE 2 | #include 3 | #include 4 | #include 5 | 6 | #include 7 | int main() { 8 | printf("%zu\n", sizeof(struct timespec)); 9 | } 10 | -------------------------------------------------------------------------------- /x32: -------------------------------------------------------------------------------- 1 | x86 -------------------------------------------------------------------------------- /x86/include/asm-generic: -------------------------------------------------------------------------------- 1 | ../../generic/include/asm-generic -------------------------------------------------------------------------------- /x86/include/asm/auxvec.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_X86_AUXVEC_H 3 | #define _ASM_X86_AUXVEC_H 4 | /* 5 | * Architecture-neutral AT_ values in 0-17, leave some room 6 | * for more of them, start the x86-specific ones at 32. 7 | */ 8 | #ifdef __i386__ 9 | #define AT_SYSINFO 32 10 | #endif 11 | #define AT_SYSINFO_EHDR 33 12 | 13 | /* entries in ARCH_DLINFO: */ 14 | #if defined(CONFIG_IA32_EMULATION) || !defined(CONFIG_X86_64) 15 | # define AT_VECTOR_SIZE_ARCH 2 16 | #else /* else it's non-compat x86-64 */ 17 | # define AT_VECTOR_SIZE_ARCH 1 18 | #endif 19 | 20 | #endif /* _ASM_X86_AUXVEC_H */ 21 | -------------------------------------------------------------------------------- /x86/include/asm/bitsperlong.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef __ASM_X86_BITSPERLONG_H 3 | #define __ASM_X86_BITSPERLONG_H 4 | 5 | #if defined(__x86_64__) && !defined(__ILP32__) 6 | # define __BITS_PER_LONG 64 7 | #else 8 | # define __BITS_PER_LONG 32 9 | #endif 10 | 11 | #include 12 | 13 | #endif /* __ASM_X86_BITSPERLONG_H */ 14 | 15 | -------------------------------------------------------------------------------- /x86/include/asm/boot.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_X86_BOOT_H 3 | #define _ASM_X86_BOOT_H 4 | 5 | /* Internal svga startup constants */ 6 | #define NORMAL_VGA 0xffff /* 80x25 mode */ 7 | #define EXTENDED_VGA 0xfffe /* 80x50 mode */ 8 | #define ASK_VGA 0xfffd /* ask for it at bootup */ 9 | 10 | 11 | #endif /* _ASM_X86_BOOT_H */ 12 | -------------------------------------------------------------------------------- /x86/include/asm/bpf_perf_event.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef _ASM_X86_BYTEORDER_H 3 | #define _ASM_X86_BYTEORDER_H 4 | 5 | #include 6 | 7 | #endif /* _ASM_X86_BYTEORDER_H */ 8 | -------------------------------------------------------------------------------- /x86/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/hw_breakpoint.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | /* */ 3 | -------------------------------------------------------------------------------- /x86/include/asm/hwcap2.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef _ASM_X86_HWCAP2_H 3 | #define _ASM_X86_HWCAP2_H 4 | 5 | /* MONITOR/MWAIT enabled in Ring 3 */ 6 | #define HWCAP2_RING3MWAIT (1 << 0) 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /x86/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/ioctls.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/kvm_perf.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_X86_KVM_PERF_H 3 | #define _ASM_X86_KVM_PERF_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | #define DECODE_STR_LEN 20 10 | 11 | #define VCPU_ID "vcpu_id" 12 | 13 | #define KVM_ENTRY_TRACE "kvm:kvm_entry" 14 | #define KVM_EXIT_TRACE "kvm:kvm_exit" 15 | #define KVM_EXIT_REASON "exit_reason" 16 | 17 | #endif /* _ASM_X86_KVM_PERF_H */ 18 | -------------------------------------------------------------------------------- /x86/include/asm/msr.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_X86_MSR_H 3 | #define _ASM_X86_MSR_H 4 | 5 | #ifndef __ASSEMBLY__ 6 | 7 | #include 8 | #include 9 | 10 | #define X86_IOC_RDMSR_REGS _IOWR('c', 0xA0, __u32[8]) 11 | #define X86_IOC_WRMSR_REGS _IOWR('c', 0xA1, __u32[8]) 12 | 13 | #endif /* __ASSEMBLY__ */ 14 | #endif /* _ASM_X86_MSR_H */ 15 | -------------------------------------------------------------------------------- /x86/include/asm/param.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/posix_types.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | # ifdef __i386__ 3 | # include 4 | # elif defined(__ILP32__) 5 | # include 6 | # else 7 | # include 8 | # endif 9 | -------------------------------------------------------------------------------- /x86/include/asm/posix_types_64.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_X86_POSIX_TYPES_64_H 3 | #define _ASM_X86_POSIX_TYPES_64_H 4 | 5 | /* 6 | * This file is generally used by user-level software, so you need to 7 | * be a little careful about namespace pollution etc. Also, we cannot 8 | * assume GCC is being used. 9 | */ 10 | 11 | typedef unsigned short __kernel_old_uid_t; 12 | typedef unsigned short __kernel_old_gid_t; 13 | #define __kernel_old_uid_t __kernel_old_uid_t 14 | 15 | typedef unsigned long __kernel_old_dev_t; 16 | #define __kernel_old_dev_t __kernel_old_dev_t 17 | 18 | #include 19 | 20 | #endif /* _ASM_X86_POSIX_TYPES_64_H */ 21 | -------------------------------------------------------------------------------- /x86/include/asm/posix_types_x32.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_X86_POSIX_TYPES_X32_H 3 | #define _ASM_X86_POSIX_TYPES_X32_H 4 | 5 | /* 6 | * This file is only used by user-level software, so you need to 7 | * be a little careful about namespace pollution etc. Also, we cannot 8 | * assume GCC is being used. 9 | * 10 | * These types should generally match the ones used by the 64-bit kernel, 11 | * 12 | */ 13 | 14 | typedef long long __kernel_long_t; 15 | typedef unsigned long long __kernel_ulong_t; 16 | #define __kernel_long_t __kernel_long_t 17 | 18 | #include 19 | 20 | #endif /* _ASM_X86_POSIX_TYPES_X32_H */ 21 | -------------------------------------------------------------------------------- /x86/include/asm/prctl.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_X86_PRCTL_H 3 | #define _ASM_X86_PRCTL_H 4 | 5 | #define ARCH_SET_GS 0x1001 6 | #define ARCH_SET_FS 0x1002 7 | #define ARCH_GET_FS 0x1003 8 | #define ARCH_GET_GS 0x1004 9 | 10 | #define ARCH_GET_CPUID 0x1011 11 | #define ARCH_SET_CPUID 0x1012 12 | 13 | #define ARCH_MAP_VDSO_X32 0x2001 14 | #define ARCH_MAP_VDSO_32 0x2002 15 | #define ARCH_MAP_VDSO_64 0x2003 16 | 17 | #endif /* _ASM_X86_PRCTL_H */ 18 | -------------------------------------------------------------------------------- /x86/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/setup.h: -------------------------------------------------------------------------------- 1 | /* */ 2 | -------------------------------------------------------------------------------- /x86/include/asm/sigcontext32.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef _ASM_X86_SIGCONTEXT32_H 3 | #define _ASM_X86_SIGCONTEXT32_H 4 | 5 | /* This is a legacy file - all the type definitions are in sigcontext.h: */ 6 | 7 | #include 8 | 9 | #endif /* _ASM_X86_SIGCONTEXT32_H */ 10 | -------------------------------------------------------------------------------- /x86/include/asm/siginfo.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_X86_SIGINFO_H 3 | #define _ASM_X86_SIGINFO_H 4 | 5 | #ifdef __x86_64__ 6 | # ifdef __ILP32__ /* x32 */ 7 | typedef long long __kernel_si_clock_t __attribute__((aligned(4))); 8 | # define __ARCH_SI_CLOCK_T __kernel_si_clock_t 9 | # define __ARCH_SI_ATTRIBUTES __attribute__((aligned(8))) 10 | # else /* x86-64 */ 11 | # define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) 12 | # endif 13 | #endif 14 | 15 | #include 16 | 17 | #endif /* _ASM_X86_SIGINFO_H */ 18 | -------------------------------------------------------------------------------- /x86/include/asm/socket.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/statfs.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_X86_STATFS_H 3 | #define _ASM_X86_STATFS_H 4 | 5 | /* 6 | * We need compat_statfs64 to be packed, because the i386 ABI won't 7 | * add padding at the end to bring it to a multiple of 8 bytes, but 8 | * the x86_64 ABI will. 9 | */ 10 | #define ARCH_PACK_COMPAT_STATFS64 __attribute__((packed,aligned(4))) 11 | 12 | #include 13 | #endif /* _ASM_X86_STATFS_H */ 14 | -------------------------------------------------------------------------------- /x86/include/asm/termbits.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/termios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /x86/include/asm/types.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef _ASM_X86_TYPES_H 3 | #define _ASM_X86_TYPES_H 4 | 5 | #include 6 | 7 | #endif /* _ASM_X86_TYPES_H */ 8 | -------------------------------------------------------------------------------- /x86/include/asm/unistd.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_X86_UNISTD_H 3 | #define _ASM_X86_UNISTD_H 4 | 5 | /* x32 syscall flag bit */ 6 | #define __X32_SYSCALL_BIT 0x40000000 7 | 8 | # ifdef __i386__ 9 | # include 10 | # elif defined(__ILP32__) 11 | # include 12 | # else 13 | # include 14 | # endif 15 | 16 | #endif /* _ASM_X86_UNISTD_H */ 17 | -------------------------------------------------------------------------------- /x86/include/asm/vsyscall.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 | #ifndef _ASM_X86_VSYSCALL_H 3 | #define _ASM_X86_VSYSCALL_H 4 | 5 | enum vsyscall_num { 6 | __NR_vgettimeofday, 7 | __NR_vtime, 8 | __NR_vgetcpu, 9 | }; 10 | 11 | #define VSYSCALL_ADDR (-10UL << 20) 12 | 13 | #endif /* _ASM_X86_VSYSCALL_H */ 14 | -------------------------------------------------------------------------------- /x86/include/drm: -------------------------------------------------------------------------------- 1 | ../../generic/include/drm -------------------------------------------------------------------------------- /x86/include/linux: -------------------------------------------------------------------------------- 1 | ../../generic/include/linux -------------------------------------------------------------------------------- /x86/include/mtd: -------------------------------------------------------------------------------- 1 | ../../generic/include/mtd -------------------------------------------------------------------------------- /x86/include/rdma: -------------------------------------------------------------------------------- 1 | ../../generic/include/rdma -------------------------------------------------------------------------------- /x86/include/scsi: -------------------------------------------------------------------------------- 1 | ../../generic/include/scsi -------------------------------------------------------------------------------- /x86/include/sound: -------------------------------------------------------------------------------- 1 | ../../generic/include/sound -------------------------------------------------------------------------------- /x86/include/video: -------------------------------------------------------------------------------- 1 | ../../generic/include/video -------------------------------------------------------------------------------- /x86/include/xen: -------------------------------------------------------------------------------- 1 | ../../generic/include/xen -------------------------------------------------------------------------------- /x86_64: -------------------------------------------------------------------------------- 1 | x86 -------------------------------------------------------------------------------- /x86_64-x32: -------------------------------------------------------------------------------- 1 | x86 --------------------------------------------------------------------------------