From 607ca46e97a1b6594b29647d98a32d545c24bdff Mon Sep 17 00:00:00 2001 From: David Howells Date: Sat, 13 Oct 2012 10:46:48 +0100 Subject: UAPI: (Scripted) Disintegrate include/linux Signed-off-by: David Howells Acked-by: Arnd Bergmann Acked-by: Thomas Gleixner Acked-by: Michael Kerrisk Acked-by: Paul E. McKenney Acked-by: Dave Jones --- include/linux/Kbuild | 379 ----- include/linux/a.out.h | 196 +-- include/linux/acct.h | 108 +- include/linux/adb.h | 39 +- include/linux/adfs_fs.h | 42 +- include/linux/affs_hardblocks.h | 68 - include/linux/agpgart.h | 86 +- include/linux/aio_abi.h | 111 -- include/linux/apm_bios.h | 125 +- include/linux/arcfb.h | 8 - include/linux/atalk.h | 43 +- include/linux/atm.h | 238 +-- include/linux/atm_eni.h | 23 - include/linux/atm_he.h | 20 - include/linux/atm_idt77105.h | 28 - include/linux/atm_nicstar.h | 53 - include/linux/atm_tcp.h | 54 +- include/linux/atm_zatm.h | 52 - include/linux/atmapi.h | 29 - include/linux/atmarp.h | 41 - include/linux/atmbr2684.h | 117 -- include/linux/atmclip.h | 21 - include/linux/atmdev.h | 213 +-- include/linux/atmioc.h | 41 - include/linux/atmlec.h | 91 -- include/linux/atmmpc.h | 126 -- include/linux/atmppp.h | 24 - include/linux/atmsap.h | 162 -- include/linux/atmsvc.h | 55 - include/linux/audit.h | 381 +---- include/linux/auto_fs.h | 68 +- include/linux/auto_fs4.h | 164 -- include/linux/auxvec.h | 33 +- include/linux/ax25.h | 116 -- include/linux/b1lli.h | 73 - include/linux/baycom.h | 39 - include/linux/bfs_fs.h | 81 - include/linux/binfmts.h | 19 +- include/linux/blkpg.h | 59 - include/linux/blktrace_api.h | 142 +- include/linux/bpqether.h | 41 - include/linux/bsg.h | 63 +- include/linux/can.h | 162 -- include/linux/capability.h | 346 +--- include/linux/capi.h | 133 -- include/linux/cciss_defs.h | 130 -- include/linux/cciss_ioctl.h | 86 +- include/linux/cdrom.h | 902 +---------- include/linux/cgroupstats.h | 71 - include/linux/chio.h | 168 -- include/linux/cm4000_cs.h | 60 +- include/linux/cn_proc.h | 103 +- include/linux/coda.h | 680 +------- include/linux/coda_psdev.h | 26 +- include/linux/coff.h | 351 ---- include/linux/connector.h | 56 +- include/linux/const.h | 24 - include/linux/cramfs_fs.h | 86 +- include/linux/cuda.h | 25 +- include/linux/cyclades.h | 426 +---- include/linux/cycx_cfm.h | 101 -- include/linux/dcbnl.h | 684 -------- include/linux/dccp.h | 236 +-- include/linux/dlm.h | 62 +- include/linux/dlm_device.h | 108 -- include/linux/dlm_netlink.h | 58 - include/linux/dlm_plock.h | 37 +- include/linux/dlmconstants.h | 163 -- include/linux/dm-ioctl.h | 339 ---- include/linux/dm-log-userspace.h | 416 ----- include/linux/dn.h | 146 -- include/linux/dqblk_xfs.h | 166 -- include/linux/edd.h | 158 +- include/linux/efs_fs_sb.h | 62 - include/linux/elf-em.h | 56 - include/linux/elf-fdpic.h | 70 - include/linux/elf.h | 414 +---- include/linux/elfcore.h | 102 +- include/linux/errno.h | 5 +- include/linux/errqueue.h | 25 +- include/linux/ethtool.h | 1076 +------------ include/linux/eventpoll.h | 53 +- include/linux/fadvise.h | 21 - include/linux/falloc.h | 7 +- include/linux/fanotify.h | 114 +- include/linux/fb.h | 403 +---- include/linux/fcntl.h | 50 +- include/linux/fd.h | 380 +---- include/linux/fdreg.h | 137 -- include/linux/fib_rules.h | 72 - include/linux/fiemap.h | 68 - include/linux/filter.h | 133 +- include/linux/firewire-cdev.h | 1039 ------------ include/linux/firewire-constants.h | 92 -- include/linux/flat.h | 50 +- include/linux/fs.h | 333 +--- include/linux/fsl_hypervisor.h | 180 +-- include/linux/fuse.h | 677 -------- include/linux/futex.h | 150 +- include/linux/gameport.h | 26 +- include/linux/gen_stats.h | 67 - include/linux/genetlink.h | 82 +- include/linux/gfs2_ondisk.h | 464 ------ include/linux/gigaset_dev.h | 38 - include/linux/hdlc.h | 13 +- include/linux/hdlcdrv.h | 104 +- include/linux/hdreg.h | 658 -------- include/linux/hid.h | 46 +- include/linux/hiddev.h | 190 +-- include/linux/hidraw.h | 40 +- include/linux/hpet.h | 23 +- include/linux/hysdn_if.h | 33 - include/linux/i2c-dev.h | 49 +- include/linux/i2c.h | 125 +- include/linux/i2o-dev.h | 421 ----- include/linux/i8k.h | 46 - include/linux/icmp.h | 80 +- include/linux/icmpv6.h | 165 +- include/linux/if.h | 235 --- include/linux/if_addr.h | 61 - include/linux/if_addrlabel.h | 32 - include/linux/if_alg.h | 40 - include/linux/if_arcnet.h | 132 -- include/linux/if_arp.h | 136 +- include/linux/if_bonding.h | 128 -- include/linux/if_bridge.h | 89 +- include/linux/if_cablemodem.h | 22 - include/linux/if_eql.h | 36 +- include/linux/if_ether.h | 115 +- include/linux/if_fc.h | 51 - include/linux/if_fddi.h | 80 +- include/linux/if_frad.h | 98 +- include/linux/if_hippi.h | 153 -- include/linux/if_infiniband.h | 29 - include/linux/if_link.h | 427 +---- include/linux/if_ltalk.h | 7 +- include/linux/if_packet.h | 272 ---- include/linux/if_phonet.h | 7 +- include/linux/if_plip.h | 27 - include/linux/if_ppp.h | 1 - include/linux/if_pppol2tp.h | 89 +- include/linux/if_pppox.h | 143 +- include/linux/if_slip.h | 30 - include/linux/if_team.h | 97 +- include/linux/if_tun.h | 78 +- include/linux/if_tunnel.h | 94 +- include/linux/if_vlan.h | 51 +- include/linux/if_x25.h | 26 - include/linux/igmp.h | 113 +- include/linux/in.h | 235 +-- include/linux/in6.h | 258 +-- include/linux/in_route.h | 32 - include/linux/inet_diag.h | 134 +- include/linux/inotify.h | 69 +- include/linux/input.h | 1151 +------------- include/linux/ioctl.h | 7 - include/linux/ip.h | 119 +- include/linux/ip6_tunnel.h | 51 - include/linux/ip_vs.h | 434 ----- include/linux/ipc.h | 80 +- include/linux/ipmi.h | 422 +---- include/linux/ipmi_msgdefs.h | 121 -- include/linux/ipsec.h | 47 - include/linux/ipv6.h | 166 +- include/linux/ipv6_route.h | 45 +- include/linux/ipx.h | 75 - include/linux/irda.h | 251 --- include/linux/irqnr.h | 8 +- include/linux/isdn.h | 130 +- include/linux/isdn_divertif.h | 18 +- include/linux/isdn_ppp.h | 55 +- include/linux/isdnif.h | 43 +- include/linux/iso_fs.h | 165 -- include/linux/ivtv.h | 73 - include/linux/ivtvfb.h | 37 - include/linux/ixjuser.h | 720 --------- include/linux/jffs2.h | 223 --- include/linux/joystick.h | 114 +- include/linux/kd.h | 181 +-- include/linux/kdev_t.h | 14 +- include/linux/kernel-page-flags.h | 34 +- include/linux/kernel.h | 12 +- include/linux/kernelcapi.h | 38 +- include/linux/kexec.h | 52 +- include/linux/keyboard.h | 441 +----- include/linux/keyctl.h | 60 - include/linux/kvm.h | 975 ------------ include/linux/kvm_para.h | 26 +- include/linux/l2tp.h | 172 +- include/linux/limits.h | 20 - include/linux/llc.h | 74 +- include/linux/loop.h | 91 +- include/linux/lp.h | 97 +- include/linux/magic.h | 72 - include/linux/major.h | 177 --- include/linux/map_to_7segment.h | 187 --- include/linux/matroxfb.h | 42 - include/linux/mdio.h | 287 +--- include/linux/media.h | 132 -- include/linux/mei.h | 110 -- include/linux/mempolicy.h | 63 +- include/linux/meye.h | 66 - include/linux/mii.h | 154 +- include/linux/minix_fs.h | 106 -- include/linux/mman.h | 12 +- include/linux/mmtimer.h | 56 - include/linux/mqueue.h | 53 - include/linux/mroute.h | 146 +- include/linux/mroute6.h | 138 +- include/linux/msdos_fs.h | 165 +- include/linux/msg.h | 74 +- include/linux/mtio.h | 208 --- include/linux/n_r3964.h | 56 +- include/linux/nbd.h | 63 +- include/linux/ncp.h | 201 --- include/linux/ncp_fs.h | 146 -- include/linux/ncp_mount.h | 71 - include/linux/ncp_no.h | 19 - include/linux/neighbour.h | 159 -- include/linux/net.h | 39 +- include/linux/net_dropmon.h | 64 - include/linux/net_tstamp.h | 113 -- include/linux/netdevice.h | 32 +- include/linux/netfilter.h | 72 +- include/linux/netfilter_arp.h | 19 - include/linux/netfilter_bridge.h | 27 +- include/linux/netfilter_decnet.h | 79 - include/linux/netfilter_ipv4.h | 80 +- include/linux/netfilter_ipv6.h | 75 +- include/linux/netlink.h | 152 +- include/linux/netrom.h | 36 - include/linux/nfc.h | 197 --- include/linux/nfs.h | 124 +- include/linux/nfs2.h | 67 - include/linux/nfs3.h | 92 +- include/linux/nfs4.h | 166 +- include/linux/nfs4_mount.h | 71 - include/linux/nfs_fs.h | 54 +- include/linux/nfs_idmap.h | 28 +- include/linux/nfs_mount.h | 77 - include/linux/nfsacl.h | 23 +- include/linux/nl80211.h | 3072 ------------------------------------ include/linux/nubus.h | 234 +-- include/linux/nvram.h | 14 +- include/linux/omap3isp.h | 646 -------- include/linux/omapfb.h | 198 +-- include/linux/oom.h | 10 +- include/linux/packet_diag.h | 72 - include/linux/param.h | 6 - include/linux/parport.h | 89 +- include/linux/patchkey.h | 24 +- include/linux/pci.h | 25 +- include/linux/pci_regs.h | 846 ---------- include/linux/perf_event.h | 600 +------ include/linux/personality.h | 71 +- include/linux/pfkeyv2.h | 370 ----- include/linux/pg.h | 63 - include/linux/phantom.h | 49 - include/linux/phonet.h | 162 +- include/linux/pkt_cls.h | 469 ------ include/linux/pkt_sched.h | 738 --------- include/linux/pktcdvd.h | 99 +- include/linux/pmu.h | 130 +- include/linux/poll.h | 6 +- include/linux/posix_types.h | 37 - include/linux/ppdev.h | 99 -- include/linux/ppp-comp.h | 86 +- include/linux/ppp-ioctl.h | 119 -- include/linux/ppp_defs.h | 141 +- include/linux/pps.h | 131 -- include/linux/prctl.h | 152 -- include/linux/ptp_clock.h | 84 - include/linux/ptrace.h | 88 +- include/linux/qnx4_fs.h | 88 -- include/linux/qnxtypes.h | 28 - include/linux/quota.h | 139 +- include/linux/radeonfb.h | 15 - include/linux/random.h | 43 +- include/linux/raw.h | 18 - include/linux/rds.h | 285 ---- include/linux/reboot.h | 38 +- include/linux/reiserfs_fs.h | 26 - include/linux/reiserfs_xattr.h | 24 - include/linux/resource.h | 78 +- include/linux/rfkill.h | 92 +- include/linux/romfs_fs.h | 59 - include/linux/rose.h | 90 -- include/linux/route.h | 69 - include/linux/rtc.h | 96 +- include/linux/rtnetlink.h | 611 +------ include/linux/scc.h | 169 +- include/linux/sched.h | 44 +- include/linux/screen_info.h | 72 +- include/linux/sdla.h | 93 +- include/linux/seccomp.h | 45 +- include/linux/securebits.h | 51 +- include/linux/selinux_netlink.h | 50 - include/linux/sem.h | 79 +- include/linux/serial.h | 119 +- include/linux/serial_core.h | 199 +-- include/linux/serial_reg.h | 371 ----- include/linux/serio.h | 76 +- include/linux/shm.h | 81 +- include/linux/signal.h | 7 +- include/linux/signalfd.h | 44 +- include/linux/snmp.h | 284 ---- include/linux/sock_diag.h | 24 +- include/linux/socket.h | 20 +- include/linux/sockios.h | 148 -- include/linux/som.h | 154 -- include/linux/sonet.h | 58 +- include/linux/sonypi.h | 110 +- include/linux/sound.h | 29 +- include/linux/soundcard.h | 1261 +-------------- include/linux/stat.h | 46 +- include/linux/stddef.h | 5 +- include/linux/string.h | 7 +- include/linux/suspend_ioctls.h | 33 - include/linux/swab.h | 280 +--- include/linux/synclink.h | 288 +--- include/linux/sysctl.h | 911 +---------- include/linux/sysinfo.h | 24 - include/linux/taskstats.h | 213 --- include/linux/tcp.h | 208 +-- include/linux/tcp_metrics.h | 54 - include/linux/telephony.h | 262 --- include/linux/termios.h | 22 - include/linux/time.h | 72 +- include/linux/times.h | 13 - include/linux/timex.h | 113 +- include/linux/tiocl.h | 39 - include/linux/tipc.h | 209 --- include/linux/tipc_config.h | 395 ----- include/linux/toshiba.h | 17 +- include/linux/tty.h | 37 +- include/linux/tty_flags.h | 78 - include/linux/types.h | 50 +- include/linux/udf_fs_i.h | 21 - include/linux/udp.h | 22 +- include/linux/uhid.h | 104 -- include/linux/uinput.h | 109 +- include/linux/uio.h | 24 +- include/linux/ultrasound.h | 103 -- include/linux/un.h | 13 - include/linux/unistd.h | 9 - include/linux/unix_diag.h | 54 - include/linux/usbdevice_fs.h | 151 +- include/linux/utime.h | 11 - include/linux/utsname.h | 33 +- include/linux/uuid.h | 37 +- include/linux/uvcvideo.h | 70 - include/linux/v4l2-common.h | 71 - include/linux/v4l2-controls.h | 803 ---------- include/linux/v4l2-dv-timings.h | 816 ---------- include/linux/v4l2-mediabus.h | 119 -- include/linux/v4l2-subdev.h | 180 --- include/linux/veth.h | 12 - include/linux/vfio.h | 357 +---- include/linux/vhost.h | 130 -- include/linux/videodev2.h | 1940 +---------------------- include/linux/virtio_9p.h | 44 - include/linux/virtio_balloon.h | 59 - include/linux/virtio_blk.h | 130 -- include/linux/virtio_config.h | 53 +- include/linux/virtio_console.h | 45 +- include/linux/virtio_ids.h | 41 - include/linux/virtio_net.h | 169 -- include/linux/virtio_pci.h | 95 -- include/linux/virtio_ring.h | 163 +- include/linux/virtio_rng.h | 8 - include/linux/vt.h | 88 +- include/linux/wait.h | 20 +- include/linux/wanrouter.h | 405 +---- include/linux/watchdog.h | 49 +- include/linux/wimax.h | 239 --- include/linux/wireless.h | 1120 +------------ include/linux/x25.h | 152 -- include/linux/xattr.h | 54 +- include/linux/xfrm.h | 506 ------ 379 files changed, 250 insertions(+), 60011 deletions(-) delete mode 100644 include/linux/affs_hardblocks.h delete mode 100644 include/linux/aio_abi.h delete mode 100644 include/linux/arcfb.h delete mode 100644 include/linux/atm_eni.h delete mode 100644 include/linux/atm_he.h delete mode 100644 include/linux/atm_idt77105.h delete mode 100644 include/linux/atm_nicstar.h delete mode 100644 include/linux/atm_zatm.h delete mode 100644 include/linux/atmapi.h delete mode 100644 include/linux/atmarp.h delete mode 100644 include/linux/atmbr2684.h delete mode 100644 include/linux/atmclip.h delete mode 100644 include/linux/atmioc.h delete mode 100644 include/linux/atmlec.h delete mode 100644 include/linux/atmmpc.h delete mode 100644 include/linux/atmppp.h delete mode 100644 include/linux/atmsap.h delete mode 100644 include/linux/atmsvc.h delete mode 100644 include/linux/auto_fs4.h delete mode 100644 include/linux/ax25.h delete mode 100644 include/linux/b1lli.h delete mode 100644 include/linux/baycom.h delete mode 100644 include/linux/bfs_fs.h delete mode 100644 include/linux/blkpg.h delete mode 100644 include/linux/bpqether.h delete mode 100644 include/linux/can.h delete mode 100644 include/linux/capi.h delete mode 100644 include/linux/cciss_defs.h delete mode 100644 include/linux/cgroupstats.h delete mode 100644 include/linux/chio.h delete mode 100644 include/linux/coff.h delete mode 100644 include/linux/const.h delete mode 100644 include/linux/cycx_cfm.h delete mode 100644 include/linux/dcbnl.h delete mode 100644 include/linux/dlm_device.h delete mode 100644 include/linux/dlm_netlink.h delete mode 100644 include/linux/dlmconstants.h delete mode 100644 include/linux/dm-ioctl.h delete mode 100644 include/linux/dm-log-userspace.h delete mode 100644 include/linux/dn.h delete mode 100644 include/linux/dqblk_xfs.h delete mode 100644 include/linux/efs_fs_sb.h delete mode 100644 include/linux/elf-em.h delete mode 100644 include/linux/elf-fdpic.h delete mode 100644 include/linux/fadvise.h delete mode 100644 include/linux/fdreg.h delete mode 100644 include/linux/fib_rules.h delete mode 100644 include/linux/fiemap.h delete mode 100644 include/linux/firewire-cdev.h delete mode 100644 include/linux/firewire-constants.h delete mode 100644 include/linux/fuse.h delete mode 100644 include/linux/gen_stats.h delete mode 100644 include/linux/gfs2_ondisk.h delete mode 100644 include/linux/gigaset_dev.h delete mode 100644 include/linux/hdreg.h delete mode 100644 include/linux/hysdn_if.h delete mode 100644 include/linux/i2o-dev.h delete mode 100644 include/linux/i8k.h delete mode 100644 include/linux/if.h delete mode 100644 include/linux/if_addr.h delete mode 100644 include/linux/if_addrlabel.h delete mode 100644 include/linux/if_alg.h delete mode 100644 include/linux/if_arcnet.h delete mode 100644 include/linux/if_bonding.h delete mode 100644 include/linux/if_cablemodem.h delete mode 100644 include/linux/if_fc.h delete mode 100644 include/linux/if_hippi.h delete mode 100644 include/linux/if_infiniband.h delete mode 100644 include/linux/if_packet.h delete mode 100644 include/linux/if_plip.h delete mode 100644 include/linux/if_ppp.h delete mode 100644 include/linux/if_slip.h delete mode 100644 include/linux/if_x25.h delete mode 100644 include/linux/in_route.h delete mode 100644 include/linux/ioctl.h delete mode 100644 include/linux/ip6_tunnel.h delete mode 100644 include/linux/ip_vs.h delete mode 100644 include/linux/ipmi_msgdefs.h delete mode 100644 include/linux/ipsec.h delete mode 100644 include/linux/ipx.h delete mode 100644 include/linux/irda.h delete mode 100644 include/linux/iso_fs.h delete mode 100644 include/linux/ivtv.h delete mode 100644 include/linux/ivtvfb.h delete mode 100644 include/linux/ixjuser.h delete mode 100644 include/linux/jffs2.h delete mode 100644 include/linux/keyctl.h delete mode 100644 include/linux/kvm.h delete mode 100644 include/linux/limits.h delete mode 100644 include/linux/magic.h delete mode 100644 include/linux/major.h delete mode 100644 include/linux/map_to_7segment.h delete mode 100644 include/linux/matroxfb.h delete mode 100644 include/linux/media.h delete mode 100644 include/linux/mei.h delete mode 100644 include/linux/meye.h delete mode 100644 include/linux/minix_fs.h delete mode 100644 include/linux/mmtimer.h delete mode 100644 include/linux/mqueue.h delete mode 100644 include/linux/mtio.h delete mode 100644 include/linux/ncp.h delete mode 100644 include/linux/ncp_fs.h delete mode 100644 include/linux/ncp_mount.h delete mode 100644 include/linux/ncp_no.h delete mode 100644 include/linux/neighbour.h delete mode 100644 include/linux/net_dropmon.h delete mode 100644 include/linux/net_tstamp.h delete mode 100644 include/linux/netfilter_arp.h delete mode 100644 include/linux/netfilter_decnet.h delete mode 100644 include/linux/netrom.h delete mode 100644 include/linux/nfc.h delete mode 100644 include/linux/nfs2.h delete mode 100644 include/linux/nfs4_mount.h delete mode 100644 include/linux/nfs_mount.h delete mode 100644 include/linux/nl80211.h delete mode 100644 include/linux/omap3isp.h delete mode 100644 include/linux/packet_diag.h delete mode 100644 include/linux/param.h delete mode 100644 include/linux/pci_regs.h delete mode 100644 include/linux/pfkeyv2.h delete mode 100644 include/linux/pg.h delete mode 100644 include/linux/phantom.h delete mode 100644 include/linux/pkt_cls.h delete mode 100644 include/linux/pkt_sched.h delete mode 100644 include/linux/posix_types.h delete mode 100644 include/linux/ppdev.h delete mode 100644 include/linux/ppp-ioctl.h delete mode 100644 include/linux/pps.h delete mode 100644 include/linux/prctl.h delete mode 100644 include/linux/ptp_clock.h delete mode 100644 include/linux/qnx4_fs.h delete mode 100644 include/linux/qnxtypes.h delete mode 100644 include/linux/radeonfb.h delete mode 100644 include/linux/raw.h delete mode 100644 include/linux/rds.h delete mode 100644 include/linux/reiserfs_fs.h delete mode 100644 include/linux/reiserfs_xattr.h delete mode 100644 include/linux/romfs_fs.h delete mode 100644 include/linux/rose.h delete mode 100644 include/linux/route.h delete mode 100644 include/linux/selinux_netlink.h delete mode 100644 include/linux/serial_reg.h delete mode 100644 include/linux/snmp.h delete mode 100644 include/linux/sockios.h delete mode 100644 include/linux/som.h delete mode 100644 include/linux/suspend_ioctls.h delete mode 100644 include/linux/sysinfo.h delete mode 100644 include/linux/taskstats.h delete mode 100644 include/linux/tcp_metrics.h delete mode 100644 include/linux/telephony.h delete mode 100644 include/linux/termios.h delete mode 100644 include/linux/times.h delete mode 100644 include/linux/tiocl.h delete mode 100644 include/linux/tipc.h delete mode 100644 include/linux/tipc_config.h delete mode 100644 include/linux/tty_flags.h delete mode 100644 include/linux/udf_fs_i.h delete mode 100644 include/linux/uhid.h delete mode 100644 include/linux/ultrasound.h delete mode 100644 include/linux/un.h delete mode 100644 include/linux/unistd.h delete mode 100644 include/linux/unix_diag.h delete mode 100644 include/linux/utime.h delete mode 100644 include/linux/uvcvideo.h delete mode 100644 include/linux/v4l2-common.h delete mode 100644 include/linux/v4l2-controls.h delete mode 100644 include/linux/v4l2-dv-timings.h delete mode 100644 include/linux/v4l2-mediabus.h delete mode 100644 include/linux/v4l2-subdev.h delete mode 100644 include/linux/veth.h delete mode 100644 include/linux/vhost.h delete mode 100644 include/linux/virtio_9p.h delete mode 100644 include/linux/virtio_balloon.h delete mode 100644 include/linux/virtio_blk.h delete mode 100644 include/linux/virtio_ids.h delete mode 100644 include/linux/virtio_net.h delete mode 100644 include/linux/virtio_pci.h delete mode 100644 include/linux/virtio_rng.h delete mode 100644 include/linux/wimax.h delete mode 100644 include/linux/x25.h delete mode 100644 include/linux/xfrm.h (limited to 'include/linux') diff --git a/include/linux/Kbuild b/include/linux/Kbuild index e2a1346514a6..5b57367e28db 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild @@ -22,389 +22,10 @@ header-y += wimax/ ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \ $(srctree)/arch/$(SRCARCH)/include/uapi/asm/a.out.h),) -header-y += a.out.h endif ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \ $(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm.h),) -header-y += kvm.h endif ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \ $(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm_para.h),) -header-y += kvm_para.h endif - -header-y += acct.h -header-y += adb.h -header-y += adfs_fs.h -header-y += affs_hardblocks.h -header-y += agpgart.h -header-y += aio_abi.h -header-y += apm_bios.h -header-y += arcfb.h -header-y += atalk.h -header-y += atm.h -header-y += atm_eni.h -header-y += atm_he.h -header-y += atm_idt77105.h -header-y += atm_nicstar.h -header-y += atm_tcp.h -header-y += atm_zatm.h -header-y += atmapi.h -header-y += atmarp.h -header-y += atmbr2684.h -header-y += atmclip.h -header-y += atmdev.h -header-y += atmioc.h -header-y += atmlec.h -header-y += atmmpc.h -header-y += atmppp.h -header-y += atmsap.h -header-y += atmsvc.h -header-y += audit.h -header-y += auto_fs.h -header-y += auto_fs4.h -header-y += auxvec.h -header-y += ax25.h -header-y += b1lli.h -header-y += baycom.h -header-y += bfs_fs.h -header-y += binfmts.h -header-y += blkpg.h -header-y += blktrace_api.h -header-y += bpqether.h -header-y += bsg.h -header-y += can.h -header-y += capability.h -header-y += capi.h -header-y += cciss_defs.h -header-y += cciss_ioctl.h -header-y += cdrom.h -header-y += cgroupstats.h -header-y += chio.h -header-y += cm4000_cs.h -header-y += cn_proc.h -header-y += coda.h -header-y += coda_psdev.h -header-y += coff.h -header-y += connector.h -header-y += const.h -header-y += cramfs_fs.h -header-y += cuda.h -header-y += cyclades.h -header-y += cycx_cfm.h -header-y += dcbnl.h -header-y += dccp.h -header-y += dlm.h -header-y += dlm_device.h -header-y += dlm_netlink.h -header-y += dlm_plock.h -header-y += dlmconstants.h -header-y += dm-ioctl.h -header-y += dm-log-userspace.h -header-y += dn.h -header-y += dqblk_xfs.h -header-y += edd.h -header-y += efs_fs_sb.h -header-y += elf-em.h -header-y += elf-fdpic.h -header-y += elf.h -header-y += elfcore.h -header-y += errno.h -header-y += errqueue.h -header-y += ethtool.h -header-y += eventpoll.h -header-y += fadvise.h -header-y += falloc.h -header-y += fanotify.h -header-y += fb.h -header-y += fcntl.h -header-y += fd.h -header-y += fdreg.h -header-y += fib_rules.h -header-y += fiemap.h -header-y += filter.h -header-y += firewire-cdev.h -header-y += firewire-constants.h -header-y += flat.h -header-y += fs.h -header-y += fsl_hypervisor.h -header-y += fuse.h -header-y += futex.h -header-y += gameport.h -header-y += gen_stats.h -header-y += genetlink.h -header-y += gfs2_ondisk.h -header-y += gigaset_dev.h -header-y += hdlc.h -header-y += hdlcdrv.h -header-y += hdreg.h -header-y += hid.h -header-y += hiddev.h -header-y += hidraw.h -header-y += hpet.h -header-y += hysdn_if.h -header-y += i2c-dev.h -header-y += i2c.h -header-y += i2o-dev.h -header-y += i8k.h -header-y += icmp.h -header-y += icmpv6.h -header-y += if.h -header-y += if_addr.h -header-y += if_addrlabel.h -header-y += if_alg.h -header-y += if_arcnet.h -header-y += if_arp.h -header-y += if_bonding.h -header-y += if_bridge.h -header-y += if_cablemodem.h -header-y += if_eql.h -header-y += if_ether.h -header-y += if_fc.h -header-y += if_fddi.h -header-y += if_frad.h -header-y += if_hippi.h -header-y += if_infiniband.h -header-y += if_link.h -header-y += if_ltalk.h -header-y += if_packet.h -header-y += if_phonet.h -header-y += if_plip.h -header-y += if_ppp.h -header-y += if_pppol2tp.h -header-y += if_pppox.h -header-y += if_slip.h -header-y += if_team.h -header-y += if_tun.h -header-y += if_tunnel.h -header-y += if_vlan.h -header-y += if_x25.h -header-y += igmp.h -header-y += in.h -header-y += in6.h -header-y += in_route.h -header-y += sock_diag.h -header-y += inet_diag.h -header-y += unix_diag.h -header-y += packet_diag.h -header-y += inotify.h -header-y += input.h -header-y += ioctl.h -header-y += ip.h -header-y += ip6_tunnel.h -header-y += ip_vs.h -header-y += ipc.h -header-y += ipmi.h -header-y += ipmi_msgdefs.h -header-y += ipsec.h -header-y += ipv6.h -header-y += ipv6_route.h -header-y += ipx.h -header-y += irda.h -header-y += irqnr.h -header-y += isdn.h -header-y += isdn_divertif.h -header-y += isdn_ppp.h -header-y += isdnif.h -header-y += iso_fs.h -header-y += ivtv.h -header-y += ivtvfb.h -header-y += ixjuser.h -header-y += jffs2.h -header-y += joystick.h -header-y += kd.h -header-y += kdev_t.h -header-y += kernel.h -header-y += kernelcapi.h -header-y += kernel-page-flags.h -header-y += kexec.h -header-y += keyboard.h -header-y += keyctl.h -header-y += l2tp.h -header-y += limits.h -header-y += llc.h -header-y += loop.h -header-y += lp.h -header-y += magic.h -header-y += major.h -header-y += map_to_7segment.h -header-y += matroxfb.h -header-y += mdio.h -header-y += media.h -header-y += mei.h -header-y += mempolicy.h -header-y += meye.h -header-y += mii.h -header-y += minix_fs.h -header-y += mman.h -header-y += mmtimer.h -header-y += mqueue.h -header-y += mroute.h -header-y += mroute6.h -header-y += msdos_fs.h -header-y += msg.h -header-y += mtio.h -header-y += n_r3964.h -header-y += nbd.h -header-y += ncp.h -header-y += ncp_fs.h -header-y += ncp_mount.h -header-y += ncp_no.h -header-y += neighbour.h -header-y += net.h -header-y += net_dropmon.h -header-y += net_tstamp.h -header-y += netdevice.h -header-y += netfilter.h -header-y += netfilter_arp.h -header-y += netfilter_bridge.h -header-y += netfilter_decnet.h -header-y += netfilter_ipv4.h -header-y += netfilter_ipv6.h -header-y += netlink.h -header-y += netrom.h -header-y += nfc.h -header-y += nfs.h -header-y += nfs2.h -header-y += nfs3.h -header-y += nfs4.h -header-y += nfs4_mount.h -header-y += nfs_fs.h -header-y += nfs_idmap.h -header-y += nfs_mount.h -header-y += nfsacl.h -header-y += nl80211.h -header-y += nubus.h -header-y += nvram.h -header-y += omap3isp.h -header-y += omapfb.h -header-y += oom.h -header-y += param.h -header-y += parport.h -header-y += patchkey.h -header-y += pci.h -header-y += pci_regs.h -header-y += perf_event.h -header-y += personality.h -header-y += pfkeyv2.h -header-y += pg.h -header-y += phantom.h -header-y += phonet.h -header-y += pkt_cls.h -header-y += pkt_sched.h -header-y += pktcdvd.h -header-y += pmu.h -header-y += poll.h -header-y += posix_types.h -header-y += ppdev.h -header-y += ppp-comp.h -header-y += ppp-ioctl.h -header-y += ppp_defs.h -header-y += pps.h -header-y += prctl.h -header-y += ptp_clock.h -header-y += ptrace.h -header-y += qnx4_fs.h -header-y += qnxtypes.h -header-y += quota.h -header-y += radeonfb.h -header-y += random.h -header-y += raw.h -header-y += rds.h -header-y += reboot.h -header-y += reiserfs_fs.h -header-y += reiserfs_xattr.h -header-y += resource.h -header-y += rfkill.h -header-y += romfs_fs.h -header-y += rose.h -header-y += route.h -header-y += rtc.h -header-y += rtnetlink.h -header-y += scc.h -header-y += sched.h -header-y += screen_info.h -header-y += sdla.h -header-y += seccomp.h -header-y += securebits.h -header-y += selinux_netlink.h -header-y += sem.h -header-y += serial.h -header-y += serial_core.h -header-y += serial_reg.h -header-y += serio.h -header-y += shm.h -header-y += signal.h -header-y += signalfd.h -header-y += snmp.h -header-y += socket.h -header-y += sockios.h -header-y += som.h -header-y += sonet.h -header-y += sonypi.h -header-y += sound.h -header-y += soundcard.h -header-y += stat.h -header-y += stddef.h -header-y += string.h -header-y += suspend_ioctls.h -header-y += swab.h -header-y += synclink.h -header-y += sysctl.h -header-y += sysinfo.h -header-y += taskstats.h -header-y += tcp.h -header-y += tcp_metrics.h -header-y += telephony.h -header-y += termios.h -header-y += time.h -header-y += times.h -header-y += timex.h -header-y += tiocl.h -header-y += tipc.h -header-y += tipc_config.h -header-y += toshiba.h -header-y += tty.h -header-y += tty_flags.h -header-y += types.h -header-y += udf_fs_i.h -header-y += udp.h -header-y += uhid.h -header-y += uinput.h -header-y += uio.h -header-y += ultrasound.h -header-y += un.h -header-y += unistd.h -header-y += usbdevice_fs.h -header-y += utime.h -header-y += utsname.h -header-y += uuid.h -header-y += uvcvideo.h -header-y += v4l2-common.h -header-y += v4l2-controls.h -header-y += v4l2-dv-timings.h -header-y += v4l2-mediabus.h -header-y += v4l2-subdev.h -header-y += veth.h -header-y += vfio.h -header-y += vhost.h -header-y += videodev2.h -header-y += virtio_9p.h -header-y += virtio_balloon.h -header-y += virtio_blk.h -header-y += virtio_config.h -header-y += virtio_console.h -header-y += virtio_ids.h -header-y += virtio_net.h -header-y += virtio_pci.h -header-y += virtio_ring.h -header-y += virtio_rng.h -header-y += vt.h -header-y += wait.h -header-y += wanrouter.h -header-y += watchdog.h -header-y += wimax.h -header-y += wireless.h -header-y += x25.h -header-y += xattr.h -header-y += xfrm.h diff --git a/include/linux/a.out.h b/include/linux/a.out.h index e86dfca44589..220f14338895 100644 --- a/include/linux/a.out.h +++ b/include/linux/a.out.h @@ -1,278 +1,84 @@ #ifndef __A_OUT_GNU_H__ #define __A_OUT_GNU_H__ -#define __GNU_EXEC_MACROS__ - -#ifndef __STRUCT_EXEC_OVERRIDE__ - -#include - -#endif /* __STRUCT_EXEC_OVERRIDE__ */ +#include #ifndef __ASSEMBLY__ - -/* these go in the N_MACHTYPE field */ -enum machine_type { #if defined (M_OLDSUN2) - M__OLDSUN2 = M_OLDSUN2, #else - M_OLDSUN2 = 0, #endif #if defined (M_68010) - M__68010 = M_68010, #else - M_68010 = 1, #endif #if defined (M_68020) - M__68020 = M_68020, #else - M_68020 = 2, #endif #if defined (M_SPARC) - M__SPARC = M_SPARC, #else - M_SPARC = 3, #endif - /* skip a bunch so we don't run into any of sun's numbers */ - M_386 = 100, - M_MIPS1 = 151, /* MIPS R3000/R3000 binary */ - M_MIPS2 = 152 /* MIPS R6000/R4000 binary */ -}; - #if !defined (N_MAGIC) -#define N_MAGIC(exec) ((exec).a_info & 0xffff) #endif -#define N_MACHTYPE(exec) ((enum machine_type)(((exec).a_info >> 16) & 0xff)) -#define N_FLAGS(exec) (((exec).a_info >> 24) & 0xff) -#define N_SET_INFO(exec, magic, type, flags) \ - ((exec).a_info = ((magic) & 0xffff) \ - | (((int)(type) & 0xff) << 16) \ - | (((flags) & 0xff) << 24)) -#define N_SET_MAGIC(exec, magic) \ - ((exec).a_info = (((exec).a_info & 0xffff0000) | ((magic) & 0xffff))) - -#define N_SET_MACHTYPE(exec, machtype) \ - ((exec).a_info = \ - ((exec).a_info&0xff00ffff) | ((((int)(machtype))&0xff) << 16)) - -#define N_SET_FLAGS(exec, flags) \ - ((exec).a_info = \ - ((exec).a_info&0x00ffffff) | (((flags) & 0xff) << 24)) - -/* Code indicating object file or impure executable. */ -#define OMAGIC 0407 -/* Code indicating pure executable. */ -#define NMAGIC 0410 -/* Code indicating demand-paged executable. */ -#define ZMAGIC 0413 -/* This indicates a demand-paged executable with the header in the text. - The first page is unmapped to help trap NULL pointer references */ -#define QMAGIC 0314 - -/* Code indicating core file. */ -#define CMAGIC 0421 - #if !defined (N_BADMAG) -#define N_BADMAG(x) (N_MAGIC(x) != OMAGIC \ - && N_MAGIC(x) != NMAGIC \ - && N_MAGIC(x) != ZMAGIC \ - && N_MAGIC(x) != QMAGIC) #endif - -#define _N_HDROFF(x) (1024 - sizeof (struct exec)) - #if !defined (N_TXTOFF) -#define N_TXTOFF(x) \ - (N_MAGIC(x) == ZMAGIC ? _N_HDROFF((x)) + sizeof (struct exec) : \ - (N_MAGIC(x) == QMAGIC ? 0 : sizeof (struct exec))) #endif - #if !defined (N_DATOFF) -#define N_DATOFF(x) (N_TXTOFF(x) + (x).a_text) #endif - #if !defined (N_TRELOFF) -#define N_TRELOFF(x) (N_DATOFF(x) + (x).a_data) #endif - #if !defined (N_DRELOFF) -#define N_DRELOFF(x) (N_TRELOFF(x) + N_TRSIZE(x)) #endif - #if !defined (N_SYMOFF) -#define N_SYMOFF(x) (N_DRELOFF(x) + N_DRSIZE(x)) #endif - #if !defined (N_STROFF) -#define N_STROFF(x) (N_SYMOFF(x) + N_SYMSIZE(x)) #endif - -/* Address of text segment in memory after it is loaded. */ #if !defined (N_TXTADDR) -#define N_TXTADDR(x) (N_MAGIC(x) == QMAGIC ? PAGE_SIZE : 0) #endif - -/* Address of data segment in memory after it is loaded. - Note that it is up to you to define SEGMENT_SIZE - on machines not listed here. */ #if defined(vax) || defined(hp300) || defined(pyr) -#define SEGMENT_SIZE page_size #endif #ifdef sony -#define SEGMENT_SIZE 0x2000 #endif /* Sony. */ #ifdef is68k -#define SEGMENT_SIZE 0x20000 #endif #if defined(m68k) && defined(PORTAR) -#define PAGE_SIZE 0x400 -#define SEGMENT_SIZE PAGE_SIZE #endif - #ifdef linux -#ifdef __KERNEL__ #include -#else -#include -#endif #if defined(__i386__) || defined(__mc68000__) -#define SEGMENT_SIZE 1024 #else #ifndef SEGMENT_SIZE -#ifdef __KERNEL__ #define SEGMENT_SIZE PAGE_SIZE -#else -#define SEGMENT_SIZE getpagesize() -#endif #endif #endif #endif - -#define _N_SEGMENT_ROUND(x) ALIGN(x, SEGMENT_SIZE) - -#define _N_TXTENDADDR(x) (N_TXTADDR(x)+(x).a_text) - #ifndef N_DATADDR -#define N_DATADDR(x) \ - (N_MAGIC(x)==OMAGIC? (_N_TXTENDADDR(x)) \ - : (_N_SEGMENT_ROUND (_N_TXTENDADDR(x)))) #endif - -/* Address of bss segment in memory after it is loaded. */ #if !defined (N_BSSADDR) -#define N_BSSADDR(x) (N_DATADDR(x) + (x).a_data) #endif - #if !defined (N_NLIST_DECLARED) -struct nlist { - union { - char *n_name; - struct nlist *n_next; - long n_strx; - } n_un; - unsigned char n_type; - char n_other; - short n_desc; - unsigned long n_value; -}; #endif /* no N_NLIST_DECLARED. */ - #if !defined (N_UNDF) -#define N_UNDF 0 #endif #if !defined (N_ABS) -#define N_ABS 2 #endif #if !defined (N_TEXT) -#define N_TEXT 4 #endif #if !defined (N_DATA) -#define N_DATA 6 #endif #if !defined (N_BSS) -#define N_BSS 8 #endif #if !defined (N_FN) -#define N_FN 15 #endif - #if !defined (N_EXT) -#define N_EXT 1 #endif #if !defined (N_TYPE) -#define N_TYPE 036 #endif #if !defined (N_STAB) -#define N_STAB 0340 #endif - -/* The following type indicates the definition of a symbol as being - an indirect reference to another symbol. The other symbol - appears as an undefined reference, immediately following this symbol. - - Indirection is asymmetrical. The other symbol's value will be used - to satisfy requests for the indirect symbol, but not vice versa. - If the other symbol does not have a definition, libraries will - be searched to find a definition. */ -#define N_INDR 0xa - -/* The following symbols refer to set elements. - All the N_SET[ATDB] symbols with the same name form one set. - Space is allocated for the set in the text section, and each set - element's value is stored into one word of the space. - The first word of the space is the length of the set (number of elements). - - The address of the set is made into an N_SETV symbol - whose name is the same as the name of the set. - This symbol acts like a N_DATA global symbol - in that it can satisfy undefined external references. */ - -/* These appear as input to LD, in a .o file. */ -#define N_SETA 0x14 /* Absolute set element symbol */ -#define N_SETT 0x16 /* Text set element symbol */ -#define N_SETD 0x18 /* Data set element symbol */ -#define N_SETB 0x1A /* Bss set element symbol */ - -/* This is output from LD. */ -#define N_SETV 0x1C /* Pointer to set vector in data area. */ - #if !defined (N_RELOCATION_INFO_DECLARED) -/* This structure describes a single relocation to be performed. - The text-relocation section of the file is a vector of these structures, - all of which apply to the text section. - Likewise, the data-relocation section applies to the data section. */ - -struct relocation_info -{ - /* Address (within segment) to be relocated. */ - int r_address; - /* The meaning of r_symbolnum depends on r_extern. */ - unsigned int r_symbolnum:24; - /* Nonzero means value is a pc-relative offset - and it should be relocated for changes in its own address - as well as for changes in the symbol or section specified. */ - unsigned int r_pcrel:1; - /* Length (as exponent of 2) of the field to be relocated. - Thus, a value of 2 indicates 1<<2 bytes. */ - unsigned int r_length:2; - /* 1 => relocate with value of symbol. - r_symbolnum is the index of the symbol - in file's the symbol table. - 0 => relocate with the address of a segment. - r_symbolnum is N_TEXT, N_DATA, N_BSS or N_ABS - (the N_EXT bit may be set also, but signifies nothing). */ - unsigned int r_extern:1; - /* Four bits that aren't used, but when writing an object file - it is desirable to clear them. */ #ifdef NS32K - unsigned r_bsr:1; - unsigned r_disp:1; - unsigned r_pad:2; #else - unsigned int r_pad:4; #endif -}; #endif /* no N_RELOCATION_INFO_DECLARED. */ - #endif /*__ASSEMBLY__ */ #endif /* __A_OUT_GNU_H__ */ diff --git a/include/linux/acct.h b/include/linux/acct.h index d537aa0ec414..4a5b7cb56079 100644 --- a/include/linux/acct.h +++ b/include/linux/acct.h @@ -11,109 +11,11 @@ * Copyright (C) 1995 - 1997 Marco van Wieringen - ELM Consultancy B.V. * */ - #ifndef _LINUX_ACCT_H #define _LINUX_ACCT_H -#include - -#include -#include - -/* - * comp_t is a 16-bit "floating" point number with a 3-bit base 8 - * exponent and a 13-bit fraction. - * comp2_t is 24-bit with 5-bit base 2 exponent and 20 bit fraction - * (leading 1 not stored). - * See linux/kernel/acct.c for the specific encoding systems used. - */ - -typedef __u16 comp_t; -typedef __u32 comp2_t; - -/* - * accounting file record - * - * This structure contains all of the information written out to the - * process accounting file whenever a process exits. - */ +#include -#define ACCT_COMM 16 - -struct acct -{ - char ac_flag; /* Flags */ - char ac_version; /* Always set to ACCT_VERSION */ - /* for binary compatibility back until 2.0 */ - __u16 ac_uid16; /* LSB of Real User ID */ - __u16 ac_gid16; /* LSB of Real Group ID */ - __u16 ac_tty; /* Control Terminal */ - __u32 ac_btime; /* Process Creation Time */ - comp_t ac_utime; /* User Time */ - comp_t ac_stime; /* System Time */ - comp_t ac_etime; /* Elapsed Time */ - comp_t ac_mem; /* Average Memory Usage */ - comp_t ac_io; /* Chars Transferred */ - comp_t ac_rw; /* Blocks Read or Written */ - comp_t ac_minflt; /* Minor Pagefaults */ - comp_t ac_majflt; /* Major Pagefaults */ - comp_t ac_swaps; /* Number of Swaps */ -/* m68k had no padding here. */ -#if !defined(CONFIG_M68K) || !defined(__KERNEL__) - __u16 ac_ahz; /* AHZ */ -#endif - __u32 ac_exitcode; /* Exitcode */ - char ac_comm[ACCT_COMM + 1]; /* Command Name */ - __u8 ac_etime_hi; /* Elapsed Time MSB */ - __u16 ac_etime_lo; /* Elapsed Time LSB */ - __u32 ac_uid; /* Real User ID */ - __u32 ac_gid; /* Real Group ID */ -}; - -struct acct_v3 -{ - char ac_flag; /* Flags */ - char ac_version; /* Always set to ACCT_VERSION */ - __u16 ac_tty; /* Control Terminal */ - __u32 ac_exitcode; /* Exitcode */ - __u32 ac_uid; /* Real User ID */ - __u32 ac_gid; /* Real Group ID */ - __u32 ac_pid; /* Process ID */ - __u32 ac_ppid; /* Parent Process ID */ - __u32 ac_btime; /* Process Creation Time */ -#ifdef __KERNEL__ - __u32 ac_etime; /* Elapsed Time */ -#else - float ac_etime; /* Elapsed Time */ -#endif - comp_t ac_utime; /* User Time */ - comp_t ac_stime; /* System Time */ - comp_t ac_mem; /* Average Memory Usage */ - comp_t ac_io; /* Chars Transferred */ - comp_t ac_rw; /* Blocks Read or Written */ - comp_t ac_minflt; /* Minor Pagefaults */ - comp_t ac_majflt; /* Major Pagefaults */ - comp_t ac_swaps; /* Number of Swaps */ - char ac_comm[ACCT_COMM]; /* Command Name */ -}; - -/* - * accounting flags - */ - /* bit set when the process ... */ -#define AFORK 0x01 /* ... executed fork, but did not exec */ -#define ASU 0x02 /* ... used super-user privileges */ -#define ACOMPAT 0x04 /* ... used compatibility mode (VAX only not used) */ -#define ACORE 0x08 /* ... dumped core */ -#define AXSIG 0x10 /* ... was killed by a signal */ - -#ifdef __BIG_ENDIAN -#define ACCT_BYTEORDER 0x80 /* accounting file is big endian */ -#else -#define ACCT_BYTEORDER 0x00 /* accounting file is little endian */ -#endif - -#ifdef __KERNEL__ #ifdef CONFIG_BSD_PROCESS_ACCT @@ -163,12 +65,6 @@ typedef struct acct_v3 acct_t; typedef struct acct acct_t; #endif -#else -#define ACCT_VERSION 2 -#define AHZ (HZ) -#endif /* __KERNEL */ - -#ifdef __KERNEL__ #include /* * Yet another set of HZ to *HZ helper functions. @@ -210,6 +106,4 @@ static inline u64 nsec_to_AHZ(u64 x) return x; } -#endif /* __KERNEL */ - #endif /* _LINUX_ACCT_H */ diff --git a/include/linux/adb.h b/include/linux/adb.h index 63bca502fa55..cde41300c7ad 100644 --- a/include/linux/adb.h +++ b/include/linux/adb.h @@ -4,43 +4,8 @@ #ifndef __ADB_H #define __ADB_H -/* ADB commands */ -#define ADB_BUSRESET 0 -#define ADB_FLUSH(id) (0x01 | ((id) << 4)) -#define ADB_WRITEREG(id, reg) (0x08 | (reg) | ((id) << 4)) -#define ADB_READREG(id, reg) (0x0C | (reg) | ((id) << 4)) +#include -/* ADB default device IDs (upper 4 bits of ADB command byte) */ -#define ADB_DONGLE 1 /* "software execution control" devices */ -#define ADB_KEYBOARD 2 -#define ADB_MOUSE 3 -#define ADB_TABLET 4 -#define ADB_MODEM 5 -#define ADB_MISC 7 /* maybe a monitor */ - -#define ADB_RET_OK 0 -#define ADB_RET_TIMEOUT 3 - -/* The kind of ADB request. The controller may emulate some - or all of those CUDA/PMU packet kinds */ -#define ADB_PACKET 0 -#define CUDA_PACKET 1 -#define ERROR_PACKET 2 -#define TIMER_PACKET 3 -#define POWER_PACKET 4 -#define MACIIC_PACKET 5 -#define PMU_PACKET 6 -#define ADB_QUERY 7 - -/* ADB queries */ - -/* ADB_QUERY_GETDEVINFO - * Query ADB slot for device presence - * data[2] = id, rep[0] = orig addr, rep[1] = handler_id - */ -#define ADB_QUERY_GETDEVINFO 1 - -#ifdef __KERNEL__ struct adb_request { unsigned char data[32]; @@ -98,6 +63,4 @@ int adb_reset_bus(void); int adb_try_handler_change(int address, int new_id); int adb_get_infos(int address, int *original_address, int *handler_id); -#endif /* __KERNEL__ */ - #endif /* __ADB_H */ diff --git a/include/linux/adfs_fs.h b/include/linux/adfs_fs.h index b19801f73890..0d991071a9d4 100644 --- a/include/linux/adfs_fs.h +++ b/include/linux/adfs_fs.h @@ -1,46 +1,8 @@ #ifndef _ADFS_FS_H #define _ADFS_FS_H -#include -#include +#include -/* - * Disc Record at disc address 0xc00 - */ -struct adfs_discrecord { - __u8 log2secsize; - __u8 secspertrack; - __u8 heads; - __u8 density; - __u8 idlen; - __u8 log2bpmb; - __u8 skew; - __u8 bootoption; - __u8 lowsector; - __u8 nzones; - __le16 zone_spare; - __le32 root; - __le32 disc_size; - __le16 disc_id; - __u8 disc_name[10]; - __le32 disc_type; - __le32 disc_size_high; - __u8 log2sharesize:4; - __u8 unused40:4; - __u8 big_flag:1; - __u8 unused41:1; - __u8 nzones_high; - __le32 format_version; - __le32 root_size; - __u8 unused52[60 - 52]; -}; - -#define ADFS_DISCRECORD (0xc00) -#define ADFS_DR_OFFSET (0x1c0) -#define ADFS_DR_SIZE 60 -#define ADFS_DR_SIZE_BITS (ADFS_DR_SIZE << 3) - -#ifdef __KERNEL__ /* * Calculate the boot block checksum on an ADFS drive. Note that this will * appear to be correct if the sector contains all zeros, so also check that @@ -59,5 +21,3 @@ static inline int adfs_checkbblk(unsigned char *ptr) return (result & 0xff) != ptr[511]; } #endif - -#endif diff --git a/include/linux/affs_hardblocks.h b/include/linux/affs_hardblocks.h deleted file mode 100644 index f1b948c1f592..000000000000 --- a/include/linux/affs_hardblocks.h +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef AFFS_HARDBLOCKS_H -#define AFFS_HARDBLOCKS_H - -#include - -/* Just the needed definitions for the RDB of an Amiga HD. */ - -struct RigidDiskBlock { - __u32 rdb_ID; - __be32 rdb_SummedLongs; - __s32 rdb_ChkSum; - __u32 rdb_HostID; - __be32 rdb_BlockBytes; - __u32 rdb_Flags; - __u32 rdb_BadBlockList; - __be32 rdb_PartitionList; - __u32 rdb_FileSysHeaderList; - __u32 rdb_DriveInit; - __u32 rdb_Reserved1[6]; - __u32 rdb_Cylinders; - __u32 rdb_Sectors; - __u32 rdb_Heads; - __u32 rdb_Interleave; - __u32 rdb_Park; - __u32 rdb_Reserved2[3]; - __u32 rdb_WritePreComp; - __u32 rdb_ReducedWrite; - __u32 rdb_StepRate; - __u32 rdb_Reserved3[5]; - __u32 rdb_RDBBlocksLo; - __u32 rdb_RDBBlocksHi; - __u32 rdb_LoCylinder; - __u32 rdb_HiCylinder; - __u32 rdb_CylBlocks; - __u32 rdb_AutoParkSeconds; - __u32 rdb_HighRDSKBlock; - __u32 rdb_Reserved4; - char rdb_DiskVendor[8]; - char rdb_DiskProduct[16]; - char rdb_DiskRevision[4]; - char rdb_ControllerVendor[8]; - char rdb_ControllerProduct[16]; - char rdb_ControllerRevision[4]; - __u32 rdb_Reserved5[10]; -}; - -#define IDNAME_RIGIDDISK 0x5244534B /* "RDSK" */ - -struct PartitionBlock { - __be32 pb_ID; - __be32 pb_SummedLongs; - __s32 pb_ChkSum; - __u32 pb_HostID; - __be32 pb_Next; - __u32 pb_Flags; - __u32 pb_Reserved1[2]; - __u32 pb_DevFlags; - __u8 pb_DriveName[32]; - __u32 pb_Reserved2[15]; - __be32 pb_Environment[17]; - __u32 pb_EReserved[15]; -}; - -#define IDNAME_PARTITION 0x50415254 /* "PART" */ - -#define RDB_ALLOCATION_LIMIT 16 - -#endif /* AFFS_HARDBLOCKS_H */ diff --git a/include/linux/agpgart.h b/include/linux/agpgart.h index f6778eceb8f4..c6b61ca97053 100644 --- a/include/linux/agpgart.h +++ b/include/linux/agpgart.h @@ -23,94 +23,12 @@ * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * */ - #ifndef _AGP_H #define _AGP_H 1 -#define AGPIOC_BASE 'A' -#define AGPIOC_INFO _IOR (AGPIOC_BASE, 0, struct agp_info*) -#define AGPIOC_ACQUIRE _IO (AGPIOC_BASE, 1) -#define AGPIOC_RELEASE _IO (AGPIOC_BASE, 2) -#define AGPIOC_SETUP _IOW (AGPIOC_BASE, 3, struct agp_setup*) -#define AGPIOC_RESERVE _IOW (AGPIOC_BASE, 4, struct agp_region*) -#define AGPIOC_PROTECT _IOW (AGPIOC_BASE, 5, struct agp_region*) -#define AGPIOC_ALLOCATE _IOWR(AGPIOC_BASE, 6, struct agp_allocate*) -#define AGPIOC_DEALLOCATE _IOW (AGPIOC_BASE, 7, int) -#define AGPIOC_BIND _IOW (AGPIOC_BASE, 8, struct agp_bind*) -#define AGPIOC_UNBIND _IOW (AGPIOC_BASE, 9, struct agp_unbind*) -#define AGPIOC_CHIPSET_FLUSH _IO (AGPIOC_BASE, 10) - -#define AGP_DEVICE "/dev/agpgart" - -#ifndef TRUE -#define TRUE 1 -#endif - -#ifndef FALSE -#define FALSE 0 -#endif - -#ifndef __KERNEL__ -#include - -struct agp_version { - __u16 major; - __u16 minor; -}; - -typedef struct _agp_info { - struct agp_version version; /* version of the driver */ - __u32 bridge_id; /* bridge vendor/device */ - __u32 agp_mode; /* mode info of bridge */ - unsigned long aper_base;/* base of aperture */ - size_t aper_size; /* size of aperture */ - size_t pg_total; /* max pages (swap + system) */ - size_t pg_system; /* max pages (system) */ - size_t pg_used; /* current pages used */ -} agp_info; - -typedef struct _agp_setup { - __u32 agp_mode; /* mode info of bridge */ -} agp_setup; - -/* - * The "prot" down below needs still a "sleep" flag somehow ... - */ -typedef struct _agp_segment { - __kernel_off_t pg_start; /* starting page to populate */ - __kernel_size_t pg_count; /* number of pages */ - int prot; /* prot flags for mmap */ -} agp_segment; - -typedef struct _agp_region { - __kernel_pid_t pid; /* pid of process */ - __kernel_size_t seg_count; /* number of segments */ - struct _agp_segment *seg_list; -} agp_region; - -typedef struct _agp_allocate { - int key; /* tag of allocation */ - __kernel_size_t pg_count;/* number of pages */ - __u32 type; /* 0 == normal, other devspec */ - __u32 physical; /* device specific (some devices - * need a phys address of the - * actual page behind the gatt - * table) */ -} agp_allocate; - -typedef struct _agp_bind { - int key; /* tag of allocation */ - __kernel_off_t pg_start;/* starting page to populate */ -} agp_bind; - -typedef struct _agp_unbind { - int key; /* tag of allocation */ - __u32 priority; /* priority for paging out */ -} agp_unbind; - -#else /* __KERNEL__ */ #include #include +#include #define AGPGART_MINOR 175 @@ -209,6 +127,4 @@ struct agp_front_data { bool backend_acquired; }; -#endif /* __KERNEL__ */ - #endif /* _AGP_H */ diff --git a/include/linux/aio_abi.h b/include/linux/aio_abi.h deleted file mode 100644 index 86fa7a71336a..000000000000 --- a/include/linux/aio_abi.h +++ /dev/null @@ -1,111 +0,0 @@ -/* include/linux/aio_abi.h - * - * Copyright 2000,2001,2002 Red Hat. - * - * Written by Benjamin LaHaise - * - * Distribute under the terms of the GPLv2 (see ../../COPYING) or under - * the following terms. - * - * Permission to use, copy, modify, and distribute this software and its - * documentation is hereby granted, provided that the above copyright - * notice appears in all copies. This software is provided without any - * warranty, express or implied. Red Hat makes no representations about - * the suitability of this software for any purpose. - * - * IN NO EVENT SHALL RED HAT BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, - * SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF - * THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF RED HAT HAS BEEN ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - * - * RED HAT DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND - * RED HAT HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, - * ENHANCEMENTS, OR MODIFICATIONS. - */ -#ifndef __LINUX__AIO_ABI_H -#define __LINUX__AIO_ABI_H - -#include -#include - -typedef __kernel_ulong_t aio_context_t; - -enum { - IOCB_CMD_PREAD = 0, - IOCB_CMD_PWRITE = 1, - IOCB_CMD_FSYNC = 2, - IOCB_CMD_FDSYNC = 3, - /* These two are experimental. - * IOCB_CMD_PREADX = 4, - * IOCB_CMD_POLL = 5, - */ - IOCB_CMD_NOOP = 6, - IOCB_CMD_PREADV = 7, - IOCB_CMD_PWRITEV = 8, -}; - -/* - * Valid flags for the "aio_flags" member of the "struct iocb". - * - * IOCB_FLAG_RESFD - Set if the "aio_resfd" member of the "struct iocb" - * is valid. - */ -#define IOCB_FLAG_RESFD (1 << 0) - -/* read() from /dev/aio returns these structures. */ -struct io_event { - __u64 data; /* the data field from the iocb */ - __u64 obj; /* what iocb this event came from */ - __s64 res; /* result code for this event */ - __s64 res2; /* secondary result */ -}; - -#if defined(__LITTLE_ENDIAN) -#define PADDED(x,y) x, y -#elif defined(__BIG_ENDIAN) -#define PADDED(x,y) y, x -#else -#error edit for your odd byteorder. -#endif - -/* - * we always use a 64bit off_t when communicating - * with userland. its up to libraries to do the - * proper padding and aio_error abstraction - */ - -struct iocb { - /* these are internal to the kernel/libc. */ - __u64 aio_data; /* data to be returned in event's data */ - __u32 PADDED(aio_key, aio_reserved1); - /* the kernel sets aio_key to the req # */ - - /* common fields */ - __u16 aio_lio_opcode; /* see IOCB_CMD_ above */ - __s16 aio_reqprio; - __u32 aio_fildes; - - __u64 aio_buf; - __u64 aio_nbytes; - __s64 aio_offset; - - /* extra parameters */ - __u64 aio_reserved2; /* TODO: use this for a (struct sigevent *) */ - - /* flags for the "struct iocb" */ - __u32 aio_flags; - - /* - * if the IOCB_FLAG_RESFD flag of "aio_flags" is set, this is an - * eventfd to signal AIO readiness to - */ - __u32 aio_resfd; -}; /* 64 bytes */ - -#undef IFBIG -#undef IFLITTLE - -#endif /* __LINUX__AIO_ABI_H */ - diff --git a/include/linux/apm_bios.h b/include/linux/apm_bios.h index 01a6244c9bc9..9c3a87184f48 100644 --- a/include/linux/apm_bios.h +++ b/include/linux/apm_bios.h @@ -1,6 +1,3 @@ -#ifndef _LINUX_APM_H -#define _LINUX_APM_H - /* * Include file for the interface to an APM BIOS * Copyright 1994-2001 Stephen Rothwell (sfr@canb.auug.org.au) @@ -15,25 +12,11 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. */ +#ifndef _LINUX_APM_H +#define _LINUX_APM_H -#include - -typedef unsigned short apm_event_t; -typedef unsigned short apm_eventinfo_t; - -struct apm_bios_info { - __u16 version; - __u16 cseg; - __u32 offset; - __u16 cseg_16; - __u16 dseg; - __u16 flags; - __u16 cseg_len; - __u16 cseg_16_len; - __u16 dseg_len; -}; +#include -#ifdef __KERNEL__ #define APM_CS (GDT_ENTRY_APMBIOS_BASE * 8) #define APM_CS_16 (APM_CS + 8) @@ -110,111 +93,9 @@ struct apm_info { */ extern struct apm_info apm_info; -#endif /* __KERNEL__ */ - -/* - * Power states - */ -#define APM_STATE_READY 0x0000 -#define APM_STATE_STANDBY 0x0001 -#define APM_STATE_SUSPEND 0x0002 -#define APM_STATE_OFF 0x0003 -#define APM_STATE_BUSY 0x0004 -#define APM_STATE_REJECT 0x0005 -#define APM_STATE_OEM_SYS 0x0020 -#define APM_STATE_OEM_DEV 0x0040 - -#define APM_STATE_DISABLE 0x0000 -#define APM_STATE_ENABLE 0x0001 - -#define APM_STATE_DISENGAGE 0x0000 -#define APM_STATE_ENGAGE 0x0001 - -/* - * Events (results of Get PM Event) - */ -#define APM_SYS_STANDBY 0x0001 -#define APM_SYS_SUSPEND 0x0002 -#define APM_NORMAL_RESUME 0x0003 -#define APM_CRITICAL_RESUME 0x0004 -#define APM_LOW_BATTERY 0x0005 -#define APM_POWER_STATUS_CHANGE 0x0006 -#define APM_UPDATE_TIME 0x0007 -#define APM_CRITICAL_SUSPEND 0x0008 -#define APM_USER_STANDBY 0x0009 -#define APM_USER_SUSPEND 0x000a -#define APM_STANDBY_RESUME 0x000b -#define APM_CAPABILITY_CHANGE 0x000c - -/* - * Error codes - */ -#define APM_SUCCESS 0x00 -#define APM_DISABLED 0x01 -#define APM_CONNECTED 0x02 -#define APM_NOT_CONNECTED 0x03 -#define APM_16_CONNECTED 0x05 -#define APM_16_UNSUPPORTED 0x06 -#define APM_32_CONNECTED 0x07 -#define APM_32_UNSUPPORTED 0x08 -#define APM_BAD_DEVICE 0x09 -#define APM_BAD_PARAM 0x0a -#define APM_NOT_ENGAGED 0x0b -#define APM_BAD_FUNCTION 0x0c -#define APM_RESUME_DISABLED 0x0d -#define APM_NO_ERROR 0x53 -#define APM_BAD_STATE 0x60 -#define APM_NO_EVENTS 0x80 -#define APM_NOT_PRESENT 0x86 - -/* - * APM Device IDs - */ -#define APM_DEVICE_BIOS 0x0000 -#define APM_DEVICE_ALL 0x0001 -#define APM_DEVICE_DISPLAY 0x0100 -#define APM_DEVICE_STORAGE 0x0200 -#define APM_DEVICE_PARALLEL 0x0300 -#define APM_DEVICE_SERIAL 0x0400 -#define APM_DEVICE_NETWORK 0x0500 -#define APM_DEVICE_PCMCIA 0x0600 -#define APM_DEVICE_BATTERY 0x8000 -#define APM_DEVICE_OEM 0xe000 -#define APM_DEVICE_OLD_ALL 0xffff -#define APM_DEVICE_CLASS 0x00ff -#define APM_DEVICE_MASK 0xff00 - -#ifdef __KERNEL__ /* * This is the "All Devices" ID communicated to the BIOS */ #define APM_DEVICE_BALL ((apm_info.connection_version > 0x0100) ? \ APM_DEVICE_ALL : APM_DEVICE_OLD_ALL) -#endif - -/* - * Battery status - */ -#define APM_MAX_BATTERIES 2 - -/* - * APM defined capability bit flags - */ -#define APM_CAP_GLOBAL_STANDBY 0x0001 -#define APM_CAP_GLOBAL_SUSPEND 0x0002 -#define APM_CAP_RESUME_STANDBY_TIMER 0x0004 /* Timer resume from standby */ -#define APM_CAP_RESUME_SUSPEND_TIMER 0x0008 /* Timer resume from suspend */ -#define APM_CAP_RESUME_STANDBY_RING 0x0010 /* Resume on Ring fr standby */ -#define APM_CAP_RESUME_SUSPEND_RING 0x0020 /* Resume on Ring fr suspend */ -#define APM_CAP_RESUME_STANDBY_PCMCIA 0x0040 /* Resume on PCMCIA Ring */ -#define APM_CAP_RESUME_SUSPEND_PCMCIA 0x0080 /* Resume on PCMCIA Ring */ - -/* - * ioctl operations - */ -#include - -#define APM_IOC_STANDBY _IO('A', 1) -#define APM_IOC_SUSPEND _IO('A', 2) - #endif /* LINUX_APM_H */ diff --git a/include/linux/arcfb.h b/include/linux/arcfb.h deleted file mode 100644 index 721e7654daeb..000000000000 --- a/include/linux/arcfb.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef __LINUX_ARCFB_H__ -#define __LINUX_ARCFB_H__ - -#define FBIO_WAITEVENT _IO('F', 0x88) -#define FBIO_GETCONTROL2 _IOR('F', 0x89, size_t) - -#endif - diff --git a/include/linux/atalk.h b/include/linux/atalk.h index f57c36881c48..73fd8b7e9534 100644 --- a/include/linux/atalk.h +++ b/include/linux/atalk.h @@ -1,49 +1,9 @@ #ifndef __LINUX_ATALK_H__ #define __LINUX_ATALK_H__ -#include -#include -#include - -/* - * AppleTalk networking structures - * - * The following are directly referenced from the University Of Michigan - * netatalk for compatibility reasons. - */ -#define ATPORT_FIRST 1 -#define ATPORT_RESERVED 128 -#define ATPORT_LAST 254 /* 254 is only legal on localtalk */ -#define ATADDR_ANYNET (__u16)0 -#define ATADDR_ANYNODE (__u8)0 -#define ATADDR_ANYPORT (__u8)0 -#define ATADDR_BCAST (__u8)255 -#define DDP_MAXSZ 587 -#define DDP_MAXHOPS 15 /* 4 bits of hop counter */ - -#define SIOCATALKDIFADDR (SIOCPROTOPRIVATE + 0) - -struct atalk_addr { - __be16 s_net; - __u8 s_node; -}; - -struct sockaddr_at { - __kernel_sa_family_t sat_family; - __u8 sat_port; - struct atalk_addr sat_addr; - char sat_zero[8]; -}; - -struct atalk_netrange { - __u8 nr_phase; - __be16 nr_firstnet; - __be16 nr_lastnet; -}; - -#ifdef __KERNEL__ #include +#include struct atalk_route { struct net_device *dev; @@ -205,5 +165,4 @@ extern void atalk_proc_exit(void); #define atalk_proc_exit() do { } while(0) #endif /* CONFIG_PROC_FS */ -#endif /* __KERNEL__ */ #endif /* __LINUX_ATALK_H__ */ diff --git a/include/linux/atm.h b/include/linux/atm.h index d3b292174aeb..30006c435951 100644 --- a/include/linux/atm.h +++ b/include/linux/atm.h @@ -1,242 +1,9 @@ /* atm.h - general ATM declarations */ - -/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ - - -/* - * WARNING: User-space programs should not #include directly. - * Instead, #include - */ - #ifndef _LINUX_ATM_H #define _LINUX_ATM_H -/* - * BEGIN_xx and END_xx markers are used for automatic generation of - * documentation. Do not change them. - */ - -#include -#include -#include -#include -#include