diff --git a/sys/Makefile b/sys/Makefile index 18e0b7e5281b..f3702606fc6a 100644 --- a/sys/Makefile +++ b/sys/Makefile @@ -1,69 +1,68 @@ -# $FreeBSD$ # Directories to include in cscope name file and TAGS. CSCOPEDIRS= bsm cam cddl compat conf contrib crypto ddb dev fs gdb \ geom gnu isa kern libkern modules net net80211 \ netgraph netinet netinet6 netipsec netpfil \ netsmb nfs nfsclient nfsserver nlm ofed opencrypto \ rpc security sys ufs vm xdr xen ${CSCOPE_ARCHDIR} .if !defined(CSCOPE_ARCHDIR) .if defined(ALL_ARCH) CSCOPE_ARCHDIR = amd64 arm arm64 i386 powerpc riscv x86 .else CSCOPE_ARCHDIR = ${MACHINE} .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" CSCOPE_ARCHDIR += x86 .endif .endif .endif HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh` # You need the devel/cscope port for this. cscope: cscope.out cscope.out: ${.CURDIR}/cscope.files cd ${.CURDIR}; cscope -k -buq -p4 -v ${.CURDIR}/cscope.files: .PHONY cd ${.CURDIR}; \ find ${CSCOPEDIRS} -name "*.[chSsly]" -a -type f > ${.TARGET} cscope-clean: cd ${.CURDIR}; \ rm -f cscope.files cscope.out cscope.in.out cscope.po.out # # Installs SCM hooks to update the cscope database every time the source tree # is updated. # cscope understands incremental updates, so it's considerably faster when only # a few files have changed. # HG_DIR=${.CURDIR}/../.hg HG_HOOK=if [ \$$HG_ERROR -eq 0 ]; then cd sys && make -m ../share/mk cscope; fi cscope-hook: @if [ -d ${HG_DIR} ]; then \ if [ "`grep hooks ${HG_DIR}/hgrc`" = "" ]; then \ echo "[hooks]" >> ${HG_DIR}/hgrc; \ echo "update = ${HG_HOOK}" >> ${HG_DIR}/hgrc; \ echo "Hook installed in ${HG_DIR}/hgrc"; \ else \ echo "Mercurial update hook already exists."; \ fi; \ fi # You need the devel/global and one of editor/emacs* ports for that. TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscope.files rm -f ${.CURDIR}/TAGS cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscope.files .if !(make(cscope) || make(cscope-clean) || make(cscope-hook) || make(TAGS)) .include # Loadable kernel modules .if defined(MODULES_WITH_WORLD) SUBDIR+=modules .endif .include .endif diff --git a/sys/amd64/Makefile b/sys/amd64/Makefile index 0f1367f859f2..878d21c51edb 100644 --- a/sys/amd64/Makefile +++ b/sys/amd64/Makefile @@ -1,42 +1,41 @@ -# $FreeBSD$ # @(#)Makefile 8.1 (Berkeley) 6/11/93 # Makefile for amd64 links, tags file # SYS is normally set in Make.tags.inc SYS=/sys TAGDIR= amd64 .include "../kern/Make.tags.inc" all: @echo "make links or tags only" # Directories in which to place amd64 tags links DAMD64= acpica amd64 ia32 include linux linux32 pci sgx vmm links:: -for i in ${COMMDIR1}; do \ (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done -for i in ${COMMDIR2}; do \ (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done -for i in ${DAMD64}; do \ (cd ${SYS}/amd64/$$i && { rm -f tags; ln -s ../tags tags; }) done SAMD64= ${SYS}/amd64/acpica/*.[ch] \ ${SYS}/amd64/amd64/*.[ch] ${SYS}/amd64/ia32/*.[ch] \ ${SYS}/amd64/include/*.[ch] ${SYS}/amd64/linux/*.[ch] \ ${SYS}/amd64/linux32/*.[ch] ${SYS}/amd64/pci/*.[ch] \ ${SYS}/amd64/sgx/*.[ch] ${SYS}/amd64/vmm/*.[ch] AAMD64= ${SYS}/amd64/amd64/*.S tags:: -ctags -wdt ${COMM} ${SAMD64} egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ >> tags sort -o tags tags chmod 444 tags rm -f ${SYS}/amd64/tags mv tags ${SYS}/amd64/tags diff --git a/sys/amd64/conf/DEFAULTS b/sys/amd64/conf/DEFAULTS index 7a3c54f974ab..5167cf4d98d0 100644 --- a/sys/amd64/conf/DEFAULTS +++ b/sys/amd64/conf/DEFAULTS @@ -1,31 +1,30 @@ # # DEFAULTS -- Default kernel configuration file for FreeBSD/amd64 # -# $FreeBSD$ machine amd64 options EARLY_AP_STARTUP # Bus support. device isa # Pseudo devices. device mem # Memory and kernel memory devices device io # I/O device # UART chips on this platform device uart_ns8250 # Default partitioning schemes options GEOM_PART_BSD options GEOM_PART_EBR options GEOM_PART_MBR options GEOM_PART_GPT # Default congestion control algorithm options CC_CUBIC # include CUBIC congestion control options NEW_PCIB options NETLINK # netlink(4) support diff --git a/sys/amd64/conf/GENERIC b/sys/amd64/conf/GENERIC index a3adb3ff8fd0..8d513fdc5f4c 100644 --- a/sys/amd64/conf/GENERIC +++ b/sys/amd64/conf/GENERIC @@ -1,397 +1,396 @@ # # GENERIC -- Generic kernel configuration file for FreeBSD/amd64 # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ cpu HAMMER ident GENERIC makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support options SCHED_ULE # ULE scheduler options NUMA # Non-Uniform Memory Architecture support options PREEMPTION # Enable kernel thread preemption options VIMAGE # Subsystem virtualization, e.g. VNET options INET # InterNETworking options INET6 # IPv6 communications protocols options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 options ROUTE_MPATH # Multipath routing support options FIB_ALGO # Modular fib lookups options TCP_OFFLOAD # TCP offload options TCP_BLACKBOX # Enhanced TCP event logging options TCP_HHOOK # hhook(9) framework for TCP options TCP_RFC7413 # TCP Fast Open options SCTP_SUPPORT # Allow kldload of SCTP options KERN_TLS # TLS transmit & receive offload options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options QUOTA # Enable disk quotas for UFS options MD_ROOT # MD is a potential root device options NFSCL # Network Filesystem Client options NFSD # Network Filesystem Server options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as /, requires NFSCL options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options TMPFS # Efficient memory filesystem options GEOM_RAID # Soft RAID functionality. options GEOM_LABEL # Provides labelization options EFIRT # EFI Runtime Services support options COMPAT_FREEBSD32 # Compatible with i386 binaries options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options COMPAT_FREEBSD9 # Compatible with FreeBSD9 options COMPAT_FREEBSD10 # Compatible with FreeBSD10 options COMPAT_FREEBSD11 # Compatible with FreeBSD11 options COMPAT_FREEBSD12 # Compatible with FreeBSD12 options COMPAT_FREEBSD13 # Compatible with FreeBSD13 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KBD_INSTALL_CDEV # install a CDEV entry in /dev options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options AUDIT # Security event auditing options CAPABILITY_MODE # Capsicum capability mode options CAPABILITIES # Capsicum capabilities options MAC # TrustedBSD MAC Framework options KDTRACE_FRAME # Ensure frames are compiled in options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options INCLUDE_CONFIG_FILE # Include this file in kernel options RACCT # Resource accounting framework options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default options RCTL # Resource limits # Debugging support. Always need this: options KDB # Enable kernel debugger support. options KDB_TRACE # Print a stack trace for a panic. # For full debugger support use (turn off in stable branch): options BUF_TRACKING # Track buffer history options DDB # Support DDB. options FULL_BUF_TRACKING # Track more buffer history options GDB # Support remote GDB. options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options QUEUE_MACRO_DEBUG_TRASH # Trash queue(2) internal pointers on invalidation options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default # Kernel Sanitizers #options COVERAGE # Generic kernel coverage. Used by KCOV #options KCOV # Kernel Coverage Sanitizer # Warning: KUBSAN can result in a kernel too large for loader to load #options KUBSAN # Kernel Undefined Behavior Sanitizer #options KCSAN # Kernel Concurrency Sanitizer # Kernel dump features. options EKCD # Support for encrypted kernel dumps options GZIO # gzip-compressed kernel and user dumps options ZSTDIO # zstd-compressed kernel and user dumps options DEBUGNET # debugnet networking options NETDUMP # netdump(4) client support options NETGDB # netgdb(4) client support # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor Kernel # CPU frequency control device cpufreq # Bus support. device acpi device smbios options IOMMU device pci options PCI_HP # PCI-Express native HotPlug options PCI_IOV # PCI SR-IOV support options COMPAT_LINUXKPI # Enable support for the kernel PLL to use an external PPS signal, # under supervision of [x]ntpd(8) # More info in ntpd documentation: http://www.eecis.udel.edu/~ntp options PPS_SYNC # Floppy drives device fdc # ATA controllers device ahci # AHCI-compatible SATA controllers device ata # Legacy ATA/SATA controllers device mvs # Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA device siis # SiliconImage SiI3124/SiI3132/SiI3531 SATA # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices device ahd # AHA39320/29320 and onboard AIC79xx devices device hptiop # Highpoint RocketRaid 3xxx series device isp # Qlogic family #device ispfw # Firmware for QLogic HBAs- normally a module device mpt # LSI-Logic MPT-Fusion device mps # LSI-Logic MPT-Fusion 2 device mpr # LSI-Logic MPT-Fusion 3 device sym # NCR/Symbios Logic device isci # Intel C600 SAS controller device ocs_fc # Emulex FC adapters device pvscsi # VMware PVSCSI # ATA/SCSI peripherals device scbus # SCSI bus (required for ATA/SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct ATA/SCSI access) device ses # Enclosure Services (SES and SAF-TE) #device ctl # CAM Target Layer # RAID controllers interfaced to the SCSI subsystem device arcmsr # Areca SATA II RAID device ciss # Compaq Smart RAID 5* device ips # IBM (Adaptec) ServeRAID device smartpqi # Microsemi smartpqi driver device tws # LSI 3ware 9750 SATA+SAS 6Gb/s RAID controller # RAID controllers device aac # Adaptec FSA RAID device aacp # SCSI passthrough for aac (requires CAM) device aacraid # Adaptec by PMC RAID device ida # Compaq Smart RAID device mfi # LSI MegaRAID SAS device mlx # Mylex DAC960 family device mrsas # LSI/Avago MegaRAID SAS/SATA, 6Gb/s and 12Gb/s #XXX pointer/int warnings #device pst # Promise Supertrak SX6000 # NVM Express (NVMe) support device nvme # base NVMe driver device nvd # expose NVMe namespaces as disks, depends on nvme # Intel Volume Management Device (VMD) support device vmd # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device kbdmux # keyboard multiplexer # syscons is the legacy console driver, resembling an SCO console device vga # VGA video card driver device splash # Splash screen and screen saver support device sc options SC_PIXEL_MODE # add support for the raster text mode # vt is the default video console driver device vt device vt_vga device vt_efifb device vt_vbefb device agp # support several AGP chipsets # CardBus bridge support device cbb # CardBus (yenta) bridge device cardbus # CardBus (32-bit) bus # Serial (COM) ports device uart # Generic UART driver # Parallel port device ppc device ppbus # Parallel port bus (required) device lpt # Printer device ppi # Parallel port interface device #device vpo # Requires scbus and da device puc # Multi I/O cards and multi-channel UARTs # PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure device iflib device em # Intel PRO/1000 Gigabit Ethernet Family device igc # Intel I225 2.5G Ethernet device ix # Intel PRO/10GbE PCIE PF Ethernet device ixv # Intel PRO/10GbE PCIE VF Ethernet device ixl # Intel 700 Series Physical Function device iavf # Intel Adaptive Virtual Function device ice # Intel 800 Series Physical Function device vmx # VMware VMXNET3 Ethernet device axp # AMD EPYC integrated NIC (requires miibus) # PCI Ethernet NICs. device bxe # Broadcom NetXtreme II BCM5771X/BCM578XX 10GbE device le # AMD Am7900 LANCE and Am79C9xx PCnet device ti # Alteon Networks Tigon I/II gigabit Ethernet # Nvidia/Mellanox Connect-X 4 and later, Ethernet only # o requires COMPAT_LINUXKPI and xz(4) # o mlx5ib requires ibcore infra and is not included by default device mlx5 # Base driver device mlxfw # Firmware update device mlx5en # Ethernet driver # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support device ae # Attansic/Atheros L2 FastEthernet device age # Attansic/Atheros L1 Gigabit Ethernet device alc # Atheros AR8131/AR8132 Ethernet device ale # Atheros AR8121/AR8113/AR8114 Ethernet device bce # Broadcom BCM5706/BCM5708 Gigabit Ethernet device bfe # Broadcom BCM440x 10/100 Ethernet device bge # Broadcom BCM570xx Gigabit Ethernet device cas # Sun Cassini/Cassini+ and NS DP83065 Saturn device dc # DEC/Intel 21143 and various workalikes device et # Agere ET1310 10/100/Gigabit Ethernet device fxp # Intel EtherExpress PRO/100B (82557, 82558) device gem # Sun GEM/Sun ERI/Apple GMAC device jme # JMicron JMC250 Gigabit/JMC260 Fast Ethernet device lge # Level 1 LXT1001 gigabit Ethernet device msk # Marvell/SysKonnect Yukon II Gigabit Ethernet device nfe # nVidia nForce MCP on-board Ethernet device nge # NatSemi DP83820 gigabit Ethernet device re # RealTek 8139C+/8169/8169S/8110S device rl # RealTek 8129/8139 device sge # Silicon Integrated Systems SiS190/191 device sis # Silicon Integrated Systems SiS 900/SiS 7016 device sk # SysKonnect SK-984x & SK-982x gigabit Ethernet device ste # Sundance ST201 (D-Link DFE-550TX) device stge # Sundance/Tamarack TC9021 gigabit Ethernet device vge # VIA VT612x gigabit Ethernet device vr # VIA Rhine, Rhine II device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # Wireless NIC cards device wlan # 802.11 support options IEEE80211_DEBUG # enable debug msgs options IEEE80211_SUPPORT_MESH # enable 802.11s draft support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm device ath # Atheros CardBus/PCI NICs device ath_hal # Atheros CardBus/PCI chip support options AH_AR5416_INTERRUPT_MITIGATION # AR5416 interrupt mitigation options ATH_ENABLE_11N # Enable 802.11n support for AR5416 and later device ath_rate_sample # SampleRate tx rate control for ath #device bwi # Broadcom BCM430x/BCM431x wireless NICs. #device bwn # Broadcom BCM43xx wireless NICs. device ipw # Intel 2100 wireless NICs. device iwi # Intel 2200BG/2225BG/2915ABG wireless NICs. device iwn # Intel 4965/1000/5000/6000 wireless NICs. device malo # Marvell Libertas wireless NICs. device mwl # Marvell 88W8363 802.11n wireless NICs. device ral # Ralink Technology RT2500 wireless NICs. device wpi # Intel 3945ABG wireless NICs. # Pseudo devices. device crypto # core crypto support device aesni # AES-NI OpenCrypto module device loop # Network loopback device padlock_rng # VIA Padlock RNG device rdrand_rng # Intel Bull Mountain RNG device ether # Ethernet support device vlan # 802.1Q VLAN support device tuntap # Packet tunnel. device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device firmware # firmware assist module device xz # lzma decompression # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # USB support options USB_DEBUG # enable debug msgs device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci # EHCI PCI->USB interface (USB 2.0) device xhci # XHCI PCI->USB interface (USB 3.0) device usb # USB Bus (required) device ukbd # Keyboard device umass # Disks/Mass storage - Requires scbus and da # Sound support device sound # Generic sound driver (required) device snd_cmi # CMedia CMI8338/CMI8738 device snd_csa # Crystal Semiconductor CS461x/428x device snd_emu10kx # Creative SoundBlaster Live! and Audigy device snd_es137x # Ensoniq AudioPCI ES137x device snd_hda # Intel High Definition Audio device snd_ich # Intel, NVidia and other ICH AC'97 Audio device snd_via8233 # VIA VT8233x Audio # MMC/SD device mmc # MMC/SD bus device mmcsd # MMC/SD memory card device sdhci # Generic PCI SD Host Controller # VirtIO support device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI device device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device # Linux KVM paravirtualization support device kvm_clock # KVM paravirtual clock driver # HyperV drivers and enhancement support device hyperv # HyperV drivers # Xen HVM Guest Optimizations # NOTE: XENHVM depends on xenpci and xentimer. # They must be added or removed together. options XENHVM # Xen HVM kernel infrastructure device xenefi # Xen EFI timer device device xenpci # Xen HVM Hypervisor services driver device xentimer # Xen x86 PV timer device # Netmap provides direct access to TX/RX rings on supported NICs device netmap # netmap(4) support # evdev interface options EVDEV_SUPPORT # evdev support in legacy drivers device evdev # input event device support device uinput # install /dev/uinput cdev # HID support options HID_DEBUG # enable debug msgs device hid # Generic HID support options IICHID_SAMPLING # Workaround missing GPIO INTR support diff --git a/sys/amd64/conf/GENERIC-KASAN b/sys/amd64/conf/GENERIC-KASAN index 8d5703141e86..5aa2d50d3cca 100644 --- a/sys/amd64/conf/GENERIC-KASAN +++ b/sys/amd64/conf/GENERIC-KASAN @@ -1,7 +1,6 @@ -# $FreeBSD$ include GENERIC ident GENERIC-KASAN options KASAN diff --git a/sys/amd64/conf/GENERIC-KCSAN b/sys/amd64/conf/GENERIC-KCSAN index b578fbf641cd..a0970f2a46a4 100644 --- a/sys/amd64/conf/GENERIC-KCSAN +++ b/sys/amd64/conf/GENERIC-KCSAN @@ -1,33 +1,32 @@ # # GENERIC-KCSAN -- Kernel Concurrency Sanitizer kernel configuration file # for FreeBSD/amd64 # # This configuration file removes several debugging options, including # WITNESS and INVARIANTS checking, which are known to have significant # performance impact on running systems. When benchmarking new features # this kernel should be used instead of the standard GENERIC. # This kernel configuration should never appear outside of the HEAD # of the FreeBSD tree. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ include GENERIC ident GENERIC-KCSAN options KCSAN diff --git a/sys/amd64/conf/GENERIC-KMSAN b/sys/amd64/conf/GENERIC-KMSAN index 0afbade172b4..e147d8b8168b 100644 --- a/sys/amd64/conf/GENERIC-KMSAN +++ b/sys/amd64/conf/GENERIC-KMSAN @@ -1,7 +1,6 @@ -# $FreeBSD$ include GENERIC ident GENERIC-KMSAN options KMSAN diff --git a/sys/amd64/conf/GENERIC-MMCCAM b/sys/amd64/conf/GENERIC-MMCCAM index afb0d128dca4..7cf1ebdf9458 100644 --- a/sys/amd64/conf/GENERIC-MMCCAM +++ b/sys/amd64/conf/GENERIC-MMCCAM @@ -1,34 +1,33 @@ # MMCCAM is the kernel config for doing MMC on CAM development # and testing on bhyve -# $FreeBSD$ #NO_UNIVERSE include MINIMAL ident GENERIC-MMCCAM # Access GPT-formatted and labeled root volume options GEOM_LABEL # UART -- for bhyve console device uart # VirtIO support, needed for bhyve device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI device device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device # CAM-specific stuff device pass device scbus device da options MMCCAM # Add CAMDEBUG stuff options CAMDEBUG options CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH) diff --git a/sys/amd64/conf/GENERIC-NODEBUG b/sys/amd64/conf/GENERIC-NODEBUG index 1c767e84d483..85ff32ea329b 100644 --- a/sys/amd64/conf/GENERIC-NODEBUG +++ b/sys/amd64/conf/GENERIC-NODEBUG @@ -1,32 +1,31 @@ # # GENERIC-NODEBUG -- WITNESS and INVARIANTS free kernel configuration file # for FreeBSD/amd64 # # This configuration file removes several debugging options, including # WITNESS and INVARIANTS checking, which are known to have significant # performance impact on running systems. When benchmarking new features # this kernel should be used instead of the standard GENERIC. # This kernel configuration should never appear outside of the HEAD # of the FreeBSD tree. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ include GENERIC include "../../conf/std.nodebug" ident GENERIC-NODEBUG diff --git a/sys/amd64/conf/GENERIC.hints b/sys/amd64/conf/GENERIC.hints index 31311d03fc94..be3f59cd1950 100644 --- a/sys/amd64/conf/GENERIC.hints +++ b/sys/amd64/conf/GENERIC.hints @@ -1,34 +1,33 @@ -# $FreeBSD$ hint.fdc.0.at="isa" hint.fdc.0.port="0x3F0" hint.fdc.0.irq="6" hint.fdc.0.drq="2" hint.fd.0.at="fdc0" hint.fd.0.drive="0" hint.fd.1.at="fdc0" hint.fd.1.drive="1" hint.atkbdc.0.at="isa" hint.atkbdc.0.port="0x060" hint.atkbd.0.at="atkbdc" hint.atkbd.0.irq="1" hint.psm.0.at="atkbdc" hint.psm.0.irq="12" hint.sc.0.at="isa" hint.sc.0.flags="0x100" hint.uart.0.at="isa" hint.uart.0.port="0x3F8" hint.uart.0.flags="0x10" hint.uart.0.irq="4" hint.uart.1.at="isa" hint.uart.1.port="0x2F8" hint.uart.1.irq="3" hint.ppc.0.at="isa" hint.ppc.0.irq="7" hint.atrtc.0.at="isa" hint.atrtc.0.port="0x70" hint.atrtc.0.irq="8" hint.attimer.0.at="isa" hint.attimer.0.port="0x40" hint.attimer.0.irq="0" hint.acpi_throttle.0.disabled="1" hint.p4tcc.0.disabled="1" diff --git a/sys/amd64/conf/LINT b/sys/amd64/conf/LINT index 9618f78944ab..41207eb63cb9 100644 --- a/sys/amd64/conf/LINT +++ b/sys/amd64/conf/LINT @@ -1,5 +1,4 @@ -# $FreeBSD$ include "../../conf/NOTES" include "../../x86/conf/NOTES" include NOTES diff --git a/sys/amd64/conf/LINT-NOINET b/sys/amd64/conf/LINT-NOINET index 2e4366ef8996..3f2246001b72 100644 --- a/sys/amd64/conf/LINT-NOINET +++ b/sys/amd64/conf/LINT-NOINET @@ -1,8 +1,7 @@ -# $FreeBSD$ include LINT ident LINT-NOINET makeoptions MKMODULESENV+="WITHOUT_INET_SUPPORT=" nooptions INET nodevice gre nodevice netmap diff --git a/sys/amd64/conf/LINT-NOINET6 b/sys/amd64/conf/LINT-NOINET6 index ffb275fd68d9..e314ad1b01ec 100644 --- a/sys/amd64/conf/LINT-NOINET6 +++ b/sys/amd64/conf/LINT-NOINET6 @@ -1,6 +1,5 @@ -# $FreeBSD$ include LINT ident LINT-NOINET6 makeoptions MKMODULESENV+="WITHOUT_INET6_SUPPORT=" nooptions INET6 diff --git a/sys/amd64/conf/LINT-NOIP b/sys/amd64/conf/LINT-NOIP index 05b1ce75f57f..b3006cdb363e 100644 --- a/sys/amd64/conf/LINT-NOIP +++ b/sys/amd64/conf/LINT-NOIP @@ -1,24 +1,23 @@ -# $FreeBSD$ include LINT ident LINT-NOIP makeoptions MKMODULESENV+="WITHOUT_INET_SUPPORT=" makeoptions MKMODULESENV+="WITHOUT_INET6_SUPPORT=" nooptions INET nooptions INET6 nooptions KERN_TLS nodevice age nodevice alc nodevice ale nodevice bxe nodevice em nodevice fxp nodevice gve nodevice jme nodevice lio nodevice msk nodevice mxge nodevice sge nodevice sk nodevice txp nodevice netmap diff --git a/sys/amd64/conf/MINIMAL b/sys/amd64/conf/MINIMAL index f52fbb375f6d..c3eca5221890 100644 --- a/sys/amd64/conf/MINIMAL +++ b/sys/amd64/conf/MINIMAL @@ -1,148 +1,147 @@ # # MINIMAL -- Mostly Minimal kernel configuration file for FreeBSD/amd64 # # Many definitions of minimal are possible. The one this file follows is # GENERIC, minus all functionality that can be replaced by loading kernel # modules. # # Exceptions: # o (non-loaded) random is included due to uncertainty... # o Many networking things are included # # For now, please run changes to these list past imp@freebsd.org # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ cpu HAMMER ident MINIMAL makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support options SCHED_ULE # ULE scheduler options NUMA # Non-Uniform Memory Architecture support options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking options INET6 # IPv6 communications protocols options TCP_OFFLOAD # TCP offload options SCTP_SUPPORT # Allow kldload of SCTP options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options QUOTA # Enable disk quotas for UFS options MD_ROOT # MD is a potential root device options GEOM_LABEL # Provides labelization options COMPAT_FREEBSD32 # Compatible with i386 binaries options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options COMPAT_FREEBSD9 # Compatible with FreeBSD9 options COMPAT_FREEBSD10 # Compatible with FreeBSD10 options COMPAT_FREEBSD11 # Compatible with FreeBSD11 options COMPAT_FREEBSD12 # Compatible with FreeBSD12 options COMPAT_FREEBSD13 # Compatible with FreeBSD13 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KBD_INSTALL_CDEV # install a CDEV entry in /dev options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options AUDIT # Security event auditing options CAPABILITY_MODE # Capsicum capability mode options CAPABILITIES # Capsicum capabilities options MAC # TrustedBSD MAC Framework options KDTRACE_FRAME # Ensure frames are compiled in options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options INCLUDE_CONFIG_FILE # Include this file in kernel # Debugging support. Always need this: options KDB # Enable kernel debugger support. options KDB_TRACE # Print a stack trace for a panic. # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor Kernel # CPU frequency control device cpufreq # Bus support. device acpi options IOMMU device pci # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device kbdmux # keyboard multiplexer # syscons is the legacy console driver, resembling an SCO console device vga # VGA video card driver device splash # Splash screen and screen saver support device sc options SC_PIXEL_MODE # add support for the raster text mode # vt is the default video console driver device vt device vt_vga device vt_efifb device vt_vbefb device agp # support several AGP chipsets # Serial (COM) ports device uart # Generic UART driver # Pseudo devices. device loop # Network loopback device padlock_rng # VIA Padlock RNG device rdrand_rng # Intel Bull Mountain RNG device ether # Ethernet support # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # VirtIO support device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI device device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_balloon # VirtIO Memory Balloon device # Linux KVM paravirtualization support device kvm_clock # KVM paravirtual clock driver # Xen HVM Guest Optimizations # NOTE: XENHVM depends on xenpci and xentimer. # They must be added or removed together. options XENHVM # Xen HVM kernel infrastructure device xenefi # Xen EFI timer device device xenpci # Xen HVM Hypervisor services driver device xentimer # Xen x86 PV timer device # evdev interface options EVDEV_SUPPORT # evdev support in legacy drivers device evdev # input event device support device uinput # install /dev/uinput cdev diff --git a/sys/amd64/conf/NOTES b/sys/amd64/conf/NOTES index 9744bbc38dbf..9c91a4fa9bbb 100644 --- a/sys/amd64/conf/NOTES +++ b/sys/amd64/conf/NOTES @@ -1,674 +1,673 @@ # # NOTES -- Lines that can be cut/pasted into kernel and hints configs. # # This file contains machine dependent kernel configuration notes. For # machine independent notes, look in /sys/conf/NOTES. # -# $FreeBSD$ # # # Enable the kernel DTrace hooks which are required to load the DTrace # kernel modules. # options KDTRACE_HOOKS # DTrace core # NOTE: introduces CDDL-licensed components into the kernel #device dtrace # DTrace modules #device dtrace_profile #device dtrace_sdt #device dtrace_fbt #device dtrace_systrace #device dtrace_prototype #device dtnfscl #device dtmalloc # Alternatively include all the DTrace modules #device dtraceall ##################################################################### # SMP OPTIONS: # # Notes: # # IPI_PREEMPTION instructs the kernel to preempt threads running on other # CPUS if needed. Relies on the PREEMPTION option # Optional: options IPI_PREEMPTION device atpic # Optional legacy pic support device mptable # Optional MPSPEC mptable support # Debugging options. # options COUNT_XINVLTLB_HITS # Counters for TLB events options COUNT_IPIS # Per-CPU IPI interrupt counters ##################################################################### # CPU OPTIONS # # You must specify at least one CPU (the one you intend to run on); # deleting the specification for CPUs you don't need to use may make # parts of the system run faster. # cpu HAMMER # aka K8, aka Opteron & Athlon64 # # Options for CPU features. # ##################################################################### # NETWORKING OPTIONS # # DEVICE_POLLING adds support for mixed interrupt-polling handling # of network device drivers, which has significant benefits in terms # of robustness to overloads and responsivity, as well as permitting # accurate scheduling of the CPU time between kernel network processing # and other activities. The drawback is a moderate (up to 1/HZ seconds) # potential increase in response times. # It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING # to achieve smoother behaviour. # Additionally, you can enable/disable polling at runtime with help of # the ifconfig(8) utility, and select the CPU fraction reserved to # userland with the sysctl variable kern.polling.user_frac # (default 50, range 0..100). # # Not all device drivers support this mode of operation at the time of # this writing. See polling(4) for more details. options DEVICE_POLLING # BPF_JITTER adds support for BPF just-in-time compiler. options BPF_JITTER # OpenFabrics Enterprise Distribution (Infiniband). options OFED options OFED_DEBUG_INIT # Sockets Direct Protocol options SDP options SDP_DEBUG # IP over Infiniband options IPOIB options IPOIB_DEBUG options IPOIB_CM ##################################################################### # CLOCK OPTIONS # Provide read/write access to the memory in the clock chip. device nvram # Access to rtc cmos via /dev/nvram ##################################################################### # MISCELLANEOUS DEVICES AND OPTIONS device speaker #Play IBM BASIC-style noises out your speaker envvar hint.speaker.0.at="isa" envvar hint.speaker.0.port="0x61" ##################################################################### # HARDWARE BUS CONFIGURATION # # ISA bus # device isa # # Options for `isa': # # AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A # interrupt controller. This saves about 0.7-1.25 usec for each interrupt. # This option breaks suspend/resume on some portables. # # AUTO_EOI_2 enables the `automatic EOI' feature for the slave 8259A # interrupt controller. This saves about 0.7-1.25 usec for each interrupt. # Automatic EOI is documented not to work for the slave with the # original i8259A, but it works for some clones and some integrated # versions. # # MAXMEM specifies the amount of RAM on the machine; if this is not # specified, FreeBSD will first read the amount of memory from the CMOS # RAM, so the amount of memory will initially be limited to 64MB or 16MB # depending on the BIOS. If the BIOS reports 64MB, a memory probe will # then attempt to detect the installed amount of RAM. If this probe # fails to detect >64MB RAM you will have to use the MAXMEM option. # The amount is in kilobytes, so for a machine with 128MB of RAM, it would # be 131072 (128 * 1024). # # BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to # reset the CPU for reboot. This is needed on some systems with broken # keyboard controllers. options AUTO_EOI_1 #options AUTO_EOI_2 options MAXMEM=(128*1024) #options BROKEN_KEYBOARD_RESET # # AGP GART support device agp # # AGP debugging. # options AGP_DEBUG ##################################################################### # HARDWARE DEVICE CONFIGURATION # To include support for VGA VESA video modes options VESA # Turn on extra debugging checks and output for VESA support. options VESA_DEBUG device dpms # DPMS suspend & resume via VESA BIOS # x86 real mode BIOS emulator, required by atkbdc/dpms/vesa options X86BIOS # # Optional devices: # # PS/2 mouse device psm envvar hint.psm.0.at="atkbdc" envvar hint.psm.0.irq="12" # Options for psm: options PSM_HOOKRESUME #hook the system resume event, useful #for some laptops options PSM_RESETAFTERSUSPEND #reset the device at the resume event # The keyboard controller; it controls the keyboard and the PS/2 mouse. device atkbdc envvar hint.atkbdc.0.at="isa" envvar hint.atkbdc.0.port="0x060" # The AT keyboard device atkbd envvar hint.atkbd.0.at="atkbdc" envvar hint.atkbd.0.irq="1" # Options for atkbd: options ATKBD_DFLT_KEYMAP # specify the built-in keymap makeoptions ATKBD_DFLT_KEYMAP=fr.dvorak # `flags' for atkbd: # 0x01 Force detection of keyboard, else we always assume a keyboard # 0x02 Don't reset keyboard, useful for some newer ThinkPads # 0x03 Force detection and avoid reset, might help with certain # dockingstations # 0x04 Old-style (XT) keyboard support, useful for older ThinkPads # Video card driver for VGA adapters. device vga envvar hint.vga.0.at="isa" # Options for vga: # Try the following option if the mouse pointer is not drawn correctly # or font does not seem to be loaded properly. May cause flicker on # some systems. options VGA_ALT_SEQACCESS # If you can dispense with some vga driver features, you may want to # use the following options to save some memory. #options VGA_NO_FONT_LOADING # don't save/load font #options VGA_NO_MODE_CHANGE # don't change video modes # Older video cards may require this option for proper operation. options VGA_SLOW_IOACCESS # do byte-wide i/o's to TS and GDC regs # The following option probably won't work with the LCD displays. options VGA_WIDTH90 # support 90 column modes # Debugging. options VGA_DEBUG # vt(4) drivers. device vt_vga # VGA device vt_efifb # EFI framebuffer device vt_vbefb # VBE framebuffer # Linear framebuffer driver for S3 VESA 1.2 cards. Works on top of VESA. device s3pci # 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support. This will create # the /dev/3dfx0 device to work with glide implementations. This should get # linked to /dev/3dfx and /dev/voodoo. Note that this is not the same as # the tdfx DRI module from XFree86 and is completely unrelated. # device tdfx # Enable 3Dfx Voodoo support # # ACPI support using the Intel ACPI Component Architecture reference # implementation. # # ACPI_DEBUG enables the use of the debug.acpi.level and debug.acpi.layer # kernel environment variables to select initial debugging levels for the # Intel ACPICA code. (Note that the Intel code must also have USE_DEBUGGER # defined when it is built). device acpi options ACPI_DEBUG # The cpufreq(4) driver provides support for non-ACPI CPU frequency control device cpufreq # # Network interfaces: # # axp: AMD EPYC integrated NIC # Requires the miibus module # bxe: Broadcom NetXtreme II (BCM5771X/BCM578XX) PCIe 10Gb Ethernet # adapters. # ice: Intel 800 Series Physical Function # Requires the ice_ddp module for full functionality # igc: Intel I225 2.5Gb Ethernet adapter # ipw: Intel PRO/Wireless 2100 IEEE 802.11 adapter # Requires the ipw firmware module # irdma: Intel 800 Series RDMA driver # Requires the ice module # iwi: Intel PRO/Wireless 2200BG/2225BG/2915ABG IEEE 802.11 adapters # Requires the iwi firmware module # iwn: Intel Wireless WiFi Link 1000/105/135/2000/4965/5000/6000/6050 abgn # 802.11 network adapters # Requires the iwn firmware module # mthca: Mellanox HCA InfiniBand # mlx4ib: Mellanox ConnectX HCA InfiniBand # mlx4en: Mellanox ConnectX HCA Ethernet # nfe: nVidia nForce MCP on-board Ethernet Networking (BSD open source) # qlxgb: QLogic 3200 and 8200 series 10 Gigabit Ethernet & CNA Adapter # qlxgbe: QLogic 8300 series 10 Gigabit Ethernet & CNA Adapter # qlxge: QLogic 8100 series 10 Gigabit Ethernet & CNA Adapter # qlnxe: Cavium QLogic 41000/45000 series 10/25/40/100 Gigabit Ethernet & CNA Adapter # sfxge: Solarflare SFC9000 family 10Gb Ethernet adapters # vmx: VMware VMXNET3 Ethernet (BSD open source) # wpi: Intel 3945ABG Wireless LAN controller # Requires the wpi firmware module device axp # AMD EPYC integrated NIC device bxe # Broadcom NetXtreme II BCM5771X/BCM578XX 10GbE device igc # Intel I225 2.5G Ethernet device ipw # Intel 2100 wireless NICs. device iwi # Intel 2200BG/2225BG/2915ABG wireless NICs. device iwn # Intel 4965/1000/5000/6000 wireless NICs. device ixl # Intel 700 Series Physical Function device iavf # Intel Adaptive Virtual Function device ice # Intel 800 Series Physical Function device ice_ddp # Intel 800 Series DDP Package device irdma # Intel 800 Series RDMA driver device mthca # Mellanox HCA InfiniBand device mlx4 # Shared code module between IB and Ethernet device mlx4ib # Mellanox ConnectX HCA InfiniBand device mlx4en # Mellanox ConnectX HCA Ethernet device nfe # nVidia nForce MCP on-board Ethernet device qlxgb # QLogic 3200/8200 Ethernet device qlxgbe # QLogic 8300 Ethernet device qlxge # QLogic 8100 Ethernet device qlnxe # QLogic 41000/45000 Ethernet device sfxge # Solarflare SFC9000 10Gb Ethernet device vmx # VMware VMXNET3 Ethernet device wpi # Intel 3945ABG wireless NICs. # IEEE 802.11 adapter firmware modules # Intel PRO/Wireless 2100 firmware: # ipwfw: BSS/IBSS/monitor mode firmware # ipwbssfw: BSS mode firmware # ipwibssfw: IBSS mode firmware # ipwmonitorfw: Monitor mode firmware # Intel PRO/Wireless 2200BG/2225BG/2915ABG firmware: # iwifw: BSS/IBSS/monitor mode firmware # iwibssfw: BSS mode firmware # iwiibssfw: IBSS mode firmware # iwimonitorfw: Monitor mode firmware # Intel Wireless WiFi Link 4965/1000/5000/6000 series firmware: # iwnfw: Single module to support all devices # iwn1000fw: Specific module for the 1000 only # iwn105fw: Specific module for the 105 only # iwn135fw: Specific module for the 135 only # iwn2000fw: Specific module for the 2000 only # iwn2030fw: Specific module for the 2030 only # iwn4965fw: Specific module for the 4965 only # iwn5000fw: Specific module for the 5000 only # iwn5150fw: Specific module for the 5150 only # iwn6000fw: Specific module for the 6000 only # iwn6000g2afw: Specific module for the 6000g2a only # iwn6000g2bfw: Specific module for the 6000g2b only # iwn6050fw: Specific module for the 6050 only # wpifw: Intel 3945ABG Wireless LAN Controller firmware device iwifw device iwibssfw device iwiibssfw device iwimonitorfw device ipwfw device ipwbssfw device ipwibssfw device ipwmonitorfw device iwnfw device iwn1000fw device iwn105fw device iwn135fw device iwn2000fw device iwn2030fw device iwn4965fw device iwn5000fw device iwn5150fw device iwn6000fw device iwn6000g2afw device iwn6000g2bfw device iwn6050fw device wpifw # net80211 options options IEEE80211_DEBUG_REFCNT # # Non-Transparent Bridge (NTB) drivers # device if_ntb # Virtual NTB network interface device ntb_transport # NTB packet transport driver device ntb # NTB hardware interface device ntb_hw_amd # AMD NTB hardware driver device ntb_hw_intel # Intel NTB hardware driver device ntb_hw_plx # PLX NTB hardware driver # #XXX this stores pointers in a 32bit field that is defined by the hardware #device pst # # Areca 11xx and 12xx series of SATA II RAID controllers. # CAM is required. # device arcmsr # Areca SATA II RAID # # Microsemi smartpqi controllers. # These controllers have a SCSI-like interface, and require the # CAM infrastructure. # device smartpqi # # Adaptec FSA RAID controllers, including integrated DELL controllers, # the Dell PERC 2/QC and the HP NetRAID-4M device aac device aacp # SCSI Passthrough interface (optional, CAM required) # # Highpoint RocketRAID 27xx. device hpt27xx # # Highpoint RocketRAID 182x. device hptmv # # Highpoint DC7280 and R750. device hptnr # # Highpoint RocketRAID. Supports RR172x, RR222x, RR2240, RR232x, RR2340, # RR2210, RR174x, RR2522, RR231x, RR230x. device hptrr # # Highpoint RocketRaid 3xxx series SATA RAID device hptiop # # IBM (now Adaptec) ServeRAID controllers device ips # # Intel integrated Memory Controller (iMC) SMBus controller # Sandybridge-Xeon, Ivybridge-Xeon, Haswell-Xeon, Broadwell-Xeon device imcsmb # # Intel C600 (Patsburg) integrated SAS controller device isci options ISCI_LOGGING # enable debugging in isci HAL # # NVM Express (NVMe) support device nvme # base NVMe driver device nvd # expose NVMe namespaces as disks, depends on nvme # # Intel Volume Management Device (VMD) support device vmd # # PMC-Sierra SAS/SATA controller device pmspcv # # Intel QuickAssist driver with OpenCrypto support # # Only for legacy Atom C2XXX chipsets. device qat_c2xxx # # SafeNet crypto driver: can be moved to the MI NOTES as soon as # it's tested on a big-endian machine # device safe # SafeNet 1141 options SAFE_DEBUG # enable debugging support: hw.safe.debug options SAFE_RNDTEST # enable rndtest support # # VirtIO support # # The virtio entry provides a generic bus for use by the device drivers. # It must be combined with an interface that communicates with the host. # Multiple such interfaces are defined by the VirtIO specification. FreeBSD # only has support for PCI. Therefore, virtio_pci must be statically # compiled in or loaded as a module for the device drivers to function. # device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI Interface device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device device virtio_random # VirtIO Entropy device device virtio_console # VirtIO Console device # Linux KVM paravirtualization support device kvm_clock # KVM paravirtual clock driver # Google Virtual NIC device gve # Google Virtual NIC (gVNIC) driver # Microsoft Hyper-V enhancement support device hyperv # HyperV drivers device hvhid # HyperV HID device # Xen HVM Guest Optimizations options XENHVM # Xen HVM kernel infrastructure device xenefi # Xen EFI timer device device xenpci # Xen HVM Hypervisor services driver device xentimer # Xen x86 PV timer device ##################################################################### # # Miscellaneous hardware: # # ipmi: Intelligent Platform Management Interface # pbio: Parallel (8255 PPI) basic I/O (mode 0) port (e.g. Advantech PCL-724) # smbios: DMI/SMBIOS entry point (requires EFIRT option) # vpd: Vital Product Data kernel interface # asmc: Apple System Management Controller # si: Specialix International SI/XIO or SX intelligent serial card # tpm: Trusted Platform Module # Notes on the Specialix SI/XIO driver: # The host card is memory, not IO mapped. # The Rev 1 host cards use a 64K chunk, on a 32K boundary. # The Rev 2 host cards use a 32K chunk, on a 32K boundary. # The cards can use an IRQ of 11, 12 or 15. device ipmi device pbio envvar hint.pbio.0.at="isa" envvar hint.pbio.0.port="0x360" device smbios device vpd device asmc device tpm device padlock_rng # VIA Padlock RNG device rdrand_rng # Intel Bull Mountain RNG device aesni # AES-NI OpenCrypto module device ossl # OpenSSL OpenCrypto module device ioat # Intel I/OAT DMA engine # # Laptop/Notebook options: # device backlight # # I2C Bus # # # Hardware watchdog timers: # # ichwd: Intel ICH watchdog timer # amdsbwd: AMD SB7xx watchdog timer # viawd: VIA south bridge watchdog timer # wbwd: Winbond watchdog timer # itwd: ITE Super I/O watchdog timer # device ichwd device amdsbwd device viawd device wbwd device itwd # # Temperature sensors: # # coretemp: on-die sensor on Intel Core and newer CPUs # amdtemp: on-die sensor on AMD K8/K10/K11 CPUs # device coretemp device amdtemp # # CPU control pseudo-device. Provides access to MSRs, CPUID info and # microcode update feature. # device cpuctl # # SuperIO driver. # device superio # # System Management Bus (SMB) # options ENABLE_ALART # Control alarm on Intel intpm driver # # AMD System Management Network (SMN) # device amdsmn # # Number of initial kernel page table pages used for early bootstrap. # This number should include enough pages to map the kernel and any # modules or other data loaded with the kernel by the loader. Each # page table page maps 2MB. # options NKPT=31 # EFI Runtime Services support options EFIRT # # HID-over-I2C support # device iichid # HID-over-I2C support options IICHID_DEBUG # Enable HID-over-I2C debug messages options IICHID_SAMPLING # Workaround missing GPIO INTR support ##################################################################### # ABI Emulation #XXX keep these here for now and reactivate when support for emulating #XXX these 32 bit binaries is added. # Enable 32-bit runtime support for FreeBSD/i386 binaries. options COMPAT_FREEBSD32 # Enable (32-bit) a.out binary support options COMPAT_AOUT ##################################################################### # ZFS support # NB: This depends on crypto, cryptodev and ZSTDIO options ZFS ##################################################################### # VM OPTIONS # KSTACK_PAGES is the number of memory pages to assign to the kernel # stack of each thread. options KSTACK_PAGES=5 # Enable detailed accounting by the PV entry allocator. options PV_STATS ##################################################################### # More undocumented options for linting. # Note that documenting these are not considered an affront. options KBDIO_DEBUG=2 options KBD_MAXRETRY=4 options KBD_MAXWAIT=6 options KBD_RESETDELAY=201 options PSM_DEBUG=1 options TIMER_FREQ=((14318182+6)/12) options VM_KMEM_SIZE options VM_KMEM_SIZE_MAX options VM_KMEM_SIZE_SCALE # GCOV (code coverage) support options LINDEBUGFS options GCOV diff --git a/sys/amd64/linux/Makefile b/sys/amd64/linux/Makefile index 662c7f8fc42f..e0d74bb46c78 100644 --- a/sys/amd64/linux/Makefile +++ b/sys/amd64/linux/Makefile @@ -1,7 +1,6 @@ # Makefile for syscall tables # -# $FreeBSD$ GENERATED_PREFIX= linux_ .include "../../conf/sysent.mk" diff --git a/sys/amd64/linux/syscalls.conf b/sys/amd64/linux/syscalls.conf index a47f80444c2a..b46b9e500553 100644 --- a/sys/amd64/linux/syscalls.conf +++ b/sys/amd64/linux/syscalls.conf @@ -1,12 +1,11 @@ -# $FreeBSD$ sysnames="linux_syscalls.c" sysproto="linux_proto.h" sysproto_h=_LINUX_SYSPROTO_H_ syshdr="linux_syscall.h" syssw="linux_sysent.c" sysmk="/dev/null" syscallprefix="LINUX_SYS_" switchname="linux_sysent" namesname="linux_syscallnames" systrace="linux_systrace_args.c" compat_set="" diff --git a/sys/amd64/linux32/Makefile b/sys/amd64/linux32/Makefile index 94ded158923e..0f9bd45ec539 100644 --- a/sys/amd64/linux32/Makefile +++ b/sys/amd64/linux32/Makefile @@ -1,7 +1,6 @@ # Makefile for syscall tables # -# $FreeBSD$ GENERATED_PREFIX= linux32_ .include "../../conf/sysent.mk" diff --git a/sys/amd64/linux32/syscalls.conf b/sys/amd64/linux32/syscalls.conf index ce9a437e82e3..82ffa49fdbb8 100644 --- a/sys/amd64/linux32/syscalls.conf +++ b/sys/amd64/linux32/syscalls.conf @@ -1,12 +1,11 @@ -# $FreeBSD$ sysnames="linux32_syscalls.c" sysproto="linux32_proto.h" sysproto_h=_LINUX32_SYSPROTO_H_ syshdr="linux32_syscall.h" syssw="linux32_sysent.c" sysmk="/dev/null" syscallprefix="LINUX32_SYS_" switchname="linux32_sysent" namesname="linux32_syscallnames" systrace="linux32_systrace_args.c" compat_set="" diff --git a/sys/amd64/vmm/amd/ivhd_if.m b/sys/amd64/vmm/amd/ivhd_if.m index f2994243c91e..3b37de9f4ba0 100644 --- a/sys/amd64/vmm/amd/ivhd_if.m +++ b/sys/amd64/vmm/amd/ivhd_if.m @@ -1,46 +1,45 @@ #- # Copyright (c) 2021 The FreeBSD Foundation # # Portions of this software were developed by Ka Ho Ng # under sponsorship from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include INTERFACE ivhd; METHOD int setup_intr { device_t dev; driver_intr_t handler; void *arg; const char *desc; }; METHOD int teardown_intr { device_t dev; }; diff --git a/sys/arm/allwinner/a10/files.a10 b/sys/arm/allwinner/a10/files.a10 index 5fe53134f44c..46fbb208f998 100644 --- a/sys/arm/allwinner/a10/files.a10 +++ b/sys/arm/allwinner/a10/files.a10 @@ -1,5 +1,4 @@ -# $FreeBSD$ arm/allwinner/a10/a10_intc.c standard arm/allwinner/a10/a10_padconf.c standard arm/allwinner/clkng/ccu_a10.c standard diff --git a/sys/arm/allwinner/a13/files.a13 b/sys/arm/allwinner/a13/files.a13 index 0a84d63ef7b8..6bf013e96b42 100644 --- a/sys/arm/allwinner/a13/files.a13 +++ b/sys/arm/allwinner/a13/files.a13 @@ -1,4 +1,3 @@ -# $FreeBSD$ arm/allwinner/a13/a13_padconf.c standard arm/allwinner/clkng/ccu_a13.c standard diff --git a/sys/arm/allwinner/a20/files.a20 b/sys/arm/allwinner/a20/files.a20 index 6cc952bd6ee9..f708638ff294 100644 --- a/sys/arm/allwinner/a20/files.a20 +++ b/sys/arm/allwinner/a20/files.a20 @@ -1,4 +1,3 @@ -# $FreeBSD$ arm/allwinner/a20/a20_padconf.c standard arm/allwinner/clkng/ccu_a10.c standard diff --git a/sys/arm/allwinner/a31/files.a31 b/sys/arm/allwinner/a31/files.a31 index df3ad57da03e..69bf5514b0e7 100644 --- a/sys/arm/allwinner/a31/files.a31 +++ b/sys/arm/allwinner/a31/files.a31 @@ -1,6 +1,5 @@ -# $FreeBSD$ arm/allwinner/clkng/ccu_a31.c standard arm/allwinner/a31/a31_padconf.c standard arm/allwinner/a31/a31_r_padconf.c standard arm/allwinner/a31/a31s_padconf.c standard diff --git a/sys/arm/allwinner/a33/files.a33 b/sys/arm/allwinner/a33/files.a33 index c80c476e7dd2..0171368dc62a 100644 --- a/sys/arm/allwinner/a33/files.a33 +++ b/sys/arm/allwinner/a33/files.a33 @@ -1,3 +1,2 @@ -# $FreeBSD$ arm/allwinner/a33/a33_padconf.c standard diff --git a/sys/arm/allwinner/a83t/files.a83t b/sys/arm/allwinner/a83t/files.a83t index d8822ae019c4..f7c47185279c 100644 --- a/sys/arm/allwinner/a83t/files.a83t +++ b/sys/arm/allwinner/a83t/files.a83t @@ -1,6 +1,5 @@ -# $FreeBSD$ arm/allwinner/clkng/ccu_a83t.c standard arm/allwinner/clkng/ccu_sun8i_r.c standard arm/allwinner/a83t/a83t_padconf.c standard arm/allwinner/a83t/a83t_r_padconf.c standard diff --git a/sys/arm/allwinner/files.allwinner b/sys/arm/allwinner/files.allwinner index 40775ac3212b..b5197809380d 100644 --- a/sys/arm/allwinner/files.allwinner +++ b/sys/arm/allwinner/files.allwinner @@ -1,49 +1,48 @@ -# $FreeBSD$ arm/allwinner/a10_ahci.c optional ahci arm/allwinner/a10_codec.c optional sound arm/allwinner/a10_dmac.c optional a10_dmac arm/allwinner/a31_dmac.c optional a31_dmac arm/allwinner/a10_sramc.c optional SOC_ALLWINNER_A10 arm/allwinner/aw_gpio.c optional gpio arm/allwinner/aw_if_dwc.c optional dwc arm/allwinner/aw_machdep.c standard arm/allwinner/aw_mmc.c optional mmc | mmccam arm/allwinner/aw_mp.c optional smp arm/allwinner/aw_nmi.c standard arm/allwinner/aw_r_intc.c optional aw_r_intc arm/allwinner/aw_rsb.c optional rsb | p2wi arm/allwinner/aw_rtc.c optional aw_rtc arm/allwinner/aw_syscon.c optional syscon arm/allwinner/aw_ts.c optional aw_thermal arm/allwinner/aw_usbphy.c optional ehci | ohci arm/allwinner/aw_wdog.c optional aw_wdog arm/allwinner/axp209.c optional axp209 arm/allwinner/axp81x.c optional axp81x arm/allwinner/if_awg.c optional awg syscon arm/allwinner/if_emac.c optional emac arm/allwinner/sunxi_dma_if.m optional a10_dmac | a31_dmac dev/iicbus/twsi/a10_twsi.c optional twsi dev/usb/controller/generic_ohci.c optional ohci dev/usb/controller/generic_usb_if.m optional ohci dev/usb/controller/generic_ehci.c optional ehci dev/usb/controller/generic_ehci_fdt.c optional ehci dev/usb/controller/musb_otg_allwinner.c optional musb arm/allwinner/aw_sid.c optional aw_sid arm/allwinner/aw_thermal.c optional aw_thermal arm/allwinner/aw_cir.c optional aw_cir evdev arm/allwinner/aw_reset.c standard arm/allwinner/aw_ccu.c standard arm/allwinner/aw_gmacclk.c standard arm/allwinner/clkng/aw_ccung.c standard arm/allwinner/clkng/aw_clk_frac.c standard arm/allwinner/clkng/aw_clk_m.c standard arm/allwinner/clkng/aw_clk_mipi.c standard arm/allwinner/clkng/aw_clk_nkmp.c standard arm/allwinner/clkng/aw_clk_nm.c standard arm/allwinner/clkng/aw_clk_np.c standard arm/allwinner/clkng/aw_clk_nmm.c standard arm/allwinner/clkng/aw_clk_prediv_mux.c standard arm/allwinner/clkng/ccu_de2.c standard diff --git a/sys/arm/allwinner/files.allwinner_up b/sys/arm/allwinner/files.allwinner_up index c776c3de791e..3fcc600ad6cc 100644 --- a/sys/arm/allwinner/files.allwinner_up +++ b/sys/arm/allwinner/files.allwinner_up @@ -1,3 +1,2 @@ -# $FreeBSD$ arm/allwinner/a10_timer.c standard diff --git a/sys/arm/allwinner/h3/files.h3 b/sys/arm/allwinner/h3/files.h3 index bce6ca07c553..f4c90e5e9ed4 100644 --- a/sys/arm/allwinner/h3/files.h3 +++ b/sys/arm/allwinner/h3/files.h3 @@ -1,6 +1,5 @@ -# $FreeBSD$ arm/allwinner/clkng/ccu_h3.c standard arm/allwinner/clkng/ccu_sun8i_r.c standard arm/allwinner/h3/h3_padconf.c standard arm/allwinner/h3/h3_r_padconf.c standard diff --git a/sys/arm/allwinner/std.allwinner b/sys/arm/allwinner/std.allwinner index 4ba2ec7f0e1d..8679a53c03a3 100644 --- a/sys/arm/allwinner/std.allwinner +++ b/sys/arm/allwinner/std.allwinner @@ -1,12 +1,11 @@ # Allwinner common options -#$FreeBSD$ cpu CPU_CORTEXA machine arm armv7 makeoptions CONF_CFLAGS="-march=armv7a" files "../allwinner/files.allwinner" files "../allwinner/a20/files.a20" files "../allwinner/a31/files.a31" files "../allwinner/a83t/files.a83t" files "../allwinner/h3/files.h3" diff --git a/sys/arm/allwinner/std.allwinner_up b/sys/arm/allwinner/std.allwinner_up index 3fdfb7bba156..ffae48f35b67 100644 --- a/sys/arm/allwinner/std.allwinner_up +++ b/sys/arm/allwinner/std.allwinner_up @@ -1,11 +1,10 @@ # Allwinner Uniprocessor common options -#$FreeBSD$ cpu CPU_CORTEXA machine arm armv7 makeoptions CONF_CFLAGS="-march=armv7a" files "../allwinner/files.allwinner_up" files "../allwinner/files.allwinner" files "../allwinner/a10/files.a10" files "../allwinner/a13/files.a13" diff --git a/sys/arm/allwinner/sunxi_dma_if.m b/sys/arm/allwinner/sunxi_dma_if.m index 6e283b93cf41..5302a12607fd 100644 --- a/sys/arm/allwinner/sunxi_dma_if.m +++ b/sys/arm/allwinner/sunxi_dma_if.m @@ -1,98 +1,97 @@ #- # Copyright (c) 2016 Jared D. McNeill # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE sunxi_dma; HEADER { #include struct sunxi_dma_config { unsigned int dst_width; unsigned int dst_burst_len; unsigned int dst_drqtype; bool dst_noincr; unsigned int dst_blksize; /* DDMA-only */ unsigned int dst_wait_cyc; /* DDMA-only */ unsigned int src_width; unsigned int src_burst_len; unsigned int src_drqtype; bool src_noincr; unsigned int src_blksize; /* DDMA-only */ unsigned int src_wait_cyc; /* DDMA-only */ }; typedef void (*sunxi_dma_callback)(void *); } # # Allocate DMA channel # METHOD void * alloc { device_t dev; bool dedicated; sunxi_dma_callback callback; void *callback_arg; }; # # Free DMA channel # METHOD void free { device_t dev; void *dmachan; }; # # Set DMA channel configuration # METHOD int set_config { device_t dev; void *dmachan; const struct sunxi_dma_config *cfg; }; # # Start DMA channel transfer # METHOD int transfer { device_t dev; void *dmachan; bus_addr_t src; bus_addr_t dst; size_t nbytes; }; # # Halt DMA channel transfer # METHOD void halt { device_t dev; void *dmachan; }; diff --git a/sys/arm/altera/socfpga/files.socfpga b/sys/arm/altera/socfpga/files.socfpga index 56c1d16f1f46..986c08184570 100644 --- a/sys/arm/altera/socfpga/files.socfpga +++ b/sys/arm/altera/socfpga/files.socfpga @@ -1,20 +1,19 @@ -# $FreeBSD$ arm/altera/socfpga/socfpga_common.c standard arm/altera/socfpga/socfpga_machdep.c standard arm/altera/socfpga/socfpga_manager.c standard arm/altera/socfpga/socfpga_rstmgr.c standard arm/altera/socfpga/socfpga_mp.c optional smp dev/mmc/host/dwmmc.c optional dwmmc dev/mmc/host/dwmmc_altera.c optional dwmmc # Arria 10 arm/altera/socfpga/socfpga_a10_manager.c standard # BERI specific dev/beri/beri_ring.c optional beri_ring dev/beri/beri_mem.c optional beri_mem dev/beri/virtio/virtio.c optional beri_vtblk | vtbe dev/beri/virtio/virtio_block.c optional beri_vtblk dev/beri/virtio/network/if_vtbe.c optional vtbe diff --git a/sys/arm/altera/socfpga/std.socfpga b/sys/arm/altera/socfpga/std.socfpga index dc5cf704640b..273fa9820943 100644 --- a/sys/arm/altera/socfpga/std.socfpga +++ b/sys/arm/altera/socfpga/std.socfpga @@ -1,7 +1,6 @@ -# $FreeBSD$ cpu CPU_CORTEXA machine arm armv7 makeoptions CONF_CFLAGS="-march=armv7a" files "../altera/socfpga/files.socfpga" diff --git a/sys/arm/annapurna/alpine/files.alpine b/sys/arm/annapurna/alpine/files.alpine index 9b00d1db2d5d..ed72edd12a0a 100644 --- a/sys/arm/annapurna/alpine/files.alpine +++ b/sys/arm/annapurna/alpine/files.alpine @@ -1,7 +1,6 @@ -# $FreeBSD$ arm/arm/sp804.c standard dev/uart/uart_dev_ns8250.c optional uart arm/annapurna/alpine/alpine_machdep.c standard arm/annapurna/alpine/alpine_machdep_mp.c optional smp diff --git a/sys/arm/annapurna/alpine/std.alpine b/sys/arm/annapurna/alpine/std.alpine index e8c14f837cea..c06608fa8a82 100644 --- a/sys/arm/annapurna/alpine/std.alpine +++ b/sys/arm/annapurna/alpine/std.alpine @@ -1,13 +1,12 @@ -# $FreeBSD$ cpu CPU_CORTEXA machine arm armv7 makeoptions CONF_CFLAGS="-march=armv7a -DAL_HAVE_TYPES" makeoptions KERNVIRTADDR=0xa0200000 options KERNVIRTADDR=0xa0200000 makeoptions KERNBASE=0xa0000000 options KERNBASE=0xa0000000 files "../annapurna/alpine/files.alpine" diff --git a/sys/arm/arm/gic_if.m b/sys/arm/arm/gic_if.m index d6458cf177c4..43669f200477 100644 --- a/sys/arm/arm/gic_if.m +++ b/sys/arm/arm/gic_if.m @@ -1,73 +1,72 @@ #- # Copyright (c) 2021 The FreeBSD Foundation # # This software was developed by Andrew Turner under # sponsorship from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # INTERFACE gic; HEADER { struct intr_irqsrc; }; METHOD void reserve_msi_range { device_t dev; u_int mbi_start; u_int mbi_count; }; METHOD int alloc_msi { device_t dev; u_int mbi_start; u_int mbi_count; int count; int maxcount; struct intr_irqsrc **isrc; }; METHOD int release_msi { device_t dev; int count; struct intr_irqsrc **isrc; }; METHOD int alloc_msix { device_t dev; u_int mbi_start; u_int mbi_count; struct intr_irqsrc **isrc; }; METHOD int release_msix { device_t dev; struct intr_irqsrc *isrc; }; METHOD void db_show { device_t dev; }; diff --git a/sys/arm/arm/platform_if.m b/sys/arm/arm/platform_if.m index 1539e771c4e5..9752a2d7c1e3 100644 --- a/sys/arm/arm/platform_if.m +++ b/sys/arm/arm/platform_if.m @@ -1,148 +1,147 @@ #- # Copyright (c) 2009 Nathan Whitehorn # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include #include #include #include #include #include #include #include #include /** * @defgroup PLATFORM platform - KObj methods for ARM platform * implementations * @brief A set of methods required by all platform implementations. * These are used to bring up secondary CPUs, supply the physical memory * map, etc. *@{ */ INTERFACE platform; # # Default implementations # CODE { static void platform_null_attach(platform_t plat) { return; } static vm_offset_t platform_default_lastaddr(platform_t plat) { return (devmap_lastaddr()); } static void platform_default_mp_setmaxid(platform_t plat) { mp_ncpus = 1; mp_maxid = 0; } }; /** * @brief Probe for whether we are on this platform, returning the standard * newbus probe codes. If we have Open Firmware or a flattened device tree, * it is guaranteed to be available at this point. */ METHOD int probe { platform_t _plat; }; /** * @brief Attach this platform module. This happens before the MMU is online, * so the platform module can install its own high-priority MMU module at * this point. */ METHOD int attach { platform_t _plat; } DEFAULT platform_null_attach; /** * @brief Called as one of the last steps of early virtual memory * initialization, shortly before the new page tables are installed. */ METHOD int devmap_init { platform_t _plat; }; /** * @brief Called after devmap_init(), and must return the address of the * first byte of unusable KVA space. This allows a platform to carve out * of the top of the KVA space whatever reserves it needs for things like * static device mapping, and this is called to get the value before * calling pmap_bootstrap() which uses the value to size the available KVA. */ METHOD vm_offset_t lastaddr { platform_t _plat; } DEFAULT platform_default_lastaddr; /** * @brief Called after the static device mappings are established and just * before cninit(). The intention is that the routine can do any hardware * setup (such as gpio or pinmux) necessary to make the console functional. */ METHOD void gpio_init { platform_t _plat; }; /** * @brief Called just after cninit(). This is the first of the init * routines that can use printf() and expect the output to appear on * a standard console. */ METHOD void late_init { platform_t _plat; }; /** * @brief Called by cpu_mp_setmaxid() to set mp_maxid and mp_ncpus. */ METHOD void mp_setmaxid { platform_t _plat; } DEFAULT platform_default_mp_setmaxid; /** * @brief Called by cpu_mp_start to start the secondary processors. */ METHOD void mp_start_ap { platform_t _plat; }; /** * @brief Called by cpu_reset to reboot. */ METHOD void cpu_reset { platform_t _plat; }; diff --git a/sys/arm/arm/platform_pl310_if.m b/sys/arm/arm/platform_pl310_if.m index e032bebbf8aa..a630d9880935 100644 --- a/sys/arm/arm/platform_pl310_if.m +++ b/sys/arm/arm/platform_pl310_if.m @@ -1,84 +1,83 @@ #- # Copyright (c) 2017 Andrew Turner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include #include #include #include #include INTERFACE platform_pl310; HEADER { struct pl310_softc; }; CODE { static void platform_pl310_default_write_ctrl(platform_t plat, struct pl310_softc *sc, uint32_t val) { pl310_write4(sc, PL310_CTRL, val); } static void platform_pl310_default_write_debug(platform_t plat, struct pl310_softc *sc, uint32_t val) { pl310_write4(sc, PL310_DEBUG_CTRL, val); } }; /** * Initialize the pl310, e.g. to configure the prefetch control. The following * write functions may have already been called so they must not rely on * this function. */ METHOD void init { platform_t _plat; struct pl310_softc *sc; }; /** * Write to the Control Register. */ METHOD void write_ctrl { platform_t _plat; struct pl310_softc *sc; uint32_t val; } DEFAULT platform_pl310_default_write_ctrl; /** * Write to the Debug Control Register. */ METHOD void write_debug { platform_t _plat; struct pl310_softc *sc; uint32_t val; } DEFAULT platform_pl310_default_write_debug; diff --git a/sys/arm/broadcom/bcm2835/files.bcm2835 b/sys/arm/broadcom/bcm2835/files.bcm2835 index 729379066d4c..fda25115b8d5 100644 --- a/sys/arm/broadcom/bcm2835/files.bcm2835 +++ b/sys/arm/broadcom/bcm2835/files.bcm2835 @@ -1,3 +1,2 @@ -# $FreeBSD$ arm/broadcom/bcm2835/bcm2835_systimer.c standard diff --git a/sys/arm/broadcom/bcm2835/files.bcm2836 b/sys/arm/broadcom/bcm2835/files.bcm2836 index 43b6b6c25c2d..5d222d530a79 100644 --- a/sys/arm/broadcom/bcm2835/files.bcm2836 +++ b/sys/arm/broadcom/bcm2835/files.bcm2836 @@ -1,4 +1,3 @@ -# $FreeBSD$ arm/broadcom/bcm2835/bcm2836.c standard arm/broadcom/bcm2835/bcm2836_mp.c optional smp diff --git a/sys/arm/broadcom/bcm2835/files.bcm283x b/sys/arm/broadcom/bcm2835/files.bcm283x index 0af397566c17..44976f34d35a 100644 --- a/sys/arm/broadcom/bcm2835/files.bcm283x +++ b/sys/arm/broadcom/bcm2835/files.bcm283x @@ -1,48 +1,47 @@ -# $FreeBSD$ arm/broadcom/bcm2835/bcm2835_bsc.c optional bcm2835_bsc arm/broadcom/bcm2835/bcm2835_cpufreq.c standard arm/broadcom/bcm2835/bcm2835_dma.c standard arm/broadcom/bcm2835/bcm2835_fb.c optional sc arm/broadcom/bcm2835/bcm2835_fbd.c optional vt arm/broadcom/bcm2835/bcm2835_firmware.c standard arm/broadcom/bcm2835/bcm2835_ft5406.c optional evdev bcm2835_ft5406 arm/broadcom/bcm2835/bcm2835_gpio.c optional gpio arm/broadcom/bcm2835/bcm2835_intr.c standard arm/broadcom/bcm2835/bcm2835_machdep.c optional platform arm/broadcom/bcm2835/bcm2835_mbox.c standard arm/broadcom/bcm2835/bcm2835_rng.c optional random arm/broadcom/bcm2835/bcm2835_sdhci.c optional sdhci arm/broadcom/bcm2835/bcm2835_sdhost.c optional sdhci arm/broadcom/bcm2835/bcm2835_spi.c optional bcm2835_spi arm/broadcom/bcm2835/bcm2835_vcbus.c standard arm/broadcom/bcm2835/bcm2835_vcio.c standard arm/broadcom/bcm2835/bcm2835_wdog.c standard arm/broadcom/bcm2835/bcm2838_pci.c optional pci arm/broadcom/bcm2835/bcm2838_xhci.c optional xhci arm/broadcom/bcm2835/bcm283x_dwc_fdt.c optional dwcotg fdt dev/mbox/mbox_if.m standard arm/broadcom/bcm2835/bcm2835_audio.c optional sound vchiq \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" # VideoCore driver contrib/vchiq/interface/compat/vchi_bsd.c optional vchiq \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c optional vchiq \ compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_arm.c optional vchiq \ compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_connected.c optional vchiq \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_core.c optional vchiq \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_kern_lib.c optional vchiq \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_kmod.c optional vchiq \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_shim.c optional vchiq \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_util.c optional vchiq \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" diff --git a/sys/arm/broadcom/bcm2835/std.bcm2835 b/sys/arm/broadcom/bcm2835/std.bcm2835 index 08e9d763bc8f..4bb1000d0da1 100644 --- a/sys/arm/broadcom/bcm2835/std.bcm2835 +++ b/sys/arm/broadcom/bcm2835/std.bcm2835 @@ -1,10 +1,9 @@ -# $FreeBSD$ machine arm armv6 cpu CPU_ARM1176 makeoptions CONF_CFLAGS="-mcpu=arm1176jzf-s" options SOC_BCM2835 files "../broadcom/bcm2835/files.bcm2835" files "../broadcom/bcm2835/files.bcm283x" diff --git a/sys/arm/broadcom/bcm2835/std.bcm2836 b/sys/arm/broadcom/bcm2835/std.bcm2836 index ffcc562f8436..a66e46131d41 100644 --- a/sys/arm/broadcom/bcm2835/std.bcm2836 +++ b/sys/arm/broadcom/bcm2835/std.bcm2836 @@ -1,10 +1,9 @@ -# $FreeBSD$ machine arm armv7 cpu CPU_CORTEXA makeoptions CONF_CFLAGS="-march=armv7a" options SOC_BCM2836 files "../broadcom/bcm2835/files.bcm2836" files "../broadcom/bcm2835/files.bcm283x" diff --git a/sys/arm/broadcom/bcm2835/std.rpi b/sys/arm/broadcom/bcm2835/std.rpi index 48593c117c59..54d5ffb8618b 100644 --- a/sys/arm/broadcom/bcm2835/std.rpi +++ b/sys/arm/broadcom/bcm2835/std.rpi @@ -1,3 +1,2 @@ -# $FreeBSD$ options LINUX_BOOT_ABI diff --git a/sys/arm/conf/ALPINE b/sys/arm/conf/ALPINE index 4abcdc2c79da..6803fd2502d6 100644 --- a/sys/arm/conf/ALPINE +++ b/sys/arm/conf/ALPINE @@ -1,92 +1,91 @@ # Kernel configuration for Alpine Board. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ #NO_UNIVERSE ident ALPINE include "std.armv7" include "../annapurna/alpine/std.alpine" makeoptions MODULES_OVERRIDE="" options SCHED_4BSD # 4BSD scheduler options SMP # Enable multiple cores options PLATFORM # Interrupt controller device gic # Annapurna Alpine drivers device al_ccu # Alpine Cache Coherency Unit device al_nb_service # Alpine North Bridge Service device al_iofic # I/O Fabric Interrupt Controller device al_serdes # Serializer/Deserializer device al_udma # Universal DMA # pseudo devices device clk device phy device hwreset device nvmem device regulator device syscon # Pseudo devices device loop device pty device md device gpio # ATA controllers device ahci # AHCI-compatible SATA controllers device ata # Legacy ATA/SATA controllers # ATA/SCSI peripherals device scbus # SCSI bus (required for ATA/SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct ATA/SCSI access) device ses # Enclosure Services (SES and SAF-TE) #device ctl # CAM Target Layer # Serial ports device uart # PCI/PCIE device pci device pci_host_generic device al_pci # Annapurna Alpine PCI-E # Ethernet device ether device mii device bpf device al_eth # Annapurna Alpine Ethernet NIC options DEVICE_POLLING # USB ethernet support, requires miibus device miibus #FDT options FDT options FDT_DTB_STATIC makeoptions FDT_DTS_FILE=annapurna-alpine.dts diff --git a/sys/arm/conf/ARMADA38X b/sys/arm/conf/ARMADA38X index ec216d67cbb7..d0c7ddcef60b 100644 --- a/sys/arm/conf/ARMADA38X +++ b/sys/arm/conf/ARMADA38X @@ -1,111 +1,110 @@ # # Kernel configuration for Marvell Armada38x # -# $FreeBSD$ # include "../mv/armada38x/std.armada38x" include "std.armv7" ident ARMADA38X options SOC_MV_ARMADA38X makeoptions MODULES_EXTRA="dtb/mv" #options MD_ROOT #makeoptions MFS_IMAGE=/path/to/miniroot #options ROOTDEVNAME=\"ufs:md0\" options ROOTDEVNAME=\"/dev/da0s1a\" options SCHED_ULE # ULE scheduler options SMP options VM_KMEM_SIZE_MAX=0x9CCD000 # pseudo devices device clk device phy device hwreset device nvmem device regulator device syscon # Pseudo devices device pty device loop device md # Serial ports device uart device uart_snps # Network device ether device vlan device mii device bpf device mdio device etherswitch device e6000sw device neta # PCI device pci # Interrupt controllers device gic # Timers device mpcore_timer # USB device usb device ehci device xhci device umass device scbus device pass device da # MMC/SD/SDIO Card slot support device mmc # mmc/sd bus device mmcsd # mmc/sd flash cards device sdhci # mmc/sd host controller # SATA device ahci # I2C device iic device iicbus device twsi # SPI device spibus device spigen device mv_spi # Wireless NIC cards device wlan # 802.11 support device ath # Atheros CardBus/PCI NICs device ath_hal device ath_rate_sample options ATH_ENABLE_11N # CESA device cesa device crypto device cryptodev # L2 Cache device pl310 options PLATFORM # FDT options FDT # GPIO device gpio device gpioled diff --git a/sys/arm/conf/ARMADAXP b/sys/arm/conf/ARMADAXP index 35171b1c9cbe..e198651e69b3 100644 --- a/sys/arm/conf/ARMADAXP +++ b/sys/arm/conf/ARMADAXP @@ -1,99 +1,98 @@ # # Custom kernel for Marvell Armada XP # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ #NO_UNIVERSE ident MV-88F78XX0 include "std.armv7" include "../mv/armadaxp/std.mv78x60" options SOC_MV_ARMADAXP options SCHED_ULE # ULE scheduler options SMP # Enable multiple cores # NFS root from boopt/dhcp options BOOTP options BOOTP_NFSROOT options BOOTP_NFSV3 options BOOTP_WIRED_TO=mge0 options ROOTDEVNAME=\"ufs:/dev/da0p1\" options MUTEX_NOINLINE options RWLOCK_NOINLINE options NO_FFS_SNAPSHOT options NO_SWAPPING # Pseudo devices device pty device loop device md # USB device usb device ehci device umass device scbus device pass device da # SATA device mvs # Serial ports device uart # I2C (TWSI) device iic device iicbus device twsi #Network device ether device mge # Marvell Gigabit Ethernet controller device mii device mdio device e1000phy device bpf options DEVICE_POLLING device vlan # pseudo devices device clk device phy device hwreset device nvmem device regulator device syscon # Minimal GPIO support device gpio #PCI/PCIE device pci # Flattened Device Tree options FDT # Configure using FDT/DTB data options FDT_DTB_STATIC makeoptions FDT_DTS_FILE=db78460.dts options PLATFORM diff --git a/sys/arm/conf/DEFAULTS b/sys/arm/conf/DEFAULTS index 4eeb2b7090d2..d28e7b6302f9 100644 --- a/sys/arm/conf/DEFAULTS +++ b/sys/arm/conf/DEFAULTS @@ -1,10 +1,9 @@ # # DEFAULTS -- Default kernel configuration file for FreeBSD/arm # -# $FreeBSD$ device mem # Default congestion control algorithm options CC_CUBIC # include CUBIC congestion control options INTRNG # All arm systems use INTRNG these days diff --git a/sys/arm/conf/GENERIC b/sys/arm/conf/GENERIC index fc4ce2ef146a..f8a39cb370d5 100644 --- a/sys/arm/conf/GENERIC +++ b/sys/arm/conf/GENERIC @@ -1,281 +1,280 @@ # # GENERIC -- Generic(ish) kernel config. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ ident GENERIC cpu CPU_CORTEXA cpu CPU_MV_PJ4B options SMP_ON_UP machine arm armv7 makeoptions CONF_CFLAGS="-march=armv7a" include "std.armv7" files "../allwinner/files.allwinner" files "../allwinner/files.allwinner_up" files "../allwinner/a10/files.a10" files "../allwinner/a13/files.a13" files "../allwinner/a20/files.a20" files "../allwinner/a31/files.a31" files "../allwinner/a33/files.a33" files "../allwinner/a83t/files.a83t" files "../allwinner/h3/files.h3" files "../broadcom/bcm2835/files.bcm2836" files "../broadcom/bcm2835/files.bcm283x" files "../freescale/imx/files.imx6" files "../mv/files.arm7" files "../nvidia/tegra124/files.tegra124" files "../qemu/files.qemu" files "../rockchip/files.rk32xx" files "../xilinx/files.zynq7" options SOC_ALLWINNER_A10 options SOC_ALLWINNER_A13 options SOC_ALLWINNER_A20 options SOC_ALLWINNER_A31 options SOC_ALLWINNER_A31S options SOC_ALLWINNER_A33 options SOC_ALLWINNER_A83T options SOC_ALLWINNER_H2PLUS options SOC_ALLWINNER_H3 options SOC_BCM2836 options SOC_BRCM_BCM2837 options SOC_MV_ARMADA38X options SOC_MV_ARMADAXP options SOC_TI_AM335X options SOC_OMAP4 options SCHED_ULE # ULE scheduler options SMP # Enable multiple cores options PLATFORM options LINUX_BOOT_ABI # pseudo devices device clk device phy device hwreset device nvmem device regulator device syscon # CPU frequency control device cpufreq # Interrupt controller device gic device aw_r_intc # PMU support (for CCNT). device pmu # ARM Generic Timer device generic_timer device mpcore_timer # MMC/SD/SDIO Card slot support device dwmmc device sdhci # SD controller device mmc # mmc/sd bus device mmcsd # mmc/sd flash cards # ATA controllers device ahci # AHCI-compatible SATA controllers #device ata # Legacy ATA/SATA controllers # PCI options NEW_PCIB device pci device pci_host_generic # PCI NICs device re # RealTek 8139C+/8169/8169S/8110S # VirtIO device virtio device virtio_mmio device virtio_pci device virtio_blk device vtnet # Console and misc device uart device uart_ns8250 device uart_snps device pl011 device pty device snp device md # Memory "disks" device firmware # firmware assist module device pl310 # PL310 L2 cache controller device psci # I2C support device iicbus device iic device twsi device rsb # Allwinner Reduced Serial Bus device p2wi # Allwinner Push-Pull Two Wire device axp209 # AXP209 Power Management Unit device axp81x # AXP813/818 Power Management Unit device bcm2835_bsc device fsliic # Freescale i2c/iic device icee # AT24Cxxx and compatible EEPROMs device sy8106a # SY8106A Buck Regulator # i2c RTCs device ds1307 # Dallas DS1307 RTC and compatible device ds13rtc # All Dallas/Maxim DS13xx RTCs device ds1672 # Dallas DS1672 RTC device ds3231 # Dallas DS3231 RTC + temperature device nxprtc # NXP RTCs: PCA/PFC212x PCA/PCF85xx device s35390a # Seiko s3539x RTCs # GPIO device dwgpio # Synopsys DesignWare APB GPIO Controller device gpio device gpiobacklight device gpioled device gpioregulator # EVDEV support device evdev # input event device support options EVDEV_SUPPORT # evdev support in legacy drivers device uinput # install /dev/uinput cdev device aw_cir # SPI device spibus device spigen device bcm2835_spi device mv_spi device zy7_qspi # Xilinx Zynq QSPI controller # PWM device pwm # Watchdog support # If we don't enable the watchdog driver, the BeagleBone could potentially # reboot automatically because the boot loader might have enabled the # watchdog. device imxwdt # Watchdog. WARNING: can't be disabled!!! device aw_wdog # Allwinner Watchdog device scbus # SCSI bus (required for ATA/SCSI) device da # Direct Access (disks) device cd # CD device pass # Passthrough device (direct ATA/SCSI access) # USB support options USB_HOST_ALIGN=64 # Align usb buffers to cache line size. device usb device uhci device ohci device ehci device xhci device dwcotg # DWC OTG controller device musb device axe # USB-Ethernet device umass # Disks/Mass storage - Requires scbus and da device uhid # "Human Interface Devices" device ukbd # Allow keyboard like HIDs to control console # Device mode support device usb_template # Control of the gadget # Ethernet device loop device ether device vlan # 802.1Q VLAN support device bpf device mii device mdio device etherswitch device e6000sw # Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus device awg # 10/100/1000 integrated EMAC controller device cgem # Cadence GEM Gigabit Ethernet device device dwc # 10/100/1000 integrated GMAC controller device emac # 10/100 integrated EMAC controller device ffec # Freescale Fast Ethernet Controller device neta # Marvell 10/100/1000 Network controller device smsc # SMSC LAN91C111 # Sound support device sound # Framebuffer support device vt device kbdmux device ums device videomode device vchiq # IMX6 HDMI Controller device dwc_hdmi device imx6_hdmi device imx6_ipu # Pinmux device fdt_pinctrl # DMA controller device fslsdma device a10_dmac device a31_dmac # Extensible Firmware Interface options EFI # Marvell Cryptographic Engine and Security Accelerator device cesa device crypto device cryptodev # RTC device imx6_snvs # IMX6 On-chip RTC device aw_rtc # Allwinner On-chip RTC # EFUSE device aw_sid # Allwinner Secure ID EFUSE # Thermal sensors device aw_thermal # Allwinner Thermal Sensor Controller # HID support device hid # Generic HID support # Flattened Device Tree options FDT # Configure using FDT/DTB data makeoptions MODULES_EXTRA+="dtb/allwinner" makeoptions MODULES_EXTRA+="dtb/am335x" makeoptions MODULES_EXTRA+="dtb/imx6" makeoptions MODULES_EXTRA+="dtb/nvidia" makeoptions MODULES_EXTRA+="dtb/omap4" makeoptions MODULES_EXTRA+="dtb/rockchip" makeoptions MODULES_EXTRA+="dtb/rpi" makeoptions MODULES_EXTRA+="dtb/zynq" # SOC-specific modules makeoptions MODULES_EXTRA+="allwinner" makeoptions MODULES_EXTRA+="imx" diff --git a/sys/arm/conf/GENERIC-MMCCAM b/sys/arm/conf/GENERIC-MMCCAM index c5ae6d4560c5..a426727caae3 100644 --- a/sys/arm/conf/GENERIC-MMCCAM +++ b/sys/arm/conf/GENERIC-MMCCAM @@ -1,24 +1,23 @@ # # GEMERIC-MMCCAM # # Custom kernel for GENERIC plus MMCCAM as opposed to the prior MMC stack. # -# $FreeBSD$ #NO_UNIVERSE include GENERIC ident GENERIC-MMCCAM options MMCCAM # Add CAMDEBUG stuff options CAMDEBUG options CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH) # pass(4) device device pass nodevice mmc nodevice mmcsd diff --git a/sys/arm/conf/GENERIC-NODEBUG b/sys/arm/conf/GENERIC-NODEBUG index 517d3310c9d5..58f78036470d 100644 --- a/sys/arm/conf/GENERIC-NODEBUG +++ b/sys/arm/conf/GENERIC-NODEBUG @@ -1,32 +1,31 @@ # # GENERIC-NODEBUG -- WITNESS and INVARIANTS free kernel configuration file # for FreeBSD/arm # # This configuration file removes several debugging options, including # WITNESS and INVARIANTS checking, which are known to have significant # performance impact on running systems. When benchmarking new features # this kernel should be used instead of the standard GENERIC. # This kernel configuration should never appear outside of the HEAD # of the FreeBSD tree. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ include GENERIC include "../../conf/std.nodebug" ident GENERIC-NODEBUG diff --git a/sys/arm/conf/JETSON-TK1 b/sys/arm/conf/JETSON-TK1 index 859d1535842f..bc57d67e59ad 100644 --- a/sys/arm/conf/JETSON-TK1 +++ b/sys/arm/conf/JETSON-TK1 @@ -1,37 +1,36 @@ # Kernel configuration for Jetson TK1 board # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ #NO_UNIVERSE include "TEGRA124" ident JETSON-TK1 # Flattened Device Tree options FDT_DTB_STATIC makeoptions FDT_DTS_FILE=tegra124-jetson-tk1-fbsd.dts makeoptions MODULES_OVERRIDE="" #options BOOTVERBOSE #options BOOTHOWTO=RB_SINGLE #options ROOTDEVNAME=\"ufs:mmcsd0s2a\" options ROOTDEVNAME=\"ufs:ada0s1a\" # CTF doesn't works yet makeoptions WITHOUT_CTF=1 diff --git a/sys/arm/conf/LINT b/sys/arm/conf/LINT index aaba324bf49a..0b2d27ccec8a 100644 --- a/sys/arm/conf/LINT +++ b/sys/arm/conf/LINT @@ -1,4 +1,3 @@ -# $FreeBSD$ include "../../conf/NOTES" include NOTES diff --git a/sys/arm/conf/NOTES b/sys/arm/conf/NOTES index 1cb2df014197..74ee03dd4764 100644 --- a/sys/arm/conf/NOTES +++ b/sys/arm/conf/NOTES @@ -1,94 +1,93 @@ # arm-specific changes for doing a LINT build. -# $FreeBSD$ machine arm armv7 cpu CPU_CORTEXA cpu CPU_MV_PJ4B makeoptions CONF_CFLAGS+="-march=armv7a" # Add options for armv7 that are not in sys/conf/NOTES... options FDT # Flattened device tree support options FREEBSD_BOOT_LOADER # Process metadata passed from loader(8) options LINUX_BOOT_ABI # Process metadata passed from U-Boot options PLATFORM # Include platform_if support options SMP # Nearly all v7 SoCs are multicore options VFP # Enable floating point hardware support # NOTE: dtrace introduces CDDL-licensed components into the kernel device dtrace # dtrace core device dtraceall # include all dtrace modules options KDTRACE_HOOKS # Add misc devices which are specific to various arm platforms... device generic_timer # ARM Generic Timer device gic # Interrupt controller device gpio # gpio interface and bus device mpcore_timer # ARM MPCore Timer device pl310 # PL310 L2 cache controller device pl330 # ARM PL330 dma controller device pmu # PMU support (for CCNT). device twsi # i2c controller on Marvel and Allwinner device xdma # xDMA framework for SoC on-chip dma controllers # PCI/PCIE device pci device pci_host_generic # Annapurna Alpine drivers device al_ccu # Alpine Cache Coherency Unit device al_nb_service # Alpine North Bridge Service device al_iofic # I/O Fabric Interrupt Controller device al_serdes # Serializer/Deserializer device al_udma # Universal DMA device al_pci # Annapurna Alpine PCI-E # Add pseudo devices... device clk device phy device hwreset device nvmem device regulator device syscon # Backlight subsystem device backlight # Undo options from sys/conf/NOTES that we do not want... nooptions COMPAT_FREEBSD4 nooptions COMPAT_FREEBSD5 nooptions COMPAT_FREEBSD6 nooptions COMPAT_FREEBSD7 nooptions COMPAT_FREEBSD9 nooptions PPC_PROBE_CHIPSET nooptions MAXCPU # value is set in machine/param.h nodevice sym nodevice ccr nodevice cxgbe nodevice cxgbev nodevice snd_cmi nodevice mpr nodevice mps # Build SOC-specific modules... makeoptions MODULES_EXTRA+="allwinner" makeoptions MODULES_EXTRA+="arm_ti" makeoptions MODULES_EXTRA+="imx" # Build dtb files... makeoptions MODULES_EXTRA+="dtb/allwinner" makeoptions MODULES_EXTRA+="dtb/am335x" makeoptions MODULES_EXTRA+="dtb/imx6" makeoptions MODULES_EXTRA+="dtb/nvidia" makeoptions MODULES_EXTRA+="dtb/omap4" makeoptions MODULES_EXTRA+="dtb/rpi" makeoptions MODULES_EXTRA+="dtb/zynq" diff --git a/sys/arm/conf/RPI-B b/sys/arm/conf/RPI-B index a50aa5af2d75..844b31686d5a 100644 --- a/sys/arm/conf/RPI-B +++ b/sys/arm/conf/RPI-B @@ -1,109 +1,108 @@ # # RPI-B -- Custom configuration for the Raspberry Pi # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ ident RPI-B include "std.armv6" include "../broadcom/bcm2835/std.rpi" include "../broadcom/bcm2835/std.bcm2835" options SCHED_4BSD # 4BSD scheduler options PLATFORM # NFS root from boopt/dhcp #options BOOTP #options BOOTP_NFSROOT #options BOOTP_COMPAT #options BOOTP_NFSV3 #options BOOTP_WIRED_TO=ue0 #options ROOTDEVNAME=\"ufs:mmcsd0s2\" # pseudo devices device clk device phy device hwreset device nvmem device regulator device syscon device bpf device loop device ether device uart device pty device snp device pl011 # Device mode support device usb_template # Control of the gadget # Comment following lines for boot console on serial port device vt device kbdmux device ukbd device sdhci device mmc device mmcsd device gpio device gpioled # I2C device iic device iicbus device bcm2835_bsc device md # USB support device usb device dwcotg # DWC OTG controller # USB storage support device scbus device da device umass # USB ethernet support device smscphy device mii device smsc # SPI device spibus device bcm2835_spi device vchiq device sound device fdt_pinctrl # HID support device hid # Generic HID support # Flattened Device Tree options FDT # Configure using FDT/DTB data # Note: DTB is normally loaded and modified by RPi boot loader, then # handed to kernel via U-Boot and ubldr. #options FDT_DTB_STATIC #makeoptions FDT_DTS_FILE=rpi.dts makeoptions MODULES_EXTRA="dtb/rpi rpi_ft5406" diff --git a/sys/arm/conf/TEGRA124 b/sys/arm/conf/TEGRA124 index d02d7976118f..9b75bf2e94f8 100644 --- a/sys/arm/conf/TEGRA124 +++ b/sys/arm/conf/TEGRA124 @@ -1,141 +1,140 @@ # # Kernel configuration for NVIDIA Tegra124 based boards. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ include "std.armv7" include "../nvidia/tegra124/std.tegra124" ident TEGRA124 options SCHED_ULE # ULE scheduler options PLATFORM # Platform based SoC options SMP # Enable multiple cores options LINUX_BOOT_ABI # Interrupt controller device gic # ARM Generic Timer device generic_timer # pseudo devices device clk device phy device hwreset device regulator device syscon # Pseudo devices. device loop # Network loopback device vlan # 802.1Q VLAN support #device tuntap # Packet tunnel. device md # Memory "disks" #device gif # IPv6 and IPv4 tunneling device firmware # firmware assist module device ether # Ethernet support device miibus # Required for ethernet device bpf # Berkeley packet filter (required for DHCP) # General-purpose input/output device gpio #device gpioled # I2C support device iic device iicbus device icee # Serial (COM) ports device uart # Multi-uart driver device uart_ns8250 # MMC/SD/SDIO Card slot support device sdhci # SD controller device mmc # SD/MMC protocol device mmcsd # SDCard disk device # ATA controllers device ahci # AHCI-compatible SATA controllers # SCSI peripherals device scbus # SCSI bus (required for ATA/SCSI) device da # Direct Access (disks) device cd # CD device pass # Passthrough device (direct ATA/SCSI access) # USB support options USB_HOST_ALIGN=64 # Align usb buffers to cache line size. device ehci # EHCI USB interface device xhci # XHCI USB interface device tegra124_xusb_fw # Tegra XUSB firmware device usb # USB Bus (required) device umass # Disks/Mass storage - Requires scbus and da device uhid # "Human Interface Devices" #device u3g # USB modems device ukbd # Allow keyboard like HIDs to control console device ums # USB mouse # USB Ethernet, requires miibus #device aue # ADMtek USB Ethernet #device axe # ASIX Electronics USB Ethernet #device cdce # Generic USB over Ethernet #device cue # CATC USB Ethernet #device kue # Kawasaki LSI USB Ethernet #device rue # RealTek RTL8150 USB Ethernet #device udav # Davicom DM9601E USB # USB Wireless #device rum # Ralink Technology RT2501USB wireless NICs # Wireless NIC cards #device wlan # 802.11 support #device wlan_wep # 802.11 WEP support #device wlan_ccmp # 802.11 CCMP support #device wlan_tkip # 802.11 TKIP support #device wlan_amrr # AMRR transmit rate control algorithm # PCI options NEW_PCIB device pci # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device re # RealTek 8139C+/8169/8169S/8110S # DRM2 device fbd device vt device kbdmux device drm2 # Sound #device sound #device snd_hda # HID support device hid # Generic HID support # Flattened Device Tree options FDT # Configure using FDT/DTB data device fdt_pinctrl # SoC-specific devices #device hwpmc diff --git a/sys/arm/conf/ZEDBOARD b/sys/arm/conf/ZEDBOARD index 482d502748c5..29f28a0cbf35 100644 --- a/sys/arm/conf/ZEDBOARD +++ b/sys/arm/conf/ZEDBOARD @@ -1,93 +1,92 @@ # # ZEDBOARD -- Custom configuration for the Xilinx Zynq-7000 based # ZedBoard (www.zedboard.org) and similar Zynq boards. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ ident ZEDBOARD include "std.armv7" include "../xilinx/std.zynq7" makeoptions MODULES_EXTRA="dtb/zynq" options SCHED_ULE # ULE scheduler options PLATFORM # Platform based SoC #options NFSSD # Network Filesystem Server options SMP # Enable multiple cores # NFS root from boopt/dhcp #options BOOTP #options BOOTP_NFSROOT #options BOOTP_COMPAT #options BOOTP_NFSV3 options ROOTDEVNAME=\"ufs:mmcsd0s2a\" # Interrupt controller device gic # pseudo devices device clk device phy device hwreset device nvmem device regulator device syscon # Cache controller device pl310 # PL310 L2 cache controller # ARM MPCore timer device mpcore_timer device loop device ether device cgem # Cadence GEM Gigabit Ethernet device device mii device e1000phy device rgephy # Zybo uses Realtek RTL8211E device pty device uart device gpio device spibus device spigen device mx25l device zy7_qspi # Xilinx Zynq QSPI controller device zy7_spi # Xilinx Zynq SPI controller device md device mmc # mmc/sd bus device mmcsd # mmc/sd flash cards device sdhci # generic sdhci device bpf # Berkeley packet filter # USB support device usb device ehci device umass device scbus # SCSI bus (required for ATA/SCSI) device da # Direct Access (disks) device axe # USB-Ethernet # Flattened Device Tree options FDT # Configure using FDT/DTB data #options FDT_DTB_STATIC #makeoptions FDT_DTS_FILE=zedboard.dts diff --git a/sys/arm/conf/std.armv6 b/sys/arm/conf/std.armv6 index eb61ca42bf9d..f60520d7dd2a 100644 --- a/sys/arm/conf/std.armv6 +++ b/sys/arm/conf/std.armv6 @@ -1,89 +1,88 @@ # Standard kernel config items for all ARMv6 systems. # -# $FreeBSD$ options HZ=1000 options PREEMPTION # Enable kernel thread preemption options VIMAGE # Subsystem virtualization, e.g. VNET options INET # InterNETworking options INET6 # IPv6 communications protocols options CC_CUBIC # include CUBIC congestion control options TCP_HHOOK # hhook(9) framework for TCP device crypto # core crypto support options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 options NETLINK # netlink(4) support options SCTP_SUPPORT # Allow kldload of SCTP options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options QUOTA # Enable disk quotas for UFS options NFSCL # Network Filesystem Client options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as /, requires NFSCL options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options TMPFS # Efficient memory filesystem options GEOM_PART_GPT # GUID Partition Tables options GEOM_PART_BSD # BSD partition scheme options GEOM_PART_MBR # MBR partition scheme options GEOM_LABEL # Provides labelization options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KBD_INSTALL_CDEV # install a CDEV entry in /dev options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options CAPABILITY_MODE # Capsicum capability mode options CAPABILITIES # Capsicum capabilites options FREEBSD_BOOT_LOADER # Process metadata passed from loader(8) options VFP # Enable floating point hardware support options MAC # Support for Mandatory Access Control (MAC) options COMPAT_FREEBSD10 # Compatible with FreeBSD10 options COMPAT_FREEBSD11 # Compatible with FreeBSD11 options COMPAT_FREEBSD12 # Compatible with FreeBSD12 options COMPAT_FREEBSD13 # Compatible with FreeBSD13 # DTrace support options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # all architectures - kernel ELF linker loads CTF data makeoptions WITH_CTF=1 # Debugging support. Always need this: makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols options KDB # Enable kernel debugger support. options KDB_TRACE # Print a stack trace for a panic. # For full debugger support use (turn off in stable branch): options DDB # Support DDB options GDB # Support remote GDB #options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones options ALT_BREAK_TO_DEBUGGER # Enter debugger on keyboard escape sequence options USB_DEBUG # Enable usb debug support code options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default # Optional extras, never enabled by default: #options BOOTVERBOSE #options DEBUG # May result in extreme spewage #options KTR #options KTR_COMPILE=KTR_ALL #options KTR_ENTRIES=16384 #options KTR_MASK=(KTR_SPARE2) #options KTR_VERBOSE=0 #options USB_REQ_DEBUG #options USB_VERBOSE diff --git a/sys/arm/conf/std.armv7 b/sys/arm/conf/std.armv7 index 8db32751732b..5c1e63af1bad 100644 --- a/sys/arm/conf/std.armv7 +++ b/sys/arm/conf/std.armv7 @@ -1,94 +1,93 @@ # Standard kernel config items for all ARMv7 systems. # -# $FreeBSD$ options HZ=1000 options PREEMPTION # Enable kernel thread preemption options VIMAGE # Subsystem virtualization, e.g. VNET options INET # InterNETworking options INET6 # IPv6 communications protocols options CC_CUBIC # include CUBIC congestion control options TCP_HHOOK # hhook(9) framework for TCP device crypto # core crypto support options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 options NETLINK # netlink(4) support options SCTP_SUPPORT # Allow kldload of SCTP options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options QUOTA # Enable disk quotas for UFS options NFSCL # Network Filesystem Client options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as /, requires NFSCL options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options TMPFS # Efficient memory filesystem options GEOM_PART_GPT # GUID Partition Tables options GEOM_PART_BSD # BSD partition scheme options GEOM_PART_MBR # MBR partition scheme options GEOM_LABEL # Provides labelization options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KBD_INSTALL_CDEV # install a CDEV entry in /dev options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options CAPABILITY_MODE # Capsicum capability mode options CAPABILITIES # Capsicum capabilites options FREEBSD_BOOT_LOADER # Process metadata passed from loader(8) options VFP # Enable floating point hardware support options MAC # Support for Mandatory Access Control (MAC) options COMPAT_FREEBSD10 # Compatible with FreeBSD10 options COMPAT_FREEBSD11 # Compatible with FreeBSD11 options COMPAT_FREEBSD12 # Compatible with FreeBSD12 options COMPAT_FREEBSD13 # Compatible with FreeBSD13 # DTrace support options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # all architectures - kernel ELF linker loads CTF data makeoptions WITH_CTF=1 # Debugging support. Always need this: makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols options KDB # Enable kernel debugger support. options KDB_TRACE # Print a stack trace for a panic. # For full debugger support use (turn off in stable branch): options DDB # Support DDB options GDB # Support remote GDB #options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones options ALT_BREAK_TO_DEBUGGER # Enter debugger on keyboard escape sequence options USB_DEBUG # Enable usb debug support code options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default # Optional extras, never enabled by default: #options BOOTVERBOSE #options DEBUG # May result in extreme spewage #options KTR #options KTR_COMPILE=KTR_ALL #options KTR_ENTRIES=16384 #options KTR_MASK=(KTR_SPARE2) #options KTR_VERBOSE=0 #options USB_REQ_DEBUG #options USB_VERBOSE # Enable support for the kernel PLL to use an external PPS signal, # under supervision of [x]ntpd(8) # More info in ntpd documentation: http://www.eecis.udel.edu/~ntp options PPS_SYNC diff --git a/sys/arm/freescale/imx/files.imx5 b/sys/arm/freescale/imx/files.imx5 index 4ede403b5ae2..4522bf5021bd 100644 --- a/sys/arm/freescale/imx/files.imx5 +++ b/sys/arm/freescale/imx/files.imx5 @@ -1,55 +1,54 @@ -# $FreeBSD$ # Init arm/freescale/imx/imx_machdep.c standard arm/freescale/imx/imx51_machdep.c optional soc_imx51 arm/freescale/imx/imx53_machdep.c optional soc_imx53 # Special serial console for debuging early boot code #arm/freescale/imx/imx_console.c standard # UART driver (includes serial console support) dev/uart/uart_dev_imx.c optional uart # TrustZone Interrupt Controller arm/freescale/imx/tzic.c standard # IOMUX - external pins multiplexor arm/freescale/imx/imx_iomux.c standard # GPIO arm/freescale/imx/imx_gpio.c optional gpio # Generic Periodic Timer arm/freescale/imx/imx_gpt.c standard # Clock Configuration Manager arm/freescale/imx/imx51_ccm.c standard # i.MX5xx PATA controller dev/ata/chipsets/ata-fsl.c optional imxata # SDHCI/MMC dev/sdhci/fsl_sdhci.c optional sdhci # USB OH3 controller (1 OTG, 3 EHCI) arm/freescale/imx/imx_nop_usbphy.c optional ehci dev/usb/controller/ehci_imx.c optional ehci # Watchdog arm/freescale/imx/imx_wdog.c optional imxwdt # i2c arm/freescale/imx/imx_i2c.c optional fsliic # IPU - Image Processing Unit (frame buffer also) arm/freescale/imx/imx51_ipuv3.c optional sc arm/freescale/imx/imx51_ipuv3_fbd.c optional vt dev/vt/hw/fb/vt_early_fb.c optional vt # Fast Ethernet Controller dev/ffec/if_ffec.c optional ffec # SPI arm/freescale/imx/imx_spi.c optional imx_spi diff --git a/sys/arm/freescale/imx/files.imx6 b/sys/arm/freescale/imx/files.imx6 index 2cf2524d2ae5..0c6a2eb691db 100644 --- a/sys/arm/freescale/imx/files.imx6 +++ b/sys/arm/freescale/imx/files.imx6 @@ -1,64 +1,63 @@ -# $FreeBSD$ # # Standard imx6 devices and support. # arm/freescale/fsl_ocotp.c standard arm/freescale/imx/imx6_anatop.c standard arm/freescale/imx/imx6_ccm.c standard arm/freescale/imx/imx6_machdep.c standard arm/freescale/imx/imx6_mp.c optional smp arm/freescale/imx/imx6_pl310.c standard arm/freescale/imx/imx6_snvs.c optional imx6_snvs arm/freescale/imx/imx6_src.c standard arm/freescale/imx/imx_epit.c standard arm/freescale/imx/imx_iomux.c standard arm/freescale/imx/imx_machdep.c standard arm/freescale/imx/imx_gpt.c optional imx_gpt arm/freescale/imx/imx_gpio.c optional gpio arm/freescale/imx/imx_i2c.c optional fsliic arm/freescale/imx/imx_spi.c optional imx_spi arm/freescale/imx/imx6_sdma.c optional fslsdma arm/freescale/imx/imx6_audmux.c optional sound arm/freescale/imx/imx6_ssi.c optional sound fslsdma arm/freescale/imx/imx6_ahci.c optional ahci dev/hdmi/dwc_hdmi.c optional vt dwc_hdmi arm/freescale/imx/imx6_hdmi.c optional vt imx6_hdmi arm/freescale/imx/imx6_ipu.c optional vt imx6_ipu # # Optional devices. # dev/sdhci/fsl_sdhci.c optional sdhci arm/freescale/imx/imx_wdog.c optional imxwdt dev/ffec/if_ffec.c optional ffec dev/uart/uart_dev_imx.c optional uart dev/usb/controller/ehci_imx.c optional ehci arm/freescale/imx/imx6_usbphy.c optional ehci # # Low-level serial console for debugging early kernel startup. # #arm/freescale/imx/imx_console.c standard # SDMA firmware. sdma-imx6q.c optional fslsdma \ compile-with "${AWK} -f $S/tools/fw_stub.awk sdma-imx6q.bin:sdma-imx6q -msdma -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "sdma-imx6q.c" sdma-imx6q.fwo optional fslsdma \ dependency "sdma-imx6q.bin" \ compile-with "${LD} -m ${LD_EMULATION} -b binary -d -warn-common -r -d -o ${.TARGET} sdma-imx6q.bin" \ no-ctfconvert no-implicit-rule \ clean "sdma-imx6q.fwo" sdma-imx6q.bin optional fslsdma \ dependency "$S/contrib/dev/imx/sdma-imx6q.bin.uu" \ compile-with "uudecode < $S/contrib/dev/imx/sdma-imx6q.bin.uu" \ no-obj no-implicit-rule \ clean "sdma-imx6q.bin" diff --git a/sys/arm/freescale/imx/std.imx51 b/sys/arm/freescale/imx/std.imx51 index 092ec7e47384..2ade58f9a46f 100644 --- a/sys/arm/freescale/imx/std.imx51 +++ b/sys/arm/freescale/imx/std.imx51 @@ -1,6 +1,5 @@ -# $FreeBSD$ machine arm armv7 cpu CPU_CORTEXA makeoptions CONF_CFLAGS="-march=armv7a" files "../freescale/imx/files.imx5" diff --git a/sys/arm/freescale/imx/std.imx53 b/sys/arm/freescale/imx/std.imx53 index 092ec7e47384..2ade58f9a46f 100644 --- a/sys/arm/freescale/imx/std.imx53 +++ b/sys/arm/freescale/imx/std.imx53 @@ -1,6 +1,5 @@ -# $FreeBSD$ machine arm armv7 cpu CPU_CORTEXA makeoptions CONF_CFLAGS="-march=armv7a" files "../freescale/imx/files.imx5" diff --git a/sys/arm/freescale/imx/std.imx6 b/sys/arm/freescale/imx/std.imx6 index 99b6528a8922..a1c0dc1f1a90 100644 --- a/sys/arm/freescale/imx/std.imx6 +++ b/sys/arm/freescale/imx/std.imx6 @@ -1,7 +1,6 @@ -# $FreeBSD$ machine arm armv7 cpu CPU_CORTEXA makeoptions CONF_CFLAGS="-march=armv7a" files "../freescale/imx/files.imx6" diff --git a/sys/arm/freescale/vybrid/files.vybrid b/sys/arm/freescale/vybrid/files.vybrid index 9922481a239a..b39cbbfd83cf 100644 --- a/sys/arm/freescale/vybrid/files.vybrid +++ b/sys/arm/freescale/vybrid/files.vybrid @@ -1,22 +1,21 @@ -# $FreeBSD$ arm/freescale/vybrid/vf_machdep.c standard arm/freescale/vybrid/vf_ccm.c standard arm/freescale/vybrid/vf_anadig.c standard arm/freescale/vybrid/vf_iomuxc.c standard arm/freescale/vybrid/vf_mscm.c standard arm/freescale/vybrid/vf_src.c standard arm/freescale/vybrid/vf_edma.c standard arm/freescale/vybrid/vf_dmamux.c standard arm/freescale/vybrid/vf_port.c standard arm/freescale/vybrid/vf_adc.c standard arm/freescale/vybrid/vf_i2c.c optional iicbus arm/freescale/vybrid/vf_tcon.c optional vt arm/freescale/vybrid/vf_dcu4.c optional vt arm/freescale/vybrid/vf_nfc.c optional nand arm/freescale/vybrid/vf_ehci.c optional ehci arm/freescale/vybrid/vf_gpio.c optional gpio arm/freescale/vybrid/vf_uart.c optional uart arm/freescale/vybrid/vf_sai.c optional sound arm/freescale/vybrid/vf_spi.c optional vf_spi dev/ffec/if_ffec.c optional ffec diff --git a/sys/arm/freescale/vybrid/std.vybrid b/sys/arm/freescale/vybrid/std.vybrid index d92a520898b7..20b63b3ed26e 100644 --- a/sys/arm/freescale/vybrid/std.vybrid +++ b/sys/arm/freescale/vybrid/std.vybrid @@ -1,7 +1,6 @@ -# $FreeBSD$ cpu CPU_CORTEXA machine arm armv7 makeoptions CONF_CFLAGS="-march=armv7a" files "../freescale/vybrid/files.vybrid" diff --git a/sys/arm/mv/armada38x/files.armada38x b/sys/arm/mv/armada38x/files.armada38x index 35b64b86d82f..276dde0c1a1b 100644 --- a/sys/arm/mv/armada38x/files.armada38x +++ b/sys/arm/mv/armada38x/files.armada38x @@ -1,11 +1,10 @@ -# $FreeBSD$ arm/mv/mpic.c standard arm/mv/armada/thermal.c optional fdt arm/mv/armada/wdt.c optional fdt arm/mv/armada38x/armada38x.c standard arm/mv/armada38x/armada38x_mp.c optional smp arm/mv/armada38x/pmsu.c standard arm/mv/armada38x/armada38x_rtc.c optional mv_rtc fdt arm/mv/armada38x/armada38x_pl310.c optional pl310 diff --git a/sys/arm/mv/armada38x/std.armada38x b/sys/arm/mv/armada38x/std.armada38x index 66c8add0393f..a2b8353b39c7 100644 --- a/sys/arm/mv/armada38x/std.armada38x +++ b/sys/arm/mv/armada38x/std.armada38x @@ -1,6 +1,5 @@ -# $FreeBSD$ files "../mv/files.arm7" cpu CPU_CORTEXA machine arm armv7 makeoptions CONF_CFLAGS="-march=armv7a" diff --git a/sys/arm/mv/armadaxp/files.armadaxp b/sys/arm/mv/armadaxp/files.armadaxp index 2ca0836e3a15..2178deef3bdd 100644 --- a/sys/arm/mv/armadaxp/files.armadaxp +++ b/sys/arm/mv/armadaxp/files.armadaxp @@ -1,8 +1,7 @@ -# $FreeBSD$ arm/mv/armadaxp/armadaxp.c standard arm/mv/mpic.c standard arm/mv/rtc.c standard arm/mv/armadaxp/armadaxp_mp.c optional smp arm/mv/armadaxp/mptramp.S optional smp diff --git a/sys/arm/mv/armadaxp/std.armadaxp b/sys/arm/mv/armadaxp/std.armadaxp index b720e3de68bf..8b137891791f 100644 --- a/sys/arm/mv/armadaxp/std.armadaxp +++ b/sys/arm/mv/armadaxp/std.armadaxp @@ -1,2 +1 @@ -# $FreeBSD$ diff --git a/sys/arm/mv/armadaxp/std.mv78x60 b/sys/arm/mv/armadaxp/std.mv78x60 index a46ab8cc1c88..20eeb4ef56e8 100644 --- a/sys/arm/mv/armadaxp/std.mv78x60 +++ b/sys/arm/mv/armadaxp/std.mv78x60 @@ -1,4 +1,3 @@ -# $FreeBSD$ include "../mv/std-pj4b.mv" include "../mv/armadaxp/std.armadaxp" diff --git a/sys/arm/mv/files.arm7 b/sys/arm/mv/files.arm7 index 4595c6ba8f2b..3eb18739532a 100644 --- a/sys/arm/mv/files.arm7 +++ b/sys/arm/mv/files.arm7 @@ -1,40 +1,39 @@ -# $FreeBSD$ arm/mv/armada38x/armada38x.c standard arm/mv/armadaxp/armadaxp.c standard arm/mv/gpio.c optional gpio arm/mv/mv_common.c standard arm/mv/mv_armv7_machdep.c standard arm/mv/mv_pci_ctrl.c optional pci | fdt arm/mv/mv_pci.c optional pci arm/mv/timer.c standard arm/mv/mpic.c standard arm/mv/armada/thermal.c optional fdt arm/mv/armada/wdt.c optional fdt arm/mv/armada38x/armada38x_mp.c optional smp arm/mv/armada38x/pmsu.c standard arm/mv/armada38x/armada38x_rtc.c standard arm/mv/armada38x/armada38x_pl310.c optional pl310 arm/mv/mv_spi.c optional mv_spi spibus dev/sdhci/sdhci_fdt.c optional sdhci arm/mv/rtc.c standard arm/mv/armadaxp/armadaxp_mp.c optional smp arm/mv/armadaxp/mptramp.S optional smp dev/cesa/cesa.c optional cesa dev/iicbus/twsi/mv_twsi.c optional twsi dev/mge/if_mge.c optional mge dev/neta/if_mvneta_fdt.c optional neta fdt dev/neta/if_mvneta.c optional neta mdio mii dev/mvs/mvs_soc.c optional mvs dev/uart/uart_dev_ns8250.c optional uart dev/uart/uart_dev_snps.c optional uart dev/usb/controller/ehci_mv.c optional ehci dev/usb/controller/generic_xhci.c optional xhci dev/usb/controller/generic_xhci_fdt.c optional xhci dev/ahci/ahci_mv_fdt.c optional ahci arm/mv/clk/armada38x_coreclk.c standard arm/mv/clk/armada38x_gen.c standard arm/mv/clk/armada38x_gateclk.c standard diff --git a/sys/arm/mv/std-pj4b.mv b/sys/arm/mv/std-pj4b.mv index a142ef75204e..86e31a4741d4 100644 --- a/sys/arm/mv/std-pj4b.mv +++ b/sys/arm/mv/std-pj4b.mv @@ -1,12 +1,11 @@ -# $FreeBSD$ files "../mv/files.arm7" cpu CPU_MV_PJ4B machine arm armv7 makeoptions CONF_CFLAGS="-march=armv7a" # This was originally defined as "(KERNBASE-(1024*1024*1024))" but that # (in opt_global.h) clashed with the value emitted by genassym which # reduces the original macro text to its numeric value. The only way # to avoid that is to define it here as the numeric value genassym emits. options VM_MAXUSER_ADDRESS="0x80000000" diff --git a/sys/arm/nvidia/drm2/tegra_dc_if.m b/sys/arm/nvidia/drm2/tegra_dc_if.m index 5b3bd1437767..3b770c902072 100644 --- a/sys/arm/nvidia/drm2/tegra_dc_if.m +++ b/sys/arm/nvidia/drm2/tegra_dc_if.m @@ -1,57 +1,56 @@ #- # Copyright (c) 2015 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE tegra_dc; METHOD void write_4{ device_t dev; bus_size_t offset; uint32_t val; }; METHOD uint32_t read_4{ device_t dev; bus_size_t offset; }; METHOD void display_enable{ device_t dev; bool enable; }; METHOD void hdmi_enable{ device_t dev; bool enable; }; METHOD void setup_timing{ device_t dev; int h_pulse_start; }; diff --git a/sys/arm/nvidia/drm2/tegra_drm_if.m b/sys/arm/nvidia/drm2/tegra_drm_if.m index 822db79ce9fa..f7daf34c4ac9 100644 --- a/sys/arm/nvidia/drm2/tegra_drm_if.m +++ b/sys/arm/nvidia/drm2/tegra_drm_if.m @@ -1,68 +1,67 @@ #- # Copyright (c) 2015 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # INTERFACE tegra_drm; HEADER { struct tegra_drm; }; /** * Register client to host1x */ METHOD int register_client{ device_t host1x; device_t client; }; /** * Deregister client to host1x */ METHOD int deregister_client{ device_t host1x; device_t client; }; /** * Call client init method */ METHOD int init_client{ device_t client; device_t host1x; struct tegra_drm *drm; }; /** * Call client exit method */ METHOD int exit_client{ device_t client; device_t host1x; struct tegra_drm *drm; }; diff --git a/sys/arm/nvidia/tegra124/files.tegra124 b/sys/arm/nvidia/tegra124/files.tegra124 index 10f4a8899d32..7ec57879b9c3 100644 --- a/sys/arm/nvidia/tegra124/files.tegra124 +++ b/sys/arm/nvidia/tegra124/files.tegra124 @@ -1,67 +1,66 @@ -# $FreeBSD$ # # Standard tegra124 devices and support. # arm/nvidia/tegra124/tegra124_machdep.c standard arm/nvidia/tegra124/tegra124_mp.c optional smp arm/nvidia/tegra124/tegra124_car.c standard arm/nvidia/tegra124/tegra124_clk_pll.c standard arm/nvidia/tegra124/tegra124_clk_per.c standard arm/nvidia/tegra124/tegra124_clk_super.c standard arm/nvidia/tegra124/tegra124_xusbpadctl.c standard arm/nvidia/tegra124/tegra124_pmc.c standard arm/nvidia/tegra124/tegra124_cpufreq.c standard arm/nvidia/tegra124/tegra124_coretemp.c standard arm/nvidia/tegra_usbphy.c standard arm/nvidia/tegra_pinmux.c standard arm/nvidia/tegra_uart.c optional uart arm/nvidia/tegra_sdhci.c optional sdhci arm/nvidia/tegra_gpio.c optional gpio arm/nvidia/tegra_ehci.c optional ehci arm/nvidia/tegra_xhci.c optional xhci arm/nvidia/tegra_ahci.c optional ahci arm/nvidia/tegra_pcie.c optional pci arm/nvidia/tegra_i2c.c optional iic arm/nvidia/tegra_rtc.c standard arm/nvidia/tegra_abpmisc.c standard arm/nvidia/tegra_efuse.c standard arm/nvidia/tegra_soctherm_if.m standard arm/nvidia/tegra_soctherm.c standard arm/nvidia/tegra_lic.c standard arm/nvidia/tegra_mc.c standard #arm/nvidia/tegra_hda.c optional snd_hda arm/nvidia/drm2/hdmi.c optional drm2 arm/nvidia/drm2/tegra_drm_if.m optional drm2 arm/nvidia/drm2/tegra_drm_subr.c optional drm2 arm/nvidia/drm2/tegra_host1x.c optional drm2 arm/nvidia/drm2/tegra_hdmi.c optional drm2 arm/nvidia/drm2/tegra_dc_if.m optional drm2 arm/nvidia/drm2/tegra_dc.c optional drm2 arm/nvidia/drm2/tegra_fb.c optional drm2 arm/nvidia/drm2/tegra_bo.c optional drm2 # # Firmware # tegra124_xusb_fw.c optional tegra124_xusb_fw \ dependency "$S/arm/nvidia/tegra124/files.tegra124" \ compile-with "${AWK} -f $S/tools/fw_stub.awk tegra124_xusb.fw:tegra124_xusb_fw -mtegra124_xusb_fw -c${.TARGET}" \ no-implicit-rule before-depend local \ clean "tegra124_xusb_fw.c" tegra124_xusb.fwo optional tegra124_xusb_fw \ dependency "tegra124_xusb.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "tegra124_xusb.fwo" tegra124_xusb.fw optional tegra124_xusb_fw \ dependency "$S/contrib/dev/nvidia/tegra124_xusb.bin.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "tegra124_xusb.fw" # # Temporary/to be moved stuff # arm/nvidia/as3722.c optional iic arm/nvidia/as3722_regulators.c optional iic arm/nvidia/as3722_rtc.c optional iic arm/nvidia/as3722_gpio.c optional iic diff --git a/sys/arm/nvidia/tegra124/std.tegra124 b/sys/arm/nvidia/tegra124/std.tegra124 index 48192c33961a..9aa82fb094c5 100644 --- a/sys/arm/nvidia/tegra124/std.tegra124 +++ b/sys/arm/nvidia/tegra124/std.tegra124 @@ -1,6 +1,5 @@ -# $FreeBSD$ cpu CPU_CORTEXA machine arm armv7 makeoptions CONF_CFLAGS="-march=armv7a" files "../nvidia/tegra124/files.tegra124" diff --git a/sys/arm/nvidia/tegra_soctherm_if.m b/sys/arm/nvidia/tegra_soctherm_if.m index 55ae04437e72..64067a945b1c 100644 --- a/sys/arm/nvidia/tegra_soctherm_if.m +++ b/sys/arm/nvidia/tegra_soctherm_if.m @@ -1,42 +1,41 @@ #- # Copyright (c) 2016 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE tegra_soctherm; /** * Read temperature */ METHOD int get_temperature{ device_t dev; device_t consumer; uintptr_t id; int *val; }; diff --git a/sys/arm/qemu/files.qemu b/sys/arm/qemu/files.qemu index 91992f1b5104..8db5abb8568f 100644 --- a/sys/arm/qemu/files.qemu +++ b/sys/arm/qemu/files.qemu @@ -1,7 +1,6 @@ -# $FreeBSD$ # # Standard qemu virt devices and support. # arm/qemu/virt_machdep.c standard arm/qemu/virt_mp.c optional smp diff --git a/sys/arm/qemu/std.virt b/sys/arm/qemu/std.virt index ac00fc9bc613..9f0ae0f8e3a5 100644 --- a/sys/arm/qemu/std.virt +++ b/sys/arm/qemu/std.virt @@ -1,10 +1,9 @@ -# $FreeBSD$ machine arm armv7 cpu CPU_CORTEXA makeoptions CONF_CFLAGS="-march=armv7a" options KERNVIRTADDR = 0xc1000000 makeoptions KERNVIRTADDR = 0xc1000000 files "../qemu/files.qemu" diff --git a/sys/arm/rockchip/files.rk32xx b/sys/arm/rockchip/files.rk32xx index b4f5d5ce9d3a..4dc9a4df908c 100644 --- a/sys/arm/rockchip/files.rk32xx +++ b/sys/arm/rockchip/files.rk32xx @@ -1,31 +1,30 @@ -# $FreeBSD$ kern/kern_clocksource.c standard arm/rockchip/rk32xx_machdep.c standard arm/rockchip/rk32xx_mp.c optional smp arm64/rockchip/if_dwc_rk.c standard arm64/rockchip/rk_i2c.c standard arm64/rockchip/rk_iodomain.c standard arm64/rockchip/rk_gpio.c standard arm64/rockchip/rk_grf.c standard arm64/rockchip/rk_pinctrl.c standard arm64/rockchip/rk_pmu.c standard arm64/rockchip/rk_pwm.c standard arm64/rockchip/rk_tsadc.c standard arm64/rockchip/rk_tsadc_if.m standard arm64/rockchip/rk_usbphy.c standard arm64/rockchip/clk/rk_clk_armclk.c standard arm64/rockchip/clk/rk_clk_composite.c standard arm64/rockchip/clk/rk_clk_fract.c standard arm64/rockchip/clk/rk_clk_gate.c standard arm64/rockchip/clk/rk_clk_mux.c standard arm64/rockchip/clk/rk_clk_pll.c standard arm64/rockchip/clk/rk_cru.c standard arm64/rockchip/clk/rk3288_cru.c standard dev/iicbus/pmic/act8846.c standard dev/iicbus/pmic/act8846_regulator.c standard dev/iicbus/pmic/fan53555.c standard dev/iicbus/rtc/hym8563.c standard dev/mmc/host/dwmmc.c optional dwmmc dev/mmc/host/dwmmc_rockchip.c optional dwmmc diff --git a/sys/arm/rockchip/std.rk32xx b/sys/arm/rockchip/std.rk32xx index d96045bfdfbe..3e9e08b5a96f 100644 --- a/sys/arm/rockchip/std.rk32xx +++ b/sys/arm/rockchip/std.rk32xx @@ -1,8 +1,7 @@ # Rockchip rk32xx common options -#$FreeBSD$ cpu CPU_CORTEXA machine arm armv7 makeoptions CONF_CFLAGS="-mcpu=cortex-a17" files "../rockchip/files.rk32xx" diff --git a/sys/arm/ti/am335x/files.am335x b/sys/arm/ti/am335x/files.am335x index b5f78ae6f4a8..3eb393f84cf9 100644 --- a/sys/arm/ti/am335x/files.am335x +++ b/sys/arm/ti/am335x/files.am335x @@ -1,25 +1,24 @@ -#$FreeBSD$ arm/ti/aintc.c standard arm/ti/am335x/am335x_dmtimer.c standard arm/ti/am335x/am335x_dmtpps.c optional am335x_dmtpps arm/ti/am335x/am335x_gpio.c optional gpio arm/ti/am335x/am335x_lcd.c optional sc | vt arm/ti/am335x/am335x_lcd_syscons.c optional sc arm/ti/am335x/am335x_pmic.c optional am335x_pmic arm/ti/am335x/am335x_pwmss.c standard dev/pwm/pwmbus_if.m standard arm/ti/am335x/am335x_ehrpwm.c standard arm/ti/am335x/am335x_ecap.c standard arm/ti/am335x/am335x_rtc.c optional am335x_rtc arm/ti/am335x/am335x_scm.c standard arm/ti/am335x/am335x_scm_padconf.c standard arm/ti/am335x/am335x_musb.c optional musb fdt arm/ti/am335x/am335x_usb_phy.c optional musb fdt arm/ti/am335x/am3359_cppi41.c optional musb fdt arm/ti/am335x/tda19988.c optional tda19988 arm/ti/ti_edma3.c standard arm/ti/cpsw/if_cpsw.c optional cpsw diff --git a/sys/arm/ti/am335x/std.am335x b/sys/arm/ti/am335x/std.am335x index 98b1d3c310a6..eda27102a817 100644 --- a/sys/arm/ti/am335x/std.am335x +++ b/sys/arm/ti/am335x/std.am335x @@ -1,8 +1,7 @@ # AM335x generic configuration -#$FreeBSD$ files "../ti/am335x/files.am335x" include "../ti/std.ti" cpu CPU_CORTEXA options SOC_TI_AM335X diff --git a/sys/arm/ti/files.ti b/sys/arm/ti/files.ti index 87beccd120a0..a31981957c70 100644 --- a/sys/arm/ti/files.ti +++ b/sys/arm/ti/files.ti @@ -1,34 +1,33 @@ -#$FreeBSD$ arm/ti/ti_cpuid.c standard arm/ti/ti_machdep.c standard arm/ti/ti_prcm.c standard arm/ti/ti_omap4_cm.c standard arm/ti/ti_scm.c standard arm/ti/ti_scm_syscon.c standard arm/ti/ti_pinmux.c standard dev/mbox/mbox_if.m optional ti_mbox arm/ti/ti_mbox.c optional ti_mbox arm/ti/ti_pruss.c optional ti_pruss arm/ti/ti_prm.c optional ti_pruss arm/ti/ti_wdt.c optional ti_wdt arm/ti/ti_adc.c optional ti_adc arm/ti/ti_gpio.c optional gpio arm/ti/ti_gpio_if.m optional gpio arm/ti/ti_i2c.c optional ti_i2c arm/ti/ti_sdhci.c optional sdhci arm/ti/ti_spi.c optional ti_spi arm/ti/ti_sysc.c standard arm/ti/clk/clock_common.c standard arm/ti/clk/ti_clk_clkctrl.c standard arm/ti/clk/ti_clkctrl.c standard arm/ti/clk/ti_clk_dpll.c standard arm/ti/clk/ti_dpll_clock.c standard arm/ti/clk/ti_mux_clock.c standard arm/ti/clk/ti_divider_clock.c standard arm/ti/clk/ti_gate_clock.c standard dev/uart/uart_dev_ti8250.c optional uart dev/uart/uart_dev_ns8250.c optional uart diff --git a/sys/arm/ti/omap4/files.omap4 b/sys/arm/ti/omap4/files.omap4 index 0b2f2d3bf26d..6926488a8716 100644 --- a/sys/arm/ti/omap4/files.omap4 +++ b/sys/arm/ti/omap4/files.omap4 @@ -1,22 +1,21 @@ -#$FreeBSD$ arm/ti/ti_smc.S standard arm/ti/usb/omap_ehci.c optional usb ehci arm/ti/usb/omap_host.c optional usb arm/ti/usb/omap_tll.c optional usb arm/ti/ti_sdma.c optional ti_sdma arm/ti/omap4/omap4_gpio.c optional gpio arm/ti/omap4/omap4_l2cache.c optional pl310 #arm/ti/omap4/omap4_prcm_clks.c standard arm/ti/omap4/omap4_scm_padconf.c standard arm/ti/omap4/omap4_mp.c optional smp arm/ti/omap4/omap4_wugen.c standard arm/ti/omap4/pandaboard/pandaboard.c standard arm/ti/twl/twl.c optional twl arm/ti/twl/twl_vreg.c optional twl twl_vreg arm/ti/twl/twl_clks.c optional twl twl_clks diff --git a/sys/arm/ti/omap4/std.omap4 b/sys/arm/ti/omap4/std.omap4 index b3edb8bec426..982c1e95e5ba 100644 --- a/sys/arm/ti/omap4/std.omap4 +++ b/sys/arm/ti/omap4/std.omap4 @@ -1,8 +1,7 @@ # Omap4430 generic configuration -#$FreeBSD$ files "../ti/omap4/files.omap4" include "../ti/std.ti" cpu CPU_CORTEXA options SOC_OMAP4 diff --git a/sys/arm/ti/std.ti b/sys/arm/ti/std.ti index 83c144393910..17c482cbe53c 100644 --- a/sys/arm/ti/std.ti +++ b/sys/arm/ti/std.ti @@ -1,6 +1,5 @@ -# $FreeBSD$ machine arm armv7 makeoptions CONF_CFLAGS="-march=armv7a" files "../ti/files.ti" diff --git a/sys/arm/ti/ti_gpio_if.m b/sys/arm/ti/ti_gpio_if.m index fe29323aef0e..16ac78159681 100644 --- a/sys/arm/ti/ti_gpio_if.m +++ b/sys/arm/ti/ti_gpio_if.m @@ -1,49 +1,48 @@ #- # Copyright (c) 2014 Andrew Turner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE ti_gpio; /** * Sets the Ti SoCs gpio flags */ METHOD int set_flags { device_t dev; uint32_t gpio; uint32_t flags; }; /** * Gets the Ti SoCs gpio flags */ METHOD int get_flags { device_t dev; uint32_t gpio; uint32_t *flags; }; diff --git a/sys/arm/xilinx/files.zynq7 b/sys/arm/xilinx/files.zynq7 index c118f38c6c68..1c7a596a4ed8 100644 --- a/sys/arm/xilinx/files.zynq7 +++ b/sys/arm/xilinx/files.zynq7 @@ -1,17 +1,16 @@ # # files.zynq7 # -# $FreeBSD$ arm/xilinx/zy7_machdep.c standard arm/xilinx/zy7_l2cache.c standard arm/xilinx/zy7_slcr.c standard arm/xilinx/zy7_devcfg.c standard arm/xilinx/zy7_mp.c optional smp arm/xilinx/zy7_ehci.c optional ehci arm/xilinx/uart_dev_cdnc.c optional uart arm/xilinx/zy7_gpio.c optional gpio arm/xilinx/zy7_qspi.c optional zy7_qspi arm/xilinx/zy7_spi.c optional zy7_spi diff --git a/sys/arm/xilinx/std.zynq7 b/sys/arm/xilinx/std.zynq7 index c3952ce3dc3b..2fda167eeae5 100644 --- a/sys/arm/xilinx/std.zynq7 +++ b/sys/arm/xilinx/std.zynq7 @@ -1,10 +1,9 @@ # # std.zynq7 - Generic configuration for Xilinx Zynq-7000 PS. # -# $FreeBSD$ cpu CPU_CORTEXA machine arm armv7 makeoptions CONF_CFLAGS="-march=armv7a" files "../xilinx/files.zynq7" diff --git a/sys/arm64/conf/DEFAULTS b/sys/arm64/conf/DEFAULTS index d55a957f4b5b..5d267af4b7d7 100644 --- a/sys/arm64/conf/DEFAULTS +++ b/sys/arm64/conf/DEFAULTS @@ -1,22 +1,21 @@ # # DEFAULTS -- Default kernel configuration file for FreeBSD/arm64 # -# $FreeBSD$ machine arm64 aarch64 # Pseudo devices. device mem # Memory and kernel memory devices # Default partitioning schemes options GEOM_PART_BSD options GEOM_PART_MBR options GEOM_PART_GPT # Default congestion control algorithm options CC_CUBIC # include CUBIC congestion control options NEW_PCIB options INTRNG options NETLINK # netlink(4) support diff --git a/sys/arm64/conf/GENERIC-MMCCAM b/sys/arm64/conf/GENERIC-MMCCAM index ded8d750b1e8..471b299ab3c2 100644 --- a/sys/arm64/conf/GENERIC-MMCCAM +++ b/sys/arm64/conf/GENERIC-MMCCAM @@ -1,23 +1,22 @@ # # GENERIC-MMCCAM # # Custom kernel for arm64 plus MMCCAM as opposed to the prior MMC stack. It is # present to keep it building in tree since it wouldn't work in LINT. # -# $FreeBSD$ #NO_UNIVERSE include GENERIC ident GENERIC-MMCCAM # Add CAMDEBUG stuff options CAMDEBUG options CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH) # pass(4) device device pass options MMCCAM nodevice mmc nodevice mmcsd diff --git a/sys/arm64/conf/GENERIC-MMCCAM-NODEBUG b/sys/arm64/conf/GENERIC-MMCCAM-NODEBUG index 319f31984dd2..6a475c8c6325 100644 --- a/sys/arm64/conf/GENERIC-MMCCAM-NODEBUG +++ b/sys/arm64/conf/GENERIC-MMCCAM-NODEBUG @@ -1,15 +1,14 @@ # # GENERIC-MMCCAM-NODEBUG # # Custom kernel for arm64 plus MMCCAM as opposed to the prior MMC stack. It is # present to keep it building in tree since it wouldn't work in LINT. This # version without debugging features. # -# $FreeBSD$ #NO_UNIVERSE include GENERIC-MMCCAM include "../../conf/std.nodebug" ident GENERIC-MMCCAM-NODEBUG diff --git a/sys/arm64/conf/GENERIC-NODEBUG b/sys/arm64/conf/GENERIC-NODEBUG index accbc464862c..a0dbb030c109 100644 --- a/sys/arm64/conf/GENERIC-NODEBUG +++ b/sys/arm64/conf/GENERIC-NODEBUG @@ -1,32 +1,31 @@ # # GENERIC-NODEBUG -- WITNESS and INVARIANTS free kernel configuration file # for FreeBSD/arm64 # # This configuration file removes several debugging options, including # WITNESS and INVARIANTS checking, which are known to have significant # performance impact on running systems. When benchmarking new features # this kernel should be used instead of the standard GENERIC. # This kernel configuration should never appear outside of the HEAD # of the FreeBSD tree. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ include GENERIC include "../../conf/std.nodebug" ident GENERIC-NODEBUG diff --git a/sys/arm64/conf/GENERIC-UP b/sys/arm64/conf/GENERIC-UP index f18c5defc1a6..f99a4ce4ddc9 100644 --- a/sys/arm64/conf/GENERIC-UP +++ b/sys/arm64/conf/GENERIC-UP @@ -1,23 +1,22 @@ # # GENERIC -- Generic kernel configuration file for FreeBSD/arm64 with SMP disabled # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ include GENERIC ident GENERIC-UP nooptions SMP diff --git a/sys/arm64/conf/LINT b/sys/arm64/conf/LINT index aaba324bf49a..0b2d27ccec8a 100644 --- a/sys/arm64/conf/LINT +++ b/sys/arm64/conf/LINT @@ -1,4 +1,3 @@ -# $FreeBSD$ include "../../conf/NOTES" include NOTES diff --git a/sys/arm64/conf/LINT-ACPI b/sys/arm64/conf/LINT-ACPI index 5b6b0af97c00..306b7c4f0d42 100644 --- a/sys/arm64/conf/LINT-ACPI +++ b/sys/arm64/conf/LINT-ACPI @@ -1,5 +1,4 @@ -# $FreeBSD$ include "../../conf/NOTES" include NOTES nooptions FDT diff --git a/sys/arm64/conf/LINT-FDT b/sys/arm64/conf/LINT-FDT index 9d99958fdee1..a6440ed76b6c 100644 --- a/sys/arm64/conf/LINT-FDT +++ b/sys/arm64/conf/LINT-FDT @@ -1,5 +1,4 @@ -# $FreeBSD$ include "../../conf/NOTES" include NOTES nodevice acpi diff --git a/sys/arm64/conf/NOTES b/sys/arm64/conf/NOTES index d309ee346b67..031b5f9567b5 100644 --- a/sys/arm64/conf/NOTES +++ b/sys/arm64/conf/NOTES @@ -1,259 +1,258 @@ # # NOTES -- Lines that can be cut/pasted into kernel and hints configs. # # This file contains machine dependent kernel configuration notes. For # machine independent notes, look in /sys/conf/NOTES. # -# $FreeBSD$ # # # We want LINT to cover profiling as well. # Except it's broken. #profile 2 # # Enable the kernel DTrace hooks which are required to load the DTrace # kernel modules. # options KDTRACE_HOOKS # # Most of the following is copied from ARM64 GENERIC. cpu ARM64 makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KDTRACE_FRAME # Ensure frames are compiled in options VFP # Floating-point support options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default # SoC support options SOC_ALLWINNER_A64 options SOC_ALLWINNER_H5 options SOC_ALLWINNER_H6 options SOC_BRCM_BCM2837 options SOC_BRCM_BCM2838 options SOC_BRCM_NS2 options SOC_CAVM_THUNDERX options SOC_FREESCALE_IMX8 options SOC_HISI_HI6220 options SOC_INTEL_STRATIX10 options SOC_MARVELL_8K options SOC_NVIDIA_TEGRA210 options SOC_NXP_LS options SOC_ROCKCHIP_RK3328 options SOC_ROCKCHIP_RK3399 options SOC_XILINX_ZYNQ # Timer drivers device a10_timer # Annapurna Alpine drivers device al_ccu # Alpine Cache Coherency Unit device al_nb_service # Alpine North Bridge Service device al_iofic # I/O Fabric Interrupt Controller device al_serdes # Serializer/Deserializer device al_udma # Universal DMA # Qualcomm Snapdragon drivers device qcom_gcc # Global Clock Controller # VirtIO support device virtio device virtio_pci device virtio_mmio device virtio_blk device vtnet # Google Virtual NIC device gve # Google Virtual NIC (gVNIC) driver # Microsoft Hyper-V device hyperv # CPU frequency control device cpufreq # Accelerated software crypto device armv8crypto # ARMv8 OpenCrypto module device ossl # OpenSSL OpenCrypto module # Bus drivers device al_pci # Annapurna Alpine PCI-E options PCI_HP # PCI-Express native HotPlug options PCI_IOV # PCI SR-IOV support # Ethernet NICs device mdio device awg # Allwinner EMAC Gigabit Ethernet device axa # AMD Opteron A1100 integrated NIC device neta # Marvell Armada 370/38x/XP/3700 NIC device smc # SMSC LAN91C111 device vnic # Cavium ThunderX NIC device al_eth # Annapurna Alpine Ethernet NIC device dwc_rk # Rockchip Designware device dwc_socfpga # Altera SOCFPGA Ethernet MAC device ice # Intel 800 Series Physical Function device ice_ddp # Intel 800 Series DDP Package # Etherswitch devices device e6000sw # Marvell mv88e6085 based switches # NVM Express (NVMe) support device nvme # base NVMe driver options NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver device nvd # expose NVMe namespaces as disks, depends on nvme # MMC/SD/SDIO Card slot support device sdhci_xenon # Marvell Xenon SD/MMC controller device aw_mmc # Allwinner SD/MMC controller device dwmmc device dwmmc_altera device rk_emmcphy # Serial (COM) ports device uart_msm # Qualcomm MSM UART driver device uart_mu # RPI3 aux port device uart_mvebu # Armada 3700 UART driver device uart_ns8250 # ns8250-type UART driver device uart_snps device pl011 # USB support device aw_usbphy # Allwinner USB PHY device dwcotg # DWC OTG controller device ehci_mv # Marvell EHCI USB interface # USB ethernet support device muge device smsc # Sound support device a10_codec # DMA controller device a31_dmac # GPIO / PINCTRL device a37x0_gpio # Marvell Armada 37x0 GPIO controller device aw_gpio # Allwinner GPIO controller device fdt_pinctrl device mv_gpio # Marvell GPIO controller device mvebu_pinctrl # Marvell Pinmux Controller device rk_gpio # RockChip GPIO Controller device rk_pinctrl # RockChip Pinmux Controller # I2C device aw_rsb # Allwinner Reduced Serial Bus device bcm2835_bsc # Broadcom BCM283x I2C bus device twsi # Allwinner I2C controller device rk_i2c # RockChip I2C controller # Clock and reset controllers device aw_ccu # Allwinner clock controller # Interrupt controllers device aw_nmi # Allwinner NMI support device mv_cp110_icu # Marvell CP110 ICU device mv_ap806_gicp # Marvell AP806 GICP # Real-time clock support device aw_rtc # Allwinner Real-time Clock device mv_rtc # Marvell Real-time Clock # Watchdog controllers device aw_wdog # Allwinner Watchdog # Power management controllers device axp81x # X-Powers AXP81x PMIC device rk805 # RockChip RK805 PMIC # EFUSE device aw_sid # Allwinner Secure ID EFUSE # Thermal sensors device aw_thermal # Allwinner Thermal Sensor Controller device mv_thermal # Marvell Thermal Sensor Controller # SPI device bcm2835_spi # Broadcom BCM283x SPI bus # PWM device pwm device aw_pwm device vt_efifb device vt_simplefb # EVDEV support options EVDEV_SUPPORT # evdev support in legacy drivers device aw_cir # Pseudo devices. options EFIRT # EFI Runtime Services device clk device phy device hwreset device nvmem device regulator device syscon device aw_syscon # Backlight subsystem device backlight # Misc devices. device pl330 # ARM PL330 dma controller device xdma # xDMA framework for SoC on-chip dma controllers # Chip-specific errata options THUNDERX_PASS_1_1_ERRATA options FDT device acpi # DTBs makeoptions MODULES_EXTRA="dtb/allwinner dtb/rockchip dtb/rpi" # Add CAMDEBUG stuff options CAMDEBUG options CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH) # bring in camified MMC too options MMCCAM # arm64 doesn't support inb/outb, so disable chipset probing which needs it nooptions PPC_PROBE_CHIPSET # These cause weird issues, not sure why nooptions DEBUG # Makes assumptions about bus tags that aren't true on arm64 nodevice snd_cmi # arm64 didn't exist for these releases, so doesn't have the required compat # support. Just disable them because they are meaningless. nooptions COMPAT_FREEBSD4 nooptions COMPAT_FREEBSD5 nooptions COMPAT_FREEBSD6 nooptions COMPAT_FREEBSD7 nooptions COMPAT_FREEBSD9 nooptions COMPAT_FREEBSD10 # arm64 supports 32-bit FreeBSD/arm binaries (armv[67] ABIs) options COMPAT_FREEBSD32 # Compatible with FreeBSD/arm ##################################################################### # ZFS support options ZFS # # HID-over-I2C support # device iichid # HID-over-I2C support options IICHID_DEBUG # Enable HID-over-I2C debug messages options IICHID_SAMPLING # Workaround missing GPIO INTR support diff --git a/sys/arm64/conf/std.arm64 b/sys/arm64/conf/std.arm64 index c8d407e8df8a..a19e7a95ef98 100644 --- a/sys/arm64/conf/std.arm64 +++ b/sys/arm64/conf/std.arm64 @@ -1,108 +1,107 @@ # Standard kernel config items for all ARM64 systems. # -# $FreeBSD$ makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support options SCHED_ULE # ULE scheduler options NUMA # Non-Uniform Memory Architecture support options PREEMPTION # Enable kernel thread preemption options VIMAGE # Subsystem virtualization, e.g. VNET options INET # InterNETworking options INET6 # IPv6 communications protocols options CC_CUBIC # include CUBIC congestion control options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 options ROUTE_MPATH # Multipath routing support options FIB_ALGO # Modular fib lookups options TCP_OFFLOAD # TCP offload options TCP_BLACKBOX # Enhanced TCP event logging options TCP_HHOOK # hhook(9) framework for TCP options TCP_RFC7413 # TCP Fast Open options SCTP_SUPPORT # Allow kldload of SCTP options KERN_TLS # TLS transmit & receive offload options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options QUOTA # Enable disk quotas for UFS options MD_ROOT # MD is a potential root device options NFSCL # Network Filesystem Client options NFSD # Network Filesystem Server options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as /, requires NFSCL options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options TMPFS # Efficient memory filesystem options GEOM_RAID # Soft RAID functionality. options GEOM_LABEL # Provides labelization options EFIRT # EFI Runtime Services support options COMPAT_FREEBSD32 # Compatible with FreeBSD/arm options COMPAT_FREEBSD11 # Compatible with FreeBSD11 options COMPAT_FREEBSD12 # Compatible with FreeBSD12 options COMPAT_FREEBSD13 # Compatible with FreeBSD13 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KBD_INSTALL_CDEV # install a CDEV entry in /dev options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options AUDIT # Security event auditing options CAPABILITY_MODE # Capsicum capability mode options CAPABILITIES # Capsicum capabilities options MAC # TrustedBSD MAC Framework options KDTRACE_FRAME # Ensure frames are compiled in options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options INCLUDE_CONFIG_FILE # Include this file in kernel options VFP # Floating-point support options RACCT # Resource accounting framework options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default options RCTL # Resource limits options LINUX_BOOT_ABI # Boot using booti command from U-Boot options PERTHREAD_SSP # Per-thread SSP canary # Debugging support. Always need this: options KDB # Enable kernel debugger support. options KDB_TRACE # Print a stack trace for a panic. # For full debugger support use (turn off in stable branch): options DDB # Support DDB. options GDB # Support remote GDB. options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones options ALT_BREAK_TO_DEBUGGER # Enter debugger on keyboard escape sequence options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default # Kernel Sanitizers #options COVERAGE # Generic kernel coverage. Used by KCOV #options KCOV # Kernel Coverage Sanitizer # Warning: KUBSAN can result in a kernel too large for loader to load #options KUBSAN # Kernel Undefined Behavior Sanitizer #options KCSAN # Kernel Concurrency Sanitizer # Kernel dump features. options EKCD # Support for encrypted kernel dumps options GZIO # gzip-compressed kernel and user dumps options ZSTDIO # zstd-compressed kernel and user dumps options DEBUGNET # debugnet networking options NETDUMP # netdump(4) client support # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor Kernel # Enable support for the kernel PLL to use an external PPS signal, # under supervision of [x]ntpd(8) # More info in ntpd documentation: http://www.eecis.udel.edu/~ntp options PPS_SYNC diff --git a/sys/arm64/coresight/coresight_if.m b/sys/arm64/coresight/coresight_if.m index e311c4c8f5cb..e6e5a86b5133 100644 --- a/sys/arm64/coresight/coresight_if.m +++ b/sys/arm64/coresight/coresight_if.m @@ -1,58 +1,57 @@ #- # Copyright (c) 2018 Ruslan Bukin # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE coresight; METHOD int init { device_t dev; }; METHOD int enable { device_t dev; struct endpoint *endp; struct coresight_event *event; }; METHOD void disable { device_t dev; struct endpoint *endp; struct coresight_event *event; }; METHOD int read { device_t dev; struct endpoint *endp; struct coresight_event *event; }; diff --git a/sys/arm64/iommu/iommu_if.m b/sys/arm64/iommu/iommu_if.m index a3aa8001d00c..f4a83ac47a6f 100644 --- a/sys/arm64/iommu/iommu_if.m +++ b/sys/arm64/iommu/iommu_if.m @@ -1,153 +1,152 @@ #- # SPDX-License-Identifier: BSD-2-Clause #: # Copyright (c) 2020 Ruslan Bukin # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory (Department of Computer Science and # Technology) under DARPA contract HR0011-18-C-0016 ("ECATS"), as part of the # DARPA SSITH research programme. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include "opt_platform.h" #include #include #include #include #include #include #include #include #include #ifdef FDT #include #include #include #endif INTERFACE iommu; # # Check if the iommu controller dev is responsible to serve traffic # for a given child. # METHOD int find { device_t dev; device_t child; }; # # Map a virtual address VA to a physical address PA. # METHOD int map { device_t dev; struct iommu_domain *iodom; vm_offset_t va; vm_page_t *ma; bus_size_t size; vm_prot_t prot; }; # # Unmap a virtual address VA. # METHOD int unmap { device_t dev; struct iommu_domain *iodom; vm_offset_t va; bus_size_t size; }; # # Allocate an IOMMU domain. # METHOD struct iommu_domain * domain_alloc { device_t dev; struct iommu_unit *iommu; }; # # Release all the resources held by IOMMU domain. # METHOD void domain_free { device_t dev; struct iommu_domain *iodom; }; # # Find a domain allocated for a dev. # METHOD struct iommu_domain * domain_lookup { device_t dev; }; # # Find an allocated context for a device. # METHOD struct iommu_ctx * ctx_lookup { device_t dev; device_t child; }; # # Allocate a new iommu context. # METHOD struct iommu_ctx * ctx_alloc { device_t dev; struct iommu_domain *iodom; device_t child; bool disabled; }; # # Initialize the new iommu context. # METHOD int ctx_init { device_t dev; struct iommu_ctx *ioctx; }; # # Free the iommu context. # METHOD void ctx_free { device_t dev; struct iommu_ctx *ioctx; }; #ifdef FDT # # Notify controller we have machine-dependent data. # METHOD int ofw_md_data { device_t dev; struct iommu_ctx *ioctx; pcell_t *cells; int ncells; }; #endif diff --git a/sys/arm64/linux/Makefile b/sys/arm64/linux/Makefile index 662c7f8fc42f..e0d74bb46c78 100644 --- a/sys/arm64/linux/Makefile +++ b/sys/arm64/linux/Makefile @@ -1,7 +1,6 @@ # Makefile for syscall tables # -# $FreeBSD$ GENERATED_PREFIX= linux_ .include "../../conf/sysent.mk" diff --git a/sys/arm64/linux/syscalls.conf b/sys/arm64/linux/syscalls.conf index a47f80444c2a..b46b9e500553 100644 --- a/sys/arm64/linux/syscalls.conf +++ b/sys/arm64/linux/syscalls.conf @@ -1,12 +1,11 @@ -# $FreeBSD$ sysnames="linux_syscalls.c" sysproto="linux_proto.h" sysproto_h=_LINUX_SYSPROTO_H_ syshdr="linux_syscall.h" syssw="linux_sysent.c" sysmk="/dev/null" syscallprefix="LINUX_SYS_" switchname="linux_sysent" namesname="linux_syscallnames" systrace="linux_systrace_args.c" compat_set="" diff --git a/sys/arm64/qoriq/qoriq_therm_if.m b/sys/arm64/qoriq/qoriq_therm_if.m index e7145e078a17..b0d6e7477f7e 100644 --- a/sys/arm64/qoriq/qoriq_therm_if.m +++ b/sys/arm64/qoriq/qoriq_therm_if.m @@ -1,44 +1,43 @@ #- # # SPDX-License-Identifier: BSD-2-Clause # # Copyright 2020 Michal Meloun # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE qoriq_therm; /** * Read temperature */ METHOD int get_temperature{ device_t dev; device_t consumer; uintptr_t id; int *val; }; diff --git a/sys/arm64/rockchip/rk_tsadc_if.m b/sys/arm64/rockchip/rk_tsadc_if.m index 58a3fefe3c56..94733f565814 100644 --- a/sys/arm64/rockchip/rk_tsadc_if.m +++ b/sys/arm64/rockchip/rk_tsadc_if.m @@ -1,43 +1,42 @@ #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2019 Michal Meloun # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE rk_tsadc; /** * Read temperature */ METHOD int get_temperature{ device_t dev; device_t consumer; uintptr_t id; int *val; }; diff --git a/sys/cam/mmc/mmc_sim_if.m b/sys/cam/mmc/mmc_sim_if.m index 8df26e4a08d4..6640d5587a9a 100644 --- a/sys/cam/mmc/mmc_sim_if.m +++ b/sys/cam/mmc/mmc_sim_if.m @@ -1,58 +1,57 @@ #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2020 Emmanuel Vadot # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ #include #include #include #include #include #include #include #include INTERFACE mmc_sim; METHOD int get_tran_settings { device_t dev; struct ccb_trans_settings_mmc *cts; }; METHOD int set_tran_settings { device_t dev; struct ccb_trans_settings_mmc *cts; }; METHOD int cam_request { device_t dev; union ccb *ccb; }; METHOD void cam_poll { device_t dev; }; diff --git a/sys/compat/freebsd32/Makefile b/sys/compat/freebsd32/Makefile index b4f72fcc2bca..6d22d5d1ae41 100644 --- a/sys/compat/freebsd32/Makefile +++ b/sys/compat/freebsd32/Makefile @@ -1,8 +1,7 @@ # Makefile for syscall tables # -# $FreeBSD$ GENERATED_PREFIX= freebsd32_ SYSENT_FILE= ${SYSDIR}/kern/syscalls.master .include "../../conf/sysent.mk" diff --git a/sys/compat/freebsd32/syscalls.conf b/sys/compat/freebsd32/syscalls.conf index 6b80018165df..de198206dc47 100644 --- a/sys/compat/freebsd32/syscalls.conf +++ b/sys/compat/freebsd32/syscalls.conf @@ -1,59 +1,58 @@ -# $FreeBSD$ sysnames="freebsd32_syscalls.c" sysproto="freebsd32_proto.h" sysproto_h=_FREEBSD32_SYSPROTO_H_ syshdr="freebsd32_syscall.h" syssw="freebsd32_sysent.c" sysmk="/dev/null" syscallprefix="FREEBSD32_SYS_" switchname="freebsd32_sysent" namesname="freebsd32_syscallnames" systrace="freebsd32_systrace_args.c" abi_flags="long_size|pointer_size|time_t_size|pair_64bit" abi_func_prefix="freebsd32_" abi_type_suffix="32" abi_long="int32_t" abi_u_long="uint32_t" abi_semid_t="int32_t" abi_size_t="uint32_t" abi_ptr_array_t="uint32_t" abi_headers="#include " # # Variables below this line are exceptions to the ABI changes programatically # detected by makesyscalls.lua. New system calls should not require an entry # here in nearly virtually all cases. New entries are almost certainly # representative of badly designed interfaces. # # System calls that require freebsd32-specific handling: # fcntl - need to sign extend arg unless it's a pointer # ksem_init, ksem_open - XXX not required # mprotect - i386 read-implies-exec # msgsys, semsys, shmsys - some sub-syscalls require compat # sigqueue - union sival requires special handing on big-endian # sigreturn - struct osigcontext # sysarch - always MD # _umtx_lock _umtx_unlock _umtx_op - arguments require special handling syscall_abi_change="fcntl ksem_init ksem_open mprotect msgsys semsys shmsys sigqueue sigreturn sysarch _umtx_lock _umtx_unlock _umtx_op" # System calls that appear to require handling, but don't: # aio_cancel - the aiocb pointer is just a virtual address # thr_* - the lack of sign extension of long args is OK # sctp_generic_* - iovec differences handled internally syscall_no_abi_change="aio_cancel thr_exit thr_kill thr_kill2 thr_self thr_set_name thr_wake sctp_generic_sendmsg_iov sctp_generic_recvmsg" # OBSOL syscalls # getkerninfo - obsolete and can't be implemented (kernel virtual addresses can't fit in 32-bits) obsol="getkerninfo" # Syscalls without implementations: # *mac_* - should be implemented # afs3_syscall - requires significant porting, probably doesn't make sense # kldsym - can't be implemented (kernel virtual addresses can't fit in 32-bits) # lgetfh - should be implemented # nlm_syscall - requires significant porting, probably doesn't make sense # nnpfs_syscall - requires significant porting, probably doesn't make sense # ntp_gettime - should be implemented # thr_create - was unimplemented and appears to be unnecessicary unimpl="afs3_syscall kldsym __mac_get_proc __mac_set_proc __mac_get_fd __mac_get_file __mac_set_fd __mac_set_file __mac_get_pid __mac_get_link __mac_set_link __mac_execve mac_syscall nfssvc nlm_syscall ntp_gettime lgetfh nnpfs_syscall thr_create" diff --git a/sys/conf/Makefile.amd64 b/sys/conf/Makefile.amd64 index 5438144e6ccc..129d38b94612 100644 --- a/sys/conf/Makefile.amd64 +++ b/sys/conf/Makefile.amd64 @@ -1,54 +1,53 @@ # Makefile.amd64 -- with config changes. # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 # from FreeBSD: src/sys/conf/Makefile.i386,v 1.255 2002/02/20 23:35:49 -# $FreeBSD$ # # Makefile for FreeBSD # # This makefile is constructed from a machine description: # config machineid # Most changes should be made in the machine description # /sys/amd64/conf/``machineid'' # after which you should do # config machineid # Generic makefile changes should be made in # /sys/conf/Makefile.amd64 # after which config should be rerun for all machines. # # Which version of config(8) is required. %VERSREQ= 600018 STD8X16FONT?= iso .if !defined(S) .if exists(./@/.) S= ./@ .else S= ../../.. .endif .endif .include "$S/conf/kern.pre.mk" INCLUDES+= -I$S/contrib/libfdt .if !empty(DDB_ENABLED) || !empty(DTRACE_ENABLED) || !empty(HWPMC_ENABLED) CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer .endif %BEFORE_DEPEND %OBJS %FILES.c %FILES.s %FILES.m %CLEAN %RULES .include "$S/conf/kern.post.mk" diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm index 9034ffb5e29a..af6ce7136636 100644 --- a/sys/conf/Makefile.arm +++ b/sys/conf/Makefile.arm @@ -1,108 +1,107 @@ # Makefile.arm -- with config changes. # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 -# $FreeBSD$ # # Makefile for FreeBSD # # This makefile is constructed from a machine description: # config machineid # Most changes should be made in the machine description # /sys/arm/conf/``machineid'' # after which you should do # config machineid # Generic makefile changes should be made in # /sys/conf/Makefile.arm # after which config should be rerun for all machines. # # Which version of config(8) is required. %VERSREQ= 600013 STD8X16FONT?= iso .if !defined(S) .if exists(./@/.) S= ./@ .else S= ../../.. .endif .endif .include "$S/conf/kern.pre.mk" INCLUDES+= -I$S/contrib/libfdt -I$S/contrib/device-tree/include -I$$/dts/include LINUX_DTS_VERSION!= awk '/freebsd,dts-version/ { sub(/;$$/,"", $$NF); print $$NF }' $S/dts/freebsd-compatible.dts CFLAGS += -DLINUX_DTS_VERSION=\"${LINUX_DTS_VERSION}\" .if !defined(DEBUG) STRIP_FLAGS = -S .endif # We don't support gcc's thump interwork stuff, so disable it CFLAGS.gcc += -mno-thumb-interwork # We generally don't want fpu instructions in the kernel. CFLAGS.clang += -mfpu=none .if !empty(DDB_ENABLED) CFLAGS += -funwind-tables .endif # "makeoptions KERNVIRTADDR=" is now optional, supply the default value. .if empty(KERNVIRTADDR) KERNVIRTADDR= 0xc0000000 .endif # Use a custom SYSTEM_LD command to generate the elf kernel, so we can # set the text segment start address, and also strip the "arm mapping # symbols" which have names like $a.0 and $d.2; see the document # "ELF for the ARM architecture" for more info on the mapping symbols. SYSTEM_LD= \ ${SYSTEM_LD_BASECMD} \ --defsym='text_start=kernbase + SIZEOF_HEADERS' \ -o ${.TARGET} ${SYSTEM_OBJS} vers.o; \ $(OBJCOPY) \ --wildcard \ --strip-symbol='$$[adt]*' \ ${.TARGET} # Generate the .bin (no elf headers) kernel as an extra build output. # We must relink to generate the .bin kernel, because without headers the # location of everything changes. We also strip the ARM marker symbols. KERNEL_EXTRA+= ${KERNEL_KO}.bin KERNEL_EXTRA_INSTALL+= ${KERNEL_KO}.bin ${KERNEL_KO}.bin: ${SYSTEM_DEP} vers.o @echo "linking ${.TARGET}" @${SYSTEM_LD_BASECMD} \ --defsym='text_start=kernbase' \ -o ${.TARGET} ${SYSTEM_OBJS} vers.o ${SIZE} ${.TARGET} @${OBJCOPY} \ --wildcard \ --strip-symbol='$$[adt]*' \ --output-target=binary \ ${.TARGET} @chmod 755 ${.TARGET} # hack because genassym.c includes sys/bus.h which includes these. genassym.o: bus_if.h device_if.h %BEFORE_DEPEND %OBJS %FILES.c %FILES.s %FILES.m %CLEAN CLEAN+= ${KERNEL_KO}.bin %RULES .include "$S/conf/kern.post.mk" diff --git a/sys/conf/Makefile.arm64 b/sys/conf/Makefile.arm64 index 6719404c3291..77c36fa6ce6c 100644 --- a/sys/conf/Makefile.arm64 +++ b/sys/conf/Makefile.arm64 @@ -1,102 +1,101 @@ # Makefile.arm64 -- with config changes. # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 # from FreeBSD: src/sys/conf/Makefile.i386,v 1.255 2002/02/20 23:35:49 -# $FreeBSD$ # # Makefile for FreeBSD # # This makefile is constructed from a machine description: # config machineid # Most changes should be made in the machine description # /sys/arm64/conf/``machineid'' # after which you should do # config machineid # Generic makefile changes should be made in # /sys/conf/Makefile.arm64 # after which config should be rerun for all machines. # # Which version of config(8) is required. %VERSREQ= 600012 .if !defined(S) S= ../../.. .endif .include "$S/conf/kern.pre.mk" INCLUDES+= -I$S/contrib/libfdt -I$S/contrib/device-tree/include LINUX_DTS_VERSION!= awk '/freebsd,dts-version/ { sub(/;$$/,"", $$NF); print $$NF }' $S/dts/freebsd-compatible.dts CFLAGS += -DLINUX_DTS_VERSION=\"${LINUX_DTS_VERSION}\" PERTHREAD_SSP_ENABLED!= grep PERTHREAD_SSP opt_global.h || true ; echo .if !empty(PERTHREAD_SSP_ENABLED) . if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000 ARM64_SSP_CFLAGS = -mstack-protector-guard=sysreg ARM64_SSP_CFLAGS += -mstack-protector-guard-reg=sp_el0 ARM64_SSP_CFLAGS += -mstack-protector-guard-offset=0 . else ARM64_SSP_CFLAGS += -DPERTHREAD_SSP_WARNING . warning "Compiler is too old to support PERTHREAD_SSP" . endif CFLAGS += ${ARM64_SSP_CFLAGS} ARCH_FLAGS += ${ARM64_SSP_CFLAGS} .endif # Use a custom SYSTEM_LD command to generate the elf kernel, so we can # set the text segment start address, and also strip the "arm mapping # symbols" which have names like $a.0 and $d.2; see the document # "ELF for the ARM architecture" for more info on the mapping symbols. SYSTEM_LD= \ ${SYSTEM_LD_BASECMD} \ --defsym='text_start=kernbase + SIZEOF_HEADERS' \ -o ${.TARGET} ${SYSTEM_OBJS} vers.o; \ $(OBJCOPY) \ --wildcard \ --strip-symbol='$$[adtx]*' \ ${.TARGET} # Generate the .bin (booti images) kernel as an extra build output. # The targets and rules to generate these appear near the end of the file. KERNEL_EXTRA+= ${KERNEL_KO}.bin KERNEL_EXTRA_INSTALL+= ${KERNEL_KO}.bin .if !empty(DDB_ENABLED) || !empty(DTRACE_ENABLED) || !empty(HWPMC_ENABLED) CFLAGS += -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer .endif %BEFORE_DEPEND %OBJS %FILES.c %FILES.s %FILES.m %CLEAN CLEAN+= ${KERNEL_KO}.bin %RULES .include "$S/conf/kern.post.mk" # Create a kernel.bin file... # Copy the kernel to u-boot's booti image format (the elf headers are # stripped and a custom binary head blob is prepended), saving the # output in a temp file. We also strip arm "marker" symbols which are # used only by elf toolchains. Read the symbols from kernel.full and pass # them to arm_kernel_boothdr.awk, which generates a binary header blob # that goes on the front of the stripped kernel. Cat the header blob # and the temp file together to make the kernel.bin file. ${KERNEL_KO}.bin: ${FULLKERNEL} @${OBJCOPY} --wildcard --strip-symbol='$$[adtx]*' \ --output-target=binary ${FULLKERNEL} ${.TARGET}.temp @{ ${NM} ${FULLKERNEL} | \ ${AWK} -f $S/tools/arm_kernel_boothdr.awk -v hdrtype=v8booti && \ cat ${.TARGET}.temp; \ } > ${.TARGET} @rm ${.TARGET}.temp @echo "created ${.TARGET} from ${.ALLSRC}" diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386 index 621ebff79e19..24455983565f 100644 --- a/sys/conf/Makefile.i386 +++ b/sys/conf/Makefile.i386 @@ -1,49 +1,48 @@ # Makefile.i386 -- with config changes. # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 -# $FreeBSD$ # # Makefile for FreeBSD # # This makefile is constructed from a machine description: # config machineid # Most changes should be made in the machine description # /sys/i386/conf/``machineid'' # after which you should do # config machineid # Generic makefile changes should be made in # /sys/conf/Makefile.i386 # after which config should be rerun for all machines. # # Which version of config(8) is required. %VERSREQ= 600012 STD8X16FONT?= iso .if !defined(S) .if exists(./@/.) S= ./@ .else S= ../../.. .endif .endif .include "$S/conf/kern.pre.mk" INCLUDES+= -I$S/contrib/libfdt %BEFORE_DEPEND %OBJS %FILES.c %FILES.s %FILES.m %CLEAN %RULES .include "$S/conf/kern.post.mk" diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc index 839fde10f9b2..f2594de87ad6 100644 --- a/sys/conf/Makefile.powerpc +++ b/sys/conf/Makefile.powerpc @@ -1,81 +1,80 @@ # Makefile.powerpc -- with config changes. # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 -# $FreeBSD$ # # Makefile for FreeBSD # # This makefile is constructed from a machine description: # config machineid # Most changes should be made in the machine description # /sys/powerpc/conf/``machineid'' # after which you should do # config machineid # Generic makefile changes should be made in # /sys/conf/Makefile.powerpc # after which config should be rerun for all machines. # # Which version of config(8) is required. %VERSREQ= 600012 STD8X16FONT?= iso .if !defined(S) .if exists(./@/.) S= ./@ .else S= ../../.. .endif .endif LDSCRIPT_NAME?= ldscript.${MACHINE_ARCH} .include "$S/conf/kern.pre.mk" INCLUDES+= -I$S/contrib/libfdt .if "${MACHINE_ARCH}" == "powerpcspe" # Force __SPE__, since the builtin will be removed later with -mno-spe CFLAGS.gcc+= -mabi=spe -D__SPE__ CFLAGS.clang+= -mspe -D__SPE__ -m32 .endif CFLAGS+= -msoft-float CFLAGS.gcc+= -Wa,-many # Apply compiler-specific DPAA exceptions. .if "${COMPILER_TYPE}" == "clang" DPAAWARNFLAGS += \ -Wno-error=parentheses-equality \ -Wno-error=self-assign \ -Wno-error=incompatible-pointer-types-discards-qualifiers \ -Wno-error=non-literal-null-conversion \ -Wno-error=enum-conversion .elif "${COMPILER_TYPE}" == "gcc" DPAAWARNFLAGS += \ -Wno-error=int-in-bool-context .endif # Build position-independent kernel CFLAGS+= -fPIC LDFLAGS+= -pie .if !empty(DDB_ENABLED) CFLAGS+= -fno-omit-frame-pointer .endif %BEFORE_DEPEND %OBJS %FILES.c %FILES.s %FILES.m %CLEAN %RULES .include "$S/conf/kern.post.mk" diff --git a/sys/conf/Makefile.riscv b/sys/conf/Makefile.riscv index 35b2ca10a717..81c9f061a528 100644 --- a/sys/conf/Makefile.riscv +++ b/sys/conf/Makefile.riscv @@ -1,61 +1,60 @@ # Makefile.riscv -- with config changes. # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 # from FreeBSD: src/sys/conf/Makefile.i386,v 1.255 2002/02/20 23:35:49 -# $FreeBSD$ # # Makefile for FreeBSD # # RISCVTODO: copy pasted from aarch64, needs to be # constructed from a machine description: # config machineid # Most changes should be made in the machine description # /sys/riscv/conf/``machineid'' # after which you should do # config machineid # Generic makefile changes should be made in # /sys/conf/Makefile.riscv # after which config should be rerun for all machines. # # Which version of config(8) is required. %VERSREQ= 600012 .if !defined(S) S= ../../.. .endif .include "$S/conf/kern.pre.mk" INCLUDES+= -I$S/contrib/libfdt -I$S/contrib/device-tree/include # Set the ELF LMA to the address that OpenSBI's fw_jump jumps to. This allows # us to load the kernel with the -kernel flag in QEMU without having to embed # it inside BBL or OpenSBI's fw_payload first. # Note: For rv32 the start address is different (0x80400000). # We set this value using --defsym rather than hardcoding it in ldscript.riscv # so that different kernel configs can override the load address. KERNEL_LMA?= 0x80200000 LDFLAGS+= --defsym='kernel_lma=${KERNEL_LMA}' .if !empty(DDB_ENABLED) || !empty(DTRACE_ENABLED) || !empty(HWPMC_ENABLED) CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls .endif # hack because genassym.c includes sys/bus.h which includes these. genassym.o: bus_if.h device_if.h %BEFORE_DEPEND %OBJS %FILES.c %FILES.s %FILES.m %CLEAN %RULES .include "$S/conf/kern.post.mk" diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 7558ccb8d920..088bd7426a77 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -1,2805 +1,2804 @@ -# $FreeBSD$ # # NOTES -- Lines that can be cut/pasted into kernel and hints configs. # # Lines that begin with 'device', 'options', 'machine', 'ident', 'maxusers', # 'makeoptions', 'hints', etc. go into the kernel configuration that you # run config(8) with. # # Lines that begin with 'envvar hint.' should go into your hints file. # See /boot/device.hints and/or the 'hints' config(8) directive. # # Please use ``make LINT'' to create an old-style LINT file if you want to # do kernel test-builds. # # This file contains machine independent kernel configuration notes. For # machine dependent notes, look in /sys//conf/NOTES. # # # NOTES conventions and style guide: # # Large block comments should begin and end with a line containing only a # comment character. # # To describe a particular object, a block comment (if it exists) should # come first. Next should come device, options, and hints lines in that # order. All device and option lines must be described by a comment that # doesn't just expand the device or option name. Use only a concise # comment on the same line if possible. Very detailed descriptions of # devices and subsystems belong in man pages. # # A space followed by a tab separates 'options' from an option name. Two # spaces followed by a tab separate 'device' from a device name. Comments # after an option or device should use one space after the comment character. # To comment out a negative option that disables code and thus should not be # enabled for LINT builds, precede 'options' with "#!". # # # This is the ``identification'' of the kernel. Usually this should # be the same as the name of your kernel. # ident LINT # # The `maxusers' parameter controls the static sizing of a number of # internal system tables by a formula defined in subr_param.c. # Omitting this parameter or setting it to 0 will cause the system to # auto-size based on physical memory. # maxusers 10 # To statically compile in device wiring instead of /boot/device.hints #hints "LINT.hints" # Default places to look for devices. # Use the following to compile in values accessible to the kernel # through getenv() (or kenv(1) in userland). The format of the file # is 'variable=value', see kenv(1) # #env "LINT.env" # # The `makeoptions' parameter allows variables to be passed to the # generated Makefile in the build area. # # CONF_CFLAGS gives some extra compiler flags that are added to ${CFLAGS} # after most other flags. Here we use it to inhibit use of non-optimal # gcc built-in functions (e.g., memcmp). # # DEBUG happens to be magic. # The following is equivalent to 'config -g KERNELNAME' and creates # 'kernel.debug' compiled with -g debugging as well as a normal # 'kernel'. Use 'make install.debug' to install the debug kernel # but that isn't normally necessary as the debug symbols are not loaded # by the kernel and are not useful there anyway. # # KERNEL can be overridden so that you can change the default name of your # kernel. # # MODULES_OVERRIDE can be used to limit modules built to a specific list. # makeoptions CONF_CFLAGS=-fno-builtin #Don't allow use of memcmp, etc. #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols #makeoptions KERNEL=foo #Build kernel "foo" and install "/foo" # Only build ext2fs module plus those parts of the sound system I need. #makeoptions MODULES_OVERRIDE="ext2fs sound/sound sound/driver/maestro3" makeoptions DESTDIR=/tmp # # FreeBSD processes are subject to certain limits to their consumption # of system resources. See getrlimit(2) for more details. Each # resource limit has two values, a "soft" limit and a "hard" limit. # The soft limits can be modified during normal system operation, but # the hard limits are set at boot time. Their default values are # in sys//include/vmparam.h. There are two ways to change them: # # 1. Set the values at kernel build time. The options below are one # way to allow that limit to grow to 1GB. They can be increased # further by changing the parameters: # # 2. In /boot/loader.conf, set the tunables kern.maxswzone, # kern.maxbcache, kern.maxtsiz, kern.dfldsiz, kern.maxdsiz, # kern.dflssiz, kern.maxssiz and kern.sgrowsiz. # # The options in /boot/loader.conf override anything in the kernel # configuration file. See the function init_param1 in # sys/kern/subr_param.c for more details. # options MAXDSIZ=(1024UL*1024*1024) options MAXSSIZ=(128UL*1024*1024) options DFLDSIZ=(1024UL*1024*1024) # # BLKDEV_IOSIZE sets the default block size used in user block # device I/O. Note that this value will be overridden by the label # when specifying a block device from a label with a non-0 # partition blocksize. The default is PAGE_SIZE. # options BLKDEV_IOSIZE=8192 # # MAXPHYS and DFLTPHYS # # These are the maximal and safe 'raw' I/O block device access sizes. # Reads and writes will be split into MAXPHYS chunks for known good # devices and DFLTPHYS for the rest. Some applications have better # performance with larger raw I/O access sizes. Note that certain VM # parameters are derived from these values and making them too large # can make an unbootable kernel. # # The defaults are 64K and 128K respectively. options DFLTPHYS=(64*1024) options MAXPHYS=(128*1024) # This allows you to actually store this configuration file into # the kernel binary itself. See config(8) for more details. # options INCLUDE_CONFIG_FILE # Include this file in kernel # # Compile-time defaults for various boot parameters # options BOOTVERBOSE=1 options BOOTHOWTO=RB_MULTIPLE # # Compile-time defaults for dmesg boot tagging # # Default boot tag; may use 'kern.boot_tag' loader tunable to override. The # current boot's tag is also exposed via the 'kern.boot_tag' sysctl. options BOOT_TAG=\"\" # Maximum boot tag size the kernel's static buffer should accommodate. Maximum # size for both BOOT_TAG and the assocated tunable. options BOOT_TAG_SZ=32 options GEOM_BDE # Disk encryption. options GEOM_CACHE # Disk cache. options GEOM_CONCAT # Disk concatenation. options GEOM_ELI # Disk encryption. options GEOM_GATE # Userland services. options GEOM_JOURNAL # Journaling. options GEOM_LABEL # Providers labelization. options GEOM_LINUX_LVM # Linux LVM2 volumes options GEOM_MAP # Map based partitioning options GEOM_MIRROR # Disk mirroring. options GEOM_MULTIPATH # Disk multipath options GEOM_NOP # Test class. options GEOM_PART_APM # Apple partitioning options GEOM_PART_BSD # BSD disklabel options GEOM_PART_BSD64 # BSD disklabel64 options GEOM_PART_EBR # Extended Boot Records options GEOM_PART_GPT # GPT partitioning options GEOM_PART_LDM # Logical Disk Manager options GEOM_PART_MBR # MBR partitioning options GEOM_RAID # Soft RAID functionality. options GEOM_RAID3 # RAID3 functionality. options GEOM_SHSEC # Shared secret. options GEOM_STRIPE # Disk striping. options GEOM_UZIP # Read-only compressed disks options GEOM_VINUM # Vinum logical volume manager options GEOM_VIRSTOR # Virtual storage. options GEOM_ZERO # Performance testing helper. # # The root device and filesystem type can be compiled in; # this provides a fallback option if the root device cannot # be correctly guessed by the bootstrap code, or an override if # the RB_DFLTROOT flag (-r) is specified when booting the kernel. # options ROOTDEVNAME=\"ufs:da0s2e\" ##################################################################### # Scheduler options: # # Specifying one of SCHED_4BSD or SCHED_ULE is mandatory. These options # select which scheduler is compiled in. # # SCHED_4BSD is the historical, proven, BSD scheduler. It has a global run # queue and no CPU affinity which makes it suboptimal for SMP. It has very # good interactivity and priority selection. # # SCHED_ULE provides significant performance advantages over 4BSD on many # workloads on SMP machines. It supports cpu-affinity, per-cpu runqueues # and scheduler locks. It also has a stronger notion of interactivity # which leads to better responsiveness even on uniprocessor machines. This # is the default scheduler. # # SCHED_STATS is a debugging option which keeps some stats in the sysctl # tree at 'kern.sched.stats' and is useful for debugging scheduling decisions. # options SCHED_4BSD options SCHED_STATS #options SCHED_ULE ##################################################################### # SMP OPTIONS: # # SMP enables building of a Symmetric MultiProcessor Kernel. # Mandatory: options SMP # Symmetric MultiProcessor Kernel # EARLY_AP_STARTUP releases the Application Processors earlier in the # kernel startup process (before devices are probed) rather than at the # end. This is a temporary option for use during the transition from # late to early AP startup. options EARLY_AP_STARTUP # MAXCPU defines the maximum number of CPUs that can boot in the system. # A default value should be already present, for every architecture. options MAXCPU=32 # NUMA enables use of Non-Uniform Memory Access policies in various kernel # subsystems. options NUMA # MAXMEMDOM defines the maximum number of memory domains that can boot in the # system. A default value should already be defined by every architecture. options MAXMEMDOM=2 # ADAPTIVE_MUTEXES changes the behavior of blocking mutexes to spin # if the thread that currently owns the mutex is executing on another # CPU. This behavior is enabled by default, so this option can be used # to disable it. options NO_ADAPTIVE_MUTEXES # ADAPTIVE_RWLOCKS changes the behavior of reader/writer locks to spin # if the thread that currently owns the rwlock is executing on another # CPU. This behavior is enabled by default, so this option can be used # to disable it. options NO_ADAPTIVE_RWLOCKS # ADAPTIVE_SX changes the behavior of sx locks to spin if the thread that # currently owns the sx lock is executing on another CPU. # This behavior is enabled by default, so this option can be used to # disable it. options NO_ADAPTIVE_SX # MUTEX_NOINLINE forces mutex operations to call functions to perform each # operation rather than inlining the simple cases. This can be used to # shrink the size of the kernel text segment. Note that this behavior is # already implied by the INVARIANT_SUPPORT, INVARIANTS, KTR, LOCK_PROFILING, # and WITNESS options. options MUTEX_NOINLINE # RWLOCK_NOINLINE forces rwlock operations to call functions to perform each # operation rather than inlining the simple cases. This can be used to # shrink the size of the kernel text segment. Note that this behavior is # already implied by the INVARIANT_SUPPORT, INVARIANTS, KTR, LOCK_PROFILING, # and WITNESS options. options RWLOCK_NOINLINE # SX_NOINLINE forces sx lock operations to call functions to perform each # operation rather than inlining the simple cases. This can be used to # shrink the size of the kernel text segment. Note that this behavior is # already implied by the INVARIANT_SUPPORT, INVARIANTS, KTR, LOCK_PROFILING, # and WITNESS options. options SX_NOINLINE # SMP Debugging Options: # # CALLOUT_PROFILING enables rudimentary profiling of the callwheel data # structure used as backend in callout(9). # PREEMPTION allows the threads that are in the kernel to be preempted by # higher priority [interrupt] threads. It helps with interactivity # and allows interrupt threads to run sooner rather than waiting. # FULL_PREEMPTION instructs the kernel to preempt non-realtime kernel # threads. Its sole use is to expose race conditions and other # bugs during development. Enabling this option will reduce # performance and increase the frequency of kernel panics by # design. If you aren't sure that you need it then you don't. # Relies on the PREEMPTION option. DON'T TURN THIS ON. # SLEEPQUEUE_PROFILING enables rudimentary profiling of the hash table # used to hold active sleep queues as well as sleep wait message # frequency. # TURNSTILE_PROFILING enables rudimentary profiling of the hash table # used to hold active lock queues. # UMTX_PROFILING enables rudimentary profiling of the hash table used # to hold active lock queues. # WITNESS enables the witness code which detects deadlocks and cycles # during locking operations. # WITNESS_KDB causes the witness code to drop into the kernel debugger if # a lock hierarchy violation occurs or if locks are held when going to # sleep. # WITNESS_SKIPSPIN disables the witness checks on spin mutexes. options PREEMPTION options FULL_PREEMPTION options WITNESS options WITNESS_KDB options WITNESS_SKIPSPIN # LOCK_PROFILING - Profiling locks. See LOCK_PROFILING(9) for details. options LOCK_PROFILING # Set the number of buffers and the hash size. The hash size MUST be larger # than the number of buffers. Hash size should be prime. options MPROF_BUFFERS="1536" options MPROF_HASH_SIZE="1543" # Profiling for the callout(9) backend. options CALLOUT_PROFILING # Profiling for internal hash tables. options SLEEPQUEUE_PROFILING options TURNSTILE_PROFILING options UMTX_PROFILING # Debugging traces for epoch(9) misuse options EPOCH_TRACE ##################################################################### # COMPATIBILITY OPTIONS # Old tty interface. options COMPAT_43TTY # Note that as a general rule, COMPAT_FREEBSD depends on # COMPAT_FREEBSD, COMPAT_FREEBSD, etc. # Enable FreeBSD4 compatibility syscalls options COMPAT_FREEBSD4 # Enable FreeBSD5 compatibility syscalls options COMPAT_FREEBSD5 # Enable FreeBSD6 compatibility syscalls options COMPAT_FREEBSD6 # Enable FreeBSD7 compatibility syscalls options COMPAT_FREEBSD7 # Enable FreeBSD9 compatibility syscalls options COMPAT_FREEBSD9 # Enable FreeBSD10 compatibility syscalls options COMPAT_FREEBSD10 # Enable FreeBSD11 compatibility syscalls options COMPAT_FREEBSD11 # Enable FreeBSD12 compatibility syscalls options COMPAT_FREEBSD12 # Enable FreeBSD13 compatibility syscalls options COMPAT_FREEBSD13 # Enable Linux Kernel Programming Interface options COMPAT_LINUXKPI # # These three options provide support for System V Interface # Definition-style interprocess communication, in the form of shared # memory, semaphores, and message queues, respectively. # options SYSVSHM options SYSVSEM options SYSVMSG ##################################################################### # DEBUGGING OPTIONS # # Compile with kernel debugger related code. # options KDB # # Print a stack trace of the current thread on the console for a panic. # options KDB_TRACE # # Don't enter the debugger for a panic. Intended for unattended operation # where you may want to enter the debugger from the console, but still want # the machine to recover from a panic. # options KDB_UNATTENDED # # Enable the ddb debugger backend. # options DDB # # Print the numerical value of symbols in addition to the symbolic # representation. # options DDB_NUMSYM # # Enable the remote gdb debugger backend. # options GDB # # Trashes list pointers when they become invalid (i.e., the element is # removed from a list). Relatively inexpensive to enable. # options QUEUE_MACRO_DEBUG_TRASH # # Stores information about the last caller to modify the list object # in the list object. Requires additional memory overhead. # #options QUEUE_MACRO_DEBUG_TRACE # # SYSCTL_DEBUG enables a 'sysctl' debug tree that can be used to dump the # contents of the registered sysctl nodes on the console. It is disabled by # default because it generates excessively verbose console output that can # interfere with serial console operation. # options SYSCTL_DEBUG # # Enable textdump by default, this disables kernel core dumps. # options TEXTDUMP_PREFERRED # # Enable extra debug messages while performing textdumps. # options TEXTDUMP_VERBOSE # # NO_SYSCTL_DESCR omits the sysctl node descriptions to save space in the # resulting kernel. options NO_SYSCTL_DESCR # # MALLOC_DEBUG_MAXZONES enables multiple uma zones for malloc(9) # allocations that are smaller than a page. The purpose is to isolate # different malloc types into hash classes, so that any buffer # overruns or use-after-free will usually only affect memory from # malloc types in that hash class. This is purely a debugging tool; # by varying the hash function and tracking which hash class was # corrupted, the intersection of the hash classes from each instance # will point to a single malloc type that is being misused. At this # point inspection or memguard(9) can be used to catch the offending # code. # options MALLOC_DEBUG_MAXZONES=8 # # DEBUG_MEMGUARD builds and enables memguard(9), a replacement allocator # for the kernel used to detect modify-after-free scenarios. See the # memguard(9) man page for more information on usage. # options DEBUG_MEMGUARD # # DEBUG_REDZONE enables buffer underflows and buffer overflows detection for # malloc(9). # options DEBUG_REDZONE # # EARLY_PRINTF enables support for calling a special printf (eprintf) # very early in the kernel (before cn_init() has been called). This # should only be used for debugging purposes early in boot. Normally, # it is not defined. It is commented out here because this feature # isn't generally available. And the required eputc() isn't defined. # #options EARLY_PRINTF # # KTRACE enables the system-call tracing facility ktrace(2). To be more # SMP-friendly, KTRACE uses a worker thread to process most trace events # asynchronously to the thread generating the event. This requires a # pre-allocated store of objects representing trace events. The # KTRACE_REQUEST_POOL option specifies the initial size of this store. # The size of the pool can be adjusted both at boottime and runtime via # the kern.ktrace_request_pool tunable and sysctl. # options KTRACE #kernel tracing options KTRACE_REQUEST_POOL=101 # # KTR is a kernel tracing facility imported from BSD/OS. It is # enabled with the KTR option. KTR_ENTRIES defines the number of # entries in the circular trace buffer; it may be an arbitrary number. # KTR_BOOT_ENTRIES defines the number of entries during the early boot, # before malloc(9) is functional. # KTR_COMPILE defines the mask of events to compile into the kernel as # defined by the KTR_* constants in . KTR_MASK defines the # initial value of the ktr_mask variable which determines at runtime # what events to trace. KTR_CPUMASK determines which CPU's log # events, with bit X corresponding to CPU X. The layout of the string # passed as KTR_CPUMASK must match a series of bitmasks each of them # separated by the "," character (ie: # KTR_CPUMASK=0xAF,0xFFFFFFFFFFFFFFFF). KTR_VERBOSE enables # dumping of KTR events to the console by default. This functionality # can be toggled via the debug.ktr_verbose sysctl and defaults to off # if KTR_VERBOSE is not defined. See ktr(4) and ktrdump(8) for details. # options KTR options KTR_BOOT_ENTRIES=1024 options KTR_ENTRIES=(128*1024) options KTR_COMPILE=(KTR_ALL) options KTR_MASK=KTR_INTR options KTR_CPUMASK=0x3 options KTR_VERBOSE # # ALQ(9) is a facility for the asynchronous queuing of records from the kernel # to a vnode, and is employed by services such as ktr(4) to produce trace # files based on a kernel event stream. Records are written asynchronously # in a worker thread. # options ALQ options KTR_ALQ # # The INVARIANTS option is used in a number of source files to enable # extra sanity checking of internal structures. This support is not # enabled by default because of the extra time it would take to check # for these conditions, which can only occur as a result of # programming errors. # options INVARIANTS # # The INVARIANT_SUPPORT option makes us compile in support for # verifying some of the internal structures. It is a prerequisite for # 'INVARIANTS', as enabling 'INVARIANTS' will make these functions be # called. The intent is that you can set 'INVARIANTS' for single # source files (by changing the source file or specifying it on the # command line) if you have 'INVARIANT_SUPPORT' enabled. Also, if you # wish to build a kernel module with 'INVARIANTS', then adding # 'INVARIANT_SUPPORT' to your kernel will provide all the necessary # infrastructure without the added overhead. # options INVARIANT_SUPPORT # # The KASSERT_PANIC_OPTIONAL option allows kasserts to fire without # necessarily inducing a panic. Panic is the default behavior, but # runtime options can configure it either entirely off, or off with a # limit. # options KASSERT_PANIC_OPTIONAL # # The DIAGNOSTIC option is used to enable extra debugging information # and invariants checking. The added checks are too expensive or noisy # for an INVARIANTS kernel and thus are disabled by default. It is # expected that a kernel configured with DIAGNOSTIC will also have the # INVARIANTS option enabled. # options DIAGNOSTIC # # REGRESSION causes optional kernel interfaces necessary only for regression # testing to be enabled. These interfaces may constitute security risks # when enabled, as they permit processes to easily modify aspects of the # run-time environment to reproduce unlikely or unusual (possibly normally # impossible) scenarios. # options REGRESSION # # This option lets some drivers co-exist that can't co-exist in a running # system. This is used to be able to compile all kernel code in one go for # quality assurance purposes (like this file, which the option takes it name # from.) # options COMPILING_LINT # # STACK enables the stack(9) facility, allowing the capture of kernel stack # for the purpose of procinfo(1), etc. stack(9) will also be compiled in # automatically if DDB(4) is compiled into the kernel. # options STACK # # The NUM_CORE_FILES option specifies the limit for the number of core # files generated by a particular process, when the core file format # specifier includes the %I pattern. Since we only have 1 character for # the core count in the format string, meaning the range will be 0-9, the # maximum value allowed for this option is 10. # This core file limit can be adjusted at runtime via the debug.ncores # sysctl. # options NUM_CORE_FILES=5 # # The TSLOG option enables timestamped logging of events, especially # function entries/exits, in order to track the time spent by the kernel. # In particular, this is useful when investigating the early boot process, # before it is possible to use more sophisticated tools like DTrace. # The TSLOGSIZE option controls the size of the (preallocated, fixed # length) buffer used for storing these events (default: 262144 records). # The TSLOG_PAGEZERO option enables TSLOG of pmap_zero_page; this must be # enabled separately since it typically generates too many records to be # useful. # # For security reasons the TSLOG option should not be enabled on systems # used in production. # options TSLOG options TSLOGSIZE=262144 ##################################################################### # PERFORMANCE MONITORING OPTIONS # # The hwpmc driver that allows the use of in-CPU performance monitoring # counters for performance monitoring. The base kernel needs to be configured # with the 'options' line, while the hwpmc device can be either compiled # in or loaded as a loadable kernel module. # # Additional configuration options may be required on specific architectures, # please see hwpmc(4). device hwpmc # Driver (also a loadable module) options HWPMC_DEBUG options HWPMC_HOOKS # Other necessary kernel hooks ##################################################################### # NETWORKING OPTIONS # # Protocol families # options INET #Internet communications protocols options INET6 #IPv6 communications protocols # # Note if you include INET/INET6 or both options # You *must* define at least one of the congestion control # options or the compile will fail. GENERIC defines # options CC_CUBIC. You may want to specify a default # if multiple congestion controls are compiled in. # The string in default is the name of the # cc module as it would appear in the sysctl for # setting the default. The code defines CUBIC # as default, or the sole cc_module compiled in. # options CC_CDG options CC_CHD options CC_CUBIC options CC_DCTCP options CC_HD options CC_HTCP options CC_NEWRENO options CC_VEGAS options CC_DEFAULT=\"cubic\" options RATELIMIT # TX rate limiting support options ROUTETABLES=2 # allocated fibs up to 65536. default is 1. # but that would be a bad idea as they are large. options TCP_OFFLOAD # TCP offload support. options TCP_RFC7413 # TCP Fast Open options TCPHPTS makeoptions WITH_EXTRA_TCP_STACKS=1 # RACK and BBR TCP kernel modules # In order to enable IPSEC you MUST also add device crypto to # your kernel configuration options IPSEC #IP security (requires device crypto) # Option IPSEC_SUPPORT does not enable IPsec, but makes it possible to # load it as a kernel module. You still MUST add device crypto to your kernel # configuration. options IPSEC_SUPPORT #options IPSEC_DEBUG #debug for IP security # TLS framing and encryption/decryption of data over TCP sockets. options KERN_TLS # TLS transmit and receive offload # Netlink kernel/user<>kernel/user messaging interface options NETLINK # # SMB/CIFS requester # NETSMB enables support for SMB protocol, it requires LIBMCHAIN and LIBICONV # options. options NETSMB #SMB/CIFS requester # mchain library. It can be either loaded as KLD or compiled into kernel options LIBMCHAIN # libalias library, performing NAT options LIBALIAS # # SCTP is a NEW transport protocol defined by # RFC2960 updated by RFC3309 and RFC3758.. and # soon to have a new base RFC and many many more # extensions. This release supports all the extensions # including many drafts (most about to become RFC's). # It is the reference implementation of SCTP # and is quite well tested. # # Note YOU MUST have both INET and INET6 defined. # You don't have to enable V6, but SCTP is # dual stacked and so far we have not torn apart # the V6 and V4.. since an association can span # both a V6 and V4 address at the SAME time :-) # # The SCTP_SUPPORT option does not enable SCTP, but provides the necessary # support for loading SCTP as a loadable kernel module. # options SCTP options SCTP_SUPPORT # There are bunches of options: # this one turns on all sorts of # nastily printing that you can # do. It's all controlled by a # bit mask (settable by socket opt and # by sysctl). Including will not cause # logging until you set the bits.. but it # can be quite verbose.. so without this # option we don't do any of the tests for # bits and prints.. which makes the code run # faster.. if you are not debugging don't use. options SCTP_DEBUG # # All that options after that turn on specific types of # logging. You can monitor CWND growth, flight size # and all sorts of things. Go look at the code and # see. I have used this to produce interesting # charts and graphs as well :-> # # I have not yet committed the tools to get and print # the logs, I will do that eventually .. before then # if you want them send me an email rrs@freebsd.org # You basically must have ktr(4) enabled for these # and you then set the sysctl to turn on/off various # logging bits. Use ktrdump(8) to pull the log and run # it through a display program.. and graphs and other # things too. # options SCTP_LOCK_LOGGING options SCTP_MBUF_LOGGING options SCTP_MBCNT_LOGGING options SCTP_PACKET_LOGGING options SCTP_LTRACE_CHUNKS options SCTP_LTRACE_ERRORS # altq(9). Enable the base part of the hooks with the ALTQ option. # Individual disciplines must be built into the base system and can not be # loaded as modules at this point. ALTQ requires a stable TSC so if yours is # broken or changes with CPU throttling then you must also have the ALTQ_NOPCC # option. options ALTQ options ALTQ_CBQ # Class Based Queueing options ALTQ_RED # Random Early Detection options ALTQ_RIO # RED In/Out options ALTQ_CODEL # CoDel Active Queueing options ALTQ_HFSC # Hierarchical Packet Scheduler options ALTQ_FAIRQ # Fair Packet Scheduler options ALTQ_CDNR # Traffic conditioner options ALTQ_PRIQ # Priority Queueing options ALTQ_NOPCC # Required if the TSC is unusable options ALTQ_DEBUG # netgraph(4). Enable the base netgraph code with the NETGRAPH option. # Individual node types can be enabled with the corresponding option # listed below; however, this is not strictly necessary as netgraph # will automatically load the corresponding KLD module if the node type # is not already compiled into the kernel. Each type below has a # corresponding man page, e.g., ng_async(8). options NETGRAPH # netgraph(4) system options NETGRAPH_DEBUG # enable extra debugging, this # affects netgraph(4) and nodes # Node types options NETGRAPH_ASYNC options NETGRAPH_BLUETOOTH # ng_bluetooth(4) options NETGRAPH_BLUETOOTH_HCI # ng_hci(4) options NETGRAPH_BLUETOOTH_L2CAP # ng_l2cap(4) options NETGRAPH_BLUETOOTH_SOCKET # ng_btsocket(4) options NETGRAPH_BLUETOOTH_UBT # ng_ubt(4) options NETGRAPH_BLUETOOTH_UBTBCMFW # ubtbcmfw(4) options NETGRAPH_BPF options NETGRAPH_BRIDGE options NETGRAPH_CAR options NETGRAPH_CHECKSUM options NETGRAPH_CISCO options NETGRAPH_DEFLATE options NETGRAPH_DEVICE options NETGRAPH_ECHO options NETGRAPH_EIFACE options NETGRAPH_ETHER options NETGRAPH_FRAME_RELAY options NETGRAPH_GIF options NETGRAPH_GIF_DEMUX options NETGRAPH_HOLE options NETGRAPH_IFACE options NETGRAPH_IP_INPUT options NETGRAPH_IPFW options NETGRAPH_KSOCKET options NETGRAPH_L2TP options NETGRAPH_LMI options NETGRAPH_MPPC_COMPRESSION options NETGRAPH_MPPC_ENCRYPTION options NETGRAPH_NETFLOW options NETGRAPH_NAT options NETGRAPH_ONE2MANY options NETGRAPH_PATCH options NETGRAPH_PIPE options NETGRAPH_PPP options NETGRAPH_PPPOE options NETGRAPH_PPTPGRE options NETGRAPH_PRED1 options NETGRAPH_RFC1490 options NETGRAPH_SOCKET options NETGRAPH_SPLIT options NETGRAPH_TAG options NETGRAPH_TCPMSS options NETGRAPH_TEE options NETGRAPH_UI options NETGRAPH_VJC options NETGRAPH_VLAN # Network stack virtualization. options VIMAGE options VNET_DEBUG # debug for VIMAGE # # Network interfaces: # The `loop' device is MANDATORY when networking is enabled. device loop # The `ether' device provides generic code to handle # Ethernets; it is MANDATORY when an Ethernet device driver is # configured. device ether # The `vlan' device implements the VLAN tagging of Ethernet frames # according to IEEE 802.1Q. device vlan # The `vxlan' device implements the VXLAN encapsulation of Ethernet # frames in UDP packets according to RFC7348. device vxlan # The `wlan' device provides generic code to support 802.11 # drivers, including host AP mode; it is MANDATORY for the wi, # and ath drivers and will eventually be required by all 802.11 drivers. device wlan options IEEE80211_DEBUG #enable debugging msgs options IEEE80211_SUPPORT_MESH #enable 802.11s D3.0 support options IEEE80211_SUPPORT_TDMA #enable TDMA support # The `wlan_wep', `wlan_tkip', and `wlan_ccmp' devices provide # support for WEP, TKIP, and AES-CCMP crypto protocols optionally # used with 802.11 devices that depend on the `wlan' module. device wlan_wep device wlan_ccmp device wlan_tkip # The `wlan_xauth' device provides support for external (i.e. user-mode) # authenticators for use with 802.11 drivers that use the `wlan' # module and support 802.1x and/or WPA security protocols. device wlan_xauth # The `wlan_acl' device provides a MAC-based access control mechanism # for use with 802.11 drivers operating in ap mode and using the # `wlan' module. # The 'wlan_amrr' device provides AMRR transmit rate control algorithm device wlan_acl device wlan_amrr # The `bpf' device enables the Berkeley Packet Filter. Be # aware of the legal and administrative consequences of enabling this # option. DHCP requires bpf. device bpf # The `netmap' device implements memory-mapped access to network # devices from userspace, enabling wire-speed packet capture and # generation even at 10Gbit/s. Requires support in the device # driver. Supported drivers are ixgbe, e1000, re. device netmap # The `disc' device implements a minimal network interface, # which throws away all packets sent and never receives any. It is # included for testing and benchmarking purposes. device disc # The `epair' device implements a virtual back-to-back connected Ethernet # like interface pair. device epair # The `edsc' device implements a minimal Ethernet interface, # which discards all packets sent and receives none. device edsc # The `tuntap' device implements (user-)ppp, nos-tun(8) and a pty-like virtual # Ethernet interface device tuntap # The `gif' device implements IPv6 over IP4 tunneling, # IPv4 over IPv6 tunneling, IPv4 over IPv4 tunneling and # IPv6 over IPv6 tunneling. # The `gre' device implements GRE (Generic Routing Encapsulation) tunneling, # as specified in the RFC 2784 and RFC 2890. # The `me' device implements Minimal Encapsulation within IPv4 as # specified in the RFC 2004. # The XBONEHACK option allows the same pair of addresses to be configured on # multiple gif interfaces. device gif device gre device me options XBONEHACK # The `stf' device implements 6to4 encapsulation. device stf # The pf packet filter consists of three devices: # The `pf' device provides /dev/pf and the firewall code itself. # The `pflog' device provides the pflog0 interface which logs packets. # The `pfsync' device provides the pfsync0 interface used for # synchronization of firewall state tables (over the net). device pf device pflog device pfsync # Bridge interface. device if_bridge # Common Address Redundancy Protocol. See carp(4) for more details. device carp # IPsec interface. device enc # Link aggregation interface. device lagg # WireGuard interface. device wg # # Internet family options: # # MROUTING enables the kernel multicast packet forwarder, which works # with mrouted and XORP. # # IPFIREWALL enables support for IP firewall construction, in # conjunction with the `ipfw' program. IPFIREWALL_VERBOSE sends # logged packets to the system logger. IPFIREWALL_VERBOSE_LIMIT # limits the number of times a matching entry can be logged. # # WARNING: IPFIREWALL defaults to a policy of "deny ip from any to any" # and if you do not add other rules during startup to allow access, # YOU WILL LOCK YOURSELF OUT. It is suggested that you set firewall_type=open # in /etc/rc.conf when first enabling this feature, then refining the # firewall rules in /etc/rc.firewall after you've tested that the new kernel # feature works properly. # # IPFIREWALL_DEFAULT_TO_ACCEPT causes the default rule (at boot) to # allow everything. Use with care, if a cracker can crash your # firewall machine, they can get to your protected machines. However, # if you are using it as an as-needed filter for specific problems as # they arise, then this may be for you. Changing the default to 'allow' # means that you won't get stuck if the kernel and /sbin/ipfw binary get # out of sync. # # IPDIVERT enables the divert IP sockets, used by ``ipfw divert''. It # depends on IPFIREWALL if compiled into the kernel. # # IPFIREWALL_NAT adds support for in kernel nat in ipfw, and it requires # LIBALIAS. # # IPFIREWALL_NAT64 adds support for in kernel NAT64 in ipfw. # # IPFIREWALL_NPTV6 adds support for in kernel NPTv6 in ipfw. # # IPFIREWALL_PMOD adds support for protocols modification module. Currently # it supports only TCP MSS modification. # # IPSTEALTH enables code to support stealth forwarding (i.e., forwarding # packets without touching the TTL). This can be useful to hide firewalls # from traceroute and similar tools. # # PF_DEFAULT_TO_DROP causes the default pf(4) rule to deny everything. # # TCPPCAP enables code which keeps the last n packets sent and received # on a TCP socket. # # TCP_BLACKBOX enables enhanced TCP event logging. # # TCP_HHOOK enables the hhook(9) framework hooks for the TCP stack. # # ROUTE_MPATH provides support for multipath routing. # options MROUTING # Multicast routing options IPFIREWALL #firewall options IPFIREWALL_VERBOSE #enable logging to syslogd(8) options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default options IPFIREWALL_NAT #ipfw kernel nat support options IPFIREWALL_NAT64 #ipfw kernel NAT64 support options IPFIREWALL_NPTV6 #ipfw kernel IPv6 NPT support options IPDIVERT #divert sockets options IPFILTER #ipfilter support options IPFILTER_LOG #ipfilter logging options IPFILTER_LOOKUP #ipfilter pools options IPFILTER_DEFAULT_BLOCK #block all packets by default options IPSTEALTH #support for stealth forwarding options PF_DEFAULT_TO_DROP #drop everything by default options TCPPCAP options TCP_BLACKBOX options TCP_HHOOK options ROUTE_MPATH # The MBUF_STRESS_TEST option enables options which create # various random failures / extreme cases related to mbuf # functions. See mbuf(9) for a list of available test cases. # MBUF_PROFILING enables code to profile the mbuf chains # exiting the system (via participating interfaces) and # return a logarithmic histogram of monitored parameters # (e.g. packet size, wasted space, number of mbufs in chain). options MBUF_STRESS_TEST options MBUF_PROFILING # Statically link in accept filters options ACCEPT_FILTER_DATA options ACCEPT_FILTER_DNS options ACCEPT_FILTER_HTTP # TCP_SIGNATURE adds support for RFC 2385 (TCP-MD5) digests. These are # carried in TCP option 19. This option is commonly used to protect # TCP sessions (e.g. BGP) where IPSEC is not available nor desirable. # This is enabled on a per-socket basis using the TCP_MD5SIG socket option. # This requires the use of 'device crypto' and either 'options IPSEC' or # 'options IPSEC_SUPPORT'. options TCP_SIGNATURE #include support for RFC 2385 # DUMMYNET enables the "dummynet" bandwidth limiter. You need IPFIREWALL # as well. See dummynet(4) and ipfw(8) for more info. When you run # DUMMYNET, HZ/kern.hz should be at least 1000 for adequate response. options DUMMYNET # The DEBUGNET option enables a basic debug/panic-time networking API. It # is used by NETDUMP and NETGDB. options DEBUGNET # The NETDUMP option enables netdump(4) client support in the kernel. # This allows a panicking kernel to transmit a kernel dump to a remote host. options NETDUMP # The NETGDB option enables netgdb(4) support in the kernel. This allows a # panicking kernel to be debugged as a GDB remote over the network. options NETGDB ##################################################################### # FILESYSTEM OPTIONS # # Only the root filesystem needs to be statically compiled or preloaded # as module; everything else will be automatically loaded at mount # time. Some people still prefer to statically compile other # filesystems as well. # # NB: The UNION filesystem was known to be buggy in the past. It is now # being actively maintained, although there are still some issues being # resolved. # # One of these is mandatory: options FFS #Fast filesystem options NFSCL #Network File System client # The rest are optional: options AUTOFS #Automounter filesystem options CD9660 #ISO 9660 filesystem options FDESCFS #File descriptor filesystem options FUSEFS #FUSEFS support module options MSDOSFS #MS DOS File System (FAT, FAT32) options NFSLOCKD #Network Lock Manager options NFSD #Network Filesystem Server options KGSSAPI #Kernel GSSAPI implementation options NULLFS #NULL filesystem options PROCFS #Process filesystem (requires PSEUDOFS) options PSEUDOFS #Pseudo-filesystem framework options PSEUDOFS_TRACE #Debugging support for PSEUDOFS options SMBFS #SMB/CIFS filesystem options TMPFS #Efficient memory filesystem options UDF #Universal Disk Format options UNIONFS #Union filesystem # The xFS_ROOT options REQUIRE the associated ``options xFS'' options NFS_ROOT #NFS usable as root device # Soft updates is a technique for improving filesystem speed and # making abrupt shutdown less risky. # options SOFTUPDATES # Extended attributes allow additional data to be associated with files, # and is used for ACLs, Capabilities, and MAC labels. # See src/sys/ufs/ufs/README.extattr for more information. options UFS_EXTATTR options UFS_EXTATTR_AUTOSTART # Access Control List support for UFS filesystems. The current ACL # implementation requires extended attribute support, UFS_EXTATTR, # for the underlying filesystem. # See src/sys/ufs/ufs/README.acls for more information. options UFS_ACL # Directory hashing improves the speed of operations on very large # directories at the expense of some memory. options UFS_DIRHASH # Gjournal-based UFS journaling support. options UFS_GJOURNAL # Make space in the kernel for a root filesystem on a md device. # Define to the number of kilobytes to reserve for the filesystem. # This is now optional. # If not defined, the root filesystem passed in as the MFS_IMAGE makeoption # will be automatically embedded in the kernel during linking. Its exact size # will be consumed within the kernel. # If defined, the old way of embedding the filesystem in the kernel will be # used. That is to say MD_ROOT_SIZE KB will be allocated in the kernel and # later, the filesystem image passed in as the MFS_IMAGE makeoption will be # dd'd into the reserved space if it fits. options MD_ROOT_SIZE=10 # Make the md device a potential root device, either with preloaded # images of type mfs_root or md_root. options MD_ROOT # Write-protect the md root device so that it may not be mounted writeable. options MD_ROOT_READONLY # Allow to read MD image from external memory regions options MD_ROOT_MEM # Disk quotas are supported when this option is enabled. options QUOTA #enable disk quotas # If you are running a machine just as a fileserver for PC and MAC # users, using SAMBA, you may consider setting this option # and keeping all those users' directories on a filesystem that is # mounted with the suiddir option. This gives new files the same # ownership as the directory (similar to group). It's a security hole # if you let these users run programs, so confine it to file-servers # (but it'll save you lots of headaches in those cases). Root owned # directories are exempt and X bits are cleared. The suid bit must be # set on the directory as well; see chmod(1). PC owners can't see/set # ownerships so they keep getting their toes trodden on. This saves # you all the support calls as the filesystem it's used on will act as # they expect: "It's my dir so it must be my file". # options SUIDDIR # NFS options: options NFS_MINATTRTIMO=3 # VREG attrib cache timeout in sec options NFS_MAXATTRTIMO=60 options NFS_MINDIRATTRTIMO=30 # VDIR attrib cache timeout in sec options NFS_MAXDIRATTRTIMO=60 options NFS_DEBUG # Enable NFS Debugging # # Add support for the EXT2FS filesystem of Linux fame. Be a bit # careful with this - the ext2fs code has a tendency to lag behind # changes and not be exercised very much, so mounting read/write could # be dangerous (and even mounting read only could result in panics.) # options EXT2FS # The system memory devices; /dev/mem, /dev/kmem device mem # The kernel symbol table device; /dev/ksyms device ksyms # Optional character code conversion support with LIBICONV. # Each option requires their base file system and LIBICONV. options CD9660_ICONV options MSDOSFS_ICONV options UDF_ICONV ##################################################################### # POSIX P1003.1B # Real time extensions added in the 1993 POSIX # _KPOSIX_PRIORITY_SCHEDULING: Build in _POSIX_PRIORITY_SCHEDULING options _KPOSIX_PRIORITY_SCHEDULING # p1003_1b_semaphores are very experimental, # user should be ready to assist in debugging if problems arise. options P1003_1B_SEMAPHORES # POSIX message queue options P1003_1B_MQUEUE ##################################################################### # SECURITY POLICY PARAMETERS # Support for BSM audit options AUDIT # Support for Mandatory Access Control (MAC): options MAC options MAC_BIBA options MAC_BSDEXTENDED options MAC_DDB options MAC_IFOFF options MAC_IPACL options MAC_LOMAC options MAC_MLS options MAC_NONE options MAC_NTPD options MAC_PARTITION options MAC_PORTACL options MAC_PRIORITY options MAC_SEEOTHERUIDS options MAC_STUB options MAC_TEST options MAC_VERIEXEC options MAC_VERIEXEC_SHA1 options MAC_VERIEXEC_SHA256 options MAC_VERIEXEC_SHA384 options MAC_VERIEXEC_SHA512 device mac_veriexec_parser # Support for Capsicum options CAPABILITIES # fine-grained rights on file descriptors options CAPABILITY_MODE # sandboxes with no global namespace access ##################################################################### # CLOCK OPTIONS # The granularity of operation is controlled by the kernel option HZ (default # frequency of 1000 Hz or a period 1ms between calls). Virtual machine guests # use a value of 100. Lower values may lower overhead at the expense of accuracy # of scheduling, though the adaptive tick code reduces that overhead. options HZ=100 # Enable support for the kernel PLL to use an external PPS signal, # under supervision of [x]ntpd(8) # More info in ntpd documentation: http://www.eecis.udel.edu/~ntp options PPS_SYNC # Enable support for generic feed-forward clocks in the kernel. # The feed-forward clock support is an alternative to the feedback oriented # ntpd/system clock approach, and is to be used with a feed-forward # synchronization algorithm such as the RADclock: # More info here: http://www.synclab.org/radclock options FFCLOCK ##################################################################### # SCSI DEVICES # SCSI DEVICE CONFIGURATION # The SCSI subsystem consists of the `base' SCSI code, a number of # high-level SCSI device `type' drivers, and the low-level host-adapter # device drivers. The host adapters are listed in the ISA and PCI # device configuration sections below. # # It is possible to wire down your SCSI devices so that a given bus, # target, and LUN always come on line as the same device unit. In # earlier versions the unit numbers were assigned in the order that # the devices were probed on the SCSI bus. This means that if you # removed a disk drive, you may have had to rewrite your /etc/fstab # file, and also that you had to be careful when adding a new disk # as it may have been probed earlier and moved your device configuration # around. # This old behavior is maintained as the default behavior. The unit # assignment begins with the first non-wired down unit for a device # type. For example, if you wire a disk as "da3" then the first # non-wired disk will be assigned da4. # The syntax for wiring down devices is: envvar hint.scbus.0.at="ahc0" envvar hint.scbus.1.at="ahc1" envvar hint.scbus.1.bus="0" envvar hint.scbus.3.at="ahc2" envvar hint.scbus.3.bus="0" envvar hint.scbus.2.at="ahc2" envvar hint.scbus.2.bus="1" envvar hint.da.0.at="scbus0" envvar hint.da.0.target="0" envvar hint.da.0.unit="0" envvar hint.da.1.at="scbus3" envvar hint.da.1.target="1" envvar hint.da.2.at="scbus2" envvar hint.da.2.target="3" envvar hint.sa.1.at="scbus1" envvar hint.sa.1.target="6" # "units" (SCSI logical unit number) that are not specified are # treated as if specified as LUN 0. # All SCSI devices allocate as many units as are required. # The ch driver drives SCSI Media Changer ("jukebox") devices. # # The da driver drives SCSI Direct Access ("disk") and Optical Media # ("WORM") devices. # # The sa driver drives SCSI Sequential Access ("tape") devices. # # The cd driver drives SCSI Read Only Direct Access ("cd") devices. # # The ses driver drives SCSI Environment Services ("ses") and # SAF-TE ("SCSI Accessible Fault-Tolerant Enclosure") devices. # # The pt driver drives SCSI Processor devices. # # The sg driver provides a passthrough API that is compatible with the # Linux SG driver. It will work in conjunction with the Linuxulator # to run linux SG apps. It can also stand on its own and provide # source level API compatibility for porting apps to FreeBSD. # # Target Mode support is provided here but also requires that a SIM # (SCSI Host Adapter Driver) provide support as well. # # The targ driver provides target mode support as a Processor type device. # It exists to give the minimal context necessary to respond to Inquiry # commands. There is a sample user application that shows how the rest # of the command support might be done in /usr/share/examples/scsi_target. # # The targbh driver provides target mode support and exists to respond # to incoming commands that do not otherwise have a logical unit assigned # to them. # # The pass driver provides a passthrough API to access the CAM subsystem. device scbus #base SCSI code device ch #SCSI media changers device da #SCSI direct access devices (aka disks) device sa #SCSI tapes device cd #SCSI CD-ROMs device ses #Enclosure Services (SES and SAF-TE) device pt #SCSI processor device targ #SCSI Target Mode Code device targbh #SCSI Target Mode Blackhole Device device pass #CAM passthrough driver device sg #Linux SCSI passthrough device ctl #CAM Target Layer # CAM OPTIONS: # debugging options: # CAMDEBUG Compile in all possible debugging. # CAM_DEBUG_COMPILE Debug levels to compile in. # CAM_DEBUG_FLAGS Debug levels to enable on boot. # CAM_DEBUG_BUS Limit debugging to the given bus. # CAM_DEBUG_TARGET Limit debugging to the given target. # CAM_DEBUG_LUN Limit debugging to the given lun. # CAM_DEBUG_DELAY Delay in us after printing each debug line. # CAM_IO_STATS Publish additional CAM device statics by sysctl # # CAM_MAX_HIGHPOWER: Maximum number of concurrent high power (start unit) cmds # SCSI_NO_SENSE_STRINGS: When defined disables sense descriptions # SCSI_NO_OP_STRINGS: When defined disables opcode descriptions # SCSI_DELAY: The number of MILLISECONDS to freeze the SIM (scsi adapter) # queue after a bus reset, and the number of milliseconds to # freeze the device queue after a bus device reset. This # can be changed at boot and runtime with the # kern.cam.scsi_delay tunable/sysctl. options CAMDEBUG options CAM_DEBUG_COMPILE=-1 options CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH) options CAM_DEBUG_BUS=-1 options CAM_DEBUG_TARGET=-1 options CAM_DEBUG_LUN=-1 options CAM_DEBUG_DELAY=1 options CAM_MAX_HIGHPOWER=4 options SCSI_NO_SENSE_STRINGS options SCSI_NO_OP_STRINGS options SCSI_DELAY=5000 # Be pessimistic about Joe SCSI device options CAM_IOSCHED_DYNAMIC options CAM_IO_STATS options CAM_TEST_FAILURE # Options for the CAM CDROM driver: # CHANGER_MIN_BUSY_SECONDS: Guaranteed minimum time quantum for a changer LUN # CHANGER_MAX_BUSY_SECONDS: Maximum time quantum per changer LUN, only # enforced if there is I/O waiting for another LUN # The compiled in defaults for these variables are 2 and 10 seconds, # respectively. # # These can also be changed on the fly with the following sysctl variables: # kern.cam.cd.changer.min_busy_seconds # kern.cam.cd.changer.max_busy_seconds # options CHANGER_MIN_BUSY_SECONDS=2 options CHANGER_MAX_BUSY_SECONDS=10 # Options for the CAM sequential access driver: # SA_IO_TIMEOUT: Timeout for read/write/wfm operations, in minutes # SA_SPACE_TIMEOUT: Timeout for space operations, in minutes # SA_REWIND_TIMEOUT: Timeout for rewind operations, in minutes # SA_ERASE_TIMEOUT: Timeout for erase operations, in minutes # SA_1FM_AT_EOD: Default to model which only has a default one filemark at EOT. options SA_IO_TIMEOUT=4 options SA_SPACE_TIMEOUT=60 options SA_REWIND_TIMEOUT=(2*60) options SA_ERASE_TIMEOUT=(4*60) options SA_1FM_AT_EOD # Optional timeout for the CAM processor target (pt) device # This is specified in seconds. The default is 60 seconds. options SCSI_PT_DEFAULT_TIMEOUT=60 # Optional enable of doing SES passthrough on other devices (e.g., disks) # # Normally disabled because a lot of newer SCSI disks report themselves # as having SES capabilities, but this can then clot up attempts to build # a topology with the SES device that's on the box these drives are in.... options SES_ENABLE_PASSTHROUGH ##################################################################### # MISCELLANEOUS DEVICES AND OPTIONS device pty #BSD-style compatibility pseudo ttys device nmdm #back-to-back tty devices device md #Memory/malloc disk device snp #Snoop device - to look at pty/vty/etc.. device ccd #Concatenated disk driver device firmware #firmware(9) support # Kernel side iconv library options LIBICONV # Size of the kernel message buffer. Should be N * pagesize. options MSGBUF_SIZE=40960 ##################################################################### # HARDWARE BUS CONFIGURATION # # PCI bus & PCI options: # device pci options PCI_HP # PCI-Express native HotPlug options PCI_IOV # PCI SR-IOV support ##################################################################### # HARDWARE DEVICE CONFIGURATION # For ISA the required hints are listed. # PCI, CardBus, and SD/MMC are self identifying buses, so # no hints are needed. # # Mandatory devices: # # These options are valid for other keyboard drivers as well. options KBD_DISABLE_KEYMAP_LOAD # refuse to load a keymap options KBD_INSTALL_CDEV # install a CDEV entry in /dev # Define keyboard latency (try 200/15 for a snappy interactive console) options KBD_DELAY1=200 # define initial key delay options KBD_DELAY2=15 # define key delay device kbdmux # keyboard multiplexer options KBDMUX_DFLT_KEYMAP # specify the built-in keymap makeoptions KBDMUX_DFLT_KEYMAP=it.iso options FB_DEBUG # Frame buffer debugging # Enable experimental features of the syscons terminal emulator (teken). options TEKEN_CONS25 # cons25-style terminal emulation options TEKEN_UTF8 # UTF-8 output handling # The vt video console driver. device vt options VT_ALT_TO_ESC_HACK=1 # Prepend ESC sequence to ALT keys options VT_MAXWINDOWS=16 # Number of virtual consoles options VT_TWOBUTTON_MOUSE # Use right mouse button to paste # The following options set the maximum framebuffer size. options VT_FB_MAX_HEIGHT=480 options VT_FB_MAX_WIDTH=640 # The following options will let you change the default vt terminal colors. options TERMINAL_NORM_ATTR=(FG_GREEN|BG_BLACK) options TERMINAL_KERN_ATTR=(FG_LIGHTRED|BG_BLACK) # # Optional devices: # # # SCSI host adapters: # # aacraid: Adaptec by PMC RAID controllers, Series 6/7/8 and upcoming # families. Container interface, CAM required. # ahc: Adaptec 274x/284x/2910/293x/294x/394x/3950x/3960x/398X/4944/ # 19160x/29160x, aic7770/aic78xx # ahd: Adaptec 29320/39320 Controllers. # isp: Qlogic ISP 1020, 1040 and 1040B PCI SCSI host adapters, # ISP 1240 Dual Ultra SCSI, ISP 1080 and 1280 (Dual) Ultra2, # ISP 12160 Ultra3 SCSI, # Qlogic ISP 2100 and ISP 2200 1Gb Fibre Channel host adapters. # Qlogic ISP 2300 and ISP 2312 2Gb Fibre Channel host adapters. # Qlogic ISP 2322 and ISP 6322 2Gb Fibre Channel host adapters. # ispfw: Firmware module for Qlogic host adapters # mpr: LSI-Logic MPT/Fusion Gen 3 # mps: LSI-Logic MPT/Fusion Gen 2 # mpt: LSI-Logic MPT/Fusion 53c1020 or 53c1030 Ultra4 # or FC9x9 Fibre Channel host adapters. # sym: Symbios/Logic 53C8XX family of PCI-SCSI I/O processors: # 53C810, 53C810A, 53C815, 53C825, 53C825A, 53C860, 53C875, # 53C876, 53C885, 53C895, 53C895A, 53C896, 53C897, 53C1510D, # 53C1010-33, 53C1010-66. device aacraid device ahc device ahd device isp envvar hint.isp.0.disable="1" envvar hint.isp.0.role="3" envvar hint.isp.0.prefer_iomap="1" envvar hint.isp.0.prefer_memmap="1" envvar hint.isp.0.fwload_disable="1" envvar hint.isp.0.ignore_nvram="1" envvar hint.isp.0.fullduplex="1" envvar hint.isp.0.topology="lport" envvar hint.isp.0.topology="nport" envvar hint.isp.0.topology="lport-only" envvar hint.isp.0.topology="nport-only" # we can't get u_int64_t types, nor can we get strings if it's got # a leading 0x, hence this silly dodge. envvar hint.isp.0.portwnn="w50000000aaaa0000" envvar hint.isp.0.nodewnn="w50000000aaaa0001" device ispfw device mpr # LSI-Logic MPT-Fusion 3 device mps # LSI-Logic MPT-Fusion 2 device mpt # LSI-Logic MPT-Fusion device sym # The aic7xxx driver will attempt to use memory mapped I/O for all PCI # controllers that have it configured only if this option is set. Unfortunately, # this doesn't work on some motherboards, which prevents it from being the # default. options AHC_ALLOW_MEMIO # Dump the contents of the ahc controller configuration PROM. options AHC_DUMP_EEPROM # Bitmap of units to enable targetmode operations. options AHC_TMODE_ENABLE # Compile in Aic7xxx Debugging code. options AHC_DEBUG # Aic7xxx driver debugging options. See sys/dev/aic7xxx/aic7xxx.h options AHC_DEBUG_OPTS # Print register bitfields in debug output. Adds ~128k to driver # See ahc(4). options AHC_REG_PRETTY_PRINT # Compile in aic79xx debugging code. options AHD_DEBUG # Aic79xx driver debugging options. Adds ~215k to driver. See ahd(4). options AHD_DEBUG_OPTS=0xFFFFFFFF # Print human-readable register definitions when debugging options AHD_REG_PRETTY_PRINT # Bitmap of units to enable targetmode operations. options AHD_TMODE_ENABLE # Options used in dev/iscsi (Software iSCSI stack) # options ISCSI_INITIATOR_DEBUG=9 # Options used in dev/isp/ (Qlogic SCSI/FC driver). # # ISP_TARGET_MODE - enable target mode operation # options ISP_TARGET_MODE=1 # # ISP_DEFAULT_ROLES - default role # none=0 # target=1 # initiator=2 # both=3 (not supported currently) # # ISP_INTERNAL_TARGET (trivial internal disk target, for testing) # options ISP_DEFAULT_ROLES=0 #options SYM_SETUP_SCSI_DIFF #-HVD support for 825a, 875, 885 # disabled:0 (default), enabled:1 #options SYM_SETUP_PCI_PARITY #-PCI parity checking # disabled:0, enabled:1 (default) #options SYM_SETUP_MAX_LUN #-Number of LUNs supported # default:8, range:[1..64] # # Compaq "CISS" RAID controllers (SmartRAID 5* series) # These controllers have a SCSI-like interface, and require the # CAM infrastructure. # device ciss # # Compaq Smart RAID, Mylex DAC960 and AMI MegaRAID controllers. Only # one entry is needed; the code will find and configure all supported # controllers. # device ida # Compaq Smart RAID device mlx # Mylex DAC960 device mfi # LSI MegaRAID SAS device mfip # LSI MegaRAID SAS passthrough, requires CAM options MFI_DEBUG device mrsas # LSI/Avago MegaRAID SAS/SATA, 6Gb/s and 12Gb/s # # Serial ATA host controllers: # # ahci: Advanced Host Controller Interface (AHCI) compatible # mvs: Marvell 88SX50XX/88SX60XX/88SX70XX/SoC controllers # siis: SiliconImage SiI3124/SiI3132/SiI3531 controllers # # These drivers are part of cam(4) subsystem. They supersede less featured # ata(4) subsystem drivers, supporting same hardware. device ahci device mvs device siis # # The 'ATA' driver supports all legacy ATA/ATAPI controllers, including # PC Card devices. You only need one "device ata" for it to find all # PCI and PC Card ATA/ATAPI devices on modern machines. # Alternatively, individual bus and chipset drivers may be chosen by using # the 'atacore' driver then selecting the drivers on a per vendor basis. # For example to build a system which only supports a VIA chipset, # omit 'ata' and include the 'atacore', 'atapci' and 'atavia' drivers. device ata # Modular ATA #device atacore # Core ATA functionality #device ataisa # ISA bus support #device atapci # PCI bus support; only generic chipset support # PCI ATA chipsets #device ataacard # ACARD #device ataacerlabs # Acer Labs Inc. (ALI) #device ataamd # American Micro Devices (AMD) #device ataati # ATI #device atacenatek # Cenatek #device atacypress # Cypress #device atacyrix # Cyrix #device atahighpoint # HighPoint #device ataintel # Intel #device ataite # Integrated Technology Inc. (ITE) #device atajmicron # JMicron #device atamarvell # Marvell #device atamicron # Micron #device atanational # National #device atanetcell # NetCell #device atanvidia # nVidia #device atapromise # Promise #device ataserverworks # ServerWorks #device atasiliconimage # Silicon Image Inc. (SiI) (formerly CMD) #device atasis # Silicon Integrated Systems Corp.(SiS) #device atavia # VIA Technologies Inc. # # For older non-PCI, non-PnPBIOS systems, these are the hints lines to add: envvar hint.ata.0.at="isa" envvar hint.ata.0.port="0x1f0" envvar hint.ata.0.irq="14" envvar hint.ata.1.at="isa" envvar hint.ata.1.port="0x170" envvar hint.ata.1.irq="15" # # uart: generic driver for serial interfaces. # device uart # Options for uart(4) options UART_PPS_ON_CTS # Do time pulse capturing using CTS # instead of DCD. options UART_POLL_FREQ # Set polling rate, used when hw has # no interrupt support (50 Hz default). # The following hint should only be used for pure ISA devices. It is not # needed otherwise. Use of hints is strongly discouraged. envvar hint.uart.0.at="isa" # The following 3 hints are used when the UART is a system device (i.e., a # console or debug port), but only on platforms that don't have any other # means to pass the information to the kernel. The unit number of the hint # is only used to bundle the hints together. There is no relation to the # unit number of the probed UART. envvar hint.uart.0.port="0x3f8" envvar hint.uart.0.flags="0x10" envvar hint.uart.0.baud="115200" # `flags' for serial drivers that support consoles, like uart(4): # 0x10 enable console support for this unit. Other console flags # (if applicable) are ignored unless this is set. Enabling # console support does not make the unit the preferred console. # Boot with -h or set boot_serial=YES in the loader. # Currently, at most one unit can have console support; the # first one (in config file order) with this flag set is # preferred. # 0x80 use this port for serial line gdb support in ddb. Also known # as debug port. # # Options for serial drivers that support consoles: options BREAK_TO_DEBUGGER # A BREAK/DBG on the console goes to # ddb, if available. # Solaris implements a new BREAK which is initiated by a character # sequence CR ~ ^b which is similar to a familiar pattern used on # Sun servers by the Remote Console. There are FreeBSD extensions: # CR ~ ^p requests force panic and CR ~ ^r requests a clean reboot. options ALT_BREAK_TO_DEBUGGER # Serial Communications Controller # Supports the Freescale/NXP QUad Integrated and Zilog Z8530 multi-channel # communications controllers. device scc # PCI Universal Communications driver # Supports various multi port PCI I/O cards. device puc # # Network interfaces: # # MII bus support is required for many PCI Ethernet NICs, # namely those which use MII-compliant transceivers or implement # transceiver control interfaces that operate like an MII. Adding # "device miibus" to the kernel config pulls in support for the generic # miibus API, the common support for bit-bang'ing the MII and all # of the PHY drivers, including a generic one for PHYs that aren't # specifically handled by an individual driver. Support for specific # PHYs may be built by adding "device mii", "device mii_bitbang" if # needed by the NIC driver and then adding the appropriate PHY driver. device mii # Minimal MII support device mii_bitbang # Common module for bit-bang'ing the MII device miibus # MII support w/ bit-bang'ing and all PHYs device acphy # Altima Communications AC101 device amphy # AMD AM79c873 / Davicom DM910{1,2} device atphy # Attansic/Atheros F1 device axphy # Asix Semiconductor AX88x9x device bmtphy # Broadcom BCM5201/BCM5202 and 3Com 3c905C device bnxt # Broadcom NetXtreme-C/NetXtreme-E device brgphy # Broadcom BCM54xx/57xx 1000baseTX device cgem # Cadence GEM Gigabit Ethernet device ciphy # Cicada/Vitesse CS/VSC8xxx device e1000phy # Marvell 88E1000 1000/100/10-BT device gentbi # Generic 10-bit 1000BASE-{LX,SX} fiber ifaces device icsphy # ICS ICS1889-1893 device ip1000phy # IC Plus IP1000A/IP1001 device jmphy # JMicron JMP211/JMP202 device lxtphy # Level One LXT-970 device nsgphy # NatSemi DP8361/DP83865/DP83891 device nsphy # NatSemi DP83840A device nsphyter # NatSemi DP83843/DP83815 device pnaphy # HomePNA device qsphy # Quality Semiconductor QS6612 device rdcphy # RDC Semiconductor R6040 device rgephy # RealTek 8169S/8110S/8211B/8211C device rlphy # RealTek 8139 device rlswitch # RealTek 8305 device smcphy # SMSC LAN91C111 device tdkphy # TDK 89Q2120 device truephy # LSI TruePHY device xmphy # XaQti XMAC II # ae: Support for gigabit ethernet adapters based on the Attansic/Atheros # L2 PCI-Express FastEthernet controllers. # age: Support for gigabit ethernet adapters based on the Attansic/Atheros # L1 PCI express gigabit ethernet controllers. # alc: Support for Atheros AR8131/AR8132 PCIe ethernet controllers. # ale: Support for Atheros AR8121/AR8113/AR8114 PCIe ethernet controllers. # ath: Atheros a/b/g WiFi adapters (requires ath_hal and wlan) # bce: Broadcom NetXtreme II (BCM5706/BCM5708) PCI/PCIe Gigabit Ethernet # adapters. # bfe: Broadcom BCM4401 Ethernet adapter. # bge: Support for gigabit ethernet adapters based on the Broadcom # BCM570x family of controllers, including the 3Com 3c996-T, # the Netgear GA302T, the SysKonnect SK-9D21 and SK-9D41, and # the embedded gigE NICs on Dell PowerEdge 2550 servers. # bnxt: Broadcom NetXtreme-C and NetXtreme-E PCIe 10/25/50G Ethernet adapters. # bxe: Broadcom NetXtreme II (BCM5771X/BCM578XX) PCIe 10Gb Ethernet # adapters. # bwi: Broadcom BCM430* and BCM431* family of wireless adapters. # bwn: Broadcom BCM43xx family of wireless adapters. # cas: Sun Cassini/Cassini+ and National Semiconductor DP83065 Saturn # cxgb: Chelsio T3 based 1GbE/10GbE PCIe Ethernet adapters. # cxgbe:Chelsio T4, T5, and T6-based 1/10/25/40/100GbE PCIe Ethernet # adapters. # cxgbev: Chelsio T4, T5, and T6-based PCIe Virtual Functions. # dc: Support for PCI fast ethernet adapters based on the DEC/Intel 21143 # and various workalikes including: # the ADMtek AL981 Comet and AN985 Centaur, the ASIX Electronics # AX88140A and AX88141, the Davicom DM9100 and DM9102, the Lite-On # 82c168 and 82c169 PNIC, the Lite-On/Macronix LC82C115 PNIC II # and the Macronix 98713/98713A/98715/98715A/98725 PMAC. This driver # replaces the old al, ax, dm, pn and mx drivers. List of brands: # Digital DE500-BA, Kingston KNE100TX, D-Link DFE-570TX, SOHOware SFA110, # SVEC PN102-TX, CNet Pro110B, 120A, and 120B, Compex RL100-TX, # LinkSys LNE100TX, LNE100TX V2.0, Jaton XpressNet, Alfa Inc GFC2204, # KNE110TX. # em: Intel Pro/1000 Gigabit Ethernet 82542, 82543, 82544 based adapters. # fxp: Intel EtherExpress Pro/100B # (hint of prefer_iomap can be done to prefer I/O instead of Mem mapping) # gem: Apple GMAC/Sun ERI/Sun GEM # jme: JMicron JMC260 Fast Ethernet/JMC250 Gigabit Ethernet based adapters. # le: AMD Am7900 LANCE and Am79C9xx PCnet # lge: Support for PCI gigabit ethernet adapters based on the Level 1 # LXT1001 NetCellerator chipset. This includes the D-Link DGE-500SX, # SMC TigerCard 1000 (SMC9462SX), and some Addtron cards. # lio: Support for Cavium 23XX Ethernet adapters # malo: Marvell Libertas wireless NICs. # mwl: Marvell 88W8363 802.11n wireless NICs. # Requires the mwl firmware module # mwlfw: Marvell 88W8363 firmware # msk: Support for gigabit ethernet adapters based on the Marvell/SysKonnect # Yukon II Gigabit controllers, including 88E8021, 88E8022, 88E8061, # 88E8062, 88E8035, 88E8036, 88E8038, 88E8050, 88E8052, 88E8053, # 88E8055, 88E8056 and D-Link 560T/550SX. # mlxfw: Mellanox firmware update module. # mlx5: Mellanox ConnectX-4 and ConnectX-4 LX IB and Eth shared code module. # mlx5en:Mellanox ConnectX-4 and ConnectX-4 LX PCIe Ethernet adapters. # my: Myson Fast Ethernet (MTD80X, MTD89X) # nge: Support for PCI gigabit ethernet adapters based on the National # Semiconductor DP83820 and DP83821 chipset. This includes the # SMC EZ Card 1000 (SMC9462TX), D-Link DGE-500T, Asante FriendlyNet # GigaNIX 1000TA and 1000TPC, the Addtron AEG320T, the Surecom # EP-320G-TX and the Netgear GA622T. # oce: Emulex 10 Gbit adapters (OneConnect Ethernet) # ral: Ralink Technology IEEE 802.11 wireless adapter # re: RealTek 8139C+/8169/816xS/811xS/8101E PCI/PCIe Ethernet adapter # rl: Support for PCI fast ethernet adapters based on the RealTek 8129/8139 # chipset. Note that the RealTek driver defaults to using programmed # I/O to do register accesses because memory mapped mode seems to cause # severe lockups on SMP hardware. This driver also supports the # Accton EN1207D `Cheetah' adapter, which uses a chip called # the MPX 5030/5038, which is either a RealTek in disguise or a # RealTek workalike. Note that the D-Link DFE-530TX+ uses the RealTek # chipset and is supported by this driver, not the 'vr' driver. # rtwn: RealTek wireless adapters. # rtwnfw: RealTek wireless firmware. # sge: Silicon Integrated Systems SiS190/191 Fast/Gigabit Ethernet adapter # sis: Support for NICs based on the Silicon Integrated Systems SiS 900, # SiS 7016 and NS DP83815 PCI fast ethernet controller chips. # sk: Support for the SysKonnect SK-984x series PCI gigabit ethernet NICs. # This includes the SK-9841 and SK-9842 single port cards (single mode # and multimode fiber) and the SK-9843 and SK-9844 dual port cards # (also single mode and multimode). # The driver will autodetect the number of ports on the card and # attach each one as a separate network interface. # ste: Sundance Technologies ST201 PCI fast ethernet controller, includes # the D-Link DFE-550TX. # stge: Support for gigabit ethernet adapters based on the Sundance/Tamarack # TC9021 family of controllers, including the Sundance ST2021/ST2023, # the Sundance/Tamarack TC9021, the D-Link DL-4000 and ASUS NX1101. # ti: Support for PCI gigabit ethernet NICs based on the Alteon Networks # Tigon 1 and Tigon 2 chipsets. This includes the Alteon AceNIC, the # 3Com 3c985, the Netgear GA620 and various others. Note that you will # probably want to bump up kern.ipc.nmbclusters a lot to use this driver. # vr: Support for various fast ethernet adapters based on the VIA # Technologies VT3043 `Rhine I' and VT86C100A `Rhine II' chips, # including the D-Link DFE520TX and D-Link DFE530TX (see 'rl' for # DFE530TX+), the Hawking Technologies PN102TX, and the AOpen/Acer ALN-320. # vte: DM&P Vortex86 RDC R6040 Fast Ethernet # xl: Support for the 3Com 3c900, 3c905, 3c905B and 3c905C (Fast) # Etherlink XL cards and integrated controllers. This includes the # integrated 3c905B-TX chips in certain Dell Optiplex and Dell # Precision desktop machines and the integrated 3c905-TX chips # in Dell Latitude laptop docking stations. # Also supported: 3Com 3c980(C)-TX, 3Com 3cSOHO100-TX, 3Com 3c450-TX # PCI Ethernet NICs that use the common MII bus controller code. device ae # Attansic/Atheros L2 FastEthernet device age # Attansic/Atheros L1 Gigabit Ethernet device alc # Atheros AR8131/AR8132 Ethernet device ale # Atheros AR8121/AR8113/AR8114 Ethernet device bce # Broadcom BCM5706/BCM5708 Gigabit Ethernet device bfe # Broadcom BCM440x 10/100 Ethernet device bge # Broadcom BCM570xx Gigabit Ethernet device cas # Sun Cassini/Cassini+ and NS DP83065 Saturn device dc # DEC/Intel 21143 and various workalikes device et # Agere ET1310 10/100/Gigabit Ethernet device fxp # Intel EtherExpress PRO/100B (82557, 82558) envvar hint.fxp.0.prefer_iomap="0" device gem # Apple GMAC/Sun ERI/Sun GEM device jme # JMicron JMC250 Gigabit/JMC260 Fast Ethernet device lge # Level 1 LXT1001 gigabit Ethernet device lio # Support for Cavium 23XX Ethernet adapters device mlxfw # Mellanox firmware update module device mlx5 # Shared code module between IB and Ethernet device mlx5en # Mellanox ConnectX-4 and ConnectX-4 LX device msk # Marvell/SysKonnect Yukon II Gigabit Ethernet device my # Myson Fast Ethernet (MTD80X, MTD89X) device nge # NatSemi DP83820 gigabit Ethernet device re # RealTek 8139C+/8169/8169S/8110S device rl # RealTek 8129/8139 device sge # Silicon Integrated Systems SiS190/191 device sis # Silicon Integrated Systems SiS 900/SiS 7016 device sk # SysKonnect SK-984x & SK-982x gigabit Ethernet device ste # Sundance ST201 (D-Link DFE-550TX) device stge # Sundance/Tamarack TC9021 gigabit Ethernet device vr # VIA Rhine, Rhine II device vte # DM&P Vortex86 RDC R6040 Fast Ethernet device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure device iflib device em # Intel Pro/1000 Gigabit Ethernet device ix # Intel Pro/10Gbe PCIE Ethernet device ixv # Intel Pro/10Gbe PCIE Ethernet VF # PCI Ethernet NICs. device cxgb # Chelsio T3 10 Gigabit Ethernet device cxgb_t3fw # Chelsio T3 10 Gigabit Ethernet firmware device cxgbe # Chelsio T4-T6 1/10/25/40/100 Gigabit Ethernet device cxgbev # Chelsio T4-T6 Virtual Functions device le # AMD Am7900 LANCE and Am79C9xx PCnet device mxge # Myricom Myri-10G 10GbE NIC device oce # Emulex 10 GbE (OneConnect Ethernet) device ti # Alteon Networks Tigon I/II gigabit Ethernet # PCI IEEE 802.11 Wireless NICs device ath # Atheros pci/cardbus NIC's device ath_hal # pci/cardbus chip support #device ath_ar5210 # AR5210 chips #device ath_ar5211 # AR5211 chips #device ath_ar5212 # AR5212 chips #device ath_rf2413 #device ath_rf2417 #device ath_rf2425 #device ath_rf5111 #device ath_rf5112 #device ath_rf5413 #device ath_ar5416 # AR5416 chips # All of the AR5212 parts have a problem when paired with the AR71xx # CPUS. These parts have a bug that triggers a fatal bus error on the AR71xx # only. Details of the exact nature of the bug are sketchy, but some can be # found at https://forum.openwrt.org/viewtopic.php?pid=70060 on pages 4, 5 and # 6. This option enables this workaround. There is a performance penalty # for this work around, but without it things don't work at all. The DMA # from the card usually bursts 128 bytes, but on the affected CPUs, only # 4 are safe. options AH_RXCFG_SDMAMW_4BYTES #device ath_ar9160 # AR9160 chips #device ath_ar9280 # AR9280 chips #device ath_ar9285 # AR9285 chips device ath_rate_sample # SampleRate tx rate control for ath device bwi # Broadcom BCM430* BCM431* device bwn # Broadcom BCM43xx device malo # Marvell Libertas wireless NICs. device mwl # Marvell 88W8363 802.11n wireless NICs. device mwlfw device ral # Ralink Technology RT2500 wireless NICs. device rtwn # Realtek wireless NICs device rtwnfw # Use sf_buf(9) interface for jumbo buffers on ti(4) controllers. #options TI_SF_BUF_JUMBO # Turn on the header splitting option for the ti(4) driver firmware. This # only works for Tigon II chips, and has no effect for Tigon I chips. # This option requires the TI_SF_BUF_JUMBO option above. #options TI_JUMBO_HDRSPLIT # These two options allow manipulating the mbuf cluster size and mbuf size, # respectively. Be very careful with NIC driver modules when changing # these from their default values, because that can potentially cause a # mismatch between the mbuf size assumed by the kernel and the mbuf size # assumed by a module. The only driver that currently has the ability to # detect a mismatch is ti(4). options MCLSHIFT=11 # mbuf cluster shift in bits, 11 == 2KB options MSIZE=256 # mbuf size in bytes # # Sound drivers # # sound: The generic sound driver. # device sound # # snd_*: Device-specific drivers. # # The flags of the device tell the device a bit more info about the # device that normally is obtained through the PnP interface. # bit 2..0 secondary DMA channel; # bit 4 set if the board uses two dma channels; # bit 15..8 board type, overrides autodetection; leave it # zero if don't know what to put in (and you don't, # since this is unsupported at the moment...). # # snd_als4000: Avance Logic ALS4000 PCI. # snd_atiixp: ATI IXP 200/300/400 PCI. # snd_cmi: CMedia CMI8338/CMI8738 PCI. # snd_cs4281: Crystal Semiconductor CS4281 PCI. # snd_csa: Crystal Semiconductor CS461x/428x PCI. (except # 4281) # snd_emu10k1: Creative EMU10K1 PCI and EMU10K2 (Audigy) PCI. # snd_emu10kx: Creative SoundBlaster Live! and Audigy # snd_envy24: VIA Envy24 and compatible, needs snd_spicds. # snd_envy24ht: VIA Envy24HT and compatible, needs snd_spicds. # snd_es137x: Ensoniq AudioPCI ES137x PCI. # snd_fm801: Forte Media FM801 PCI. # snd_hda: Intel High Definition Audio (Controller) and # compatible. # snd_hdspe: RME HDSPe AIO and RayDAT. # snd_ich: Intel ICH AC'97 and some more audio controllers # embedded in a chipset, for example nVidia # nForce controllers. # snd_maestro3: ESS Technology Maestro-3/Allegro PCI. # snd_neomagic: Neomagic 256 AV/ZX PCI. # snd_solo: ESS Solo-1x PCI. # snd_spicds: SPI codec driver, needed by Envy24/Envy24HT drivers. # snd_t4dwave: Trident 4DWave DX/NX PCI, Sis 7018 PCI and Acer Labs # M5451 PCI. # snd_uaudio: USB audio. # snd_via8233: VIA VT8233x PCI. # snd_via82c686: VIA VT82C686A PCI. # snd_vibes: S3 Sonicvibes PCI. device snd_als4000 device snd_atiixp device snd_cmi device snd_cs4281 device snd_csa device snd_emu10k1 device snd_emu10kx device snd_envy24 device snd_envy24ht device snd_es137x device snd_fm801 device snd_hda device snd_hdspe device snd_ich device snd_maestro3 device snd_neomagic device snd_solo device snd_spicds device snd_t4dwave device snd_uaudio device snd_via8233 device snd_via82c686 device snd_vibes # For non-PnP sound cards: envvar hint.pcm.0.at="isa" envvar hint.pcm.0.irq="10" envvar hint.pcm.0.drq="1" envvar hint.pcm.0.flags="0x0" envvar hint.sbc.0.at="isa" envvar hint.sbc.0.port="0x220" envvar hint.sbc.0.irq="5" envvar hint.sbc.0.drq="1" envvar hint.sbc.0.flags="0x15" envvar hint.gusc.0.at="isa" envvar hint.gusc.0.port="0x220" envvar hint.gusc.0.irq="5" envvar hint.gusc.0.drq="1" envvar hint.gusc.0.flags="0x13" # # Following options are intended for debugging/testing purposes: # # SND_DEBUG Enable extra debugging code that includes # sanity checking and possible increase of # verbosity. # # SND_DIAGNOSTIC Similar in a spirit of INVARIANTS/DIAGNOSTIC, # zero tolerance against inconsistencies. # # SND_FEEDER_MULTIFORMAT By default, only 16/32 bit feeders are compiled # in. This options enable most feeder converters # except for 8bit. WARNING: May bloat the kernel. # # SND_FEEDER_FULL_MULTIFORMAT Ditto, but includes 8bit feeders as well. # # SND_FEEDER_RATE_HP (feeder_rate) High precision 64bit arithmetic # as much as possible (the default trying to # avoid it). Possible slowdown. # # SND_PCM_64 (Only applicable for i386/32bit arch) # Process 32bit samples through 64bit # integer/arithmetic. Slight increase of dynamic # range at a cost of possible slowdown. # # SND_OLDSTEREO Only 2 channels are allowed, effectively # disabling multichannel processing. # options SND_DEBUG options SND_DIAGNOSTIC options SND_FEEDER_MULTIFORMAT options SND_FEEDER_FULL_MULTIFORMAT options SND_FEEDER_RATE_HP options SND_PCM_64 options SND_OLDSTEREO # # Cardbus # # cbb: pci/CardBus bridge implementing YENTA interface # cardbus: CardBus slots device cbb device cardbus # # MMC/SD # # mmc MMC/SD bus # mmcsd MMC/SD memory card # sdhci Generic PCI SD Host Controller # rtsx Realtek SD card reader (RTS5209, RTS5227, ...) device mmc device mmcsd device sdhci device rtsx # # SMB bus # # System Management Bus support is provided by the 'smbus' device. # Access to the SMBus device is via the 'smb' device (/dev/smb*), # which is a child of the 'smbus' device. # # Supported devices: # smb standard I/O through /dev/smb* # # Supported SMB interfaces: # iicsmb I2C to SMB bridge with any iicbus interface # intpm Intel PIIX4 (82371AB, 82443MX) Power Management Unit # alpm Acer Aladdin-IV/V/Pro2 Power Management Unit # ichsmb Intel ICH SMBus controller chips (82801AA, 82801AB, 82801BA) # viapm VIA VT82C586B/596B/686A and VT8233 Power Management Unit # amdpm AMD 756 Power Management Unit # amdsmb AMD 8111 SMBus 2.0 Controller # nfpm NVIDIA nForce Power Management Unit # nfsmb NVIDIA nForce2/3/4 MCP SMBus 2.0 Controller # ismt Intel SMBus 2.0 controller chips (on Atom S1200, C2000) # device smbus # Bus support, required for smb below. device intpm device alpm device ichsmb device viapm device amdpm device amdsmb device nfpm device nfsmb device ismt device smb # SMBus peripheral devices # # jedec_dimm Asset and temperature reporting for DDR3 and DDR4 DIMMs # device jedec_dimm # I2C Bus # # Philips i2c bus support is provided by the `iicbus' device. # # Supported devices: # ic i2c network interface # iic i2c standard io # iicsmb i2c to smb bridge. Allow i2c i/o with smb commands. # iicoc simple polling driver for OpenCores I2C controller # # Other: # iicbb generic I2C bit-banging code (needed by lpbb) # device iicbus # Bus support, required for ic/iic/iicsmb below. device iicbb # bitbang driver; implements i2c on a pair of gpio pins device ic device iic # userland access to i2c slave devices via ioctl(8) device iicsmb # smb over i2c bridge device iicoc # OpenCores I2C controller support # I2C bus multiplexer (mux) devices device iicmux # i2c mux core driver device iic_gpiomux # i2c mux hardware controlled via gpio pins device ltc430x # LTC4305 and LTC4306 i2c mux chips # I2C peripheral devices # device ad7418 # Analog Devices temp and voltage sensor device ads111x # Texas Instruments ADS101x and ADS111x ADCs device ds1307 # Dallas DS1307 RTC and compatible device ds13rtc # All Dallas/Maxim ds13xx chips device ds1672 # Dallas DS1672 RTC device ds3231 # Dallas DS3231 RTC + temperature device fan53555 # Fairchild Semi FAN53555/SYR82x Regulator device icee # AT24Cxxx and compatible EEPROMs device isl12xx # Intersil ISL12xx RTC device lm75 # LM75 compatible temperature sensor device nxprtc # NXP RTCs: PCA/PFC212x PCA/PCF85xx device rtc8583 # Epson RTC-8583 device s35390a # Seiko Instruments S-35390A RTC device sy8106a # Silergy Corp. SY8106A buck regulator # Parallel-Port Bus # # Parallel port bus support is provided by the `ppbus' device. # Multiple devices may be attached to the parallel port, devices # are automatically probed and attached when found. # # Supported devices: # lpt Parallel Printer # plip Parallel network interface # ppi General-purpose I/O ("Geek Port") + IEEE1284 I/O # pps Pulse per second Timing Interface # lpbb Philips official parallel port I2C bit-banging interface # pcfclock Parallel port clock driver. # # Supported interfaces: # ppc ISA-bus parallel port interfaces. # options PPC_PROBE_CHIPSET # Enable chipset specific detection # (see flags in ppc(4)) options DEBUG_1284 # IEEE1284 signaling protocol debug options PERIPH_1284 # Makes your computer act as an IEEE1284 # compliant peripheral options DONTPROBE_1284 # Avoid boot detection of PnP parallel devices options LPT_DEBUG # Printer driver debug options PPC_DEBUG # Parallel chipset level debug options PLIP_DEBUG # Parallel network IP interface debug options PCFCLOCK_VERBOSE # Verbose pcfclock driver options PCFCLOCK_MAX_RETRIES=5 # Maximum read tries (default 10) device ppc envvar hint.ppc.0.at="isa" envvar hint.ppc.0.irq="7" device ppbus device lpt device plip device ppi device pps device lpbb device pcfclock # General Purpose I/O pins device dwgpio # Synopsys DesignWare APB GPIO Controller device gpio # gpio interfaces and bus support device gpiobacklight # sysctl control of gpio-based backlight device gpioiic # i2c via gpio bitbang device gpiokeys # kbd(4) glue for gpio-based key input device gpioled # led(4) gpio glue device gpiopower # event handler for gpio-based powerdown device gpiopps # Pulse per second input from gpio pin device gpioregulator # extres/regulator glue for gpio pin device gpiospi # SPI via gpio bitbang device gpioths # 1-wire temp/humidity sensor on gpio pin # Pulse width modulation device pwmbus # pwm interface and bus support device pwmc # userland control access to pwm outputs # # Etherswitch framework and drivers # # etherswitch The etherswitch(4) framework # miiproxy Proxy device for miibus(4) functionality # # Switch hardware support: # arswitch Atheros switches # ip17x IC+ 17x family switches # rtl8366r Realtek RTL8366 switches # ukswitch Multi-PHY switches # device etherswitch device miiproxy device arswitch device ip17x device rtl8366rb device ukswitch # Kernel BOOTP support options BOOTP # Use BOOTP to obtain IP address/hostname # Requires NFSCL and NFS_ROOT options BOOTP_NFSROOT # NFS mount root filesystem using BOOTP info options BOOTP_NFSV3 # Use NFS v3 to NFS mount root options BOOTP_COMPAT # Workaround for broken bootp daemons. options BOOTP_WIRED_TO=fxp0 # Use interface fxp0 for BOOTP options BOOTP_BLOCKSIZE=8192 # Override NFS block size # # Enable software watchdog routines, even if hardware watchdog is present. # By default, software watchdog timer is enabled only if no hardware watchdog # is present. # options SW_WATCHDOG # # Add the software deadlock resolver thread. # options DEADLKRES # # Disable swapping of stack pages. This option removes all # code which actually performs swapping, so it's not possible to turn # it back on at run-time. # # This is sometimes usable for systems which don't have any swap space # (see also sysctl "vm.disable_swapspace_pageouts") # #options NO_SWAPPING # Set the number of sf_bufs to allocate. sf_bufs are virtual buffers # for sendfile(2) that are used to map file VM pages, and normally # default to a quantity that is roughly 16*MAXUSERS+512. You would # typically want about 4 of these for each simultaneous file send. # options NSFBUFS=1024 # # Enable extra debugging code for locks. This stores the filename and # line of whatever acquired the lock in the lock itself, and changes a # number of function calls to pass around the relevant data. This is # not at all useful unless you are debugging lock code. Note that # modules should be recompiled as this option modifies KBI. # options DEBUG_LOCKS ##################################################################### # HID support device hid # Generic HID support options HID_DEBUG # enable debug msgs device hidbus # HID bus device hidmap # HID to evdev mapping device hidraw # Raw access driver options HIDRAW_MAKE_UHID_ALIAS # install /dev/uhid alias device hconf # Multitouch configuration TLC device hcons # Consumer controls device hgame # Generic game controllers device hkbd # HID keyboard device hms # HID mouse device hmt # HID multitouch (MS-compatible) device hpen # Generic pen driver device hsctrl # System controls device ps4dshock # Sony PS4 DualShock 4 gamepad driver device xb360gp # XBox 360 gamepad driver ##################################################################### # USB support # UHCI controller device uhci # OHCI controller device ohci # EHCI controller device ehci # XHCI controller device xhci # SL811 Controller #device slhci # General USB code (mandatory for USB) device usb # # USB Double Bulk Pipe devices device udbp # USB temperature meter device ugold # USB LED device uled # Human Interface Device (anything with buttons and dials) device uhid # USB keyboard device ukbd # USB printer device ulpt # USB mass storage driver (Requires scbus and da) device umass # USB mass storage driver for device-side mode device usfs # USB support for Belkin F5U109 and Magic Control Technology serial adapters device umct # USB modem support device umodem # USB mouse device ums # USB touchpad(s) device atp device wsp # eGalax USB touch screen device uep # Diamond Rio 500 MP3 player device urio # HID-over-USB driver device usbhid # # USB serial support device ucom # USB support for 3G modem cards by Option, Novatel, Huawei and Sierra device u3g # USB support for Technologies ARK3116 based serial adapters device uark # USB support for Belkin F5U103 and compatible serial adapters device ubsa # USB support for serial adapters based on the FT8U100AX and FT8U232AM device uftdi # USB support for some Windows CE based serial communication. device uipaq # USB support for Prolific PL-2303 serial adapters device uplcom # USB support for Silicon Laboratories CP2101/CP2102 based USB serial adapters device uslcom # USB Visor and Palm devices device uvisor # USB serial support for DDI pocket's PHS device uvscom # # USB ethernet support device uether # ADMtek USB ethernet. Supports the LinkSys USB100TX, # the Billionton USB100, the Melco LU-ATX, the D-Link DSB-650TX # and the SMC 2202USB. Also works with the ADMtek AN986 Pegasus # eval board. device aue # ASIX Electronics AX88172 USB 2.0 ethernet driver. Used in the # LinkSys USB200M and various other adapters. device axe # ASIX Electronics AX88178A/AX88179 USB 2.0/3.0 gigabit ethernet driver. device axge # # Devices which communicate using Ethernet over USB, particularly # Communication Device Class (CDC) Ethernet specification. Supports # Sharp Zaurus PDAs, some DOCSIS cable modems and so on. device cdce # # CATC USB-EL1201A USB ethernet. Supports the CATC Netmate # and Netmate II, and the Belkin F5U111. device cue # # Kawasaki LSI ethernet. Supports the LinkSys USB10T, # Entrega USB-NET-E45, Peracom Ethernet Adapter, the # 3Com 3c19250, the ADS Technologies USB-10BT, the ATen UC10T, # the Netgear EA101, the D-Link DSB-650, the SMC 2102USB # and 2104USB, and the Corega USB-T. device kue # # RealTek RTL8150 USB to fast ethernet. Supports the Melco LUA-KTX # and the GREEN HOUSE GH-USB100B. device rue # # Davicom DM9601E USB to fast ethernet. Supports the Corega FEther USB-TXC. device udav # # RealTek RTL8152/RTL8153 USB Ethernet driver device ure # # Moschip MCS7730/MCS7840 USB to fast ethernet. Supports the Sitecom LN030. device mos # # HSxPA devices from Option N.V device uhso # Realtek RTL8188SU/RTL8191SU/RTL8192SU wireless driver device rsu # # Ralink Technology RT2501USB/RT2601USB wireless driver device rum # Ralink Technology RT2700U/RT2800U/RT3000U wireless driver device run # # Atheros AR5523 wireless driver device uath # # Conexant/Intersil PrismGT wireless driver device upgt # # Ralink Technology RT2500USB wireless driver device ural # # RNDIS USB ethernet driver device urndis # Realtek RTL8187B/L wireless driver device urtw # # ZyDas ZD1211/ZD1211B wireless driver device zyd # # Sierra USB wireless driver device usie # # debugging options for the USB subsystem # options USB_DEBUG options U3G_DEBUG # options for ukbd: options UKBD_DFLT_KEYMAP # specify the built-in keymap makeoptions UKBD_DFLT_KEYMAP=jp.106 # options for uplcom: options UPLCOM_INTR_INTERVAL=100 # interrupt pipe interval # in milliseconds # options for uvscom: options UVSCOM_DEFAULT_OPKTSIZE=8 # default output packet size options UVSCOM_INTR_INTERVAL=100 # interrupt pipe interval # in milliseconds ##################################################################### # FireWire support device firewire # FireWire bus code device sbp # SCSI over Firewire (Requires scbus and da) device sbp_targ # SBP-2 Target mode (Requires scbus and targ) device fwe # Ethernet over FireWire (non-standard!) device fwip # IP over FireWire (RFC2734 and RFC3146) ##################################################################### # dcons support (Dumb Console Device) device dcons # dumb console driver device dcons_crom # FireWire attachment options DCONS_BUF_SIZE=16384 # buffer size options DCONS_POLL_HZ=100 # polling rate options DCONS_FORCE_CONSOLE=0 # force to be the primary console options DCONS_FORCE_GDB=1 # force to be the gdb device ##################################################################### # crypto subsystem # # This is a port of the OpenBSD crypto framework. Include this when # configuring IPSEC and when you have a h/w crypto device to accelerate # user applications that link to OpenSSL. # # Drivers are ports from OpenBSD with some simple enhancements that have # been fed back to OpenBSD. device crypto # core crypto support # Only install the cryptodev device if you are running tests, or know # specifically why you need it. In most cases, it is not needed and # will make things slower. device cryptodev # /dev/crypto for access to h/w device rndtest # FIPS 140-2 entropy tester device ccr # Chelsio T6 device hifn # Hifn 7951, 7781, etc. options HIFN_DEBUG # enable debugging support: hw.hifn.debug options HIFN_RNDTEST # enable rndtest support ##################################################################### # # Embedded system options: # # An embedded system might want to run something other than init. options INIT_PATH=/sbin/init:/rescue/init # Debug options options BUS_DEBUG # enable newbus debugging options DEBUG_VFS_LOCKS # enable VFS lock debugging options SOCKBUF_DEBUG # enable sockbuf last record/mb tail checking options IFMEDIA_DEBUG # enable debugging in net/if_media.c # # Verbose SYSINIT # # Make the SYSINIT process performed by mi_startup() verbose. This is very # useful when porting to a new architecture. If DDB is also enabled, this # will print function names instead of addresses. If defined with a value # of zero, the verbose code is compiled-in but disabled by default, and can # be enabled with the debug.verbose_sysinit=1 tunable. options VERBOSE_SYSINIT ##################################################################### # SYSV IPC KERNEL PARAMETERS # # Maximum number of System V semaphores that can be used on the system at # one time. options SEMMNI=11 # Total number of semaphores system wide options SEMMNS=61 # Total number of undo structures in system options SEMMNU=31 # Maximum number of System V semaphores that can be used by a single process # at one time. options SEMMSL=61 # Maximum number of operations that can be outstanding on a single System V # semaphore at one time. options SEMOPM=101 # Maximum number of undo operations that can be outstanding on a single # System V semaphore at one time. options SEMUME=11 # Maximum number of shared memory pages system wide. options SHMALL=1025 # Maximum size, in bytes, of a single System V shared memory region. options SHMMAX=(SHMMAXPGS*PAGE_SIZE+1) options SHMMAXPGS=1025 # Minimum size, in bytes, of a single System V shared memory region. options SHMMIN=2 # Maximum number of shared memory regions that can be used on the system # at one time. options SHMMNI=33 # Maximum number of System V shared memory regions that can be attached to # a single process at one time. options SHMSEG=9 # Set the amount of time (in seconds) the system will wait before # rebooting automatically when a kernel panic occurs. If set to (-1), # the system will wait indefinitely until a key is pressed on the # console. options PANIC_REBOOT_WAIT_TIME=16 # Attempt to bypass the buffer cache and put data directly into the # userland buffer for read operation when O_DIRECT flag is set on the # file. Both offset and length of the read operation must be # multiples of the physical media sector size. # options DIRECTIO # Specify a lower limit for the number of swap I/O buffers. They are # (among other things) used when bypassing the buffer cache due to # DIRECTIO kernel option enabled and O_DIRECT flag set on file. # options NSWBUF_MIN=120 ##################################################################### # More undocumented options for linting. # Note that documenting these is not considered an affront. options CAM_DEBUG_DELAY options DEBUG # Kernel filelock debugging. options LOCKF_DEBUG # System V compatible message queues # Please note that the values provided here are used to test kernel # building. The defaults in the sources provide almost the same numbers. # MSGSSZ must be a power of 2 between 8 and 1024. options MSGMNB=2049 # Max number of chars in queue options MSGMNI=41 # Max number of message queue identifiers options MSGSEG=2049 # Max number of message segments options MSGSSZ=16 # Size of a message segment options MSGTQL=41 # Max number of messages in system options NBUF=512 # Number of buffer headers options SC_DEBUG_LEVEL=5 # Syscons debug level options SC_RENDER_DEBUG # syscons rendering debugging options VFS_BIO_DEBUG # VFS buffer I/O debugging options KSTACK_MAX_PAGES=32 # Maximum pages to give the kernel stack options KSTACK_USAGE_PROF # Adaptec Array Controller driver options options AAC_DEBUG # Debugging levels: # 0 - quiet, only emit warnings # 1 - noisy, emit major function # points and things done # 2 - extremely noisy, emit trace # items in loops, etc. # Resource Accounting options RACCT # Resource Limits options RCTL # Yet more undocumented options for linting. options MAXFILES=999 # Random number generator # Alternative algorithm. #options RANDOM_FENESTRASX # Allow the CSPRNG algorithm to be loaded as a module. #options RANDOM_LOADABLE # Select this to allow high-rate but potentially expensive # harvesting of Slab-Allocator entropy. In very high-rate # situations the value of doing this is dubious at best. options RANDOM_ENABLE_UMA # slab allocator # Select this to allow high-rate but potentially expensive # harvesting of of the m_next pointer in the mbuf. Note that # the m_next pointer is NULL except when receiving > 4K # jumbo frames or sustained bursts by way of LRO. Thus in # the common case it is stirring zero in to the entropy # pool. In cases where it is not NULL it is pointing to one # of a small (in the thousands to 10s of thousands) number # of 256 byte aligned mbufs. Hence it is, even in the best # case, a poor source of entropy. And in the absence of actual # runtime analysis of entropy collection may mislead the user in # to believe that substantially more entropy is being collected # than in fact is - leading to a different class of security # risk. In high packet rate situations ethernet entropy # collection is also very expensive, possibly leading to as # much as a 50% drop in packets received. # This option is present to maintain backwards compatibility # if desired, however it cannot be recommended for use in any # environment. options RANDOM_ENABLE_ETHER # ether_input # Module to enable execution of application via emulators like QEMU options IMGACT_BINMISC # zlib I/O stream support # This enables support for compressed core dumps. options GZIO # zstd support # This enables support for Zstd compressed core dumps, GEOM_UZIP images, # and is required by zfs if statically linked. options ZSTDIO # BHND(4) drivers options BHND_LOGLEVEL # Logging threshold level # evdev interface device evdev # input event device support options EVDEV_SUPPORT # evdev support in legacy drivers options EVDEV_DEBUG # enable event debug msgs device uinput # install /dev/uinput cdev options UINPUT_DEBUG # enable uinput debug msgs # Encrypted kernel crash dumps. options EKCD # Serial Peripheral Interface (SPI) support. device spibus # Bus support. device at45d # DataFlash driver device cqspi # device mx25l # SPIFlash driver device n25q # device spigen # Generic access to SPI devices from userland. # Enable legacy /dev/spigenN name aliases for /dev/spigenX.Y devices. options SPIGEN_LEGACY_CDEVNAME # legacy device names for spigen # Compression supports. device zlib # gzip/zlib compression/decompression library device xz # xz_embedded LZMA de-compression library # Kernel support for stats(3). options STATS diff --git a/sys/conf/WITHOUT_SOURCELESS b/sys/conf/WITHOUT_SOURCELESS index 3425dda64487..737006982874 100644 --- a/sys/conf/WITHOUT_SOURCELESS +++ b/sys/conf/WITHOUT_SOURCELESS @@ -1,7 +1,6 @@ # # WITHOUT_SOURCELESS -- Disable drivers that include sourceless code. # -# $FreeBSD$ include WITHOUT_SOURCELESS_HOST include WITHOUT_SOURCELESS_UCODE diff --git a/sys/conf/WITHOUT_SOURCELESS_HOST b/sys/conf/WITHOUT_SOURCELESS_HOST index a8a029ea1476..15c8055d8185 100644 --- a/sys/conf/WITHOUT_SOURCELESS_HOST +++ b/sys/conf/WITHOUT_SOURCELESS_HOST @@ -1,10 +1,9 @@ # # WITHOUT_SOURCELESS_HOST -- Disable drivers that include sourceless # native code for host CPU. # -# $FreeBSD$ nodevice hpt27xx nodevice hptmv nodevice hptnr nodevice hptrr diff --git a/sys/conf/WITHOUT_SOURCELESS_UCODE b/sys/conf/WITHOUT_SOURCELESS_UCODE index d578dee723ce..82dfbbb87402 100644 --- a/sys/conf/WITHOUT_SOURCELESS_UCODE +++ b/sys/conf/WITHOUT_SOURCELESS_UCODE @@ -1,39 +1,38 @@ # # WITHOUT_SOURCELESS_UCODE -- Disable drivers that include sourceless # microcode. # -# $FreeBSD$ nodevice bce nodevice fxp nodevice ispfw nodevice mwlfw nodevice ralfw nodevice rtwnfw nodevice runfw nodevice sf nodevice ti nodevice txp nodevice ipwfw nodevice iwifw nodevice iwmfw nodevice iwnfw nodevice wpifw # drm nodevice mga nodevice r128 nodevice radeon # sound nodevice csa nodevice ds1 nodevice maestro3 # usb nodevice rsu nodevice rsufw nodevice rum nodevice uath nodevice zyd nodevice kue diff --git a/sys/conf/config.mk b/sys/conf/config.mk index 37ab26aae1bd..729111b4ef3a 100644 --- a/sys/conf/config.mk +++ b/sys/conf/config.mk @@ -1,95 +1,94 @@ -# $FreeBSD$ # # Common code to marry kernel config(8) goo and module building goo. # # Generate options files that otherwise would be built # in substantially similar ways through the tree. Move # the code here when they all produce identical results # (or should) .if !defined(KERNBUILDDIR) opt_global.h: touch ${.TARGET} @echo "#define SMP 1" >> ${.TARGET} @echo "#define MAC 1" >> ${.TARGET} @echo "#define VIMAGE 1" >> ${.TARGET} # Note: Define 'options' in DEFAULTS to 1. For simplicity, no check if the # option is in opt_global.h. Nearly all the options in DEFAUlTS today are in # opt_global.h with GEOM_* being the main exceptions. Move any options from # GENERIC or std.* files to DEFAULTS to get this treatment for untied builds. @awk '$$1 == "options" && $$2 !~ "GEOM_" { print "#define ", $$2, " 1"; }' \ < ${SYSDIR}/${MACHINE}/conf/DEFAULTS \ >> ${.TARGET} .if ${MK_BHYVE_SNAPSHOT} != "no" opt_bhyve_snapshot.h: @echo "#define BHYVE_SNAPSHOT 1" > ${.TARGET} .endif opt_bpf.h: echo "#define DEV_BPF 1" > ${.TARGET} .if ${MK_INET_SUPPORT} != "no" opt_inet.h: @echo "#define INET 1" > ${.TARGET} @echo "#define TCP_OFFLOAD 1" >> ${.TARGET} .endif .if ${MK_INET6_SUPPORT} != "no" opt_inet6.h: @echo "#define INET6 1" > ${.TARGET} .endif .if ${MK_IPSEC_SUPPORT} != "no" opt_ipsec.h: @echo "#define IPSEC_SUPPORT 1" > ${.TARGET} .endif .if ${MK_RATELIMIT} != "no" opt_ratelimit.h: @echo "#define RATELIMIT 1" > ${.TARGET} .endif opt_mrouting.h: @echo "#define MROUTING 1" > ${.TARGET} .if ${MK_FDT} != "no" opt_platform.h: @echo "#define FDT 1" > ${.TARGET} .endif opt_printf.h: echo "#define PRINTF_BUFR_SIZE 128" > ${.TARGET} opt_scsi.h: echo "#define SCSI_DELAY 15000" > ${.TARGET} .if ${MK_SCTP_SUPPORT} != "no" opt_sctp.h: @echo "#define SCTP_SUPPORT 1" > ${.TARGET} .endif opt_wlan.h: echo "#define IEEE80211_DEBUG 1" > ${.TARGET} echo "#define IEEE80211_SUPPORT_MESH 1" >> ${.TARGET} KERN_OPTS.i386=NEW_PCIB DEV_PCI KERN_OPTS.amd64=NEW_PCIB DEV_PCI KERN_OPTS.powerpc=NEW_PCIB DEV_PCI KERN_OPTS=MROUTING IEEE80211_DEBUG \ IEEE80211_SUPPORT_MESH DEV_BPF \ ${KERN_OPTS.${MACHINE}} ${KERN_OPTS_EXTRA} .if ${MK_BHYVE_SNAPSHOT} != "no" KERN_OPTS+= BHYVE_SNAPSHOT .endif .if ${MK_INET_SUPPORT} != "no" KERN_OPTS+= INET TCP_OFFLOAD .endif .if ${MK_INET6_SUPPORT} != "no" KERN_OPTS+= INET6 .endif .if ${MK_IPSEC_SUPPORT} != "no" KERN_OPTS+= IPSEC_SUPPORT .endif .if ${MK_SCTP_SUPPORT} != "no" KERN_OPTS+= SCTP_SUPPORT .endif .elif !defined(KERN_OPTS) # Add all the options that are mentioned in any opt_*.h file when we # have a kernel build directory to pull them from. KERN_OPTS!=cat ${KERNBUILDDIR}/opt*.h | awk '{print $$2;}' | sort -u .export KERN_OPTS .endif .if !defined(NO_MODULES) && !defined(__MPATH) && !make(install) && \ (empty(.MAKEFLAGS:M-V) || defined(NO_SKIP_MPATH)) __MPATH!=find ${SYSDIR:tA}/ -name \*_if.m .export __MPATH .endif diff --git a/sys/conf/dtb.build.mk b/sys/conf/dtb.build.mk index 83ee03943e16..327d69106244 100644 --- a/sys/conf/dtb.build.mk +++ b/sys/conf/dtb.build.mk @@ -1,79 +1,78 @@ -# $FreeBSD$ .include # Grab all the options for a kernel build. For backwards compat, we need to # do this after bsd.own.mk. .include "kern.opts.mk" DTC?= dtc .if !defined(SYSDIR) .if defined(S) SYSDIR= ${S} .else .include .endif # defined(S) .endif # defined(SYSDIR) .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) .error "can't find kernel source tree" .endif .for _dts in ${DTS} # DTB for aarch64 needs to preserve the immediate parent of the .dts, because # these DTS are vendored and should be installed into their vendored directory. .if ${MACHINE_CPUARCH} == "aarch64" DTB+= ${_dts:R:S/$/.dtb/} .else DTB+= ${_dts:T:R:S/$/.dtb/} .endif .endfor DTBO=${DTSO:T:R:S/$/.dtbo/} .SUFFIXES: .dtb .dts .dtbo .dtso .PATH.dts: ${SYSDIR}/contrib/device-tree/src/${MACHINE} ${SYSDIR}/dts/${MACHINE} .PATH.dtso: ${SYSDIR}/dts/${MACHINE}/overlays .export DTC ECHO .dts.dtb: ${OP_META} ${SYSDIR}/tools/fdt/make_dtb.sh ${SYSDIR} ${.IMPSRC} ${.OBJDIR} .dtso.dtbo: ${OP_META} ${SYSDIR}/tools/fdt/make_dtbo.sh ${SYSDIR} ${.IMPSRC} ${.OBJDIR} # Add dependencies on the source file so that out-of-tree things can be included # without any .PATH additions. .for _dts in ${DTS} ${FDT_DTS_FILE} ${_dts:R:T}.dtb: ${_dts} .endfor .for _dtso in ${DTSO} ${_dtso:R:T}.dtbo: ${_dtso} .endfor _dtbinstall: # Need to create this because installkernel doesn't invoke mtree with BSD.root.mtree # to make sure the tree is setup properly. We don't recreate it to avoid duplicate # entries in the NO_ROOT case. test -d ${DESTDIR}${DTBDIR} || ${INSTALL} -d -o ${DTBOWN} -g ${DTBGRP} ${DESTDIR}${DTBDIR} .for _dtb in ${DTB} .if ${MACHINE_CPUARCH} == "aarch64" # :H:T here to grab the vendor component of the DTB path in a way that # allows out-of-tree DTS builds, too. We make the assumption that # out-of-tree DTS will have a similar directory structure to in-tree, # with .dts files appearing in a vendor/ directory. test -d ${DESTDIR}${DTBDIR}/${_dtb:H:T} || ${INSTALL} -d -o ${DTBOWN} -g ${DTBGRP} ${DESTDIR}${DTBDIR}/${_dtb:H:T} ${INSTALL} -o ${DTBOWN} -g ${DTBGRP} -m ${DTBMODE} \ ${_INSTALLFLAGS} ${_dtb:T} ${DESTDIR}${DTBDIR}/${_dtb:H:T} .else ${INSTALL} -o ${DTBOWN} -g ${DTBGRP} -m ${DTBMODE} \ ${_INSTALLFLAGS} ${_dtb} ${DESTDIR}${DTBDIR}/ .endif .endfor test -d ${DESTDIR}${DTBODIR} || ${INSTALL} -d -o ${DTBOWN} -g ${DTBGRP} ${DESTDIR}${DTBODIR} .for _dtbo in ${DTBO} ${INSTALL} -o ${DTBOWN} -g ${DTBGRP} -m ${DTBMODE} \ ${_INSTALLFLAGS} ${_dtbo} ${DESTDIR}${DTBODIR}/ .endfor diff --git a/sys/conf/dtb.mk b/sys/conf/dtb.mk index 454df1a900c3..ec3df525d1e7 100644 --- a/sys/conf/dtb.mk +++ b/sys/conf/dtb.mk @@ -1,45 +1,44 @@ -# $FreeBSD$ # # The include file handles building and installing dtb files. # # +++ variables +++ # # DTC The Device Tree Compiler to use # # DTS List of the dts files to build and install. # # DTSO List of the dts overlay files to build and install. # # DTBDIR Base path for dtb modules [/boot/dtb] # # DTBOWN .dtb file owner. [${BINOWN}] # # DTBGRP .dtb file group. [${BINGRP}] # # DTBMODE Module file mode. [${BINMODE}] # # DESTDIR The tree where the module gets installed. [not set] # # +++ targets +++ # # install: # install the kernel module; if the Makefile # does not itself define the target install, the targets # beforeinstall and afterinstall may also be used to cause # actions immediately before and after the install target # is executed. # .include "dtb.build.mk" .if !target(install) && !target(realinstall) all: ${DTB} ${DTBO} realinstall: _dtbinstall .ORDER: beforeinstall _dtbinstall CLEANFILES+=${DTB} ${DTBO} .endif # !target(install) && !target(realinstall) .include .include .include diff --git a/sys/conf/files b/sys/conf/files index 0feeded13ba4..bd4964d3dd64 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1,5218 +1,5217 @@ -# $FreeBSD$ # # The long compile-with and dependency lines are required because of # limitations in config: backslash-newline doesn't work in strings, and # dependency lines other than the first are silently ignored. # acpi_quirks.h optional acpi \ dependency "$S/tools/acpi_quirks2h.awk $S/dev/acpica/acpi_quirks" \ compile-with "${AWK} -f $S/tools/acpi_quirks2h.awk $S/dev/acpica/acpi_quirks" \ no-obj no-implicit-rule before-depend \ clean "acpi_quirks.h" bhnd_nvram_map.h optional bhnd \ dependency "$S/dev/bhnd/tools/nvram_map_gen.sh $S/dev/bhnd/tools/nvram_map_gen.awk $S/dev/bhnd/nvram/nvram_map" \ compile-with "sh $S/dev/bhnd/tools/nvram_map_gen.sh $S/dev/bhnd/nvram/nvram_map -h" \ no-obj no-implicit-rule before-depend \ clean "bhnd_nvram_map.h" bhnd_nvram_map_data.h optional bhnd \ dependency "$S/dev/bhnd/tools/nvram_map_gen.sh $S/dev/bhnd/tools/nvram_map_gen.awk $S/dev/bhnd/nvram/nvram_map" \ compile-with "sh $S/dev/bhnd/tools/nvram_map_gen.sh $S/dev/bhnd/nvram/nvram_map -d" \ no-obj no-implicit-rule before-depend \ clean "bhnd_nvram_map_data.h" fdt_static_dtb.h optional fdt fdt_dtb_static \ compile-with "sh -c 'MACHINE=${MACHINE} $S/tools/fdt/make_dtbh.sh ${FDT_DTS_FILE} ${.CURDIR}'" \ dependency "${FDT_DTS_FILE:T:R}.dtb" \ no-obj no-implicit-rule before-depend \ clean "fdt_static_dtb.h" feeder_eq_gen.h optional sound \ dependency "$S/tools/sound/feeder_eq_mkfilter.awk" \ compile-with "${AWK} -f $S/tools/sound/feeder_eq_mkfilter.awk -- ${FEEDER_EQ_PRESETS} > feeder_eq_gen.h" \ no-obj no-implicit-rule before-depend \ clean "feeder_eq_gen.h" feeder_rate_gen.h optional sound \ dependency "$S/tools/sound/feeder_rate_mkfilter.awk" \ compile-with "${AWK} -f $S/tools/sound/feeder_rate_mkfilter.awk -- ${FEEDER_RATE_PRESETS} > feeder_rate_gen.h" \ no-obj no-implicit-rule before-depend \ clean "feeder_rate_gen.h" font.h optional sc_dflt_font \ compile-with "uudecode < ${SRCTOP}/share/syscons/fonts/${SC_DFLT_FONT}-8x16.fnt && file2c 'u_char dflt_font_16[16*256] = {' '};' < ${SC_DFLT_FONT}-8x16 > font.h && uudecode < ${SRCTOP}/share/syscons/fonts/${SC_DFLT_FONT}-8x14.fnt && file2c 'u_char dflt_font_14[14*256] = {' '};' < ${SC_DFLT_FONT}-8x14 >> font.h && uudecode < ${SRCTOP}/share/syscons/fonts/${SC_DFLT_FONT}-8x8.fnt && file2c 'u_char dflt_font_8[8*256] = {' '};' < ${SC_DFLT_FONT}-8x8 >> font.h" \ no-obj no-implicit-rule before-depend \ clean "font.h ${SC_DFLT_FONT}-8x14 ${SC_DFLT_FONT}-8x16 ${SC_DFLT_FONT}-8x8" snd_fxdiv_gen.h optional sound \ dependency "$S/tools/sound/snd_fxdiv_gen.awk" \ compile-with "${AWK} -f $S/tools/sound/snd_fxdiv_gen.awk -- > snd_fxdiv_gen.h" \ no-obj no-implicit-rule before-depend \ clean "snd_fxdiv_gen.h" miidevs.h optional miibus | mii \ dependency "$S/tools/miidevs2h.awk $S/dev/mii/miidevs" \ compile-with "${AWK} -f $S/tools/miidevs2h.awk $S/dev/mii/miidevs" \ no-obj no-implicit-rule before-depend \ clean "miidevs.h" kbdmuxmap.h optional kbdmux_dflt_keymap \ compile-with "${KEYMAP} -L ${KBDMUX_DFLT_KEYMAP} | ${KEYMAP_FIX} > ${.TARGET}" \ no-obj no-implicit-rule before-depend \ clean "kbdmuxmap.h" teken_state.h optional sc | vt \ dependency "$S/teken/gensequences $S/teken/sequences" \ compile-with "${AWK} -f $S/teken/gensequences $S/teken/sequences > teken_state.h" \ no-obj no-implicit-rule before-depend \ clean "teken_state.h" ukbdmap.h optional ukbd_dflt_keymap \ compile-with "${KEYMAP} -L ${UKBD_DFLT_KEYMAP} | ${KEYMAP_FIX} > ${.TARGET}" \ no-obj no-implicit-rule before-depend \ clean "ukbdmap.h" usbdevs.h optional usb | hid \ dependency "$S/tools/usbdevs2h.awk $S/dev/usb/usbdevs" \ compile-with "${AWK} -f $S/tools/usbdevs2h.awk $S/dev/usb/usbdevs -h" \ no-obj no-implicit-rule before-depend \ clean "usbdevs.h" usbdevs_data.h optional usb \ dependency "$S/tools/usbdevs2h.awk $S/dev/usb/usbdevs" \ compile-with "${AWK} -f $S/tools/usbdevs2h.awk $S/dev/usb/usbdevs -d" \ no-obj no-implicit-rule before-depend \ clean "usbdevs_data.h" sdiodevs.h optional mmccam \ dependency "$S/tools/sdiodevs2h.awk $S/dev/sdio/sdiodevs" \ compile-with "${AWK} -f $S/tools/sdiodevs2h.awk $S/dev/sdio/sdiodevs -h" \ no-obj no-implicit-rule before-depend \ clean "sdiodevs.h" sdiodevs_data.h optional mmccam \ dependency "$S/tools/sdiodevs2h.awk $S/dev/sdio/sdiodevs" \ compile-with "${AWK} -f $S/tools/sdiodevs2h.awk $S/dev/sdio/sdiodevs -d" \ no-obj no-implicit-rule before-depend \ clean "sdiodevs_data.h" cam/cam.c optional scbus cam/cam_compat.c optional scbus cam/cam_iosched.c optional scbus cam/cam_periph.c optional scbus cam/cam_queue.c optional scbus cam/cam_sim.c optional scbus cam/cam_xpt.c optional scbus cam/ata/ata_all.c optional scbus cam/ata/ata_xpt.c optional scbus cam/ata/ata_pmp.c optional scbus cam/nvme/nvme_all.c optional scbus cam/nvme/nvme_da.c optional nda | da cam/nvme/nvme_xpt.c optional scbus cam/scsi/scsi_xpt.c optional scbus cam/scsi/scsi_all.c optional scbus cam/scsi/scsi_cd.c optional cd cam/scsi/scsi_ch.c optional ch cam/ata/ata_da.c optional ada | da cam/ctl/ctl.c optional ctl cam/ctl/ctl_backend.c optional ctl cam/ctl/ctl_backend_block.c optional ctl cam/ctl/ctl_backend_ramdisk.c optional ctl cam/ctl/ctl_cmd_table.c optional ctl cam/ctl/ctl_frontend.c optional ctl cam/ctl/ctl_frontend_cam_sim.c optional ctl cam/ctl/ctl_frontend_ioctl.c optional ctl cam/ctl/ctl_frontend_iscsi.c optional ctl cfiscsi cam/ctl/ctl_ha.c optional ctl cam/ctl/ctl_scsi_all.c optional ctl cam/ctl/ctl_tpc.c optional ctl cam/ctl/ctl_tpc_local.c optional ctl cam/ctl/ctl_error.c optional ctl cam/ctl/ctl_util.c optional ctl cam/ctl/scsi_ctl.c optional ctl cam/mmc/mmc_xpt.c optional scbus mmccam cam/mmc/mmc_sim.c optional scbus mmccam cam/mmc/mmc_sim_if.m optional scbus mmccam cam/mmc/mmc_da.c optional scbus mmccam da cam/scsi/scsi_da.c optional da cam/scsi/scsi_pass.c optional pass cam/scsi/scsi_pt.c optional pt cam/scsi/scsi_sa.c optional sa cam/scsi/scsi_enc.c optional ses cam/scsi/scsi_enc_ses.c optional ses cam/scsi/scsi_enc_safte.c optional ses cam/scsi/scsi_sg.c optional sg cam/scsi/scsi_targ_bh.c optional targbh cam/scsi/scsi_target.c optional targ cam/scsi/smp_all.c optional scbus # shared between zfs and dtrace cddl/compat/opensolaris/kern/opensolaris.c optional dtrace compile-with "${CDDL_C}" cddl/compat/opensolaris/kern/opensolaris_proc.c optional zfs | dtrace compile-with "${CDDL_C}" contrib/openzfs/module/os/freebsd/spl/spl_misc.c optional zfs | dtrace compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_cmn_err.c optional zfs | dtrace compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_taskq.c optional zfs | dtrace compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_kmem.c optional zfs | dtrace compile-with "${ZFS_C}" #zfs solaris portability layer contrib/openzfs/module/os/freebsd/spl/acl_common.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/callb.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/list.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_acl.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_dtrace.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_kstat.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_policy.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_procfs_list.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_string.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_sunddi.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_sysevent.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_uio.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_vfs.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_vm.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_zlib.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/spl/spl_zone.c optional zfs compile-with "${ZFS_C}" # zfs specific #zfs avl contrib/openzfs/module/avl/avl.c optional zfs compile-with "${ZFS_C}" # zfs lua support contrib/openzfs/module/lua/lapi.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lauxlib.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lbaselib.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lcode.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lcompat.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lcorolib.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lctype.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/ldebug.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/ldo.c optional zfs compile-with "${ZFS_C} ${NO_WINFINITE_RECURSION}" contrib/openzfs/module/lua/lfunc.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lgc.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/llex.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lmem.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lobject.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lopcodes.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lparser.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lstate.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lstring.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lstrlib.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/ltable.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/ltablib.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/ltm.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lvm.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/lua/lzio.c optional zfs compile-with "${ZFS_C}" # zfs nvpair support contrib/openzfs/module/nvpair/fnvpair.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/nvpair/nvpair.c optional zfs compile-with "${ZFS_RPC_C} ${NO_WSTRINGOP_OVERREAD}" contrib/openzfs/module/nvpair/nvpair_alloc_fixed.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/nvpair/nvpair_alloc_spl.c optional zfs compile-with "${ZFS_C}" #zfs platform compatibility code contrib/openzfs/module/os/freebsd/zfs/abd_os.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/arc_os.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/crypto_os.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/dmu_os.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/event_os.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/hkdf.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/kmod_core.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/spa_os.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/sysctl_os.c optional zfs compile-with "${ZFS_C} -include $S/modules/zfs/zfs_config.h" contrib/openzfs/module/os/freebsd/zfs/vdev_file.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/vdev_label_os.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/vdev_geom.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zfs_acl.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zfs_debug.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zfs_dir.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zfs_file_os.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zfs_ioctl_compat.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zfs_ioctl_os.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zfs_racct.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zfs_znode.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zio_crypt.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/os/freebsd/zfs/zvol_os.c optional zfs compile-with "${ZFS_C}" #zfs unicode support contrib/openzfs/module/unicode/uconv.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/unicode/u8_textprep.c optional zfs compile-with "${ZFS_C}" #zfs checksums / zcommon contrib/openzfs/module/zcommon/cityhash.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zfeature_common.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zfs_comutil.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zfs_deleg.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zfs_fletcher.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zfs_fletcher_superscalar.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zfs_fletcher_superscalar4.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zfs_namecheck.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zfs_prop.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zpool_prop.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zprop_common.c optional zfs compile-with "${ZFS_C}" # zfs edon-r hash support contrib/openzfs/module/icp/algs/edonr/edonr.c optional zfs compile-with "${ZFS_C}" # zfs blake3 hash support contrib/openzfs/module/icp/algs/blake3/blake3.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/icp/algs/blake3/blake3_generic.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/icp/algs/blake3/blake3_impl.c optional zfs compile-with "${ZFS_C}" # zfs sha2 hash support contrib/openzfs/module/icp/algs/sha2/sha2_generic.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/icp/algs/sha2/sha256_impl.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/icp/algs/sha2/sha512_impl.c optional zfs compile-with "${ZFS_C}" #zfs core common code contrib/openzfs/module/zfs/abd.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/aggsum.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/arc.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/blake3_zfs.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/blkptr.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/bplist.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/bpobj.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/bptree.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/brt.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/btree.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/bqueue.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dbuf.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dbuf_stats.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dataset_kstats.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/ddt.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/ddt_zap.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_diff.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_object.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_objset.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_recv.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_redact.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_send.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_traverse.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_tx.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dmu_zfetch.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dnode.c optional zfs compile-with "${ZFS_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" \ warning "kernel contains CDDL licensed ZFS filesystem" contrib/openzfs/module/zfs/dnode_sync.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_bookmark.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_crypt.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_dataset.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_deadlist.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_deleg.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_destroy.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_dir.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_pool.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_prop.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_scan.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_synctask.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/dsl_userhold.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/edonr_zfs.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/fm.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/gzip.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/lzjb.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/lz4.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/lz4_zfs.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/metaslab.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/mmp.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/multilist.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/objlist.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/pathname.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/range_tree.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/refcount.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/rrwlock.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/sa.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/sha2_zfs.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/skein_zfs.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/spa.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/spa_checkpoint.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/spa_config.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/spa_errlog.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/spa_history.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/spa_log_spacemap.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/spa_misc.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/spa_stats.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/space_map.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/space_reftree.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/txg.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/uberblock.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/unique.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_draid.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_draid_rand.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_indirect.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_indirect_births.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_indirect_mapping.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_initialize.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_label.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_mirror.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_missing.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_queue.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_raidz.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_raidz_math.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_raidz_math_scalar.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_rebuild.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_removal.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_root.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_trim.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zap.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zap_leaf.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zap_micro.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zcp.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zcp_get.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zcp_global.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zcp_iter.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zcp_set.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zcp_synctask.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfeature.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_byteswap.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_chksum.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_fm.c optional zfs compile-with "${ZFS_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" contrib/openzfs/module/zfs/zfs_fuid.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_impl.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_ioctl.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_log.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_onexit.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_quota.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_ratelimit.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_replay.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_rlock.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_sa.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_vnops.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zstd/zfs_zstd.c optional zfs zstdio compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zil.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zio.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zio_checksum.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zio_compress.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zio_inject.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zle.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zrlock.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zthr.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zvol.c optional zfs compile-with "${ZFS_C}" # dtrace specific cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c optional dtrace compile-with "${DTRACE_C}" \ warning "kernel contains CDDL licensed DTRACE" cddl/contrib/opensolaris/uts/common/dtrace/dtrace_xoroshiro128_plus.c optional dtrace compile-with "${DTRACE_C}" cddl/dev/dtmalloc/dtmalloc.c optional dtmalloc | dtraceall compile-with "${CDDL_C}" cddl/dev/profile/profile.c optional dtrace_profile | dtraceall compile-with "${CDDL_C}" cddl/dev/sdt/sdt.c optional dtrace_sdt | dtraceall compile-with "${CDDL_C}" cddl/dev/fbt/fbt.c optional dtrace_fbt | dtraceall compile-with "${FBT_C}" cddl/dev/systrace/systrace.c optional dtrace_systrace | dtraceall compile-with "${CDDL_C}" cddl/dev/prototype.c optional dtrace_prototype | dtraceall compile-with "${CDDL_C}" fs/nfsclient/nfs_clkdtrace.c optional dtnfscl nfscl | dtraceall nfscl compile-with "${CDDL_C}" compat/freebsd32/freebsd32_abort2.c optional compat_freebsd32 compat/freebsd32/freebsd32_capability.c optional compat_freebsd32 compat/freebsd32/freebsd32_ioctl.c optional compat_freebsd32 compat/freebsd32/freebsd32_misc.c optional compat_freebsd32 compat/freebsd32/freebsd32_syscalls.c optional compat_freebsd32 compat/freebsd32/freebsd32_sysent.c optional compat_freebsd32 contrib/ck/src/ck_array.c standard compile-with "${NORMAL_C} -I$S/contrib/ck/include" contrib/ck/src/ck_barrier_centralized.c standard compile-with "${NORMAL_C} -I$S/contrib/ck/include" contrib/ck/src/ck_barrier_combining.c standard compile-with "${NORMAL_C} -I$S/contrib/ck/include" contrib/ck/src/ck_barrier_dissemination.c standard compile-with "${NORMAL_C} -I$S/contrib/ck/include" contrib/ck/src/ck_barrier_mcs.c standard compile-with "${NORMAL_C} -I$S/contrib/ck/include" contrib/ck/src/ck_barrier_tournament.c standard compile-with "${NORMAL_C} -I$S/contrib/ck/include" contrib/ck/src/ck_epoch.c standard compile-with "${NORMAL_C} -I$S/contrib/ck/include" contrib/ck/src/ck_hp.c standard compile-with "${NORMAL_C} -I$S/contrib/ck/include" contrib/ck/src/ck_hs.c standard compile-with "${NORMAL_C} -I$S/contrib/ck/include" contrib/ck/src/ck_ht.c standard compile-with "${NORMAL_C} -I$S/contrib/ck/include" contrib/ck/src/ck_rhs.c standard compile-with "${NORMAL_C} -I$S/contrib/ck/include" contrib/dev/acpica/common/ahids.c optional acpi acpi_debug contrib/dev/acpica/common/ahuuids.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbcmds.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbconvert.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbdisply.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbexec.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbhistry.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbinput.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbmethod.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbnames.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbobject.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbstats.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbtest.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbutils.c optional acpi acpi_debug contrib/dev/acpica/components/debugger/dbxface.c optional acpi acpi_debug contrib/dev/acpica/components/disassembler/dmbuffer.c optional acpi acpi_debug contrib/dev/acpica/components/disassembler/dmcstyle.c optional acpi acpi_debug contrib/dev/acpica/components/disassembler/dmdeferred.c optional acpi acpi_debug contrib/dev/acpica/components/disassembler/dmnames.c optional acpi acpi_debug contrib/dev/acpica/components/disassembler/dmopcode.c optional acpi acpi_debug contrib/dev/acpica/components/disassembler/dmresrc.c optional acpi acpi_debug contrib/dev/acpica/components/disassembler/dmresrcl.c optional acpi acpi_debug contrib/dev/acpica/components/disassembler/dmresrcl2.c optional acpi acpi_debug contrib/dev/acpica/components/disassembler/dmresrcs.c optional acpi acpi_debug contrib/dev/acpica/components/disassembler/dmutils.c optional acpi acpi_debug contrib/dev/acpica/components/disassembler/dmwalk.c optional acpi acpi_debug contrib/dev/acpica/components/dispatcher/dsargs.c optional acpi contrib/dev/acpica/components/dispatcher/dscontrol.c optional acpi contrib/dev/acpica/components/dispatcher/dsdebug.c optional acpi contrib/dev/acpica/components/dispatcher/dsfield.c optional acpi contrib/dev/acpica/components/dispatcher/dsinit.c optional acpi contrib/dev/acpica/components/dispatcher/dsmethod.c optional acpi contrib/dev/acpica/components/dispatcher/dsmthdat.c optional acpi contrib/dev/acpica/components/dispatcher/dsobject.c optional acpi contrib/dev/acpica/components/dispatcher/dsopcode.c optional acpi contrib/dev/acpica/components/dispatcher/dspkginit.c optional acpi contrib/dev/acpica/components/dispatcher/dsutils.c optional acpi contrib/dev/acpica/components/dispatcher/dswexec.c optional acpi contrib/dev/acpica/components/dispatcher/dswload.c optional acpi contrib/dev/acpica/components/dispatcher/dswload2.c optional acpi contrib/dev/acpica/components/dispatcher/dswscope.c optional acpi contrib/dev/acpica/components/dispatcher/dswstate.c optional acpi contrib/dev/acpica/components/events/evevent.c optional acpi contrib/dev/acpica/components/events/evglock.c optional acpi contrib/dev/acpica/components/events/evgpe.c optional acpi contrib/dev/acpica/components/events/evgpeblk.c optional acpi contrib/dev/acpica/components/events/evgpeinit.c optional acpi contrib/dev/acpica/components/events/evgpeutil.c optional acpi contrib/dev/acpica/components/events/evhandler.c optional acpi contrib/dev/acpica/components/events/evmisc.c optional acpi contrib/dev/acpica/components/events/evregion.c optional acpi contrib/dev/acpica/components/events/evrgnini.c optional acpi contrib/dev/acpica/components/events/evsci.c optional acpi contrib/dev/acpica/components/events/evxface.c optional acpi contrib/dev/acpica/components/events/evxfevnt.c optional acpi contrib/dev/acpica/components/events/evxfgpe.c optional acpi contrib/dev/acpica/components/events/evxfregn.c optional acpi contrib/dev/acpica/components/executer/exconcat.c optional acpi contrib/dev/acpica/components/executer/exconfig.c optional acpi contrib/dev/acpica/components/executer/exconvrt.c optional acpi contrib/dev/acpica/components/executer/excreate.c optional acpi contrib/dev/acpica/components/executer/exdebug.c optional acpi contrib/dev/acpica/components/executer/exdump.c optional acpi contrib/dev/acpica/components/executer/exfield.c optional acpi contrib/dev/acpica/components/executer/exfldio.c optional acpi contrib/dev/acpica/components/executer/exmisc.c optional acpi contrib/dev/acpica/components/executer/exmutex.c optional acpi contrib/dev/acpica/components/executer/exnames.c optional acpi contrib/dev/acpica/components/executer/exoparg1.c optional acpi contrib/dev/acpica/components/executer/exoparg2.c optional acpi contrib/dev/acpica/components/executer/exoparg3.c optional acpi contrib/dev/acpica/components/executer/exoparg6.c optional acpi contrib/dev/acpica/components/executer/exprep.c optional acpi contrib/dev/acpica/components/executer/exregion.c optional acpi contrib/dev/acpica/components/executer/exresnte.c optional acpi contrib/dev/acpica/components/executer/exresolv.c optional acpi contrib/dev/acpica/components/executer/exresop.c optional acpi contrib/dev/acpica/components/executer/exserial.c optional acpi contrib/dev/acpica/components/executer/exstore.c optional acpi contrib/dev/acpica/components/executer/exstoren.c optional acpi contrib/dev/acpica/components/executer/exstorob.c optional acpi contrib/dev/acpica/components/executer/exsystem.c optional acpi contrib/dev/acpica/components/executer/extrace.c optional acpi contrib/dev/acpica/components/executer/exutils.c optional acpi contrib/dev/acpica/components/hardware/hwacpi.c optional acpi contrib/dev/acpica/components/hardware/hwesleep.c optional acpi contrib/dev/acpica/components/hardware/hwgpe.c optional acpi contrib/dev/acpica/components/hardware/hwpci.c optional acpi contrib/dev/acpica/components/hardware/hwregs.c optional acpi contrib/dev/acpica/components/hardware/hwsleep.c optional acpi contrib/dev/acpica/components/hardware/hwtimer.c optional acpi contrib/dev/acpica/components/hardware/hwvalid.c optional acpi contrib/dev/acpica/components/hardware/hwxface.c optional acpi contrib/dev/acpica/components/hardware/hwxfsleep.c optional acpi contrib/dev/acpica/components/namespace/nsaccess.c optional acpi \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" contrib/dev/acpica/components/namespace/nsalloc.c optional acpi contrib/dev/acpica/components/namespace/nsarguments.c optional acpi contrib/dev/acpica/components/namespace/nsconvert.c optional acpi contrib/dev/acpica/components/namespace/nsdump.c optional acpi contrib/dev/acpica/components/namespace/nseval.c optional acpi contrib/dev/acpica/components/namespace/nsinit.c optional acpi contrib/dev/acpica/components/namespace/nsload.c optional acpi contrib/dev/acpica/components/namespace/nsnames.c optional acpi contrib/dev/acpica/components/namespace/nsobject.c optional acpi contrib/dev/acpica/components/namespace/nsparse.c optional acpi contrib/dev/acpica/components/namespace/nspredef.c optional acpi contrib/dev/acpica/components/namespace/nsprepkg.c optional acpi contrib/dev/acpica/components/namespace/nsrepair.c optional acpi contrib/dev/acpica/components/namespace/nsrepair2.c optional acpi contrib/dev/acpica/components/namespace/nssearch.c optional acpi contrib/dev/acpica/components/namespace/nsutils.c optional acpi contrib/dev/acpica/components/namespace/nswalk.c optional acpi contrib/dev/acpica/components/namespace/nsxfeval.c optional acpi contrib/dev/acpica/components/namespace/nsxfname.c optional acpi contrib/dev/acpica/components/namespace/nsxfobj.c optional acpi contrib/dev/acpica/components/parser/psargs.c optional acpi contrib/dev/acpica/components/parser/psloop.c optional acpi contrib/dev/acpica/components/parser/psobject.c optional acpi contrib/dev/acpica/components/parser/psopcode.c optional acpi contrib/dev/acpica/components/parser/psopinfo.c optional acpi contrib/dev/acpica/components/parser/psparse.c optional acpi contrib/dev/acpica/components/parser/psscope.c optional acpi contrib/dev/acpica/components/parser/pstree.c optional acpi contrib/dev/acpica/components/parser/psutils.c optional acpi contrib/dev/acpica/components/parser/pswalk.c optional acpi contrib/dev/acpica/components/parser/psxface.c optional acpi contrib/dev/acpica/components/resources/rsaddr.c optional acpi contrib/dev/acpica/components/resources/rscalc.c optional acpi contrib/dev/acpica/components/resources/rscreate.c optional acpi contrib/dev/acpica/components/resources/rsdump.c optional acpi acpi_debug contrib/dev/acpica/components/resources/rsdumpinfo.c optional acpi contrib/dev/acpica/components/resources/rsinfo.c optional acpi contrib/dev/acpica/components/resources/rsio.c optional acpi contrib/dev/acpica/components/resources/rsirq.c optional acpi contrib/dev/acpica/components/resources/rslist.c optional acpi contrib/dev/acpica/components/resources/rsmemory.c optional acpi contrib/dev/acpica/components/resources/rsmisc.c optional acpi contrib/dev/acpica/components/resources/rsserial.c optional acpi contrib/dev/acpica/components/resources/rsutils.c optional acpi contrib/dev/acpica/components/resources/rsxface.c optional acpi contrib/dev/acpica/components/tables/tbdata.c optional acpi contrib/dev/acpica/components/tables/tbfadt.c optional acpi contrib/dev/acpica/components/tables/tbfind.c optional acpi contrib/dev/acpica/components/tables/tbinstal.c optional acpi contrib/dev/acpica/components/tables/tbprint.c optional acpi contrib/dev/acpica/components/tables/tbutils.c optional acpi contrib/dev/acpica/components/tables/tbxface.c optional acpi contrib/dev/acpica/components/tables/tbxfload.c optional acpi contrib/dev/acpica/components/tables/tbxfroot.c optional acpi contrib/dev/acpica/components/utilities/utaddress.c optional acpi contrib/dev/acpica/components/utilities/utalloc.c optional acpi contrib/dev/acpica/components/utilities/utascii.c optional acpi contrib/dev/acpica/components/utilities/utbuffer.c optional acpi contrib/dev/acpica/components/utilities/utcache.c optional acpi contrib/dev/acpica/components/utilities/utcksum.c optional acpi contrib/dev/acpica/components/utilities/utcopy.c optional acpi contrib/dev/acpica/components/utilities/utdebug.c optional acpi contrib/dev/acpica/components/utilities/utdecode.c optional acpi contrib/dev/acpica/components/utilities/utdelete.c optional acpi contrib/dev/acpica/components/utilities/uterror.c optional acpi contrib/dev/acpica/components/utilities/uteval.c optional acpi contrib/dev/acpica/components/utilities/utexcep.c optional acpi contrib/dev/acpica/components/utilities/utglobal.c optional acpi contrib/dev/acpica/components/utilities/uthex.c optional acpi contrib/dev/acpica/components/utilities/utids.c optional acpi contrib/dev/acpica/components/utilities/utinit.c optional acpi contrib/dev/acpica/components/utilities/utlock.c optional acpi contrib/dev/acpica/components/utilities/utmath.c optional acpi contrib/dev/acpica/components/utilities/utmisc.c optional acpi contrib/dev/acpica/components/utilities/utmutex.c optional acpi contrib/dev/acpica/components/utilities/utnonansi.c optional acpi contrib/dev/acpica/components/utilities/utobject.c optional acpi contrib/dev/acpica/components/utilities/utosi.c optional acpi contrib/dev/acpica/components/utilities/utownerid.c optional acpi contrib/dev/acpica/components/utilities/utpredef.c optional acpi contrib/dev/acpica/components/utilities/utresdecode.c optional acpi acpi_debug contrib/dev/acpica/components/utilities/utresrc.c optional acpi contrib/dev/acpica/components/utilities/utstate.c optional acpi contrib/dev/acpica/components/utilities/utstring.c optional acpi contrib/dev/acpica/components/utilities/utstrsuppt.c optional acpi contrib/dev/acpica/components/utilities/utstrtoul64.c optional acpi contrib/dev/acpica/components/utilities/utuuid.c optional acpi acpi_debug contrib/dev/acpica/components/utilities/utxface.c optional acpi contrib/dev/acpica/components/utilities/utxferror.c optional acpi contrib/dev/acpica/components/utilities/utxfinit.c optional acpi contrib/dev/acpica/os_specific/service_layers/osgendbg.c optional acpi acpi_debug netpfil/ipfilter/netinet/fil.c optional ipfilter inet \ compile-with "${NORMAL_C} ${NO_WSELF_ASSIGN} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_auth.c optional ipfilter inet \ compile-with "${NORMAL_C} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_fil_freebsd.c optional ipfilter inet \ compile-with "${NORMAL_C} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_frag.c optional ipfilter inet \ compile-with "${NORMAL_C} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_log.c optional ipfilter inet \ compile-with "${NORMAL_C} -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_nat.c optional ipfilter inet \ compile-with "${NORMAL_C} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_proxy.c optional ipfilter inet \ compile-with "${NORMAL_C} ${NO_WSELF_ASSIGN} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_state.c optional ipfilter inet \ compile-with "${NORMAL_C} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_lookup.c optional ipfilter inet \ compile-with "${NORMAL_C} ${NO_WSELF_ASSIGN} -Wno-unused -Wno-error -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_pool.c optional ipfilter inet \ compile-with "${NORMAL_C} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_htable.c optional ipfilter inet \ compile-with "${NORMAL_C} -Wno-unused -I$S/netpfil/ipfilter ${NO_WTAUTOLOGICAL_POINTER_COMPARE}" netpfil/ipfilter/netinet/ip_sync.c optional ipfilter inet \ compile-with "${NORMAL_C} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/mlfk_ipl.c optional ipfilter inet \ compile-with "${NORMAL_C} -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_nat6.c optional ipfilter inet \ compile-with "${NORMAL_C} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_rules.c optional ipfilter inet \ compile-with "${NORMAL_C} -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_scan.c optional ipfilter inet \ compile-with "${NORMAL_C} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/ip_dstlist.c optional ipfilter inet \ compile-with "${NORMAL_C} -Wno-unused -I$S/netpfil/ipfilter" netpfil/ipfilter/netinet/radix_ipf.c optional ipfilter inet \ compile-with "${NORMAL_C} -I$S/netpfil/ipfilter" contrib/libfdt/fdt.c optional fdt contrib/libfdt/fdt_ro.c optional fdt contrib/libfdt/fdt_rw.c optional fdt contrib/libfdt/fdt_strerror.c optional fdt contrib/libfdt/fdt_sw.c optional fdt contrib/libfdt/fdt_wip.c optional fdt contrib/libnv/cnvlist.c standard contrib/libnv/dnvlist.c standard contrib/libnv/nvlist.c standard contrib/libnv/bsd_nvpair.c standard # xz dev/xz/xz_mod.c optional xz \ compile-with "${NORMAL_C} -DXZ_USE_CRC64 -I$S/contrib/xz-embedded/freebsd/ -I$S/contrib/xz-embedded/linux/lib/xz/ -I$S/contrib/xz-embedded/linux/include/linux/" contrib/xz-embedded/linux/lib/xz/xz_crc32.c optional xz \ compile-with "${NORMAL_C} -DXZ_USE_CRC64 -I$S/contrib/xz-embedded/freebsd/ -I$S/contrib/xz-embedded/linux/lib/xz/ -I$S/contrib/xz-embedded/linux/include/linux/" contrib/xz-embedded/linux/lib/xz/xz_crc64.c optional xz \ compile-with "${NORMAL_C} -DXZ_USE_CRC64 -I$S/contrib/xz-embedded/freebsd/ -I$S/contrib/xz-embedded/linux/lib/xz/ -I$S/contrib/xz-embedded/linux/include/linux/" contrib/xz-embedded/linux/lib/xz/xz_dec_bcj.c optional xz \ compile-with "${NORMAL_C} -DXZ_USE_CRC64 -I$S/contrib/xz-embedded/freebsd/ -I$S/contrib/xz-embedded/linux/lib/xz/ -I$S/contrib/xz-embedded/linux/include/linux/" contrib/xz-embedded/linux/lib/xz/xz_dec_lzma2.c optional xz \ compile-with "${NORMAL_C} -DXZ_USE_CRC64 -I$S/contrib/xz-embedded/freebsd/ -I$S/contrib/xz-embedded/linux/lib/xz/ -I$S/contrib/xz-embedded/linux/include/linux/" contrib/xz-embedded/linux/lib/xz/xz_dec_stream.c optional xz \ compile-with "${NORMAL_C} -DXZ_USE_CRC64 -I$S/contrib/xz-embedded/freebsd/ -I$S/contrib/xz-embedded/linux/lib/xz/ -I$S/contrib/xz-embedded/linux/include/linux/" # Zstd contrib/zstd/lib/freebsd/zstd_kmalloc.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/common/zstd_common.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/common/fse_decompress.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/common/entropy_common.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/common/error_private.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/common/xxhash.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/compress/zstd_compress.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/compress/zstd_compress_literals.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/compress/zstd_compress_sequences.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/compress/zstd_compress_superblock.c optional zstdio compile-with "${ZSTD_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" contrib/zstd/lib/compress/fse_compress.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/compress/hist.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/compress/huf_compress.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/compress/zstd_double_fast.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/compress/zstd_fast.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/compress/zstd_lazy.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/compress/zstd_ldm.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/compress/zstd_opt.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/decompress/zstd_ddict.c optional zstdio compile-with ${ZSTD_C} contrib/zstd/lib/decompress/zstd_decompress.c optional zstdio compile-with ${ZSTD_C} # See comment in sys/conf/kern.pre.mk contrib/zstd/lib/decompress/zstd_decompress_block.c optional zstdio \ compile-with "${ZSTD_C} ${ZSTD_DECOMPRESS_BLOCK_FLAGS}" contrib/zstd/lib/decompress/huf_decompress.c optional zstdio compile-with "${ZSTD_C} ${NO_WBITWISE_INSTEAD_OF_LOGICAL}" # Blake 2 contrib/libb2/blake2b-ref.c optional crypto | !random_loadable random_fenestrasx \ compile-with "${NORMAL_C} -I$S/crypto/blake2 -Wno-cast-qual -DSUFFIX=_ref -Wno-unused-function" contrib/libb2/blake2s-ref.c optional crypto \ compile-with "${NORMAL_C} -I$S/crypto/blake2 -Wno-cast-qual -DSUFFIX=_ref -Wno-unused-function" crypto/blake2/blake2-sw.c optional crypto \ compile-with "${NORMAL_C} -I$S/crypto/blake2 -Wno-cast-qual" crypto/camellia/camellia.c optional crypto crypto/camellia/camellia-api.c optional crypto crypto/chacha20/chacha.c standard crypto/chacha20/chacha-sw.c optional crypto crypto/chacha20_poly1305.c optional crypto crypto/curve25519.c optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include -I$S/crypto/libsodium" crypto/des/des_ecb.c optional netsmb crypto/des/des_setkey.c optional netsmb crypto/openssl/ossl.c optional ossl crypto/openssl/ossl_aes.c optional ossl crypto/openssl/ossl_chacha20.c optional ossl crypto/openssl/ossl_poly1305.c optional ossl crypto/openssl/ossl_sha1.c optional ossl crypto/openssl/ossl_sha256.c optional ossl crypto/openssl/ossl_sha512.c optional ossl crypto/rc4/rc4.c optional netgraph_mppc_encryption crypto/rijndael/rijndael-alg-fst.c optional crypto | ekcd | geom_bde | \ !random_loadable | wlan_ccmp crypto/rijndael/rijndael-api-fst.c optional ekcd | geom_bde | !random_loadable crypto/rijndael/rijndael-api.c optional crypto | wlan_ccmp crypto/sha1.c optional carp | crypto | ether | \ netgraph_mppc_encryption | sctp crypto/sha2/sha256c.c optional crypto | ekcd | geom_bde | \ !random_loadable | sctp | zfs crypto/sha2/sha512c.c optional crypto | geom_bde | zfs crypto/skein/skein.c optional crypto | zfs crypto/skein/skein_block.c optional crypto | zfs crypto/siphash/siphash.c optional inet | inet6 | wg crypto/siphash/siphash_test.c optional inet | inet6 | wg ddb/db_access.c optional ddb ddb/db_break.c optional ddb ddb/db_capture.c optional ddb ddb/db_command.c optional ddb ddb/db_examine.c optional ddb ddb/db_expr.c optional ddb ddb/db_input.c optional ddb ddb/db_lex.c optional ddb ddb/db_main.c optional ddb ddb/db_output.c optional ddb ddb/db_print.c optional ddb ddb/db_ps.c optional ddb ddb/db_run.c optional ddb ddb/db_script.c optional ddb ddb/db_sym.c optional ddb ddb/db_thread.c optional ddb ddb/db_textdump.c optional ddb ddb/db_variables.c optional ddb ddb/db_watch.c optional ddb ddb/db_write_cmd.c optional ddb dev/aac/aac.c optional aac dev/aac/aac_cam.c optional aacp aac dev/aac/aac_debug.c optional aac dev/aac/aac_disk.c optional aac dev/aac/aac_pci.c optional aac pci dev/aacraid/aacraid.c optional aacraid dev/aacraid/aacraid_cam.c optional aacraid scbus dev/aacraid/aacraid_debug.c optional aacraid dev/aacraid/aacraid_pci.c optional aacraid pci dev/acpi_support/acpi_wmi.c optional acpi_wmi acpi dev/acpi_support/acpi_asus.c optional acpi_asus acpi dev/acpi_support/acpi_asus_wmi.c optional acpi_asus_wmi acpi dev/acpi_support/acpi_fujitsu.c optional acpi_fujitsu acpi dev/acpi_support/acpi_hp.c optional acpi_hp acpi dev/acpi_support/acpi_ibm.c optional acpi_ibm acpi dev/acpi_support/acpi_panasonic.c optional acpi_panasonic acpi dev/acpi_support/acpi_sony.c optional acpi_sony acpi dev/acpi_support/acpi_toshiba.c optional acpi_toshiba acpi dev/acpi_support/atk0110.c optional aibs acpi dev/acpica/Osd/OsdDebug.c optional acpi dev/acpica/Osd/OsdHardware.c optional acpi dev/acpica/Osd/OsdInterrupt.c optional acpi dev/acpica/Osd/OsdMemory.c optional acpi dev/acpica/Osd/OsdSchedule.c optional acpi dev/acpica/Osd/OsdStream.c optional acpi dev/acpica/Osd/OsdSynch.c optional acpi dev/acpica/Osd/OsdTable.c optional acpi dev/acpica/acpi.c optional acpi dev/acpica/acpi_acad.c optional acpi dev/acpica/acpi_apei.c optional acpi dev/acpica/acpi_battery.c optional acpi dev/acpica/acpi_button.c optional acpi dev/acpica/acpi_cmbat.c optional acpi dev/acpica/acpi_cpu.c optional acpi dev/acpica/acpi_ec.c optional acpi dev/acpica/acpi_ged.c optional acpi_ged acpi dev/acpica/acpi_isab.c optional acpi isa dev/acpica/acpi_lid.c optional acpi dev/acpica/acpi_package.c optional acpi dev/acpica/acpi_perf.c optional acpi dev/acpica/acpi_powerres.c optional acpi dev/acpica/acpi_quirk.c optional acpi dev/acpica/acpi_resource.c optional acpi dev/acpica/acpi_container.c optional acpi dev/acpica/acpi_smbat.c optional acpi dev/acpica/acpi_thermal.c optional acpi dev/acpica/acpi_throttle.c optional acpi dev/acpica/acpi_video.c optional acpi_video acpi dev/acpica/acpi_dock.c optional acpi_dock acpi dev/adlink/adlink.c optional adlink dev/ae/if_ae.c optional ae pci dev/age/if_age.c optional age pci dev/agp/agp.c optional agp pci dev/agp/agp_if.m optional agp pci dev/ahci/ahci.c optional ahci dev/ahci/ahciem.c optional ahci dev/ahci/ahci_pci.c optional ahci pci dev/aic7xxx/ahc_isa.c optional ahc isa dev/aic7xxx/ahc_pci.c optional ahc pci \ compile-with "${NORMAL_C} ${NO_WCONSTANT_CONVERSION}" dev/aic7xxx/ahd_pci.c optional ahd pci \ compile-with "${NORMAL_C} ${NO_WCONSTANT_CONVERSION}" dev/aic7xxx/aic7770.c optional ahc dev/aic7xxx/aic79xx.c optional ahd pci dev/aic7xxx/aic79xx_osm.c optional ahd pci dev/aic7xxx/aic79xx_pci.c optional ahd pci dev/aic7xxx/aic79xx_reg_print.c optional ahd pci ahd_reg_pretty_print dev/aic7xxx/aic7xxx.c optional ahc dev/aic7xxx/aic7xxx_93cx6.c optional ahc dev/aic7xxx/aic7xxx_osm.c optional ahc dev/aic7xxx/aic7xxx_pci.c optional ahc pci dev/aic7xxx/aic7xxx_reg_print.c optional ahc ahc_reg_pretty_print dev/al_eth/al_eth.c optional al_eth fdt \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" dev/al_eth/al_init_eth_lm.c optional al_eth fdt \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" dev/al_eth/al_init_eth_kr.c optional al_eth fdt \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" contrib/alpine-hal/al_hal_iofic.c optional al_iofic \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" contrib/alpine-hal/al_hal_serdes_25g.c optional al_serdes \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" contrib/alpine-hal/al_hal_serdes_hssp.c optional al_serdes \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" contrib/alpine-hal/al_hal_udma_config.c optional al_udma \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" contrib/alpine-hal/al_hal_udma_debug.c optional al_udma \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" contrib/alpine-hal/al_hal_udma_iofic.c optional al_udma \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" contrib/alpine-hal/al_hal_udma_main.c optional al_udma \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" contrib/alpine-hal/al_serdes.c optional al_serdes \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" contrib/alpine-hal/eth/al_hal_eth_kr.c optional al_eth \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" contrib/alpine-hal/eth/al_hal_eth_main.c optional al_eth \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" dev/alc/if_alc.c optional alc pci dev/ale/if_ale.c optional ale pci dev/alpm/alpm.c optional alpm pci dev/altera/avgen/altera_avgen.c optional altera_avgen dev/altera/avgen/altera_avgen_fdt.c optional altera_avgen fdt dev/altera/avgen/altera_avgen_nexus.c optional altera_avgen dev/altera/msgdma/msgdma.c optional altera_msgdma xdma dev/altera/sdcard/altera_sdcard.c optional altera_sdcard dev/altera/sdcard/altera_sdcard_disk.c optional altera_sdcard dev/altera/sdcard/altera_sdcard_io.c optional altera_sdcard dev/altera/sdcard/altera_sdcard_fdt.c optional altera_sdcard fdt dev/altera/sdcard/altera_sdcard_nexus.c optional altera_sdcard dev/altera/softdma/softdma.c optional altera_softdma xdma fdt dev/altera/pio/pio.c optional altera_pio dev/altera/pio/pio_if.m optional altera_pio dev/amdpm/amdpm.c optional amdpm pci | nfpm pci dev/amdsmb/amdsmb.c optional amdsmb pci # dev/ata/ata_if.m optional ata | atacore dev/ata/ata-all.c optional ata | atacore dev/ata/ata-dma.c optional ata | atacore dev/ata/ata-lowlevel.c optional ata | atacore dev/ata/ata-sata.c optional ata | atacore dev/ata/ata-isa.c optional ata isa | ataisa dev/ata/ata-pci.c optional ata pci | atapci dev/ata/chipsets/ata-acard.c optional ata pci | ataacard dev/ata/chipsets/ata-acerlabs.c optional ata pci | ataacerlabs dev/ata/chipsets/ata-amd.c optional ata pci | ataamd dev/ata/chipsets/ata-ati.c optional ata pci | ataati dev/ata/chipsets/ata-cenatek.c optional ata pci | atacenatek dev/ata/chipsets/ata-cypress.c optional ata pci | atacypress dev/ata/chipsets/ata-cyrix.c optional ata pci | atacyrix dev/ata/chipsets/ata-highpoint.c optional ata pci | atahighpoint dev/ata/chipsets/ata-intel.c optional ata pci | ataintel dev/ata/chipsets/ata-ite.c optional ata pci | ataite dev/ata/chipsets/ata-jmicron.c optional ata pci | atajmicron dev/ata/chipsets/ata-marvell.c optional ata pci | atamarvell dev/ata/chipsets/ata-micron.c optional ata pci | atamicron dev/ata/chipsets/ata-national.c optional ata pci | atanational dev/ata/chipsets/ata-netcell.c optional ata pci | atanetcell dev/ata/chipsets/ata-nvidia.c optional ata pci | atanvidia dev/ata/chipsets/ata-promise.c optional ata pci | atapromise dev/ata/chipsets/ata-serverworks.c optional ata pci | ataserverworks dev/ata/chipsets/ata-siliconimage.c optional ata pci | atasiliconimage | ataati dev/ata/chipsets/ata-sis.c optional ata pci | atasis dev/ata/chipsets/ata-via.c optional ata pci | atavia # dev/ath/if_ath.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_alq.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_beacon.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_btcoex.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_btcoex_mci.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_debug.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_descdma.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_keycache.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_ioctl.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_led.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_lna_div.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_pci.c optional ath pci \ compile-with "${ATH_C}" dev/ath/if_ath_tx.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_tx_edma.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_tx_ht.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_tdma.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_sysctl.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_rx.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_rx_edma.c optional ath \ compile-with "${ATH_C}" dev/ath/if_ath_spectral.c optional ath \ compile-with "${ATH_C}" dev/ath/ah_osdep.c optional ath \ compile-with "${ATH_C}" # dev/ath/ath_hal/ah.c optional ath \ compile-with "${ATH_C}" dev/ath/ath_hal/ah_eeprom_v1.c optional ath_hal | ath_ar5210 \ compile-with "${ATH_C}" dev/ath/ath_hal/ah_eeprom_v3.c optional ath_hal | ath_ar5211 | ath_ar5212 \ compile-with "${ATH_C}" dev/ath/ath_hal/ah_eeprom_v14.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 \ compile-with "${ATH_C}" dev/ath/ath_hal/ah_eeprom_v4k.c \ optional ath_hal | ath_ar9285 \ compile-with "${ATH_C}" dev/ath/ath_hal/ah_eeprom_9287.c \ optional ath_hal | ath_ar9287 \ compile-with "${ATH_C}" dev/ath/ath_hal/ah_regdomain.c optional ath \ compile-with "${ATH_C} ${NO_WSHIFT_COUNT_NEGATIVE} ${NO_WSHIFT_COUNT_OVERFLOW}" # ar5210 dev/ath/ath_hal/ar5210/ar5210_attach.c optional ath_hal | ath_ar5210 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5210/ar5210_beacon.c optional ath_hal | ath_ar5210 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5210/ar5210_interrupts.c optional ath_hal | ath_ar5210 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5210/ar5210_keycache.c optional ath_hal | ath_ar5210 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5210/ar5210_misc.c optional ath_hal | ath_ar5210 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5210/ar5210_phy.c optional ath_hal | ath_ar5210 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5210/ar5210_power.c optional ath_hal | ath_ar5210 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5210/ar5210_recv.c optional ath_hal | ath_ar5210 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5210/ar5210_reset.c optional ath_hal | ath_ar5210 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5210/ar5210_xmit.c optional ath_hal | ath_ar5210 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" # ar5211 dev/ath/ath_hal/ar5211/ar5211_attach.c optional ath_hal | ath_ar5211 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5211/ar5211_beacon.c optional ath_hal | ath_ar5211 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5211/ar5211_interrupts.c optional ath_hal | ath_ar5211 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5211/ar5211_keycache.c optional ath_hal | ath_ar5211 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5211/ar5211_misc.c optional ath_hal | ath_ar5211 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5211/ar5211_phy.c optional ath_hal | ath_ar5211 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5211/ar5211_power.c optional ath_hal | ath_ar5211 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5211/ar5211_recv.c optional ath_hal | ath_ar5211 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5211/ar5211_reset.c optional ath_hal | ath_ar5211 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5211/ar5211_xmit.c optional ath_hal | ath_ar5211 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" # ar5212 dev/ath/ath_hal/ar5212/ar5212_ani.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_attach.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_beacon.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_eeprom.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_gpio.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_interrupts.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_keycache.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_misc.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_phy.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_power.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_recv.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_reset.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_rfgain.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5212_xmit.c \ optional ath_hal | ath_ar5212 | ath_ar5416 | ath_ar9160 | ath_ar9280 | \ ath_ar9285 ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" # ar5416 (depends on ar5212) dev/ath/ath_hal/ar5416/ar5416_ani.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_attach.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_beacon.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_btcoex.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_cal.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_cal_iq.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_cal_adcgain.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_cal_adcdc.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_eeprom.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_gpio.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_interrupts.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_keycache.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_misc.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_phy.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_power.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_radar.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_recv.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_reset.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_spectral.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar5416_xmit.c \ optional ath_hal | ath_ar5416 | ath_ar9160 | ath_ar9280 | ath_ar9285 | \ ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" # ar9160 (depends on ar5416) dev/ath/ath_hal/ar9001/ar9160_attach.c optional ath_hal | ath_ar9160 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" # ar9280 (depends on ar5416) dev/ath/ath_hal/ar9002/ar9280_attach.c optional ath_hal | ath_ar9280 | \ ath_ar9285 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9280_olc.c optional ath_hal | ath_ar9280 | \ ath_ar9285 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" # ar9285 (depends on ar5416 and ar9280) dev/ath/ath_hal/ar9002/ar9285_attach.c optional ath_hal | ath_ar9285 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9285_btcoex.c optional ath_hal | ath_ar9285 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9285_reset.c optional ath_hal | ath_ar9285 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9285_cal.c optional ath_hal | ath_ar9285 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9285_phy.c optional ath_hal | ath_ar9285 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9285_diversity.c optional ath_hal | ath_ar9285 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" # ar9287 (depends on ar5416) dev/ath/ath_hal/ar9002/ar9287_attach.c optional ath_hal | ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9287_reset.c optional ath_hal | ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9287_cal.c optional ath_hal | ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9287_olc.c optional ath_hal | ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" # ar9300 contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_beacon.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_eeprom.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal ${NO_WCONSTANT_CONVERSION}" contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_interrupts.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_keycache.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_mci.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_misc.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_paprd.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_phy.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_power.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_radar.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_recv.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_recv_ds.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal ${NO_WSOMETIMES_UNINITIALIZED} -Wno-unused-function" contrib/dev/ath/ath_hal/ar9300/ar9300_stub.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_stub_funcs.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_spectral.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_timer.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_xmit.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" contrib/dev/ath/ath_hal/ar9300/ar9300_xmit_ds.c optional ath_hal | ath_ar9300 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal" # rf backends dev/ath/ath_hal/ar5212/ar2316.c optional ath_rf2316 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar2317.c optional ath_rf2317 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar2413.c optional ath_hal | ath_rf2413 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar2425.c optional ath_hal | ath_rf2425 | ath_rf2417 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5111.c optional ath_hal | ath_rf5111 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5112.c optional ath_hal | ath_rf5112 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5212/ar5413.c optional ath_hal | ath_rf5413 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar5416/ar2133.c optional ath_hal | ath_ar5416 | \ ath_ar9130 | ath_ar9160 | ath_ar9280 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9280.c optional ath_hal | ath_ar9280 | ath_ar9285 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9285.c optional ath_hal | ath_ar9285 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" dev/ath/ath_hal/ar9002/ar9287.c optional ath_hal | ath_ar9287 \ compile-with "${ATH_C} -I$S/dev/ath/ath_hal" # ath rate control algorithms dev/ath/ath_rate/amrr/amrr.c optional ath_rate_amrr \ compile-with "${ATH_C}" dev/ath/ath_rate/onoe/onoe.c optional ath_rate_onoe \ compile-with "${ATH_C}" dev/ath/ath_rate/sample/sample.c optional ath_rate_sample \ compile-with "${ATH_C}" # ath DFS modules dev/ath/ath_dfs/null/dfs_null.c optional ath \ compile-with "${ATH_C}" # dev/backlight/backlight_if.m optional backlight | compat_linuxkpi dev/backlight/backlight.c optional backlight | compat_linuxkpi dev/bce/if_bce.c optional bce dev/bfe/if_bfe.c optional bfe dev/bge/if_bge.c optional bge dev/bhnd/bhnd.c optional bhnd dev/bhnd/bhnd_erom.c optional bhnd dev/bhnd/bhnd_erom_if.m optional bhnd dev/bhnd/bhnd_subr.c optional bhnd dev/bhnd/bhnd_bus_if.m optional bhnd dev/bhnd/bhndb/bhnd_bhndb.c optional bhndb bhnd dev/bhnd/bhndb/bhndb.c optional bhndb bhnd dev/bhnd/bhndb/bhndb_bus_if.m optional bhndb bhnd dev/bhnd/bhndb/bhndb_hwdata.c optional bhndb bhnd dev/bhnd/bhndb/bhndb_if.m optional bhndb bhnd dev/bhnd/bhndb/bhndb_pci.c optional bhndb_pci bhndb bhnd pci dev/bhnd/bhndb/bhndb_pci_hwdata.c optional bhndb_pci bhndb bhnd pci dev/bhnd/bhndb/bhndb_pci_sprom.c optional bhndb_pci bhndb bhnd pci dev/bhnd/bhndb/bhndb_subr.c optional bhndb bhnd dev/bhnd/bcma/bcma.c optional bcma bhnd dev/bhnd/bcma/bcma_bhndb.c optional bcma bhnd bhndb dev/bhnd/bcma/bcma_erom.c optional bcma bhnd dev/bhnd/bcma/bcma_subr.c optional bcma bhnd dev/bhnd/cores/chipc/bhnd_chipc_if.m optional bhnd dev/bhnd/cores/chipc/bhnd_sprom_chipc.c optional bhnd dev/bhnd/cores/chipc/bhnd_pmu_chipc.c optional bhnd dev/bhnd/cores/chipc/chipc.c optional bhnd dev/bhnd/cores/chipc/chipc_cfi.c optional bhnd cfi dev/bhnd/cores/chipc/chipc_gpio.c optional bhnd gpio dev/bhnd/cores/chipc/chipc_slicer.c optional bhnd cfi | bhnd spibus dev/bhnd/cores/chipc/chipc_spi.c optional bhnd spibus dev/bhnd/cores/chipc/chipc_subr.c optional bhnd dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.c optional bhnd dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_if.m optional bhnd dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_hostb_if.m optional bhnd dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_subr.c optional bhnd dev/bhnd/cores/pci/bhnd_pci.c optional bhnd pci dev/bhnd/cores/pci/bhnd_pci_hostb.c optional bhndb bhnd pci dev/bhnd/cores/pci/bhnd_pcib.c optional bhnd_pcib bhnd pci dev/bhnd/cores/pcie2/bhnd_pcie2.c optional bhnd pci dev/bhnd/cores/pcie2/bhnd_pcie2_hostb.c optional bhndb bhnd pci dev/bhnd/cores/pcie2/bhnd_pcie2b.c optional bhnd_pcie2b bhnd pci dev/bhnd/cores/pmu/bhnd_pmu.c optional bhnd dev/bhnd/cores/pmu/bhnd_pmu_core.c optional bhnd dev/bhnd/cores/pmu/bhnd_pmu_if.m optional bhnd dev/bhnd/cores/pmu/bhnd_pmu_subr.c optional bhnd dev/bhnd/nvram/bhnd_nvram_data.c optional bhnd dev/bhnd/nvram/bhnd_nvram_data_bcm.c optional bhnd dev/bhnd/nvram/bhnd_nvram_data_bcmraw.c optional bhnd dev/bhnd/nvram/bhnd_nvram_data_btxt.c optional bhnd dev/bhnd/nvram/bhnd_nvram_data_sprom.c optional bhnd dev/bhnd/nvram/bhnd_nvram_data_sprom_subr.c optional bhnd dev/bhnd/nvram/bhnd_nvram_data_tlv.c optional bhnd dev/bhnd/nvram/bhnd_nvram_if.m optional bhnd dev/bhnd/nvram/bhnd_nvram_io.c optional bhnd dev/bhnd/nvram/bhnd_nvram_iobuf.c optional bhnd dev/bhnd/nvram/bhnd_nvram_ioptr.c optional bhnd dev/bhnd/nvram/bhnd_nvram_iores.c optional bhnd dev/bhnd/nvram/bhnd_nvram_plist.c optional bhnd dev/bhnd/nvram/bhnd_nvram_store.c optional bhnd dev/bhnd/nvram/bhnd_nvram_store_subr.c optional bhnd dev/bhnd/nvram/bhnd_nvram_subr.c optional bhnd dev/bhnd/nvram/bhnd_nvram_value.c optional bhnd dev/bhnd/nvram/bhnd_nvram_value_fmts.c optional bhnd dev/bhnd/nvram/bhnd_nvram_value_prf.c optional bhnd dev/bhnd/nvram/bhnd_nvram_value_subr.c optional bhnd dev/bhnd/nvram/bhnd_sprom.c optional bhnd dev/bhnd/siba/siba.c optional siba bhnd dev/bhnd/siba/siba_bhndb.c optional siba bhnd bhndb dev/bhnd/siba/siba_erom.c optional siba bhnd dev/bhnd/siba/siba_subr.c optional siba bhnd # dev/bnxt/bnxt_hwrm.c optional bnxt iflib pci dev/bnxt/bnxt_mgmt.c optional bnxt iflib pci dev/bnxt/bnxt_sysctl.c optional bnxt iflib pci dev/bnxt/bnxt_txrx.c optional bnxt iflib pci dev/bnxt/if_bnxt.c optional bnxt iflib pci dev/bwi/bwimac.c optional bwi dev/bwi/bwiphy.c optional bwi dev/bwi/bwirf.c optional bwi dev/bwi/if_bwi.c optional bwi dev/bwi/if_bwi_pci.c optional bwi pci dev/bwn/if_bwn.c optional bwn bhnd dev/bwn/if_bwn_pci.c optional bwn pci bhnd bhndb bhndb_pci dev/bwn/if_bwn_phy_common.c optional bwn bhnd dev/bwn/if_bwn_phy_g.c optional bwn bhnd dev/bwn/if_bwn_phy_lp.c optional bwn bhnd dev/bwn/if_bwn_phy_n.c optional bwn bhnd dev/bwn/if_bwn_util.c optional bwn bhnd dev/cadence/if_cgem.c optional cgem fdt dev/cardbus/card_if.m standard dev/cardbus/cardbus.c optional cardbus dev/cardbus/cardbus_cis.c optional cardbus dev/cardbus/cardbus_device.c optional cardbus dev/cardbus/power_if.m standard dev/cas/if_cas.c optional cas dev/cfi/cfi_bus_fdt.c optional cfi fdt dev/cfi/cfi_bus_nexus.c optional cfi dev/cfi/cfi_core.c optional cfi dev/cfi/cfi_dev.c optional cfi dev/cfi/cfi_disk.c optional cfid dev/chromebook_platform/chromebook_platform.c optional chromebook_platform dev/ciss/ciss.c optional ciss dev/cpufreq/ichss.c optional cpufreq pci dev/cxgb/cxgb_main.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/cxgb_sge.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/common/cxgb_mc5.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/common/cxgb_vsc7323.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/common/cxgb_vsc8211.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/common/cxgb_ael1002.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/common/cxgb_aq100x.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/common/cxgb_mv88e1xxx.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/common/cxgb_xgmac.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/common/cxgb_t3_hw.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/common/cxgb_tn1010.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/sys/uipc_mvec.c optional cxgb pci \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgb/cxgb_t3fw.c optional cxgb cxgb_t3fw \ compile-with "${NORMAL_C} -I$S/dev/cxgb" dev/cxgbe/t4_clip.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/t4_filter.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/t4_if.m optional cxgbe pci dev/cxgbe/t4_iov.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/t4_mp_ring.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/t4_main.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/t4_netmap.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/t4_sched.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/t4_sge.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/t4_smt.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/t4_l2t.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/t4_tracer.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/t4_vf.c optional cxgbev pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/common/t4_hw.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/common/t4vf_hw.c optional cxgbev pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/crypto/t6_kern_tls.c optional cxgbe pci kern_tls \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/crypto/t4_keyctx.c optional cxgbe pci \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/cudbg/cudbg_common.c optional cxgbe \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/cudbg/cudbg_flash_utils.c optional cxgbe \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/cudbg/cudbg_lib.c optional cxgbe \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/cudbg/cudbg_wtp.c optional cxgbe \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/cudbg/fastlz.c optional cxgbe \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cxgbe/cudbg/fastlz_api.c optional cxgbe \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" t4fw_cfg.c optional cxgbe \ compile-with "${AWK} -f $S/tools/fw_stub.awk t4fw_cfg.fw:t4fw_cfg t4fw_cfg_uwire.fw:t4fw_cfg_uwire t4fw.fw:t4fw -mt4fw_cfg -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "t4fw_cfg.c" t4fw_cfg.fwo optional cxgbe \ dependency "t4fw_cfg.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "t4fw_cfg.fwo" t4fw_cfg.fw optional cxgbe \ dependency "$S/dev/cxgbe/firmware/t4fw_cfg.txt" \ compile-with "${CP} ${.ALLSRC} ${.TARGET}" \ no-obj no-implicit-rule \ clean "t4fw_cfg.fw" t4fw_cfg_uwire.fwo optional cxgbe \ dependency "t4fw_cfg_uwire.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "t4fw_cfg_uwire.fwo" t4fw_cfg_uwire.fw optional cxgbe \ dependency "$S/dev/cxgbe/firmware/t4fw_cfg_uwire.txt" \ compile-with "${CP} ${.ALLSRC} ${.TARGET}" \ no-obj no-implicit-rule \ clean "t4fw_cfg_uwire.fw" t4fw.fwo optional cxgbe \ dependency "t4fw.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "t4fw.fwo" t4fw.fw optional cxgbe \ dependency "$S/dev/cxgbe/firmware/t4fw-1.27.4.0.bin" \ compile-with "${CP} ${.ALLSRC} ${.TARGET}" \ no-obj no-implicit-rule \ clean "t4fw.fw" t5fw_cfg.c optional cxgbe \ compile-with "${AWK} -f $S/tools/fw_stub.awk t5fw_cfg.fw:t5fw_cfg t5fw_cfg_uwire.fw:t5fw_cfg_uwire t5fw.fw:t5fw -mt5fw_cfg -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "t5fw_cfg.c" t5fw_cfg.fwo optional cxgbe \ dependency "t5fw_cfg.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "t5fw_cfg.fwo" t5fw_cfg.fw optional cxgbe \ dependency "$S/dev/cxgbe/firmware/t5fw_cfg.txt" \ compile-with "${CP} ${.ALLSRC} ${.TARGET}" \ no-obj no-implicit-rule \ clean "t5fw_cfg.fw" t5fw_cfg_uwire.fwo optional cxgbe \ dependency "t5fw_cfg_uwire.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "t5fw_cfg_uwire.fwo" t5fw_cfg_uwire.fw optional cxgbe \ dependency "$S/dev/cxgbe/firmware/t5fw_cfg_uwire.txt" \ compile-with "${CP} ${.ALLSRC} ${.TARGET}" \ no-obj no-implicit-rule \ clean "t5fw_cfg_uwire.fw" t5fw.fwo optional cxgbe \ dependency "t5fw.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "t5fw.fwo" t5fw.fw optional cxgbe \ dependency "$S/dev/cxgbe/firmware/t5fw-1.27.4.0.bin" \ compile-with "${CP} ${.ALLSRC} ${.TARGET}" \ no-obj no-implicit-rule \ clean "t5fw.fw" t6fw_cfg.c optional cxgbe \ compile-with "${AWK} -f $S/tools/fw_stub.awk t6fw_cfg.fw:t6fw_cfg t6fw_cfg_uwire.fw:t6fw_cfg_uwire t6fw.fw:t6fw -mt6fw_cfg -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "t6fw_cfg.c" t6fw_cfg.fwo optional cxgbe \ dependency "t6fw_cfg.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "t6fw_cfg.fwo" t6fw_cfg.fw optional cxgbe \ dependency "$S/dev/cxgbe/firmware/t6fw_cfg.txt" \ compile-with "${CP} ${.ALLSRC} ${.TARGET}" \ no-obj no-implicit-rule \ clean "t6fw_cfg.fw" t6fw_cfg_uwire.fwo optional cxgbe \ dependency "t6fw_cfg_uwire.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "t6fw_cfg_uwire.fwo" t6fw_cfg_uwire.fw optional cxgbe \ dependency "$S/dev/cxgbe/firmware/t6fw_cfg_uwire.txt" \ compile-with "${CP} ${.ALLSRC} ${.TARGET}" \ no-obj no-implicit-rule \ clean "t6fw_cfg_uwire.fw" t6fw.fwo optional cxgbe \ dependency "t6fw.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "t6fw.fwo" t6fw.fw optional cxgbe \ dependency "$S/dev/cxgbe/firmware/t6fw-1.27.4.0.bin" \ compile-with "${CP} ${.ALLSRC} ${.TARGET}" \ no-obj no-implicit-rule \ clean "t6fw.fw" dev/cxgbe/crypto/t4_crypto.c optional ccr \ compile-with "${NORMAL_C} -I$S/dev/cxgbe" dev/cyapa/cyapa.c optional cyapa iicbus dev/dc/if_dc.c optional dc pci dev/dc/dcphy.c optional dc pci dev/dc/pnphy.c optional dc pci dev/dcons/dcons.c optional dcons dev/dcons/dcons_crom.c optional dcons_crom dev/dcons/dcons_os.c optional dcons dev/dialog/da9063/da9063_if.m optional da9063_pmic dev/dialog/da9063/da9063_iic.c optional da9063_pmic iicbus fdt dev/dialog/da9063/da9063_rtc.c optional da9063_rtc fdt dev/drm2/drm_agpsupport.c optional drm2 dev/drm2/drm_auth.c optional drm2 dev/drm2/drm_bufs.c optional drm2 dev/drm2/drm_buffer.c optional drm2 dev/drm2/drm_context.c optional drm2 dev/drm2/drm_crtc.c optional drm2 dev/drm2/drm_crtc_helper.c optional drm2 dev/drm2/drm_dma.c optional drm2 dev/drm2/drm_dp_helper.c optional drm2 dev/drm2/drm_dp_iic_helper.c optional drm2 dev/drm2/drm_drv.c optional drm2 dev/drm2/drm_edid.c optional drm2 dev/drm2/drm_fb_helper.c optional drm2 dev/drm2/drm_fops.c optional drm2 dev/drm2/drm_gem.c optional drm2 dev/drm2/drm_gem_names.c optional drm2 dev/drm2/drm_global.c optional drm2 dev/drm2/drm_hashtab.c optional drm2 dev/drm2/drm_ioctl.c optional drm2 dev/drm2/drm_irq.c optional drm2 dev/drm2/drm_linux_list_sort.c optional drm2 dev/drm2/drm_lock.c optional drm2 dev/drm2/drm_memory.c optional drm2 dev/drm2/drm_mm.c optional drm2 dev/drm2/drm_modes.c optional drm2 dev/drm2/drm_pci.c optional drm2 dev/drm2/drm_platform.c optional drm2 dev/drm2/drm_scatter.c optional drm2 dev/drm2/drm_stub.c optional drm2 dev/drm2/drm_sysctl.c optional drm2 dev/drm2/drm_vm.c optional drm2 dev/drm2/drm_os_freebsd.c optional drm2 dev/drm2/ttm/ttm_agp_backend.c optional drm2 dev/drm2/ttm/ttm_lock.c optional drm2 dev/drm2/ttm/ttm_object.c optional drm2 dev/drm2/ttm/ttm_tt.c optional drm2 dev/drm2/ttm/ttm_bo_util.c optional drm2 dev/drm2/ttm/ttm_bo.c optional drm2 dev/drm2/ttm/ttm_bo_manager.c optional drm2 dev/drm2/ttm/ttm_execbuf_util.c optional drm2 dev/drm2/ttm/ttm_memory.c optional drm2 dev/drm2/ttm/ttm_page_alloc.c optional drm2 dev/drm2/ttm/ttm_bo_vm.c optional drm2 dev/efidev/efidev.c optional efirt dev/efidev/efirt.c optional efirt dev/efidev/efirtc.c optional efirt dev/e1000/if_em.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/em_txrx.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/igb_txrx.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_80003es2lan.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_82540.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_82541.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_82542.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_82543.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_82571.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_82575.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_ich8lan.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_i210.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_api.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_base.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_mac.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_manage.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_nvm.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_phy.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_vf.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_mbx.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/e1000/e1000_osdep.c optional em \ compile-with "${NORMAL_C} -I$S/dev/e1000" dev/et/if_et.c optional et dev/ena/ena.c optional ena \ compile-with "${NORMAL_C} -I$S/contrib" dev/ena/ena_datapath.c optional ena \ compile-with "${NORMAL_C} -I$S/contrib" dev/ena/ena_netmap.c optional ena \ compile-with "${NORMAL_C} -I$S/contrib" dev/ena/ena_rss.c optional ena \ compile-with "${NORMAL_C} -I$S/contrib" dev/ena/ena_sysctl.c optional ena \ compile-with "${NORMAL_C} -I$S/contrib" contrib/ena-com/ena_com.c optional ena contrib/ena-com/ena_eth_com.c optional ena dev/etherswitch/arswitch/arswitch.c optional arswitch dev/etherswitch/arswitch/arswitch_reg.c optional arswitch dev/etherswitch/arswitch/arswitch_phy.c optional arswitch dev/etherswitch/arswitch/arswitch_8216.c optional arswitch dev/etherswitch/arswitch/arswitch_8226.c optional arswitch dev/etherswitch/arswitch/arswitch_8316.c optional arswitch dev/etherswitch/arswitch/arswitch_8327.c optional arswitch dev/etherswitch/arswitch/arswitch_vlans.c optional arswitch dev/etherswitch/etherswitch.c optional etherswitch dev/etherswitch/etherswitch_if.m optional etherswitch dev/etherswitch/ip17x/ip17x.c optional ip17x dev/etherswitch/ip17x/ip175c.c optional ip17x dev/etherswitch/ip17x/ip175d.c optional ip17x dev/etherswitch/ip17x/ip17x_phy.c optional ip17x dev/etherswitch/ip17x/ip17x_vlans.c optional ip17x dev/etherswitch/miiproxy.c optional miiproxy dev/etherswitch/rtl8366/rtl8366rb.c optional rtl8366rb dev/etherswitch/e6000sw/e6000sw.c optional e6000sw fdt dev/etherswitch/e6000sw/e6060sw.c optional e6060sw dev/etherswitch/infineon/adm6996fc.c optional adm6996fc dev/etherswitch/micrel/ksz8995ma.c optional ksz8995ma dev/etherswitch/ukswitch/ukswitch.c optional ukswitch dev/evdev/cdev.c optional evdev dev/evdev/evdev.c optional evdev dev/evdev/evdev_mt.c optional evdev dev/evdev/evdev_utils.c optional evdev dev/evdev/uinput.c optional evdev uinput dev/exca/exca.c optional cbb dev/extres/clk/clk.c optional clk dev/extres/clk/clkdev_if.m optional clk dev/extres/clk/clknode_if.m optional clk dev/extres/clk/clk_bus.c optional clk fdt dev/extres/clk/clk_div.c optional clk dev/extres/clk/clk_fixed.c optional clk dev/extres/clk/clk_gate.c optional clk dev/extres/clk/clk_link.c optional clk dev/extres/clk/clk_mux.c optional clk dev/extres/phy/phy.c optional phy dev/extres/phy/phydev_if.m optional phy fdt dev/extres/phy/phynode_if.m optional phy dev/extres/phy/phy_usb.c optional phy dev/extres/phy/phynode_usb_if.m optional phy dev/extres/hwreset/hwreset.c optional hwreset dev/extres/hwreset/hwreset_array.c optional hwreset dev/extres/hwreset/hwreset_if.m optional hwreset dev/extres/nvmem/nvmem.c optional nvmem fdt dev/extres/nvmem/nvmem_if.m optional nvmem dev/extres/regulator/regdev_if.m optional regulator fdt dev/extres/regulator/regnode_if.m optional regulator dev/extres/regulator/regulator.c optional regulator dev/extres/regulator/regulator_bus.c optional regulator fdt dev/extres/regulator/regulator_fixed.c optional regulator dev/extres/syscon/syscon.c optional syscon dev/extres/syscon/syscon_generic.c optional syscon fdt dev/extres/syscon/syscon_if.m optional syscon dev/extres/syscon/syscon_power.c optional syscon syscon_power dev/fb/fbd.c optional fbd | vt dev/fb/fb_if.m standard dev/fb/splash.c optional sc splash dev/fdt/fdt_clock.c optional fdt fdt_clock dev/fdt/fdt_clock_if.m optional fdt fdt_clock dev/fdt/fdt_common.c optional fdt dev/fdt/fdt_pinctrl.c optional fdt fdt_pinctrl dev/fdt/fdt_pinctrl_if.m optional fdt fdt_pinctrl dev/fdt/fdt_slicer.c optional fdt cfi | fdt mx25l | fdt n25q | fdt at45d dev/fdt/fdt_static_dtb.S optional fdt fdt_dtb_static \ dependency "${FDT_DTS_FILE:T:R}.dtb" dev/fdt/simplebus.c optional fdt dev/fdt/simple_mfd.c optional syscon fdt dev/filemon/filemon.c optional filemon dev/firewire/firewire.c optional firewire dev/firewire/fwcrom.c optional firewire dev/firewire/fwdev.c optional firewire dev/firewire/fwdma.c optional firewire dev/firewire/fwmem.c optional firewire dev/firewire/fwohci.c optional firewire dev/firewire/fwohci_pci.c optional firewire pci dev/firewire/if_fwe.c optional fwe dev/firewire/if_fwip.c optional fwip dev/firewire/sbp.c optional sbp dev/firewire/sbp_targ.c optional sbp_targ dev/flash/at45d.c optional at45d dev/flash/cqspi.c optional cqspi fdt xdma dev/flash/mx25l.c optional mx25l dev/flash/n25q.c optional n25q fdt dev/flash/qspi_if.m optional cqspi fdt | n25q fdt dev/fxp/if_fxp.c optional fxp dev/fxp/inphy.c optional fxp dev/gem/if_gem.c optional gem dev/gem/if_gem_pci.c optional gem pci dev/gve/gve_adminq.c optional gve dev/gve/gve_main.c optional gve dev/gve/gve_qpl.c optional gve dev/gve/gve_rx.c optional gve dev/gve/gve_sysctl.c optional gve dev/gve/gve_tx.c optional gve dev/gve/gve_utils.c optional gve dev/goldfish/goldfish_rtc.c optional goldfish_rtc fdt dev/gpio/dwgpio/dwgpio.c optional gpio dwgpio fdt dev/gpio/dwgpio/dwgpio_bus.c optional gpio dwgpio fdt dev/gpio/dwgpio/dwgpio_if.m optional gpio dwgpio fdt dev/gpio/gpiobacklight.c optional gpiobacklight fdt dev/gpio/gpiokeys.c optional gpiokeys fdt dev/gpio/gpiokeys_codes.c optional gpiokeys fdt dev/gpio/gpiobus.c optional gpio \ dependency "gpiobus_if.h" dev/gpio/gpioc.c optional gpio \ dependency "gpio_if.h" dev/gpio/gpioiic.c optional gpioiic dev/gpio/gpioled.c optional gpioled !fdt dev/gpio/gpioled_fdt.c optional gpioled fdt dev/gpio/gpiomdio.c optional gpiomdio mii_bitbang dev/gpio/gpiopower.c optional gpiopower fdt dev/gpio/gpioregulator.c optional gpioregulator fdt dev/gpio/gpiospi.c optional gpiospi dev/gpio/gpioths.c optional gpioths dev/gpio/gpio_if.m optional gpio dev/gpio/gpiobus_if.m optional gpio dev/gpio/gpiopps.c optional gpiopps fdt dev/gpio/ofw_gpiobus.c optional fdt gpio dev/hid/bcm5974.c optional bcm5974 dev/hid/hconf.c optional hconf dev/hid/hcons.c optional hcons dev/hid/hgame.c optional hgame dev/hid/hid.c optional hid dev/hid/hid_if.m optional hid dev/hid/hidbus.c optional hidbus dev/hid/hidmap.c optional hidmap dev/hid/hidquirk.c optional hid dev/hid/hidraw.c optional hidraw dev/hid/hkbd.c optional hkbd dev/hid/hms.c optional hms dev/hid/hmt.c optional hmt hconf dev/hid/hpen.c optional hpen dev/hid/hsctrl.c optional hsctrl dev/hid/ietp.c optional ietp dev/hid/ps4dshock.c optional ps4dshock dev/hid/xb360gp.c optional xb360gp dev/hifn/hifn7751.c optional hifn dev/hptiop/hptiop.c optional hptiop scbus dev/hwpmc/hwpmc_logging.c optional hwpmc dev/hwpmc/hwpmc_mod.c optional hwpmc dev/hwpmc/hwpmc_soft.c optional hwpmc dev/ichiic/ig4_acpi.c optional ig4 acpi iicbus dev/ichiic/ig4_iic.c optional ig4 iicbus dev/ichiic/ig4_pci.c optional ig4 pci iicbus dev/ichsmb/ichsmb.c optional ichsmb dev/ichsmb/ichsmb_pci.c optional ichsmb pci dev/ida/ida.c optional ida dev/ida/ida_disk.c optional ida dev/ida/ida_pci.c optional ida pci dev/iicbus/acpi_iicbus.c optional acpi iicbus | acpi compat_linuxkpi dev/iicbus/ad7418.c optional ad7418 dev/iicbus/ads111x.c optional ads111x dev/iicbus/ds1307.c optional ds1307 dev/iicbus/ds13rtc.c optional ds13rtc | ds133x | ds1374 dev/iicbus/ds1672.c optional ds1672 dev/iicbus/ds3231.c optional ds3231 dev/iicbus/htu21.c optional htu21 dev/iicbus/icee.c optional icee dev/iicbus/if_ic.c optional ic dev/iicbus/iic.c optional iic dev/iicbus/iic_recover_bus.c optional iicbus | compat_linuxkpi dev/iicbus/iicbb.c optional iicbb | compat_linuxkpi dev/iicbus/iicbb_if.m optional iicbb | compat_linuxkpi dev/iicbus/iicbus.c optional iicbus | compat_linuxkpi dev/iicbus/iicbus_if.m optional iicbus | compat_linuxkpi dev/iicbus/iichid.c optional iichid acpi hid iicbus dev/iicbus/iiconf.c optional iicbus | compat_linuxkpi dev/iicbus/iicsmb.c optional iicsmb \ dependency "iicbus_if.h" dev/iicbus/iicoc.c optional iicoc dev/iicbus/iicoc_fdt.c optional iicoc fdt dev/iicbus/iicoc_pci.c optional iicoc pci dev/iicbus/isl12xx.c optional isl12xx dev/iicbus/lm75.c optional lm75 dev/iicbus/max44009.c optional max44009 dev/iicbus/mux/iicmux.c optional iicmux dev/iicbus/mux/iicmux_if.m optional iicmux dev/iicbus/mux/iic_gpiomux.c optional iic_gpiomux fdt dev/iicbus/mux/ltc430x.c optional ltc430x dev/iicbus/mux/pca954x.c optional pca954x iicbus iicmux dev/iicbus/nxprtc.c optional nxprtc | pcf8563 dev/iicbus/ofw_iicbus.c optional fdt iicbus dev/iicbus/ofw_iicbus_if.m optional fdt iicbus dev/iicbus/pcf8574.c optional pcf8574 dev/iicbus/pcf8591.c optional pcf8591 dev/iicbus/rtc8583.c optional rtc8583 dev/iicbus/rtc/pcf85063.c optional pcf85063 iicbus fdt dev/iicbus/rtc/rx8803.c optional rx8803 iicbus fdt dev/iicbus/s35390a.c optional s35390a dev/iicbus/sy8106a.c optional sy8106a fdt dev/iicbus/syr827.c optional syr827 fdt dev/iicbus/gpio/tca64xx.c optional tca64xx fdt gpio dev/iicbus/pmic/fan53555.c optional fan53555 fdt | tcs4525 fdt dev/igc/if_igc.c optional igc iflib pci dev/igc/igc_api.c optional igc iflib pci dev/igc/igc_base.c optional igc iflib pci dev/igc/igc_i225.c optional igc iflib pci dev/igc/igc_mac.c optional igc iflib pci dev/igc/igc_nvm.c optional igc iflib pci dev/igc/igc_phy.c optional igc iflib pci dev/igc/igc_txrx.c optional igc iflib pci dev/intpm/intpm.c optional intpm pci # XXX Work around clang warning, until maintainer approves fix. dev/ips/ips.c optional ips \ compile-with "${NORMAL_C} ${NO_WSOMETIMES_UNINITIALIZED}" dev/ips/ips_commands.c optional ips dev/ips/ips_disk.c optional ips dev/ips/ips_ioctl.c optional ips dev/ips/ips_pci.c optional ips pci dev/ipw/if_ipw.c optional ipw ipwbssfw.c optional ipwbssfw | ipwfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk ipw_bss.fw:ipw_bss:130 -lintel_ipw -mipw_bss -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "ipwbssfw.c" ipw_bss.fwo optional ipwbssfw | ipwfw \ dependency "ipw_bss.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "ipw_bss.fwo" ipw_bss.fw optional ipwbssfw | ipwfw \ dependency "$S/contrib/dev/ipw/ipw2100-1.3.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "ipw_bss.fw" ipwibssfw.c optional ipwibssfw | ipwfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk ipw_ibss.fw:ipw_ibss:130 -lintel_ipw -mipw_ibss -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "ipwibssfw.c" ipw_ibss.fwo optional ipwibssfw | ipwfw \ dependency "ipw_ibss.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "ipw_ibss.fwo" ipw_ibss.fw optional ipwibssfw | ipwfw \ dependency "$S/contrib/dev/ipw/ipw2100-1.3-i.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "ipw_ibss.fw" ipwmonitorfw.c optional ipwmonitorfw | ipwfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk ipw_monitor.fw:ipw_monitor:130 -lintel_ipw -mipw_monitor -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "ipwmonitorfw.c" ipw_monitor.fwo optional ipwmonitorfw | ipwfw \ dependency "ipw_monitor.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "ipw_monitor.fwo" ipw_monitor.fw optional ipwmonitorfw | ipwfw \ dependency "$S/contrib/dev/ipw/ipw2100-1.3-p.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "ipw_monitor.fw" dev/iscsi/icl.c optional iscsi dev/iscsi/icl_conn_if.m optional cfiscsi | iscsi dev/iscsi/icl_soft.c optional iscsi dev/iscsi/icl_soft_proxy.c optional iscsi dev/iscsi/iscsi.c optional iscsi scbus dev/ismt/ismt.c optional ismt dev/isl/isl.c optional isl iicbus dev/isp/isp.c optional isp dev/isp/isp_freebsd.c optional isp dev/isp/isp_library.c optional isp dev/isp/isp_pci.c optional isp pci dev/isp/isp_target.c optional isp dev/ispfw/ispfw.c optional ispfw dev/iwi/if_iwi.c optional iwi iwibssfw.c optional iwibssfw | iwifw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwi_bss.fw:iwi_bss:300 -lintel_iwi -miwi_bss -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwibssfw.c" iwi_bss.fwo optional iwibssfw | iwifw \ dependency "iwi_bss.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwi_bss.fwo" iwi_bss.fw optional iwibssfw | iwifw \ dependency "$S/contrib/dev/iwi/ipw2200-bss.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwi_bss.fw" iwiibssfw.c optional iwiibssfw | iwifw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwi_ibss.fw:iwi_ibss:300 -lintel_iwi -miwi_ibss -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwiibssfw.c" iwi_ibss.fwo optional iwiibssfw | iwifw \ dependency "iwi_ibss.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwi_ibss.fwo" iwi_ibss.fw optional iwiibssfw | iwifw \ dependency "$S/contrib/dev/iwi/ipw2200-ibss.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwi_ibss.fw" iwimonitorfw.c optional iwimonitorfw | iwifw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwi_monitor.fw:iwi_monitor:300 -lintel_iwi -miwi_monitor -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwimonitorfw.c" iwi_monitor.fwo optional iwimonitorfw | iwifw \ dependency "iwi_monitor.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwi_monitor.fwo" iwi_monitor.fw optional iwimonitorfw | iwifw \ dependency "$S/contrib/dev/iwi/ipw2200-sniffer.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwi_monitor.fw" dev/iwm/if_iwm.c optional iwm dev/iwm/if_iwm_7000.c optional iwm dev/iwm/if_iwm_8000.c optional iwm dev/iwm/if_iwm_9000.c optional iwm dev/iwm/if_iwm_9260.c optional iwm dev/iwm/if_iwm_binding.c optional iwm dev/iwm/if_iwm_fw.c optional iwm dev/iwm/if_iwm_led.c optional iwm dev/iwm/if_iwm_mac_ctxt.c optional iwm dev/iwm/if_iwm_notif_wait.c optional iwm dev/iwm/if_iwm_pcie_trans.c optional iwm dev/iwm/if_iwm_phy_ctxt.c optional iwm dev/iwm/if_iwm_phy_db.c optional iwm dev/iwm/if_iwm_power.c optional iwm dev/iwm/if_iwm_scan.c optional iwm dev/iwm/if_iwm_sf.c optional iwm dev/iwm/if_iwm_sta.c optional iwm dev/iwm/if_iwm_time_event.c optional iwm dev/iwm/if_iwm_util.c optional iwm iwm3160fw.c optional iwm3160fw | iwmfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwm3160.fw:iwm3160fw -miwm3160fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwm3160fw.c" iwm3160fw.fwo optional iwm3160fw | iwmfw \ dependency "iwm3160.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwm3160fw.fwo" iwm3160.fw optional iwm3160fw | iwmfw \ dependency "$S/contrib/dev/iwm/iwm-3160-17.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwm3160.fw" iwm3168fw.c optional iwm3168fw | iwmfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwm3168.fw:iwm3168fw -miwm3168fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwm3168fw.c" iwm3168fw.fwo optional iwm3168fw | iwmfw \ dependency "iwm3168.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwm3168fw.fwo" iwm3168.fw optional iwm3168fw | iwmfw \ dependency "$S/contrib/dev/iwm/iwm-3168-22.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwm3168.fw" iwm7260fw.c optional iwm7260fw | iwmfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwm7260.fw:iwm7260fw -miwm7260fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwm7260fw.c" iwm7260fw.fwo optional iwm7260fw | iwmfw \ dependency "iwm7260.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwm7260fw.fwo" iwm7260.fw optional iwm7260fw | iwmfw \ dependency "$S/contrib/dev/iwm/iwm-7260-17.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwm7260.fw" iwm7265fw.c optional iwm7265fw | iwmfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwm7265.fw:iwm7265fw -miwm7265fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwm7265fw.c" iwm7265fw.fwo optional iwm7265fw | iwmfw \ dependency "iwm7265.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwm7265fw.fwo" iwm7265.fw optional iwm7265fw | iwmfw \ dependency "$S/contrib/dev/iwm/iwm-7265-17.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwm7265.fw" iwm7265Dfw.c optional iwm7265Dfw | iwmfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwm7265D.fw:iwm7265Dfw -miwm7265Dfw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwm7265Dfw.c" iwm7265Dfw.fwo optional iwm7265Dfw | iwmfw \ dependency "iwm7265D.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwm7265Dfw.fwo" iwm7265D.fw optional iwm7265Dfw | iwmfw \ dependency "$S/contrib/dev/iwm/iwm-7265D-17.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwm7265D.fw" iwm8000Cfw.c optional iwm8000Cfw | iwmfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwm8000C.fw:iwm8000Cfw -miwm8000Cfw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwm8000Cfw.c" iwm8000Cfw.fwo optional iwm8000Cfw | iwmfw \ dependency "iwm8000C.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwm8000Cfw.fwo" iwm8000C.fw optional iwm8000Cfw | iwmfw \ dependency "$S/contrib/dev/iwm/iwm-8000C-16.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwm8000C.fw" iwm8265.fw optional iwm8265fw | iwmfw \ dependency "$S/contrib/dev/iwm/iwm-8265-22.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwm8265.fw" iwm8265fw.c optional iwm8265fw | iwmfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwm8265.fw:iwm8265fw -miwm8265fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwm8265fw.c" iwm8265fw.fwo optional iwm8265fw | iwmfw \ dependency "iwm8265.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwm8265fw.fwo" dev/iwn/if_iwn.c optional iwn iwn1000fw.c optional iwn1000fw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn1000.fw:iwn1000fw -miwn1000fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn1000fw.c" iwn1000fw.fwo optional iwn1000fw | iwnfw \ dependency "iwn1000.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn1000fw.fwo" iwn1000.fw optional iwn1000fw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-1000-39.31.5.1.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn1000.fw" iwn100fw.c optional iwn100fw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn100.fw:iwn100fw -miwn100fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn100fw.c" iwn100fw.fwo optional iwn100fw | iwnfw \ dependency "iwn100.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn100fw.fwo" iwn100.fw optional iwn100fw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-100-39.31.5.1.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn100.fw" iwn105fw.c optional iwn105fw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn105.fw:iwn105fw -miwn105fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn105fw.c" iwn105fw.fwo optional iwn105fw | iwnfw \ dependency "iwn105.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn105fw.fwo" iwn105.fw optional iwn105fw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-105-6-18.168.6.1.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn105.fw" iwn135fw.c optional iwn135fw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn135.fw:iwn135fw -miwn135fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn135fw.c" iwn135fw.fwo optional iwn135fw | iwnfw \ dependency "iwn135.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn135fw.fwo" iwn135.fw optional iwn135fw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-135-6-18.168.6.1.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn135.fw" iwn2000fw.c optional iwn2000fw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn2000.fw:iwn2000fw -miwn2000fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn2000fw.c" iwn2000fw.fwo optional iwn2000fw | iwnfw \ dependency "iwn2000.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn2000fw.fwo" iwn2000.fw optional iwn2000fw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-2000-18.168.6.1.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn2000.fw" iwn2030fw.c optional iwn2030fw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn2030.fw:iwn2030fw -miwn2030fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn2030fw.c" iwn2030fw.fwo optional iwn2030fw | iwnfw \ dependency "iwn2030.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn2030fw.fwo" iwn2030.fw optional iwn2030fw | iwnfw \ dependency "$S/contrib/dev/iwn/iwnwifi-2030-18.168.6.1.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn2030.fw" iwn4965fw.c optional iwn4965fw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn4965.fw:iwn4965fw -miwn4965fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn4965fw.c" iwn4965fw.fwo optional iwn4965fw | iwnfw \ dependency "iwn4965.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn4965fw.fwo" iwn4965.fw optional iwn4965fw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-4965-228.61.2.24.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn4965.fw" iwn5000fw.c optional iwn5000fw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn5000.fw:iwn5000fw -miwn5000fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn5000fw.c" iwn5000fw.fwo optional iwn5000fw | iwnfw \ dependency "iwn5000.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn5000fw.fwo" iwn5000.fw optional iwn5000fw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-5000-8.83.5.1.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn5000.fw" iwn5150fw.c optional iwn5150fw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn5150.fw:iwn5150fw -miwn5150fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn5150fw.c" iwn5150fw.fwo optional iwn5150fw | iwnfw \ dependency "iwn5150.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn5150fw.fwo" iwn5150.fw optional iwn5150fw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-5150-8.24.2.2.fw.uu"\ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn5150.fw" iwn6000fw.c optional iwn6000fw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn6000.fw:iwn6000fw -miwn6000fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn6000fw.c" iwn6000fw.fwo optional iwn6000fw | iwnfw \ dependency "iwn6000.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn6000fw.fwo" iwn6000.fw optional iwn6000fw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-6000-9.221.4.1.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn6000.fw" iwn6000g2afw.c optional iwn6000g2afw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn6000g2a.fw:iwn6000g2afw -miwn6000g2afw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn6000g2afw.c" iwn6000g2afw.fwo optional iwn6000g2afw | iwnfw \ dependency "iwn6000g2a.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn6000g2afw.fwo" iwn6000g2a.fw optional iwn6000g2afw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-6000g2a-18.168.6.1.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn6000g2a.fw" iwn6000g2bfw.c optional iwn6000g2bfw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn6000g2b.fw:iwn6000g2bfw -miwn6000g2bfw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn6000g2bfw.c" iwn6000g2bfw.fwo optional iwn6000g2bfw | iwnfw \ dependency "iwn6000g2b.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn6000g2bfw.fwo" iwn6000g2b.fw optional iwn6000g2bfw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-6000g2b-18.168.6.1.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn6000g2b.fw" iwn6050fw.c optional iwn6050fw | iwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk iwn6050.fw:iwn6050fw -miwn6050fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "iwn6050fw.c" iwn6050fw.fwo optional iwn6050fw | iwnfw \ dependency "iwn6050.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "iwn6050fw.fwo" iwn6050.fw optional iwn6050fw | iwnfw \ dependency "$S/contrib/dev/iwn/iwlwifi-6050-41.28.5.1.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "iwn6050.fw" dev/ixgbe/if_ix.c optional ix inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe -DSMP" dev/ixgbe/if_ixv.c optional ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe -DSMP" dev/ixgbe/if_bypass.c optional ix inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/if_fdir.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/if_sriov.c optional ix inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ix_txrx.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_osdep.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_phy.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_api.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_common.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_mbx.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_vf.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_82598.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_82599.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_x540.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_x550.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_dcb.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_dcb_82598.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/ixgbe_dcb_82599.c optional ix inet | ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/jedec_dimm/jedec_dimm.c optional jedec_dimm smbus dev/jme/if_jme.c optional jme pci dev/kbd/kbd.c optional atkbd | pckbd | sc | ukbd | vt | hkbd dev/kbdmux/kbdmux.c optional kbdmux dev/ksyms/ksyms.c optional ksyms dev/le/am7990.c optional le dev/le/am79900.c optional le dev/le/if_le_pci.c optional le pci dev/le/lance.c optional le dev/led/led.c standard dev/lge/if_lge.c optional lge dev/liquidio/base/cn23xx_pf_device.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/base/lio_console.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/base/lio_ctrl.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/base/lio_device.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/base/lio_droq.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/base/lio_mem_ops.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/base/lio_request_manager.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/base/lio_response_manager.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/lio_core.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/lio_ioctl.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/lio_main.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/lio_rss.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/lio_rxtx.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" dev/liquidio/lio_sysctl.c optional lio \ compile-with "${NORMAL_C} \ -I$S/dev/liquidio -I$S/dev/liquidio/base -DSMP" lio.c optional lio \ compile-with "${AWK} -f $S/tools/fw_stub.awk lio_23xx_nic.bin.fw:lio_23xx_nic.bin -mlio_23xx_nic.bin -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "lio.c" lio_23xx_nic.bin.fw.fwo optional lio \ dependency "lio_23xx_nic.bin.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "lio_23xx_nic.bin.fw.fwo" lio_23xx_nic.bin.fw optional lio \ dependency "$S/contrib/dev/liquidio/lio_23xx_nic.bin.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "lio_23xx_nic.bin.fw" dev/malo/if_malo.c optional malo dev/malo/if_malohal.c optional malo dev/malo/if_malo_pci.c optional malo pci dev/md/md.c optional md dev/mdio/mdio_if.m optional miiproxy | mdio dev/mdio/mdio.c optional miiproxy | mdio dev/mem/memdev.c optional mem dev/mem/memutil.c optional mem dev/mfi/mfi.c optional mfi dev/mfi/mfi_debug.c optional mfi dev/mfi/mfi_pci.c optional mfi pci dev/mfi/mfi_disk.c optional mfi dev/mfi/mfi_syspd.c optional mfi dev/mfi/mfi_tbolt.c optional mfi dev/mfi/mfi_cam.c optional mfip scbus dev/mii/acphy.c optional miibus | acphy dev/mii/amphy.c optional miibus | amphy dev/mii/atphy.c optional miibus | atphy dev/mii/axphy.c optional miibus | axphy dev/mii/bmtphy.c optional miibus | bmtphy dev/mii/brgphy.c optional miibus | brgphy dev/mii/ciphy.c optional miibus | ciphy dev/mii/dp83822phy.c optional miibus | dp83822phy dev/mii/dp83867phy.c optional miibus | dp83867phy dev/mii/e1000phy.c optional miibus | e1000phy dev/mii/gentbi.c optional miibus | gentbi dev/mii/icsphy.c optional miibus | icsphy dev/mii/ip1000phy.c optional miibus | ip1000phy dev/mii/jmphy.c optional miibus | jmphy dev/mii/lxtphy.c optional miibus | lxtphy dev/mii/mcommphy.c optional miibus | mcommphy dev/mii/micphy.c optional miibus fdt | micphy fdt dev/mii/mii.c optional miibus | mii dev/mii/mii_bitbang.c optional miibus | mii_bitbang dev/mii/mii_physubr.c optional miibus | mii dev/mii/mii_fdt.c optional miibus fdt | mii fdt dev/mii/miibus_if.m optional miibus | mii dev/mii/mv88e151x.c optional miibus | mv88e151x dev/mii/nsgphy.c optional miibus | nsgphy dev/mii/nsphy.c optional miibus | nsphy dev/mii/nsphyter.c optional miibus | nsphyter dev/mii/pnaphy.c optional miibus | pnaphy dev/mii/qsphy.c optional miibus | qsphy dev/mii/rdcphy.c optional miibus | rdcphy dev/mii/rgephy.c optional miibus | rgephy dev/mii/rlphy.c optional miibus | rlphy dev/mii/rlswitch.c optional rlswitch dev/mii/smcphy.c optional miibus | smcphy dev/mii/smscphy.c optional miibus | smscphy dev/mii/tdkphy.c optional miibus | tdkphy dev/mii/truephy.c optional miibus | truephy dev/mii/ukphy.c optional miibus | mii dev/mii/ukphy_subr.c optional miibus | mii dev/mii/vscphy.c optional miibus | vscphy dev/mii/xmphy.c optional miibus | xmphy dev/mlxfw/mlxfw_fsm.c optional mlxfw \ compile-with "${MLXFW_C}" dev/mlxfw/mlxfw_mfa2.c optional mlxfw \ compile-with "${MLXFW_C}" dev/mlxfw/mlxfw_mfa2_tlv_multi.c optional mlxfw \ compile-with "${MLXFW_C}" dev/mlx/mlx.c optional mlx dev/mlx/mlx_disk.c optional mlx dev/mlx/mlx_pci.c optional mlx pci dev/mmc/mmc_subr.c optional mmc | mmcsd !mmccam dev/mmc/mmc.c optional mmc !mmccam dev/mmc/mmcbr_if.m standard dev/mmc/mmcbus_if.m standard dev/mmc/mmcsd.c optional mmcsd !mmccam dev/mmc/mmc_fdt_helpers.c optional mmc regulator clk fdt | mmccam regulator clk fdt dev/mmc/mmc_helpers.c optional mmc gpio regulator clk | mmccam gpio regulator clk dev/mmc/mmc_pwrseq.c optional mmc clk regulator fdt | mmccam clk regulator fdt dev/mmc/mmc_pwrseq_if.m optional mmc clk regulator fdt | mmccam clk regulator fdt dev/mmcnull/mmcnull.c optional mmcnull dev/mpr/mpr.c optional mpr dev/mpr/mpr_config.c optional mpr # XXX Work around clang warning, until maintainer approves fix. dev/mpr/mpr_mapping.c optional mpr \ compile-with "${NORMAL_C} ${NO_WSOMETIMES_UNINITIALIZED}" dev/mpr/mpr_pci.c optional mpr pci dev/mpr/mpr_sas.c optional mpr \ compile-with "${NORMAL_C} ${NO_WUNNEEDED_INTERNAL_DECL}" dev/mpr/mpr_sas_lsi.c optional mpr dev/mpr/mpr_table.c optional mpr dev/mpr/mpr_user.c optional mpr dev/mps/mps.c optional mps dev/mps/mps_config.c optional mps # XXX Work around clang warning, until maintainer approves fix. dev/mps/mps_mapping.c optional mps \ compile-with "${NORMAL_C} ${NO_WSOMETIMES_UNINITIALIZED}" dev/mps/mps_pci.c optional mps pci dev/mps/mps_sas.c optional mps \ compile-with "${NORMAL_C} ${NO_WUNNEEDED_INTERNAL_DECL}" dev/mps/mps_sas_lsi.c optional mps dev/mps/mps_table.c optional mps dev/mps/mps_user.c optional mps dev/mpt/mpt.c optional mpt dev/mpt/mpt_cam.c optional mpt dev/mpt/mpt_debug.c optional mpt dev/mpt/mpt_pci.c optional mpt pci dev/mpt/mpt_raid.c optional mpt dev/mpt/mpt_user.c optional mpt dev/mrsas/mrsas.c optional mrsas dev/mrsas/mrsas_cam.c optional mrsas dev/mrsas/mrsas_ioctl.c optional mrsas dev/mrsas/mrsas_fp.c optional mrsas dev/msk/if_msk.c optional msk dev/mvs/mvs.c optional mvs dev/mvs/mvs_if.m optional mvs dev/mvs/mvs_pci.c optional mvs pci dev/mwl/if_mwl.c optional mwl dev/mwl/if_mwl_pci.c optional mwl pci dev/mwl/mwlhal.c optional mwl mwlfw.c optional mwlfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk mw88W8363.fw:mw88W8363fw mwlboot.fw:mwlboot -mmwl -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "mwlfw.c" mw88W8363.fwo optional mwlfw \ dependency "mw88W8363.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "mw88W8363.fwo" mw88W8363.fw optional mwlfw \ dependency "$S/contrib/dev/mwl/mw88W8363.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "mw88W8363.fw" mwlboot.fwo optional mwlfw \ dependency "mwlboot.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "mwlboot.fwo" mwlboot.fw optional mwlfw \ dependency "$S/contrib/dev/mwl/mwlboot.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "mwlboot.fw" dev/mxge/if_mxge.c optional mxge pci dev/mxge/mxge_eth_z8e.c optional mxge pci dev/mxge/mxge_ethp_z8e.c optional mxge pci dev/mxge/mxge_rss_eth_z8e.c optional mxge pci dev/mxge/mxge_rss_ethp_z8e.c optional mxge pci dev/my/if_my.c optional my dev/netmap/if_ptnet.c optional netmap inet dev/netmap/netmap.c optional netmap dev/netmap/netmap_bdg.c optional netmap dev/netmap/netmap_freebsd.c optional netmap dev/netmap/netmap_generic.c optional netmap dev/netmap/netmap_kloop.c optional netmap dev/netmap/netmap_legacy.c optional netmap dev/netmap/netmap_mbq.c optional netmap dev/netmap/netmap_mem2.c optional netmap dev/netmap/netmap_monitor.c optional netmap dev/netmap/netmap_null.c optional netmap dev/netmap/netmap_offloadings.c optional netmap dev/netmap/netmap_pipe.c optional netmap dev/netmap/netmap_vale.c optional netmap # compile-with "${NORMAL_C} -Wconversion -Wextra" dev/nfsmb/nfsmb.c optional nfsmb pci dev/nge/if_nge.c optional nge dev/nmdm/nmdm.c optional nmdm dev/null/null.c standard dev/nvd/nvd.c optional nvd nvme dev/nvme/nvme.c optional nvme dev/nvme/nvme_ahci.c optional nvme ahci dev/nvme/nvme_ctrlr.c optional nvme dev/nvme/nvme_ctrlr_cmd.c optional nvme dev/nvme/nvme_ns.c optional nvme dev/nvme/nvme_ns_cmd.c optional nvme dev/nvme/nvme_pci.c optional nvme pci dev/nvme/nvme_qpair.c optional nvme dev/nvme/nvme_sim.c optional nvme scbus dev/nvme/nvme_sysctl.c optional nvme dev/nvme/nvme_test.c optional nvme dev/nvme/nvme_util.c optional nvme dev/oce/oce_hw.c optional oce pci dev/oce/oce_if.c optional oce pci dev/oce/oce_mbox.c optional oce pci dev/oce/oce_queue.c optional oce pci dev/oce/oce_sysctl.c optional oce pci dev/oce/oce_util.c optional oce pci dev/ocs_fc/ocs_gendump.c optional ocs_fc pci dev/ocs_fc/ocs_pci.c optional ocs_fc pci dev/ocs_fc/ocs_ioctl.c optional ocs_fc pci dev/ocs_fc/ocs_os.c optional ocs_fc pci dev/ocs_fc/ocs_utils.c optional ocs_fc pci dev/ocs_fc/ocs_hw.c optional ocs_fc pci dev/ocs_fc/ocs_hw_queues.c optional ocs_fc pci dev/ocs_fc/sli4.c optional ocs_fc pci dev/ocs_fc/ocs_sm.c optional ocs_fc pci dev/ocs_fc/ocs_device.c optional ocs_fc pci dev/ocs_fc/ocs_xport.c optional ocs_fc pci dev/ocs_fc/ocs_domain.c optional ocs_fc pci dev/ocs_fc/ocs_sport.c optional ocs_fc pci dev/ocs_fc/ocs_els.c optional ocs_fc pci dev/ocs_fc/ocs_fabric.c optional ocs_fc pci dev/ocs_fc/ocs_io.c optional ocs_fc pci dev/ocs_fc/ocs_node.c optional ocs_fc pci dev/ocs_fc/ocs_scsi.c optional ocs_fc pci dev/ocs_fc/ocs_unsol.c optional ocs_fc pci dev/ocs_fc/ocs_ddump.c optional ocs_fc pci dev/ocs_fc/ocs_mgmt.c optional ocs_fc pci dev/ocs_fc/ocs_cam.c optional ocs_fc pci dev/ofw/ofw_bus_if.m optional fdt dev/ofw/ofw_bus_subr.c optional fdt dev/ofw/ofw_cpu.c optional fdt dev/ofw/ofw_fdt.c optional fdt dev/ofw/ofw_firmware.c optional fdt dev/ofw/ofw_if.m optional fdt dev/ofw/ofw_graph.c optional fdt dev/ofw/ofw_subr.c optional fdt dev/ofw/ofwbus.c optional fdt dev/ofw/openfirm.c optional fdt dev/ofw/openfirmio.c optional fdt dev/ow/ow.c optional ow \ dependency "owll_if.h" \ dependency "own_if.h" dev/ow/owll_if.m optional ow dev/ow/own_if.m optional ow dev/ow/ow_temp.c optional ow_temp dev/ow/owc_gpiobus.c optional owc gpio dev/pbio/pbio.c optional pbio isa dev/pccbb/pccbb.c optional cbb dev/pccbb/pccbb_pci.c optional cbb pci dev/pcf/pcf.c optional pcf dev/pci/fixup_pci.c optional pci dev/pci/hostb_pci.c optional pci dev/pci/ignore_pci.c optional pci dev/pci/isa_pci.c optional pci isa dev/pci/pci.c optional pci dev/pci/pci_if.m standard dev/pci/pci_iov.c optional pci pci_iov dev/pci/pci_iov_if.m standard dev/pci/pci_iov_schema.c optional pci pci_iov dev/pci/pci_pci.c optional pci dev/pci/pci_subr.c optional pci dev/pci/pci_user.c optional pci dev/pci/pcib_if.m standard dev/pci/pcib_support.c standard dev/pci/vga_pci.c optional pci dev/pms/freebsd/driver/ini/src/agtiapi.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/sadisc.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/mpi.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/saframe.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/sahw.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/sainit.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/saint.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/sampicmd.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/sampirsp.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/saphy.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/saport.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/sasata.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/sasmp.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/sassp.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/satimer.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/sautil.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/saioctlcmd.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sallsdk/spc/mpidebug.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/discovery/dm/dminit.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/discovery/dm/dmsmp.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/discovery/dm/dmdisc.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/discovery/dm/dmport.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/discovery/dm/dmtimer.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/discovery/dm/dmmisc.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sat/src/sminit.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sat/src/smmisc.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sat/src/smsat.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sat/src/smsatcb.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sat/src/smsathw.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/sat/src/smtimer.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/common/tdinit.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/common/tdmisc.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/common/tdesgl.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/common/tdport.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/common/tdint.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/common/tdioctl.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/common/tdhw.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/common/ossacmnapi.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/common/tddmcmnapi.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/common/tdsmcmnapi.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/common/tdtimers.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/sas/ini/itdio.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/sas/ini/itdcb.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/sas/ini/itdinit.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/sas/ini/itddisc.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/sata/host/sat.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/pms/RefTisa/tisa/sassata/sata/host/sathw.c optional pmspcv \ compile-with "${NORMAL_C} -Wunused-variable -Woverflow -Wparentheses -w" dev/ppbus/if_plip.c optional plip dev/ppbus/lpbb.c optional lpbb dev/ppbus/lpt.c optional lpt dev/ppbus/pcfclock.c optional pcfclock dev/ppbus/ppb_1284.c optional ppbus dev/ppbus/ppb_base.c optional ppbus dev/ppbus/ppb_msq.c optional ppbus dev/ppbus/ppbconf.c optional ppbus dev/ppbus/ppbus_if.m optional ppbus dev/ppbus/ppi.c optional ppi dev/ppbus/pps.c optional pps dev/ppc/ppc.c optional ppc dev/ppc/ppc_acpi.c optional ppc acpi dev/ppc/ppc_isa.c optional ppc isa dev/ppc/ppc_pci.c optional ppc pci dev/ppc/ppc_puc.c optional ppc puc dev/proto/proto_bus_isa.c optional proto acpi | proto isa dev/proto/proto_bus_pci.c optional proto pci dev/proto/proto_busdma.c optional proto dev/proto/proto_core.c optional proto dev/pst/pst-iop.c optional pst dev/pst/pst-pci.c optional pst pci dev/pst/pst-raid.c optional pst dev/pty/pty.c optional pty dev/puc/puc.c optional puc dev/puc/puc_cfg.c optional puc dev/puc/puc_pci.c optional puc pci dev/pwm/pwmc.c optional pwm | pwmc dev/pwm/pwmbus.c optional pwm | pwmbus dev/pwm/pwmbus_if.m optional pwm | pwmbus dev/pwm/ofw_pwm.c optional pwm fdt | pwmbus fdt dev/pwm/ofw_pwmbus.c optional pwm fdt | pwmbus fdt dev/pwm/pwm_backlight.c optional pwm pwm_backlight fdt dev/quicc/quicc_core.c optional quicc dev/ral/rt2560.c optional ral dev/ral/rt2661.c optional ral dev/ral/rt2860.c optional ral dev/ral/if_ral_pci.c optional ral pci rt2561fw.c optional rt2561fw | ralfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rt2561.fw:rt2561fw -mrt2561 -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rt2561fw.c" rt2561fw.fwo optional rt2561fw | ralfw \ dependency "rt2561.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rt2561fw.fwo" rt2561.fw optional rt2561fw | ralfw \ dependency "$S/contrib/dev/ral/rt2561.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rt2561.fw" rt2561sfw.c optional rt2561sfw | ralfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rt2561s.fw:rt2561sfw -mrt2561s -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rt2561sfw.c" rt2561sfw.fwo optional rt2561sfw | ralfw \ dependency "rt2561s.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rt2561sfw.fwo" rt2561s.fw optional rt2561sfw | ralfw \ dependency "$S/contrib/dev/ral/rt2561s.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rt2561s.fw" rt2661fw.c optional rt2661fw | ralfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rt2661.fw:rt2661fw -mrt2661 -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rt2661fw.c" rt2661fw.fwo optional rt2661fw | ralfw \ dependency "rt2661.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rt2661fw.fwo" rt2661.fw optional rt2661fw | ralfw \ dependency "$S/contrib/dev/ral/rt2661.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rt2661.fw" rt2860fw.c optional rt2860fw | ralfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rt2860.fw:rt2860fw -mrt2860 -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rt2860fw.c" rt2860fw.fwo optional rt2860fw | ralfw \ dependency "rt2860.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rt2860fw.fwo" rt2860.fw optional rt2860fw | ralfw \ dependency "$S/contrib/dev/ral/rt2860.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rt2860.fw" dev/random/random_infra.c standard dev/random/random_harvestq.c standard dev/random/randomdev.c optional !random_loadable dev/random/fenestrasX/fx_brng.c optional !random_loadable random_fenestrasx dev/random/fenestrasX/fx_main.c optional !random_loadable random_fenestrasx \ compile-with "${NORMAL_C} -I$S/crypto/blake2" dev/random/fenestrasX/fx_pool.c optional !random_loadable random_fenestrasx \ compile-with "${NORMAL_C} -I$S/crypto/blake2" dev/random/fenestrasX/fx_rng.c optional !random_loadable random_fenestrasx \ compile-with "${NORMAL_C} -I$S/crypto/blake2" dev/random/fortuna.c optional !random_loadable !random_fenestrasx dev/random/hash.c optional !random_loadable dev/rccgpio/rccgpio.c optional rccgpio gpio dev/re/if_re.c optional re dev/rl/if_rl.c optional rl pci dev/rndtest/rndtest.c optional rndtest # dev/rtsx/rtsx.c optional rtsx pci # dev/rtwn/if_rtwn.c optional rtwn dev/rtwn/if_rtwn_beacon.c optional rtwn dev/rtwn/if_rtwn_calib.c optional rtwn dev/rtwn/if_rtwn_cam.c optional rtwn dev/rtwn/if_rtwn_efuse.c optional rtwn dev/rtwn/if_rtwn_fw.c optional rtwn dev/rtwn/if_rtwn_rx.c optional rtwn dev/rtwn/if_rtwn_task.c optional rtwn dev/rtwn/if_rtwn_tx.c optional rtwn # dev/rtwn/pci/rtwn_pci_attach.c optional rtwn_pci pci dev/rtwn/pci/rtwn_pci_reg.c optional rtwn_pci pci dev/rtwn/pci/rtwn_pci_rx.c optional rtwn_pci pci dev/rtwn/pci/rtwn_pci_tx.c optional rtwn_pci pci # dev/rtwn/usb/rtwn_usb_attach.c optional rtwn_usb dev/rtwn/usb/rtwn_usb_ep.c optional rtwn_usb dev/rtwn/usb/rtwn_usb_reg.c optional rtwn_usb dev/rtwn/usb/rtwn_usb_rx.c optional rtwn_usb dev/rtwn/usb/rtwn_usb_tx.c optional rtwn_usb # RTL8188E dev/rtwn/rtl8188e/r88e_beacon.c optional rtwn dev/rtwn/rtl8188e/r88e_calib.c optional rtwn dev/rtwn/rtl8188e/r88e_chan.c optional rtwn dev/rtwn/rtl8188e/r88e_fw.c optional rtwn dev/rtwn/rtl8188e/r88e_init.c optional rtwn dev/rtwn/rtl8188e/r88e_led.c optional rtwn dev/rtwn/rtl8188e/r88e_tx.c optional rtwn dev/rtwn/rtl8188e/r88e_rf.c optional rtwn dev/rtwn/rtl8188e/r88e_rom.c optional rtwn dev/rtwn/rtl8188e/r88e_rx.c optional rtwn dev/rtwn/rtl8188e/pci/r88ee_attach.c optional rtwn_pci pci dev/rtwn/rtl8188e/pci/r88ee_init.c optional rtwn_pci pci dev/rtwn/rtl8188e/pci/r88ee_rx.c optional rtwn_pci pci dev/rtwn/rtl8188e/usb/r88eu_attach.c optional rtwn_usb dev/rtwn/rtl8188e/usb/r88eu_init.c optional rtwn_usb # RTL8192C dev/rtwn/rtl8192c/r92c_attach.c optional rtwn dev/rtwn/rtl8192c/r92c_beacon.c optional rtwn dev/rtwn/rtl8192c/r92c_calib.c optional rtwn dev/rtwn/rtl8192c/r92c_chan.c optional rtwn dev/rtwn/rtl8192c/r92c_fw.c optional rtwn dev/rtwn/rtl8192c/r92c_init.c optional rtwn dev/rtwn/rtl8192c/r92c_llt.c optional rtwn dev/rtwn/rtl8192c/r92c_rf.c optional rtwn dev/rtwn/rtl8192c/r92c_rom.c optional rtwn dev/rtwn/rtl8192c/r92c_rx.c optional rtwn dev/rtwn/rtl8192c/r92c_tx.c optional rtwn dev/rtwn/rtl8192c/pci/r92ce_attach.c optional rtwn_pci pci dev/rtwn/rtl8192c/pci/r92ce_calib.c optional rtwn_pci pci dev/rtwn/rtl8192c/pci/r92ce_fw.c optional rtwn_pci pci dev/rtwn/rtl8192c/pci/r92ce_init.c optional rtwn_pci pci dev/rtwn/rtl8192c/pci/r92ce_led.c optional rtwn_pci pci dev/rtwn/rtl8192c/pci/r92ce_rx.c optional rtwn_pci pci dev/rtwn/rtl8192c/pci/r92ce_tx.c optional rtwn_pci pci dev/rtwn/rtl8192c/usb/r92cu_attach.c optional rtwn_usb dev/rtwn/rtl8192c/usb/r92cu_init.c optional rtwn_usb dev/rtwn/rtl8192c/usb/r92cu_led.c optional rtwn_usb dev/rtwn/rtl8192c/usb/r92cu_rx.c optional rtwn_usb dev/rtwn/rtl8192c/usb/r92cu_tx.c optional rtwn_usb # RTL8192E dev/rtwn/rtl8192e/r92e_chan.c optional rtwn dev/rtwn/rtl8192e/r92e_fw.c optional rtwn dev/rtwn/rtl8192e/r92e_init.c optional rtwn dev/rtwn/rtl8192e/r92e_led.c optional rtwn dev/rtwn/rtl8192e/r92e_rf.c optional rtwn dev/rtwn/rtl8192e/r92e_rom.c optional rtwn dev/rtwn/rtl8192e/r92e_rx.c optional rtwn dev/rtwn/rtl8192e/usb/r92eu_attach.c optional rtwn_usb dev/rtwn/rtl8192e/usb/r92eu_init.c optional rtwn_usb # RTL8812A dev/rtwn/rtl8812a/r12a_beacon.c optional rtwn dev/rtwn/rtl8812a/r12a_calib.c optional rtwn dev/rtwn/rtl8812a/r12a_caps.c optional rtwn dev/rtwn/rtl8812a/r12a_chan.c optional rtwn dev/rtwn/rtl8812a/r12a_fw.c optional rtwn dev/rtwn/rtl8812a/r12a_init.c optional rtwn dev/rtwn/rtl8812a/r12a_led.c optional rtwn dev/rtwn/rtl8812a/r12a_rf.c optional rtwn dev/rtwn/rtl8812a/r12a_rom.c optional rtwn dev/rtwn/rtl8812a/r12a_rx.c optional rtwn dev/rtwn/rtl8812a/r12a_tx.c optional rtwn dev/rtwn/rtl8812a/usb/r12au_attach.c optional rtwn_usb dev/rtwn/rtl8812a/usb/r12au_init.c optional rtwn_usb dev/rtwn/rtl8812a/usb/r12au_rx.c optional rtwn_usb dev/rtwn/rtl8812a/usb/r12au_tx.c optional rtwn_usb # RTL8821A dev/rtwn/rtl8821a/r21a_beacon.c optional rtwn dev/rtwn/rtl8821a/r21a_calib.c optional rtwn dev/rtwn/rtl8821a/r21a_chan.c optional rtwn dev/rtwn/rtl8821a/r21a_fw.c optional rtwn dev/rtwn/rtl8821a/r21a_init.c optional rtwn dev/rtwn/rtl8821a/r21a_led.c optional rtwn dev/rtwn/rtl8821a/r21a_rom.c optional rtwn dev/rtwn/rtl8821a/r21a_rx.c optional rtwn dev/rtwn/rtl8821a/usb/r21au_attach.c optional rtwn_usb dev/rtwn/rtl8821a/usb/r21au_dfs.c optional rtwn_usb dev/rtwn/rtl8821a/usb/r21au_init.c optional rtwn_usb rtwn-rtl8188eefw.c optional rtwn-rtl8188eefw | rtwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rtwn-rtl8188eefw.fw:rtwn-rtl8188eefw:111 -mrtwn-rtl8188eefw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rtwn-rtl8188eefw.c" rtwn-rtl8188eefw.fwo optional rtwn-rtl8188eefw | rtwnfw \ dependency "rtwn-rtl8188eefw.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rtwn-rtl8188eefw.fwo" rtwn-rtl8188eefw.fw optional rtwn-rtl8188eefw | rtwnfw \ dependency "$S/contrib/dev/rtwn/rtwn-rtl8188eefw.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rtwn-rtl8188eefw.fw" rtwn-rtl8188eufw.c optional rtwn-rtl8188eufw | rtwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rtwn-rtl8188eufw.fw:rtwn-rtl8188eufw:111 -mrtwn-rtl8188eufw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rtwn-rtl8188eufw.c" rtwn-rtl8188eufw.fwo optional rtwn-rtl8188eufw | rtwnfw \ dependency "rtwn-rtl8188eufw.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rtwn-rtl8188eufw.fwo" rtwn-rtl8188eufw.fw optional rtwn-rtl8188eufw | rtwnfw \ dependency "$S/contrib/dev/rtwn/rtwn-rtl8188eufw.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rtwn-rtl8188eufw.fw" rtwn-rtl8192cfwE.c optional rtwn-rtl8192cfwE | rtwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rtwn-rtl8192cfwE.fw:rtwn-rtl8192cfwE:111 -mrtwn-rtl8192cfwE -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rtwn-rtl8192cfwE.c" rtwn-rtl8192cfwE.fwo optional rtwn-rtl8192cfwE | rtwnfw \ dependency "rtwn-rtl8192cfwE.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rtwn-rtl8192cfwE.fwo" rtwn-rtl8192cfwE.fw optional rtwn-rtl8192cfwE | rtwnfw \ dependency "$S/contrib/dev/rtwn/rtwn-rtl8192cfwE.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rtwn-rtl8192cfwE.fw" rtwn-rtl8192cfwE_B.c optional rtwn-rtl8192cfwE_B | rtwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rtwn-rtl8192cfwE_B.fw:rtwn-rtl8192cfwE_B:111 -mrtwn-rtl8192cfwE_B -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rtwn-rtl8192cfwE_B.c" rtwn-rtl8192cfwE_B.fwo optional rtwn-rtl8192cfwE_B | rtwnfw \ dependency "rtwn-rtl8192cfwE_B.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rtwn-rtl8192cfwE_B.fwo" rtwn-rtl8192cfwE_B.fw optional rtwn-rtl8192cfwE_B | rtwnfw \ dependency "$S/contrib/dev/rtwn/rtwn-rtl8192cfwE_B.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rtwn-rtl8192cfwE_B.fw" rtwn-rtl8192cfwT.c optional rtwn-rtl8192cfwT | rtwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rtwn-rtl8192cfwT.fw:rtwn-rtl8192cfwT:111 -mrtwn-rtl8192cfwT -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rtwn-rtl8192cfwT.c" rtwn-rtl8192cfwT.fwo optional rtwn-rtl8192cfwT | rtwnfw \ dependency "rtwn-rtl8192cfwT.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rtwn-rtl8192cfwT.fwo" rtwn-rtl8192cfwT.fw optional rtwn-rtl8192cfwT | rtwnfw \ dependency "$S/contrib/dev/rtwn/rtwn-rtl8192cfwT.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rtwn-rtl8192cfwT.fw" rtwn-rtl8192cfwU.c optional rtwn-rtl8192cfwU | rtwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rtwn-rtl8192cfwU.fw:rtwn-rtl8192cfwU:111 -mrtwn-rtl8192cfwU -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rtwn-rtl8192cfwU.c" rtwn-rtl8192cfwU.fwo optional rtwn-rtl8192cfwU | rtwnfw \ dependency "rtwn-rtl8192cfwU.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rtwn-rtl8192cfwU.fwo" rtwn-rtl8192cfwU.fw optional rtwn-rtl8192cfwU | rtwnfw \ dependency "$S/contrib/dev/rtwn/rtwn-rtl8192cfwU.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rtwn-rtl8192cfwU.fw" rtwn-rtl8192eufw.c optional rtwn-rtl8192eufw | rtwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rtwn-rtl8192eufw.fw:rtwn-rtl8192eufw:111 -mrtwn-rtl8192eufw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rtwn-rtl8192eufw.c" rtwn-rtl8192eufw.fwo optional rtwn-rtl8192eufw | rtwnfw \ dependency "rtwn-rtl8192eufw.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rtwn-rtl8192eufw.fwo" rtwn-rtl8192eufw.fw optional rtwn-rtl8192eufw | rtwnfw \ dependency "$S/contrib/dev/rtwn/rtwn-rtl8192eufw.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rtwn-rtl8192eufw.fw" rtwn-rtl8812aufw.c optional rtwn-rtl8812aufw | rtwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rtwn-rtl8812aufw.fw:rtwn-rtl8812aufw:111 -mrtwn-rtl8812aufw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rtwn-rtl8812aufw.c" rtwn-rtl8812aufw.fwo optional rtwn-rtl8812aufw | rtwnfw \ dependency "rtwn-rtl8812aufw.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rtwn-rtl8812aufw.fwo" rtwn-rtl8812aufw.fw optional rtwn-rtl8812aufw | rtwnfw \ dependency "$S/contrib/dev/rtwn/rtwn-rtl8812aufw.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rtwn-rtl8812aufw.fw" rtwn-rtl8821aufw.c optional rtwn-rtl8821aufw | rtwnfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rtwn-rtl8821aufw.fw:rtwn-rtl8821aufw:111 -mrtwn-rtl8821aufw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rtwn-rtl8821aufw.c" rtwn-rtl8821aufw.fwo optional rtwn-rtl8821aufw | rtwnfw \ dependency "rtwn-rtl8821aufw.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rtwn-rtl8821aufw.fwo" rtwn-rtl8821aufw.fw optional rtwn-rtl8821aufw | rtwnfw \ dependency "$S/contrib/dev/rtwn/rtwn-rtl8821aufw.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rtwn-rtl8821aufw.fw" dev/safe/safe.c optional safe dev/scc/scc_if.m optional scc dev/scc/scc_bfe_quicc.c optional scc quicc dev/scc/scc_core.c optional scc dev/scc/scc_dev_quicc.c optional scc quicc dev/scc/scc_dev_z8530.c optional scc dev/sdhci/sdhci.c optional sdhci dev/sdhci/sdhci_fdt.c optional sdhci fdt regulator clk dev/sdhci/sdhci_fdt_gpio.c optional sdhci fdt gpio dev/sdhci/sdhci_fsl_fdt.c optional sdhci fdt gpio regulator clk dev/sdhci/sdhci_if.m optional sdhci dev/sdhci/sdhci_acpi.c optional sdhci acpi dev/sdhci/sdhci_pci.c optional sdhci pci dev/sdio/sdio_if.m optional mmccam dev/sdio/sdio_subr.c optional mmccam dev/sdio/sdiob.c optional mmccam dev/sge/if_sge.c optional sge pci dev/siis/siis.c optional siis pci dev/sis/if_sis.c optional sis pci dev/sk/if_sk.c optional sk pci dev/smbios/smbios.c optional smbios dev/smbus/smb.c optional smb dev/smbus/smbconf.c optional smbus dev/smbus/smbus.c optional smbus dev/smbus/smbus_if.m optional smbus dev/smc/if_smc.c optional smc dev/smc/if_smc_acpi.c optional smc acpi dev/smc/if_smc_fdt.c optional smc fdt dev/snp/snp.c optional snp dev/sound/clone.c optional sound dev/sound/unit.c optional sound dev/sound/pci/als4000.c optional snd_als4000 pci dev/sound/pci/atiixp.c optional snd_atiixp pci dev/sound/pci/cmi.c optional snd_cmi pci dev/sound/pci/cs4281.c optional snd_cs4281 pci dev/sound/pci/csa.c optional snd_csa pci dev/sound/pci/csapcm.c optional snd_csa pci dev/sound/pci/emu10k1.c optional snd_emu10k1 pci dev/sound/pci/emu10kx.c optional snd_emu10kx pci dev/sound/pci/emu10kx-pcm.c optional snd_emu10kx pci dev/sound/pci/emu10kx-midi.c optional snd_emu10kx pci dev/sound/pci/envy24.c optional snd_envy24 pci dev/sound/pci/envy24ht.c optional snd_envy24ht pci dev/sound/pci/es137x.c optional snd_es137x pci dev/sound/pci/fm801.c optional snd_fm801 pci dev/sound/pci/ich.c optional snd_ich pci dev/sound/pci/maestro3.c optional snd_maestro3 pci dev/sound/pci/neomagic.c optional snd_neomagic pci dev/sound/pci/solo.c optional snd_solo pci dev/sound/pci/spicds.c optional snd_spicds pci dev/sound/pci/t4dwave.c optional snd_t4dwave pci dev/sound/pci/via8233.c optional snd_via8233 pci dev/sound/pci/via82c686.c optional snd_via82c686 pci dev/sound/pci/vibes.c optional snd_vibes pci dev/sound/pci/hda/hdaa.c optional snd_hda pci dev/sound/pci/hda/hdaa_patches.c optional snd_hda pci dev/sound/pci/hda/hdac.c optional snd_hda pci dev/sound/pci/hda/hdac_if.m optional snd_hda pci dev/sound/pci/hda/hdacc.c optional snd_hda pci dev/sound/pci/hdspe.c optional snd_hdspe pci dev/sound/pci/hdspe-pcm.c optional snd_hdspe pci dev/sound/pcm/ac97.c optional sound dev/sound/pcm/ac97_if.m optional sound dev/sound/pcm/ac97_patch.c optional sound dev/sound/pcm/buffer.c optional sound \ dependency "snd_fxdiv_gen.h" dev/sound/pcm/channel.c optional sound dev/sound/pcm/channel_if.m optional sound dev/sound/pcm/dsp.c optional sound dev/sound/pcm/feeder.c optional sound dev/sound/pcm/feeder_chain.c optional sound dev/sound/pcm/feeder_eq.c optional sound \ dependency "feeder_eq_gen.h" \ dependency "snd_fxdiv_gen.h" dev/sound/pcm/feeder_if.m optional sound dev/sound/pcm/feeder_format.c optional sound \ dependency "snd_fxdiv_gen.h" dev/sound/pcm/feeder_matrix.c optional sound \ dependency "snd_fxdiv_gen.h" dev/sound/pcm/feeder_mixer.c optional sound \ dependency "snd_fxdiv_gen.h" dev/sound/pcm/feeder_rate.c optional sound \ dependency "feeder_rate_gen.h" \ dependency "snd_fxdiv_gen.h" dev/sound/pcm/feeder_volume.c optional sound \ dependency "snd_fxdiv_gen.h" dev/sound/pcm/mixer.c optional sound dev/sound/pcm/mixer_if.m optional sound dev/sound/pcm/sndstat.c optional sound dev/sound/pcm/sound.c optional sound dev/sound/pcm/vchan.c optional sound dev/sound/usb/uaudio.c optional snd_uaudio usb dev/sound/usb/uaudio_pcm.c optional snd_uaudio usb dev/sound/midi/midi.c optional sound dev/sound/midi/mpu401.c optional sound dev/sound/midi/mpu_if.m optional sound dev/sound/midi/mpufoi_if.m optional sound dev/sound/midi/sequencer.c optional sound dev/sound/midi/synth_if.m optional sound dev/spibus/acpi_spibus.c optional acpi spibus dev/spibus/ofw_spibus.c optional fdt spibus dev/spibus/spibus.c optional spibus \ dependency "spibus_if.h" dev/spibus/spigen.c optional spigen dev/spibus/spibus_if.m optional spibus dev/ste/if_ste.c optional ste pci dev/stge/if_stge.c optional stge dev/sym/sym_hipd.c optional sym \ dependency "$S/dev/sym/sym_{conf,defs}.h" dev/syscons/blank/blank_saver.c optional blank_saver dev/syscons/daemon/daemon_saver.c optional daemon_saver dev/syscons/dragon/dragon_saver.c optional dragon_saver dev/syscons/fade/fade_saver.c optional fade_saver dev/syscons/fire/fire_saver.c optional fire_saver dev/syscons/green/green_saver.c optional green_saver dev/syscons/logo/logo.c optional logo_saver dev/syscons/logo/logo_saver.c optional logo_saver dev/syscons/rain/rain_saver.c optional rain_saver dev/syscons/schistory.c optional sc dev/syscons/scmouse.c optional sc dev/syscons/scterm.c optional sc dev/syscons/scterm-dumb.c optional sc !SC_NO_TERM_DUMB dev/syscons/scterm-sc.c optional sc !SC_NO_TERM_SC dev/syscons/scterm-teken.c optional sc !SC_NO_TERM_TEKEN dev/syscons/scvidctl.c optional sc dev/syscons/scvtb.c optional sc dev/syscons/snake/snake_saver.c optional snake_saver dev/syscons/star/star_saver.c optional star_saver dev/syscons/syscons.c optional sc dev/syscons/sysmouse.c optional sc dev/syscons/warp/warp_saver.c optional warp_saver dev/tcp_log/tcp_log_dev.c optional tcp_blackbox inet | tcp_blackbox inet6 dev/tdfx/tdfx_pci.c optional tdfx pci dev/ti/if_ti.c optional ti pci dev/tws/tws.c optional tws dev/tws/tws_cam.c optional tws dev/tws/tws_hdm.c optional tws dev/tws/tws_services.c optional tws dev/tws/tws_user.c optional tws dev/uart/uart_bus_acpi.c optional uart acpi dev/uart/uart_bus_fdt.c optional uart fdt dev/uart/uart_bus_isa.c optional uart isa dev/uart/uart_bus_pci.c optional uart pci dev/uart/uart_bus_puc.c optional uart puc dev/uart/uart_bus_scc.c optional uart scc dev/uart/uart_core.c optional uart dev/uart/uart_cpu_acpi.c optional uart acpi dev/uart/uart_dbg.c optional uart gdb dev/uart/uart_dev_imx.c optional uart uart_imx fdt dev/uart/uart_dev_msm.c optional uart uart_msm fdt dev/uart/uart_dev_mvebu.c optional uart uart_mvebu fdt dev/uart/uart_dev_ns8250.c optional uart uart_ns8250 | uart uart_snps dev/uart/uart_dev_pl011.c optional uart pl011 dev/uart/uart_dev_quicc.c optional uart quicc dev/uart/uart_dev_snps.c optional uart uart_snps fdt dev/uart/uart_dev_z8530.c optional uart uart_z8530 | uart scc dev/uart/uart_if.m optional uart dev/uart/uart_subr.c optional uart dev/uart/uart_tty.c optional uart # # USB controller drivers # dev/usb/controller/musb_otg.c optional musb dev/usb/controller/dwc_otg.c optional dwcotg dev/usb/controller/dwc_otg_fdt.c optional dwcotg fdt dev/usb/controller/dwc_otg_acpi.c optional dwcotg acpi dev/usb/controller/ehci.c optional ehci dev/usb/controller/ehci_msm.c optional ehci_msm fdt dev/usb/controller/ehci_pci.c optional ehci pci dev/usb/controller/ohci.c optional ohci dev/usb/controller/ohci_pci.c optional ohci pci dev/usb/controller/uhci.c optional uhci dev/usb/controller/uhci_pci.c optional uhci pci dev/usb/controller/xhci.c optional xhci dev/usb/controller/xhci_pci.c optional xhci pci dev/usb/controller/saf1761_otg.c optional saf1761otg dev/usb/controller/saf1761_otg_fdt.c optional saf1761otg fdt dev/usb/controller/uss820dci.c optional uss820dci dev/usb/controller/usb_controller.c optional usb # # USB storage drivers # dev/usb/storage/cfumass.c optional cfumass ctl dev/usb/storage/umass.c optional umass dev/usb/storage/urio.c optional urio dev/usb/storage/ustorage_fs.c optional usfs # # USB core # dev/usb/usb_busdma.c optional usb dev/usb/usb_core.c optional usb dev/usb/usb_debug.c optional usb dev/usb/usb_dev.c optional usb dev/usb/usb_device.c optional usb dev/usb/usb_dynamic.c optional usb dev/usb/usb_error.c optional usb dev/usb/usb_fdt_support.c optional usb fdt dev/usb/usb_generic.c optional usb dev/usb/usb_handle_request.c optional usb dev/usb/usb_hid.c optional usb dev/usb/usb_hub.c optional usb dev/usb/usb_hub_acpi.c optional uacpi acpi dev/usb/usb_if.m optional usb dev/usb/usb_lookup.c optional usb dev/usb/usb_mbuf.c optional usb dev/usb/usb_msctest.c optional usb dev/usb/usb_parse.c optional usb dev/usb/usb_pf.c optional usb dev/usb/usb_process.c optional usb dev/usb/usb_request.c optional usb dev/usb/usb_transfer.c optional usb dev/usb/usb_util.c optional usb # # USB network drivers # dev/usb/net/if_aue.c optional aue dev/usb/net/if_axe.c optional axe dev/usb/net/if_axge.c optional axge dev/usb/net/if_cdce.c optional cdce dev/usb/net/if_cdceem.c optional cdceem dev/usb/net/if_cue.c optional cue dev/usb/net/if_ipheth.c optional ipheth dev/usb/net/if_kue.c optional kue dev/usb/net/if_mos.c optional mos dev/usb/net/if_muge.c optional muge dev/usb/net/if_rue.c optional rue dev/usb/net/if_smsc.c optional smsc dev/usb/net/if_udav.c optional udav dev/usb/net/if_ure.c optional ure dev/usb/net/if_usie.c optional usie dev/usb/net/if_urndis.c optional urndis dev/usb/net/ruephy.c optional rue dev/usb/net/usb_ethernet.c optional uether | aue | axe | axge | cdce | \ cdceem | cue | ipheth | kue | mos | \ rue | smsc | udav | ure | urndis | muge dev/usb/net/uhso.c optional uhso # # USB WLAN drivers # dev/usb/wlan/if_rsu.c optional rsu rsu-rtl8712fw.c optional rsu-rtl8712fw | rsufw \ compile-with "${AWK} -f $S/tools/fw_stub.awk rsu-rtl8712fw.fw:rsu-rtl8712fw:120 -mrsu-rtl8712fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "rsu-rtl8712fw.c" rsu-rtl8712fw.fwo optional rsu-rtl8712fw | rsufw \ dependency "rsu-rtl8712fw.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "rsu-rtl8712fw.fwo" rsu-rtl8712fw.fw optional rsu-rtl8712.fw | rsufw \ dependency "$S/contrib/dev/rsu/rsu-rtl8712fw.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "rsu-rtl8712fw.fw" dev/usb/wlan/if_rum.c optional rum dev/usb/wlan/if_run.c optional run runfw.c optional runfw \ compile-with "${AWK} -f $S/tools/fw_stub.awk run.fw:runfw -mrunfw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "runfw.c" runfw.fwo optional runfw \ dependency "run.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "runfw.fwo" run.fw optional runfw \ dependency "$S/contrib/dev/run/rt2870.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "run.fw" dev/usb/wlan/if_uath.c optional uath dev/usb/wlan/if_upgt.c optional upgt dev/usb/wlan/if_ural.c optional ural dev/usb/wlan/if_urtw.c optional urtw dev/usb/wlan/if_zyd.c optional zyd # # USB serial and parallel port drivers # dev/usb/serial/u3g.c optional u3g dev/usb/serial/uark.c optional uark dev/usb/serial/ubsa.c optional ubsa dev/usb/serial/ubser.c optional ubser dev/usb/serial/uchcom.c optional uchcom dev/usb/serial/ucycom.c optional ucycom dev/usb/serial/ufoma.c optional ufoma dev/usb/serial/uftdi.c optional uftdi dev/usb/serial/ugensa.c optional ugensa dev/usb/serial/uipaq.c optional uipaq dev/usb/serial/ulpt.c optional ulpt dev/usb/serial/umcs.c optional umcs dev/usb/serial/umct.c optional umct dev/usb/serial/umodem.c optional umodem dev/usb/serial/umoscom.c optional umoscom dev/usb/serial/uplcom.c optional uplcom dev/usb/serial/uslcom.c optional uslcom dev/usb/serial/uvisor.c optional uvisor dev/usb/serial/uvscom.c optional uvscom dev/usb/serial/usb_serial.c optional ucom | u3g | uark | ubsa | ubser | \ uchcom | ucycom | ufoma | uftdi | \ ugensa | uipaq | umcs | umct | \ umodem | umoscom | uplcom | usie | \ uslcom | uvisor | uvscom # # USB misc drivers # dev/usb/misc/cp2112.c optional cp2112 dev/usb/misc/udbp.c optional udbp dev/usb/misc/ugold.c optional ugold dev/usb/misc/uled.c optional uled # # USB input drivers # dev/usb/input/atp.c optional atp dev/usb/input/uep.c optional uep dev/usb/input/uhid.c optional uhid dev/usb/input/uhid_snes.c optional uhid_snes dev/usb/input/ukbd.c optional ukbd dev/usb/input/ums.c optional ums dev/usb/input/usbhid.c optional usbhid dev/usb/input/wmt.c optional wmt dev/usb/input/wsp.c optional wsp # # USB quirks # dev/usb/quirk/usb_quirk.c optional usb # # USB templates # dev/usb/template/usb_template.c optional usb_template dev/usb/template/usb_template_audio.c optional usb_template dev/usb/template/usb_template_cdce.c optional usb_template dev/usb/template/usb_template_kbd.c optional usb_template dev/usb/template/usb_template_modem.c optional usb_template dev/usb/template/usb_template_mouse.c optional usb_template dev/usb/template/usb_template_msc.c optional usb_template dev/usb/template/usb_template_mtp.c optional usb_template dev/usb/template/usb_template_phone.c optional usb_template dev/usb/template/usb_template_serialnet.c optional usb_template dev/usb/template/usb_template_midi.c optional usb_template dev/usb/template/usb_template_multi.c optional usb_template dev/usb/template/usb_template_cdceem.c optional usb_template # # USB video drivers # dev/usb/video/udl.c optional udl # # USB END # dev/videomode/videomode.c optional videomode dev/videomode/edid.c optional videomode dev/videomode/pickmode.c optional videomode dev/videomode/vesagtf.c optional videomode dev/veriexec/verified_exec.c optional mac_veriexec dev/vge/if_vge.c optional vge dev/viapm/viapm.c optional viapm pci dev/virtio/virtio.c optional virtio dev/virtio/virtqueue.c optional virtio dev/virtio/virtio_bus_if.m optional virtio dev/virtio/virtio_if.m optional virtio dev/virtio/pci/virtio_pci.c optional virtio_pci dev/virtio/pci/virtio_pci_if.m optional virtio_pci dev/virtio/pci/virtio_pci_legacy.c optional virtio_pci dev/virtio/pci/virtio_pci_modern.c optional virtio_pci dev/virtio/mmio/virtio_mmio.c optional virtio_mmio dev/virtio/mmio/virtio_mmio_acpi.c optional virtio_mmio acpi dev/virtio/mmio/virtio_mmio_cmdline.c optional virtio_mmio dev/virtio/mmio/virtio_mmio_fdt.c optional virtio_mmio fdt dev/virtio/mmio/virtio_mmio_if.m optional virtio_mmio dev/virtio/network/if_vtnet.c optional vtnet dev/virtio/block/virtio_blk.c optional virtio_blk dev/virtio/balloon/virtio_balloon.c optional virtio_balloon dev/virtio/scsi/virtio_scsi.c optional virtio_scsi dev/virtio/random/virtio_random.c optional virtio_random dev/virtio/console/virtio_console.c optional virtio_console dev/vkbd/vkbd.c optional vkbd dev/vmgenc/vmgenc_acpi.c optional acpi dev/vmware/vmxnet3/if_vmx.c optional vmx dev/vmware/vmci/vmci.c optional vmci dev/vmware/vmci/vmci_datagram.c optional vmci dev/vmware/vmci/vmci_doorbell.c optional vmci dev/vmware/vmci/vmci_driver.c optional vmci dev/vmware/vmci/vmci_event.c optional vmci dev/vmware/vmci/vmci_hashtable.c optional vmci dev/vmware/vmci/vmci_kernel_if.c optional vmci dev/vmware/vmci/vmci_qpair.c optional vmci dev/vmware/vmci/vmci_queue_pair.c optional vmci dev/vmware/vmci/vmci_resource.c optional vmci dev/vmware/pvscsi/pvscsi.c optional pvscsi dev/vr/if_vr.c optional vr pci dev/vt/colors/vt_termcolors.c optional vt dev/vt/font/vt_font_default.c optional vt dev/vt/font/vt_mouse_cursor.c optional vt dev/vt/hw/efifb/efifb.c optional vt_efifb dev/vt/hw/simplefb/simplefb.c optional vt_simplefb fdt dev/vt/hw/vbefb/vbefb.c optional vt_vbefb dev/vt/hw/fb/vt_fb.c optional vt dev/vt/hw/vga/vt_vga.c optional vt vt_vga dev/vt/logo/logo_freebsd.c optional vt splash dev/vt/logo/logo_beastie.c optional vt splash dev/vt/vt_buf.c optional vt dev/vt/vt_consolectl.c optional vt dev/vt/vt_core.c optional vt dev/vt/vt_cpulogos.c optional vt splash dev/vt/vt_font.c optional vt dev/vt/vt_sysmouse.c optional vt dev/vte/if_vte.c optional vte pci dev/watchdog/watchdog.c standard dev/wg/if_wg.c optional wg \ compile-with "${NORMAL_C} -include $S/dev/wg/compat.h" dev/wg/wg_cookie.c optional wg \ compile-with "${NORMAL_C} -include $S/dev/wg/compat.h" dev/wg/wg_crypto.c optional wg \ compile-with "${NORMAL_C} -include $S/dev/wg/compat.h" dev/wg/wg_noise.c optional wg \ compile-with "${NORMAL_C} -include $S/dev/wg/compat.h" dev/wpi/if_wpi.c optional wpi pci wpifw.c optional wpifw \ compile-with "${AWK} -f $S/tools/fw_stub.awk wpi.fw:wpifw:153229 -mwpi -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "wpifw.c" wpifw.fwo optional wpifw \ dependency "wpi.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "wpifw.fwo" wpi.fw optional wpifw \ dependency "$S/contrib/dev/wpi/iwlwifi-3945-15.32.2.9.fw.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "wpi.fw" dev/xdma/controller/pl330.c optional xdma pl330 fdt dev/xdma/xdma.c optional xdma dev/xdma/xdma_bank.c optional xdma dev/xdma/xdma_bio.c optional xdma dev/xdma/xdma_fdt_test.c optional xdma xdma_test fdt dev/xdma/xdma_if.m optional xdma dev/xdma/xdma_iommu.c optional xdma dev/xdma/xdma_mbuf.c optional xdma dev/xdma/xdma_queue.c optional xdma dev/xdma/xdma_sg.c optional xdma dev/xdma/xdma_sglist.c optional xdma dev/xen/balloon/balloon.c optional xenhvm dev/xen/blkfront/blkfront.c optional xenhvm dev/xen/blkback/blkback.c optional xenhvm dev/xen/bus/xen_intr.c optional xenhvm dev/xen/bus/xenpv.c optional xenhvm dev/xen/console/xen_console.c optional xenhvm dev/xen/control/control.c optional xenhvm dev/xen/cpu/xen_acpi_cpu.c optional xenhvm dev/xen/efi/pvefi.c optional xenhvm xenefi efirt dev/xen/grant_table/grant_table.c optional xenhvm dev/xen/netback/netback.c optional xenhvm dev/xen/netfront/netfront.c optional xenhvm dev/xen/timer/xen_timer.c optional xenhvm xentimer dev/xen/xenpci/xenpci.c optional xenpci dev/xen/xenstore/xenstore.c optional xenhvm dev/xen/xenstore/xenstore_dev.c optional xenhvm dev/xen/xenstore/xenstored_dev.c optional xenhvm dev/xen/evtchn/evtchn_dev.c optional xenhvm dev/xen/privcmd/privcmd.c optional xenhvm dev/xen/gntdev/gntdev.c optional xenhvm dev/xen/debug/debug.c optional xenhvm dev/xl/if_xl.c optional xl pci dev/xl/xlphy.c optional xl pci fs/autofs/autofs.c optional autofs fs/autofs/autofs_vfsops.c optional autofs fs/autofs/autofs_vnops.c optional autofs fs/deadfs/dead_vnops.c standard fs/devfs/devfs_devs.c standard fs/devfs/devfs_dir.c standard fs/devfs/devfs_rule.c standard fs/devfs/devfs_vfsops.c standard fs/devfs/devfs_vnops.c standard fs/fdescfs/fdesc_vfsops.c optional fdescfs fs/fdescfs/fdesc_vnops.c optional fdescfs fs/fifofs/fifo_vnops.c standard fs/cuse/cuse.c optional cuse fs/fuse/fuse_device.c optional fusefs fs/fuse/fuse_file.c optional fusefs fs/fuse/fuse_internal.c optional fusefs fs/fuse/fuse_io.c optional fusefs fs/fuse/fuse_ipc.c optional fusefs fs/fuse/fuse_main.c optional fusefs fs/fuse/fuse_node.c optional fusefs fs/fuse/fuse_vfsops.c optional fusefs fs/fuse/fuse_vnops.c optional fusefs fs/mntfs/mntfs_vnops.c standard fs/msdosfs/msdosfs_conv.c optional msdosfs fs/msdosfs/msdosfs_denode.c optional msdosfs fs/msdosfs/msdosfs_fat.c optional msdosfs fs/msdosfs/msdosfs_iconv.c optional msdosfs_iconv fs/msdosfs/msdosfs_lookup.c optional msdosfs fs/msdosfs/msdosfs_vfsops.c optional msdosfs fs/msdosfs/msdosfs_vnops.c optional msdosfs fs/nfs/nfs_commonkrpc.c optional nfscl | nfslockd | nfsd fs/nfs/nfs_commonsubs.c optional nfscl | nfslockd | nfsd fs/nfs/nfs_commonport.c optional nfscl | nfslockd | nfsd fs/nfs/nfs_commonacl.c optional nfscl | nfslockd | nfsd fs/nfsclient/nfs_clcomsubs.c optional nfscl fs/nfsclient/nfs_clsubs.c optional nfscl fs/nfsclient/nfs_clstate.c optional nfscl fs/nfsclient/nfs_clkrpc.c optional nfscl fs/nfsclient/nfs_clrpcops.c optional nfscl fs/nfsclient/nfs_clvnops.c optional nfscl fs/nfsclient/nfs_clnode.c optional nfscl fs/nfsclient/nfs_clvfsops.c optional nfscl fs/nfsclient/nfs_clport.c optional nfscl fs/nfsclient/nfs_clbio.c optional nfscl fs/nfsclient/nfs_clnfsiod.c optional nfscl fs/nfsserver/nfs_fha_new.c optional nfsd inet fs/nfsserver/nfs_nfsdsocket.c optional nfsd inet fs/nfsserver/nfs_nfsdsubs.c optional nfsd inet fs/nfsserver/nfs_nfsdstate.c optional nfsd inet fs/nfsserver/nfs_nfsdkrpc.c optional nfsd inet fs/nfsserver/nfs_nfsdserv.c optional nfsd inet fs/nfsserver/nfs_nfsdport.c optional nfsd inet fs/nfsserver/nfs_nfsdcache.c optional nfsd inet fs/nullfs/null_subr.c optional nullfs fs/nullfs/null_vfsops.c optional nullfs fs/nullfs/null_vnops.c optional nullfs fs/procfs/procfs.c optional procfs fs/procfs/procfs_dbregs.c optional procfs fs/procfs/procfs_fpregs.c optional procfs fs/procfs/procfs_map.c optional procfs fs/procfs/procfs_mem.c optional procfs fs/procfs/procfs_note.c optional procfs fs/procfs/procfs_osrel.c optional procfs fs/procfs/procfs_regs.c optional procfs fs/procfs/procfs_rlimit.c optional procfs fs/procfs/procfs_status.c optional procfs fs/procfs/procfs_type.c optional procfs fs/pseudofs/pseudofs.c optional pseudofs fs/pseudofs/pseudofs_fileno.c optional pseudofs fs/pseudofs/pseudofs_vncache.c optional pseudofs fs/pseudofs/pseudofs_vnops.c optional pseudofs fs/smbfs/smbfs_io.c optional smbfs fs/smbfs/smbfs_node.c optional smbfs fs/smbfs/smbfs_smb.c optional smbfs fs/smbfs/smbfs_subr.c optional smbfs fs/smbfs/smbfs_vfsops.c optional smbfs fs/smbfs/smbfs_vnops.c optional smbfs fs/tarfs/tarfs_io.c optional tarfs compile-with "${NORMAL_C} -I$S/contrib/zstd/lib/freebsd" fs/tarfs/tarfs_subr.c optional tarfs fs/tarfs/tarfs_vfsops.c optional tarfs fs/tarfs/tarfs_vnops.c optional tarfs fs/udf/osta.c optional udf fs/udf/udf_iconv.c optional udf_iconv fs/udf/udf_vfsops.c optional udf fs/udf/udf_vnops.c optional udf fs/unionfs/union_subr.c optional unionfs fs/unionfs/union_vfsops.c optional unionfs fs/unionfs/union_vnops.c optional unionfs fs/tmpfs/tmpfs_vnops.c optional tmpfs fs/tmpfs/tmpfs_fifoops.c optional tmpfs fs/tmpfs/tmpfs_vfsops.c optional tmpfs fs/tmpfs/tmpfs_subr.c optional tmpfs gdb/gdb_cons.c optional gdb gdb/gdb_main.c optional gdb gdb/gdb_packet.c optional gdb gdb/netgdb.c optional ddb debugnet gdb netgdb inet geom/bde/g_bde.c optional geom_bde geom/bde/g_bde_crypt.c optional geom_bde geom/bde/g_bde_lock.c optional geom_bde geom/bde/g_bde_work.c optional geom_bde geom/cache/g_cache.c optional geom_cache geom/concat/g_concat.c optional geom_concat geom/eli/g_eli.c optional geom_eli geom/eli/g_eli_crypto.c optional geom_eli geom/eli/g_eli_ctl.c optional geom_eli geom/eli/g_eli_hmac.c optional geom_eli geom/eli/g_eli_integrity.c optional geom_eli geom/eli/g_eli_key.c optional geom_eli geom/eli/g_eli_key_cache.c optional geom_eli geom/eli/g_eli_privacy.c optional geom_eli geom/eli/pkcs5v2.c optional geom_eli geom/gate/g_gate.c optional geom_gate geom/geom_bsd_enc.c optional geom_part_bsd geom/geom_ccd.c optional ccd | geom_ccd geom/geom_ctl.c standard geom/geom_dev.c standard geom/geom_disk.c standard geom/geom_dump.c standard geom/geom_event.c standard geom/geom_flashmap.c optional fdt cfi | fdt mx25l | mmcsd | fdt n25q | fdt at45d geom/geom_io.c standard geom/geom_kern.c standard geom/geom_map.c optional geom_map geom/geom_redboot.c optional geom_redboot geom/geom_slice.c standard geom/geom_subr.c standard geom/geom_vfs.c standard geom/journal/g_journal.c optional geom_journal geom/journal/g_journal_ufs.c optional geom_journal geom/label/g_label.c optional geom_label | geom_label_gpt geom/label/g_label_ext2fs.c optional geom_label geom/label/g_label_flashmap.c optional geom_label geom/label/g_label_iso9660.c optional geom_label geom/label/g_label_msdosfs.c optional geom_label geom/label/g_label_ntfs.c optional geom_label geom/label/g_label_reiserfs.c optional geom_label geom/label/g_label_ufs.c optional geom_label geom/label/g_label_gpt.c optional geom_label | geom_label_gpt geom/label/g_label_disk_ident.c optional geom_label geom/linux_lvm/g_linux_lvm.c optional geom_linux_lvm geom/mirror/g_mirror.c optional geom_mirror geom/mirror/g_mirror_ctl.c optional geom_mirror geom/mountver/g_mountver.c optional geom_mountver geom/multipath/g_multipath.c optional geom_multipath geom/nop/g_nop.c optional geom_nop geom/part/g_part.c standard geom/part/g_part_if.m standard geom/part/g_part_apm.c optional geom_part_apm geom/part/g_part_bsd.c optional geom_part_bsd geom/part/g_part_bsd64.c optional geom_part_bsd64 geom/part/g_part_ebr.c optional geom_part_ebr geom/part/g_part_gpt.c optional geom_part_gpt geom/part/g_part_ldm.c optional geom_part_ldm geom/part/g_part_mbr.c optional geom_part_mbr geom/raid/g_raid.c optional geom_raid geom/raid/g_raid_ctl.c optional geom_raid geom/raid/g_raid_md_if.m optional geom_raid geom/raid/g_raid_tr_if.m optional geom_raid geom/raid/md_ddf.c optional geom_raid geom/raid/md_intel.c optional geom_raid geom/raid/md_jmicron.c optional geom_raid geom/raid/md_nvidia.c optional geom_raid geom/raid/md_promise.c optional geom_raid geom/raid/md_sii.c optional geom_raid geom/raid/tr_concat.c optional geom_raid geom/raid/tr_raid0.c optional geom_raid geom/raid/tr_raid1.c optional geom_raid geom/raid/tr_raid1e.c optional geom_raid geom/raid/tr_raid5.c optional geom_raid geom/raid3/g_raid3.c optional geom_raid3 geom/raid3/g_raid3_ctl.c optional geom_raid3 geom/shsec/g_shsec.c optional geom_shsec geom/stripe/g_stripe.c optional geom_stripe geom/union/g_union.c optional geom_union geom/uzip/g_uzip.c optional geom_uzip geom/uzip/g_uzip_lzma.c optional geom_uzip geom/uzip/g_uzip_wrkthr.c optional geom_uzip geom/uzip/g_uzip_zlib.c optional geom_uzip geom/uzip/g_uzip_zstd.c optional geom_uzip zstdio \ compile-with "${NORMAL_C} -I$S/contrib/zstd/lib/freebsd" geom/vinum/geom_vinum.c optional geom_vinum geom/vinum/geom_vinum_create.c optional geom_vinum geom/vinum/geom_vinum_drive.c optional geom_vinum geom/vinum/geom_vinum_plex.c optional geom_vinum geom/vinum/geom_vinum_volume.c optional geom_vinum geom/vinum/geom_vinum_subr.c optional geom_vinum geom/vinum/geom_vinum_raid5.c optional geom_vinum geom/vinum/geom_vinum_share.c optional geom_vinum geom/vinum/geom_vinum_list.c optional geom_vinum geom/vinum/geom_vinum_rm.c optional geom_vinum geom/vinum/geom_vinum_init.c optional geom_vinum geom/vinum/geom_vinum_state.c optional geom_vinum geom/vinum/geom_vinum_rename.c optional geom_vinum geom/vinum/geom_vinum_move.c optional geom_vinum geom/vinum/geom_vinum_events.c optional geom_vinum geom/virstor/binstream.c optional geom_virstor geom/virstor/g_virstor.c optional geom_virstor geom/virstor/g_virstor_md.c optional geom_virstor geom/zero/g_zero.c optional geom_zero fs/ext2fs/ext2_acl.c optional ext2fs fs/ext2fs/ext2_alloc.c optional ext2fs fs/ext2fs/ext2_balloc.c optional ext2fs fs/ext2fs/ext2_bmap.c optional ext2fs fs/ext2fs/ext2_csum.c optional ext2fs fs/ext2fs/ext2_extattr.c optional ext2fs fs/ext2fs/ext2_extents.c optional ext2fs fs/ext2fs/ext2_inode.c optional ext2fs fs/ext2fs/ext2_inode_cnv.c optional ext2fs fs/ext2fs/ext2_hash.c optional ext2fs fs/ext2fs/ext2_htree.c optional ext2fs fs/ext2fs/ext2_lookup.c optional ext2fs fs/ext2fs/ext2_subr.c optional ext2fs fs/ext2fs/ext2_vfsops.c optional ext2fs fs/ext2fs/ext2_vnops.c optional ext2fs # isa/isa_if.m standard isa/isa_common.c optional isa isa/isahint.c optional isa isa/pnp.c optional isa isapnp isa/pnpparse.c optional isa isapnp fs/cd9660/cd9660_bmap.c optional cd9660 fs/cd9660/cd9660_lookup.c optional cd9660 fs/cd9660/cd9660_node.c optional cd9660 fs/cd9660/cd9660_rrip.c optional cd9660 fs/cd9660/cd9660_util.c optional cd9660 fs/cd9660/cd9660_vfsops.c optional cd9660 fs/cd9660/cd9660_vnops.c optional cd9660 fs/cd9660/cd9660_iconv.c optional cd9660_iconv gnu/gcov/gcc_4_7.c optional gcov \ warning "kernel contains GPL licensed gcov support" gnu/gcov/gcov_fs.c optional gcov lindebugfs \ compile-with "${LINUXKPI_C}" gnu/gcov/gcov_subr.c optional gcov kern/bus_if.m standard kern/clock_if.m standard kern/cpufreq_if.m standard kern/device_if.m standard kern/imgact_binmisc.c optional imgact_binmisc kern/imgact_elf.c standard kern/imgact_elf32.c optional compat_freebsd32 kern/imgact_shell.c standard kern/init_main.c standard kern/init_sysent.c standard kern/ksched.c optional _kposix_priority_scheduling kern/kern_acct.c standard kern/kern_alq.c optional alq kern/kern_boottrace.c standard kern/kern_clock.c standard kern/kern_clocksource.c standard kern/kern_condvar.c standard kern/kern_conf.c standard kern/kern_cons.c standard kern/kern_cpu.c standard kern/kern_cpuset.c standard kern/kern_context.c standard kern/kern_descrip.c standard kern/kern_devctl.c standard kern/kern_dtrace.c optional kdtrace_hooks kern/kern_dump.c standard kern/kern_environment.c standard kern/kern_et.c standard kern/kern_event.c standard kern/kern_exec.c standard kern/kern_exit.c standard kern/kern_fail.c standard kern/kern_ffclock.c standard kern/kern_fork.c standard kern/kern_hhook.c standard kern/kern_idle.c standard kern/kern_intr.c standard kern/kern_jail.c standard kern/kern_kcov.c optional kcov \ compile-with "${NORMAL_C:N-fsanitize*} ${NORMAL_C:M-fsanitize=kernel-memory}" kern/kern_khelp.c standard kern/kern_kthread.c standard kern/kern_ktr.c optional ktr kern/kern_ktrace.c standard kern/kern_linker.c standard kern/kern_lock.c standard kern/kern_lockf.c standard kern/kern_lockstat.c optional kdtrace_hooks kern/kern_loginclass.c standard kern/kern_malloc.c standard kern/kern_mbuf.c standard kern/kern_mib.c standard kern/kern_module.c standard kern/kern_mtxpool.c standard kern/kern_mutex.c standard kern/kern_ntptime.c standard kern/kern_osd.c standard kern/kern_physio.c standard kern/kern_pmc.c standard kern/kern_poll.c optional device_polling kern/kern_priv.c standard kern/kern_proc.c standard kern/kern_procctl.c standard kern/kern_prot.c standard kern/kern_racct.c standard kern/kern_rangelock.c standard kern/kern_rctl.c standard kern/kern_resource.c standard kern/kern_rmlock.c standard kern/kern_rwlock.c standard kern/kern_sdt.c optional kdtrace_hooks kern/kern_sema.c standard kern/kern_sendfile.c standard kern/kern_sharedpage.c standard kern/kern_shutdown.c standard kern/kern_sig.c standard kern/kern_switch.c standard kern/kern_sx.c standard kern/kern_synch.c standard kern/kern_syscalls.c standard kern/kern_sysctl.c standard kern/kern_tc.c standard kern/kern_thr.c standard kern/kern_thread.c standard kern/kern_time.c standard kern/kern_timeout.c standard kern/kern_tslog.c optional tslog kern/kern_ubsan.c optional kubsan kern/kern_umtx.c standard kern/kern_uuid.c standard kern/kern_vnodedumper.c standard kern/kern_xxx.c standard kern/link_elf.c standard kern/linker_if.m standard kern/md4c.c optional netsmb kern/md5c.c standard kern/p1003_1b.c standard kern/posix4_mib.c standard kern/sched_4bsd.c optional sched_4bsd kern/sched_ule.c optional sched_ule kern/serdev_if.m standard kern/stack_protector.c standard \ compile-with "${NORMAL_C:N-fstack-protector*}" kern/subr_acl_nfs4.c optional ufs_acl | zfs kern/subr_acl_posix1e.c optional ufs_acl kern/subr_asan.c optional kasan \ compile-with "${NORMAL_C:N-fsanitize*:N-fstack-protector*}" kern/subr_autoconf.c standard kern/subr_blist.c standard kern/subr_boot.c standard kern/subr_bus.c standard kern/subr_bus_dma.c standard kern/subr_bufring.c standard kern/subr_capability.c standard kern/subr_clock.c standard kern/subr_compressor.c standard \ compile-with "${NORMAL_C} -I$S/contrib/zstd/lib/freebsd" kern/subr_coverage.c optional coverage \ compile-with "${NORMAL_C:N-fsanitize*}" kern/subr_counter.c standard kern/subr_csan.c optional kcsan \ compile-with "${NORMAL_C:N-fsanitize*:N-fstack-protector*}" kern/subr_devstat.c standard kern/subr_disk.c standard kern/subr_early.c standard kern/subr_epoch.c standard kern/subr_eventhandler.c standard kern/subr_fattime.c standard kern/subr_firmware.c optional firmware kern/subr_filter.c standard kern/subr_gtaskqueue.c standard kern/subr_hash.c standard kern/subr_hints.c standard kern/subr_kdb.c standard kern/subr_kobj.c standard kern/subr_lock.c standard kern/subr_log.c standard kern/subr_mchain.c optional libmchain kern/subr_memdesc.c standard kern/subr_module.c standard kern/subr_msan.c optional kmsan \ compile-with "${NORMAL_C:N-fsanitize*:N-fstack-protector*}" kern/subr_msgbuf.c standard kern/subr_param.c standard kern/subr_pcpu.c standard kern/subr_pctrie.c standard kern/subr_pidctrl.c standard kern/subr_power.c standard kern/subr_prf.c standard kern/subr_prng.c standard kern/subr_prof.c standard kern/subr_rangeset.c standard kern/subr_rman.c standard kern/subr_rtc.c standard kern/subr_sbuf.c standard kern/subr_scanf.c standard kern/subr_sglist.c standard kern/subr_sleepqueue.c standard kern/subr_smp.c standard kern/subr_smr.c standard kern/subr_stack.c optional ddb | stack | ktr kern/subr_stats.c optional stats kern/subr_taskqueue.c standard kern/subr_terminal.c optional vt kern/subr_trap.c standard kern/subr_turnstile.c standard kern/subr_uio.c standard kern/subr_unit.c standard kern/subr_vmem.c standard kern/subr_witness.c optional witness kern/sys_capability.c standard kern/sys_eventfd.c standard kern/sys_generic.c standard kern/sys_getrandom.c standard kern/sys_pipe.c standard kern/sys_procdesc.c standard kern/sys_process.c standard kern/sys_socket.c standard kern/syscalls.c standard kern/sysv_ipc.c standard kern/sysv_msg.c optional sysvmsg kern/sysv_sem.c optional sysvsem kern/sysv_shm.c optional sysvshm kern/tty.c standard kern/tty_compat.c optional compat_43tty kern/tty_info.c standard kern/tty_inq.c standard kern/tty_outq.c standard kern/tty_pts.c standard kern/tty_tty.c standard kern/tty_ttydisc.c standard kern/uipc_accf.c standard kern/uipc_debug.c optional ddb kern/uipc_domain.c standard kern/uipc_ktls.c optional kern_tls kern/uipc_mbuf.c standard kern/uipc_mbuf2.c standard kern/uipc_mbufhash.c standard kern/uipc_mqueue.c optional p1003_1b_mqueue kern/uipc_sem.c optional p1003_1b_semaphores kern/uipc_shm.c standard kern/uipc_sockbuf.c standard kern/uipc_socket.c standard kern/uipc_syscalls.c standard kern/uipc_usrreq.c standard kern/vfs_acl.c standard kern/vfs_aio.c standard kern/vfs_bio.c standard kern/vfs_cache.c standard kern/vfs_cluster.c standard kern/vfs_default.c standard kern/vfs_export.c standard kern/vfs_extattr.c standard kern/vfs_hash.c standard kern/vfs_init.c standard kern/vfs_lookup.c standard kern/vfs_mount.c standard kern/vfs_mountroot.c standard kern/vfs_subr.c standard kern/vfs_syscalls.c standard kern/vfs_vnops.c standard # # Kernel GSS-API # gssd.h optional kgssapi \ dependency "$S/kgssapi/gssd.x" \ compile-with "RPCGEN_CPP='${CPP}' rpcgen -hM $S/kgssapi/gssd.x | grep -v pthread.h > gssd.h" \ no-obj no-implicit-rule before-depend local \ clean "gssd.h" gssd_xdr.c optional kgssapi \ dependency "$S/kgssapi/gssd.x gssd.h" \ compile-with "RPCGEN_CPP='${CPP}' rpcgen -c $S/kgssapi/gssd.x -o gssd_xdr.c" \ no-ctfconvert no-implicit-rule before-depend local \ clean "gssd_xdr.c" gssd_clnt.c optional kgssapi \ dependency "$S/kgssapi/gssd.x gssd.h" \ compile-with "RPCGEN_CPP='${CPP}' rpcgen -lM $S/kgssapi/gssd.x | grep -v string.h > gssd_clnt.c" \ no-ctfconvert no-implicit-rule before-depend local \ clean "gssd_clnt.c" kgssapi/gss_accept_sec_context.c optional kgssapi kgssapi/gss_add_oid_set_member.c optional kgssapi kgssapi/gss_acquire_cred.c optional kgssapi kgssapi/gss_canonicalize_name.c optional kgssapi kgssapi/gss_create_empty_oid_set.c optional kgssapi kgssapi/gss_delete_sec_context.c optional kgssapi kgssapi/gss_display_status.c optional kgssapi kgssapi/gss_export_name.c optional kgssapi kgssapi/gss_get_mic.c optional kgssapi kgssapi/gss_init_sec_context.c optional kgssapi kgssapi/gss_impl.c optional kgssapi kgssapi/gss_import_name.c optional kgssapi kgssapi/gss_names.c optional kgssapi kgssapi/gss_pname_to_uid.c optional kgssapi kgssapi/gss_release_buffer.c optional kgssapi kgssapi/gss_release_cred.c optional kgssapi kgssapi/gss_release_name.c optional kgssapi kgssapi/gss_release_oid_set.c optional kgssapi kgssapi/gss_set_cred_option.c optional kgssapi kgssapi/gss_test_oid_set_member.c optional kgssapi kgssapi/gss_unwrap.c optional kgssapi kgssapi/gss_verify_mic.c optional kgssapi kgssapi/gss_wrap.c optional kgssapi kgssapi/gss_wrap_size_limit.c optional kgssapi kgssapi/gssd_prot.c optional kgssapi kgssapi/krb5/krb5_mech.c optional kgssapi kgssapi/krb5/kcrypto.c optional kgssapi kgssapi/krb5/kcrypto_aes.c optional kgssapi kgssapi/kgss_if.m optional kgssapi kgssapi/gsstest.c optional kgssapi_debug # These files in libkern/ are those needed by all architectures. Some # of the files in libkern/ are only needed on some architectures, e.g., # libkern/divdi3.c is needed by i386 but not alpha. Also, some of these # routines may be optimized for a particular platform. In either case, # the file should be moved to conf/files. from here. # libkern/arc4random.c standard libkern/arc4random_uniform.c standard libkern/asprintf.c standard libkern/bcd.c standard libkern/bsearch.c standard libkern/crc16.c standard libkern/explicit_bzero.c standard libkern/fnmatch.c standard libkern/gsb_crc32.c standard libkern/iconv.c optional libiconv libkern/iconv_converter_if.m optional libiconv libkern/iconv_ucs.c optional libiconv libkern/iconv_xlat.c optional libiconv libkern/iconv_xlat16.c optional libiconv libkern/inet_aton.c standard libkern/inet_ntoa.c standard libkern/inet_ntop.c standard libkern/inet_pton.c standard libkern/jenkins_hash.c standard libkern/murmur3_32.c standard libkern/memcchr.c standard libkern/memchr.c standard libkern/memmem.c optional gdb libkern/qsort.c standard libkern/qsort_r.c standard libkern/random.c standard libkern/scanc.c standard libkern/strcasecmp.c standard libkern/strcasestr.c standard libkern/strcat.c standard libkern/strchr.c standard libkern/strchrnul.c optional gdb libkern/strcpy.c standard libkern/strcspn.c standard libkern/strdup.c standard libkern/strndup.c standard libkern/strlcat.c standard libkern/strlcpy.c standard libkern/strncat.c standard libkern/strncpy.c standard libkern/strnlen.c standard libkern/strnstr.c standard libkern/strrchr.c standard libkern/strsep.c standard libkern/strspn.c standard libkern/strstr.c standard libkern/strtol.c standard libkern/strtoq.c standard libkern/strtoul.c standard libkern/strtouq.c standard libkern/strvalid.c standard libkern/timingsafe_bcmp.c standard contrib/zlib/adler32.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${ZLIB_C}" contrib/zlib/compress.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${ZLIB_C}" contrib/zlib/crc32.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${ZLIB_C}" contrib/zlib/deflate.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${ZLIB_C}" contrib/zlib/inffast.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${ZLIB_C}" contrib/zlib/inflate.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${ZLIB_C}" contrib/zlib/inftrees.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${ZLIB_C}" contrib/zlib/trees.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${ZLIB_C}" contrib/zlib/uncompr.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${ZLIB_C}" contrib/zlib/zutil.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${ZLIB_C}" dev/zlib/zlib_mod.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib dev/zlib/zcalloc.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib net/altq/altq_cbq.c optional altq net/altq/altq_codel.c optional altq net/altq/altq_hfsc.c optional altq net/altq/altq_fairq.c optional altq net/altq/altq_priq.c optional altq net/altq/altq_red.c optional altq net/altq/altq_rio.c optional altq net/altq/altq_rmclass.c optional altq net/altq/altq_subr.c optional altq net/bpf.c standard net/bpf_buffer.c optional bpf net/bpf_jitter.c optional bpf_jitter net/bpf_filter.c optional bpf | netgraph_bpf net/bpf_zerocopy.c optional bpf net/bridgestp.c optional bridge | if_bridge net/ieee8023ad_lacp.c optional lagg net/if.c standard net/ifq.c standard net/if_bridge.c optional bridge inet | if_bridge inet net/if_clone.c standard net/if_dead.c standard net/if_disc.c optional disc net/if_edsc.c optional edsc net/if_enc.c optional enc inet | enc inet6 net/if_epair.c optional epair net/if_ethersubr.c optional ether net/if_fwsubr.c optional fwip net/if_gif.c optional gif inet | gif inet6 | \ netgraph_gif inet | netgraph_gif inet6 net/if_gre.c optional gre inet | gre inet6 net/if_ipsec.c optional inet ipsec | inet6 ipsec net/if_lagg.c optional lagg net/if_loop.c optional loop net/if_llatbl.c standard net/if_me.c optional me inet net/if_media.c standard net/if_mib.c standard net/if_ovpn.c optional ovpn inet | ovpn inet6 net/if_stf.c optional stf inet inet6 net/if_tuntap.c optional tuntap net/if_vlan.c optional vlan net/if_vxlan.c optional vxlan inet | vxlan inet6 net/ifdi_if.m optional ether pci iflib net/iflib.c optional ether pci iflib net/mp_ring.c optional ether iflib net/mppcc.c optional netgraph_mppc_compression net/mppcd.c optional netgraph_mppc_compression net/netisr.c standard net/debugnet.c optional inet debugnet net/debugnet_inet.c optional inet debugnet net/pfil.c optional ether | inet net/radix.c standard net/route.c standard net/route/nhgrp.c optional route_mpath net/route/nhgrp_ctl.c optional route_mpath net/route/nhop.c standard net/route/nhop_ctl.c standard net/route/nhop_utils.c standard net/route/fib_algo.c optional fib_algo net/route/route_ctl.c standard net/route/route_ddb.c optional ddb net/route/route_helpers.c standard net/route/route_ifaddrs.c standard net/route/route_rtentry.c standard net/route/route_subscription.c standard net/route/route_tables.c standard net/route/route_temporal.c standard net/rss_config.c optional inet rss | inet6 rss net/rtsock.c standard net/slcompress.c optional netgraph_vjc net/toeplitz.c optional inet rss | inet6 rss | route_mpath net/vnet.c optional vimage net80211/ieee80211.c optional wlan net80211/ieee80211_acl.c optional wlan wlan_acl net80211/ieee80211_action.c optional wlan net80211/ieee80211_adhoc.c optional wlan \ compile-with "${NORMAL_C} -Wno-unused-function" net80211/ieee80211_ageq.c optional wlan net80211/ieee80211_amrr.c optional wlan | wlan_amrr net80211/ieee80211_crypto.c optional wlan \ compile-with "${NORMAL_C} -Wno-unused-function" net80211/ieee80211_crypto_ccmp.c optional wlan wlan_ccmp net80211/ieee80211_crypto_none.c optional wlan net80211/ieee80211_crypto_tkip.c optional wlan wlan_tkip net80211/ieee80211_crypto_wep.c optional wlan wlan_wep net80211/ieee80211_ddb.c optional wlan ddb net80211/ieee80211_dfs.c optional wlan net80211/ieee80211_freebsd.c optional wlan net80211/ieee80211_hostap.c optional wlan \ compile-with "${NORMAL_C} -Wno-unused-function" net80211/ieee80211_ht.c optional wlan net80211/ieee80211_hwmp.c optional wlan ieee80211_support_mesh net80211/ieee80211_input.c optional wlan net80211/ieee80211_ioctl.c optional wlan net80211/ieee80211_mesh.c optional wlan ieee80211_support_mesh \ compile-with "${NORMAL_C} -Wno-unused-function" net80211/ieee80211_monitor.c optional wlan net80211/ieee80211_node.c optional wlan net80211/ieee80211_output.c optional wlan net80211/ieee80211_phy.c optional wlan net80211/ieee80211_power.c optional wlan net80211/ieee80211_proto.c optional wlan net80211/ieee80211_radiotap.c optional wlan net80211/ieee80211_ratectl.c optional wlan net80211/ieee80211_ratectl_none.c optional wlan net80211/ieee80211_regdomain.c optional wlan net80211/ieee80211_rssadapt.c optional wlan wlan_rssadapt net80211/ieee80211_scan.c optional wlan net80211/ieee80211_scan_sta.c optional wlan net80211/ieee80211_sta.c optional wlan \ compile-with "${NORMAL_C} -Wno-unused-function" net80211/ieee80211_superg.c optional wlan ieee80211_support_superg net80211/ieee80211_scan_sw.c optional wlan net80211/ieee80211_tdma.c optional wlan ieee80211_support_tdma net80211/ieee80211_vht.c optional wlan net80211/ieee80211_wds.c optional wlan net80211/ieee80211_xauth.c optional wlan wlan_xauth net80211/ieee80211_alq.c optional wlan ieee80211_alq netgraph/bluetooth/common/ng_bluetooth.c optional netgraph_bluetooth netgraph/bluetooth/drivers/ubt/ng_ubt.c optional netgraph_bluetooth_ubt usb netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c optional netgraph_bluetooth_ubt usb netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c optional netgraph_bluetooth_ubtbcmfw usb netgraph/bluetooth/hci/ng_hci_cmds.c optional netgraph_bluetooth_hci netgraph/bluetooth/hci/ng_hci_evnt.c optional netgraph_bluetooth_hci netgraph/bluetooth/hci/ng_hci_main.c optional netgraph_bluetooth_hci netgraph/bluetooth/hci/ng_hci_misc.c optional netgraph_bluetooth_hci netgraph/bluetooth/hci/ng_hci_ulpi.c optional netgraph_bluetooth_hci netgraph/bluetooth/l2cap/ng_l2cap_cmds.c optional netgraph_bluetooth_l2cap netgraph/bluetooth/l2cap/ng_l2cap_evnt.c optional netgraph_bluetooth_l2cap netgraph/bluetooth/l2cap/ng_l2cap_llpi.c optional netgraph_bluetooth_l2cap netgraph/bluetooth/l2cap/ng_l2cap_main.c optional netgraph_bluetooth_l2cap netgraph/bluetooth/l2cap/ng_l2cap_misc.c optional netgraph_bluetooth_l2cap netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c optional netgraph_bluetooth_l2cap netgraph/bluetooth/socket/ng_btsocket.c optional netgraph_bluetooth_socket netgraph/bluetooth/socket/ng_btsocket_hci_raw.c optional netgraph_bluetooth_socket netgraph/bluetooth/socket/ng_btsocket_l2cap.c optional netgraph_bluetooth_socket netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c optional netgraph_bluetooth_socket netgraph/bluetooth/socket/ng_btsocket_rfcomm.c optional netgraph_bluetooth_socket netgraph/bluetooth/socket/ng_btsocket_sco.c optional netgraph_bluetooth_socket netgraph/netflow/netflow.c optional netgraph_netflow netgraph/netflow/netflow_v9.c optional netgraph_netflow netgraph/netflow/ng_netflow.c optional netgraph_netflow netgraph/ng_UI.c optional netgraph_UI netgraph/ng_async.c optional netgraph_async netgraph/ng_base.c optional netgraph netgraph/ng_bpf.c optional netgraph_bpf netgraph/ng_bridge.c optional netgraph_bridge netgraph/ng_car.c optional netgraph_car netgraph/ng_checksum.c optional netgraph_checksum netgraph/ng_cisco.c optional netgraph_cisco netgraph/ng_deflate.c optional netgraph_deflate netgraph/ng_device.c optional netgraph_device netgraph/ng_echo.c optional netgraph_echo netgraph/ng_eiface.c optional netgraph_eiface netgraph/ng_ether.c optional netgraph_ether netgraph/ng_ether_echo.c optional netgraph_ether_echo netgraph/ng_frame_relay.c optional netgraph_frame_relay netgraph/ng_gif.c optional netgraph_gif inet6 | netgraph_gif inet netgraph/ng_gif_demux.c optional netgraph_gif_demux netgraph/ng_hole.c optional netgraph_hole netgraph/ng_iface.c optional netgraph_iface netgraph/ng_ip_input.c optional netgraph_ip_input netgraph/ng_ipfw.c optional netgraph_ipfw inet ipfirewall netgraph/ng_ksocket.c optional netgraph_ksocket netgraph/ng_l2tp.c optional netgraph_l2tp netgraph/ng_lmi.c optional netgraph_lmi netgraph/ng_macfilter.c optional netgraph_macfilter netgraph/ng_mppc.c optional netgraph_mppc_compression | \ netgraph_mppc_encryption netgraph/ng_nat.c optional netgraph_nat inet libalias netgraph/ng_one2many.c optional netgraph_one2many netgraph/ng_parse.c optional netgraph netgraph/ng_patch.c optional netgraph_patch netgraph/ng_pipe.c optional netgraph_pipe netgraph/ng_ppp.c optional netgraph_ppp netgraph/ng_pppoe.c optional netgraph_pppoe netgraph/ng_pptpgre.c optional netgraph_pptpgre netgraph/ng_pred1.c optional netgraph_pred1 netgraph/ng_rfc1490.c optional netgraph_rfc1490 netgraph/ng_socket.c optional netgraph_socket netgraph/ng_split.c optional netgraph_split netgraph/ng_tag.c optional netgraph_tag netgraph/ng_tcpmss.c optional netgraph_tcpmss netgraph/ng_tee.c optional netgraph_tee netgraph/ng_tty.c optional netgraph_tty netgraph/ng_vjc.c optional netgraph_vjc netgraph/ng_vlan.c optional netgraph_vlan netgraph/ng_vlan_rotate.c optional netgraph_vlan_rotate netinet/accf_data.c optional accept_filter_data inet netinet/accf_dns.c optional accept_filter_dns inet netinet/accf_http.c optional accept_filter_http inet netinet/if_ether.c optional inet ether netinet/igmp.c optional inet netinet/in.c optional inet netinet/in_cksum.c optional inet | inet6 netinet/in_debug.c optional inet ddb netinet/in_kdtrace.c optional inet | inet6 netinet/ip_carp.c optional inet carp | inet6 carp netinet/in_fib.c optional inet netinet/in_fib_algo.c optional inet fib_algo netinet/in_gif.c optional gif inet | netgraph_gif inet netinet/ip_gre.c optional gre inet netinet/ip_id.c optional inet netinet/in_jail.c optional inet netinet/in_mcast.c optional inet netinet/in_pcb.c optional inet | inet6 netinet/in_prot.c optional inet | inet6 netinet/in_proto.c optional inet | inet6 netinet/in_rmx.c optional inet netinet/in_rss.c optional inet rss netinet/ip_divert.c optional ipdivert inet | ipdivert inet6 netinet/ip_ecn.c optional inet | inet6 netinet/ip_encap.c optional inet | inet6 netinet/ip_fastfwd.c optional inet netinet/ip_icmp.c optional inet | inet6 netinet/ip_input.c optional inet netinet/ip_mroute.c optional mrouting inet netinet/ip_options.c optional inet netinet/ip_output.c optional inet netinet/ip_reass.c optional inet netinet/raw_ip.c optional inet | inet6 netinet/cc/cc.c optional cc_newreno inet | cc_vegas inet | \ cc_htcp inet | cc_hd inet | cc_dctcp inet | cc_cubic inet | \ cc_chd inet | cc_cdg inet | cc_newreno inet6 | cc_vegas inet6 | \ cc_htcp inet6 | cc_hd inet6 |cc_dctcp inet6 | cc_cubic inet6 | \ cc_chd inet6 | cc_cdg inet6 netinet/cc/cc_cdg.c optional inet cc_cdg tcp_hhook netinet/cc/cc_chd.c optional inet cc_chd tcp_hhook netinet/cc/cc_cubic.c optional inet cc_cubic | inet6 cc_cubic netinet/cc/cc_dctcp.c optional inet cc_dctcp | inet6 cc_dctcp netinet/cc/cc_hd.c optional inet cc_hd tcp_hhook netinet/cc/cc_htcp.c optional inet cc_htcp | inet6 cc_htcp netinet/cc/cc_newreno.c optional inet cc_newreno | inet6 cc_newreno netinet/cc/cc_vegas.c optional inet cc_vegas tcp_hhook netinet/khelp/h_ertt.c optional inet tcp_hhook netinet/sctp_asconf.c optional inet sctp | inet6 sctp netinet/sctp_auth.c optional inet sctp | inet6 sctp netinet/sctp_bsd_addr.c optional inet sctp | inet6 sctp netinet/sctp_cc_functions.c optional inet sctp | inet6 sctp netinet/sctp_crc32.c optional inet | inet6 netinet/sctp_indata.c optional inet sctp | inet6 sctp netinet/sctp_input.c optional inet sctp | inet6 sctp netinet/sctp_kdtrace.c optional inet sctp | inet6 sctp netinet/sctp_module.c optional inet sctp | inet6 sctp netinet/sctp_output.c optional inet sctp | inet6 sctp netinet/sctp_pcb.c optional inet sctp | inet6 sctp netinet/sctp_peeloff.c optional inet sctp | inet6 sctp netinet/sctp_ss_functions.c optional inet sctp | inet6 sctp netinet/sctp_syscalls.c optional inet sctp | inet6 sctp netinet/sctp_sysctl.c optional inet sctp | inet6 sctp netinet/sctp_timer.c optional inet sctp | inet6 sctp netinet/sctp_usrreq.c optional inet sctp | inet6 sctp netinet/sctputil.c optional inet sctp | inet6 sctp netinet/siftr.c optional inet siftr alq | inet6 siftr alq netinet/tcp_ecn.c optional inet | inet6 netinet/tcp_fastopen.c optional inet tcp_rfc7413 | inet6 tcp_rfc7413 netinet/tcp_hostcache.c optional inet | inet6 netinet/tcp_input.c optional inet | inet6 netinet/tcp_log_buf.c optional tcp_blackbox inet | tcp_blackbox inet6 netinet/tcp_lro.c optional inet | inet6 netinet/tcp_output.c optional inet | inet6 netinet/tcp_offload.c optional tcp_offload inet | tcp_offload inet6 netinet/tcp_hpts.c optional tcphpts inet | tcphpts inet6 netinet/tcp_ratelimit.c optional ratelimit inet | ratelimit inet6 netinet/tcp_pcap.c optional inet tcppcap | inet6 tcppcap \ compile-with "${NORMAL_C} ${NO_WNONNULL}" netinet/tcp_reass.c optional inet | inet6 netinet/tcp_sack.c optional inet | inet6 netinet/tcp_stats.c optional stats inet | stats inet6 netinet/tcp_subr.c optional inet | inet6 netinet/tcp_syncache.c optional inet | inet6 netinet/tcp_timer.c optional inet | inet6 netinet/tcp_timewait.c optional inet | inet6 netinet/tcp_usrreq.c optional inet | inet6 netinet/udp_usrreq.c optional inet | inet6 netinet/libalias/alias.c optional libalias inet | netgraph_nat inet netinet/libalias/alias_db.c optional libalias inet | netgraph_nat inet netinet/libalias/alias_mod.c optional libalias | netgraph_nat netinet/libalias/alias_proxy.c optional libalias inet | netgraph_nat inet netinet/libalias/alias_util.c optional libalias inet | netgraph_nat inet netinet/libalias/alias_sctp.c optional libalias inet | netgraph_nat inet netinet/netdump/netdump_client.c optional inet debugnet netdump netinet6/dest6.c optional inet6 netinet6/frag6.c optional inet6 netinet6/icmp6.c optional inet6 netinet6/in6.c optional inet6 netinet6/in6_cksum.c optional inet6 netinet6/in6_fib.c optional inet6 netinet6/in6_fib_algo.c optional inet6 fib_algo netinet6/in6_gif.c optional gif inet6 | netgraph_gif inet6 netinet6/in6_ifattach.c optional inet6 netinet6/in6_jail.c optional inet6 netinet6/in6_mcast.c optional inet6 netinet6/in6_pcb.c optional inet6 netinet6/in6_proto.c optional inet6 netinet6/in6_rmx.c optional inet6 netinet6/in6_rss.c optional inet6 rss netinet6/in6_src.c optional inet6 netinet6/ip6_fastfwd.c optional inet6 netinet6/ip6_forward.c optional inet6 netinet6/ip6_gre.c optional gre inet6 netinet6/ip6_id.c optional inet6 netinet6/ip6_input.c optional inet6 netinet6/ip6_mroute.c optional mrouting inet6 netinet6/ip6_output.c optional inet6 netinet6/mld6.c optional inet6 netinet6/nd6.c optional inet6 netinet6/nd6_nbr.c optional inet6 netinet6/nd6_rtr.c optional inet6 netinet6/raw_ip6.c optional inet6 netinet6/route6.c optional inet6 netinet6/scope6.c optional inet6 netinet6/sctp6_usrreq.c optional inet6 sctp netinet6/udp6_usrreq.c optional inet6 netipsec/ipsec.c optional ipsec inet | ipsec inet6 netipsec/ipsec_input.c optional ipsec inet | ipsec inet6 netipsec/ipsec_mbuf.c optional ipsec inet | ipsec inet6 netipsec/ipsec_mod.c optional ipsec inet | ipsec inet6 netipsec/ipsec_output.c optional ipsec inet | ipsec inet6 netipsec/ipsec_pcb.c optional ipsec inet | ipsec inet6 | \ ipsec_support inet | ipsec_support inet6 netipsec/key.c optional ipsec inet | ipsec inet6 | \ ipsec_support inet | ipsec_support inet6 netipsec/key_debug.c optional ipsec inet | ipsec inet6 | \ ipsec_support inet | ipsec_support inet6 netipsec/keysock.c optional ipsec inet | ipsec inet6 | \ ipsec_support inet | ipsec_support inet6 netipsec/subr_ipsec.c optional ipsec inet | ipsec inet6 | \ ipsec_support inet | ipsec_support inet6 netipsec/udpencap.c optional ipsec inet netipsec/xform_ah.c optional ipsec inet | ipsec inet6 netipsec/xform_esp.c optional ipsec inet | ipsec inet6 netipsec/xform_ipcomp.c optional ipsec inet | ipsec inet6 netipsec/xform_tcp.c optional ipsec inet tcp_signature | \ ipsec inet6 tcp_signature | ipsec_support inet tcp_signature | \ ipsec_support inet6 tcp_signature netlink/netlink_generic_kpi.c standard netlink/netlink_glue.c standard netlink/netlink_message_parser.c standard netlink/netlink_domain.c optional netlink netlink/netlink_generic.c optional netlink netlink/netlink_io.c optional netlink netlink/netlink_message_writer.c optional netlink netlink/netlink_module.c optional netlink netlink/netlink_route.c optional netlink netlink/route/iface_drivers.c optional netlink netlink/route/iface.c optional netlink netlink/route/neigh.c optional netlink netlink/route/nexthop.c optional netlink netlink/route/rt.c optional netlink netpfil/ipfw/dn_aqm_codel.c optional inet dummynet netpfil/ipfw/dn_aqm_pie.c optional inet dummynet netpfil/ipfw/dn_heap.c optional inet dummynet netpfil/ipfw/dn_sched_fifo.c optional inet dummynet netpfil/ipfw/dn_sched_fq_codel.c optional inet dummynet netpfil/ipfw/dn_sched_fq_pie.c optional inet dummynet netpfil/ipfw/dn_sched_prio.c optional inet dummynet netpfil/ipfw/dn_sched_qfq.c optional inet dummynet netpfil/ipfw/dn_sched_rr.c optional inet dummynet netpfil/ipfw/dn_sched_wf2q.c optional inet dummynet netpfil/ipfw/ip_dummynet.c optional inet dummynet netpfil/ipfw/ip_dn_io.c optional inet dummynet netpfil/ipfw/ip_dn_glue.c optional inet dummynet netpfil/ipfw/ip_fw2.c optional inet ipfirewall netpfil/ipfw/ip_fw_bpf.c optional inet ipfirewall netpfil/ipfw/ip_fw_dynamic.c optional inet ipfirewall \ compile-with "${NORMAL_C} -I$S/contrib/ck/include" netpfil/ipfw/ip_fw_eaction.c optional inet ipfirewall netpfil/ipfw/ip_fw_log.c optional inet ipfirewall netpfil/ipfw/ip_fw_pfil.c optional inet ipfirewall netpfil/ipfw/ip_fw_sockopt.c optional inet ipfirewall netpfil/ipfw/ip_fw_table.c optional inet ipfirewall netpfil/ipfw/ip_fw_table_algo.c optional inet ipfirewall netpfil/ipfw/ip_fw_table_value.c optional inet ipfirewall netpfil/ipfw/ip_fw_iface.c optional inet ipfirewall netpfil/ipfw/ip_fw_nat.c optional inet ipfirewall_nat netpfil/ipfw/nat64/ip_fw_nat64.c optional inet inet6 ipfirewall \ ipfirewall_nat64 netpfil/ipfw/nat64/nat64clat.c optional inet inet6 ipfirewall \ ipfirewall_nat64 netpfil/ipfw/nat64/nat64clat_control.c optional inet inet6 ipfirewall \ ipfirewall_nat64 netpfil/ipfw/nat64/nat64lsn.c optional inet inet6 ipfirewall \ ipfirewall_nat64 compile-with "${NORMAL_C} -I$S/contrib/ck/include" netpfil/ipfw/nat64/nat64lsn_control.c optional inet inet6 ipfirewall \ ipfirewall_nat64 compile-with "${NORMAL_C} -I$S/contrib/ck/include" netpfil/ipfw/nat64/nat64stl.c optional inet inet6 ipfirewall \ ipfirewall_nat64 netpfil/ipfw/nat64/nat64stl_control.c optional inet inet6 ipfirewall \ ipfirewall_nat64 netpfil/ipfw/nat64/nat64_translate.c optional inet inet6 ipfirewall \ ipfirewall_nat64 netpfil/ipfw/nptv6/ip_fw_nptv6.c optional inet inet6 ipfirewall \ ipfirewall_nptv6 netpfil/ipfw/nptv6/nptv6.c optional inet inet6 ipfirewall \ ipfirewall_nptv6 netpfil/ipfw/pmod/ip_fw_pmod.c optional inet ipfirewall_pmod netpfil/ipfw/pmod/tcpmod.c optional inet ipfirewall_pmod netpfil/pf/if_pflog.c optional pflog pf inet netpfil/pf/if_pfsync.c optional pfsync pf inet netpfil/pf/pf.c optional pf inet netpfil/pf/pf_if.c optional pf inet netpfil/pf/pf_ioctl.c optional pf inet netpfil/pf/pf_lb.c optional pf inet netpfil/pf/pf_norm.c optional pf inet netpfil/pf/pf_nv.c optional pf inet netpfil/pf/pf_osfp.c optional pf inet netpfil/pf/pf_ruleset.c optional pf inet netpfil/pf/pf_syncookies.c optional pf inet netpfil/pf/pf_table.c optional pf inet netpfil/pf/pfsync_nv.c optional pfsync pf inet netpfil/pf/in4_cksum.c optional pf inet netsmb/smb_conn.c optional netsmb netsmb/smb_crypt.c optional netsmb netsmb/smb_dev.c optional netsmb netsmb/smb_iod.c optional netsmb netsmb/smb_rq.c optional netsmb netsmb/smb_smb.c optional netsmb netsmb/smb_subr.c optional netsmb netsmb/smb_trantcp.c optional netsmb netsmb/smb_usr.c optional netsmb nfs/bootp_subr.c optional bootp nfscl nfs/krpc_subr.c optional bootp nfscl nfs/nfs_diskless.c optional nfscl nfs_root nfs/nfs_nfssvc.c optional nfscl | nfslockd | nfsd nlm/nlm_advlock.c optional nfslockd | nfsd nlm/nlm_prot_clnt.c optional nfslockd | nfsd nlm/nlm_prot_impl.c optional nfslockd | nfsd nlm/nlm_prot_server.c optional nfslockd | nfsd nlm/nlm_prot_svc.c optional nfslockd | nfsd nlm/nlm_prot_xdr.c optional nfslockd | nfsd nlm/sm_inter_xdr.c optional nfslockd | nfsd # Linux Kernel Programming Interface compat/linuxkpi/common/src/linux_80211.c optional compat_linuxkpi wlan \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_80211_macops.c optional compat_linuxkpi wlan \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_kmod.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_acpi.c optional compat_linuxkpi acpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_compat.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_current.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_devres.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_dmi.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_domain.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_firmware.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_fpu.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_hrtimer.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_i2c.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_i2cbb.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_interrupt.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_kthread.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_lock.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_mhi.c optional compat_linuxkpi wlan \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_netdev.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_page.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_pci.c optional compat_linuxkpi pci \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_tasklet.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_idr.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_radix.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_rcu.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C} -I$S/contrib/ck/include" compat/linuxkpi/common/src/linux_schedule.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_shmemfs.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_shrinker.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_skbuff.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_slab.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_usb.c optional compat_linuxkpi usb \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_work.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_xarray.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/lkpi_iic_if.m optional compat_linuxkpi compat/linuxkpi/common/src/linux_seq_file.c optional compat_linuxkpi | lindebugfs \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_simple_attr.c optional compat_linuxkpi | lindebugfs \ compile-with "${LINUXKPI_C}" compat/lindebugfs/lindebugfs.c optional lindebugfs \ compile-with "${LINUXKPI_C}" # OpenFabrics Enterprise Distribution (Infiniband) net/if_infiniband.c optional ofed | lagg ofed/drivers/infiniband/core/ib_addr.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_agent.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_cache.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_cm.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_cma.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_core_uverbs.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_cq.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_device.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_fmr_pool.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_iwcm.c optional ofed \ compile-with "${OFED_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" ofed/drivers/infiniband/core/ib_iwpm_msg.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_iwpm_util.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_mad.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_mad_rmpp.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_multicast.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_packer.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_rdma_core.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_sa_query.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_smi.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_sysfs.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_ucm.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_ucma.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_ud_header.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_umem.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_user_mad.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_cmd.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_ioctl.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_main.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_marshall.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_std_types.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_std_types_async_fd.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_std_types_counters.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_std_types_cq.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_std_types_device.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_std_types_dm.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_std_types_flow_action.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_std_types_mr.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_uverbs_uapi.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/core/ib_verbs.c optional ofed \ compile-with "${OFED_C}" ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c optional ipoib \ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/" #ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c optional ipoib \ # compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/" ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c optional ipoib \ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/" ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c optional ipoib \ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/" ofed/drivers/infiniband/ulp/ipoib/ipoib_multicast.c optional ipoib \ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/" ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c optional ipoib \ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/" #ofed/drivers/infiniband/ulp/ipoib/ipoib_vlan.c optional ipoib \ # compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/" ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c optional sdp inet \ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/sdp/" ofed/drivers/infiniband/ulp/sdp/sdp_main.c optional sdp inet \ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/sdp/" ofed/drivers/infiniband/ulp/sdp/sdp_rx.c optional sdp inet \ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/sdp/ ${NO_WUNUSED_BUT_SET_VARIABLE}" ofed/drivers/infiniband/ulp/sdp/sdp_cma.c optional sdp inet \ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/sdp/" ofed/drivers/infiniband/ulp/sdp/sdp_tx.c optional sdp inet \ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/sdp/ ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/irdma/icrdma.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_cm.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_ctrl.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_hmc.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_hw.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/icrdma_hw.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/fbsd_kcompat.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_kcompat.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_pble.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_puda.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_uda.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_uk.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_utils.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_verbs.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/irdma/irdma_ws.c optional irdma ice inet inet6 pci ofed \ compile-with "${OFED_C} -I$S/dev/ice/" dev/mthca/mthca_allocator.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_av.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_catas.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_cmd.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_cq.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_eq.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_mad.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_main.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_mcg.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_memfree.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_mr.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_pd.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_profile.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_provider.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_qp.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_reset.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_srq.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mthca/mthca_uar.c optional mthca pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_alias_GUID.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_mcg.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_sysfs.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_cm.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_ah.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_cq.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_doorbell.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_mad.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_main.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_mr.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_qp.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_srq.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_ib/mlx4_ib_wc.c optional mlx4ib pci ofed \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_alloc.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_catas.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_cmd.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_cq.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_eq.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_fw.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_fw_qos.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_icm.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_intf.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_main.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_mcg.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_mr.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_pd.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_port.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_profile.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_qp.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_reset.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_sense.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_srq.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_core/mlx4_resource_tracker.c optional mlx4 pci \ compile-with "${OFED_C}" dev/mlx4/mlx4_en/mlx4_en_cq.c optional mlx4en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx4/mlx4_en/mlx4_en_main.c optional mlx4en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx4/mlx4_en/mlx4_en_netdev.c optional mlx4en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx4/mlx4_en/mlx4_en_port.c optional mlx4en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx4/mlx4_en/mlx4_en_resources.c optional mlx4en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx4/mlx4_en/mlx4_en_rx.c optional mlx4en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx4/mlx4_en/mlx4_en_tx.c optional mlx4en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_ah.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_cong.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_cq.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_devx.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_doorbell.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_gsi.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_mad.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_main.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_mem.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_mr.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_qp.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_srq.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_ib/mlx5_ib_virt.c optional mlx5ib pci ofed \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_alloc.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_cmd.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_cq.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_diag_cnt.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_diagnostics.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_eq.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_eswitch.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_fs_cmd.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_fs_tcp.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_fs_tree.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_fw.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_fwdump.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_health.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_mad.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_main.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_mcg.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_mpfs.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_mr.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_pagealloc.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_pd.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_port.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_qp.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_rl.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_srq.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_tls.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_transobj.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_uar.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_vport.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_vsc.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_core/mlx5_wq.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_lib/mlx5_gid.c optional mlx5 pci \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_dim.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_ethtool.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_main.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_tx.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_flow_table.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_hw_tls.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_iq.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_rx.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_rl.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_txrx.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" dev/mlx5/mlx5_en/mlx5_en_port_buffer.c optional mlx5en pci inet inet6 \ compile-with "${OFED_C}" # crypto support opencrypto/cbc_mac.c optional crypto opencrypto/criov.c optional crypto opencrypto/crypto.c optional crypto opencrypto/cryptodev.c optional cryptodev opencrypto/cryptodev_if.m optional crypto opencrypto/cryptosoft.c optional crypto opencrypto/cryptodeflate.c optional crypto opencrypto/gmac.c optional crypto opencrypto/gfmult.c optional crypto opencrypto/ktls_ocf.c optional kern_tls opencrypto/rmd160.c optional crypto opencrypto/xform_aes_cbc.c optional crypto opencrypto/xform_aes_icm.c optional crypto opencrypto/xform_aes_xts.c optional crypto opencrypto/xform_cbc_mac.c optional crypto opencrypto/xform_chacha20_poly1305.c optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include -I$S/crypto/libsodium" opencrypto/xform_cml.c optional crypto opencrypto/xform_deflate.c optional crypto opencrypto/xform_gmac.c optional crypto opencrypto/xform_null.c optional crypto opencrypto/xform_poly1305.c optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include -I$S/crypto/libsodium" opencrypto/xform_rmd160.c optional crypto opencrypto/xform_sha1.c optional crypto opencrypto/xform_sha2.c optional crypto contrib/libsodium/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c \ optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium -Wno-unused-function" contrib/libsodium/src/libsodium/crypto_core/hchacha20/core_hchacha20.c \ optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c \ optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.c \ optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" contrib/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c \ optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" contrib/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c \ optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium -Wno-unused-function" contrib/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20.c \ optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" contrib/libsodium/src/libsodium/crypto_stream/chacha20/ref/chacha20_ref.c \ optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" contrib/libsodium/src/libsodium/crypto_verify/sodium/verify.c \ optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" crypto/libsodium/randombytes.c optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include -I$S/crypto/libsodium" crypto/libsodium/utils.c optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include -I$S/crypto/libsodium" rpc/auth_none.c optional krpc | nfslockd | nfscl | nfsd rpc/auth_unix.c optional krpc | nfslockd | nfscl | nfsd rpc/authunix_prot.c optional krpc | nfslockd | nfscl | nfsd rpc/clnt_bck.c optional krpc | nfslockd | nfscl | nfsd rpc/clnt_dg.c optional krpc | nfslockd | nfscl | nfsd rpc/clnt_rc.c optional krpc | nfslockd | nfscl | nfsd rpc/clnt_vc.c optional krpc | nfslockd | nfscl | nfsd rpc/getnetconfig.c optional krpc | nfslockd | nfscl | nfsd rpc/replay.c optional krpc | nfslockd | nfscl | nfsd rpc/rpc_callmsg.c optional krpc | nfslockd | nfscl | nfsd rpc/rpc_generic.c optional krpc | nfslockd | nfscl | nfsd rpc/rpc_prot.c optional krpc | nfslockd | nfscl | nfsd rpc/rpcb_clnt.c optional krpc | nfslockd | nfscl | nfsd rpc/rpcb_prot.c optional krpc | nfslockd | nfscl | nfsd rpc/svc.c optional krpc | nfslockd | nfscl | nfsd rpc/svc_auth.c optional krpc | nfslockd | nfscl | nfsd rpc/svc_auth_unix.c optional krpc | nfslockd | nfscl | nfsd rpc/svc_dg.c optional krpc | nfslockd | nfscl | nfsd rpc/svc_generic.c optional krpc | nfslockd | nfscl | nfsd rpc/svc_vc.c optional krpc | nfslockd | nfscl | nfsd # # Kernel RPC-over-TLS # rpctlscd.h optional krpc | nfslockd | nfscl | nfsd \ dependency "$S/rpc/rpcsec_tls/rpctlscd.x" \ compile-with "RPCGEN_CPP='${CPP}' rpcgen -hM $S/rpc/rpcsec_tls/rpctlscd.x | grep -v pthread.h > rpctlscd.h" \ no-obj no-implicit-rule before-depend local \ clean "rpctlscd.h" rpctlscd_xdr.c optional krpc | nfslockd | nfscl | nfsd \ dependency "$S/rpc/rpcsec_tls/rpctlscd.x rpctlscd.h" \ compile-with "RPCGEN_CPP='${CPP}' rpcgen -c $S/rpc/rpcsec_tls/rpctlscd.x -o rpctlscd_xdr.c" no-ctfconvert \ no-implicit-rule before-depend local \ clean "rpctlscd_xdr.c" rpctlscd_clnt.c optional krpc | nfslockd | nfscl | nfsd \ dependency "$S/rpc/rpcsec_tls/rpctlscd.x rpctlscd.h" \ compile-with "RPCGEN_CPP='${CPP}' rpcgen -lM $S/rpc/rpcsec_tls/rpctlscd.x | grep -v string.h > rpctlscd_clnt.c" no-ctfconvert \ no-implicit-rule before-depend local \ clean "rpctlscd_clnt.c" rpctlssd.h optional krpc | nfslockd | nfscl | nfsd \ dependency "$S/rpc/rpcsec_tls/rpctlssd.x" \ compile-with "RPCGEN_CPP='${CPP}' rpcgen -hM $S/rpc/rpcsec_tls/rpctlssd.x | grep -v pthread.h > rpctlssd.h" \ no-obj no-implicit-rule before-depend local \ clean "rpctlssd.h" rpctlssd_xdr.c optional krpc | nfslockd | nfscl | nfsd \ dependency "$S/rpc/rpcsec_tls/rpctlssd.x rpctlssd.h" \ compile-with "RPCGEN_CPP='${CPP}' rpcgen -c $S/rpc/rpcsec_tls/rpctlssd.x -o rpctlssd_xdr.c" no-ctfconvert \ no-implicit-rule before-depend local \ clean "rpctlssd_xdr.c" rpctlssd_clnt.c optional krpc | nfslockd | nfscl | nfsd \ dependency "$S/rpc/rpcsec_tls/rpctlssd.x rpctlssd.h" \ compile-with "RPCGEN_CPP='${CPP}' rpcgen -lM $S/rpc/rpcsec_tls/rpctlssd.x | grep -v string.h > rpctlssd_clnt.c" no-ctfconvert \ no-implicit-rule before-depend local \ clean "rpctlssd_clnt.c" rpc/rpcsec_tls/rpctls_impl.c optional krpc | nfslockd | nfscl | nfsd rpc/rpcsec_tls/auth_tls.c optional krpc | nfslockd | nfscl | nfsd rpc/rpcsec_gss/rpcsec_gss.c optional krpc kgssapi | nfslockd kgssapi | nfscl kgssapi | nfsd kgssapi rpc/rpcsec_gss/rpcsec_gss_conf.c optional krpc kgssapi | nfslockd kgssapi | nfscl kgssapi | nfsd kgssapi rpc/rpcsec_gss/rpcsec_gss_misc.c optional krpc kgssapi | nfslockd kgssapi | nfscl kgssapi | nfsd kgssapi rpc/rpcsec_gss/rpcsec_gss_prot.c optional krpc kgssapi | nfslockd kgssapi | nfscl kgssapi | nfsd kgssapi rpc/rpcsec_gss/svc_rpcsec_gss.c optional krpc kgssapi | nfslockd kgssapi | nfscl kgssapi | nfsd kgssapi security/audit/audit.c optional audit security/audit/audit_arg.c optional audit security/audit/audit_bsm.c optional audit security/audit/audit_bsm_db.c optional audit security/audit/audit_bsm_klib.c optional audit security/audit/audit_dtrace.c optional dtaudit audit | dtraceall audit compile-with "${CDDL_C}" security/audit/audit_pipe.c optional audit security/audit/audit_syscalls.c standard security/audit/audit_trigger.c optional audit security/audit/audit_worker.c optional audit security/audit/bsm_domain.c optional audit security/audit/bsm_errno.c optional audit security/audit/bsm_fcntl.c optional audit security/audit/bsm_socket_type.c optional audit security/audit/bsm_token.c optional audit security/mac/mac_audit.c optional mac audit security/mac/mac_cred.c optional mac security/mac/mac_kdb.c optional mac security/mac/mac_framework.c optional mac security/mac/mac_inet.c optional mac inet | mac inet6 security/mac/mac_inet6.c optional mac inet6 security/mac/mac_label.c optional mac security/mac/mac_net.c optional mac security/mac/mac_pipe.c optional mac security/mac/mac_posix_sem.c optional mac security/mac/mac_posix_shm.c optional mac security/mac/mac_priv.c optional mac security/mac/mac_process.c optional mac security/mac/mac_socket.c optional mac security/mac/mac_syscalls.c standard security/mac/mac_system.c optional mac security/mac/mac_sysv_msg.c optional mac security/mac/mac_sysv_sem.c optional mac security/mac/mac_sysv_shm.c optional mac security/mac/mac_vfs.c optional mac security/mac_biba/mac_biba.c optional mac_biba security/mac_ddb/mac_ddb.c optional mac_ddb security/mac_bsdextended/mac_bsdextended.c optional mac_bsdextended security/mac_bsdextended/ugidfw_system.c optional mac_bsdextended security/mac_bsdextended/ugidfw_vnode.c optional mac_bsdextended security/mac_ifoff/mac_ifoff.c optional mac_ifoff security/mac_ipacl/mac_ipacl.c optional mac_ipacl security/mac_lomac/mac_lomac.c optional mac_lomac security/mac_mls/mac_mls.c optional mac_mls security/mac_none/mac_none.c optional mac_none security/mac_ntpd/mac_ntpd.c optional mac_ntpd security/mac_partition/mac_partition.c optional mac_partition security/mac_portacl/mac_portacl.c optional mac_portacl security/mac_priority/mac_priority.c optional mac_priority security/mac_seeotheruids/mac_seeotheruids.c optional mac_seeotheruids security/mac_stub/mac_stub.c optional mac_stub security/mac_test/mac_test.c optional mac_test security/mac_veriexec/mac_veriexec.c optional mac_veriexec security/mac_veriexec/veriexec_fingerprint.c optional mac_veriexec security/mac_veriexec/veriexec_metadata.c optional mac_veriexec security/mac_veriexec_parser/mac_veriexec_parser.c optional mac_veriexec mac_veriexec_parser security/mac_veriexec/mac_veriexec_rmd160.c optional mac_veriexec_rmd160 security/mac_veriexec/mac_veriexec_sha1.c optional mac_veriexec_sha1 security/mac_veriexec/mac_veriexec_sha256.c optional mac_veriexec_sha256 security/mac_veriexec/mac_veriexec_sha384.c optional mac_veriexec_sha384 security/mac_veriexec/mac_veriexec_sha512.c optional mac_veriexec_sha512 teken/teken.c optional sc !SC_NO_TERM_TEKEN | vt ufs/ffs/ffs_alloc.c optional ffs ufs/ffs/ffs_balloc.c optional ffs ufs/ffs/ffs_inode.c optional ffs ufs/ffs/ffs_snapshot.c optional ffs ufs/ffs/ffs_softdep.c optional ffs ufs/ffs/ffs_subr.c optional ffs | geom_label ufs/ffs/ffs_tables.c optional ffs | geom_label ufs/ffs/ffs_vfsops.c optional ffs ufs/ffs/ffs_vnops.c optional ffs ufs/ffs/ffs_rawread.c optional ffs directio ufs/ffs/ffs_suspend.c optional ffs ufs/ufs/ufs_acl.c optional ffs ufs/ufs/ufs_bmap.c optional ffs ufs/ufs/ufs_dirhash.c optional ffs ufs/ufs/ufs_extattr.c optional ffs ufs/ufs/ufs_gjournal.c optional ffs UFS_GJOURNAL ufs/ufs/ufs_inode.c optional ffs ufs/ufs/ufs_lookup.c optional ffs ufs/ufs/ufs_quota.c optional ffs ufs/ufs/ufs_vfsops.c optional ffs ufs/ufs/ufs_vnops.c optional ffs vm/device_pager.c standard vm/phys_pager.c standard vm/redzone.c optional DEBUG_REDZONE vm/sg_pager.c standard vm/swap_pager.c standard vm/uma_core.c standard vm/uma_dbg.c standard vm/memguard.c optional DEBUG_MEMGUARD vm/vm_domainset.c standard vm/vm_fault.c standard vm/vm_glue.c standard vm/vm_init.c standard vm/vm_kern.c standard vm/vm_map.c standard vm/vm_meter.c standard vm/vm_mmap.c standard vm/vm_object.c standard vm/vm_page.c standard vm/vm_pageout.c standard vm/vm_pager.c standard vm/vm_phys.c standard vm/vm_radix.c standard vm/vm_reserv.c standard vm/vm_swapout.c optional !NO_SWAPPING vm/vm_swapout_dummy.c optional NO_SWAPPING vm/vm_unix.c standard vm/vnode_pager.c standard xen/features.c optional xenhvm xen/xen_common.c optional xenhvm xen/xenbus/xenbus_if.m optional xenhvm xen/xenbus/xenbus.c optional xenhvm xen/xenbus/xenbusb_if.m optional xenhvm xen/xenbus/xenbusb.c optional xenhvm xen/xenbus/xenbusb_front.c optional xenhvm xen/xenbus/xenbusb_back.c optional xenhvm xen/xenmem/xenmem_if.m optional xenhvm xdr/xdr.c optional xdr | krpc | nfslockd | nfscl | nfsd xdr/xdr_array.c optional xdr | krpc | nfslockd | nfscl | nfsd xdr/xdr_mbuf.c optional xdr | krpc | nfslockd | nfscl | nfsd xdr/xdr_mem.c optional xdr | krpc | nfslockd | nfscl | nfsd xdr/xdr_reference.c optional xdr | krpc | nfslockd | nfscl | nfsd xdr/xdr_sizeof.c optional xdr | krpc | nfslockd | nfscl | nfsd diff --git a/sys/conf/files.amd64 b/sys/conf/files.amd64 index 77fdf2ca411f..5ad0447f847d 100644 --- a/sys/conf/files.amd64 +++ b/sys/conf/files.amd64 @@ -1,476 +1,475 @@ # This file tells config what files go into building a kernel, # files marked standard are always included. # -# $FreeBSD$ # # common files stuff between i386 and amd64 include "conf/files.x86" # The long compile-with and dependency lines are required because of # limitations in config: backslash-newline doesn't work in strings, and # dependency lines other than the first are silently ignored. # # elf-vdso.so.o standard \ dependency "$S/amd64/amd64/sigtramp.S assym.inc $S/conf/vdso_amd64.ldscript $S/tools/amd64_vdso.sh" \ compile-with "env AWK='${AWK}' NM='${NM}' LD='${LD}' CC='${CC}' DEBUG='${DEBUG}' OBJCOPY='${OBJCOPY}' ELFDUMP='${ELFDUMP}' S='${S}' sh $S/tools/amd64_vdso.sh" \ no-implicit-rule before-depend \ clean "elf-vdso.so.o elf-vdso.so.1 vdso_offsets.h sigtramp.pico" # elf-vdso32.so.o optional compat_freebsd32 \ dependency "$S/amd64/ia32/ia32_sigtramp.S ia32_assym.h $S/conf/vdso_amd64_ia32.ldscript $S/tools/amd64_ia32_vdso.sh" \ compile-with "env AWK='${AWK}' NM='${NM}' LD='${LD}' CC='${CC}' DEBUG='${DEBUG}' OBJCOPY='${OBJCOPY}' ELFDUMP='${ELFDUMP}' S='${S}' sh $S/tools/amd64_ia32_vdso.sh" \ no-implicit-rule before-depend \ clean "elf-vdso32.so.o elf-vdso32.so.1 vdso_ia32_offsets.h ia32_sigtramp.pico" # ia32_genassym.o standard \ dependency "$S/compat/ia32/ia32_genassym.c offset.inc" \ compile-with "${CC} ${CFLAGS:N-flto:N-fno-common} -fcommon -c ${.IMPSRC}" \ no-obj no-implicit-rule \ clean "ia32_genassym.o" # ia32_assym.h standard \ dependency "$S/kern/genassym.sh ia32_genassym.o" \ compile-with "env NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genassym.sh ia32_genassym.o > ${.TARGET}" \ no-obj no-implicit-rule before-depend \ clean "ia32_assym.h" # amd64/acpica/acpi_machdep.c optional acpi amd64/acpica/acpi_wakeup.c optional acpi acpi_wakecode.o optional acpi \ dependency "$S/amd64/acpica/acpi_wakecode.S assym.inc" \ compile-with "${NORMAL_S}" \ no-obj no-implicit-rule before-depend \ clean "acpi_wakecode.o" acpi_wakecode.bin optional acpi \ dependency "acpi_wakecode.o" \ compile-with "${OBJCOPY} -S -O binary acpi_wakecode.o ${.TARGET}" \ no-obj no-implicit-rule before-depend \ clean "acpi_wakecode.bin" acpi_wakecode.h optional acpi \ dependency "acpi_wakecode.bin" \ compile-with "file2c -sx 'static char wakecode[] = {' '};' < acpi_wakecode.bin > ${.TARGET}" \ no-obj no-implicit-rule before-depend \ clean "acpi_wakecode.h" acpi_wakedata.h optional acpi \ dependency "acpi_wakecode.o" \ compile-with '${NM} -n --defined-only acpi_wakecode.o | while read offset dummy what; do echo "#define $${what} 0x$${offset}"; done > ${.TARGET}' \ no-obj no-implicit-rule before-depend \ clean "acpi_wakedata.h" # #amd64/amd64/apic_vector.S standard amd64/amd64/bios.c standard amd64/amd64/bpf_jit_machdep.c optional bpf_jitter amd64/amd64/copyout.c standard amd64/amd64/cpu_switch.S standard amd64/amd64/db_disasm.c optional ddb amd64/amd64/db_interface.c optional ddb amd64/amd64/db_trace.c optional ddb amd64/amd64/efirt_machdep.c optional efirt amd64/amd64/efirt_support.S optional efirt amd64/amd64/elf_machdep.c standard amd64/amd64/exception.S standard amd64/amd64/exec_machdep.c standard amd64/amd64/fpu.c standard amd64/amd64/gdb_machdep.c optional gdb amd64/amd64/initcpu.c standard amd64/amd64/io.c optional io amd64/amd64/locore.S standard no-obj amd64/amd64/xen-locore.S optional xenhvm \ compile-with "${NORMAL_S} -g0" \ no-ctfconvert amd64/amd64/machdep.c standard amd64/amd64/mem.c optional mem amd64/amd64/minidump_machdep.c standard amd64/amd64/mp_machdep.c optional smp amd64/amd64/mpboot.S optional smp amd64/amd64/pmap.c standard amd64/amd64/ptrace_machdep.c standard amd64/amd64/support.S standard amd64/amd64/sys_machdep.c standard amd64/amd64/trap.c standard amd64/amd64/uio_machdep.c standard amd64/amd64/uma_machdep.c standard amd64/amd64/vm_machdep.c standard amd64/pci/pci_cfgreg.c optional pci cddl/dev/dtrace/amd64/dtrace_asm.S optional dtrace compile-with "${DTRACE_S}" cddl/dev/dtrace/amd64/dtrace_subr.c optional dtrace compile-with "${DTRACE_C}" crypto/aesni/aeskeys_amd64.S optional aesni crypto/des/des_enc.c optional netsmb crypto/openssl/amd64/aes-gcm-avx512.S optional ossl crypto/openssl/amd64/aesni-x86_64.S optional ossl crypto/openssl/amd64/aesni-gcm-x86_64.S optional ossl crypto/openssl/amd64/chacha-x86_64.S optional ossl crypto/openssl/amd64/ghash-x86_64.S optional ossl crypto/openssl/amd64/poly1305-x86_64.S optional ossl crypto/openssl/amd64/sha1-x86_64.S optional ossl crypto/openssl/amd64/sha256-x86_64.S optional ossl crypto/openssl/amd64/sha512-x86_64.S optional ossl crypto/openssl/amd64/ossl_aes_gcm.c optional ossl dev/acpi_support/acpi_wmi_if.m standard dev/agp/agp_amd64.c optional agp dev/agp/agp_i810.c optional agp dev/agp/agp_via.c optional agp dev/amdgpio/amdgpio.c optional amdgpio dev/axgbe/if_axgbe_pci.c optional axp dev/axgbe/xgbe-desc.c optional axp dev/axgbe/xgbe-dev.c optional axp dev/axgbe/xgbe-drv.c optional axp dev/axgbe/xgbe-mdio.c optional axp dev/axgbe/xgbe-sysctl.c optional axp dev/axgbe/xgbe-txrx.c optional axp dev/axgbe/xgbe_osdep.c optional axp dev/axgbe/xgbe-i2c.c optional axp dev/axgbe/xgbe-phy-v2.c optional axp dev/enic/enic_res.c optional enic dev/enic/enic_txrx.c optional enic dev/enic/if_enic.c optional enic dev/enic/vnic_cq.c optional enic dev/enic/vnic_dev.c optional enic dev/enic/vnic_intr.c optional enic dev/enic/vnic_rq.c optional enic dev/enic/vnic_wq.c optional enic dev/ftgpio/ftgpio.c optional ftgpio superio dev/hyperv/vmbus/amd64/hyperv_machdep.c optional hyperv dev/hyperv/vmbus/amd64/vmbus_vector.S optional hyperv dev/iavf/if_iavf_iflib.c optional iavf pci \ compile-with "${NORMAL_C} -I$S/dev/iavf" dev/iavf/iavf_lib.c optional iavf pci \ compile-with "${NORMAL_C} -I$S/dev/iavf" dev/iavf/iavf_osdep.c optional iavf pci \ compile-with "${NORMAL_C} -I$S/dev/iavf" dev/iavf/iavf_txrx_iflib.c optional iavf pci \ compile-with "${NORMAL_C} -I$S/dev/iavf" dev/iavf/iavf_common.c optional iavf pci \ compile-with "${NORMAL_C} -I$S/dev/iavf" dev/iavf/iavf_adminq.c optional iavf pci \ compile-with "${NORMAL_C} -I$S/dev/iavf" dev/iavf/iavf_vc_common.c optional iavf pci \ compile-with "${NORMAL_C} -I$S/dev/iavf" dev/iavf/iavf_vc_iflib.c optional iavf pci \ compile-with "${NORMAL_C} -I$S/dev/iavf" dev/ice/if_ice_iflib.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_lib.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_osdep.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_resmgr.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_strings.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_iflib_recovery_txrx.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_iflib_txrx.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_common.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_controlq.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_dcb.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_flex_pipe.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_flow.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_nvm.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_sched.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_switch.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_vlan_mode.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_fw_logging.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_fwlog.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_rdma.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/irdma_if.m optional ice pci \ compile-with "${NORMAL_M} -I$S/dev/ice" dev/ice/irdma_di_if.m optional ice pci \ compile-with "${NORMAL_M} -I$S/dev/ice" dev/ice/ice_ddp_common.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" ice_ddp.c optional ice_ddp \ compile-with "${AWK} -f $S/tools/fw_stub.awk ice_ddp.fw:ice_ddp:0x01031e00 -mice_ddp -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "ice_ddp.c" ice_ddp.fwo optional ice_ddp \ dependency "ice_ddp.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "ice_ddp.fwo" ice_ddp.fw optional ice_ddp \ dependency "$S/contrib/dev/ice/ice-1.3.30.0.pkg" \ compile-with "${CP} $S/contrib/dev/ice/ice-1.3.30.0.pkg ice_ddp.fw" \ no-obj no-implicit-rule \ clean "ice_ddp.fw" dev/ioat/ioat.c optional ioat pci dev/ioat/ioat_test.c optional ioat pci dev/ixl/if_ixl.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_pf_main.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_pf_iflib.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_pf_qmgr.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_pf_iov.c optional ixl pci pci_iov \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_pf_i2c.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_txrx.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_osdep.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_lan_hmc.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_hmc.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_common.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_nvm.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_adminq.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_dcb.c optional ixl pci \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/nctgpio/nctgpio.c optional nctgpio dev/ncthwm/ncthwm.c optional ncthwm superio dev/nfe/if_nfe.c optional nfe pci dev/ntb/if_ntb/if_ntb.c optional if_ntb dev/ntb/ntb_transport.c optional ntb_transport | if_ntb dev/ntb/ntb.c optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw dev/ntb/ntb_if.m optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw dev/ntb/ntb_hw/ntb_hw_amd.c optional ntb_hw_amd | ntb_hw dev/ntb/ntb_hw/ntb_hw_intel.c optional ntb_hw_intel | ntb_hw dev/ntb/ntb_hw/ntb_hw_plx.c optional ntb_hw_plx | ntb_hw dev/ntb/test/ntb_tool.c optional ntb_tool dev/nvram/nvram.c optional nvram isa dev/random/ivy.c optional rdrand_rng !random_loadable dev/random/nehemiah.c optional padlock_rng !random_loadable dev/qlxge/qls_dbg.c optional qlxge pci dev/qlxge/qls_dump.c optional qlxge pci dev/qlxge/qls_hw.c optional qlxge pci dev/qlxge/qls_ioctl.c optional qlxge pci dev/qlxge/qls_isr.c optional qlxge pci dev/qlxge/qls_os.c optional qlxge pci dev/qlxgb/qla_dbg.c optional qlxgb pci dev/qlxgb/qla_hw.c optional qlxgb pci dev/qlxgb/qla_ioctl.c optional qlxgb pci dev/qlxgb/qla_isr.c optional qlxgb pci dev/qlxgb/qla_misc.c optional qlxgb pci dev/qlxgb/qla_os.c optional qlxgb pci dev/qlxgbe/ql_dbg.c optional qlxgbe pci dev/qlxgbe/ql_hw.c optional qlxgbe pci dev/qlxgbe/ql_ioctl.c optional qlxgbe pci dev/qlxgbe/ql_isr.c optional qlxgbe pci dev/qlxgbe/ql_misc.c optional qlxgbe pci dev/qlxgbe/ql_os.c optional qlxgbe pci dev/qlxgbe/ql_reset.c optional qlxgbe pci dev/qlxgbe/ql_fw.c optional qlxgbe pci dev/qlxgbe/ql_boot.c optional qlxgbe pci dev/qlxgbe/ql_minidump.c optional qlxgbe pci dev/qlnx/qlnxe/ecore_cxt.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_dbg_fw_funcs.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_dcbx.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_dev.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_hw.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_init_fw_funcs.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_init_ops.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_int.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_l2.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_mcp.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_sp_commands.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_spq.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_sriov.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_vf.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_ll2.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_iwarp.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_rdma.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_roce.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/ecore_ooo.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/qlnx_rdma.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/qlnx_ioctl.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/qlnx/qlnxe/qlnx_os.c optional qlnxe pci \ compile-with "${LINUXKPI_C}" dev/sfxge/common/ef10_ev.c optional sfxge pci dev/sfxge/common/ef10_filter.c optional sfxge pci dev/sfxge/common/ef10_image.c optional sfxge pci dev/sfxge/common/ef10_intr.c optional sfxge pci dev/sfxge/common/ef10_mac.c optional sfxge pci dev/sfxge/common/ef10_mcdi.c optional sfxge pci dev/sfxge/common/ef10_nic.c optional sfxge pci dev/sfxge/common/ef10_nvram.c optional sfxge pci dev/sfxge/common/ef10_phy.c optional sfxge pci dev/sfxge/common/ef10_rx.c optional sfxge pci dev/sfxge/common/ef10_tx.c optional sfxge pci dev/sfxge/common/ef10_vpd.c optional sfxge pci dev/sfxge/common/efx_bootcfg.c optional sfxge pci dev/sfxge/common/efx_crc32.c optional sfxge pci dev/sfxge/common/efx_ev.c optional sfxge pci dev/sfxge/common/efx_filter.c optional sfxge pci dev/sfxge/common/efx_hash.c optional sfxge pci dev/sfxge/common/efx_intr.c optional sfxge pci dev/sfxge/common/efx_lic.c optional sfxge pci dev/sfxge/common/efx_mac.c optional sfxge pci dev/sfxge/common/efx_mcdi.c optional sfxge pci dev/sfxge/common/efx_mon.c optional sfxge pci dev/sfxge/common/efx_nic.c optional sfxge pci dev/sfxge/common/efx_nvram.c optional sfxge pci dev/sfxge/common/efx_phy.c optional sfxge pci dev/sfxge/common/efx_port.c optional sfxge pci dev/sfxge/common/efx_rx.c optional sfxge pci dev/sfxge/common/efx_sram.c optional sfxge pci dev/sfxge/common/efx_tunnel.c optional sfxge pci dev/sfxge/common/efx_tx.c optional sfxge pci dev/sfxge/common/efx_vpd.c optional sfxge pci dev/sfxge/common/hunt_nic.c optional sfxge pci dev/sfxge/common/mcdi_mon.c optional sfxge pci dev/sfxge/common/medford_nic.c optional sfxge pci dev/sfxge/common/medford2_nic.c optional sfxge pci dev/sfxge/common/siena_mac.c optional sfxge pci dev/sfxge/common/siena_mcdi.c optional sfxge pci dev/sfxge/common/siena_nic.c optional sfxge pci dev/sfxge/common/siena_nvram.c optional sfxge pci dev/sfxge/common/siena_phy.c optional sfxge pci dev/sfxge/common/siena_sram.c optional sfxge pci dev/sfxge/common/siena_vpd.c optional sfxge pci dev/sfxge/sfxge.c optional sfxge pci dev/sfxge/sfxge_dma.c optional sfxge pci dev/sfxge/sfxge_ev.c optional sfxge pci dev/sfxge/sfxge_intr.c optional sfxge pci dev/sfxge/sfxge_mcdi.c optional sfxge pci dev/sfxge/sfxge_nvram.c optional sfxge pci dev/sfxge/sfxge_port.c optional sfxge pci dev/sfxge/sfxge_rx.c optional sfxge pci dev/sfxge/sfxge_tx.c optional sfxge pci dev/smartpqi/smartpqi_cam.c optional smartpqi dev/smartpqi/smartpqi_cmd.c optional smartpqi dev/smartpqi/smartpqi_discovery.c optional smartpqi dev/smartpqi/smartpqi_event.c optional smartpqi dev/smartpqi/smartpqi_helper.c optional smartpqi dev/smartpqi/smartpqi_init.c optional smartpqi dev/smartpqi/smartpqi_intr.c optional smartpqi dev/smartpqi/smartpqi_ioctl.c optional smartpqi dev/smartpqi/smartpqi_main.c optional smartpqi dev/smartpqi/smartpqi_mem.c optional smartpqi dev/smartpqi/smartpqi_misc.c optional smartpqi dev/smartpqi/smartpqi_queue.c optional smartpqi dev/smartpqi/smartpqi_request.c optional smartpqi dev/smartpqi/smartpqi_response.c optional smartpqi dev/smartpqi/smartpqi_sis.c optional smartpqi dev/smartpqi/smartpqi_tag.c optional smartpqi dev/speaker/spkr.c optional speaker dev/sume/if_sume.c optional sume dev/superio/superio.c optional superio isa dev/syscons/apm/apm_saver.c optional apm_saver apm dev/syscons/scvesactl.c optional sc vga vesa dev/syscons/scvgarndr.c optional sc vga dev/tpm/tpm.c optional tpm dev/tpm/tpm20.c optional tpm dev/tpm/tpm_crb.c optional tpm acpi dev/tpm/tpm_tis.c optional tpm acpi dev/tpm/tpm_acpi.c optional tpm acpi dev/tpm/tpm_isa.c optional tpm isa dev/uart/uart_cpu_x86.c optional uart dev/viawd/viawd.c optional viawd dev/vmd/vmd.c optional vmd | vmd_bus dev/wbwd/wbwd.c optional wbwd dev/wdatwd/wdatwd.c optional wdatwd dev/p2sb/p2sb.c optional p2sb pci dev/p2sb/lewisburg_gpiocm.c optional lbggpiocm p2sb dev/p2sb/lewisburg_gpio.c optional lbggpio lbggpiocm isa/syscons_isa.c optional sc isa/vga_isa.c optional vga kern/imgact_aout.c optional compat_aout kern/link_elf_obj.c standard # # IA32 binary support # #amd64/ia32/ia32_exception.S optional compat_freebsd32 amd64/ia32/ia32_reg.c optional compat_freebsd32 amd64/ia32/ia32_signal.c optional compat_freebsd32 amd64/ia32/ia32_syscall.c optional compat_freebsd32 amd64/ia32/ia32_misc.c optional compat_freebsd32 compat/ia32/ia32_sysvec.c optional compat_freebsd32 # # x86 real mode BIOS emulator, required by dpms/pci/vesa # compat/x86bios/x86bios.c optional x86bios | dpms | pci | vesa contrib/x86emu/x86emu.c optional x86bios | dpms | pci | vesa # Common files where we currently configure the system differently, but perhaps shouldn't # config(8) doesn't have a way to force standard options, so we've been inconsistent # about marking non-optional things 'standard'. x86/acpica/madt.c optional acpi x86/isa/atpic.c optional atpic isa x86/isa/elcr.c optional atpic isa | mptable x86/isa/isa.c standard x86/isa/isa_dma.c standard x86/pci/pci_early_quirks.c optional pci x86/x86/io_apic.c standard x86/x86/local_apic.c standard x86/x86/mptable.c optional mptable x86/x86/mptable_pci.c optional mptable pci x86/x86/msi.c optional pci x86/xen/pv.c optional xenhvm # zfs blake3 hash support contrib/openzfs/module/icp/asm-x86_64/blake3/blake3_avx2.S optional zfs compile-with "${ZFS_S}" contrib/openzfs/module/icp/asm-x86_64/blake3/blake3_avx512.S optional zfs compile-with "${ZFS_S}" contrib/openzfs/module/icp/asm-x86_64/blake3/blake3_sse2.S optional zfs compile-with "${ZFS_S}" contrib/openzfs/module/icp/asm-x86_64/blake3/blake3_sse41.S optional zfs compile-with "${ZFS_S}" # zfs sha2 hash support zfs-sha256-x86_64.o optional zfs \ dependency "$S/contrib/openzfs/module/icp/asm-x86_64/sha2/sha256-x86_64.S" \ compile-with "${CC} -c ${ZFS_ASM_CFLAGS} -o ${.TARGET} ${WERROR} $S/contrib/openzfs/module/icp/asm-x86_64/sha2/sha256-x86_64.S" \ no-implicit-rule \ clean "zfs-sha256-x86_64.o" zfs-sha512-x86_64.o optional zfs \ dependency "$S/contrib/openzfs/module/icp/asm-x86_64/sha2/sha512-x86_64.S" \ compile-with "${CC} -c ${ZFS_ASM_CFLAGS} -o ${.TARGET} ${WERROR} $S/contrib/openzfs/module/icp/asm-x86_64/sha2/sha512-x86_64.S" \ no-implicit-rule \ clean "zfs-sha512-x86_64.o" # zfs checksums / zcommon contrib/openzfs/module/zcommon/zfs_fletcher_avx512.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zfs_fletcher_intel.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zcommon/zfs_fletcher_sse.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_raidz_math_avx2.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_raidz_math_avx512bw.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_raidz_math_avx512f.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_raidz_math_sse2.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/vdev_raidz_math_ssse3.c optional zfs compile-with "${ZFS_C}" # Clock calibration subroutine; uses floating-point arithmetic subr_clockcalib.o standard \ dependency "$S/kern/subr_clockcalib.c" \ compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} -mmmx -msse -msse2 ${.IMPSRC}" \ no-implicit-rule \ clean "subr_clockcalib.o" diff --git a/sys/conf/files.arm b/sys/conf/files.arm index 60cc5a5a0114..3dc48e20b168 100644 --- a/sys/conf/files.arm +++ b/sys/conf/files.arm @@ -1,144 +1,143 @@ -# $FreeBSD$ arm/arm/autoconf.c standard arm/arm/bcopy_page.S standard arm/arm/bcopyinout.S standard arm/arm/blockio.S standard arm/arm/bus_space_asm_generic.S standard arm/arm/bus_space_base.c optional fdt arm/arm/bus_space_generic.c standard arm/arm/busdma_machdep.c standard arm/arm/copystr.S standard arm/arm/cpufunc.c standard arm/arm/cpufunc_asm.S standard arm/arm/cpufunc_asm_arm11x6.S optional cpu_arm1176 arm/arm/cpufunc_asm_armv7.S optional cpu_cortexa | cpu_krait | cpu_mv_pj4b arm/arm/cpufunc_asm_pj4b.S optional cpu_mv_pj4b arm/arm/cpuinfo.c standard arm/arm/cpu_asm-v6.S standard arm/arm/db_disasm.c optional ddb arm/arm/db_interface.c optional ddb arm/arm/db_trace.c optional ddb arm/arm/debug_monitor.c optional ddb | gdb arm/arm/disassem.c optional ddb arm/arm/dump_machdep.c standard arm/arm/elf_machdep.c standard arm/arm/elf_note.S standard arm/arm/exception.S standard arm/arm/exec_machdep.c standard arm/arm/fiq.c standard arm/arm/fiq_subr.S standard arm/arm/fusu.S standard arm/arm/gdb_machdep.c optional gdb arm/arm/generic_timer.c optional generic_timer arm/arm/gic.c optional gic arm/arm/gic_fdt.c optional gic fdt arm/arm/gic_if.m optional gic arm/arm/identcpu-v6.c standard arm/arm/in_cksum_arm.S optional inet | inet6 arm/arm/in_cksum_machdep.c optional inet | inet6 kern/subr_intr.c standard arm/arm/locore.S standard no-obj arm/arm/hypervisor-stub.S standard arm/arm/machdep.c standard arm/arm/machdep_boot.c standard arm/arm/machdep_kdb.c standard arm/arm/machdep_intr.c standard arm/arm/machdep_ptrace.c standard arm/arm/mem.c optional mem arm/arm/minidump_machdep.c standard arm/arm/mp_machdep.c optional smp arm/arm/mpcore_timer.c optional mpcore_timer arm/arm/nexus.c standard arm/arm/ofw_machdep.c optional fdt arm/arm/pl190.c optional pl190 arm/arm/pl310.c optional pl310 arm/arm/platform.c optional platform arm/arm/platform_if.m optional platform arm/arm/platform_pl310_if.m optional platform pl310 arm/arm/pmap-v6.c standard arm/arm/pmu.c optional pmu | hwpmc arm/arm/pmu_fdt.c optional fdt pmu | fdt hwpmc arm/arm/ptrace_machdep.c standard arm/arm/sc_machdep.c optional sc arm/arm/setcpsr.S standard arm/arm/setstack.S standard arm/arm/stack_machdep.c optional ddb | stack arm/arm/stdatomic.c standard \ compile-with "${NORMAL_C:N-Wmissing-prototypes}" arm/arm/support.S standard arm/arm/swtch.S standard arm/arm/swtch-v6.S standard arm/arm/sys_machdep.c standard arm/arm/syscall.c standard arm/arm/trap-v6.c standard arm/arm/uio_machdep.c standard arm/arm/undefined.c standard arm/arm/unwind.c optional ddb | kdtrace_hooks | stack arm/arm/vm_machdep.c standard arm/arm/vfp.c standard cddl/dev/dtrace/arm/dtrace_asm.S optional dtrace compile-with "${DTRACE_S}" cddl/dev/dtrace/arm/dtrace_subr.c optional dtrace compile-with "${DTRACE_C}" cddl/dev/fbt/arm/fbt_isa.c optional dtrace_fbt | dtraceall compile-with "${FBT_C}" # zfs sha2 hash support contrib/openzfs/module/icp/asm-arm/sha2/sha256-armv7.S optional zfs compile-with "${ZFS_S}" contrib/openzfs/module/icp/asm-arm/sha2/sha512-armv7.S optional zfs compile-with "${ZFS_S}" crypto/des/des_enc.c optional netsmb dev/cpufreq/cpufreq_dt.c optional cpufreq fdt dev/dwc/if_dwc.c optional dwc dev/dwc/if_dwc_if.m optional dwc dev/fb/fb.c optional sc dev/fdt/fdt_arm_platform.c optional platform fdt dev/video/crtc_if.m optional vt dev/hwpmc/hwpmc_arm.c optional hwpmc dev/hwpmc/hwpmc_armv7.c optional hwpmc dev/iicbus/twsi/twsi.c optional twsi dev/ofw/ofw_pcib.c optional fdt pci dev/pci/pci_host_generic.c optional pci_host_generic pci dev/pci/pci_host_generic_fdt.c optional pci_host_generic pci fdt dev/psci/psci.c optional psci dev/psci/smccc_arm.S optional psci dev/syscons/scgfbrndr.c optional sc dev/uart/uart_cpu_fdt.c optional uart fdt dev/usb/controller/dwc3.c optional fdt dwc3 dev/usb/controller/generic_xhci.c optional xhci dev/usb/controller/generic_xhci_fdt.c optional xhci fdt kern/msi_if.m optional intrng kern/pic_if.m optional intrng kern/subr_busdma_bufalloc.c standard kern/subr_devmap.c standard kern/subr_physmem.c standard kern/subr_sfbuf.c standard libkern/arm/aeabi_unwind.c standard libkern/arm/divsi3.S standard libkern/arm/ldivmod.S standard libkern/arm/ldivmod_helper.c standard libkern/arm/memclr.S standard libkern/arm/memcpy.S standard libkern/arm/memset.S standard libkern/arm/muldi3.c standard libkern/ashldi3.c standard libkern/ashrdi3.c standard libkern/divdi3.c standard libkern/lshrdi3.c standard libkern/moddi3.c standard libkern/qdivrem.c standard libkern/strcmp.c standard libkern/strlen.c standard libkern/strncmp.c standard libkern/ucmpdi2.c standard libkern/udivdi3.c standard libkern/umoddi3.c standard # Annapurna support arm/annapurna/alpine/alpine_ccu.c optional al_ccu fdt arm/annapurna/alpine/alpine_nb_service.c optional al_nb_service fdt arm/annapurna/alpine/alpine_pci.c optional al_pci fdt arm/annapurna/alpine/alpine_pci_msix.c optional al_pci fdt arm/annapurna/alpine/alpine_serdes.c optional al_serdes fdt \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" diff --git a/sys/conf/files.arm64 b/sys/conf/files.arm64 index 0d3c43af0c00..61f1cbf75982 100644 --- a/sys/conf/files.arm64 +++ b/sys/conf/files.arm64 @@ -1,697 +1,696 @@ -# $FreeBSD$ ## ## Kernel ## kern/msi_if.m optional intrng kern/pic_if.m optional intrng kern/subr_devmap.c standard kern/subr_intr.c optional intrng kern/subr_physmem.c standard libkern/strlen.c standard libkern/arm64/crc32c_armv8.S standard arm/arm/generic_timer.c standard arm/arm/gic.c standard arm/arm/gic_acpi.c optional acpi arm/arm/gic_fdt.c optional fdt arm/arm/gic_if.m standard arm/arm/pmu.c standard arm/arm/pmu_acpi.c optional acpi arm/arm/pmu_fdt.c optional fdt arm64/acpica/acpi_iort.c optional acpi arm64/acpica/acpi_machdep.c optional acpi arm64/acpica/OsdEnvironment.c optional acpi arm64/acpica/acpi_wakeup.c optional acpi arm64/acpica/pci_cfgreg.c optional acpi pci arm64/arm64/autoconf.c standard arm64/arm64/bus_machdep.c standard arm64/arm64/bus_space_asm.S standard arm64/arm64/busdma_bounce.c standard arm64/arm64/busdma_machdep.c standard arm64/arm64/clock.c standard arm64/arm64/copyinout.S standard arm64/arm64/cpu_errata.c standard arm64/arm64/cpufunc_asm.S standard arm64/arm64/db_disasm.c optional ddb arm64/arm64/db_interface.c optional ddb arm64/arm64/db_trace.c optional ddb arm64/arm64/debug_monitor.c standard arm64/arm64/disassem.c optional ddb arm64/arm64/dump_machdep.c standard arm64/arm64/efirt_machdep.c optional efirt arm64/arm64/elf32_machdep.c optional compat_freebsd32 arm64/arm64/elf_machdep.c standard arm64/arm64/exception.S standard arm64/arm64/exec_machdep.c standard arm64/arm64/freebsd32_machdep.c optional compat_freebsd32 arm64/arm64/gdb_machdep.c optional gdb arm64/arm64/gicv3_its.c optional intrng fdt arm64/arm64/gic_v3.c standard arm64/arm64/gic_v3_acpi.c optional acpi arm64/arm64/gic_v3_fdt.c optional fdt arm64/arm64/hyp_stub.S standard arm64/arm64/identcpu.c standard arm64/arm64/locore.S standard no-obj arm64/arm64/machdep.c standard arm64/arm64/machdep_boot.c standard arm64/arm64/mem.c standard arm64/arm64/memcmp.S standard arm64/arm64/memcpy.S standard arm64/arm64/memset.S standard arm64/arm64/minidump_machdep.c standard arm64/arm64/mp_machdep.c optional smp arm64/arm64/nexus.c standard arm64/arm64/ofw_machdep.c optional fdt arm64/arm64/pl031_rtc.c optional fdt pl031 arm64/arm64/ptrauth.c standard \ compile-with "${NORMAL_C:N-mbranch-protection*}" arm64/arm64/pmap.c standard arm64/arm64/ptrace_machdep.c standard arm64/arm64/sigtramp.S standard arm64/arm64/stack_machdep.c optional ddb | stack arm64/arm64/strcmp.S standard arm64/arm64/strncmp.S standard arm64/arm64/support_ifunc.c standard arm64/arm64/support.S standard arm64/arm64/swtch.S standard arm64/arm64/sys_machdep.c standard arm64/arm64/trap.c standard arm64/arm64/uio_machdep.c standard arm64/arm64/uma_machdep.c standard arm64/arm64/undefined.c standard arm64/arm64/unwind.c optional ddb | kdtrace_hooks | stack \ compile-with "${NORMAL_C:N-fsanitize*}" arm64/arm64/vfp.c standard arm64/arm64/vm_machdep.c standard arm64/coresight/coresight.c standard arm64/coresight/coresight_acpi.c optional acpi arm64/coresight/coresight_fdt.c optional fdt arm64/coresight/coresight_if.m standard arm64/coresight/coresight_cmd.c standard arm64/coresight/coresight_cpu_debug.c optional fdt arm64/coresight/coresight_etm4x.c standard arm64/coresight/coresight_etm4x_acpi.c optional acpi arm64/coresight/coresight_etm4x_fdt.c optional fdt arm64/coresight/coresight_funnel.c standard arm64/coresight/coresight_funnel_acpi.c optional acpi arm64/coresight/coresight_funnel_fdt.c optional fdt arm64/coresight/coresight_replicator.c standard arm64/coresight/coresight_replicator_acpi.c optional acpi arm64/coresight/coresight_replicator_fdt.c optional fdt arm64/coresight/coresight_tmc.c standard arm64/coresight/coresight_tmc_acpi.c optional acpi arm64/coresight/coresight_tmc_fdt.c optional fdt dev/smbios/smbios_subr.c standard arm64/iommu/iommu.c optional iommu arm64/iommu/iommu_if.m optional iommu arm64/iommu/iommu_pmap.c optional iommu arm64/iommu/smmu.c optional iommu arm64/iommu/smmu_acpi.c optional iommu acpi arm64/iommu/smmu_fdt.c optional iommu fdt arm64/iommu/smmu_quirks.c optional iommu dev/iommu/busdma_iommu.c optional iommu dev/iommu/iommu_gas.c optional iommu crypto/armv8/armv8_crypto.c optional armv8crypto armv8_crypto_wrap.o optional armv8crypto \ dependency "$S/crypto/armv8/armv8_crypto_wrap.c" \ compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} -I$S/crypto/armv8/ ${WERROR} ${NO_WCAST_QUAL} ${CFLAGS:M-march=*:S/^$/-march=armv8-a/}+crypto ${.IMPSRC}" \ no-implicit-rule \ clean "armv8_crypto_wrap.o" aesv8-armx.o optional armv8crypto | ossl \ dependency "$S/crypto/openssl/aarch64/aesv8-armx.S" \ compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} -I$S/crypto/armv8/ ${WERROR} ${NO_WCAST_QUAL} ${CFLAGS:M-march=*:S/^$/-march=armv8-a/}+crypto ${.IMPSRC}" \ no-implicit-rule \ clean "aesv8-armx.o" ghashv8-armx.o optional armv8crypto \ dependency "$S/crypto/openssl/aarch64/ghashv8-armx.S" \ compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} -I$S/crypto/armv8/ ${WERROR} ${NO_WCAST_QUAL} ${CFLAGS:M-march=*:S/^$/-march=armv8-a/}+crypto ${.IMPSRC}" \ no-implicit-rule \ clean "ghashv8-armx.o" crypto/des/des_enc.c optional netsmb crypto/openssl/ossl_aarch64.c optional ossl crypto/openssl/aarch64/chacha-armv8.S optional ossl \ compile-with "${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC}" crypto/openssl/aarch64/poly1305-armv8.S optional ossl \ compile-with "${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC}" crypto/openssl/aarch64/sha1-armv8.S optional ossl \ compile-with "${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC}" crypto/openssl/aarch64/sha256-armv8.S optional ossl \ compile-with "${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC}" crypto/openssl/aarch64/sha512-armv8.S optional ossl \ compile-with "${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC}" crypto/openssl/aarch64/vpaes-armv8.S optional ossl \ compile-with "${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC}" dev/acpica/acpi_bus_if.m optional acpi dev/acpica/acpi_if.m optional acpi dev/acpica/acpi_pci_link.c optional acpi pci dev/acpica/acpi_pcib.c optional acpi pci dev/acpica/acpi_pxm.c optional acpi dev/ahci/ahci_generic.c optional ahci cddl/dev/dtrace/aarch64/dtrace_asm.S optional dtrace compile-with "${DTRACE_S}" cddl/dev/dtrace/aarch64/dtrace_subr.c optional dtrace compile-with "${DTRACE_C}" cddl/dev/fbt/aarch64/fbt_isa.c optional dtrace_fbt | dtraceall compile-with "${FBT_C}" # zfs blake3 hash support contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S optional zfs compile-with "${ZFS_S:N-mgeneral-regs-only}" contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S optional zfs compile-with "${ZFS_S:N-mgeneral-regs-only}" # zfs sha2 hash support zfs-sha256-armv8.o optional zfs \ dependency "$S/contrib/openzfs/module/icp/asm-aarch64/sha2/sha256-armv8.S" \ compile-with "${CC} -c ${ZFS_ASM_CFLAGS:N-mgeneral-regs-only} -o ${.TARGET} ${WERROR} $S/contrib/openzfs/module/icp/asm-aarch64/sha2/sha256-armv8.S" \ no-implicit-rule \ clean "zfs-sha256-armv8.o" zfs-sha512-armv8.o optional zfs \ dependency "$S/contrib/openzfs/module/icp/asm-aarch64/sha2/sha512-armv8.S" \ compile-with "${CC} -c ${ZFS_ASM_CFLAGS:N-mgeneral-regs-only} -o ${.TARGET} ${WERROR} $S/contrib/openzfs/module/icp/asm-aarch64/sha2/sha512-armv8.S" \ no-implicit-rule \ clean "zfs-sha512-armv8.o" ## ## ASoC support ## dev/sound/fdt/audio_dai_if.m optional sound fdt dev/sound/fdt/audio_soc.c optional sound fdt dev/sound/fdt/dummy_codec.c optional sound fdt dev/sound/fdt/simple_amplifier.c optional sound fdt ## ## Device drivers ## dev/axgbe/if_axgbe.c optional axa fdt dev/axgbe/xgbe-desc.c optional axa fdt dev/axgbe/xgbe-dev.c optional axa fdt dev/axgbe/xgbe-drv.c optional axa fdt dev/axgbe/xgbe-mdio.c optional axa fdt dev/axgbe/xgbe-sysctl.c optional axa fdt dev/axgbe/xgbe-txrx.c optional axa fdt dev/axgbe/xgbe_osdep.c optional axa fdt dev/axgbe/xgbe-phy-v1.c optional axa fdt dev/cpufreq/cpufreq_dt.c optional cpufreq fdt dev/dpaa2/dpaa2_bp.c optional soc_nxp_ls dpaa2 dev/dpaa2/dpaa2_cmd_if.m optional soc_nxp_ls dpaa2 dev/dpaa2/dpaa2_con.c optional soc_nxp_ls dpaa2 dev/dpaa2/dpaa2_console.c optional soc_nxp_ls dpaa2 fdt dev/dpaa2/dpaa2_io.c optional soc_nxp_ls dpaa2 dev/dpaa2/dpaa2_mac.c optional soc_nxp_ls dpaa2 dev/dpaa2/dpaa2_mc.c optional soc_nxp_ls dpaa2 dev/dpaa2/dpaa2_mc_acpi.c optional soc_nxp_ls dpaa2 acpi dev/dpaa2/dpaa2_mc_fdt.c optional soc_nxp_ls dpaa2 fdt dev/dpaa2/dpaa2_mc_if.m optional soc_nxp_ls dpaa2 dev/dpaa2/dpaa2_mcp.c optional soc_nxp_ls dpaa2 dev/dpaa2/dpaa2_ni.c optional soc_nxp_ls dpaa2 dev/dpaa2/dpaa2_rc.c optional soc_nxp_ls dpaa2 dev/dpaa2/dpaa2_swp.c optional soc_nxp_ls dpaa2 dev/dpaa2/dpaa2_swp_if.m optional soc_nxp_ls dpaa2 dev/dpaa2/memac_mdio_acpi.c optional soc_nxp_ls dpaa2 acpi dev/dpaa2/memac_mdio_common.c optional soc_nxp_ls dpaa2 acpi | soc_nxp_ls dpaa2 fdt dev/dpaa2/memac_mdio_fdt.c optional soc_nxp_ls dpaa2 fdt dev/dpaa2/memac_mdio_if.m optional soc_nxp_ls dpaa2 acpi | soc_nxp_ls dpaa2 fdt dev/dwc/if_dwc.c optional fdt dwc_rk soc_rockchip_rk3328 | fdt dwc_rk soc_rockchip_rk3399 | fdt dwc_socfpga soc_intel_stratix10 dev/dwc/if_dwc_if.m optional fdt dwc_rk soc_rockchip_rk3328 | fdt dwc_rk soc_rockchip_rk3399 | fdt dwc_socfpga soc_intel_stratix10 dev/enetc/enetc_mdio.c optional enetc soc_nxp_ls dev/enetc/if_enetc.c optional enetc iflib pci fdt soc_nxp_ls dev/eqos/if_eqos.c optional eqos dev/eqos/if_eqos_if.m optional eqos dev/eqos/if_eqos_fdt.c optional eqos fdt dev/etherswitch/felix/felix.c optional enetc etherswitch fdt felix pci soc_nxp_ls dev/firmware/arm/scmi.c optional fdt scmi dev/firmware/arm/scmi_clk.c optional fdt scmi dev/firmware/arm/scmi_shmem.c optional fdt scmi dev/gpio/pl061.c optional pl061 gpio dev/gpio/pl061_acpi.c optional pl061 gpio acpi dev/gpio/pl061_fdt.c optional pl061 gpio fdt dev/gpio/qoriq_gpio.c optional soc_nxp_ls gpio fdt dev/hwpmc/hwpmc_arm64.c optional hwpmc dev/hwpmc/hwpmc_arm64_md.c optional hwpmc dev/hwpmc/hwpmc_cmn600.c optional hwpmc acpi arm64/arm64/cmn600.c optional hwpmc acpi dev/hwpmc/hwpmc_dmc620.c optional hwpmc acpi dev/hwpmc/pmu_dmc620.c optional hwpmc acpi # Microsoft Hyper-V dev/hyperv/vmbus/hyperv.c optional hyperv acpi dev/hyperv/vmbus/aarch64/hyperv_aarch64.c optional hyperv acpi dev/hyperv/vmbus/vmbus.c optional hyperv acpi pci dev/hyperv/vmbus/aarch64/vmbus_aarch64.c optional hyperv acpi dev/hyperv/vmbus/vmbus_if.m optional hyperv acpi dev/hyperv/vmbus/vmbus_res.c optional hyperv acpi dev/hyperv/vmbus/vmbus_xact.c optional hyperv acpi dev/hyperv/vmbus/aarch64/hyperv_machdep.c optional hyperv acpi dev/hyperv/vmbus/vmbus_chan.c optional hyperv acpi dev/hyperv/vmbus/hyperv_busdma.c optional hyperv acpi dev/hyperv/vmbus/vmbus_br.c optional hyperv acpi dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c optional hyperv acpi dev/hyperv/utilities/vmbus_timesync.c optional hyperv acpi dev/hyperv/utilities/vmbus_heartbeat.c optional hyperv acpi dev/hyperv/utilities/vmbus_ic.c optional hyperv acpi dev/hyperv/utilities/vmbus_shutdown.c optional hyperv acpi dev/hyperv/utilities/hv_kvp.c optional hyperv acpi dev/hyperv/input/hv_kbd.c optional hyperv acpi dev/hyperv/input/hv_kbdc.c optional hyperv acpi dev/hyperv/netvsc/hn_nvs.c optional hyperv acpi dev/hyperv/netvsc/hn_rndis.c optional hyperv acpi dev/hyperv/netvsc/if_hn.c optional hyperv acpi dev/hyperv/pcib/vmbus_pcib.c optional hyperv pci acpi dev/ice/if_ice_iflib.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_lib.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_osdep.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_resmgr.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_strings.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_iflib_recovery_txrx.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_iflib_txrx.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_common.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_controlq.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_dcb.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_flex_pipe.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_flow.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_nvm.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_sched.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_switch.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_vlan_mode.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_fw_logging.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_fwlog.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_rdma.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/irdma_if.m optional ice pci \ compile-with "${NORMAL_M} -I$S/dev/ice" dev/ice/irdma_di_if.m optional ice pci \ compile-with "${NORMAL_M} -I$S/dev/ice" dev/ice/ice_ddp_common.c optional ice pci \ compile-with "${NORMAL_C} -I$S/dev/ice" ice_ddp.c optional ice_ddp \ compile-with "${AWK} -f $S/tools/fw_stub.awk ice_ddp.fw:ice_ddp:0x01031e00 -mice_ddp -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "ice_ddp.c" ice_ddp.fwo optional ice_ddp \ dependency "ice_ddp.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "ice_ddp.fwo" ice_ddp.fw optional ice_ddp \ dependency "$S/contrib/dev/ice/ice-1.3.30.0.pkg" \ compile-with "${CP} $S/contrib/dev/ice/ice-1.3.30.0.pkg ice_ddp.fw" \ no-obj no-implicit-rule \ clean "ice_ddp.fw" dev/iicbus/sy8106a.c optional sy8106a fdt dev/iicbus/twsi/mv_twsi.c optional twsi fdt dev/iicbus/twsi/a10_twsi.c optional twsi fdt dev/iicbus/twsi/twsi.c optional twsi fdt dev/ipmi/ipmi.c optional ipmi dev/ipmi/ipmi_acpi.c optional ipmi acpi dev/ipmi/ipmi_bt.c optional ipmi dev/ipmi/ipmi_kcs.c optional ipmi dev/ipmi/ipmi_smic.c optional ipmi dev/mailbox/arm/arm_doorbell.c optional fdt arm_doorbell dev/mbox/mbox_if.m optional soc_brcm_bcm2837 dev/mmc/host/dwmmc.c optional dwmmc fdt dev/mmc/host/dwmmc_altera.c optional dwmmc dwmmc_altera fdt dev/mmc/host/dwmmc_hisi.c optional dwmmc dwmmc_hisi fdt dev/mmc/host/dwmmc_rockchip.c optional dwmmc rk_dwmmc fdt dev/neta/if_mvneta_fdt.c optional neta fdt dev/neta/if_mvneta.c optional neta mdio mii fdt dev/ofw/ofw_cpu.c optional fdt dev/ofw/ofw_pci.c optional fdt pci dev/ofw/ofw_pcib.c optional fdt pci dev/pci/controller/pci_n1sdp.c optional pci_n1sdp acpi dev/pci/pci_host_generic.c optional pci dev/pci/pci_host_generic_acpi.c optional pci acpi dev/pci/pci_host_generic_den0115.c optional pci acpi dev/pci/pci_host_generic_fdt.c optional pci fdt dev/pci/pci_dw_mv.c optional pci fdt dev/pci/pci_dw.c optional pci fdt dev/pci/pci_dw_if.m optional pci fdt dev/psci/psci.c standard dev/psci/smccc_arm64.S standard dev/psci/smccc.c standard dev/safexcel/safexcel.c optional safexcel fdt dev/sdhci/sdhci_xenon.c optional sdhci_xenon sdhci dev/sdhci/sdhci_xenon_acpi.c optional sdhci_xenon sdhci acpi dev/sdhci/sdhci_xenon_fdt.c optional sdhci_xenon sdhci fdt dev/sram/mmio_sram.c optional fdt mmio_sram dev/sram/mmio_sram_if.m optional fdt mmio_sram dev/uart/uart_cpu_arm64.c optional uart dev/uart/uart_dev_mu.c optional uart uart_mu fdt dev/uart/uart_dev_pl011.c optional uart pl011 dev/usb/controller/dwc_otg_hisi.c optional dwcotg fdt soc_hisi_hi6220 dev/usb/controller/dwc3.c optional xhci acpi dwc3 | xhci fdt dwc3 dev/usb/controller/ehci_mv.c optional ehci_mv fdt dev/usb/controller/generic_ehci.c optional ehci dev/usb/controller/generic_ehci_acpi.c optional ehci acpi dev/usb/controller/generic_ehci_fdt.c optional ehci fdt dev/usb/controller/generic_ohci.c optional ohci fdt dev/usb/controller/generic_usb_if.m optional ohci fdt dev/usb/controller/musb_otg_allwinner.c optional musb fdt soc_allwinner_a64 dev/usb/controller/usb_nop_xceiv.c optional fdt dev/usb/controller/generic_xhci.c optional xhci dev/usb/controller/generic_xhci_acpi.c optional xhci acpi dev/usb/controller/generic_xhci_fdt.c optional xhci fdt dev/vnic/mrml_bridge.c optional vnic fdt dev/vnic/nic_main.c optional vnic pci dev/vnic/nicvf_main.c optional vnic pci pci_iov dev/vnic/nicvf_queues.c optional vnic pci pci_iov dev/vnic/thunder_bgx_fdt.c optional soc_cavm_thunderx pci vnic fdt dev/vnic/thunder_bgx.c optional soc_cavm_thunderx pci vnic pci dev/vnic/thunder_mdio_fdt.c optional soc_cavm_thunderx pci vnic fdt dev/vnic/thunder_mdio.c optional soc_cavm_thunderx pci vnic dev/vnic/lmac_if.m optional inet | inet6 | vnic ## ## SoC Support ## # Allwinner common files arm/allwinner/a10_timer.c optional a10_timer fdt arm/allwinner/a10_codec.c optional sound a10_codec fdt arm/allwinner/a31_dmac.c optional a31_dmac fdt arm/allwinner/a33_codec.c optional fdt sound a33_codec arm/allwinner/a64/sun50i_a64_acodec.c optional fdt sound a64_codec arm/allwinner/sunxi_dma_if.m optional a31_dmac arm/allwinner/aw_cir.c optional evdev aw_cir fdt arm/allwinner/aw_dwc3.c optional aw_dwc3 fdt arm/allwinner/aw_gpio.c optional gpio aw_gpio fdt arm/allwinner/aw_i2s.c optional fdt sound aw_i2s arm/allwinner/aw_mmc.c optional mmc aw_mmc fdt | mmccam aw_mmc fdt arm/allwinner/aw_nmi.c optional aw_nmi fdt \ compile-with "${NORMAL_C} -I$S/contrib/device-tree/include" arm/allwinner/aw_pwm.c optional aw_pwm fdt arm/allwinner/aw_r_intc.c optional aw_r_intc fdt arm/allwinner/aw_rsb.c optional aw_rsb fdt arm/allwinner/aw_rtc.c optional aw_rtc fdt arm/allwinner/aw_sid.c optional aw_sid nvmem fdt arm/allwinner/aw_spi.c optional aw_spi fdt arm/allwinner/aw_syscon.c optional aw_syscon syscon fdt arm/allwinner/aw_thermal.c optional aw_thermal nvmem fdt arm/allwinner/aw_usbphy.c optional ehci aw_usbphy fdt arm/allwinner/aw_usb3phy.c optional xhci aw_usbphy fdt arm/allwinner/aw_wdog.c optional aw_wdog fdt arm/allwinner/axp81x.c optional axp81x fdt arm/allwinner/if_awg.c optional awg syscon aw_sid nvmem fdt # Allwinner clock driver arm/allwinner/clkng/aw_ccung.c optional aw_ccu fdt arm/allwinner/clkng/aw_clk_frac.c optional aw_ccu fdt arm/allwinner/clkng/aw_clk_m.c optional aw_ccu fdt arm/allwinner/clkng/aw_clk_mipi.c optional aw_ccu fdt arm/allwinner/clkng/aw_clk_nkmp.c optional aw_ccu fdt arm/allwinner/clkng/aw_clk_nm.c optional aw_ccu fdt arm/allwinner/clkng/aw_clk_nmm.c optional aw_ccu fdt arm/allwinner/clkng/aw_clk_np.c optional aw_ccu fdt arm/allwinner/clkng/aw_clk_prediv_mux.c optional aw_ccu fdt arm/allwinner/clkng/ccu_a64.c optional soc_allwinner_a64 aw_ccu fdt arm/allwinner/clkng/ccu_h3.c optional soc_allwinner_h5 aw_ccu fdt arm/allwinner/clkng/ccu_h6.c optional soc_allwinner_h6 aw_ccu fdt arm/allwinner/clkng/ccu_h6_r.c optional soc_allwinner_h6 aw_ccu fdt arm/allwinner/clkng/ccu_sun8i_r.c optional aw_ccu fdt arm/allwinner/clkng/ccu_de2.c optional aw_ccu fdt # Allwinner padconf files arm/allwinner/a64/a64_padconf.c optional soc_allwinner_a64 fdt arm/allwinner/a64/a64_r_padconf.c optional soc_allwinner_a64 fdt arm/allwinner/h3/h3_padconf.c optional soc_allwinner_h5 fdt arm/allwinner/h3/h3_r_padconf.c optional soc_allwinner_h5 fdt arm/allwinner/h6/h6_padconf.c optional soc_allwinner_h6 fdt arm/allwinner/h6/h6_r_padconf.c optional soc_allwinner_h6 fdt # Altera/Intel dev/altera/dwc/if_dwc_socfpga.c optional fdt dwc_socfpga arm64/intel/stratix10-soc-fpga-mgr.c optional soc_intel_stratix10 fdt arm64/intel/stratix10-svc.c optional soc_intel_stratix10 fdt # Annapurna arm/annapurna/alpine/alpine_ccu.c optional al_ccu fdt arm/annapurna/alpine/alpine_nb_service.c optional al_nb_service fdt arm/annapurna/alpine/alpine_pci.c optional al_pci fdt arm/annapurna/alpine/alpine_pci_msix.c optional al_pci fdt arm/annapurna/alpine/alpine_serdes.c optional al_serdes fdt \ no-depend \ compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${.IMPSRC}" # Broadcom arm64/broadcom/brcmmdio/mdio_mux_iproc.c optional soc_brcm_ns2 fdt arm64/broadcom/brcmmdio/mdio_nexus_iproc.c optional soc_brcm_ns2 fdt arm64/broadcom/brcmmdio/mdio_ns2_pcie_phy.c optional soc_brcm_ns2 fdt pci arm64/broadcom/genet/if_genet.c optional soc_brcm_bcm2838 fdt genet arm/broadcom/bcm2835/bcm2835_audio.c optional sound vchiq fdt \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" arm/broadcom/bcm2835/bcm2835_bsc.c optional bcm2835_bsc fdt arm/broadcom/bcm2835/bcm2835_clkman.c optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_cpufreq.c optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_dma.c optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_fbd.c optional vt soc_brcm_bcm2837 fdt | vt soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_firmware.c optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_ft5406.c optional evdev bcm2835_ft5406 fdt arm/broadcom/bcm2835/bcm2835_gpio.c optional gpio soc_brcm_bcm2837 fdt | gpio soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_intr.c optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_mbox.c optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_rng.c optional !random_loadable soc_brcm_bcm2837 fdt | !random_loadable soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_sdhci.c optional sdhci soc_brcm_bcm2837 fdt | sdhci soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_sdhost.c optional sdhci soc_brcm_bcm2837 fdt | sdhci soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_spi.c optional bcm2835_spi fdt arm/broadcom/bcm2835/bcm2835_vcbus.c optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_vcio.c optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2835_wdog.c optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm2836.c optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt arm/broadcom/bcm2835/bcm283x_dwc_fdt.c optional dwcotg fdt soc_brcm_bcm2837 | dwcotg fdt soc_brcm_bcm2838 arm/broadcom/bcm2835/bcm2838_pci.c optional soc_brcm_bcm2838 fdt pci arm/broadcom/bcm2835/bcm2838_xhci.c optional soc_brcm_bcm2838 fdt pci xhci arm/broadcom/bcm2835/raspberrypi_gpio.c optional soc_brcm_bcm2837 gpio fdt | soc_brcm_bcm2838 gpio fdt contrib/vchiq/interface/compat/vchi_bsd.c optional vchiq soc_brcm_bcm2837 \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c optional vchiq soc_brcm_bcm2837 \ compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_arm.c optional vchiq soc_brcm_bcm2837 \ compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_connected.c optional vchiq soc_brcm_bcm2837 \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_core.c optional vchiq soc_brcm_bcm2837 \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_kern_lib.c optional vchiq soc_brcm_bcm2837 \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_kmod.c optional vchiq soc_brcm_bcm2837 \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_shim.c optional vchiq soc_brcm_bcm2837 \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" contrib/vchiq/interface/vchiq_arm/vchiq_util.c optional vchiq soc_brcm_bcm2837 \ compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq" # Cavium arm64/cavium/thunder_pcie_fdt.c optional soc_cavm_thunderx pci fdt arm64/cavium/thunder_pcie_pem.c optional soc_cavm_thunderx pci arm64/cavium/thunder_pcie_pem_fdt.c optional soc_cavm_thunderx pci fdt arm64/cavium/thunder_pcie_common.c optional soc_cavm_thunderx pci # i.MX8 Clock support arm64/freescale/imx/imx8mq_ccm.c optional fdt soc_freescale_imx8 arm64/freescale/imx/clk/imx_clk_gate.c optional fdt soc_freescale_imx8 arm64/freescale/imx/clk/imx_clk_mux.c optional fdt soc_freescale_imx8 arm64/freescale/imx/clk/imx_clk_composite.c optional fdt soc_freescale_imx8 arm64/freescale/imx/clk/imx_clk_sscg_pll.c optional fdt soc_freescale_imx8 arm64/freescale/imx/clk/imx_clk_frac_pll.c optional fdt soc_freescale_imx8 # iMX drivers arm/freescale/imx/imx_gpio.c optional gpio soc_freescale_imx8 fdt arm/freescale/imx/imx_i2c.c optional fsliic arm/freescale/imx/imx_machdep.c optional fdt soc_freescale_imx8 arm64/freescale/imx/imx7gpc.c optional fdt soc_freescale_imx8 dev/ffec/if_ffec.c optional ffec # Marvell arm/mv/a37x0_gpio.c optional a37x0_gpio gpio fdt arm/mv/a37x0_iic.c optional a37x0_iic iicbus fdt arm/mv/a37x0_spi.c optional a37x0_spi spibus fdt arm/mv/clk/a37x0_tbg.c optional a37x0_tbg clk fdt syscon arm/mv/clk/a37x0_xtal.c optional a37x0_xtal clk fdt syscon arm/mv/armada38x/armada38x_rtc.c optional mv_rtc fdt arm/mv/gpio.c optional mv_gpio fdt arm/mv/mvebu_gpio.c optional mv_gpio fdt arm/mv/mvebu_pinctrl.c optional mvebu_pinctrl fdt arm/mv/mv_ap806_clock.c optional soc_marvell_8k fdt arm/mv/mv_ap806_gicp.c optional mv_ap806_gicp fdt arm/mv/mv_ap806_sei.c optional mv_ap806_sei fdt arm/mv/mv_cp110_clock.c optional soc_marvell_8k fdt arm/mv/mv_cp110_icu.c optional mv_cp110_icu fdt arm/mv/mv_cp110_icu_bus.c optional mv_cp110_icu fdt arm/mv/mv_thermal.c optional soc_marvell_8k mv_thermal fdt arm/mv/clk/a37x0_tbg_pll.c optional a37x0_tbg clk fdt syscon arm/mv/clk/a37x0_periph_clk_driver.c optional a37x0_nb_periph a37x0_sb_periph clk fdt syscon arm/mv/clk/a37x0_nb_periph_clk_driver.c optional a37x0_nb_periph clk fdt syscon arm/mv/clk/a37x0_sb_periph_clk_driver.c optional a37x0_sb_periph clk fdt syscon arm/mv/clk/periph.c optional a37x0_nb_periph a37x0_sb_periph clk fdt syscon arm/mv/clk/periph_clk_d.c optional a37x0_nb_periph a37x0_sb_periph clk fdt syscon arm/mv/clk/periph_clk_fixed.c optional a37x0_nb_periph a37x0_sb_periph clk fdt syscon arm/mv/clk/periph_clk_gate.c optional a37x0_nb_periph a37x0_sb_periph clk fdt syscon arm/mv/clk/periph_clk_mux_gate.c optional a37x0_nb_periph a37x0_sb_periph clk fdt syscon # NVidia arm/nvidia/tegra_abpmisc.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_ahci.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_efuse.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_ehci.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_gpio.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_i2c.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_lic.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_mc.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_pcie.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_sdhci.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_soctherm_if.m optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_soctherm.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_uart.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_usbphy.c optional fdt soc_nvidia_tegra210 arm/nvidia/tegra_xhci.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/max77620.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/max77620_gpio.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/max77620_regulators.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/max77620_rtc.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/tegra210_car.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/tegra210_clk_per.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/tegra210_clk_pll.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/tegra210_clk_super.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/tegra210_coretemp.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/tegra210_cpufreq.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/tegra210_pinmux.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/tegra210_pmc.c optional fdt soc_nvidia_tegra210 arm64/nvidia/tegra210/tegra210_xusbpadctl.c optional fdt soc_nvidia_tegra210 # Nvidia firmware for Tegra tegra210_xusb_fw.c optional tegra210_xusb_fw \ dependency "$S/conf/files.arm64" \ compile-with "${AWK} -f $S/tools/fw_stub.awk tegra210_xusb.fw:tegra210_xusb_fw -mtegra210_xusb_fw -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "tegra210_xusb_fw.c" tegra210_xusb.fwo optional tegra210_xusb_fw \ dependency "tegra210_xusb.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "tegra210_xusb.fwo" tegra210_xusb.fw optional tegra210_xusb_fw \ dependency "$S/contrib/dev/nvidia/tegra210_xusb.bin.uu" \ compile-with "${NORMAL_FW}" \ no-obj no-implicit-rule \ clean "tegra210_xusb.fw" # NXP arm/freescale/vybrid/vf_i2c.c optional vf_i2c iicbus soc_nxp_ls arm64/qoriq/qoriq_dw_pci.c optional pci fdt soc_nxp_ls arm64/qoriq/qoriq_gpio_pic.c optional gpio fdt soc_nxp_ls arm64/qoriq/qoriq_therm.c optional pci fdt soc_nxp_ls arm64/qoriq/qoriq_therm_if.m optional pci fdt soc_nxp_ls arm64/qoriq/clk/ls1028a_clkgen.c optional clk soc_nxp_ls fdt arm64/qoriq/clk/ls1028a_flexspi_clk.c optional clk soc_nxp_ls fdt arm64/qoriq/clk/ls1046a_clkgen.c optional clk soc_nxp_ls fdt arm64/qoriq/clk/ls1088a_clkgen.c optional clk soc_nxp_ls fdt arm64/qoriq/clk/lx2160a_clkgen.c optional clk soc_nxp_ls fdt arm64/qoriq/clk/qoriq_clk_pll.c optional clk soc_nxp_ls arm64/qoriq/clk/qoriq_clkgen.c optional clk soc_nxp_ls fdt dev/ahci/ahci_fsl_fdt.c optional soc_nxp_ls ahci fdt dev/flash/flexspi/flex_spi.c optional clk flex_spi soc_nxp_ls fdt # Qualcomm arm64/qualcomm/qcom_gcc.c optional qcom_gcc fdt dev/qcom_mdio/qcom_mdio_ipq4018.c optional qcom_mdio fdt mdio mii # RockChip Drivers arm64/rockchip/rk3328_codec.c optional fdt rk3328codec soc_rockchip_rk3328 arm64/rockchip/rk3399_emmcphy.c optional fdt rk_emmcphy soc_rockchip_rk3399 arm64/rockchip/rk3568_combphy.c optional fdt rk_combphy soc_rockchip_rk3568 arm64/rockchip/rk3568_pcie.c optional fdt pci soc_rockchip_rk3568 arm64/rockchip/rk3568_pciephy.c optional fdt pci soc_rockchip_rk3568 arm64/rockchip/rk_dwc3.c optional fdt rk_dwc3 soc_rockchip_rk3399 | fdt rk_dwc3 soc_rockchip_rk3568 arm64/rockchip/rk_i2c.c optional fdt rk_i2c soc_rockchip_rk3328 | fdt rk_i2c soc_rockchip_rk3399 | fdt rk_i2c soc_rockchip_rk3568 arm64/rockchip/rk_i2s.c optional fdt sound soc_rockchip_rk3328 | fdt sound soc_rockchip_rk3399 arm64/rockchip/rk_otp.c optional fdt soc_rockchip_rk3568 arm64/rockchip/rk_otp_if.m optional fdt soc_rockchip_rk3568 dev/iicbus/pmic/rockchip/rk8xx.c optional fdt rk805 soc_rockchip_rk3328 | fdt rk805 soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 dev/iicbus/pmic/rockchip/rk8xx_clocks.c optional fdt rk805 soc_rockchip_rk3328 | fdt rk805 soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 dev/iicbus/pmic/rockchip/rk8xx_regulators.c optional fdt rk805 soc_rockchip_rk3328 | fdt rk805 soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 dev/iicbus/pmic/rockchip/rk8xx_rtc.c optional fdt rk805 soc_rockchip_rk3328 | fdt rk805 soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 dev/iicbus/pmic/rockchip/rk805.c optional fdt rk805 soc_rockchip_rk3328 dev/iicbus/pmic/rockchip/rk808.c optional fdt rk805 soc_rockchip_rk3399 dev/iicbus/pmic/rockchip/rk817.c optional fdt rk817 soc_rockchip_rk3568 arm64/rockchip/rk_grf.c optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/rk_pinctrl.c optional fdt rk_pinctrl soc_rockchip_rk3328 | fdt rk_pinctrl soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/rk_gpio.c optional fdt rk_gpio soc_rockchip_rk3328 | fdt rk_gpio soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/rk_iodomain.c optional fdt rk_iodomain arm64/rockchip/rk_spi.c optional fdt rk_spi arm64/rockchip/rk_usb2phy.c optional fdt rk_usb2phy soc_rockchip_rk3328 | fdt rk_usb2phy soc_rockchip_rk3399 | fdt rk_usb2phy soc_rockchip_rk3568 arm64/rockchip/rk_typec_phy.c optional fdt rk_typec_phy soc_rockchip_rk3399 arm64/rockchip/if_dwc_rk.c optional fdt dwc_rk soc_rockchip_rk3328 | fdt dwc_rk soc_rockchip_rk3399 arm64/rockchip/rk_tsadc_if.m optional fdt soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/rk_tsadc.c optional fdt soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/rk_pwm.c optional fdt rk_pwm arm64/rockchip/rk_pcie.c optional fdt pci soc_rockchip_rk3399 arm64/rockchip/rk_pcie_phy.c optional fdt pci soc_rockchip_rk3399 # RockChip Clock support arm64/rockchip/clk/rk_cru.c optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/clk/rk_clk_armclk.c optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/clk/rk_clk_composite.c optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/clk/rk_clk_fract.c optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/clk/rk_clk_gate.c optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/clk/rk_clk_mux.c optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/clk/rk_clk_pll.c optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399 | fdt soc_rockchip_rk3568 arm64/rockchip/clk/rk3328_cru.c optional fdt soc_rockchip_rk3328 arm64/rockchip/clk/rk3399_cru.c optional fdt soc_rockchip_rk3399 arm64/rockchip/clk/rk3399_pmucru.c optional fdt soc_rockchip_rk3399 arm64/rockchip/clk/rk3568_cru.c optional fdt soc_rockchip_rk3568 arm64/rockchip/clk/rk3568_pmucru.c optional fdt soc_rockchip_rk3568 # Xilinx arm/xilinx/uart_dev_cdnc.c optional uart soc_xilinx_zynq fdt arm/xilinx/zy7_gpio.c optional gpio soc_xilinx_zynq fdt diff --git a/sys/conf/files.i386 b/sys/conf/files.i386 index 1d4567824b1b..a55d5302b3e1 100644 --- a/sys/conf/files.i386 +++ b/sys/conf/files.i386 @@ -1,176 +1,175 @@ # This file tells config what files go into building a kernel, # files marked standard are always included. # -# $FreeBSD$ # # common files stuff between i386 and amd64 include "conf/files.x86" # The long compile-with and dependency lines are required because of # limitations in config: backslash-newline doesn't work in strings, and # dependency lines other than the first are silently ignored. # cddl/dev/dtrace/i386/dtrace_asm.S optional dtrace compile-with "${DTRACE_S}" cddl/dev/dtrace/i386/dtrace_subr.c optional dtrace compile-with "${DTRACE_C}" crypto/aesni/aeskeys_i386.S optional aesni crypto/des/arch/i386/des_enc.S optional netsmb crypto/openssl/i386/aesni-x86.S optional ossl crypto/openssl/i386/chacha-x86.S optional ossl crypto/openssl/i386/poly1305-x86.S optional ossl crypto/openssl/i386/sha1-586.S optional ossl crypto/openssl/i386/sha256-586.S optional ossl crypto/openssl/i386/sha512-586.S optional ossl dev/agp/agp_ali.c optional agp dev/agp/agp_amd.c optional agp dev/agp/agp_amd64.c optional agp dev/agp/agp_ati.c optional agp dev/agp/agp_i810.c optional agp dev/agp/agp_intel.c optional agp dev/agp/agp_nvidia.c optional agp dev/agp/agp_sis.c optional agp dev/agp/agp_via.c optional agp dev/glxiic/glxiic.c optional glxiic dev/glxsb/glxsb.c optional glxsb dev/glxsb/glxsb_hash.c optional glxsb dev/hyperv/vmbus/i386/hyperv_machdep.c optional hyperv dev/le/if_le_isa.c optional le isa dev/nctgpio/nctgpio.c optional nctgpio dev/nfe/if_nfe.c optional nfe pci dev/ntb/if_ntb/if_ntb.c optional if_ntb dev/ntb/ntb_transport.c optional ntb_transport | if_ntb dev/ntb/ntb.c optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw dev/ntb/ntb_if.m optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw dev/ntb/ntb_hw/ntb_hw_amd.c optional ntb_hw_amd | ntb_hw dev/ntb/ntb_hw/ntb_hw_intel.c optional ntb_hw_intel | ntb_hw dev/ntb/ntb_hw/ntb_hw_plx.c optional ntb_hw_plx | ntb_hw dev/ntb/test/ntb_tool.c optional ntb_tool dev/nvram/nvram.c optional nvram isa dev/ofw/ofw_pcib.c optional fdt pci dev/pcf/pcf_isa.c optional pcf dev/random/ivy.c optional rdrand_rng !random_loadable dev/random/nehemiah.c optional padlock_rng !random_loadable dev/sbni/if_sbni.c optional sbni dev/sbni/if_sbni_isa.c optional sbni isa dev/sbni/if_sbni_pci.c optional sbni pci dev/speaker/spkr.c optional speaker dev/superio/superio.c optional superio isa dev/syscons/scvesactl.c optional sc vga vesa dev/syscons/scvgarndr.c optional sc vga dev/tpm/tpm.c optional tpm dev/tpm/tpm_acpi.c optional tpm acpi dev/tpm/tpm_isa.c optional tpm isa dev/uart/uart_cpu_x86.c optional uart dev/viawd/viawd.c optional viawd dev/vmd/vmd.c optional vmd dev/acpi_support/acpi_wmi_if.m standard dev/wbwd/wbwd.c optional wbwd dev/wdatwd/wdatwd.c optional wdatwd i386/acpica/acpi_machdep.c optional acpi i386/acpica/acpi_wakeup.c optional acpi acpi_wakecode.o optional acpi \ dependency "$S/i386/acpica/acpi_wakecode.S assym.inc" \ compile-with "${NORMAL_S}" \ no-obj no-implicit-rule before-depend \ clean "acpi_wakecode.o" acpi_wakecode.bin optional acpi \ dependency "acpi_wakecode.o" \ compile-with "${OBJCOPY} -S -O binary acpi_wakecode.o ${.TARGET}" \ no-obj no-implicit-rule before-depend \ clean "acpi_wakecode.bin" acpi_wakecode.h optional acpi \ dependency "acpi_wakecode.bin" \ compile-with "file2c -sx 'static char wakecode[] = {' '};' < acpi_wakecode.bin > ${.TARGET}" \ no-obj no-implicit-rule before-depend \ clean "acpi_wakecode.h" acpi_wakedata.h optional acpi \ dependency "acpi_wakecode.o" \ compile-with '${NM} -n --defined-only acpi_wakecode.o | while read offset dummy what; do echo "#define $${what} 0x$${offset}"; done > ${.TARGET}' \ no-obj no-implicit-rule before-depend \ clean "acpi_wakedata.h" # i386/bios/smapi.c optional smapi i386/bios/smapi_bios.S optional smapi #i386/i386/apic_vector.S optional apic i386/i386/bios.c standard i386/i386/bioscall.S standard i386/i386/bpf_jit_machdep.c optional bpf_jitter i386/i386/copyout.c standard i386/i386/db_disasm.c optional ddb i386/i386/db_interface.c optional ddb i386/i386/db_trace.c optional ddb i386/i386/exec_machdep.c standard i386/i386/elan-mmcr.c optional cpu_elan | cpu_soekris i386/i386/elf_machdep.c standard i386/i386/exception.S standard i386/i386/gdb_machdep.c optional gdb i386/i386/geode.c optional cpu_geode i386/i386/in_cksum_machdep.c optional inet | inet6 i386/i386/initcpu.c standard i386/i386/io.c optional io i386/i386/k6_mem.c optional mem i386/i386/locore.S standard no-obj i386/i386/longrun.c optional cpu_enable_longrun i386/i386/machdep.c standard i386/i386/mem.c optional mem i386/i386/minidump_machdep.c standard i386/i386/minidump_machdep_pae.c standard i386/i386/minidump_machdep_nopae.c standard i386/i386/mp_clock.c optional smp i386/i386/mp_machdep.c optional smp i386/i386/mpboot.S optional smp i386/i386/npx.c standard i386/i386/perfmon.c optional perfmon i386/i386/pmap_base.c standard i386/i386/pmap_nopae.c standard i386/i386/pmap_pae.c standard i386/i386/ptrace_machdep.c standard i386/i386/sigtramp.S standard i386/i386/support.S standard i386/i386/swtch.S standard i386/i386/sys_machdep.c standard i386/i386/trap.c standard i386/i386/uio_machdep.c standard i386/i386/vm86.c standard i386/i386/vm_machdep.c standard i386/pci/pci_cfgreg.c optional pci i386/pci/pci_pir.c optional pci isa/syscons_isa.c optional sc isa/vga_isa.c optional vga kern/imgact_aout.c optional compat_aout kern/subr_sfbuf.c standard libkern/divdi3.c standard libkern/divmoddi4.c standard libkern/memcmp.c standard libkern/memset.c standard libkern/moddi3.c standard libkern/qdivrem.c standard libkern/strlen.c standard libkern/ucmpdi2.c standard libkern/udivdi3.c standard libkern/udivmoddi4.c standard libkern/umoddi3.c standard # # x86 real mode BIOS support, required by dpms/pci/vesa # compat/x86bios/x86bios.c optional x86bios | dpms | pci | vesa # Common files where we currently configure the system differently, but perhaps shouldn't # config(8) doesn't have a way to force standard options, so we've been inconsistent # about marking non-optional things 'standard'. x86/acpica/madt.c optional acpi apic x86/cpufreq/smist.c optional cpufreq x86/isa/atpic.c optional atpic x86/isa/elcr.c optional atpic | apic x86/isa/isa.c optional isa x86/isa/isa_dma.c optional isa x86/x86/io_apic.c optional apic x86/x86/local_apic.c optional apic x86/x86/mptable.c optional apic x86/x86/mptable_pci.c optional apic pci x86/x86/msi.c optional apic pci # Clock calibration subroutine; uses floating-point arithmetic subr_clockcalib.o standard \ dependency "$S/kern/subr_clockcalib.c" \ compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} -m80387 ${.IMPSRC}" \ no-implicit-rule \ clean "subr_clockcalib.o" diff --git a/sys/conf/files.powerpc b/sys/conf/files.powerpc index 927c27416d88..aad29d050b68 100644 --- a/sys/conf/files.powerpc +++ b/sys/conf/files.powerpc @@ -1,380 +1,379 @@ # This file tells config what files go into building a kernel, # files marked standard are always included. # -# $FreeBSD$ # # The long compile-with and dependency lines are required because of # limitations in config: backslash-newline doesn't work in strings, and # dependency lines other than the first are silently ignored. # # # There is only an asm version on ppc64. # zfs blake3 hash support contrib/openzfs/module/icp/asm-ppc64/blake3/b3_ppc64le_sse2.S optional zfs compile-with "${ZFS_S}" contrib/openzfs/module/icp/asm-ppc64/blake3/b3_ppc64le_sse41.S optional zfs compile-with "${ZFS_S}" # zfs sha2 hash support contrib/openzfs/module/icp/asm-ppc64/sha2/sha256-p8.S optional zfs compile-with "${ZFS_S}" contrib/openzfs/module/icp/asm-ppc64/sha2/sha512-p8.S optional zfs compile-with "${ZFS_S}" contrib/openzfs/module/icp/asm-ppc64/sha2/sha256-ppc.S optional zfs compile-with "${ZFS_S}" contrib/openzfs/module/icp/asm-ppc64/sha2/sha512-ppc.S optional zfs compile-with "${ZFS_S}" cddl/compat/opensolaris/kern/opensolaris_atomic.c optional zfs powerpc | dtrace powerpc | zfs powerpcspe | dtrace powerpcspe compile-with "${ZFS_C}" cddl/dev/dtrace/powerpc/dtrace_asm.S optional dtrace compile-with "${DTRACE_S}" cddl/dev/dtrace/powerpc/dtrace_subr.c optional dtrace compile-with "${DTRACE_C}" cddl/dev/fbt/powerpc/fbt_isa.c optional dtrace_fbt | dtraceall compile-with "${FBT_C}" crypto/des/des_enc.c optional netsmb dev/aacraid/aacraid_endian.c optional aacraid dev/adb/adb_bus.c optional adb dev/adb/adb_kbd.c optional adb dev/adb/adb_mouse.c optional adb dev/adb/adb_hb_if.m optional adb dev/adb/adb_if.m optional adb dev/adb/adb_buttons.c optional adb dev/agp/agp_apple.c optional agp powermac dev/fb/fb.c optional sc dev/gpio/qoriq_gpio.c optional mpc85xx gpio dev/hwpmc/hwpmc_e500.c optional hwpmc dev/hwpmc/hwpmc_mpc7xxx.c optional hwpmc dev/hwpmc/hwpmc_power8.c optional hwpmc dev/hwpmc/hwpmc_powerpc.c optional hwpmc dev/hwpmc/hwpmc_ppc970.c optional hwpmc dev/iicbus/ad7417.c optional ad7417 powermac dev/iicbus/adm1030.c optional powermac windtunnel | adm1030 powermac dev/iicbus/adt746x.c optional adt746x powermac dev/iicbus/ds1631.c optional ds1631 powermac dev/iicbus/ds1775.c optional ds1775 powermac dev/iicbus/max6690.c optional max6690 powermac dev/iicbus/ofw_iicbus.c optional iicbus aim dev/iicbus/ofw_iicbus_if.m optional iicbus aim dev/ipmi/ipmi.c optional ipmi dev/ipmi/ipmi_opal.c optional powernv ipmi dev/ice/if_ice_iflib.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_lib.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_osdep.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_resmgr.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_strings.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_iflib_recovery_txrx.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_iflib_txrx.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_common.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_controlq.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_dcb.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_flex_pipe.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_flow.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_nvm.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_sched.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_switch.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_vlan_mode.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_fw_logging.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_fwlog.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/ice_rdma.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" dev/ice/irdma_if.m optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_M} -I$S/dev/ice" dev/ice/irdma_di_if.m optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_M} -I$S/dev/ice" dev/ice/ice_ddp_common.c optional ice pci powerpc64 | ice pci powerpc64le \ compile-with "${NORMAL_C} -I$S/dev/ice" ice_ddp.c optional ice_ddp powerpc64 | ice pci powerpc64le \ compile-with "${AWK} -f $S/tools/fw_stub.awk ice_ddp.fw:ice_ddp:0x01031e00 -mice_ddp -c${.TARGET}" \ no-ctfconvert no-implicit-rule before-depend local \ clean "ice_ddp.c" ice_ddp.fwo optional ice_ddp powerpc64 | ice pci powerpc64le \ dependency "ice_ddp.fw" \ compile-with "${NORMAL_FWO}" \ no-implicit-rule \ clean "ice_ddp.fwo" ice_ddp.fw optional ice_ddp powerpc64 | ice pci powerpc64le \ dependency "$S/contrib/dev/ice/ice-1.3.30.0.pkg" \ compile-with "${CP} $S/contrib/dev/ice/ice-1.3.30.0.pkg ice_ddp.fw" \ no-obj no-implicit-rule \ clean "ice_ddp.fw" dev/ixl/if_ixl.c optional ixl pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_pf_main.c optional ixl pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_pf_iflib.c optional ixl pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_pf_qmgr.c optional ixl pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_pf_iov.c optional ixl pci pci_iov powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_pf_i2c.c optional ixl pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/if_iavf.c optional iavf pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/iavf_vc.c optional iavf pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/ixl_txrx.c optional ixl pci powerpc64 | \ iavf pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_osdep.c optional ixl pci powerpc64 | \ iavf pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_lan_hmc.c optional ixl pci powerpc64 | \ iavf pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_hmc.c optional ixl pci powerpc64 | \ iavf pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_common.c optional ixl pci powerpc64 | \ iavf pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_nvm.c optional ixl pci powerpc64 | \ iavf pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_adminq.c optional ixl pci powerpc64 | \ iavf pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" dev/ixl/i40e_dcb.c optional ixl pci powerpc64 \ compile-with "${NORMAL_C} -I$S/dev/ixl" # Most ofw stuff below is brought in by conf/files for options FDT, but # we always want it, even on non-FDT platforms. dev/fdt/simplebus.c standard dev/ofw/openfirm.c standard dev/ofw/openfirmio.c standard dev/ofw/ofw_bus_if.m standard dev/ofw/ofw_cpu.c standard dev/ofw/ofw_if.m standard dev/ofw/ofw_bus_subr.c standard dev/ofw/ofw_console.c optional aim dev/ofw/ofw_disk.c optional ofwd aim dev/ofw/ofwbus.c standard dev/ofw/ofw_pcib.c optional pci dev/ofw/ofw_standard.c optional aim powerpc dev/ofw/ofw_subr.c standard dev/powermac_nvram/powermac_nvram.c optional powermac_nvram powermac dev/quicc/quicc_bfe_fdt.c optional quicc mpc85xx dev/random/darn.c optional powerpc64 !random_loadable | powerpc64le !random_loadable dev/scc/scc_bfe_macio.c optional scc powermac dev/sdhci/fsl_sdhci.c optional mpc85xx sdhci dev/sec/sec.c optional sec mpc85xx dev/sound/macio/aoa.c optional snd_davbus | snd_ai2s powermac dev/sound/macio/davbus.c optional snd_davbus powermac dev/sound/macio/i2s.c optional snd_ai2s powermac dev/sound/macio/onyx.c optional snd_ai2s iicbus powermac dev/sound/macio/snapper.c optional snd_ai2s iicbus powermac dev/sound/macio/tumbler.c optional snd_ai2s iicbus powermac dev/syscons/scgfbrndr.c optional sc dev/tsec/if_tsec.c optional tsec dev/tsec/if_tsec_fdt.c optional tsec dev/uart/uart_cpu_powerpc.c optional uart dev/usb/controller/ehci_fsl.c optional ehci mpc85xx dev/vt/hw/ofwfb/ofwfb.c optional vt aim kern/subr_atomic64.c optional powerpc | powerpcspe kern/subr_dummy_vdso_tc.c standard kern/subr_sfbuf.c standard libkern/ashldi3.c optional powerpc | powerpcspe libkern/ashrdi3.c optional powerpc | powerpcspe libkern/bcopy.c standard libkern/cmpdi2.c optional powerpc | powerpcspe libkern/divdi3.c optional powerpc | powerpcspe libkern/lshrdi3.c optional powerpc | powerpcspe libkern/memcmp.c standard libkern/memset.c standard libkern/moddi3.c optional powerpc | powerpcspe libkern/qdivrem.c optional powerpc | powerpcspe libkern/strcmp.c standard libkern/strlen.c standard libkern/strncmp.c standard libkern/ucmpdi2.c optional powerpc | powerpcspe libkern/udivdi3.c optional powerpc | powerpcspe libkern/umoddi3.c optional powerpc | powerpcspe powerpc/aim/locore.S optional aim no-obj powerpc/aim/aim_machdep.c optional aim powerpc/aim/mmu_oea.c optional aim powerpc powerpc/aim/mmu_oea64.c optional aim powerpc/aim/mmu_radix.c optional aim powerpc64 | aim powerpc64le powerpc/aim/moea64_native.c optional aim powerpc/aim/mp_cpudep.c optional aim powerpc/aim/slb.c optional aim powerpc64 | aim powerpc64le powerpc/amigaone/platform_amigaone.c optional amigaone powerpc/amigaone/cpld_a1222.c optional powerpc amigaone | powerpcspe amigaone powerpc/amigaone/cpld_x5000.c optional powerpc amigaone | powerpc64 amigaone powerpc/booke/locore.S optional booke no-obj powerpc/booke/booke_machdep.c optional booke powerpc/booke/machdep_e500.c optional booke_e500 powerpc/booke/mp_cpudep.c optional booke smp powerpc/booke/platform_bare.c optional booke powerpc/booke/pmap.c optional booke powerpc/booke/spe.c optional powerpcspe powerpc/cpufreq/dfs.c optional cpufreq powerpc/cpufreq/mpc85xx_jog.c optional cpufreq mpc85xx powerpc/cpufreq/pcr.c optional cpufreq aim powerpc/cpufreq/pmcr.c optional cpufreq aim powerpc64 | cpufreq aim powerpc64le powerpc/cpufreq/pmufreq.c optional cpufreq aim pmu powerpc/fpu/fpu_add.c optional fpu_emu | powerpcspe powerpc/fpu/fpu_compare.c optional fpu_emu | powerpcspe powerpc/fpu/fpu_div.c optional fpu_emu | powerpcspe powerpc/fpu/fpu_emu.c optional fpu_emu powerpc/fpu/fpu_explode.c optional fpu_emu | powerpcspe powerpc/fpu/fpu_implode.c optional fpu_emu | powerpcspe powerpc/fpu/fpu_mul.c optional fpu_emu | powerpcspe powerpc/fpu/fpu_sqrt.c optional fpu_emu powerpc/fpu/fpu_subr.c optional fpu_emu | powerpcspe powerpc/mambo/mambocall.S optional mambo powerpc/mambo/mambo.c optional mambo powerpc/mambo/mambo_console.c optional mambo powerpc/mambo/mambo_disk.c optional mambo powerpc/mikrotik/platform_rb.c optional mikrotik powerpc/mikrotik/rb_led.c optional mikrotik powerpc/mpc85xx/atpic.c optional mpc85xx isa powerpc/mpc85xx/ds1553_bus_fdt.c optional ds1553 powerpc/mpc85xx/ds1553_core.c optional ds1553 powerpc/mpc85xx/fsl_diu.c optional mpc85xx diu powerpc/mpc85xx/fsl_espi.c optional mpc85xx spibus powerpc/mpc85xx/fsl_sata.c optional mpc85xx ata powerpc/mpc85xx/i2c.c optional mpc85xx iicbus powerpc/mpc85xx/isa.c optional mpc85xx isa powerpc/mpc85xx/lbc.c optional mpc85xx powerpc/mpc85xx/mpc85xx.c optional mpc85xx powerpc/mpc85xx/mpc85xx_cache.c optional mpc85xx powerpc/mpc85xx/mpc85xx_gpio.c optional mpc85xx gpio powerpc/mpc85xx/platform_mpc85xx.c optional mpc85xx powerpc/mpc85xx/pci_mpc85xx.c optional pci mpc85xx powerpc/mpc85xx/pci_mpc85xx_pcib.c optional pci mpc85xx powerpc/ofw/ofw_machdep.c standard powerpc/ofw/ofw_pcibus.c optional pci powerpc/ofw/ofw_pcib_pci.c optional pci powerpc/ofw/ofw_real.c optional aim powerpc/ofw/ofw_syscons.c optional sc aim powerpc/ofw/ofwcall32.S optional aim powerpc powerpc/ofw/ofwcall64.S optional aim powerpc64 | aim powerpc64le powerpc/ofw/openpic_ofw.c standard powerpc/ofw/rtas.c optional aim powerpc/ofw/ofw_initrd.c optional md_root_mem powerpc64 | md_root_mem powerpc64le powerpc/powermac/ata_kauai.c optional powermac ata | powermac atamacio powerpc/powermac/ata_macio.c optional powermac ata | powermac atamacio powerpc/powermac/ata_dbdma.c optional powermac ata | powermac atamacio powerpc/powermac/atibl.c optional powermac atibl powerpc/powermac/cuda.c optional powermac cuda powerpc/powermac/cpcht.c optional powermac pci powerpc/powermac/dbdma.c optional powermac pci powerpc/powermac/fcu.c optional powermac fcu powerpc/powermac/grackle.c optional powermac pci powerpc/powermac/hrowpic.c optional powermac pci powerpc/powermac/kiic.c optional powermac kiic powerpc/powermac/macgpio.c optional powermac pci powerpc/powermac/macio.c optional powermac pci powerpc/powermac/nvbl.c optional powermac nvbl powerpc/powermac/platform_powermac.c optional powermac powerpc/powermac/powermac_thermal.c optional powermac powerpc/powermac/pswitch.c optional powermac pswitch powerpc/powermac/pmu.c optional powermac pmu powerpc/powermac/smu.c optional powermac smu powerpc/powermac/smusat.c optional powermac smu powerpc/powermac/tbgpio.c optional powermac pci smp powerpc/powermac/uninorth.c optional powermac powerpc/powermac/uninorthpci.c optional powermac pci powerpc/powermac/vcoregpio.c optional powermac powerpc/powernv/opal.c optional powernv powerpc/powernv/opal_async.c optional powernv powerpc/powernv/opal_console.c optional powernv powerpc/powernv/opal_dbg.c optional powernv gdb powerpc/powernv/opal_dev.c optional powernv powerpc/powernv/opal_flash.c optional powernv opalflash powerpc/powernv/opal_hmi.c optional powernv powerpc/powernv/opal_i2c.c optional iicbus fdt powernv powerpc/powernv/opal_i2cm.c optional iicbus fdt powernv powerpc/powernv/opal_nvram.c optional powernv nvram powerpc/powernv/opal_pci.c optional powernv pci powerpc/powernv/opal_sensor.c optional powernv powerpc/powernv/opalcall.S optional powernv powerpc/powernv/platform_powernv.c optional powernv powerpc/powernv/powernv_centaur.c optional powernv powerpc/powernv/powernv_xscom.c optional powernv powerpc/powernv/xive.c optional powernv powerpc/powerpc/altivec.c optional !powerpcspe powerpc/powerpc/autoconf.c standard powerpc/powerpc/bus_machdep.c standard powerpc/powerpc/busdma_machdep.c standard powerpc/powerpc/clock.c standard powerpc/powerpc/copyinout.c optional aim powerpc/powerpc/cpu.c standard powerpc/powerpc/cpu_subr64.S optional powerpc64 | powerpc64le powerpc/powerpc/db_disasm.c optional ddb powerpc/powerpc/db_hwwatch.c optional ddb powerpc/powerpc/db_interface.c optional ddb powerpc/powerpc/db_trace.c optional ddb powerpc/powerpc/dump_machdep.c standard powerpc/powerpc/elf32_machdep.c optional powerpc | powerpcspe | compat_freebsd32 powerpc/powerpc/elf64_machdep.c optional powerpc64 | powerpc64le powerpc/powerpc/exec_machdep.c standard powerpc/powerpc/fpu.c standard powerpc/powerpc/gdb_machdep.c optional gdb powerpc/powerpc/interrupt.c standard powerpc/powerpc/intr_machdep.c standard powerpc/powerpc/iommu_if.m standard powerpc/powerpc/machdep.c standard powerpc/powerpc/mem.c optional mem powerpc/powerpc/minidump_machdep.c optional powerpc64 | powerpc64le powerpc/powerpc/mp_machdep.c optional smp powerpc/powerpc/nexus.c standard powerpc/powerpc/openpic.c standard powerpc/powerpc/pic_if.m standard powerpc/powerpc/pmap_dispatch.c standard powerpc/powerpc/platform.c standard powerpc/powerpc/platform_if.m standard powerpc/powerpc/ptrace_machdep.c standard powerpc/powerpc/sc_machdep.c optional sc powerpc/powerpc/setjmp.S standard powerpc/powerpc/sigcode32.S optional powerpc | powerpcspe | compat_freebsd32 powerpc/powerpc/sigcode64.S optional powerpc64 | powerpc64le powerpc/powerpc/swtch32.S optional powerpc | powerpcspe powerpc/powerpc/swtch64.S optional powerpc64 | powerpc64le powerpc/powerpc/stack_machdep.c optional ddb | stack powerpc/powerpc/support.S optional powerpc64 | powerpc64le | booke powerpc/powerpc/syncicache.c standard powerpc/powerpc/sys_machdep.c standard powerpc/powerpc/trap.c standard powerpc/powerpc/uio_machdep.c standard powerpc/powerpc/uma_machdep.c standard powerpc/powerpc/vm_machdep.c standard powerpc/ps3/ehci_ps3.c optional ps3 ehci powerpc/ps3/ohci_ps3.c optional ps3 ohci powerpc/ps3/if_glc.c optional ps3 glc powerpc/ps3/mmu_ps3.c optional ps3 powerpc/ps3/platform_ps3.c optional ps3 powerpc/ps3/ps3bus.c optional ps3 powerpc/ps3/ps3cdrom.c optional ps3 scbus powerpc/ps3/ps3disk.c optional ps3 powerpc/ps3/ps3pic.c optional ps3 powerpc/ps3/ps3_syscons.c optional ps3 vt powerpc/ps3/ps3-hvcall.S optional ps3 powerpc/pseries/phyp-hvcall.S optional pseries powerpc64 | pseries powerpc64le powerpc/pseries/mmu_phyp.c optional pseries powerpc64 | pseries powerpc64le powerpc/pseries/phyp_console.c optional pseries powerpc64 uart | pseries powerpc64le uart powerpc/pseries/phyp_dbg.c optional pseries powerpc64 gdb | pseries powerpc64le gdb powerpc/pseries/phyp_llan.c optional llan powerpc/pseries/phyp_vscsi.c optional pseries powerpc64 scbus | pseries powerpc64le scbus powerpc/pseries/platform_chrp.c optional pseries powerpc/pseries/plpar_iommu.c optional pseries powerpc64 | pseries powerpc64le powerpc/pseries/plpar_pcibus.c optional pseries powerpc64 pci | pseries powerpc64le pci powerpc/pseries/rtas_dev.c optional pseries powerpc/pseries/rtas_pci.c optional pseries pci powerpc/pseries/vdevice.c optional pseries powerpc64 | pseries powerpc64le powerpc/pseries/xics.c optional pseries powerpc64 | pseries powerpc64le powerpc/psim/iobus.c optional psim powerpc/psim/ata_iobus.c optional ata psim powerpc/psim/openpic_iobus.c optional psim powerpc/psim/uart_iobus.c optional uart psim diff --git a/sys/conf/files.riscv b/sys/conf/files.riscv index aadeb2b0917a..975f9d3f576e 100644 --- a/sys/conf/files.riscv +++ b/sys/conf/files.riscv @@ -1,74 +1,73 @@ -# $FreeBSD$ cddl/dev/dtrace/riscv/dtrace_asm.S optional dtrace compile-with "${DTRACE_S}" cddl/dev/dtrace/riscv/dtrace_subr.c optional dtrace compile-with "${DTRACE_C}" cddl/dev/dtrace/riscv/instr_size.c optional dtrace compile-with "${DTRACE_C}" cddl/dev/fbt/riscv/fbt_isa.c optional dtrace_fbt | dtraceall compile-with "${FBT_C}" crypto/des/des_enc.c optional netsmb dev/ofw/ofw_cpu.c optional fdt dev/ofw/ofw_pcib.c optional pci fdt dev/pci/pci_dw.c optional pci fdt dev/pci/pci_dw_if.m optional pci fdt dev/pci/pci_host_generic.c optional pci dev/pci/pci_host_generic_fdt.c optional pci fdt dev/uart/uart_cpu_fdt.c optional uart fdt dev/uart/uart_dev_lowrisc.c optional uart_lowrisc dev/xilinx/axi_quad_spi.c optional xilinx_spi dev/xilinx/axidma.c optional axidma xdma dev/xilinx/if_xae.c optional xae dev/xilinx/xlnx_pcib.c optional pci fdt xlnx_pcib kern/msi_if.m standard kern/pic_if.m standard kern/subr_devmap.c standard kern/subr_dummy_vdso_tc.c standard kern/subr_intr.c standard kern/subr_physmem.c standard libkern/bcopy.c standard libkern/memcmp.c standard libkern/memset.c standard libkern/strcmp.c standard libkern/strlen.c standard libkern/strncmp.c standard riscv/riscv/autoconf.c standard riscv/riscv/bus_machdep.c standard riscv/riscv/bus_space_asm.S standard riscv/riscv/busdma_bounce.c standard riscv/riscv/busdma_machdep.c standard riscv/riscv/clock.c standard riscv/riscv/copyinout.S standard riscv/riscv/cpufunc_asm.S standard riscv/riscv/db_disasm.c optional ddb riscv/riscv/db_interface.c optional ddb riscv/riscv/db_trace.c optional ddb riscv/riscv/dump_machdep.c standard riscv/riscv/elf_machdep.c standard riscv/riscv/exception.S standard riscv/riscv/exec_machdep.c standard riscv/riscv/gdb_machdep.c optional gdb riscv/riscv/intr_machdep.c standard riscv/riscv/identcpu.c standard riscv/riscv/locore.S standard no-obj riscv/riscv/machdep.c standard riscv/riscv/minidump_machdep.c standard riscv/riscv/mp_machdep.c optional smp riscv/riscv/mem.c standard riscv/riscv/nexus.c standard riscv/riscv/ofw_machdep.c optional fdt riscv/riscv/plic.c standard riscv/riscv/pmap.c standard riscv/riscv/ptrace_machdep.c standard riscv/riscv/riscv_console.c optional rcons riscv/riscv/riscv_syscon.c optional syscon riscv_syscon fdt riscv/riscv/sbi.c standard riscv/riscv/stack_machdep.c optional ddb | stack riscv/riscv/support.S standard riscv/riscv/swtch.S standard riscv/riscv/sys_machdep.c standard riscv/riscv/trap.c standard riscv/riscv/timer.c standard riscv/riscv/uio_machdep.c standard riscv/riscv/uma_machdep.c standard riscv/riscv/unwind.c optional ddb | kdtrace_hooks | stack riscv/riscv/vm_machdep.c standard # Zstd contrib/zstd/lib/freebsd/zstd_kfreebsd.c optional zstdio compile-with ${ZSTD_C} diff --git a/sys/conf/files.x86 b/sys/conf/files.x86 index 7f455b4c9bb3..c3e67def1688 100644 --- a/sys/conf/files.x86 +++ b/sys/conf/files.x86 @@ -1,352 +1,351 @@ # This file tells config what files go into building a kernel, # files marked standard are always included. # -# $FreeBSD$ # # This file contains all the x86 devices and such that are # common between i386 and amd64, but aren't applicable to # any other architecture we support. # # The long compile-with and dependency lines are required because of # limitations in config: backslash-newline doesn't work in strings, and # dependency lines other than the first are silently ignored. # atkbdmap.h optional atkbd_dflt_keymap \ compile-with "${KEYMAP} -L ${ATKBD_DFLT_KEYMAP} | ${KEYMAP_FIX} > ${.TARGET}" \ no-obj no-implicit-rule before-depend \ clean "atkbdmap.h" cddl/dev/fbt/x86/fbt_isa.c optional dtrace_fbt | dtraceall compile-with "${FBT_C}" cddl/dev/dtrace/x86/dis_tables.c optional dtrace_fbt | dtraceall compile-with "${DTRACE_C}" cddl/dev/dtrace/x86/instr_size.c optional dtrace_fbt | dtraceall compile-with "${DTRACE_C}" crypto/aesni/aesni.c optional aesni aesni_ghash.o optional aesni \ dependency "$S/crypto/aesni/aesni_ghash.c" \ compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${NO_WCAST_QUAL} -mmmx -msse -msse4 -maes -mpclmul ${.IMPSRC}" \ no-implicit-rule \ clean "aesni_ghash.o" aesni_ccm.o optional aesni \ dependency "$S/crypto/aesni/aesni_ccm.c" \ compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${NO_WCAST_QUAL} -mmmx -msse -msse4 -maes -mpclmul ${.IMPSRC}" \ no-implicit-rule \ clean "aesni_ccm.o" aesni_wrap.o optional aesni \ dependency "$S/crypto/aesni/aesni_wrap.c" \ compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${NO_WCAST_QUAL} -mmmx -msse -msse4 -maes ${.IMPSRC}" \ no-implicit-rule \ clean "aesni_wrap.o" intel_sha1.o optional aesni \ dependency "$S/crypto/aesni/intel_sha1.c" \ compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} -mmmx -msse -msse4 -msha ${.IMPSRC}" \ no-implicit-rule \ clean "intel_sha1.o" intel_sha256.o optional aesni \ dependency "$S/crypto/aesni/intel_sha256.c" \ compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} -mmmx -msse -msse4 -msha ${.IMPSRC}" \ no-implicit-rule \ clean "intel_sha256.o" crypto/openssl/ossl_x86.c optional ossl crypto/via/padlock.c optional padlock crypto/via/padlock_cipher.c optional padlock crypto/via/padlock_hash.c optional padlock dev/acpica/acpi_hpet.c optional acpi dev/acpica/acpi_if.m standard dev/acpica/acpi_pci.c optional acpi pci dev/acpica/acpi_pci_link.c optional acpi pci dev/acpica/acpi_pcib.c optional acpi pci dev/acpica/acpi_pcib_acpi.c optional acpi pci dev/acpica/acpi_pcib_pci.c optional acpi pci dev/acpica/acpi_pxm.c optional acpi dev/acpica/acpi_timer.c optional acpi dev/amdsbwd/amdsbwd.c optional amdsbwd dev/amdsmn/amdsmn.c optional amdsmn | amdtemp dev/amdtemp/amdtemp.c optional amdtemp dev/arcmsr/arcmsr.c optional arcmsr pci dev/asmc/asmc.c optional asmc isa dev/atkbdc/atkbd.c optional atkbd atkbdc dev/atkbdc/atkbd_atkbdc.c optional atkbd atkbdc dev/atkbdc/atkbdc.c optional atkbdc dev/atkbdc/atkbdc_isa.c optional atkbdc isa dev/atkbdc/atkbdc_subr.c optional atkbdc dev/atkbdc/psm.c optional psm atkbdc dev/bxe/bxe.c optional bxe pci dev/bxe/bxe_stats.c optional bxe pci dev/bxe/bxe_debug.c optional bxe pci dev/bxe/ecore_sp.c optional bxe pci dev/bxe/bxe_elink.c optional bxe pci dev/bxe/57710_init_values.c optional bxe pci dev/bxe/57711_init_values.c optional bxe pci dev/bxe/57712_init_values.c optional bxe pci dev/coretemp/coretemp.c optional coretemp dev/cpuctl/cpuctl.c optional cpuctl dev/dpms/dpms.c optional dpms dev/fb/fb.c optional fb | vga dev/fb/s3_pci.c optional s3pci dev/fb/vesa.c optional vga vesa dev/fb/vga.c optional vga dev/fdc/fdc.c optional fdc dev/fdc/fdc_acpi.c optional fdc dev/fdc/fdc_isa.c optional fdc isa dev/gpio/bytgpio.c optional bytgpio dev/gpio/chvgpio.c optional chvgpio dev/hpt27xx/hpt27xx_os_bsd.c optional hpt27xx dev/hpt27xx/hpt27xx_osm_bsd.c optional hpt27xx dev/hpt27xx/hpt27xx_config.c optional hpt27xx dev/hpt27xx/$M-elf.hpt27xx_lib.o optional hpt27xx dev/hptmv/entry.c optional hptmv dev/hptmv/mv.c optional hptmv dev/hptmv/gui_lib.c optional hptmv dev/hptmv/hptproc.c optional hptmv dev/hptmv/ioctl.c optional hptmv dev/hptmv/$M-elf.hptmvraid.o optional hptmv dev/hptnr/hptnr_os_bsd.c optional hptnr dev/hptnr/hptnr_osm_bsd.c optional hptnr dev/hptnr/hptnr_config.c optional hptnr dev/hptnr/$M-elf.hptnr_lib.o optional hptnr dev/hptrr/hptrr_os_bsd.c optional hptrr dev/hptrr/hptrr_osm_bsd.c optional hptrr dev/hptrr/hptrr_config.c optional hptrr dev/hptrr/$M-elf.hptrr_lib.o optional hptrr dev/hwpmc/hwpmc_amd.c optional hwpmc dev/hwpmc/hwpmc_intel.c optional hwpmc dev/hwpmc/hwpmc_core.c optional hwpmc dev/hwpmc/hwpmc_uncore.c optional hwpmc dev/hwpmc/hwpmc_tsc.c optional hwpmc dev/hwpmc/hwpmc_x86.c optional hwpmc dev/hyperv/hvsock/hv_sock.c optional hyperv dev/hyperv/input/hv_hid.c optional hyperv hvhid dev/hyperv/input/hv_kbd.c optional hyperv dev/hyperv/input/hv_kbdc.c optional hyperv dev/hyperv/pcib/vmbus_pcib.c optional hyperv pci dev/hyperv/netvsc/hn_nvs.c optional hyperv dev/hyperv/netvsc/hn_rndis.c optional hyperv dev/hyperv/netvsc/if_hn.c optional hyperv dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c optional hyperv dev/hyperv/utilities/hv_kvp.c optional hyperv dev/hyperv/utilities/hv_snapshot.c optional hyperv dev/hyperv/utilities/vmbus_heartbeat.c optional hyperv dev/hyperv/utilities/vmbus_ic.c optional hyperv dev/hyperv/utilities/vmbus_shutdown.c optional hyperv dev/hyperv/utilities/vmbus_timesync.c optional hyperv dev/hyperv/vmbus/hyperv.c optional hyperv dev/hyperv/vmbus/x86/hyperv_x86.c optional hyperv dev/hyperv/vmbus/x86/vmbus_x86.c optional hyperv dev/hyperv/vmbus/hyperv_busdma.c optional hyperv dev/hyperv/vmbus/vmbus.c optional hyperv pci dev/hyperv/vmbus/vmbus_br.c optional hyperv dev/hyperv/vmbus/vmbus_chan.c optional hyperv dev/hyperv/vmbus/vmbus_et.c optional hyperv dev/hyperv/vmbus/vmbus_if.m optional hyperv dev/hyperv/vmbus/vmbus_res.c optional hyperv dev/hyperv/vmbus/vmbus_xact.c optional hyperv dev/ichwd/ichwd.c optional ichwd dev/imcsmb/imcsmb.c optional imcsmb dev/imcsmb/imcsmb_pci.c optional imcsmb pci dev/intel/pchtherm.c optional pchtherm dev/intel/spi.c optional intelspi dev/intel/spi_pci.c optional intelspi pci dev/intel/spi_acpi.c optional intelspi acpi dev/io/iodev.c optional io dev/iommu/busdma_iommu.c optional acpi iommu pci dev/iommu/iommu_gas.c optional acpi iommu pci dev/ipmi/ipmi.c optional ipmi dev/ipmi/ipmi_acpi.c optional ipmi acpi dev/ipmi/ipmi_isa.c optional ipmi isa dev/ipmi/ipmi_bt.c optional ipmi dev/ipmi/ipmi_kcs.c optional ipmi dev/ipmi/ipmi_smic.c optional ipmi dev/ipmi/ipmi_smbus.c optional ipmi smbus dev/ipmi/ipmi_smbios.c optional ipmi dev/ipmi/ipmi_ssif.c optional ipmi smbus dev/ipmi/ipmi_pci.c optional ipmi pci dev/isci/isci.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/isci_controller.c optional isci dev/isci/isci_domain.c optional isci dev/isci/isci_interrupt.c optional isci dev/isci/isci_io_request.c optional isci dev/isci/isci_logger.c optional isci dev/isci/isci_oem_parameters.c optional isci dev/isci/isci_remote_device.c optional isci dev/isci/isci_sysctl.c optional isci dev/isci/isci_task_request.c optional isci dev/isci/isci_timer.c optional isci dev/isci/scil/sati.c optional isci dev/isci/scil/sati_abort_task_set.c optional isci dev/isci/scil/sati_atapi.c optional isci dev/isci/scil/sati_device.c optional isci dev/isci/scil/sati_inquiry.c optional isci dev/isci/scil/sati_log_sense.c optional isci dev/isci/scil/sati_lun_reset.c optional isci dev/isci/scil/sati_mode_pages.c optional isci dev/isci/scil/sati_mode_select.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/sati_mode_sense.c optional isci dev/isci/scil/sati_mode_sense_10.c optional isci dev/isci/scil/sati_mode_sense_6.c optional isci dev/isci/scil/sati_move.c optional isci dev/isci/scil/sati_passthrough.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/sati_read.c optional isci dev/isci/scil/sati_read_buffer.c optional isci dev/isci/scil/sati_read_capacity.c optional isci dev/isci/scil/sati_reassign_blocks.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/sati_report_luns.c optional isci dev/isci/scil/sati_request_sense.c optional isci dev/isci/scil/sati_start_stop_unit.c optional isci dev/isci/scil/sati_synchronize_cache.c optional isci dev/isci/scil/sati_test_unit_ready.c optional isci dev/isci/scil/sati_unmap.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/sati_util.c optional isci dev/isci/scil/sati_verify.c optional isci dev/isci/scil/sati_write.c optional isci dev/isci/scil/sati_write_and_verify.c optional isci dev/isci/scil/sati_write_buffer.c optional isci dev/isci/scil/sati_write_long.c optional isci dev/isci/scil/sci_abstract_list.c optional isci dev/isci/scil/sci_base_controller.c optional isci dev/isci/scil/sci_base_domain.c optional isci dev/isci/scil/sci_base_iterator.c optional isci dev/isci/scil/sci_base_library.c optional isci dev/isci/scil/sci_base_logger.c optional isci dev/isci/scil/sci_base_memory_descriptor_list.c optional isci dev/isci/scil/sci_base_memory_descriptor_list_decorator.c optional isci dev/isci/scil/sci_base_object.c optional isci dev/isci/scil/sci_base_observer.c optional isci dev/isci/scil/sci_base_phy.c optional isci dev/isci/scil/sci_base_port.c optional isci dev/isci/scil/sci_base_remote_device.c optional isci dev/isci/scil/sci_base_request.c optional isci dev/isci/scil/sci_base_state_machine.c optional isci dev/isci/scil/sci_base_state_machine_logger.c optional isci dev/isci/scil/sci_base_state_machine_observer.c optional isci dev/isci/scil/sci_base_subject.c optional isci dev/isci/scil/sci_util.c optional isci dev/isci/scil/scic_sds_controller.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/scic_sds_library.c optional isci dev/isci/scil/scic_sds_pci.c optional isci dev/isci/scil/scic_sds_phy.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/scic_sds_port.c optional isci dev/isci/scil/scic_sds_port_configuration_agent.c optional isci dev/isci/scil/scic_sds_remote_device.c optional isci dev/isci/scil/scic_sds_remote_node_context.c optional isci dev/isci/scil/scic_sds_remote_node_table.c optional isci dev/isci/scil/scic_sds_request.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/scic_sds_sgpio.c optional isci dev/isci/scil/scic_sds_smp_remote_device.c optional isci dev/isci/scil/scic_sds_smp_request.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/scic_sds_ssp_request.c optional isci dev/isci/scil/scic_sds_stp_packet_request.c optional isci dev/isci/scil/scic_sds_stp_remote_device.c optional isci dev/isci/scil/scic_sds_stp_request.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/scic_sds_unsolicited_frame_control.c optional isci dev/isci/scil/scif_sas_controller.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/scif_sas_controller_state_handlers.c optional isci dev/isci/scil/scif_sas_controller_states.c optional isci dev/isci/scil/scif_sas_domain.c optional isci dev/isci/scil/scif_sas_domain_state_handlers.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/scif_sas_domain_states.c optional isci dev/isci/scil/scif_sas_high_priority_request_queue.c optional isci dev/isci/scil/scif_sas_internal_io_request.c optional isci dev/isci/scil/scif_sas_io_request.c optional isci dev/isci/scil/scif_sas_io_request_state_handlers.c optional isci dev/isci/scil/scif_sas_io_request_states.c optional isci dev/isci/scil/scif_sas_library.c optional isci dev/isci/scil/scif_sas_remote_device.c optional isci dev/isci/scil/scif_sas_remote_device_ready_substate_handlers.c optional isci dev/isci/scil/scif_sas_remote_device_ready_substates.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/scif_sas_remote_device_starting_substate_handlers.c optional isci dev/isci/scil/scif_sas_remote_device_starting_substates.c optional isci dev/isci/scil/scif_sas_remote_device_state_handlers.c optional isci dev/isci/scil/scif_sas_remote_device_states.c optional isci dev/isci/scil/scif_sas_request.c optional isci dev/isci/scil/scif_sas_smp_activity_clear_affiliation.c optional isci dev/isci/scil/scif_sas_smp_io_request.c optional isci dev/isci/scil/scif_sas_smp_phy.c optional isci dev/isci/scil/scif_sas_smp_remote_device.c optional isci \ compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" dev/isci/scil/scif_sas_stp_io_request.c optional isci dev/isci/scil/scif_sas_stp_remote_device.c optional isci dev/isci/scil/scif_sas_stp_task_request.c optional isci dev/isci/scil/scif_sas_task_request.c optional isci dev/isci/scil/scif_sas_task_request_state_handlers.c optional isci dev/isci/scil/scif_sas_task_request_states.c optional isci dev/isci/scil/scif_sas_timer.c optional isci dev/itwd/itwd.c optional itwd dev/kvm_clock/kvm_clock.c optional kvm_clock dev/mana/gdma_main.c optional mana dev/mana/mana_en.c optional mana dev/mana/mana_sysctl.c optional mana dev/mana/shm_channel.c optional mana dev/mana/hw_channel.c optional mana dev/mana/gdma_util.c optional mana dev/qat_c2xxx/qat.c optional qat_c2xxx dev/qat_c2xxx/qat_ae.c optional qat_c2xxx dev/qat_c2xxx/qat_c2xxx.c optional qat_c2xxx dev/qat_c2xxx/qat_hw15.c optional qat_c2xxx dev/smbios/smbios_subr.c standard libkern/strcmp.c standard libkern/strncmp.c standard libkern/x86/crc32_sse42.c standard # # x86 shared code between IA32 and AMD64 architectures # x86/acpica/OsdEnvironment.c optional acpi x86/acpica/acpi_apm.c optional acpi x86/acpica/srat.c optional acpi x86/bios/vpd.c optional vpd x86/cpufreq/est.c optional cpufreq x86/cpufreq/hwpstate_amd.c optional cpufreq x86/cpufreq/hwpstate_intel.c optional cpufreq x86/cpufreq/p4tcc.c optional cpufreq x86/cpufreq/powernow.c optional cpufreq x86/iommu/intel_ctx.c optional acpi iommu pci x86/iommu/intel_drv.c optional acpi iommu pci x86/iommu/intel_fault.c optional acpi iommu pci x86/iommu/intel_idpgtbl.c optional acpi iommu pci x86/iommu/intel_intrmap.c optional acpi iommu pci x86/iommu/intel_qi.c optional acpi iommu pci x86/iommu/intel_quirks.c optional acpi iommu pci x86/iommu/intel_utils.c optional acpi iommu pci x86/isa/atrtc.c standard x86/isa/clock.c standard x86/isa/isa.c optional isa x86/isa/isa_dma.c optional isa x86/isa/nmi.c standard x86/isa/orm.c optional isa x86/pci/pci_bus.c optional pci x86/pci/qpi.c optional pci x86/x86/autoconf.c standard x86/x86/bus_machdep.c standard x86/x86/busdma_bounce.c standard x86/x86/busdma_machdep.c standard x86/x86/cpu_machdep.c standard x86/x86/dbreg.c optional ddb | gdb x86/x86/dump_machdep.c standard x86/x86/fdt_machdep.c optional fdt x86/x86/identcpu.c standard x86/x86/intr_machdep.c standard x86/x86/legacy.c standard x86/x86/mca.c standard x86/x86/x86_mem.c optional mem x86/x86/mp_x86.c optional smp x86/x86/nexus.c standard x86/x86/pvclock.c optional kvm_clock | xenhvm x86/x86/stack_machdep.c optional ddb | stack x86/x86/tsc.c standard x86/x86/ucode.c standard x86/x86/delay.c standard x86/xen/hvm.c optional xenhvm x86/xen/xen_apic.c optional xenhvm smp x86/xen/xen_arch_intr.c optional xenhvm diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 51bbfcbaa617..dcaacbf831cb 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -1,328 +1,327 @@ -# $FreeBSD$ # # Warning flags for compiling the kernel and components of the kernel: # CWARNFLAGS?= -Wall -Wstrict-prototypes \ -Wmissing-prototypes -Wpointer-arith -Wcast-qual \ -Wundef -Wno-pointer-sign ${FORMAT_EXTENSIONS} \ -Wmissing-include-dirs -fdiagnostics-show-option \ -Wno-unknown-pragmas \ ${CWARNEXTRA} # # The following flags are next up for working on: # -Wextra # Disable a few warnings for clang, since there are several places in the # kernel where fixing them is more trouble than it is worth, or where there is # a false positive. .if ${COMPILER_TYPE} == "clang" NO_WCONSTANT_CONVERSION= -Wno-error=constant-conversion NO_WSHIFT_COUNT_NEGATIVE= -Wno-shift-count-negative NO_WSHIFT_COUNT_OVERFLOW= -Wno-shift-count-overflow NO_WSELF_ASSIGN= -Wno-self-assign NO_WUNNEEDED_INTERNAL_DECL= -Wno-error=unneeded-internal-declaration NO_WSOMETIMES_UNINITIALIZED= -Wno-error=sometimes-uninitialized NO_WCAST_QUAL= -Wno-error=cast-qual NO_WTAUTOLOGICAL_POINTER_COMPARE= -Wno-tautological-pointer-compare .if ${COMPILER_VERSION} >= 100000 NO_WMISLEADING_INDENTATION= -Wno-misleading-indentation .endif .if ${COMPILER_VERSION} >= 130000 NO_WUNUSED_BUT_SET_VARIABLE= -Wno-unused-but-set-variable .endif .if ${COMPILER_VERSION} >= 140000 NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical .endif .if ${COMPILER_VERSION} >= 150000 NO_WSTRICT_PROTOTYPES= -Wno-strict-prototypes NO_WDEPRECATED_NON_PROTOTYPE= -Wno-deprecated-non-prototype .endif # Several other warnings which might be useful in some cases, but not severe # enough to error out the whole kernel build. Display them anyway, so there is # some incentive to fix them eventually. CWARNEXTRA?= -Wno-error=tautological-compare -Wno-error=empty-body \ -Wno-error=parentheses-equality -Wno-error=unused-function \ -Wno-error=pointer-sign CWARNEXTRA+= -Wno-error=shift-negative-value CWARNEXTRA+= -Wno-address-of-packed-member .endif # clang .if ${COMPILER_TYPE} == "gcc" # Catch-all for all the things that are in our tree, but for which we're # not yet ready for this compiler. NO_WUNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable CWARNEXTRA?= -Wno-error=address \ -Wno-error=aggressive-loop-optimizations \ -Wno-error=array-bounds \ -Wno-error=attributes \ -Wno-error=cast-qual \ -Wno-error=enum-compare \ -Wno-error=maybe-uninitialized \ -Wno-error=misleading-indentation \ -Wno-error=nonnull-compare \ -Wno-error=overflow \ -Wno-error=sequence-point \ -Wno-error=shift-overflow \ -Wno-error=tautological-compare \ -Wno-error=unused-function .if ${COMPILER_VERSION} >= 70100 CWARNEXTRA+= -Wno-error=stringop-overflow .endif .if ${COMPILER_VERSION} >= 70200 CWARNEXTRA+= -Wno-error=memset-elt-size .endif .if ${COMPILER_VERSION} >= 80000 CWARNEXTRA+= -Wno-error=packed-not-aligned .endif .if ${COMPILER_VERSION} >= 90100 CWARNEXTRA+= -Wno-address-of-packed-member \ -Wno-error=alloca-larger-than= .if ${COMPILER_VERSION} >= 120100 CWARNEXTRA+= -Wno-error=nonnull \ -Wno-dangling-pointer \ -Wno-zero-length-bounds NO_WINFINITE_RECURSION= -Wno-infinite-recursion NO_WSTRINGOP_OVERREAD= -Wno-stringop-overread .endif .endif # GCC produces false positives for functions that switch on an # enum (GCC bug 87950) CWARNFLAGS+= -Wno-return-type .endif # gcc # This warning is utter nonsense CWARNFLAGS+= -Wno-format-zero-length # External compilers may not support our format extensions. Allow them # to be disabled. WARNING: format checking is disabled in this case. .if ${MK_FORMAT_EXTENSIONS} == "no" FORMAT_EXTENSIONS= -Wno-format .elif ${COMPILER_TYPE} == "clang" || \ (${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120100) FORMAT_EXTENSIONS= -D__printf__=__freebsd_kprintf__ .else FORMAT_EXTENSIONS= -fformat-extensions .endif # # On i386, do not align the stack to 16-byte boundaries. Otherwise GCC 2.95 # and above adds code to the entry and exit point of every function to align the # stack to 16-byte boundaries -- thus wasting approximately 12 bytes of stack # per function call. While the 16-byte alignment may benefit micro benchmarks, # it is probably an overall loss as it makes the code bigger (less efficient # use of code cache tag lines) and uses more stack (less efficient use of data # cache tag lines). Explicitly prohibit the use of FPU, SSE and other SIMD # operations inside the kernel itself. These operations are exclusively # reserved for user applications. # # gcc: # Setting -mno-mmx implies -mno-3dnow # Setting -mno-sse implies -mno-sse2, -mno-sse3 and -mno-ssse3 # # clang: # Setting -mno-mmx implies -mno-3dnow and -mno-3dnowa # Setting -mno-sse implies -mno-sse2, -mno-sse3, -mno-ssse3, -mno-sse41 and -mno-sse42 # .if ${MACHINE_CPUARCH} == "i386" CFLAGS.gcc+= -mpreferred-stack-boundary=2 CFLAGS.clang+= -mno-aes -mno-avx CFLAGS+= -mno-mmx -mno-sse -msoft-float INLINE_LIMIT?= 8000 .endif .if ${MACHINE_CPUARCH} == "arm" INLINE_LIMIT?= 8000 .endif .if ${MACHINE_CPUARCH} == "aarch64" # We generally don't want fpu instructions in the kernel. CFLAGS += -mgeneral-regs-only # Reserve x18 for pcpu data CFLAGS += -ffixed-x18 INLINE_LIMIT?= 8000 .endif # # For RISC-V we specify the soft-float ABI (lp64) to avoid the use of floating # point registers within the kernel. However, we include the F and D extensions # in -march so we can have limited floating point support in context switching # code. This is different than userland where we use a hard-float ABI (lp64d). # # We also specify the "medium" code model, which generates code suitable for a # 2GiB addressing range located at any offset, allowing modules to be located # anywhere in the 64-bit address space. Note that clang and GCC refer to this # code model as "medium" and "medany" respectively. # .if ${MACHINE_CPUARCH} == "riscv" CFLAGS+= -march=rv64imafdc CFLAGS+= -mabi=lp64 CFLAGS.clang+= -mcmodel=medium CFLAGS.gcc+= -mcmodel=medany INLINE_LIMIT?= 8000 .if ${LINKER_FEATURES:Mriscv-relaxations} == "" CFLAGS+= -mno-relax .endif .endif # # For AMD64, we explicitly prohibit the use of FPU, SSE and other SIMD # operations inside the kernel itself. These operations are exclusively # reserved for user applications. # # gcc: # Setting -mno-mmx implies -mno-3dnow # Setting -mno-sse implies -mno-sse2, -mno-sse3, -mno-ssse3 and -mfpmath=387 # # clang: # Setting -mno-mmx implies -mno-3dnow and -mno-3dnowa # Setting -mno-sse implies -mno-sse2, -mno-sse3, -mno-ssse3, -mno-sse41 and -mno-sse42 # (-mfpmath= is not supported) # .if ${MACHINE_CPUARCH} == "amd64" CFLAGS.clang+= -mno-aes -mno-avx CFLAGS+= -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float \ -fno-asynchronous-unwind-tables INLINE_LIMIT?= 8000 .endif # # For PowerPC we tell gcc to use floating point emulation. This avoids using # floating point registers for integer operations which it has a tendency to do. # Also explicitly disable Altivec instructions inside the kernel. # .if ${MACHINE_CPUARCH} == "powerpc" CFLAGS+= -mno-altivec -msoft-float INLINE_LIMIT?= 15000 .endif .if ${MACHINE_ARCH} == "powerpcspe" CFLAGS.gcc+= -mno-spe .endif # # Use dot symbols (or, better, the V2 ELF ABI) on powerpc64 to make # DDB happy. ELFv2, if available, has some other efficiency benefits. # .if ${MACHINE_ARCH:Mpowerpc64*} != "" && \ ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 160000 CFLAGS+= -mabi=elfv2 .endif # # GCC 3.0 and above like to do certain optimizations based on the # assumption that the program is linked against libc. Stop this. # CFLAGS+= -ffreestanding # # The C standard leaves signed integer overflow behavior undefined. # gcc and clang opimizers take advantage of this. The kernel makes # use of signed integer wraparound mechanics so we need the compiler # to treat it as a wraparound and not take shortcuts. # CFLAGS+= -fwrapv # # GCC SSP support # .if ${MK_SSP} != "no" CFLAGS+= -fstack-protector .endif # # Retpoline speculative execution vulnerability mitigation (CVE-2017-5715) # .if defined(COMPILER_FEATURES) && ${COMPILER_FEATURES:Mretpoline} != "" && \ ${MK_KERNEL_RETPOLINE} != "no" CFLAGS+= -mretpoline .endif # # Initialize stack variables on function entry # .if ${MK_INIT_ALL_ZERO} == "yes" .if ${COMPILER_FEATURES:Minit-all} CFLAGS+= -ftrivial-auto-var-init=zero .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 160000 CFLAGS+= -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang .endif .else .warning InitAll (zeros) requested but not supported by compiler .endif .elif ${MK_INIT_ALL_PATTERN} == "yes" .if ${COMPILER_FEATURES:Minit-all} CFLAGS+= -ftrivial-auto-var-init=pattern .else .warning InitAll (pattern) requested but not support by compiler .endif .endif CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${.IMPSRC:T}} CFLAGS+= ${CWARNFLAGS.${COMPILER_TYPE}} CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} ${CFLAGS.${.IMPSRC:T}} # Tell bmake not to mistake standard targets for things to be searched for # or expect to ever be up-to-date. PHONY_NOTMAIN = afterdepend afterinstall all beforedepend beforeinstall \ beforelinking build build-tools buildfiles buildincludes \ checkdpadd clean cleandepend cleandir cleanobj configure \ depend distclean distribute exe \ html includes install installfiles installincludes \ obj objlink objs objwarn \ realinstall regress \ tags whereobj .PHONY: ${PHONY_NOTMAIN} .NOTMAIN: ${PHONY_NOTMAIN} CSTD= gnu99 .if ${CSTD} == "k&r" CFLAGS+= -traditional .elif ${CSTD} == "c89" || ${CSTD} == "c90" CFLAGS+= -std=iso9899:1990 .elif ${CSTD} == "c94" || ${CSTD} == "c95" CFLAGS+= -std=iso9899:199409 .elif ${CSTD} == "c99" CFLAGS+= -std=iso9899:1999 .else # CSTD CFLAGS+= -std=${CSTD} .endif # CSTD # Please keep this if in sync with bsd.sys.mk .if ${LD} != "ld" && (${CC:[1]:H} != ${LD:[1]:H} || ${LD:[1]:T} != "ld") # Add -fuse-ld=${LD} if $LD is in a different directory or not called "ld". .if ${COMPILER_TYPE} == "clang" # Note: Clang does not like relative paths for ld so we map ld.lld -> lld. .if ${COMPILER_VERSION} >= 120000 CCLDFLAGS+= --ld-path=${LD:[1]:S/^ld.//1W} .else CCLDFLAGS+= -fuse-ld=${LD:[1]:S/^ld.//1W} .endif .else # GCC does not support an absolute path for -fuse-ld so we just print this # warning instead and let the user add the required symlinks. # However, we can avoid this warning if -B is set appropriately (e.g. for # CROSS_TOOLCHAIN=...-gcc). .if !(${LD:[1]:T} == "ld" && ${CC:tw:M-B${LD:[1]:H}/}) .warning LD (${LD}) is not the default linker for ${CC} but -fuse-ld= is not supported .endif .endif .endif # Set target-specific linker emulation name. LD_EMULATION_aarch64=aarch64elf LD_EMULATION_amd64=elf_x86_64_fbsd LD_EMULATION_arm=armelf_fbsd LD_EMULATION_armv6=armelf_fbsd LD_EMULATION_armv7=armelf_fbsd LD_EMULATION_i386=elf_i386_fbsd LD_EMULATION_powerpc= elf32ppc_fbsd LD_EMULATION_powerpcspe= elf32ppc_fbsd LD_EMULATION_powerpc64= elf64ppc_fbsd LD_EMULATION_powerpc64le= elf64lppc_fbsd LD_EMULATION_riscv64= elf64lriscv LD_EMULATION=${LD_EMULATION_${MACHINE_ARCH}} diff --git a/sys/conf/kern.opts.mk b/sys/conf/kern.opts.mk index e61cf9686a76..178a4db61cb2 100644 --- a/sys/conf/kern.opts.mk +++ b/sys/conf/kern.opts.mk @@ -1,192 +1,191 @@ -# $FreeBSD$ # Options set in the build system which affect the building of kernel # modules. These select which parts to compile in or out (eg INET) or which # parts to omit (eg CDDL or SOURCELESS_HOST). Some of these will cause # config.mk to define symbols in various opt_*.h files. # # Define MK_* variables (which are either "yes" or "no") for users # to set via WITH_*/WITHOUT_* in /etc/src.conf and override in the # make(1) environment. # These should be tested with `== "no"' or `!= "no"' in makefiles. # The NO_* variables should only be set by makefiles for variables # that haven't been converted over. # # Note: bsd.own.mk must be included before the rest of kern.opts.mk to make # building on 10.x and earlier work. This should be removed when that's no # longer supported since it confounds the defaults (since it uses the host's # notion of defaults rather than what's default in current when building # within sys/modules). .include # These options are used by the kernel build process (kern.mk and kmod.mk) # They have to be listed here so we can build modules outside of the # src tree. KLDXREF_CMD?= kldxref __DEFAULT_YES_OPTIONS = \ AUTOFS \ BHYVE \ BLUETOOTH \ CCD \ CDDL \ CRYPT \ CUSE \ DTRACE \ EFI \ FORMAT_EXTENSIONS \ INET \ INET6 \ IPFILTER \ IPSEC_SUPPORT \ ISCSI \ KERNEL_SYMBOLS \ NETGRAPH \ OFED \ PF \ SCTP_SUPPORT \ SOURCELESS_HOST \ SOURCELESS_UCODE \ SPLIT_KERNEL_DEBUG \ TESTS \ USB_GADGET_EXAMPLES \ ZFS __DEFAULT_NO_OPTIONS = \ BHYVE_SNAPSHOT \ EXTRA_TCP_STACKS \ INIT_ALL_PATTERN \ INIT_ALL_ZERO \ KERNEL_RETPOLINE \ RATELIMIT \ REPRODUCIBLE_BUILD \ VERIEXEC # Some options are totally broken on some architectures. We disable # them. If you need to enable them on an experimental basis, you # must change this code. # Note: These only apply to the list of modules we build by default # and sometimes what is in the opt_*.h files by default. # Kernel config files are unaffected, though some targets can be # affected by KERNEL_SYMBOLS, FORMAT_EXTENSIONS, CTF and SSP. # Things that don't work based on the CPU .if ${MACHINE} == "amd64" # PR251083 conflict between INIT_ALL_ZERO and ifunc memset BROKEN_OPTIONS+= INIT_ALL_ZERO .endif # Broken on 32-bit arm, kernel module compile errors .if ${MACHINE_CPUARCH} == "arm" BROKEN_OPTIONS+= OFED .endif # Things that don't work based on toolchain support. .if ${MACHINE} != "i386" && ${MACHINE} != "amd64" BROKEN_OPTIONS+= KERNEL_RETPOLINE .endif # EFI doesn't exist on powerpc or riscv and is broken on i386 .if ${MACHINE:Mpowerpc} || ${MACHINE:Mriscv} || ${MACHINE} == "i386" BROKEN_OPTIONS+=EFI .endif .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" __DEFAULT_NO_OPTIONS += FDT .else __DEFAULT_YES_OPTIONS += FDT .endif # expanded inline from bsd.mkopt.mk to avoid share/mk dependency # Those that default to yes .for var in ${__DEFAULT_YES_OPTIONS} .if !defined(MK_${var}) .if defined(WITHOUT_${var}) # WITHOUT always wins MK_${var}:= no .else MK_${var}:= yes .endif .else .if ${MK_${var}} != "yes" && ${MK_${var}} != "no" .error "Illegal value for MK_${var}: ${MK_${var}}" .endif .endif # !defined(MK_${var}) .endfor .undef __DEFAULT_YES_OPTIONS # Those that default to no .for var in ${__DEFAULT_NO_OPTIONS} .if !defined(MK_${var}) .if defined(WITH_${var}) && !defined(WITHOUT_${var}) # WITHOUT always wins MK_${var}:= yes .else MK_${var}:= no .endif .else .if ${MK_${var}} != "yes" && ${MK_${var}} != "no" .error "Illegal value for MK_${var}: ${MK_${var}}" .endif .endif # !defined(MK_${var}) .endfor .undef __DEFAULT_NO_OPTIONS # # MK_* options which are always no, usually because they are # unsupported/badly broken on this architecture. # .for var in ${BROKEN_OPTIONS} MK_${var}:= no .endfor .undef BROKEN_OPTIONS #end of bsd.mkopt.mk expanded inline. # # MK_*_SUPPORT options which default to "yes" unless their corresponding # MK_* variable is set to "no". # .for var in \ INET \ INET6 .if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no" MK_${var}_SUPPORT:= no .else .if defined(KERNBUILDDIR) # See if there's an opt_foo.h .if !defined(OPT_${var}) OPT_${var}!= cat ${KERNBUILDDIR}/opt_${var:tl}.h; echo .export OPT_${var} .endif .if ${OPT_${var}} == "" # nothing -> no MK_${var}_SUPPORT:= no .else MK_${var}_SUPPORT:= yes .endif .else # otherwise, yes MK_${var}_SUPPORT:= yes .endif .endif .endfor .if ${MK_SPLIT_KERNEL_DEBUG} == "no" MK_KERNEL_SYMBOLS:= no .endif .if ${MK_CDDL} == "no" MK_DTRACE:= no .endif # Some modules only compile successfully if option FDT is set, due to #ifdef FDT # wrapped around declarations. Module makefiles can optionally compile such # things using .if !empty(OPT_FDT) .if !defined(OPT_FDT) && defined(KERNBUILDDIR) OPT_FDT!= sed -n '/FDT/p' ${KERNBUILDDIR}/opt_platform.h .export OPT_FDT .if empty(OPT_FDT) MK_FDT:=no .else MK_FDT:=yes .endif .endif diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 5a9ac7ad2ed3..a4eb2e94a47b 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -1,474 +1,473 @@ -# $FreeBSD$ # Part of a unified Makefile for building kernels. This part includes all # the definitions that need to be after all the % directives except %RULES # and ones that act like they are part of %RULES. # # Most make variables should not be defined in this file. Instead, they # should be defined in the kern.pre.mk so that port makefiles can # override or augment them. .if defined(DTS) || defined(DTSO) || defined(FDT_DTS_FILE) .include "dtb.build.mk" KERNEL_EXTRA+= ${DTB} ${DTBO} CLEAN+= ${DTB} ${DTBO} kernel-install: _dtbinstall .ORDER: beforeinstall _dtbinstall .endif # In case the config had a makeoptions DESTDIR... .if defined(DESTDIR) MKMODULESENV+= DESTDIR="${DESTDIR}" .endif SYSDIR?= ${S:C;^[^/];${.CURDIR}/&;:tA} MKMODULESENV+= KERNBUILDDIR="${.CURDIR}" SYSDIR="${SYSDIR}" MKMODULESENV+= MODULE_TIED=yes .if defined(CONF_CFLAGS) MKMODULESENV+= CONF_CFLAGS="${CONF_CFLAGS}" .endif .if defined(WITH_CTF) MKMODULESENV+= WITH_CTF="${WITH_CTF}" .endif .if defined(WITH_EXTRA_TCP_STACKS) MKMODULESENV+= WITH_EXTRA_TCP_STACKS="${WITH_EXTRA_TCP_STACKS}" .endif .if !empty(KCSAN_ENABLED) MKMODULESENV+= KCSAN_ENABLED="yes" .endif .if defined(SAN_CFLAGS) MKMODULESENV+= SAN_CFLAGS="${SAN_CFLAGS}" .endif .if defined(GCOV_CFLAGS) MKMODULESENV+= GCOV_CFLAGS="${GCOV_CFLAGS}" .endif .if !empty(COMPAT_FREEBSD32_ENABLED) MKMODULESENV+= COMPAT_FREEBSD32_ENABLED="yes" .endif # Allow overriding the kernel debug directory, so kernel and user debug may be # installed in different directories. Setting it to "" restores the historical # behavior of installing debug files in the kernel directory. KERN_DEBUGDIR?= ${DEBUGDIR} .MAIN: all .if !defined(NO_MODULES) # Default prefix used for modules installed from ports LOCALBASE?= /usr/local LOCAL_MODULES_DIR?= ${LOCALBASE}/sys/modules # Default to installing all modules installed by ports unless overridden # by the user. .if !defined(LOCAL_MODULES) && exists(${LOCAL_MODULES_DIR}) LOCAL_MODULES!= ls ${LOCAL_MODULES_DIR} .endif .endif .for target in all clean cleandepend cleandir clobber depend install \ ${_obj} reinstall tags ${target}: kernel-${target} .if !defined(NO_MODULES) ${target}: modules-${target} modules-${target}: .if !defined(MODULES_WITH_WORLD) && exists($S/modules) cd $S/modules; ${MKMODULESENV} ${MAKE} \ ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} .endif .for module in ${LOCAL_MODULES} @${ECHODIR} "===> ${module} (${target:S/^reinstall$/install/:S/^clobber$/cleandir/})" @cd ${LOCAL_MODULES_DIR}/${module}; ${MKMODULESENV} ${MAKE} \ DIRPRFX="${module}/" \ ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} .endfor .endif .endfor # Handle ports (as defined by the user) that build kernel modules .if !defined(NO_MODULES) && defined(PORTS_MODULES) # # The ports tree needs some environment variables defined to match the new kernel # # SRC_BASE is how the ports tree refers to the location of the base source files .if !defined(SRC_BASE) SRC_BASE= ${SYSDIR:H:tA} .endif # OSVERSION is used by some ports to determine build options .if !defined(OSRELDATE) # Definition copied from src/Makefile.inc1 OSRELDATE!= awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \ ${MAKEOBJDIRPREFIX}${SRC_BASE}/include/osreldate.h .endif # Keep the related ports builds in the obj directory so that they are only rebuilt once per kernel build # # Ports search for some dependencies in PATH, so add the location of the # installed files WRKDIRPREFIX?= ${.OBJDIR} PORTSMODULESENV=\ env \ -u CC \ -u CXX \ -u CPP \ -u MAKESYSPATH \ -u MK_AUTO_OBJ \ -u MAKEOBJDIR \ MAKEFLAGS="${MAKEFLAGS:M*:tW:S/^-m /-m_/g:S/ -m / -m_/g:tw:N-m_*:NMK_AUTO_OBJ=*}" \ SYSDIR=${SYSDIR} \ PATH=${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin \ SRC_BASE=${SRC_BASE} \ OSVERSION=${OSRELDATE} \ WRKDIRPREFIX=${WRKDIRPREFIX} # The WRKDIR needs to be cleaned before building, and trying to change the target # with a :C pattern below results in install -> instclean all: .for __i in ${PORTS_MODULES} @${ECHO} "===> Ports module ${__i} (all)" cd ${PORTSDIR:U/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE} -B clean build .endfor .for __target in install reinstall clean ${__target}: ports-${__target} ports-${__target}: .for __i in ${PORTS_MODULES} @${ECHO} "===> Ports module ${__i} (${__target})" cd ${PORTSDIR:U/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE} -B ${__target:C/(re)?install/deinstall reinstall/} .endfor .endfor .endif .ORDER: kernel-install modules-install beforebuild: .PHONY kernel-all: beforebuild .WAIT ${KERNEL_KO} ${KERNEL_EXTRA} kernel-cleandir: kernel-clean kernel-cleandepend kernel-clobber: find . -maxdepth 1 ! -type d ! -name version -delete kernel-obj: .if !defined(NO_MODULES) modules: modules-all modules-depend: beforebuild modules-all: beforebuild .if !defined(NO_MODULES_OBJ) modules-all modules-depend: modules-obj .endif .endif .if !defined(DEBUG) FULLKERNEL= ${KERNEL_KO} .else FULLKERNEL= ${KERNEL_KO}.full ${KERNEL_KO}: ${FULLKERNEL} ${KERNEL_KO}.debug ${OBJCOPY} --strip-debug --add-gnu-debuglink=${KERNEL_KO}.debug \ ${FULLKERNEL} ${.TARGET} ${KERNEL_KO}.debug: ${FULLKERNEL} ${OBJCOPY} --only-keep-debug ${FULLKERNEL} ${.TARGET} install.debug reinstall.debug: gdbinit cd ${.CURDIR}; ${MAKE} ${.TARGET:R} # Install gdbinit files for kernel debugging. gdbinit: grep -v '# XXX' ${S}/../tools/debugscripts/dot.gdbinit | \ sed "s:MODPATH:${.OBJDIR}/modules:" > .gdbinit cp ${S}/../tools/debugscripts/gdbinit.kernel ${.CURDIR} .if exists(${S}/../tools/debugscripts/gdbinit.${MACHINE_CPUARCH}) cp ${S}/../tools/debugscripts/gdbinit.${MACHINE_CPUARCH} \ ${.CURDIR}/gdbinit.machine .endif .endif ${FULLKERNEL}: ${SYSTEM_DEP} vers.o @rm -f ${.TARGET} @echo linking ${.TARGET} ${SYSTEM_LD} .if !empty(MD_ROOT_SIZE_CONFIGURED) && defined(MFS_IMAGE) @sh ${S}/tools/embed_mfs.sh ${.TARGET} ${MFS_IMAGE} .endif .if ${MK_CTF} != "no" @echo ${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ... @${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${SYSTEM_OBJS} vers.o .endif .if !defined(DEBUG) ${OBJCOPY} --strip-debug ${.TARGET} .endif ${SYSTEM_LD_TAIL} OBJS_DEPEND_GUESS+= offset.inc assym.inc vnode_if.h ${BEFORE_DEPEND:M*.h} \ ${MFILES:T:S/.m$/.h/} .for mfile in ${MFILES} # XXX the low quality .m.o rules gnerated by config are normally used # instead of the .m.c rules here. ${mfile:T:S/.m$/.c/}: ${mfile} ${AWK} -f $S/tools/makeobjops.awk ${mfile} -c ${mfile:T:S/.m$/.h/}: ${mfile} ${AWK} -f $S/tools/makeobjops.awk ${mfile} -h .endfor kernel-clean: rm -f *.o *.so *.pico *.ko *.s eddep errs \ ${FULLKERNEL} ${KERNEL_KO} ${KERNEL_KO}.debug \ tags vers.c \ vnode_if.c vnode_if.h vnode_if_newproto.h vnode_if_typedef.h \ ${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \ ${CLEAN} # This is a hack. BFD "optimizes" away dynamic mode if there are no # dynamic references. We could probably do a '-Bforcedynamic' mode like # in the a.out ld. For now, this works. force-dynamic-hack.c: :> ${.TARGET} force-dynamic-hack.pico: force-dynamic-hack.c Makefile ${CC} ${CCLDFLAGS} -shared ${CFLAGS} -nostdlib \ force-dynamic-hack.c -o ${.TARGET} offset.inc: $S/kern/genoffset.sh genoffset.o NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genoffset.sh genoffset.o > ${.TARGET} genoffset.o: $S/kern/genoffset.c ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon $S/kern/genoffset.c # genoffset_test.o is not actually used for anything - the point of compiling it # is to exercise the CTASSERT that checks that the offsets in the offset.inc # _lite struct(s) match those in the original(s). genoffset_test.o: $S/kern/genoffset.c offset.inc ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon -DOFFSET_TEST \ $S/kern/genoffset.c -o ${.TARGET} assym.inc: $S/kern/genassym.sh genassym.o genoffset_test.o NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genassym.sh genassym.o > ${.TARGET} genassym.o: $S/$M/$M/genassym.c offset.inc ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon $S/$M/$M/genassym.c OBJS_DEPEND_GUESS+= opt_global.h genoffset.o genassym.o vers.o: opt_global.h .if !empty(.MAKE.MODE:Unormal:Mmeta) && empty(.MAKE.MODE:Unormal:Mnofilemon) _meta_filemon= 1 .endif .if ${MK_DIRDEPS_BUILD} == "no" # Skip reading .depend when not needed to speed up tree-walks and simple # lookups. For install, only do this if no other targets are specified. # Also skip generating or including .depend.* files if in meta+filemon mode # since it will track dependencies itself. OBJS_DEPEND_GUESS is still used # for _meta_filemon but not for _SKIP_DEPEND. .if !defined(NO_SKIP_DEPEND) && \ ((!empty(.MAKEFLAGS:M-V) && empty(.MAKEFLAGS:M*DEP*)) || \ ${.TARGETS:M*obj} == ${.TARGETS} || \ ${.TARGETS:M*clean*} == ${.TARGETS} || \ ${.TARGETS:M*install*} == ${.TARGETS}) _SKIP_DEPEND= 1 .endif .if defined(_SKIP_DEPEND) || defined(_meta_filemon) .MAKE.DEPENDFILE= /dev/null .endif .endif kernel-depend: .depend SRCS= assym.inc offset.inc vnode_if.h ${BEFORE_DEPEND} ${CFILES} \ ${SYSTEM_CFILES} ${GEN_CFILES} ${SFILES} \ ${MFILES:T:S/.m$/.h/} DEPENDOBJS+= ${SYSTEM_OBJS} genassym.o genoffset.o genoffset_test.o DEPENDOBJS+= ${CLEAN:M*.o} DEPENDFILES= ${DEPENDOBJS:O:u:C/^/.depend./} .if ${MAKE_VERSION} < 20160220 DEPEND_MP?= -MP .endif .if defined(_SKIP_DEPEND) # Don't bother reading any .meta files ${DEPENDOBJS}: .NOMETA .depend: .NOMETA # Unset these to avoid looping/statting on them later. .undef DEPENDOBJS .undef DEPENDFILES .endif # defined(_SKIP_DEPEND) DEPEND_CFLAGS+= -MD ${DEPEND_MP} -MF.depend.${.TARGET} DEPEND_CFLAGS+= -MT${.TARGET} .if !defined(_meta_filemon) .if !empty(DEPEND_CFLAGS) # Only add in DEPEND_CFLAGS for CFLAGS on files we expect from DEPENDOBJS # as those are the only ones we will include. DEPEND_CFLAGS_CONDITION= "${DEPENDOBJS:M${.TARGET}}" != "" CFLAGS+= ${${DEPEND_CFLAGS_CONDITION}:?${DEPEND_CFLAGS}:} .endif .for __depend_obj in ${DEPENDFILES} .if ${MAKE_VERSION} < 20160220 .sinclude "${.OBJDIR}/${__depend_obj}" .else .dinclude "${.OBJDIR}/${__depend_obj}" .endif .endfor .endif # !defined(_meta_filemon) # Always run 'make depend' to generate dependencies early and to avoid the # need for manually running it. For the kernel this is mostly a NOP since # all dependencies are correctly added or accounted for. This is mostly to # ensure downstream uses of kernel-depend are handled. beforebuild: kernel-depend # Guess some dependencies for when no ${DEPENDFILE}.OBJ is generated yet. # For meta+filemon the .meta file is checked for since it is the dependency # file used. .for __obj in ${DEPENDOBJS:O:u} .if defined(_meta_filemon) _depfile= ${.OBJDIR}/${__obj}.meta .else _depfile= ${.OBJDIR}/.depend.${__obj} .endif .if !exists(${_depfile}) .if ${SYSTEM_OBJS:M${__obj}} ${__obj}: ${OBJS_DEPEND_GUESS} .endif ${__obj}: ${OBJS_DEPEND_GUESS.${__obj}} .elif defined(_meta_filemon) # For meta mode we still need to know which file to depend on to avoid # ambiguous suffix transformation rules from .PATH. Meta mode does not # use .depend files. We really only need source files, not headers since # they are typically in SRCS/beforebuild already. For target-specific # guesses do include headers though since they may not be in SRCS. .if ${SYSTEM_OBJS:M${__obj}} ${__obj}: ${OBJS_DEPEND_GUESS:N*.h} .endif ${__obj}: ${OBJS_DEPEND_GUESS.${__obj}} .endif # !exists(${_depfile}) .endfor .NOPATH: .depend ${DEPENDFILES} .depend: .PRECIOUS ${SRCS} _ILINKS= machine .if ${MACHINE} != ${MACHINE_CPUARCH} && ${MACHINE} != "arm64" _ILINKS+= ${MACHINE_CPUARCH} .endif .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" _ILINKS+= x86 .endif .if ${MACHINE_CPUARCH} == "amd64" _ILINKS+= i386 .endif # Ensure that the link exists without depending on it when it exists. # Ensure that debug info references the path in the source tree. .for _link in ${_ILINKS} .if !exists(${.OBJDIR}/${_link}) ${SRCS} ${DEPENDOBJS}: ${_link} .endif .if ${_link} == "machine" CFLAGS+= -fdebug-prefix-map=./machine=${SYSDIR}/${MACHINE}/include .else CFLAGS+= -fdebug-prefix-map=./${_link}=${SYSDIR}/${_link}/include .endif .endfor ${_ILINKS}: @case ${.TARGET} in \ machine) \ path=${S}/${MACHINE}/include ;; \ *) \ path=${S}/${.TARGET}/include ;; \ esac ; \ ${ECHO} ${.TARGET} "->" $$path ; \ ln -fns $$path ${.TARGET} # .depend needs include links so we remove them only together. kernel-cleandepend: .PHONY rm -f .depend .depend.* ${_ILINKS} kernel-tags: @ls .depend.* > /dev/null 2>&1 || \ { echo "you must make all first"; exit 1; } sh $S/conf/systags.sh kernel-install: .PHONY @if [ ! -f ${KERNEL_KO} ] ; then \ echo "You must build a kernel first." ; \ exit 1 ; \ fi .if exists(${DESTDIR}${KODIR}) -thiskernel=`sysctl -n kern.bootfile || echo /boot/kernel/kernel` ; \ if [ ! "`dirname "$$thiskernel"`" -ef ${DESTDIR}${KODIR} ] ; then \ chflags -R noschg ${DESTDIR}${KODIR} ; \ rm -rf ${DESTDIR}${KODIR} ; \ rm -rf ${DESTDIR}${KERN_DEBUGDIR}${KODIR} ; \ else \ if [ -d ${DESTDIR}${KODIR}.old ] ; then \ chflags -R noschg ${DESTDIR}${KODIR}.old ; \ rm -rf ${DESTDIR}${KODIR}.old ; \ fi ; \ mv ${DESTDIR}${KODIR} ${DESTDIR}${KODIR}.old ; \ if [ -n "${KERN_DEBUGDIR}" -a \ -d ${DESTDIR}${KERN_DEBUGDIR}${KODIR} ]; then \ rm -rf ${DESTDIR}${KERN_DEBUGDIR}${KODIR}.old ; \ mv ${DESTDIR}${KERN_DEBUGDIR}${KODIR} ${DESTDIR}${KERN_DEBUGDIR}${KODIR}.old ; \ fi ; \ sysctl kern.bootfile=${DESTDIR}${KODIR}.old/"`basename "$$thiskernel"`" ; \ fi .endif mkdir -p ${DESTDIR}${KODIR} ${INSTALL} -p -m 555 -o ${KMODOWN} -g ${KMODGRP} ${KERNEL_KO} ${DESTDIR}${KODIR}/ .if defined(DEBUG) && !defined(INSTALL_NODEBUG) && ${MK_KERNEL_SYMBOLS} != "no" mkdir -p ${DESTDIR}${KERN_DEBUGDIR}${KODIR} ${INSTALL} -p -m 555 -o ${KMODOWN} -g ${KMODGRP} ${KERNEL_KO}.debug ${DESTDIR}${KERN_DEBUGDIR}${KODIR}/ .endif .if defined(KERNEL_EXTRA_INSTALL) ${INSTALL} -p -m 555 -o ${KMODOWN} -g ${KMODGRP} ${KERNEL_EXTRA_INSTALL} ${DESTDIR}${KODIR}/ .endif kernel-reinstall: @-chflags -R noschg ${DESTDIR}${KODIR} ${INSTALL} -p -m 555 -o ${KMODOWN} -g ${KMODGRP} ${KERNEL_KO} ${DESTDIR}${KODIR}/ .if defined(DEBUG) && !defined(INSTALL_NODEBUG) && ${MK_KERNEL_SYMBOLS} != "no" ${INSTALL} -p -m 555 -o ${KMODOWN} -g ${KMODGRP} ${KERNEL_KO}.debug ${DESTDIR}${KERN_DEBUGDIR}${KODIR}/ .endif config.o env.o hints.o vers.o vnode_if.o: ${NORMAL_C} ${NORMAL_CTFCONVERT} NEWVERS_ENV+= MAKE="${MAKE}" .if ${MK_REPRODUCIBLE_BUILD} != "no" NEWVERS_ARGS+= -R .endif vers.c: .NOMETA_CMP $S/conf/newvers.sh $S/sys/param.h ${SYSTEM_DEP:Nvers.*} ${NEWVERS_ENV} sh $S/conf/newvers.sh ${NEWVERS_ARGS} ${KERN_IDENT} vnode_if.c: $S/tools/vnode_if.awk $S/kern/vnode_if.src ${AWK} -f $S/tools/vnode_if.awk $S/kern/vnode_if.src -c vnode_if.h vnode_if_newproto.h vnode_if_typedef.h: $S/tools/vnode_if.awk \ $S/kern/vnode_if.src vnode_if.h: vnode_if_newproto.h vnode_if_typedef.h ${AWK} -f $S/tools/vnode_if.awk $S/kern/vnode_if.src -h vnode_if_newproto.h: ${AWK} -f $S/tools/vnode_if.awk $S/kern/vnode_if.src -p vnode_if_typedef.h: ${AWK} -f $S/tools/vnode_if.awk $S/kern/vnode_if.src -q .if ${MFS_IMAGE:Uno} != "no" .if empty(MD_ROOT_SIZE_CONFIGURED) embedfs_${MFS_IMAGE:T:R}.o: ${MFS_IMAGE} $S/dev/md/embedfs.S ${CC} ${CFLAGS} ${ACFLAGS} -DMFS_IMAGE=\""${MFS_IMAGE}"\" -c \ $S/dev/md/embedfs.S -o ${.TARGET} .endif .endif .include "kern.mk" diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 33b7120144b8..4d37cd4156f0 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -1,384 +1,383 @@ -# $FreeBSD$ # Part of a unified Makefile for building kernels. This part contains all # of the definitions that need to be before %BEFORE_DEPEND. # Allow user to configure things that only effect src tree builds. # Note: This is duplicated from src.sys.mk to ensure that we include # /etc/src.conf when building the kernel. Kernels can be built without # the rest of /usr/src, but they still always process SRCCONF even though # the normal mechanisms to prevent that (compiling out of tree) won't # work. To ensure they do work, we have to duplicate thee few lines here. SRCCONF?= /etc/src.conf .if (exists(${SRCCONF}) || ${SRCCONF} != "/etc/src.conf") && !target(_srcconf_included_) .include "${SRCCONF}" _srcconf_included_: .endif .include .include .include "kern.opts.mk" # The kernel build always occurs in the object directory which is .CURDIR. .if ${.MAKE.MODE:Unormal:Mmeta} .MAKE.MODE+= curdirOk=yes .endif # The kernel build always expects .OBJDIR=.CURDIR. .OBJDIR: ${.CURDIR} .if defined(NO_OBJWALK) || ${MK_AUTO_OBJ} == "yes" NO_OBJWALK= t NO_MODULES_OBJ= t .endif .if !defined(NO_OBJWALK) _obj= obj .endif # Can be overridden by makeoptions or /etc/make.conf KERNEL_KO?= kernel KERNEL?= kernel KODIR?= /boot/${KERNEL} LDSCRIPT_NAME?= ldscript.$M LDSCRIPT?= $S/conf/${LDSCRIPT_NAME} M= ${MACHINE} AWK?= awk CP?= cp ELFDUMP?= elfdump NM?= nm OBJCOPY?= objcopy SIZE?= size .if defined(DEBUG) CTFFLAGS+= -g .endif .if ${MACHINE_CPUARCH} == "amd64" && ${COMPILER_TYPE} != "clang" _COPTFLAGS_EXTRA=-frename-registers .else _COPTFLAGS_EXTRA= .endif COPTFLAGS?=-O2 -pipe ${_COPTFLAGS_EXTRA} .if !empty(COPTFLAGS:M-O[23s]) && empty(COPTFLAGS:M-fno-strict-aliasing) COPTFLAGS+= -fno-strict-aliasing .endif .if !defined(NO_CPU_COPTFLAGS) COPTFLAGS+= ${_CPUCFLAGS} .endif NOSTDINC= -nostdinc INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. -I$S -I$S/contrib/ck/include CFLAGS= ${COPTFLAGS} ${DEBUG} CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h CFLAGS_PARAM_INLINE_UNIT_GROWTH?=100 CFLAGS_PARAM_LARGE_FUNCTION_GROWTH?=1000 CFLAGS.gcc+= -fms-extensions -finline-limit=${INLINE_LIMIT} CFLAGS.gcc+= --param inline-unit-growth=${CFLAGS_PARAM_INLINE_UNIT_GROWTH} CFLAGS.gcc+= --param large-function-growth=${CFLAGS_PARAM_LARGE_FUNCTION_GROWTH} CFLAGS.gcc+= -fms-extensions .if defined(CFLAGS_ARCH_PARAMS) CFLAGS.gcc+=${CFLAGS_ARCH_PARAMS} .endif WERROR?= -Werror # The following should be removed no earlier than LLVM11 being imported into the # tree, to ensure we don't regress the build. LLVM11 and GCC10 will switch the # default over to -fno-common, making this redundant. CFLAGS+= -fno-common # XXX LOCORE means "don't declare C stuff" not "for locore.s". ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS} ${ASM_CFLAGS.${.IMPSRC:T}} COMPAT_FREEBSD32_ENABLED!= grep COMPAT_FREEBSD32 opt_global.h || true ; echo KASAN_ENABLED!= grep KASAN opt_global.h || true ; echo .if !empty(KASAN_ENABLED) SAN_CFLAGS+= -DSAN_NEEDS_INTERCEPTORS -DSAN_INTERCEPTOR_PREFIX=kasan \ -fsanitize=kernel-address \ -mllvm -asan-stack=true \ -mllvm -asan-instrument-dynamic-allocas=true \ -mllvm -asan-globals=true \ -mllvm -asan-use-after-scope=true \ -mllvm -asan-instrumentation-with-call-threshold=0 \ -mllvm -asan-instrument-byval=false .if ${MACHINE_CPUARCH} == "aarch64" # KASAN/ARM64 TODO: -asan-mapping-offset is calculated from: # (VM_KERNEL_MIN_ADDRESS >> KASAN_SHADOW_SCALE_SHIFT) + $offset = KASAN_MIN_ADDRESS # # This is different than amd64, where we have a different # KASAN_MIN_ADDRESS, and this offset value should eventually be # upstreamed similar to: https://reviews.llvm.org/D98285 # SAN_CFLAGS+= -mllvm -asan-mapping-offset=0xdfff208000000000 .endif .endif KCSAN_ENABLED!= grep KCSAN opt_global.h || true ; echo .if !empty(KCSAN_ENABLED) SAN_CFLAGS+= -DSAN_NEEDS_INTERCEPTORS -DSAN_INTERCEPTOR_PREFIX=kcsan \ -fsanitize=thread .endif KMSAN_ENABLED!= grep KMSAN opt_global.h || true ; echo .if !empty(KMSAN_ENABLED) SAN_CFLAGS+= -DSAN_NEEDS_INTERCEPTORS -DSAN_INTERCEPTOR_PREFIX=kmsan \ -fsanitize=kernel-memory .endif KUBSAN_ENABLED!= grep KUBSAN opt_global.h || true ; echo .if !empty(KUBSAN_ENABLED) SAN_CFLAGS+= -fsanitize=undefined .endif COVERAGE_ENABLED!= grep COVERAGE opt_global.h || true ; echo .if !empty(COVERAGE_ENABLED) .if ${COMPILER_TYPE} == "clang" || \ (${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 80100) SAN_CFLAGS+= -fsanitize-coverage=trace-pc,trace-cmp .else SAN_CFLAGS+= -fsanitize-coverage=trace-pc .endif .endif CFLAGS+= ${SAN_CFLAGS} GCOV_ENABLED!= grep GCOV opt_global.h || true ; echo .if !empty(GCOV_ENABLED) .if ${COMPILER_TYPE} == "gcc" GCOV_CFLAGS+= -fprofile-arcs -ftest-coverage .endif .endif CFLAGS+= ${GCOV_CFLAGS} # Put configuration-specific C flags last so that they can override # the others. CFLAGS+= ${CONF_CFLAGS} .if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id} LDFLAGS+= --build-id=sha1 .endif .if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" || ${MACHINE} == "powerpc") && \ defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == "" && \ !make(install) .error amd64/arm64/i386/ppc* kernel requires linker ifunc support .endif .if ${MACHINE_CPUARCH} == "amd64" LDFLAGS+= -z max-page-size=2097152 .if ${LINKER_TYPE} != "lld" LDFLAGS+= -z common-page-size=4096 .else .if defined(LINKER_FEATURES) && !${LINKER_FEATURES:Mifunc-noplt} .warning "Linker ${LD} does not support -z ifunc-noplt -> ifunc calls are unoptimized." .else LDFLAGS+= -z notext -z ifunc-noplt .endif .endif .endif # ${MACHINE_CPUARCH} == "amd64" .if ${MACHINE_CPUARCH} == "riscv" # Hack: Work around undefined weak symbols being out of range when linking with # LLD (address is a PC-relative calculation, and BFD works around this by # rewriting the instructions to generate an absolute address of 0); -fPIE # avoids this since it uses the GOT for all extern symbols, which is overly # inefficient for us. Drop once undefined weak symbols work with medany. .if ${LINKER_TYPE} == "lld" CFLAGS+= -fPIE .endif .endif NORMAL_C= ${CC} -c ${CFLAGS} ${WERROR} ${.IMPSRC} NORMAL_S= ${CC:N${CCACHE_BIN}} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC} NORMAL_C_NOWERROR= ${CC} -c ${CFLAGS} ${.IMPSRC} NORMAL_M= ${AWK} -f $S/tools/makeobjops.awk ${.IMPSRC} -c ; \ ${CC} -c ${CFLAGS} ${WERROR} ${.PREFIX}.c NORMAL_FW= uudecode -o ${.TARGET} ${.ALLSRC} NORMAL_FWO= ${CC:N${CCACHE_BIN}} -c ${ASM_CFLAGS} ${WERROR} -o ${.TARGET} \ $S/kern/firmw.S -DFIRMW_FILE=\""${.ALLSRC:M*.fw}"\" \ -DFIRMW_SYMBOL="${.ALLSRC:M*.fw:C/[-.\/]/_/g}" # for ZSTD in the kernel (include zstd/lib/freebsd before other CFLAGS) ZSTD_C= ${CC} -c -DZSTD_HEAPMODE=1 -I$S/contrib/zstd/lib/freebsd ${CFLAGS} \ -I$S/contrib/zstd/lib -I$S/contrib/zstd/lib/common ${WERROR} \ -Wno-missing-prototypes -U__BMI__ -DZSTD_NO_INTRINSICS ${.IMPSRC} # https://github.com/facebook/zstd/commit/812e8f2a [zstd 1.4.1] # "Note that [GCC] autovectorization still does not do a good job on the # optimized version, so it's turned off via attribute and flag. I found # that neither attribute nor command-line flag were entirely successful in # turning off vectorization, which is why there were both." .if ${COMPILER_TYPE} == "gcc" ZSTD_DECOMPRESS_BLOCK_FLAGS= -fno-tree-vectorize .endif ZINCDIR=$S/contrib/openzfs/include # Common for dtrace / zfs CDDL_CFLAGS= \ -DFREEBSD_NAMECACHE \ -D_SYS_VMEM_H_ \ -D__KERNEL \ -D__KERNEL__ \ -nostdinc \ -include $S/modules/zfs/static_ccompile.h \ -I${ZINCDIR} \ -I${ZINCDIR}/os/freebsd \ -I${ZINCDIR}/os/freebsd/spl \ -I${ZINCDIR}/os/freebsd/zfs \ -I$S/modules/zfs \ -I$S/contrib/openzfs/module/zstd/include \ ${CFLAGS} \ -Wno-cast-qual \ -Wno-duplicate-decl-specifier \ -Wno-missing-braces \ -Wno-missing-prototypes \ -Wno-parentheses \ -Wno-pointer-arith \ -Wno-strict-prototypes \ -Wno-switch \ -Wno-undef \ -Wno-uninitialized \ -Wno-unknown-pragmas \ -Wno-unused \ -include ${ZINCDIR}/os/freebsd/spl/sys/ccompile.h \ -I$S/cddl/contrib/opensolaris/uts/common \ -I$S -I$S/cddl/compat/opensolaris CDDL_C= ${CC} -c ${CDDL_CFLAGS} ${WERROR} ${.IMPSRC} # Special flags for managing the compat compiles for ZFS ZFS_CFLAGS+= -I$S/contrib/openzfs/module/icp/include \ ${CDDL_CFLAGS} -DBUILDING_ZFS -DHAVE_UIO_ZEROCOPY \ -DWITH_NETDUMP -D__KERNEL__ -D_SYS_CONDVAR_H_ -DSMP .if ${MACHINE_ARCH} == "amd64" ZFS_CFLAGS+= -D__x86_64 -DHAVE_SSE2 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 \ -DHAVE_AVX -DHAVE_AVX2 -DHAVE_AVX512F -DHAVE_AVX512VL -DHAVE_AVX512BW .endif .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \ ${MACHINE_ARCH} == "powerpcspe" || ${MACHINE_ARCH} == "arm" ZFS_CFLAGS+= -DBITS_PER_LONG=32 .else ZFS_CFLAGS+= -DBITS_PER_LONG=64 .endif ZFS_ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${ZFS_CFLAGS} ZFS_C= ${CC} -c ${ZFS_CFLAGS} ${WERROR} ${.IMPSRC} ZFS_RPC_C= ${CC} -c ${ZFS_CFLAGS} -DHAVE_RPC_TYPES ${WERROR} ${.IMPSRC} ZFS_S= ${CC} -c ${ZFS_ASM_CFLAGS} ${WERROR} ${.IMPSRC} # ATH driver ATH_CFLAGS= -I${SRCTOP}/sys/dev/ath ${NO_WUNUSED_BUT_SET_VARIABLE} ATH_C= ${CC} -c ${CFLAGS} ${WERROR} ${ATH_CFLAGS} ${.IMPSRC} # Special flags for managing the compat compiles for DTrace DTRACE_CFLAGS= -DBUILDING_DTRACE ${CDDL_CFLAGS} -I$S/cddl/dev/dtrace -I$S/cddl/dev/dtrace/${MACHINE_CPUARCH} .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" DTRACE_CFLAGS+= -I$S/cddl/contrib/opensolaris/uts/intel -I$S/cddl/dev/dtrace/x86 .endif DTRACE_CFLAGS+= -I$S/cddl/contrib/opensolaris/common/util -I$S -DDIS_MEM -DSMP -I$S/cddl/compat/opensolaris DTRACE_CFLAGS+= -I$S/cddl/contrib/opensolaris/uts/common DTRACE_ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${DTRACE_CFLAGS} DTRACE_C= ${CC} -c ${DTRACE_CFLAGS} ${WERROR} ${.IMPSRC} DTRACE_S= ${CC} -c ${DTRACE_ASM_CFLAGS} ${WERROR} ${.IMPSRC} # zlib code supports systems that are quite old, but will fix this issue once C2x gets radified. # see https://github.com/madler/zlib/issues/633 for details ZLIB_CFLAGS= -Wno-cast-qual ${NO_WDEPRECATED_NON_PROTOTYPE} ${NO_WSTRICT_PROTOTYPES} ZLIB_C= ${CC} -c ${CFLAGS} ${WERROR} ${ZLIB_CFLAGS} ${.IMPSRC} # Special flags for managing the compat compiles for DTrace/FBT FBT_CFLAGS= -DBUILDING_DTRACE -nostdinc -I$S/cddl/dev/fbt/${MACHINE_CPUARCH} -I$S/cddl/dev/fbt ${CDDL_CFLAGS} -I$S/cddl/compat/opensolaris -I$S/cddl/contrib/opensolaris/uts/common .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" FBT_CFLAGS+= -I$S/cddl/dev/fbt/x86 .endif FBT_C= ${CC} -c ${FBT_CFLAGS} ${WERROR} ${.IMPSRC} .if ${MK_CTF} != "no" NORMAL_CTFCONVERT= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} .elif ${MAKE_VERSION} >= 5201111300 NORMAL_CTFCONVERT= .else NORMAL_CTFCONVERT= @: .endif # Linux Kernel Programming Interface C-flags LINUXKPI_INCLUDES= -I$S/compat/linuxkpi/common/include \ -I$S/compat/linuxkpi/dummy/include LINUXKPI_C= ${NORMAL_C} ${LINUXKPI_INCLUDES} # Infiniband C flags. Correct include paths and omit errors that linux # does not honor. OFEDINCLUDES= -I$S/ofed/include -I$S/ofed/include/uapi ${LINUXKPI_INCLUDES} OFEDNOERR= -Wno-cast-qual -Wno-pointer-arith OFEDCFLAGS= ${CFLAGS:N-I*} -DCONFIG_INFINIBAND_USER_MEM \ ${OFEDINCLUDES} ${CFLAGS:M-I*} ${OFEDNOERR} OFED_C_NOIMP= ${CC} -c -o ${.TARGET} ${OFEDCFLAGS} ${WERROR} OFED_C= ${OFED_C_NOIMP} ${.IMPSRC} # mlxfw C flags. MLXFW_C= ${OFED_C_NOIMP} \ -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \ -I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz \ ${.IMPSRC} GEN_CFILES= $S/$M/$M/genassym.c ${MFILES:T:S/.m$/.c/} SYSTEM_CFILES= config.c env.c hints.c vnode_if.c SYSTEM_DEP= Makefile ${SYSTEM_OBJS} SYSTEM_OBJS= locore.o ${MDOBJS} ${OBJS} SYSTEM_OBJS+= ${SYSTEM_CFILES:.c=.o} SYSTEM_OBJS+= force-dynamic-hack.pico KEYMAP=kbdcontrol -P ${SRCTOP}/share/vt/keymaps -P ${SRCTOP}/share/syscons/keymaps KEYMAP_FIX=sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static accentmap_t.* = /static accentmap_t accent_map = /' MD_ROOT_SIZE_CONFIGURED!= grep MD_ROOT_SIZE opt_md.h || true ; echo .if ${MFS_IMAGE:Uno} != "no" .if empty(MD_ROOT_SIZE_CONFIGURED) SYSTEM_OBJS+= embedfs_${MFS_IMAGE:T:R}.o .endif .endif SYSTEM_LD_BASECMD= \ ${LD} -m ${LD_EMULATION} -Bdynamic -T ${LDSCRIPT} ${_LDFLAGS} \ --no-warn-mismatch --warn-common --export-dynamic \ --dynamic-linker /red/herring -X SYSTEM_LD= @${SYSTEM_LD_BASECMD} -o ${.TARGET} ${SYSTEM_OBJS} vers.o SYSTEM_LD_TAIL= @${SIZE} ${.TARGET} ; chmod 755 ${.TARGET} SYSTEM_DEP+= ${LDSCRIPT} # Calculate path for .m files early, if needed. .if !defined(NO_MODULES) && !defined(__MPATH) && !make(install) && \ (empty(.MAKEFLAGS:M-V) || defined(NO_SKIP_MPATH)) __MPATH!=find ${S:tA}/ -name \*_if.m .endif # MKMODULESENV is set here so that port makefiles can augment # them. MKMODULESENV+= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR} MKMODULESENV+= MACHINE_CPUARCH=${MACHINE_CPUARCH} MKMODULESENV+= MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH} MKMODULESENV+= MODULES_EXTRA="${MODULES_EXTRA}" WITHOUT_MODULES="${WITHOUT_MODULES}" MKMODULESENV+= ARCH_FLAGS="${ARCH_FLAGS}" .if (${KERN_IDENT} == LINT) MKMODULESENV+= ALL_MODULES=LINT .endif .if defined(MODULES_OVERRIDE) MKMODULESENV+= MODULES_OVERRIDE="${MODULES_OVERRIDE}" .endif .if defined(DEBUG) MKMODULESENV+= DEBUG_FLAGS="${DEBUG}" .endif .if !defined(NO_MODULES) MKMODULESENV+= __MPATH="${__MPATH}" .endif # Detect kernel config options that force stack frames to be turned on. DDB_ENABLED!= grep DDB opt_ddb.h || true ; echo DTRACE_ENABLED!=grep KDTRACE_FRAME opt_kdtrace.h || true ; echo HWPMC_ENABLED!= grep HWPMC opt_hwpmc_hooks.h || true ; echo diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index e706b73c3d32..ce1e7a31a865 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -1,565 +1,564 @@ # From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 -# $FreeBSD$ # # The include file handles building and installing loadable # kernel modules. # # # +++ variables +++ # # CLEANFILES Additional files to remove for the clean and cleandir targets. # # EXPORT_SYMS A list of symbols that should be exported from the module, # or the name of a file containing a list of symbols, or YES # to export all symbols. If not defined, no symbols are # exported. # # KMOD The name of the kernel module to build. # # KMODDIR Base path for kernel modules (see kld(4)). [/boot/kernel] # # KMODOWN Module file owner. [${BINOWN}] # # KMODGRP Module file group. [${BINGRP}] # # KMODMODE Module file mode. [${BINMODE}] # # KMODLOAD Command to load a kernel module [/sbin/kldload] # # KMODUNLOAD Command to unload a kernel module [/sbin/kldunload] # # KMODISLOADED Command to check whether a kernel module is # loaded [/sbin/kldstat -q -n] # # PROG The name of the kernel module to build. # If not supplied, ${KMOD}.ko is used. # # SRCS List of source files. # # FIRMWS List of firmware images in format filename:shortname:version # # FIRMWARE_LICENSE # Set to the name of the license the user has to agree on in # order to use this firmware. See /usr/share/doc/legal # # DESTDIR The tree where the module gets installed. [not set] # # KERNBUILDDIR Set to the location of the kernel build directory where # the opt_*.h files, .o's and kernel winds up. # # BLOB_OBJS Prebuilt binary blobs .o's from the src tree to be linked into # the module. These are precious and not removed in make clean. # # +++ targets +++ # # install: # install the kernel module; if the Makefile # does not itself define the target install, the targets # beforeinstall and afterinstall may also be used to cause # actions immediately before and after the install target # is executed. # # load: # Load a module. # # unload: # Unload a module. # # reload: # Unload if loaded, then load. # AWK?= awk KMODLOAD?= /sbin/kldload KMODUNLOAD?= /sbin/kldunload KMODISLOADED?= /sbin/kldstat -q -n OBJCOPY?= objcopy .include "kmod.opts.mk" .include .SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S .m # amd64 uses direct linking for kmod, all others use shared binaries .if ${MACHINE_CPUARCH} != amd64 __KLD_SHARED=yes .else __KLD_SHARED=no .endif .if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing) CFLAGS+= -fno-strict-aliasing .endif WERROR?= -Werror LINUXKPI_GENSRCS+= \ backlight_if.h \ bus_if.h \ device_if.h \ iicbus_if.h \ iicbb_if.h \ lkpi_iic_if.c \ lkpi_iic_if.h \ pci_if.h \ pci_iov_if.h \ pcib_if.h \ vnode_if.h \ usb_if.h \ opt_usb.h \ opt_stack.h LINUXKPI_INCLUDES+= \ -I${SYSDIR}/compat/linuxkpi/common/include \ -I${SYSDIR}/compat/linuxkpi/dummy/include CFLAGS+= ${WERROR} CFLAGS+= -D_KERNEL CFLAGS+= -DKLD_MODULE .if defined(MODULE_TIED) CFLAGS+= -DKLD_TIED .endif # Don't use any standard or source-relative include directories. NOSTDINC= -nostdinc CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} ${INCLMAGIC} ${CFLAGS:M-I*} .if defined(KERNBUILDDIR) CFLAGS+= -DHAVE_KERNEL_OPTION_HEADERS -include ${KERNBUILDDIR}/opt_global.h .else SRCS+= opt_global.h CFLAGS+= -include ${.OBJDIR}/opt_global.h .endif # Add -I paths for system headers. Individual module makefiles don't # need any -I paths for this. Similar defaults for .PATH can't be # set because there are no standard paths for non-headers. CFLAGS+= -I. -I${SYSDIR} -I${SYSDIR}/contrib/ck/include CFLAGS.gcc+= -finline-limit=${INLINE_LIMIT} CFLAGS.gcc+= -fms-extensions CFLAGS.gcc+= --param inline-unit-growth=100 CFLAGS.gcc+= --param large-function-growth=1000 # Disallow common variables, and if we end up with commons from # somewhere unexpected, allocate storage for them in the module itself. # # -fno-common is the default for src builds, but this should be left in place # until at least we catch up to GCC10/LLVM11 or otherwise enable -fno-common # in instead. For now, we will have duplicate -fno-common in # CFLAGS for in-tree module builds as they will also pick it up from # share/mk/src.sys.mk, but the following is important for out-of-tree modules # (e.g. ports). CFLAGS+= -fno-common .if ${LINKER_TYPE} != "lld" || ${LINKER_VERSION} < 140000 # lld >= 14 warns that -d is deprecated, and will be removed. LDFLAGS+= -d .endif LDFLAGS+= -warn-common .if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id} LDFLAGS+= --build-id=sha1 .endif CFLAGS+= ${DEBUG_FLAGS} .if ${MACHINE_CPUARCH} == aarch64 || ${MACHINE_CPUARCH} == amd64 || \ ${MACHINE_CPUARCH} == riscv CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv" || \ ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "i386" CFLAGS+= -fPIC .endif .if ${MACHINE_CPUARCH} == "aarch64" # https://bugs.freebsd.org/264094 # lld >= 14 and recent GNU ld can relax adrp+add and adrp+ldr instructions, # which breaks VNET. LDFLAGS+= --no-relax .endif # Temporary workaround for PR 196407, which contains the fascinating details. # Don't allow clang to use fpu instructions or registers in kernel modules. .if ${MACHINE_CPUARCH} == arm CFLAGS.clang+= -mno-movt CFLAGS.clang+= -mfpu=none CFLAGS+= -funwind-tables .endif .if ${MACHINE_CPUARCH} == powerpc CFLAGS+= -mlongcall -fno-omit-frame-pointer .if ${LINKER_TYPE} == "lld" # TOC optimization in LLD (9.0) currently breaks kernel modules, so disable it LDFLAGS+= --no-toc-optimize .endif .endif .if defined(DEBUG) || defined(DEBUG_FLAGS) CTFFLAGS+= -g .endif .if defined(FIRMWS) ${KMOD:S/$/.c/}: ${SYSDIR}/tools/fw_stub.awk ${AWK} -f ${SYSDIR}/tools/fw_stub.awk ${FIRMWS} -m${KMOD} -c${KMOD:S/$/.c/g} \ ${FIRMWARE_LICENSE:C/.+/-l/}${FIRMWARE_LICENSE} SRCS+= ${KMOD:S/$/.c/} CLEANFILES+= ${KMOD:S/$/.c/} .for _firmw in ${FIRMWS} ${_firmw:C/\:.*$/.fwo/:T}: ${_firmw:C/\:.*$//} ${SYSDIR}/kern/firmw.S @${ECHO} ${_firmw:C/\:.*$//} ${.ALLSRC:M*${_firmw:C/\:.*$//}} ${CC:N${CCACHE_BIN}} -c -x assembler-with-cpp -DLOCORE \ ${CFLAGS} ${WERROR} \ -DFIRMW_FILE=\""${.ALLSRC:M*${_firmw:C/\:.*$//}}"\" \ -DFIRMW_SYMBOL="${_firmw:C/\:.*$//:C/[-.\/@]/_/g}" \ ${SYSDIR}/kern/firmw.S -o ${.TARGET} OBJS+= ${_firmw:C/\:.*$/.fwo/:T} .endfor .endif # Conditionally include SRCS based on kernel config options. .for _o in ${KERN_OPTS} SRCS+=${SRCS.${_o}} .endfor OBJS+= ${SRCS:N*.h:R:S/$/.o/g} .if !defined(PROG) PROG= ${KMOD}.ko .endif .if !defined(DEBUG_FLAGS) || ${MK_SPLIT_KERNEL_DEBUG} == "no" FULLPROG= ${PROG} .else FULLPROG= ${PROG}.full ${PROG}: ${FULLPROG} ${PROG}.debug ${OBJCOPY} --strip-debug --add-gnu-debuglink=${PROG}.debug \ ${FULLPROG} ${.TARGET} ${PROG}.debug: ${FULLPROG} ${OBJCOPY} --only-keep-debug ${FULLPROG} ${.TARGET} .endif .if ${__KLD_SHARED} == yes ${FULLPROG}: ${KMOD}.kld ${LD} -m ${LD_EMULATION} -Bshareable -znotext -znorelro ${_LDFLAGS} \ -o ${.TARGET} ${KMOD}.kld .if !defined(DEBUG_FLAGS) ${OBJCOPY} --strip-debug ${.TARGET} .endif .endif EXPORT_SYMS?= NO .if ${EXPORT_SYMS} != YES CLEANFILES+= export_syms .endif .if exists(${SYSDIR}/conf/ldscript.kmod.${MACHINE}) LDSCRIPT_FLAGS?= -T ${SYSDIR}/conf/ldscript.kmod.${MACHINE} .endif .if ${__KLD_SHARED} == yes ${KMOD}.kld: ${OBJS} ${BLOB_OBJS} .else ${FULLPROG}: ${OBJS} ${BLOB_OBJS} .endif ${LD} -m ${LD_EMULATION} ${_LDFLAGS} ${LDSCRIPT_FLAGS} -r \ -o ${.TARGET} ${OBJS} ${BLOB_OBJS} .if ${MK_CTF} != "no" ${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${OBJS} ${BLOB_OBJS} .endif .if defined(EXPORT_SYMS) .if ${EXPORT_SYMS} != YES .if ${EXPORT_SYMS} == NO :> export_syms .elif !exists(${.CURDIR}/${EXPORT_SYMS}) printf '%s' "${EXPORT_SYMS:@s@$s${.newline}@}" > export_syms .else grep -v '^#' < ${EXPORT_SYMS} > export_syms .endif ${AWK} -f ${SYSDIR}/conf/kmod_syms.awk ${.TARGET} \ export_syms | xargs -J% ${OBJCOPY} % ${.TARGET} .endif .endif # defined(EXPORT_SYMS) .if defined(PREFIX_SYMS) ${AWK} -v prefix=${PREFIX_SYMS} -f ${SYSDIR}/conf/kmod_syms_prefix.awk \ ${.TARGET} /dev/null | xargs -J% ${OBJCOPY} % ${.TARGET} .endif .if !defined(DEBUG_FLAGS) && ${__KLD_SHARED} == no ${OBJCOPY} --strip-debug ${.TARGET} .endif _ILINKS=machine .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" _ILINKS+=x86 .endif .if ${MACHINE_CPUARCH} == "amd64" _ILINKS+=i386 .endif CLEANFILES+=${_ILINKS} all: ${PROG} beforedepend: ${_ILINKS} beforebuild: ${_ILINKS} # Ensure that the links exist without depending on it when it exists which # causes all the modules to be rebuilt when the directory pointed to changes. # Ensure that debug info references the path in the source tree. .for _link in ${_ILINKS} .if !exists(${.OBJDIR}/${_link}) OBJS_DEPEND_GUESS+= ${_link} .endif .if ${_link} == "machine" CFLAGS+= -fdebug-prefix-map=./machine=${SYSDIR}/${MACHINE}/include .else CFLAGS+= -fdebug-prefix-map=./${_link}=${SYSDIR}/${_link}/include .endif .endfor .NOPATH: ${_ILINKS} ${_ILINKS}: @case ${.TARGET} in \ machine) \ path=${SYSDIR}/${MACHINE}/include ;; \ *) \ path=${SYSDIR}/${.TARGET:T}/include ;; \ esac ; \ path=`realpath $$path`; \ ${ECHO} ${.TARGET:T} "->" $$path ; \ ln -fns $$path ${.TARGET:T} CLEANFILES+= ${PROG} ${KMOD}.kld ${OBJS} .if defined(DEBUG_FLAGS) && ${MK_SPLIT_KERNEL_DEBUG} != "no" CLEANFILES+= ${FULLPROG} ${PROG}.debug .endif .if !target(install) _INSTALLFLAGS:= ${INSTALLFLAGS} .for ie in ${INSTALLFLAGS_EDIT} _INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} .endfor .if !target(realinstall) KERN_DEBUGDIR?= ${DEBUGDIR} realinstall: _kmodinstall .ORDER: beforeinstall _kmodinstall _kmodinstall: .PHONY ${INSTALL} -T release -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \ ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}/ .if defined(DEBUG_FLAGS) && !defined(INSTALL_NODEBUG) && ${MK_KERNEL_SYMBOLS} != "no" ${INSTALL} -T dbg -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \ ${_INSTALLFLAGS} ${PROG}.debug ${DESTDIR}${KERN_DEBUGDIR}${KMODDIR}/ .endif .include .if !defined(NO_XREF) afterinstall: _kldxref .ORDER: realinstall _kldxref .ORDER: _installlinks _kldxref _kldxref: .PHONY @if type kldxref >/dev/null 2>&1; then \ ${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ fi .endif .endif # !target(realinstall) .endif # !target(install) .if !target(load) load: ${PROG} .PHONY ${KMODLOAD} -v ${.OBJDIR}/${PROG} .endif .if !target(unload) unload: .PHONY if ${KMODISLOADED} ${PROG} ; then ${KMODUNLOAD} -v ${PROG} ; fi .endif .if !target(reload) reload: unload load .PHONY .endif .if defined(KERNBUILDDIR) .PATH: ${KERNBUILDDIR} CFLAGS+= -I${KERNBUILDDIR} .for _src in ${SRCS:Mopt_*.h} CLEANFILES+= ${_src} .if !target(${_src}) ${_src}: ln -sf ${KERNBUILDDIR}/${_src} ${.TARGET} .endif .endfor .else .for _src in ${SRCS:Mopt_*.h} CLEANFILES+= ${_src} .if !target(${_src}) ${_src}: :> ${.TARGET} .endif .endfor .endif # Add the sanitizer C flags CFLAGS+= ${SAN_CFLAGS} # Add the gcov flags CFLAGS+= ${GCOV_CFLAGS} # Respect configuration-specific C flags. CFLAGS+= ${ARCH_FLAGS} ${CONF_CFLAGS} .if !empty(SRCS:Mvnode_if.c) CLEANFILES+= vnode_if.c vnode_if.c: ${SYSDIR}/tools/vnode_if.awk ${SYSDIR}/kern/vnode_if.src ${AWK} -f ${SYSDIR}/tools/vnode_if.awk ${SYSDIR}/kern/vnode_if.src -c .endif .if !empty(SRCS:Mvnode_if.h) CLEANFILES+= vnode_if.h vnode_if_newproto.h vnode_if_typedef.h vnode_if.h vnode_if_newproto.h vnode_if_typedef.h: ${SYSDIR}/tools/vnode_if.awk \ ${SYSDIR}/kern/vnode_if.src vnode_if.h: vnode_if_newproto.h vnode_if_typedef.h ${AWK} -f ${SYSDIR}/tools/vnode_if.awk ${SYSDIR}/kern/vnode_if.src -h vnode_if_newproto.h: ${AWK} -f ${SYSDIR}/tools/vnode_if.awk ${SYSDIR}/kern/vnode_if.src -p vnode_if_typedef.h: ${AWK} -f ${SYSDIR}/tools/vnode_if.awk ${SYSDIR}/kern/vnode_if.src -q .endif # Build _if.[ch] from _if.m, and clean them when we're done. # __MPATH defined in config.mk _MFILES=${__MPATH:T:O} _MPATH=${__MPATH:H:O:u} .PATH.m: ${_MPATH} .for _i in ${SRCS:M*_if.[ch]} _MATCH=M${_i:R:S/$/.m/} _MATCHES=${_MFILES:${_MATCH}} .if !empty(_MATCHES) CLEANFILES+= ${_i} .endif .endfor # _i .m.c: ${SYSDIR}/tools/makeobjops.awk ${AWK} -f ${SYSDIR}/tools/makeobjops.awk ${.IMPSRC} -c .m.h: ${SYSDIR}/tools/makeobjops.awk ${AWK} -f ${SYSDIR}/tools/makeobjops.awk ${.IMPSRC} -h .for _i in mii pccard .if !empty(SRCS:M${_i}devs.h) CLEANFILES+= ${_i}devs.h ${_i}devs.h: ${SYSDIR}/tools/${_i}devs2h.awk ${SYSDIR}/dev/${_i}/${_i}devs ${AWK} -f ${SYSDIR}/tools/${_i}devs2h.awk ${SYSDIR}/dev/${_i}/${_i}devs .endif .endfor # _i .if !empty(SRCS:Mbhnd_nvram_map.h) CLEANFILES+= bhnd_nvram_map.h bhnd_nvram_map.h: ${SYSDIR}/dev/bhnd/tools/nvram_map_gen.awk \ ${SYSDIR}/dev/bhnd/tools/nvram_map_gen.sh \ ${SYSDIR}/dev/bhnd/nvram/nvram_map bhnd_nvram_map.h: sh ${SYSDIR}/dev/bhnd/tools/nvram_map_gen.sh \ ${SYSDIR}/dev/bhnd/nvram/nvram_map -h .endif .if !empty(SRCS:Mbhnd_nvram_map_data.h) CLEANFILES+= bhnd_nvram_map_data.h bhnd_nvram_map_data.h: ${SYSDIR}/dev/bhnd/tools/nvram_map_gen.awk \ ${SYSDIR}/dev/bhnd/tools/nvram_map_gen.sh \ ${SYSDIR}/dev/bhnd/nvram/nvram_map bhnd_nvram_map_data.h: sh ${SYSDIR}/dev/bhnd/tools/nvram_map_gen.sh \ ${SYSDIR}/dev/bhnd/nvram/nvram_map -d .endif .if !empty(SRCS:Musbdevs.h) CLEANFILES+= usbdevs.h usbdevs.h: ${SYSDIR}/tools/usbdevs2h.awk ${SYSDIR}/dev/usb/usbdevs ${AWK} -f ${SYSDIR}/tools/usbdevs2h.awk ${SYSDIR}/dev/usb/usbdevs -h .endif .if !empty(SRCS:Musbdevs_data.h) CLEANFILES+= usbdevs_data.h usbdevs_data.h: ${SYSDIR}/tools/usbdevs2h.awk ${SYSDIR}/dev/usb/usbdevs ${AWK} -f ${SYSDIR}/tools/usbdevs2h.awk ${SYSDIR}/dev/usb/usbdevs -d .endif .if !empty(SRCS:Msdiodevs.h) CLEANFILES+= sdiodevs.h sdiodevs.h: ${SYSDIR}/tools/sdiodevs2h.awk ${SYSDIR}/dev/sdio/sdiodevs ${AWK} -f ${SYSDIR}/tools/sdiodevs2h.awk ${SYSDIR}/dev/sdio/sdiodevs -h .endif .if !empty(SRCS:Msdiodevs_data.h) CLEANFILES+= sdiodevs_data.h sdiodevs_data.h: ${SYSDIR}/tools/sdiodevs2h.awk ${SYSDIR}/dev/sdio/sdiodevs ${AWK} -f ${SYSDIR}/tools/sdiodevs2h.awk ${SYSDIR}/dev/sdio/sdiodevs -d .endif .if !empty(SRCS:Macpi_quirks.h) CLEANFILES+= acpi_quirks.h acpi_quirks.h: ${SYSDIR}/tools/acpi_quirks2h.awk ${SYSDIR}/dev/acpica/acpi_quirks ${AWK} -f ${SYSDIR}/tools/acpi_quirks2h.awk ${SYSDIR}/dev/acpica/acpi_quirks .endif .if !empty(SRCS:Massym.inc) || !empty(DPSRCS:Massym.inc) CLEANFILES+= assym.inc genassym.o DEPENDOBJS+= genassym.o DPSRCS+= offset.inc .endif .if defined(MODULE_TIED) DPSRCS+= offset.inc .endif .if !empty(SRCS:Moffset.inc) || !empty(DPSRCS:Moffset.inc) CLEANFILES+= offset.inc genoffset.o DEPENDOBJS+= genoffset.o .endif assym.inc: genassym.o offset.inc: genoffset.o assym.inc: ${SYSDIR}/kern/genassym.sh sh ${SYSDIR}/kern/genassym.sh genassym.o > ${.TARGET} genassym.o: ${SYSDIR}/${MACHINE}/${MACHINE}/genassym.c offset.inc genassym.o: ${SRCS:Mopt_*.h} ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon \ ${SYSDIR}/${MACHINE}/${MACHINE}/genassym.c offset.inc: ${SYSDIR}/kern/genoffset.sh genoffset.o sh ${SYSDIR}/kern/genoffset.sh genoffset.o > ${.TARGET} genoffset.o: ${SYSDIR}/kern/genoffset.c genoffset.o: ${SRCS:Mopt_*.h} ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon \ ${SYSDIR}/kern/genoffset.c CLEANDEPENDFILES+= ${_ILINKS} # .depend needs include links so we remove them only together. cleanilinks: rm -f ${_ILINKS} OBJS_DEPEND_GUESS+= ${SRCS:M*.h} .if defined(KERNBUILDDIR) OBJS_DEPEND_GUESS+= opt_global.h .endif ZINCDIR=${SYSDIR}/contrib/openzfs/include OPENZFS_CFLAGS= \ -D_SYS_VMEM_H_ \ -D__KERNEL__ \ -nostdinc \ -DSMP \ -I${ZINCDIR} \ -I${ZINCDIR}/os/freebsd \ -I${ZINCDIR}/os/freebsd/spl \ -I${ZINCDIR}/os/freebsd/zfs \ -I${SYSDIR}/cddl/compat/opensolaris \ -I${SYSDIR}/cddl/contrib/opensolaris/uts/common \ -include ${ZINCDIR}/os/freebsd/spl/sys/ccompile.h .include .include .include .include "kern.mk" diff --git a/sys/conf/kmod.opts.mk b/sys/conf/kmod.opts.mk index cfb67400d050..88a74f3e62b3 100644 --- a/sys/conf/kmod.opts.mk +++ b/sys/conf/kmod.opts.mk @@ -1,16 +1,15 @@ -# $FreeBSD$ # # Handle options (KERN_OPTS) for kernel module options. This can be included earlier in a kmod Makefile # to allow KERN_OPTS to control SRCS, etc. .if !target(____) ____: .include # Grab all the options for a kernel build. For backwards compat, we need to # do this after bsd.own.mk. .include "kern.opts.mk" .include .include "config.mk" .endif # !target(____) diff --git a/sys/conf/kmod_syms.awk b/sys/conf/kmod_syms.awk index 8691d2e0b989..b364fcf4bd19 100644 --- a/sys/conf/kmod_syms.awk +++ b/sys/conf/kmod_syms.awk @@ -1,32 +1,31 @@ -# $FreeBSD$ # Read global symbols from object file. BEGIN { modname = ARGV[1] while ("${NM:='nm'} -g " ARGV[1] | getline) { if (match($0, /^[^[:space:]]+ [^AU] (.*)$/)) { syms[$3] = $2 } } delete ARGV[1] } # De-list symbols from the export list. { smbl = $0 if (!(smbl in syms)) { printf "Symbol %s is not present in %s\n", \ smbl, modname > "/dev/stderr" } delete syms[smbl] } # Strip commons, make everything else local. END { for (member in syms) { if (syms[member] == "C") print "-N" member else print "-L" member } } diff --git a/sys/conf/kmod_syms_prefix.awk b/sys/conf/kmod_syms_prefix.awk index 9962ddc60a05..1f003231a85a 100644 --- a/sys/conf/kmod_syms_prefix.awk +++ b/sys/conf/kmod_syms_prefix.awk @@ -1,18 +1,17 @@ -# $FreeBSD$ # Read global symbols from object file. BEGIN { while ("${NM:='nm'} " ARGV[1] | getline) { if (match($0, /^[^[:space:]]+ [^AU] (.*)$/)) { syms[$3] = $2 } } delete ARGV[1] } # Strip commons, make everything else local. END { for (member in syms) { printf("--redefine-sym=%s=%s%s\n", member, prefix, member); } } diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index f05e6d0a2481..43ccf383678b 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -1,331 +1,330 @@ #!/bin/sh - # # SPDX-License-Identifier: BSD-3-Clause # # Copyright (c) 1984, 1986, 1990, 1993 # The Regents of the University of California. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. Neither the name of the University nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # @(#)newvers.sh 8.1 (Berkeley) 4/20/94 -# $FreeBSD$ # Command line options: # # -c Print the copyright / license statement as a C comment and exit # # -r Reproducible build. Do not embed directory names, user names, # time stamps or other dynamic information into the output file. # This is intended to allow two builds done at different times # and even by different people on different hosts to produce # identical output. # # -R Reproducible build if the tree represents an unmodified # checkout from a version control system. Metadata is included # if the tree is modified. # # -V var Print ${var}="${val-of-var}" and exit # # -v Print TYPE REVISION BRANCH RELEASE VERSION RELDATE variables # like the -V command # TYPE="FreeBSD" REVISION="14.0" BRANCH="ALPHA1" if [ -n "${BRANCH_OVERRIDE}" ]; then BRANCH=${BRANCH_OVERRIDE} fi if [ -z "${SYSDIR}" ]; then SYSDIR=$(dirname $0)/.. fi # allow random overrides while : do case "$1" in *=*) eval "$1"; shift;; *) break;; esac done RELEASE="${RELEASE:-${REVISION}-${BRANCH}}" VERSION="${VERSION:-${TYPE} ${RELEASE}}" RELDATE=$(awk '/^#define[[:space:]]*__FreeBSD_version/ {print $3}' ${PARAMFILE:-${SYSDIR}/sys/param.h}) if [ -r "${SYSDIR}/../COPYRIGHT" ]; then year=$(sed -Ee '/^Copyright .* The FreeBSD Project/!d;s/^.*1992-([0-9]*) .*$/\1/g' ${SYSDIR}/../COPYRIGHT) else year=$(date +%Y) fi # look for copyright template b=share/examples/etc/bsd-style-copyright for bsd_copyright in $b ../$b ../../$b ../../../$b /usr/src/$b /usr/$b do if [ -r "$bsd_copyright" ]; then COPYRIGHT=$(sed \ -e "s/\[year\]/1992-$year/" \ -e 's/\[your name here\]\.* /The FreeBSD Project./' \ -e 's/\[your name\]\.*/The FreeBSD Project./' \ -e '/\[id for your version control system, if any\]/d' \ $bsd_copyright) break fi done # no copyright found, use a dummy if [ -z "$COPYRIGHT" ]; then COPYRIGHT="/*- * Copyright (c) 1992-$year The FreeBSD Project. * */" fi # add newline COPYRIGHT="$COPYRIGHT " # We expand include_metadata later since we may set it to the # future value of modified. include_metadata=yes modified=no while getopts crRvV: opt; do case "$opt" in c) echo "$COPYRIGHT" exit 0 ;; r) include_metadata=no ;; R) include_metadata=if-modified ;; v) # Only put variables that are single lines here. for v in TYPE REVISION BRANCH RELEASE VERSION RELDATE; do eval val=\$${v} echo ${v}=\"${val}\" done exit 0 ;; V) v=$OPTARG eval val=\$${v} echo ${v}=\"${val}\" VARS_ONLY_EXIT=1 ;; esac done shift $((OPTIND - 1)) # VARS_ONLY means no files should be generated, this is just being # included. [ -n "$VARS_ONLY" ] && return 0 # VARS_ONLY_EXIT means no files should be generated, only the value of # variables are being output. [ -n "$VARS_ONLY_EXIT" ] && exit 0 # # findvcs dir # Looks up directory dir at world root and up the filesystem # findvcs() { local savedir savedir=$(pwd) cd ${SYSDIR}/.. while [ $(pwd) != "/" ]; do if [ -e "./$1" ]; then VCSTOP=$(pwd) VCSDIR=${VCSTOP}"/$1" cd ${savedir} return 0 fi cd .. done cd ${savedir} return 1 } git_tree_modified() { ! $git_cmd "--work-tree=${VCSTOP}" -c core.checkStat=minimal -c core.fileMode=off diff --quiet } LC_ALL=C; export LC_ALL if [ ! -r version ] then echo 0 > version fi touch version v=$(cat version) u=${USER:-root} d=$(pwd) h=${HOSTNAME:-$(hostname)} if [ -n "$SOURCE_DATE_EPOCH" ]; then if ! t=$(date -r $SOURCE_DATE_EPOCH 2>/dev/null); then echo "Invalid SOURCE_DATE_EPOCH" >&2 exit 1 fi else t=$(date) fi i=$(${MAKE:-make} -V KERN_IDENT) compiler_v=$($(${MAKE:-make} -V CC) -v 2>&1 | grep -w 'version') for dir in /usr/bin /usr/local/bin; do if [ ! -z "${svnversion}" ] ; then break fi if [ -x "${dir}/svnversion" ] && [ -z ${svnversion} ] ; then # Run svnversion from ${dir} on this script; if return code # is not zero, the checkout might not be compatible with the # svnversion being used. ${dir}/svnversion $(realpath ${0}) >/dev/null 2>&1 if [ $? -eq 0 ]; then svnversion=${dir}/svnversion break fi fi done if [ -z "${svnversion}" ] && [ -x /usr/bin/svnliteversion ] ; then /usr/bin/svnliteversion $(realpath ${0}) >/dev/null 2>&1 if [ $? -eq 0 ]; then svnversion=/usr/bin/svnliteversion else svnversion= fi fi if findvcs .git; then for dir in /usr/bin /usr/local/bin; do if [ -x "${dir}/git" ] ; then git_cmd="${dir}/git -c help.autocorrect=0 --git-dir=${VCSDIR}" break fi done fi if findvcs .gituprevision; then gituprevision="${VCSTOP}/.gituprevision" fi if findvcs .hg; then for dir in /usr/bin /usr/local/bin; do if [ -x "${dir}/hg" ] ; then hg_cmd="${dir}/hg -R ${VCSDIR}" break fi done fi if [ -n "$svnversion" ] ; then svn=$(cd ${SYSDIR} && $svnversion 2>/dev/null) case "$svn" in [0-9]*[MSP]|*:*) svn=" r${svn}" modified=yes ;; [0-9]*) svn=" r${svn}" ;; *) unset svn ;; esac fi if [ -n "$git_cmd" ] ; then git=$($git_cmd rev-parse --verify --short HEAD 2>/dev/null) if [ "$($git_cmd rev-parse --is-shallow-repository)" = false ] ; then git_cnt=$($git_cmd rev-list --first-parent --count HEAD 2>/dev/null) if [ -n "$git_cnt" ] ; then git="n${git_cnt}-${git}" fi fi git_b=$($git_cmd rev-parse --abbrev-ref HEAD) if [ -n "$git_b" -a "$git_b" != "HEAD" ] ; then git="${git_b}-${git}" fi if git_tree_modified; then git="${git}-dirty" modified=yes fi git=" ${git}" fi if [ -n "$gituprevision" ] ; then gitup=" $(awk -F: '{print $2}' $gituprevision)" fi if [ -n "$hg_cmd" ] ; then hg=$($hg_cmd id 2>/dev/null) hgsvn=$($hg_cmd svn info 2>/dev/null | \ awk -F': ' '/Revision/ { print $2 }') if [ -n "$hgsvn" ] ; then svn=" r${hgsvn}" fi if [ -n "$hg" ] ; then hg=" ${hg}" fi fi [ ${include_metadata} = "if-modified" -a ${modified} = "yes" ] && include_metadata=yes if [ ${include_metadata} != "yes" ]; then VERINFO="${VERSION}${svn}${git}${gitup}${hg} ${i}" VERSTR="${VERINFO}\\n" else VERINFO="${VERSION} #${v}${svn}${git}${gitup}${hg}: ${t}" VERSTR="${VERINFO}\\n ${u}@${h}:${d}\\n" fi vers_content_new=$(cat << EOF $COPYRIGHT #define SCCSSTR "@(#)${VERINFO}" #define VERSTR "${VERSTR}" #define RELSTR "${RELEASE}" char sccs[sizeof(SCCSSTR) > 128 ? sizeof(SCCSSTR) : 128] = SCCSSTR; char version[sizeof(VERSTR) > 256 ? sizeof(VERSTR) : 256] = VERSTR; char compiler_version[] = "${compiler_v}"; char ostype[] = "${TYPE}"; char osrelease[sizeof(RELSTR) > 32 ? sizeof(RELSTR) : 32] = RELSTR; int osreldate = ${RELDATE}; char kern_ident[] = "${i}"; EOF ) vers_content_old=$(cat vers.c 2>/dev/null || true) if [ "$vers_content_new" != "$vers_content_old" ]; then printf "%s\n" "$vers_content_new" > vers.c fi echo $((v + 1)) > version diff --git a/sys/conf/options b/sys/conf/options index 9e8db5632ec4..56c1a33216d5 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -1,1024 +1,1023 @@ -# $FreeBSD$ # # On the handling of kernel options # # All kernel options should be listed in NOTES, with suitable # descriptions. Negative options (options that make some code not # compile) should be commented out; LINT (generated from NOTES) should # compile as much code as possible. Try to structure option-using # code so that a single option only switch code on, or only switch # code off, to make it possible to have a full compile-test. If # necessary, you can check for COMPILING_LINT to get maximum code # coverage. # # All new options shall also be listed in either "conf/options" or # "conf/options.". Options that affect a single source-file # .[c|s] should be directed into "opt_.h", while options # that affect multiple files should either go in "opt_global.h" if # this is a kernel-wide option (used just about everywhere), or in # "opt_.h" if it affects only some files. # Note that the effect of listing only an option without a # header-file-name in conf/options (and cousins) is that the last # convention is followed. # # This handling scheme is not yet fully implemented. # # # Format of this file: # Option name filename # # If filename is missing, the default is # opt_.h AAC_DEBUG opt_aac.h AACRAID_DEBUG opt_aacraid.h AHC_ALLOW_MEMIO opt_aic7xxx.h AHC_TMODE_ENABLE opt_aic7xxx.h AHC_DUMP_EEPROM opt_aic7xxx.h AHC_DEBUG opt_aic7xxx.h AHC_DEBUG_OPTS opt_aic7xxx.h AHC_REG_PRETTY_PRINT opt_aic7xxx.h AHD_DEBUG opt_aic79xx.h AHD_DEBUG_OPTS opt_aic79xx.h AHD_TMODE_ENABLE opt_aic79xx.h AHD_REG_PRETTY_PRINT opt_aic79xx.h # Debugging options. ALT_BREAK_TO_DEBUGGER opt_kdb.h BREAK_TO_DEBUGGER opt_kdb.h BUF_TRACKING opt_global.h DDB DDB_BUFR_SIZE opt_ddb.h DDB_CAPTURE_DEFAULTBUFSIZE opt_ddb.h DDB_CAPTURE_MAXBUFSIZE opt_ddb.h DDB_CTF opt_ddb.h DDB_NUMSYM opt_ddb.h EARLY_PRINTF opt_global.h FULL_BUF_TRACKING opt_global.h GDB KDB opt_global.h KDB_TRACE opt_kdb.h KDB_UNATTENDED opt_kdb.h KLD_DEBUG opt_kld.h NUM_CORE_FILES opt_global.h QUEUE_MACRO_DEBUG_TRACE opt_global.h QUEUE_MACRO_DEBUG_TRASH opt_global.h SYSCTL_DEBUG opt_sysctl.h TEXTDUMP_PREFERRED opt_ddb.h TEXTDUMP_VERBOSE opt_ddb.h TSLOG opt_global.h TSLOG_PAGEZERO opt_global.h TSLOGSIZE opt_global.h # Miscellaneous options. ALQ ALTERA_SDCARD_FAST_SIM opt_altera_sdcard.h ATSE_CFI_HACK opt_cfi.h AUDIT opt_global.h BOOTHOWTO opt_global.h BOOTVERBOSE opt_global.h CALLOUT_PROFILING CAPABILITIES opt_capsicum.h CAPABILITY_MODE opt_capsicum.h CC_CDG opt_global.h CC_CHD opt_global.h CC_CUBIC opt_global.h CC_DEFAULT opt_cc.h CC_DCTCP opt_global.h CC_HD opt_global.h CC_HTCP opt_global.h CC_NEWRENO opt_global.h CC_VEGAS opt_global.h COMPAT_43 opt_global.h COMPAT_43TTY opt_global.h COMPAT_FREEBSD4 opt_global.h COMPAT_FREEBSD5 opt_global.h COMPAT_FREEBSD6 opt_global.h COMPAT_FREEBSD7 opt_global.h COMPAT_FREEBSD9 opt_global.h COMPAT_FREEBSD10 opt_global.h COMPAT_FREEBSD11 opt_global.h COMPAT_FREEBSD12 opt_global.h COMPAT_FREEBSD13 opt_global.h COMPAT_LINUXKPI opt_dontuse.h COMPILING_LINT opt_global.h CY_PCI_FASTINTR DEADLKRES opt_watchdog.h EXPERIMENTAL opt_global.h DIRECTIO FILEMON opt_dontuse.h FFCLOCK FULL_PREEMPTION opt_sched.h GZIO opt_gzio.h IMGACT_BINMISC opt_dontuse.h IPI_PREEMPTION opt_sched.h GEOM_BDE opt_geom.h GEOM_CACHE opt_geom.h GEOM_CONCAT opt_geom.h GEOM_ELI opt_geom.h GEOM_GATE opt_geom.h GEOM_JOURNAL opt_geom.h GEOM_LABEL opt_geom.h GEOM_LABEL_GPT opt_geom.h GEOM_LINUX_LVM opt_geom.h GEOM_MAP opt_geom.h GEOM_MIRROR opt_geom.h GEOM_MOUNTVER opt_geom.h GEOM_MULTIPATH opt_geom.h GEOM_NOP opt_geom.h GEOM_PART_APM opt_geom.h GEOM_PART_BSD opt_geom.h GEOM_PART_BSD64 opt_geom.h GEOM_PART_EBR opt_geom.h GEOM_PART_GPT opt_geom.h GEOM_PART_LDM opt_geom.h GEOM_PART_MBR opt_geom.h GEOM_RAID opt_geom.h GEOM_RAID3 opt_geom.h GEOM_SHSEC opt_geom.h GEOM_STRIPE opt_geom.h GEOM_UZIP opt_geom.h GEOM_UZIP_DEBUG opt_geom.h GEOM_VINUM opt_geom.h GEOM_VIRSTOR opt_geom.h GEOM_ZERO opt_geom.h IFLIB opt_iflib.h KDTRACE_HOOKS opt_global.h KDTRACE_FRAME opt_kdtrace.h KN_HASHSIZE opt_kqueue.h KSTACK_MAX_PAGES KSTACK_PAGES KSTACK_USAGE_PROF KTRACE KTRACE_REQUEST_POOL opt_ktrace.h LIBICONV MAC opt_global.h MAC_BIBA opt_dontuse.h MAC_BSDEXTENDED opt_dontuse.h MAC_DDB opt_dontuse.h MAC_IFOFF opt_dontuse.h MAC_IPACL opt_dontuse.h MAC_LOMAC opt_dontuse.h MAC_MLS opt_dontuse.h MAC_NONE opt_dontuse.h MAC_NTPD opt_dontuse.h MAC_PARTITION opt_dontuse.h MAC_PORTACL opt_dontuse.h MAC_PRIORITY opt_dontuse.h MAC_SEEOTHERUIDS opt_dontuse.h MAC_STATIC opt_mac.h MAC_STUB opt_dontuse.h MAC_TEST opt_dontuse.h MAC_VERIEXEC opt_dontuse.h MAC_VERIEXEC_SHA1 opt_dontuse.h MAC_VERIEXEC_SHA256 opt_dontuse.h MAC_VERIEXEC_SHA384 opt_dontuse.h MAC_VERIEXEC_SHA512 opt_dontuse.h MD_ROOT opt_md.h MD_ROOT_FSTYPE opt_md.h MD_ROOT_READONLY opt_md.h MD_ROOT_SIZE opt_md.h MD_ROOT_MEM opt_md.h MFI_DEBUG opt_mfi.h MFI_DECODE_LOG opt_mfi.h MPROF_BUFFERS opt_mprof.h MPROF_HASH_SIZE opt_mprof.h NEW_PCIB opt_global.h NO_ADAPTIVE_MUTEXES opt_adaptive_mutexes.h NO_ADAPTIVE_RWLOCKS NO_ADAPTIVE_SX NO_OBSOLETE_CODE opt_global.h NO_SYSCTL_DESCR opt_global.h NSWBUF_MIN opt_param.h MBUF_PACKET_ZONE_DISABLE opt_global.h PANIC_REBOOT_WAIT_TIME opt_panic.h PCI_HP opt_pci.h PCI_IOV opt_global.h PPC_DEBUG opt_ppc.h PPC_PROBE_CHIPSET opt_ppc.h PPS_SYNC opt_ntp.h PREEMPTION opt_sched.h QUOTA SCHED_4BSD opt_sched.h SCHED_STATS opt_sched.h SCHED_ULE opt_sched.h SLEEPQUEUE_PROFILING SLHCI_DEBUG opt_slhci.h STACK opt_stack.h SUIDDIR MSGMNB opt_sysvipc.h MSGMNI opt_sysvipc.h MSGSEG opt_sysvipc.h MSGSSZ opt_sysvipc.h MSGTQL opt_sysvipc.h SEMMNI opt_sysvipc.h SEMMNS opt_sysvipc.h SEMMNU opt_sysvipc.h SEMMSL opt_sysvipc.h SEMOPM opt_sysvipc.h SEMUME opt_sysvipc.h SHMALL opt_sysvipc.h SHMMAX opt_sysvipc.h SHMMAXPGS opt_sysvipc.h SHMMIN opt_sysvipc.h SHMMNI opt_sysvipc.h SHMSEG opt_sysvipc.h SYSVMSG opt_sysvipc.h SYSVSEM opt_sysvipc.h SYSVSHM opt_sysvipc.h SW_WATCHDOG opt_watchdog.h TCPHPTS opt_inet.h TCP_REQUEST_TRK opt_global.h TCP_ACCOUNTING opt_global.h # # TCP SaD Detection is an experimental Sack attack Detection (SaD) # algorithm that uses "normal" behaviour with SACK's to detect # a possible attack. It is strictly experimental at this point. # TCP_SAD_DETECTION opt_inet.h TURNSTILE_PROFILING UMTX_PROFILING UMTX_CHAINS opt_global.h VERBOSE_SYSINIT ZSTDIO opt_zstdio.h # Sanitizers COVERAGE opt_global.h KASAN opt_global.h KCOV KCSAN opt_global.h KMSAN opt_global.h KUBSAN opt_global.h # POSIX kernel options P1003_1B_MQUEUE opt_posix.h P1003_1B_SEMAPHORES opt_posix.h _KPOSIX_PRIORITY_SCHEDULING opt_posix.h # Do we want the config file compiled into the kernel? INCLUDE_CONFIG_FILE opt_config.h # Options for static filesystems. These should only be used at config # time, since the corresponding lkms cannot work if there are any static # dependencies. Unusability is enforced by hiding the defines for the # options in a never-included header. AUTOFS opt_dontuse.h CD9660 opt_dontuse.h EXT2FS opt_dontuse.h FDESCFS opt_dontuse.h FFS opt_dontuse.h FUSEFS opt_dontuse.h MSDOSFS opt_dontuse.h NULLFS opt_dontuse.h PROCFS opt_dontuse.h PSEUDOFS opt_dontuse.h SMBFS opt_dontuse.h TARFS opt_dontuse.h TMPFS opt_dontuse.h UDF opt_dontuse.h UNIONFS opt_dontuse.h ZFS opt_dontuse.h # Pseudofs debugging PSEUDOFS_TRACE opt_pseudofs.h # Tarfs debugging TARFS_DEBUG opt_tarfs.h # In-kernel GSS-API KGSSAPI opt_kgssapi.h KGSSAPI_DEBUG opt_kgssapi.h # These static filesystems have one slightly bogus static dependency in # sys/i386/i386/autoconf.c. If any of these filesystems are # statically compiled into the kernel, code for mounting them as root # filesystems will be enabled - but look below. # NFSCL - client # NFSD - server NFSCL opt_nfs.h NFSD opt_nfs.h # filesystems and libiconv bridge CD9660_ICONV opt_dontuse.h MSDOSFS_ICONV opt_dontuse.h UDF_ICONV opt_dontuse.h # If you are following the conditions in the copyright, # you can enable soft-updates which will speed up a lot of thigs # and make the system safer from crashes at the same time. # otherwise a STUB module will be compiled in. SOFTUPDATES opt_ffs.h # On small, embedded systems, it can be useful to turn off support for # snapshots. It saves about 30-40k for a feature that would be lightly # used, if it is used at all. NO_FFS_SNAPSHOT opt_ffs.h # Enabling this option turns on support for Access Control Lists in UFS, # which can be used to support high security configurations. Depends on # UFS_EXTATTR. UFS_ACL opt_ufs.h # Enabling this option turns on support for extended attributes in UFS-based # filesystems, which can be used to support high security configurations # as well as new filesystem features. UFS_EXTATTR opt_ufs.h UFS_EXTATTR_AUTOSTART opt_ufs.h # Enable fast hash lookups for large directories on UFS-based filesystems. UFS_DIRHASH opt_ufs.h # Enable gjournal-based UFS journal. UFS_GJOURNAL opt_ufs.h # The below sentence is not in English, and neither is this one. # We plan to remove the static dependences above, with a # _ROOT option to control if it usable as root. This list # allows these options to be present in config files already (though # they won't make any difference yet). NFS_ROOT opt_nfsroot.h # SMB/CIFS requester NETSMB opt_netsmb.h # Enable debugnet(4) networking support. DEBUGNET opt_global.h # Enable netdump(4) client support. NETDUMP opt_global.h # Enable netgdb(4) support. NETGDB opt_global.h # Options used only in subr_param.c. HZ opt_param.h MAXFILES opt_param.h NBUF opt_param.h NSFBUFS opt_param.h VM_BCACHE_SIZE_MAX opt_param.h VM_SWZONE_SIZE_MAX opt_param.h MAXUSERS DFLDSIZ opt_param.h MAXDSIZ opt_param.h MAXSSIZ opt_param.h # Generic SCSI options. CAM_MAX_HIGHPOWER opt_cam.h CAMDEBUG opt_cam.h CAM_DEBUG_COMPILE opt_cam.h CAM_DEBUG_DELAY opt_cam.h CAM_DEBUG_BUS opt_cam.h CAM_DEBUG_TARGET opt_cam.h CAM_DEBUG_LUN opt_cam.h CAM_DEBUG_FLAGS opt_cam.h CAM_BOOT_DELAY opt_cam.h CAM_IOSCHED_DYNAMIC opt_cam.h CAM_IO_STATS opt_cam.h CAM_TEST_FAILURE opt_cam.h SCSI_DELAY opt_scsi.h SCSI_NO_SENSE_STRINGS opt_scsi.h SCSI_NO_OP_STRINGS opt_scsi.h # Options used only in cam/ata/ata_da.c ATA_STATIC_ID opt_ada.h # Options used only in cam/scsi/scsi_cd.c CHANGER_MIN_BUSY_SECONDS opt_cd.h CHANGER_MAX_BUSY_SECONDS opt_cd.h # Options used only in cam/scsi/scsi_da.c DA_TRACK_REFS opt_da.h # Options used only in cam/scsi/scsi_sa.c. SA_IO_TIMEOUT opt_sa.h SA_SPACE_TIMEOUT opt_sa.h SA_REWIND_TIMEOUT opt_sa.h SA_ERASE_TIMEOUT opt_sa.h SA_1FM_AT_EOD opt_sa.h # Options used only in cam/scsi/scsi_pt.c SCSI_PT_DEFAULT_TIMEOUT opt_pt.h # Options used only in cam/scsi/scsi_ses.c SES_ENABLE_PASSTHROUGH opt_ses.h # Options used in dev/sym/ (Symbios SCSI driver). SYM_SETUP_SCSI_DIFF opt_sym.h #-HVD support for 825a, 875, 885 # disabled:0 (default), enabled:1 SYM_SETUP_PCI_PARITY opt_sym.h #-PCI parity checking # disabled:0, enabled:1 (default) SYM_SETUP_MAX_LUN opt_sym.h #-Number of LUNs supported # default:8, range:[1..64] # Options used only in dev/isp/* ISP_TARGET_MODE opt_isp.h ISP_FW_CRASH_DUMP opt_isp.h ISP_DEFAULT_ROLES opt_isp.h ISP_INTERNAL_TARGET opt_isp.h ISP_FCTAPE_OFF opt_isp.h # Options used only in dev/iscsi ISCSI_INITIATOR_DEBUG opt_iscsi_initiator.h # Net stuff. ACCEPT_FILTER_DATA ACCEPT_FILTER_DNS ACCEPT_FILTER_HTTP ALTQ opt_global.h ALTQ_CBQ opt_altq.h ALTQ_CDNR opt_altq.h ALTQ_CODEL opt_altq.h ALTQ_DEBUG opt_altq.h ALTQ_HFSC opt_altq.h ALTQ_FAIRQ opt_altq.h ALTQ_NOPCC opt_altq.h ALTQ_PRIQ opt_altq.h ALTQ_RED opt_altq.h ALTQ_RIO opt_altq.h BOOTP opt_bootp.h BOOTP_BLOCKSIZE opt_bootp.h BOOTP_COMPAT opt_bootp.h BOOTP_NFSROOT opt_bootp.h BOOTP_NFSV3 opt_bootp.h BOOTP_WIRED_TO opt_bootp.h DEVICE_POLLING DUMMYNET opt_ipdn.h RATELIMIT opt_ratelimit.h RATELIMIT_DEBUG opt_ratelimit.h INET opt_inet.h INET6 opt_inet6.h STATS opt_global.h IPDIVERT IPFILTER opt_ipfilter.h IPFILTER_DEFAULT_BLOCK opt_ipfilter.h IPFILTER_LOG opt_ipfilter.h IPFILTER_LOOKUP opt_ipfilter.h IPFIREWALL opt_ipfw.h IPFIREWALL_DEFAULT_TO_ACCEPT opt_ipfw.h IPFIREWALL_NAT opt_ipfw.h IPFIREWALL_NAT64 opt_ipfw.h IPFIREWALL_NPTV6 opt_ipfw.h IPFIREWALL_VERBOSE opt_ipfw.h IPFIREWALL_VERBOSE_LIMIT opt_ipfw.h IPFIREWALL_PMOD opt_ipfw.h IPSEC opt_ipsec.h IPSEC_DEBUG opt_ipsec.h IPSEC_SUPPORT opt_ipsec.h IPSTEALTH KERN_TLS KRPC LIBALIAS LIBMCHAIN MBUF_PROFILING MBUF_STRESS_TEST MROUTING opt_mrouting.h NFSLOCKD NETLINK opt_netlink.h PF_DEFAULT_TO_DROP opt_pf.h ROUTE_MPATH opt_route.h ROUTETABLES opt_route.h FIB_ALGO opt_route.h RSS opt_rss.h SLIP_IFF_OPTS opt_slip.h TCPPCAP opt_global.h SIFTR TCP_BLACKBOX opt_global.h TCP_HHOOK opt_global.h TCP_OFFLOAD opt_inet.h # Enable code to dispatch TCP offloading TCP_RFC7413 opt_inet.h TCP_RFC7413_MAX_KEYS opt_inet.h TCP_RFC7413_MAX_PSKS opt_inet.h TCP_SIGNATURE opt_ipsec.h VLAN_ARRAY opt_vlan.h XDR XBONEHACK # # SCTP # SCTP opt_sctp.h SCTP_SUPPORT opt_sctp.h SCTP_DEBUG opt_sctp.h # Enable debug printfs SCTP_LOCK_LOGGING opt_sctp.h # Log to KTR lock activity SCTP_MBUF_LOGGING opt_sctp.h # Log to KTR general mbuf aloc/free SCTP_MBCNT_LOGGING opt_sctp.h # Log to KTR mbcnt activity SCTP_PACKET_LOGGING opt_sctp.h # Log to a packet buffer last N packets SCTP_LTRACE_CHUNKS opt_sctp.h # Log to KTR chunks processed SCTP_LTRACE_ERRORS opt_sctp.h # Log to KTR error returns. SCTP_USE_PERCPU_STAT opt_sctp.h # Use per cpu stats. SCTP_MCORE_INPUT opt_sctp.h # Have multiple input threads for input mbufs SCTP_LOCAL_TRACE_BUF opt_sctp.h # Use tracebuffer exported via sysctl SCTP_DETAILED_STR_STATS opt_sctp.h # Use per PR-SCTP policy stream stats # # # # Netgraph(4). Use option NETGRAPH to enable the base netgraph code. # Each netgraph node type can be either be compiled into the kernel # or loaded dynamically. To get the former, include the corresponding # option below. Each type has its own man page, e.g. ng_async(4). NETGRAPH NETGRAPH_DEBUG opt_netgraph.h NETGRAPH_ASYNC opt_netgraph.h NETGRAPH_BLUETOOTH opt_netgraph.h NETGRAPH_BLUETOOTH_BT3C opt_netgraph.h NETGRAPH_BLUETOOTH_H4 opt_netgraph.h NETGRAPH_BLUETOOTH_HCI opt_netgraph.h NETGRAPH_BLUETOOTH_L2CAP opt_netgraph.h NETGRAPH_BLUETOOTH_SOCKET opt_netgraph.h NETGRAPH_BLUETOOTH_UBT opt_netgraph.h NETGRAPH_BLUETOOTH_UBTBCMFW opt_netgraph.h NETGRAPH_BPF opt_netgraph.h NETGRAPH_BRIDGE opt_netgraph.h NETGRAPH_CAR opt_netgraph.h NETGRAPH_CHECKSUM opt_netgraph.h NETGRAPH_CISCO opt_netgraph.h NETGRAPH_DEFLATE opt_netgraph.h NETGRAPH_DEVICE opt_netgraph.h NETGRAPH_ECHO opt_netgraph.h NETGRAPH_EIFACE opt_netgraph.h NETGRAPH_ETHER opt_netgraph.h NETGRAPH_ETHER_ECHO opt_netgraph.h NETGRAPH_FEC opt_netgraph.h NETGRAPH_FRAME_RELAY opt_netgraph.h NETGRAPH_GIF opt_netgraph.h NETGRAPH_GIF_DEMUX opt_netgraph.h NETGRAPH_HOLE opt_netgraph.h NETGRAPH_IFACE opt_netgraph.h NETGRAPH_IP_INPUT opt_netgraph.h NETGRAPH_IPFW opt_netgraph.h NETGRAPH_KSOCKET opt_netgraph.h NETGRAPH_L2TP opt_netgraph.h NETGRAPH_LMI opt_netgraph.h NETGRAPH_MPPC_COMPRESSION opt_netgraph.h NETGRAPH_MPPC_ENCRYPTION opt_netgraph.h NETGRAPH_NAT opt_netgraph.h NETGRAPH_NETFLOW opt_netgraph.h NETGRAPH_ONE2MANY opt_netgraph.h NETGRAPH_PATCH opt_netgraph.h NETGRAPH_PIPE opt_netgraph.h NETGRAPH_PPP opt_netgraph.h NETGRAPH_PPPOE opt_netgraph.h NETGRAPH_PPTPGRE opt_netgraph.h NETGRAPH_PRED1 opt_netgraph.h NETGRAPH_RFC1490 opt_netgraph.h NETGRAPH_SOCKET opt_netgraph.h NETGRAPH_SPLIT opt_netgraph.h NETGRAPH_SPPP opt_netgraph.h NETGRAPH_TAG opt_netgraph.h NETGRAPH_TCPMSS opt_netgraph.h NETGRAPH_TEE opt_netgraph.h NETGRAPH_TTY opt_netgraph.h NETGRAPH_UI opt_netgraph.h NETGRAPH_VJC opt_netgraph.h NETGRAPH_VLAN opt_netgraph.h # DRM options DRM_DEBUG opt_drm.h TI_SF_BUF_JUMBO opt_ti.h TI_JUMBO_HDRSPLIT opt_ti.h # Misc debug flags. Most of these should probably be replaced with # 'DEBUG', and then let people recompile just the interesting modules # with 'make CC="cc -DDEBUG"'. DEBUG_1284 opt_ppb_1284.h LPT_DEBUG opt_lpt.h PLIP_DEBUG opt_plip.h LOCKF_DEBUG opt_debug_lockf.h SI_DEBUG opt_debug_si.h IFMEDIA_DEBUG opt_ifmedia.h # Fb options FB_DEBUG opt_fb.h # ppbus related options PERIPH_1284 opt_ppb_1284.h DONTPROBE_1284 opt_ppb_1284.h # smbus related options ENABLE_ALART opt_intpm.h # These cause changes all over the kernel BLKDEV_IOSIZE opt_global.h BURN_BRIDGES opt_global.h DEBUG opt_global.h DEBUG_LOCKS opt_global.h DEBUG_VFS_LOCKS opt_global.h DFLTPHYS opt_global.h DIAGNOSTIC opt_global.h INVARIANT_SUPPORT opt_global.h INVARIANTS opt_global.h KASSERT_PANIC_OPTIONAL opt_global.h MAXCPU opt_global.h MAXMEMDOM opt_global.h MAXPHYS opt_maxphys.h MCLSHIFT opt_global.h MUTEX_NOINLINE opt_global.h LOCK_PROFILING opt_global.h MSIZE opt_global.h REGRESSION opt_global.h RWLOCK_NOINLINE opt_global.h SX_NOINLINE opt_global.h VFS_BIO_DEBUG opt_global.h # These are VM related options VM_KMEM_SIZE opt_vm.h VM_KMEM_SIZE_SCALE opt_vm.h VM_KMEM_SIZE_MAX opt_vm.h VM_NRESERVLEVEL opt_vm.h VM_LEVEL_0_ORDER opt_vm.h NO_SWAPPING opt_vm.h MALLOC_MAKE_FAILURES opt_vm.h MALLOC_PROFILE opt_vm.h MALLOC_DEBUG_MAXZONES opt_vm.h # The MemGuard replacement allocator used for tamper-after-free detection DEBUG_MEMGUARD opt_vm.h # The RedZone malloc(9) protection DEBUG_REDZONE opt_vm.h # Standard SMP options EARLY_AP_STARTUP opt_global.h SMP opt_global.h NUMA opt_global.h # Size of the kernel message buffer MSGBUF_SIZE opt_msgbuf.h # NFS options NFS_MINATTRTIMO opt_nfs.h NFS_MAXATTRTIMO opt_nfs.h NFS_MINDIRATTRTIMO opt_nfs.h NFS_MAXDIRATTRTIMO opt_nfs.h NFS_DEBUG opt_nfs.h # TMPFS options TMPFS_PAGES_MINRESERVED opt_tmpfs.h # Options for uart(4) UART_PPS_ON_CTS opt_uart.h UART_POLL_FREQ opt_uart.h UART_DEV_TOLERANCE_PCT opt_uart.h # options for bus/device framework BUS_DEBUG opt_bus.h # options for USB support USB_DEBUG opt_usb.h USB_HOST_ALIGN opt_usb.h USB_REQ_DEBUG opt_usb.h USB_TEMPLATE opt_usb.h USB_VERBOSE opt_usb.h USB_DMA_SINGLE_ALLOC opt_usb.h USB_EHCI_BIG_ENDIAN_DESC opt_usb.h U3G_DEBUG opt_u3g.h UKBD_DFLT_KEYMAP opt_ukbd.h UPLCOM_INTR_INTERVAL opt_uplcom.h UVSCOM_DEFAULT_OPKTSIZE opt_uvscom.h UVSCOM_INTR_INTERVAL opt_uvscom.h # options for the Realtek rtwn driver RTWN_DEBUG opt_rtwn.h RTWN_WITHOUT_UCODE opt_rtwn.h # Embedded system options INIT_PATH ROOTDEVNAME FDC_DEBUG opt_fdc.h PCFCLOCK_VERBOSE opt_pcfclock.h PCFCLOCK_MAX_RETRIES opt_pcfclock.h KTR opt_global.h KTR_ALQ opt_ktr.h KTR_MASK opt_ktr.h KTR_CPUMASK opt_ktr.h KTR_COMPILE opt_global.h KTR_BOOT_ENTRIES opt_global.h KTR_ENTRIES opt_global.h KTR_VERBOSE opt_ktr.h WITNESS opt_global.h WITNESS_KDB opt_witness.h WITNESS_NO_VNODE opt_witness.h WITNESS_SKIPSPIN opt_witness.h WITNESS_COUNT opt_witness.h OPENSOLARIS_WITNESS opt_global.h EPOCH_TRACE opt_global.h # options for ACPI support ACPI_DEBUG opt_acpi.h ACPI_MAX_TASKS opt_acpi.h ACPI_MAX_THREADS opt_acpi.h DEV_ACPI opt_acpi.h ACPI_EARLY_EPYC_WAR opt_acpi.h # options for IOMMU support IOMMU opt_iommu.h # ISA support DEV_ISA opt_isa.h ISAPNP opt_dontuse.h # various 'device presence' options. DEV_BPF opt_bpf.h DEV_CARP opt_carp.h DEV_NETMAP opt_global.h DEV_PCI opt_pci.h DEV_PF opt_pf.h DEV_PFLOG opt_pf.h DEV_PFSYNC opt_pf.h DEV_SPLASH opt_splash.h DEV_VLAN opt_vlan.h # bce driver BCE_DEBUG opt_bce.h BCE_NVRAM_WRITE_SUPPORT opt_bce.h SOCKBUF_DEBUG opt_global.h # options for hifn driver HIFN_DEBUG opt_hifn.h HIFN_RNDTEST opt_hifn.h # options for safenet driver SAFE_DEBUG opt_safe.h SAFE_NO_RNG opt_safe.h SAFE_RNDTEST opt_safe.h # syscons/vt options MAXCONS opt_syscons.h SC_ALT_MOUSE_IMAGE opt_syscons.h SC_CUT_SPACES2TABS opt_syscons.h SC_CUT_SEPCHARS opt_syscons.h SC_DEBUG_LEVEL opt_syscons.h SC_DFLT_FONT opt_syscons.h SC_DFLT_TERM opt_syscons.h SC_DISABLE_KDBKEY opt_syscons.h SC_DISABLE_REBOOT opt_syscons.h SC_HISTORY_SIZE opt_syscons.h SC_KERNEL_CONS_ATTR opt_syscons.h SC_KERNEL_CONS_ATTRS opt_syscons.h SC_KERNEL_CONS_REV_ATTR opt_syscons.h SC_MOUSE_CHAR opt_syscons.h SC_NO_CUTPASTE opt_syscons.h SC_NO_FONT_LOADING opt_syscons.h SC_NO_HISTORY opt_syscons.h SC_NO_MODE_CHANGE opt_syscons.h SC_NO_SUSPEND_VTYSWITCH opt_syscons.h SC_NO_SYSMOUSE opt_syscons.h SC_NO_TERM_DUMB opt_syscons.h SC_NO_TERM_SC opt_syscons.h SC_NO_TERM_TEKEN opt_syscons.h SC_NORM_ATTR opt_syscons.h SC_NORM_REV_ATTR opt_syscons.h SC_PIXEL_MODE opt_syscons.h SC_RENDER_DEBUG opt_syscons.h SC_TWOBUTTON_MOUSE opt_syscons.h VT_ALT_TO_ESC_HACK opt_syscons.h VT_FB_MAX_WIDTH opt_syscons.h VT_FB_MAX_HEIGHT opt_syscons.h VT_MAXWINDOWS opt_syscons.h VT_TWOBUTTON_MOUSE opt_syscons.h DEV_SC opt_syscons.h DEV_VT opt_syscons.h # teken terminal emulator options TEKEN_CONS25 opt_teken.h TEKEN_UTF8 opt_teken.h TERMINAL_KERN_ATTR opt_teken.h TERMINAL_NORM_ATTR opt_teken.h # options for printf PRINTF_BUFR_SIZE opt_printf.h BOOT_TAG opt_printf.h BOOT_TAG_SZ opt_printf.h # kbd options KBD_DISABLE_KEYMAP_LOAD opt_kbd.h KBD_INSTALL_CDEV opt_kbd.h KBD_MAXRETRY opt_kbd.h KBD_MAXWAIT opt_kbd.h KBD_RESETDELAY opt_kbd.h KBD_DELAY1 opt_kbd.h KBD_DELAY2 opt_kbd.h KBDIO_DEBUG opt_kbd.h KBDMUX_DFLT_KEYMAP opt_kbdmux.h # options for the Atheros driver ATH_DEBUG opt_ath.h ATH_TXBUF opt_ath.h ATH_RXBUF opt_ath.h ATH_DIAGAPI opt_ath.h ATH_TX99_DIAG opt_ath.h ATH_ENABLE_11N opt_ath.h ATH_ENABLE_DFS opt_ath.h ATH_EEPROM_FIRMWARE opt_ath.h ATH_ENABLE_RADIOTAP_VENDOR_EXT opt_ath.h ATH_DEBUG_ALQ opt_ath.h ATH_KTR_INTR_DEBUG opt_ath.h AH_DEBUG opt_ah.h AH_ASSERT opt_ah.h AH_DEBUG_ALQ opt_ah.h AH_REGOPS_FUNC opt_ah.h AH_WRITE_REGDOMAIN opt_ah.h AH_DEBUG_COUNTRY opt_ah.h AH_WRITE_EEPROM opt_ah.h AH_PRIVATE_DIAG opt_ah.h AH_NEED_DESC_SWAP opt_ah.h AH_USE_INIPDGAIN opt_ah.h AH_MAXCHAN opt_ah.h AH_RXCFG_SDMAMW_4BYTES opt_ah.h AH_INTERRUPT_DEBUGGING opt_ah.h # AR5416 and later interrupt mitigation # XXX do not use this for AR9130 AH_AR5416_INTERRUPT_MITIGATION opt_ah.h # options for the Altera mSGDMA driver (altera_msgdma) ALTERA_MSGDMA_DESC_STD opt_altera_msgdma.h ALTERA_MSGDMA_DESC_EXT opt_altera_msgdma.h ALTERA_MSGDMA_DESC_PF_STD opt_altera_msgdma.h ALTERA_MSGDMA_DESC_PF_EXT opt_altera_msgdma.h # options for the Broadcom BCM43xx driver (bwi) BWI_DEBUG opt_bwi.h BWI_DEBUG_VERBOSE opt_bwi.h # options for the Brodacom BCM43xx driver (bwn) BWN_DEBUG opt_bwn.h BWN_GPL_PHY opt_bwn.h BWN_USE_SIBA opt_bwn.h # Options for the SIBA driver SIBA_DEBUG opt_siba.h # options for the Marvell 8335 wireless driver MALO_DEBUG opt_malo.h MALO_TXBUF opt_malo.h MALO_RXBUF opt_malo.h # options for the Marvell wireless driver MWL_DEBUG opt_mwl.h MWL_TXBUF opt_mwl.h MWL_RXBUF opt_mwl.h MWL_DIAGAPI opt_mwl.h MWL_AGGR_SIZE opt_mwl.h MWL_TX_NODROP opt_mwl.h # Options for the Marvell NETA driver MVNETA_MULTIQUEUE opt_mvneta.h MVNETA_KTR opt_mvneta.h # Options for the Intel 802.11ac wireless driver IWM_DEBUG opt_iwm.h # Options for the Intel 802.11n wireless driver IWN_DEBUG opt_iwn.h # Options for the Intel 3945ABG wireless driver WPI_DEBUG opt_wpi.h # dcons options DCONS_BUF_SIZE opt_dcons.h DCONS_POLL_HZ opt_dcons.h DCONS_FORCE_CONSOLE opt_dcons.h DCONS_FORCE_GDB opt_dcons.h # HWPMC options HWPMC_DEBUG opt_global.h HWPMC_HOOKS HWPMC_MIPS_BACKTRACE opt_hwpmc_hooks.h # 802.11 support layer IEEE80211_DEBUG opt_wlan.h IEEE80211_DEBUG_REFCNT opt_wlan.h IEEE80211_SUPPORT_MESH opt_wlan.h IEEE80211_SUPPORT_SUPERG opt_wlan.h IEEE80211_SUPPORT_TDMA opt_wlan.h IEEE80211_ALQ opt_wlan.h IEEE80211_DFS_DEBUG opt_wlan.h # 802.11 TDMA support TDMA_SLOTLEN_DEFAULT opt_tdma.h TDMA_SLOTCNT_DEFAULT opt_tdma.h TDMA_BINTVAL_DEFAULT opt_tdma.h TDMA_TXRATE_11B_DEFAULT opt_tdma.h TDMA_TXRATE_11G_DEFAULT opt_tdma.h TDMA_TXRATE_11A_DEFAULT opt_tdma.h TDMA_TXRATE_TURBO_DEFAULT opt_tdma.h TDMA_TXRATE_HALF_DEFAULT opt_tdma.h TDMA_TXRATE_QUARTER_DEFAULT opt_tdma.h TDMA_TXRATE_11NA_DEFAULT opt_tdma.h TDMA_TXRATE_11NG_DEFAULT opt_tdma.h # VideoMode PICKMODE_DEBUG opt_videomode.h # Network stack virtualization options VIMAGE opt_global.h VNET_DEBUG opt_global.h # Common Flash Interface (CFI) options CFI_SUPPORT_STRATAFLASH opt_cfi.h CFI_ARMEDANDDANGEROUS opt_cfi.h CFI_HARDWAREBYTESWAP opt_cfi.h # Sound options SND_DEBUG opt_snd.h SND_DIAGNOSTIC opt_snd.h SND_FEEDER_MULTIFORMAT opt_snd.h SND_FEEDER_FULL_MULTIFORMAT opt_snd.h SND_FEEDER_RATE_HP opt_snd.h SND_PCM_64 opt_snd.h SND_OLDSTEREO opt_snd.h X86BIOS # Flattened device tree options FDT opt_platform.h FDT_DTB_STATIC opt_platform.h # OFED Infiniband stack OFED opt_ofed.h OFED_DEBUG_INIT opt_ofed.h SDP opt_ofed.h SDP_DEBUG opt_ofed.h IPOIB opt_ofed.h IPOIB_DEBUG opt_ofed.h IPOIB_CM opt_ofed.h # Resource Accounting RACCT opt_global.h RACCT_DEFAULT_TO_DISABLED opt_global.h # Resource Limits RCTL opt_global.h # Random number generator(s) # Alternative RNG algorithm. RANDOM_FENESTRASX opt_global.h # With this, no entropy processor is loaded, but the entropy # harvesting infrastructure is present. This means an entropy # processor may be loaded as a module. RANDOM_LOADABLE opt_global.h # This turns on high-rate and potentially expensive harvesting in # the uma slab allocator. RANDOM_ENABLE_UMA opt_global.h RANDOM_ENABLE_ETHER opt_global.h # This options turns TPM into entropy source. TPM_HARVEST opt_tpm.h # BHND(4) driver BHND_LOGLEVEL opt_global.h # GPIO and child devices GPIO_SPI_DEBUG opt_gpio.h # SPI devices SPIGEN_LEGACY_CDEVNAME opt_spi.h # etherswitch(4) driver RTL8366_SOFT_RESET opt_etherswitch.h # evdev protocol support EVDEV_SUPPORT opt_evdev.h EVDEV_DEBUG opt_evdev.h UINPUT_DEBUG opt_evdev.h # Hyper-V network driver HN_DEBUG opt_hn.h # CAM-based MMC stack MMCCAM # Encrypted kernel crash dumps EKCD opt_ekcd.h # NVME options NVME_USE_NVD opt_nvme.h NVME_2X_RESET opt_nvme.h # amdsbwd options AMDSBWD_DEBUG opt_amdsbwd.h # gcov support GCOV opt_global.h LINDEBUGFS # options for HID support HID_DEBUG opt_hid.h IICHID_DEBUG opt_hid.h IICHID_SAMPLING opt_hid.h HKBD_DFLT_KEYMAP opt_hkbd.h HIDRAW_MAKE_UHID_ALIAS opt_hid.h # kenv options # The early kernel environment (loader environment, config(8)-provided static) # is typically cleared after the dynamic environment comes up to ensure that # we're not inadvertently holding on to 'secret' values in these stale envs. # This option is insecure except in controlled environments where the static # environment's contents are known to be safe. PRESERVE_EARLY_KENV opt_global.h diff --git a/sys/conf/options.amd64 b/sys/conf/options.amd64 index a91cddb892fe..8402c89640f7 100644 --- a/sys/conf/options.amd64 +++ b/sys/conf/options.amd64 @@ -1,68 +1,67 @@ -# $FreeBSD$ # Options specific to AMD64 platform kernels AUTO_EOI_1 opt_auto_eoi.h AUTO_EOI_2 opt_auto_eoi.h BHYVE_SNAPSHOT COUNT_XINVLTLB_HITS opt_smp.h COUNT_IPIS opt_smp.h MAXMEM MPTABLE_FORCE_HTT NKPT opt_pmap.h PV_STATS opt_pmap.h # Options for emulators. These should only be used at config time, so # they are handled like options for static filesystems # (see src/sys/conf/options), except for broken debugging options. COMPAT_AOUT opt_dontuse.h COMPAT_FREEBSD32 opt_global.h #COMPAT_LINUX opt_dontuse.h COMPAT_LINUX32 opt_dontuse.h LINPROCFS opt_dontuse.h LINSYSFS opt_dontuse.h TIMER_FREQ opt_clock.h VGA_ALT_SEQACCESS opt_vga.h VGA_DEBUG opt_vga.h VGA_NO_FONT_LOADING opt_vga.h VGA_NO_MODE_CHANGE opt_vga.h VGA_SLOW_IOACCESS opt_vga.h VGA_WIDTH90 opt_vga.h VESA VESA_DEBUG opt_vesa.h # AGP debugging support AGP_DEBUG opt_agp.h ATKBD_DFLT_KEYMAP opt_atkbd.h # iWARP client interface support in ixl IXL_IW opt_ixl.h # ------------------------------- # EOF # ------------------------------- HAMMER opt_cpu.h PSM_HOOKRESUME opt_psm.h PSM_RESETAFTERSUSPEND opt_psm.h PSM_DEBUG opt_psm.h DEV_ATPIC opt_atpic.h # BPF just-in-time compiler BPF_JITTER opt_bpf.h XENHVM opt_global.h # options for the Intel C600 SAS driver (isci) ISCI_LOGGING opt_isci.h # EFI Runtime services support EFIRT opt_efirt.h # Don't create a "legacy" PCI bridge if none is found. NO_LEGACY_PCIB opt_cpu.h # Compatibility with Linux MP table bugs. MPTABLE_LINUX_BUG_COMPAT diff --git a/sys/conf/options.arm b/sys/conf/options.arm index cdf98a35fcb4..2b001d8f48f7 100644 --- a/sys/conf/options.arm +++ b/sys/conf/options.arm @@ -1,52 +1,51 @@ -#$FreeBSD$ ARM_FORCE_DBG_MONITOR_DISABLE opt_ddb.h CPSW_ETHERSWITCH opt_cpsw.h CPU_ARM1176 opt_global.h CPU_CORTEXA opt_global.h CPU_KRAIT opt_global.h CPU_MV_PJ4B opt_global.h SMP_ON_UP opt_global.h # Runtime detection of MP extensions DEV_GIC opt_global.h DEV_PMU opt_global.h EFI opt_platform.h FLASHADDR opt_global.h GIC_DEFAULT_ICFGR_INIT opt_global.h INTRNG opt_global.h FREEBSD_BOOT_LOADER opt_global.h KERNBASE opt_global.h KERNVIRTADDR opt_global.h LINUX_BOOT_ABI opt_global.h LOCORE_MAP_MB opt_locore.h NKPT2PG opt_pmap.h PHYSADDR opt_global.h PLATFORM opt_global.h SOCDEV_PA opt_global.h SOCDEV_VA opt_global.h PV_STATS opt_pmap.h SOC_ALLWINNER_A10 opt_global.h SOC_ALLWINNER_A13 opt_global.h SOC_ALLWINNER_A20 opt_global.h SOC_ALLWINNER_A31 opt_global.h SOC_ALLWINNER_A31S opt_global.h SOC_ALLWINNER_A33 opt_global.h SOC_ALLWINNER_A83T opt_global.h SOC_ALLWINNER_H2PLUS opt_global.h SOC_ALLWINNER_H3 opt_global.h SOC_ALTERA_ARRIA10 opt_global.h SOC_ALTERA_CYCLONE5 opt_global.h SOC_BCM2835 opt_global.h SOC_BCM2836 opt_global.h SOC_BRCM_BCM2837 opt_global.h SOC_IMX51 opt_global.h SOC_IMX53 opt_global.h SOC_IMX6 opt_global.h SOC_MV_ARMADAXP opt_global.h SOC_MV_ARMADA38X opt_global.h SOC_MV_DISCOVERY opt_global.h SOC_MV_KIRKWOOD opt_global.h SOC_MV_ORION opt_global.h SOC_OMAP3 opt_global.h SOC_OMAP4 opt_global.h SOC_TI_AM335X opt_global.h VM_MAXUSER_ADDRESS opt_global.h VFP opt_global.h diff --git a/sys/conf/options.arm64 b/sys/conf/options.arm64 index 0d2a5f177754..c53723ae2d19 100644 --- a/sys/conf/options.arm64 +++ b/sys/conf/options.arm64 @@ -1,40 +1,39 @@ -# $FreeBSD$ ARM64 opt_global.h # for cpu ARM64 to work INTRNG opt_global.h SOCDEV_PA opt_global.h THUNDERX_PASS_1_1_ERRATA opt_global.h VFP opt_global.h LINUX_BOOT_ABI opt_global.h LSE_ATOMICS opt_global.h # Per-thread stack smashing protection support # Needs clang >= 13 PERTHREAD_SSP opt_global.h # Binary compatibility COMPAT_FREEBSD32 opt_global.h # Emulate SWP/SWPB for COMPAT_FREEBSD32 EMUL_SWP opt_global.h # EFI Runtime services support EFIRT opt_efirt.h # SoC Support SOC_ALLWINNER_A64 opt_soc.h SOC_ALLWINNER_H5 opt_soc.h SOC_ALLWINNER_H6 opt_soc.h SOC_BRCM_BCM2837 opt_soc.h SOC_BRCM_BCM2838 opt_soc.h SOC_BRCM_NS2 opt_soc.h SOC_CAVM_THUNDERX opt_soc.h SOC_FREESCALE_IMX8 opt_soc.h SOC_HISI_HI6220 opt_soc.h SOC_INTEL_STRATIX10 opt_soc.h SOC_MARVELL_8K opt_soc.h SOC_NVIDIA_TEGRA210 opt_soc.h SOC_NXP_LS opt_soc.h SOC_ROCKCHIP_RK3328 opt_soc.h SOC_ROCKCHIP_RK3399 opt_soc.h SOC_ROCKCHIP_RK3568 opt_soc.h SOC_XILINX_ZYNQ opt_soc.h diff --git a/sys/conf/options.i386 b/sys/conf/options.i386 index e9e0fa8bffc2..c827e0bb7a69 100644 --- a/sys/conf/options.i386 +++ b/sys/conf/options.i386 @@ -1,112 +1,111 @@ -# $FreeBSD$ # Options specific to the i386 platform kernels AUTO_EOI_1 opt_auto_eoi.h AUTO_EOI_2 opt_auto_eoi.h BROKEN_KEYBOARD_RESET opt_reset.h COUNT_XINVLTLB_HITS opt_smp.h COUNT_IPIS opt_smp.h DISABLE_PG_G opt_pmap.h DISABLE_PSE opt_pmap.h MAXMEM MPTABLE_FORCE_HTT NKPT opt_pmap.h PERFMON PMAP_SHPGPERPROC opt_pmap.h POWERFAIL_NMI opt_trap.h PV_STATS opt_pmap.h # Options for emulators. These should only be used at config time, so # they are handled like options for static filesystems # (see src/sys/conf/options), except for broken debugging options. COMPAT_AOUT opt_dontuse.h COMPAT_LINUX opt_dontuse.h LINPROCFS opt_dontuse.h LINSYSFS opt_dontuse.h # Change KVM size. Changes things all over the kernel. KVA_PAGES opt_global.h # Physical address extensions and support for >4G ram. As above. PAE opt_global.h TIMER_FREQ opt_clock.h CPU_ATHLON_SSE_HACK opt_cpu.h CPU_BLUELIGHTNING_3X opt_cpu.h CPU_BLUELIGHTNING_FPU_OP_CACHE opt_cpu.h CPU_BTB_EN opt_cpu.h CPU_CYRIX_NO_LOCK opt_cpu.h CPU_DIRECT_MAPPED_CACHE opt_cpu.h CPU_DISABLE_5X86_LSSER opt_cpu.h CPU_ELAN opt_cpu.h CPU_ELAN_PPS opt_cpu.h CPU_ELAN_XTAL opt_cpu.h CPU_ENABLE_LONGRUN opt_cpu.h CPU_FASTER_5X86_FPU opt_cpu.h CPU_GEODE opt_cpu.h CPU_I486_ON_386 opt_cpu.h CPU_IORT opt_cpu.h CPU_L2_LATENCY opt_cpu.h CPU_LOOP_EN opt_cpu.h CPU_PPRO2CELERON opt_cpu.h CPU_RSTK_EN opt_cpu.h CPU_SOEKRIS opt_cpu.h CPU_SUSP_HLT opt_cpu.h CPU_UPGRADE_HW_CACHE opt_cpu.h CPU_WT_ALLOC opt_cpu.h CYRIX_CACHE_REALLY_WORKS opt_cpu.h CYRIX_CACHE_WORKS opt_cpu.h NO_F00F_HACK opt_cpu.h NO_MEMORY_HOLE opt_cpu.h # The CPU type affects the endian conversion functions all over the kernel. I486_CPU opt_global.h I586_CPU opt_global.h I686_CPU opt_global.h VGA_ALT_SEQACCESS opt_vga.h VGA_DEBUG opt_vga.h VGA_NO_FONT_LOADING opt_vga.h VGA_NO_MODE_CHANGE opt_vga.h VGA_SLOW_IOACCESS opt_vga.h VGA_WIDTH90 opt_vga.h VESA VESA_DEBUG opt_vesa.h # AGP debugging support AGP_DEBUG opt_agp.h PSM_DEBUG opt_psm.h PSM_HOOKRESUME opt_psm.h PSM_RESETAFTERSUSPEND opt_psm.h ATKBD_DFLT_KEYMAP opt_atkbd.h # Video spigot SPIGOT_UNSECURE opt_spigot.h # Device options DEV_APIC opt_apic.h DEV_ATPIC opt_atpic.h # Debugging NPX_DEBUG opt_npx.h # BPF just-in-time compiler BPF_JITTER opt_bpf.h # Hyper-V support HYPERV opt_hyperv.h XENHVM opt_global.h # options for the Intel C600 SAS driver (isci) ISCI_LOGGING opt_isci.h # Don't create a "legacy" PCI bridge if none is found. NO_LEGACY_PCIB opt_cpu.h # Compatibility with Linux MP table bugs. MPTABLE_LINUX_BUG_COMPAT diff --git a/sys/conf/options.powerpc b/sys/conf/options.powerpc index 5d8e91a92e56..a6096d1b32ca 100644 --- a/sys/conf/options.powerpc +++ b/sys/conf/options.powerpc @@ -1,40 +1,39 @@ -# $FreeBSD$ # Options specific to the powerpc platform kernels AIM opt_global.h BOOKE opt_global.h BOOKE_E500 opt_global.h CELL POWERPC POWERPC64 POWERPC64LE POWERPCSPE FPU_EMU COMPAT_FREEBSD32 opt_global.h ISA_206_ATOMICS opt_global.h MOEA64_STATS opt_pmap.h AMIGAONE opt_platform.h MIKROTIK opt_platform.h MPC85XX opt_platform.h POWERMAC opt_platform.h PS3 opt_platform.h MAMBO POWERNV opt_platform.h PSERIES opt_platform.h PSIM QEMU opt_platform.h SC_OFWFB opt_ofwfb.h OFWCONS_POLL_HZ opt_ofw.h # AGP debugging support AGP_DEBUG opt_agp.h # iWARP client interface support in ixl IXL_IW opt_ixl.h diff --git a/sys/conf/options.riscv b/sys/conf/options.riscv index 964a2f07173c..6a8df1d2f54e 100644 --- a/sys/conf/options.riscv +++ b/sys/conf/options.riscv @@ -1,4 +1,3 @@ -# $FreeBSD$ RISCV opt_global.h # For cpu RISCV to work INTRNG opt_global.h diff --git a/sys/conf/sysent.mk b/sys/conf/sysent.mk index 995bd2f9b913..6794d870fcde 100644 --- a/sys/conf/sysent.mk +++ b/sys/conf/sysent.mk @@ -1,49 +1,48 @@ -# $FreeBSD$ # Don't use an OBJDIR .OBJDIR: ${.CURDIR} .include .include COMMON_GENERATED= proto.h \ syscall.h \ syscalls.c \ sysent.c \ systrace_args.c GENERATED_PREFIX?= GENERATED?= ${COMMON_GENERATED:S/^/${GENERATED_PREFIX}/} SYSENT_FILE?= syscalls.master SYSENT_CONF?= syscalls.conf # Including Makefile should override SYSENT_FILE and SYSENT_CONF as needed, # and set GENERATED. SRCS+= ${SYSENT_FILE} SRCS+= ${SYSENT_CONF} # Ensure that the target gets updated if the capabilities file is modified, # even though it is not an explicit input to makesyscalls.lua. For some # targets, like Linux system calls, this is unnecessary, but a spurious rebuild # is both rare and harmless. SRCS+= ${CAPABILITIES_CONF} MAKESYSCALLS_INTERP?= ${LUA} MAKESYSCALLS_SCRIPT?= ${SYSDIR}/tools/makesyscalls.lua MAKESYSCALLS= ${MAKESYSCALLS_INTERP} ${MAKESYSCALLS_SCRIPT} all: @echo "make sysent only" # We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than # potentially once for each ${GENERATED} file. .ORDER: ${GENERATED} sysent: ${GENERATED} # We slap a .PHONY on makesyscalls.lua so that we regenerate every single time, # for now, which can be less painful across rebases or other things that may # have odd effects on mtimes. ${MAKESYSCALLS_SCRIPT}: .PHONY ${GENERATED}: ${MAKESYSCALLS_SCRIPT} ${SRCS} ${MAKESYSCALLS} ${SYSENT_FILE} ${SYSENT_CONF} diff --git a/sys/conf/systags.sh b/sys/conf/systags.sh index 458627a45bf5..43c84fb5d8df 100644 --- a/sys/conf/systags.sh +++ b/sys/conf/systags.sh @@ -1,68 +1,67 @@ #! /bin/sh # # SPDX-License-Identifier: BSD-3-Clause # # Copyright (c) 1992, 1993 # The Regents of the University of California. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. Neither the name of the University nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # @(#)systags.sh 8.1 (Berkeley) 6/10/93 -# $FreeBSD$ # # systags.sh - construct a system tags file using dependence relations # in a .depend file # # First written May 16, 1992 by Van Jacobson, Lawrence Berkeley Laboratory. rm -f tags tags.tmp tags.cfiles tags.sfiles tags.hfiles sed -e "s, machine/, ../../include/,g" \ -e 's,[a-z][^/ ]*/\.\./,,g' .depend.* | awk '{ for (i = 1; i <= NF; ++i) { t = substr($i, length($i) - 1) if (t == ".c") cfiles[$i] = 1; else if (t == ".h") hfiles[$i] = 1; else if (t == ".s" || t == ".S") sfiles[$i] = 1; } }; END { for (i in cfiles) print i > "tags.cfiles"; for (i in sfiles) print i > "tags.sfiles"; for (i in hfiles) print i > "tags.hfiles"; }' ctags -t -d -w `cat tags.cfiles tags.hfiles tags.sfiles` egrep "^ENTRY\(.*\)|^ALTENTRY\(.*\)" `cat tags.sfiles` | \ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$/;" >> tags mv tags tags.tmp sort -u tags.tmp > tags rm tags.tmp tags.cfiles tags.sfiles tags.hfiles diff --git a/sys/crypto/rijndael/Makefile b/sys/crypto/rijndael/Makefile index e262b4d764b5..44d91532b47b 100644 --- a/sys/crypto/rijndael/Makefile +++ b/sys/crypto/rijndael/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ PROG=test00 MAN= SRCS= ${PROG}.c rijndael-alg-fst.c rijndael-api-fst.c CFLAGS += -I${.CURDIR}/../.. -g -static .include test: ${PROG} ./${PROG} diff --git a/sys/crypto/skein/amd64/skein_block_asm.S b/sys/crypto/skein/amd64/skein_block_asm.S index 769d9c5a3e92..45ec5f4b3b63 100644 --- a/sys/crypto/skein/amd64/skein_block_asm.S +++ b/sys/crypto/skein/amd64/skein_block_asm.S @@ -1,1333 +1,1332 @@ # #---------------------------------------------------------------- # 64-bit x86 assembler code (gnu as) for Skein block functions # # Author: Doug Whiting, Hifn/Exar # # This code is released to the public domain. #---------------------------------------------------------------- -# $FreeBSD$ # .text .altmacro #ifndef __clang__ .psize 0,128 #list file has no page boundaries #endif # _MASK_ALL_ = (256+512+1024) #all three algorithm bits _MAX_FRAME_ = 240 # ################# #ifndef SKEIN_USE_ASM _USE_ASM_ = _MASK_ALL_ #else _USE_ASM_ = SKEIN_USE_ASM #endif ################# #configure loop unrolling #ifndef SKEIN_LOOP _SKEIN_LOOP = 2 #default is fully unrolled for 256/512, twice for 1024 #else _SKEIN_LOOP = SKEIN_LOOP .irp _NN_,%_SKEIN_LOOP #only display loop unrolling if default changed on command line #.print "+++ SKEIN_LOOP = \_NN_" .endr #endif # the unroll counts (0 --> fully unrolled) SKEIN_UNROLL_256 = (_SKEIN_LOOP / 100) % 10 SKEIN_UNROLL_512 = (_SKEIN_LOOP / 10) % 10 SKEIN_UNROLL_1024 = (_SKEIN_LOOP ) % 10 # SKEIN_ASM_UNROLL = 0 .irp _NN_,256,512,1024 .if (SKEIN_UNROLL_\_NN_) == 0 SKEIN_ASM_UNROLL = (SKEIN_ASM_UNROLL) + \_NN_ .endif .endr ################# # .ifndef SKEIN_ROUNDS ROUNDS_256 = 72 ROUNDS_512 = 72 ROUNDS_1024 = 80 .else ROUNDS_256 = 8*((((SKEIN_ROUNDS / 100) + 5) % 10) + 5) ROUNDS_512 = 8*((((SKEIN_ROUNDS / 10) + 5) % 10) + 5) ROUNDS_1024 = 8*((((SKEIN_ROUNDS ) + 5) % 10) + 5) # only display rounds if default size is changed on command line .irp _NN_,256,512,1024 .if _USE_ASM_ & \_NN_ .irp _RR_,%(ROUNDS_\_NN_) .if _NN_ < 1024 .print "+++ SKEIN_ROUNDS_\_NN_ = \_RR_" .else .print "+++ SKEIN_ROUNDS_\_NN_ = \_RR_" .endif .endr .endif .endr .endif ################# # .ifdef SKEIN_CODE_SIZE _SKEIN_CODE_SIZE = (1) .else .ifdef SKEIN_PERF #use code size if SKEIN_PERF is defined _SKEIN_CODE_SIZE = (1) .else _SKEIN_CODE_SIZE = (0) .endif .endif # ################# # .ifndef SKEIN_DEBUG _SKEIN_DEBUG = 0 .else _SKEIN_DEBUG = 1 .endif ################# # # define offsets of fields in hash context structure # HASH_BITS = 0 #bits of hash output BCNT = 8 + HASH_BITS #number of bytes in BUFFER[] TWEAK = 8 + BCNT #tweak values[0..1] X_VARS = 16 + TWEAK #chaining vars # #(Note: buffer[] in context structure is NOT needed here :-) # KW_PARITY = 0x1BD11BDAA9FC1A22 #overall parity of key schedule words FIRST_MASK = ~ (1 << 6) FIRST_MASK64= ~ (1 << 62) # # rotation constants for Skein # RC_256_0_0 = 14 RC_256_0_1 = 16 RC_256_1_0 = 52 RC_256_1_1 = 57 RC_256_2_0 = 23 RC_256_2_1 = 40 RC_256_3_0 = 5 RC_256_3_1 = 37 RC_256_4_0 = 25 RC_256_4_1 = 33 RC_256_5_0 = 46 RC_256_5_1 = 12 RC_256_6_0 = 58 RC_256_6_1 = 22 RC_256_7_0 = 32 RC_256_7_1 = 32 RC_512_0_0 = 46 RC_512_0_1 = 36 RC_512_0_2 = 19 RC_512_0_3 = 37 RC_512_1_0 = 33 RC_512_1_1 = 27 RC_512_1_2 = 14 RC_512_1_3 = 42 RC_512_2_0 = 17 RC_512_2_1 = 49 RC_512_2_2 = 36 RC_512_2_3 = 39 RC_512_3_0 = 44 RC_512_3_1 = 9 RC_512_3_2 = 54 RC_512_3_3 = 56 RC_512_4_0 = 39 RC_512_4_1 = 30 RC_512_4_2 = 34 RC_512_4_3 = 24 RC_512_5_0 = 13 RC_512_5_1 = 50 RC_512_5_2 = 10 RC_512_5_3 = 17 RC_512_6_0 = 25 RC_512_6_1 = 29 RC_512_6_2 = 39 RC_512_6_3 = 43 RC_512_7_0 = 8 RC_512_7_1 = 35 RC_512_7_2 = 56 RC_512_7_3 = 22 RC_1024_0_0 = 24 RC_1024_0_1 = 13 RC_1024_0_2 = 8 RC_1024_0_3 = 47 RC_1024_0_4 = 8 RC_1024_0_5 = 17 RC_1024_0_6 = 22 RC_1024_0_7 = 37 RC_1024_1_0 = 38 RC_1024_1_1 = 19 RC_1024_1_2 = 10 RC_1024_1_3 = 55 RC_1024_1_4 = 49 RC_1024_1_5 = 18 RC_1024_1_6 = 23 RC_1024_1_7 = 52 RC_1024_2_0 = 33 RC_1024_2_1 = 4 RC_1024_2_2 = 51 RC_1024_2_3 = 13 RC_1024_2_4 = 34 RC_1024_2_5 = 41 RC_1024_2_6 = 59 RC_1024_2_7 = 17 RC_1024_3_0 = 5 RC_1024_3_1 = 20 RC_1024_3_2 = 48 RC_1024_3_3 = 41 RC_1024_3_4 = 47 RC_1024_3_5 = 28 RC_1024_3_6 = 16 RC_1024_3_7 = 25 RC_1024_4_0 = 41 RC_1024_4_1 = 9 RC_1024_4_2 = 37 RC_1024_4_3 = 31 RC_1024_4_4 = 12 RC_1024_4_5 = 47 RC_1024_4_6 = 44 RC_1024_4_7 = 30 RC_1024_5_0 = 16 RC_1024_5_1 = 34 RC_1024_5_2 = 56 RC_1024_5_3 = 51 RC_1024_5_4 = 4 RC_1024_5_5 = 53 RC_1024_5_6 = 42 RC_1024_5_7 = 41 RC_1024_6_0 = 31 RC_1024_6_1 = 44 RC_1024_6_2 = 47 RC_1024_6_3 = 46 RC_1024_6_4 = 19 RC_1024_6_5 = 42 RC_1024_6_6 = 44 RC_1024_6_7 = 25 RC_1024_7_0 = 9 RC_1024_7_1 = 48 RC_1024_7_2 = 35 RC_1024_7_3 = 52 RC_1024_7_4 = 23 RC_1024_7_5 = 31 RC_1024_7_6 = 37 RC_1024_7_7 = 20 # # Input: reg # Output: <<< RC_BlkSize_roundNum_mixNum, BlkSize=256/512/1024 # .macro RotL64 reg,BLK_SIZE,ROUND_NUM,MIX_NUM .if RC_\BLK_SIZE\()_\ROUND_NUM\()_\MIX_NUM #is there anything to do? rolq $RC_\BLK_SIZE\()_\ROUND_NUM\()_\MIX_NUM,%\reg .endif .endm # #---------------------------------------------------------------- # # MACROS: define local vars and configure stack # #---------------------------------------------------------------- # declare allocated space on the stack .macro StackVar localName,localSize \localName = _STK_OFFS_ _STK_OFFS_ = _STK_OFFS_+(\localSize) .endm #StackVar # #---------------------------------------------------------------- # # MACRO: Configure stack frame, allocate local vars # .macro Setup_Stack BLK_BITS,KS_CNT,debugCnt WCNT = (\BLK_BITS)/64 # _PushCnt_ = 0 #save nonvolatile regs on stack .irp _reg_,rbp,rbx,r12,r13,r14,r15 pushq %\_reg_ _PushCnt_ = _PushCnt_ + 1 #track count to keep alignment .endr # _STK_OFFS_ = 0 #starting offset from rsp #---- local variables #<-- rsp StackVar X_stk ,8*(WCNT) #local context vars StackVar ksTwk ,8*3 #key schedule: tweak words StackVar ksKey ,8*(WCNT)+8 #key schedule: key words .if ((SKEIN_ASM_UNROLL) & (\BLK_BITS)) == 0 StackVar ksRot ,16*(\KS_CNT) #leave space for "rotation" to happen .endif StackVar Wcopy ,8*(WCNT) #copy of input block .if _SKEIN_DEBUG .if \debugCnt + 0 #temp location for debug X[] info StackVar xDebug_\BLK_BITS ,8*(\debugCnt) .endif .endif .if ((8*_PushCnt_ + _STK_OFFS_) % 8) == 0 StackVar align16,8 #keep 16-byte aligned (adjust for retAddr?) tmpStk_\BLK_BITS = align16 #use this .endif #---- saved caller parameters (from regs rdi, rsi, rdx, rcx) StackVar ctxPtr ,8 #context ptr StackVar blkPtr ,8 #pointer to block data StackVar blkCnt ,8 #number of full blocks to process StackVar bitAdd ,8 #bit count to add to tweak LOCAL_SIZE = _STK_OFFS_ #size of "local" vars #---- StackVar savRegs,8*_PushCnt_ #saved registers StackVar retAddr,8 #return address #---- caller's stack frame (aligned mod 16) # # set up the stack frame pointer (rbp) # FRAME_OFFS = ksTwk + 128 #allow short (negative) offset to ksTwk, kwKey .if FRAME_OFFS > _STK_OFFS_ #keep rbp in the "locals" range FRAME_OFFS = _STK_OFFS_ .endif F_O = -FRAME_OFFS # #put some useful defines in the .lst file (for grep) __STK_LCL_SIZE_\BLK_BITS = LOCAL_SIZE __STK_TOT_SIZE_\BLK_BITS = _STK_OFFS_ __STK_FRM_OFFS_\BLK_BITS = FRAME_OFFS # # Notes on stack frame setup: # * the most frequently used variable is X_stk[], based at [rsp+0] # * the next most used is the key schedule arrays, ksKey and ksTwk # so rbp is "centered" there, allowing short offsets to the key # schedule even in 1024-bit Skein case # * the Wcopy variables are infrequently accessed, but they have long # offsets from both rsp and rbp only in the 1024-bit case. # * all other local vars and calling parameters can be accessed # with short offsets, except in the 1024-bit case # subq $LOCAL_SIZE,%rsp #make room for the locals leaq FRAME_OFFS(%rsp),%rbp #maximize use of short offsets movq %rdi, ctxPtr+F_O(%rbp) #save caller's parameters on the stack movq %rsi, blkPtr+F_O(%rbp) movq %rdx, blkCnt+F_O(%rbp) movq %rcx, bitAdd+F_O(%rbp) # .endm #Setup_Stack # #---------------------------------------------------------------- # .macro Reset_Stack addq $LOCAL_SIZE,%rsp #get rid of locals (wipe?) .irp _reg_,r15,r14,r13,r12,rbx,rbp popq %\_reg_ #restore caller's regs _PushCnt_ = _PushCnt_ - 1 .endr .if _PushCnt_ .error "Mismatched push/pops?" .endif .endm # Reset_Stack # #---------------------------------------------------------------- # macros to help debug internals # .if _SKEIN_DEBUG .extern Skein_Show_Block #calls to C routines .extern Skein_Show_Round # SKEIN_RND_SPECIAL = 1000 SKEIN_RND_KEY_INITIAL = SKEIN_RND_SPECIAL+0 SKEIN_RND_KEY_INJECT = SKEIN_RND_SPECIAL+1 SKEIN_RND_FEED_FWD = SKEIN_RND_SPECIAL+2 # .macro Skein_Debug_Block BLK_BITS # #void Skein_Show_Block(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u64b_t *X, # const u08b_t *blkPtr, const u64b_t *wPtr, # const u64b_t *ksPtr,const u64b_t *tsPtr) # _NN_ = 0 .irp _reg_,rax,rcx,rdx,rsi,rdi,r8,r9,r10,r11 pushq %\_reg_ #save all volatile regs on tack before the call _NN_ = _NN_ + 1 .endr # get and push call parameters movq $\BLK_BITS ,%rdi #bits movq ctxPtr+F_O(%rbp),%rsi #h (pointer) leaq X_VARS (%rsi),%rdx #X (pointer) movq blkPtr+F_O(%rbp),%rcx #blkPtr leaq Wcopy +F_O(%rbp),%r8 #wPtr leaq ksKey +F_O(%rbp),%r9 #key pointer leaq ksTwk +F_O(%rbp),%rax #tweak pointer pushq %rax # (pass on the stack) call Skein_Show_Block #call external debug handler addq $8*1,%rsp #discard parameters on stack .if (_NN_ % 2 ) == 0 #check stack alignment .error "Stack misalignment problem in Skein_Debug_Block_\_BLK_BITS" .endif .irp _reg_,r11,r10,r9,r8,rdi,rsi,rdx,rcx,rax popq %\_reg_ #restore regs _NN_ = _NN_ - 1 .endr .if _NN_ .error "Push/pop mismatch problem in Skein_Debug_Block_\_BLK_BITS" .endif .endm # Skein_Debug_Block # # the macro to "call" to debug a round # .macro Skein_Debug_Round BLK_BITS,R,RDI_OFFS,afterOp # call the appropriate (local) debug "function" pushq %rdx #save rdx, so we can use it for round "number" .if ((SKEIN_ASM_UNROLL) & \BLK_BITS) || (\R >= SKEIN_RND_SPECIAL) movq $\R,%rdx .else #compute round number using edi _rOffs_ = \RDI_OFFS + 0 .if \BLK_BITS == 1024 movq rIdx_offs+8(%rsp),%rdx #get rIdx off the stack (adjust for pushq rdx above) leaq 1+(((\R)-1) & 3)+_rOffs_(,%rdx,4),%rdx .else leaq 1+(((\R)-1) & 3)+_rOffs_(,%rdi,4),%rdx .endif .endif call Skein_Debug_Round_\BLK_BITS popq %rdx #restore origianl rdx value # afterOp .endm # Skein_Debug_Round .else #------- _SKEIN_DEBUG (dummy macros if debug not enabled) .macro Skein_Debug_Block BLK_BITS .endm # .macro Skein_Debug_Round BLK_BITS,R,RDI_OFFS,afterOp .endm # .endif # _SKEIN_DEBUG # #---------------------------------------------------------------- # .macro addReg dstReg,srcReg_A,srcReg_B,useAddOp,immOffs .if \immOffs + 0 leaq \immOffs(%\srcReg_A\srcReg_B,%\dstReg),%\dstReg .elseif ((\useAddOp + 0) == 0) .ifndef ASM_NO_LEA #lea seems to be faster on Core 2 Duo CPUs! leaq (%\srcReg_A\srcReg_B,%\dstReg),%\dstReg .else addq %\srcReg_A\srcReg_B,%\dstReg .endif .else addq %\srcReg_A\srcReg_B,%\dstReg .endif .endm # keep Intel-style ordering here, to match addReg .macro xorReg dstReg,srcReg_A,srcReg_B xorq %\srcReg_A\srcReg_B,%\dstReg .endm # #---------------------------------------------------------------- # .macro C_label lName \lName: #use both "genders" to work across linkage conventions _\lName: .global \lName .global _\lName .endm # #=================================== Skein_256 ============================================= # .if _USE_ASM_ & 256 # # void Skein_256_Process_Block(Skein_256_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t bitcntAdd)# # ################# # # code # C_label Skein_256_Process_Block Setup_Stack 256,((ROUNDS_256/8)+1) movq TWEAK+8(%rdi),%r14 jmp Skein_256_block_loop .p2align 4 # main hash loop for Skein_256 Skein_256_block_loop: # # general register usage: # RAX..RDX = X0..X3 # R08..R12 = ks[0..4] # R13..R15 = ts[0..2] # RSP, RBP = stack/frame pointers # RDI = round counter or context pointer # RSI = temp # movq TWEAK+0(%rdi) ,%r13 addq bitAdd+F_O(%rbp) ,%r13 #computed updated tweak value T0 movq %r14 ,%r15 xorq %r13 ,%r15 #now %r13.%r15 is set as the tweak movq $KW_PARITY ,%r12 movq X_VARS+ 0(%rdi),%r8 movq X_VARS+ 8(%rdi),%r9 movq X_VARS+16(%rdi),%r10 movq X_VARS+24(%rdi),%r11 movq %r13,TWEAK+0(%rdi) #save updated tweak value ctx->h.T[0] xorq %r8 ,%r12 #start accumulating overall parity movq blkPtr +F_O(%rbp) ,%rsi #esi --> input block xorq %r9 ,%r12 movq 0(%rsi) ,%rax #get X[0..3] xorq %r10 ,%r12 movq 8(%rsi) ,%rbx xorq %r11 ,%r12 movq 16(%rsi) ,%rcx movq 24(%rsi) ,%rdx movq %rax,Wcopy+ 0+F_O(%rbp) #save copy of input block movq %rbx,Wcopy+ 8+F_O(%rbp) movq %rcx,Wcopy+16+F_O(%rbp) movq %rdx,Wcopy+24+F_O(%rbp) addq %r8 ,%rax #initial key injection addq %r9 ,%rbx addq %r10,%rcx addq %r11,%rdx addq %r13,%rbx addq %r14,%rcx .if _SKEIN_DEBUG movq %r14,TWEAK+ 8(%rdi) #save updated tweak T[1] (start bit cleared?) movq %r8 ,ksKey+ 0+F_O(%rbp) #save key schedule on stack for Skein_Debug_Block movq %r9 ,ksKey+ 8+F_O(%rbp) movq %r10,ksKey+16+F_O(%rbp) movq %r11,ksKey+24+F_O(%rbp) movq %r12,ksKey+32+F_O(%rbp) movq %r13,ksTwk+ 0+F_O(%rbp) movq %r14,ksTwk+ 8+F_O(%rbp) movq %r15,ksTwk+16+F_O(%rbp) movq %rax,X_stk + 0(%rsp) #save X[] on stack for Skein_Debug_Block movq %rbx,X_stk + 8(%rsp) movq %rcx,X_stk +16(%rsp) movq %rdx,X_stk +24(%rsp) Skein_Debug_Block 256 #debug dump Skein_Debug_Round 256,SKEIN_RND_KEY_INITIAL .endif # .if (((SKEIN_ASM_UNROLL) & 256) == 0) movq %r8 ,ksKey+40+F_O(%rbp) #save key schedule on stack for looping code movq %r9 ,ksKey+ 8+F_O(%rbp) movq %r10,ksKey+16+F_O(%rbp) movq %r11,ksKey+24+F_O(%rbp) movq %r12,ksKey+32+F_O(%rbp) movq %r13,ksTwk+24+F_O(%rbp) movq %r14,ksTwk+ 8+F_O(%rbp) movq %r15,ksTwk+16+F_O(%rbp) .endif addq $WCNT*8,%rsi #skip the block movq %rsi,blkPtr +F_O(%rbp) #update block pointer # # now the key schedule is computed. Start the rounds # .if (SKEIN_ASM_UNROLL) & 256 _UNROLL_CNT = ROUNDS_256/8 .else _UNROLL_CNT = SKEIN_UNROLL_256 .if ((ROUNDS_256/8) % _UNROLL_CNT) .error "Invalid SKEIN_UNROLL_256" .endif xorq %rdi,%rdi #rdi = iteration count Skein_256_round_loop: .endif _Rbase_ = 0 .rept _UNROLL_CNT*2 # all X and ks vars in regs # (ops to "rotate" ks vars, via mem, if not unrolled) # round 4*_RBase_ + 0 addReg rax, rbx RotL64 rbx, 256,%((4*_Rbase_+0) % 8),0 addReg rcx, rdx .if ((SKEIN_ASM_UNROLL) & 256) == 0 movq ksKey+8*1+F_O(%rbp,%rdi,8),%r8 .endif xorReg rbx, rax RotL64 rdx, 256,%((4*_Rbase_+0) % 8),1 xorReg rdx, rcx .if (SKEIN_ASM_UNROLL) & 256 .irp _r0_,%( 8+(_Rbase_+3) % 5) .irp _r1_,%(13+(_Rbase_+2) % 3) leaq (%r\_r0_,%r\_r1_),%rdi #precompute key injection value for %rcx .endr .endr .endif .if ((SKEIN_ASM_UNROLL) & 256) == 0 movq ksTwk+8*1+F_O(%rbp,%rdi,8),%r13 .endif Skein_Debug_Round 256,%(4*_Rbase_+1) # round 4*_Rbase_ + 1 addReg rax, rdx RotL64 rdx, 256,%((4*_Rbase_+1) % 8),0 xorReg rdx, rax .if ((SKEIN_ASM_UNROLL) & 256) == 0 movq ksKey+8*2+F_O(%rbp,%rdi,8),%r9 .endif addReg rcx, rbx RotL64 rbx, 256,%((4*_Rbase_+1) % 8),1 xorReg rbx, rcx .if ((SKEIN_ASM_UNROLL) & 256) == 0 movq ksKey+8*4+F_O(%rbp,%rdi,8),%r11 .endif Skein_Debug_Round 256,%(4*_Rbase_+2) .if (SKEIN_ASM_UNROLL) & 256 .irp _r0_,%( 8+(_Rbase_+2) % 5) .irp _r1_,%(13+(_Rbase_+1) % 3) leaq (%r\_r0_,%r\_r1_),%rsi #precompute key injection value for %rbx .endr .endr .endif # round 4*_Rbase_ + 2 addReg rax, rbx RotL64 rbx, 256,%((4*_Rbase_+2) % 8),0 addReg rcx, rdx .if ((SKEIN_ASM_UNROLL) & 256) == 0 movq ksKey+8*3+F_O(%rbp,%rdi,8),%r10 .endif xorReg rbx, rax RotL64 rdx, 256,%((4*_Rbase_+2) % 8),1 xorReg rdx, rcx .if ((SKEIN_ASM_UNROLL) & 256) == 0 movq %r8,ksKey+8*6+F_O(%rbp,%rdi,8) #"rotate" the key leaq 1(%r11,%rdi),%r11 #precompute key + tweak .endif Skein_Debug_Round 256,%(4*_Rbase_+3) # round 4*_Rbase_ + 3 addReg rax, rdx RotL64 rdx, 256,%((4*_Rbase_+3) % 8),0 addReg rcx, rbx .if ((SKEIN_ASM_UNROLL) & 256) == 0 addq ksTwk+8*2+F_O(%rbp,%rdi,8),%r10 #precompute key + tweak movq %r13,ksTwk+8*4+F_O(%rbp,%rdi,8) #"rotate" the tweak .endif xorReg rdx, rax RotL64 rbx, 256,%((4*_Rbase_+3) % 8),1 xorReg rbx, rcx Skein_Debug_Round 256,%(4*_Rbase_+4) .if ((SKEIN_ASM_UNROLL) & 256) == 0 addReg r9 ,r13 #precompute key+tweak .endif #inject key schedule words _Rbase_ = _Rbase_+1 .if (SKEIN_ASM_UNROLL) & 256 addReg rax,r,%(8+((_Rbase_+0) % 5)) addReg rbx,rsi addReg rcx,rdi addReg rdx,r,%(8+((_Rbase_+3) % 5)),,_Rbase_ .else incq %rdi addReg rax,r8 addReg rcx,r10 addReg rbx,r9 addReg rdx,r11 .endif Skein_Debug_Round 256,SKEIN_RND_KEY_INJECT .endr #rept _UNROLL_CNT # .if ((SKEIN_ASM_UNROLL) & 256) == 0 cmpq $2*(ROUNDS_256/8),%rdi jb Skein_256_round_loop .endif # (SKEIN_ASM_UNROLL & 256) == 0 movq ctxPtr +F_O(%rbp),%rdi #restore rdi --> context #---------------------------- # feedforward: ctx->X[i] = X[i] ^ w[i], {i=0..3} movq $FIRST_MASK64 ,%r14 xorq Wcopy + 0+F_O (%rbp),%rax xorq Wcopy + 8+F_O (%rbp),%rbx xorq Wcopy +16+F_O (%rbp),%rcx xorq Wcopy +24+F_O (%rbp),%rdx andq TWEAK + 8 (%rdi),%r14 movq %rax,X_VARS+ 0(%rdi) #store final result movq %rbx,X_VARS+ 8(%rdi) movq %rcx,X_VARS+16(%rdi) movq %rdx,X_VARS+24(%rdi) Skein_Debug_Round 256,SKEIN_RND_FEED_FWD # go back for more blocks, if needed decq blkCnt+F_O(%rbp) jnz Skein_256_block_loop movq %r14,TWEAK + 8(%rdi) Reset_Stack ret Skein_256_Process_Block_End: .if _SKEIN_DEBUG Skein_Debug_Round_256: #here with rdx == round "number" from macro pushq %rsi #save two regs for BLK_BITS-specific parms pushq %rdi movq 24(%rsp),%rdi #get back original rdx (pushed on stack in macro call) to rdi movq %rax,X_stk+ 0+F_O(%rbp) #save X[] state on stack so debug routines can access it movq %rbx,X_stk+ 8+F_O(%rbp) #(use FP_ since rsp has changed!) movq %rcx,X_stk+16+F_O(%rbp) movq %rdi,X_stk+24+F_O(%rbp) movq ctxPtr+F_O(%rbp),%rsi #ctx_hdr_ptr movq $256,%rdi #now are set for the call jmp Skein_Debug_Round_Common .endif # .if _SKEIN_CODE_SIZE C_label Skein_256_Process_Block_CodeSize movq $(Skein_256_Process_Block_End-Skein_256_Process_Block),%rax ret # C_label Skein_256_Unroll_Cnt .if _UNROLL_CNT <> ROUNDS_256/8 movq $_UNROLL_CNT,%rax .else xorq %rax,%rax .endif ret .endif # .endif #_USE_ASM_ & 256 # #=================================== Skein_512 ============================================= # .if _USE_ASM_ & 512 # # void Skein_512_Process_Block(Skein_512_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t bitcntAdd) # # X[i] == %r[8+i] #register assignments for X[] values during rounds (i=0..7) # ################# # MACRO: one round for 512-bit blocks # .macro R_512_OneRound rn0,rn1,rn2,rn3,rn4,rn5,rn6,rn7,_Rn_,op1,op2,op3,op4 # addReg r\rn0, r\rn1 RotL64 r\rn1, 512,%((\_Rn_) % 8),0 xorReg r\rn1, r\rn0 \op1 addReg r\rn2, r\rn3 RotL64 r\rn3, 512,%((\_Rn_) % 8),1 xorReg r\rn3, r\rn2 \op2 addReg r\rn4, r\rn5 RotL64 r\rn5, 512,%((\_Rn_) % 8),2 xorReg r\rn5, r\rn4 \op3 addReg r\rn6, r\rn7 RotL64 r\rn7, 512,%((\_Rn_) % 8),3 xorReg r\rn7, r\rn6 \op4 Skein_Debug_Round 512,%(\_Rn_+1),-4 # .endm #R_512_OneRound # ################# # MACRO: eight rounds for 512-bit blocks # .macro R_512_FourRounds _RR_ #RR = base round number (0 % 8) .if ((SKEIN_ASM_UNROLL) & 512) # here for fully unrolled case. _II_ = ((\_RR_)/4) + 1 #key injection counter R_512_OneRound 8, 9,10,11,12,13,14,15,%((\_RR_)+0),,, R_512_OneRound 10, 9,12,15,14,13, 8,11,%((\_RR_)+1),,, R_512_OneRound 12, 9,14,11, 8,13,10,15,%((\_RR_)+2),,, R_512_OneRound 14, 9, 8,15,10,13,12,11,%((\_RR_)+3),, # inject the key schedule addq ksKey+8*(((_II_)+0)%9)+F_O(%rbp),%r8 addReg r11, rax addq ksKey+8*(((_II_)+1)%9)+F_O(%rbp),%r9 addReg r12, rbx addq ksKey+8*(((_II_)+2)%9)+F_O(%rbp),%r10 addReg r13, rcx addReg r14, rdx addReg r15, rsi,,,(_II_) .else # here for looping case #"rotate" key/tweak schedule (move up on stack) incq %rdi #bump key injection counter R_512_OneRound 8, 9,10,11,12,13,14,15,%((\_RR_)+0),,, R_512_OneRound 10, 9,12,15,14,13, 8,11,%((\_RR_)+1),,, R_512_OneRound 12, 9,14,11, 8,13,10,15,%((\_RR_)+2),,, R_512_OneRound 14, 9, 8,15,10,13,12,11,%((\_RR_)+3),, # inject the key schedule addq ksKey+8*0+F_O(%rbp,%rdi,8),%r8 addReg r11, rax addReg r12, rbx addq ksKey+8*1+F_O(%rbp,%rdi,8),%r9 addReg r13, rcx addReg r14, rdx addq ksKey+8*2+F_O(%rbp,%rdi,8),%r10 addReg r15, rsi addReg r15, rdi #inject the round number .endif #show the result of the key injection Skein_Debug_Round 512,SKEIN_RND_KEY_INJECT .endm #R_512_EightRounds # ################# # instantiated code # C_label Skein_512_Process_Block Setup_Stack 512,ROUNDS_512/8 movq TWEAK+ 8(%rdi),%rbx jmp Skein_512_block_loop .p2align 4 # main hash loop for Skein_512 Skein_512_block_loop: # general register usage: # RAX..RDX = temps for key schedule pre-loads # R8 ..R15 = X0..X7 # RSP, RBP = stack/frame pointers # RDI = round counter or context pointer # RSI = temp # movq TWEAK + 0(%rdi),%rax addq bitAdd+F_O(%rbp),%rax #computed updated tweak value T0 movq %rbx,%rcx xorq %rax,%rcx #%rax/%rbx/%rcx = tweak schedule movq %rax,TWEAK+ 0 (%rdi) #save updated tweak value ctx->h.T[0] movq %rax,ksTwk+ 0+F_O(%rbp) movq $KW_PARITY,%rdx movq blkPtr +F_O(%rbp),%rsi #%rsi --> input block movq %rbx,ksTwk+ 8+F_O(%rbp) movq %rcx,ksTwk+16+F_O(%rbp) .irp _Rn_,8,9,10,11,12,13,14,15 movq X_VARS+8*(\_Rn_-8)(%rdi),%r\_Rn_ xorq %r\_Rn_,%rdx #compute overall parity movq %r\_Rn_,ksKey+8*(\_Rn_-8)+F_O(%rbp) .endr #load state into %r8 ..%r15, compute parity movq %rdx,ksKey+8*(8)+F_O(%rbp)#save key schedule parity addReg r13,rax #precompute key injection for tweak addReg r14, rbx .if _SKEIN_DEBUG movq %rbx,TWEAK+ 8(%rdi) #save updated tweak value ctx->h.T[1] for Skein_Debug_Block below .endif movq 0(%rsi),%rax #load input block movq 8(%rsi),%rbx movq 16(%rsi),%rcx movq 24(%rsi),%rdx addReg r8 , rax #do initial key injection addReg r9 , rbx movq %rax,Wcopy+ 0+F_O(%rbp) #keep local copy for feedforward movq %rbx,Wcopy+ 8+F_O(%rbp) addReg r10, rcx addReg r11, rdx movq %rcx,Wcopy+16+F_O(%rbp) movq %rdx,Wcopy+24+F_O(%rbp) movq 32(%rsi),%rax movq 40(%rsi),%rbx movq 48(%rsi),%rcx movq 56(%rsi),%rdx addReg r12, rax addReg r13, rbx addReg r14, rcx addReg r15, rdx movq %rax,Wcopy+32+F_O(%rbp) movq %rbx,Wcopy+40+F_O(%rbp) movq %rcx,Wcopy+48+F_O(%rbp) movq %rdx,Wcopy+56+F_O(%rbp) .if _SKEIN_DEBUG .irp _Rn_,8,9,10,11,12,13,14,15 #save values on stack for debug output movq %r\_Rn_,X_stk+8*(\_Rn_-8)(%rsp) .endr Skein_Debug_Block 512 #debug dump Skein_Debug_Round 512,SKEIN_RND_KEY_INITIAL .endif addq $8*WCNT,%rsi #skip the block movq %rsi,blkPtr+F_O(%rbp) #update block pointer # ################# # now the key schedule is computed. Start the rounds # .if (SKEIN_ASM_UNROLL) & 512 _UNROLL_CNT = ROUNDS_512/8 .else _UNROLL_CNT = SKEIN_UNROLL_512 .if ((ROUNDS_512/8) % _UNROLL_CNT) .error "Invalid SKEIN_UNROLL_512" .endif xorq %rdi,%rdi #rdi = round counter Skein_512_round_loop: .endif # _Rbase_ = 0 .rept _UNROLL_CNT*2 R_512_FourRounds %(4*_Rbase_+00) _Rbase_ = _Rbase_+1 .endr #rept _UNROLL_CNT # .if ((SKEIN_ASM_UNROLL) & 512) == 0 cmpq $2*(ROUNDS_512/8),%rdi jb Skein_512_round_loop movq ctxPtr +F_O(%rbp),%rdi #restore rdi --> context .endif # end of rounds ################# # feedforward: ctx->X[i] = X[i] ^ w[i], {i=0..7} .irp _Rn_,8,9,10,11,12,13,14,15 .if (\_Rn_ == 8) movq $FIRST_MASK64,%rbx .endif xorq Wcopy+8*(\_Rn_-8)+F_O(%rbp),%r\_Rn_ #feedforward XOR movq %r\_Rn_,X_VARS+8*(\_Rn_-8)(%rdi) #and store result .if (\_Rn_ == 14) andq TWEAK+ 8(%rdi),%rbx .endif .endr Skein_Debug_Round 512,SKEIN_RND_FEED_FWD # go back for more blocks, if needed decq blkCnt+F_O(%rbp) jnz Skein_512_block_loop movq %rbx,TWEAK + 8(%rdi) Reset_Stack ret Skein_512_Process_Block_End: # .if _SKEIN_DEBUG # call here with rdx = "round number" Skein_Debug_Round_512: pushq %rsi #save two regs for BLK_BITS-specific parms pushq %rdi .irp _Rn_,8,9,10,11,12,13,14,15 #save X[] state on stack so debug routines can access it movq %r\_Rn_,X_stk+8*(\_Rn_-8)+F_O(%rbp) .endr movq ctxPtr+F_O(%rbp),%rsi #ctx_hdr_ptr movq $512,%rdi #now are set for the call jmp Skein_Debug_Round_Common .endif # .if _SKEIN_CODE_SIZE C_label Skein_512_Process_Block_CodeSize movq $(Skein_512_Process_Block_End-Skein_512_Process_Block),%rax ret # C_label Skein_512_Unroll_Cnt .if _UNROLL_CNT <> (ROUNDS_512/8) movq $_UNROLL_CNT,%rax .else xorq %rax,%rax .endif ret .endif # .endif # _USE_ASM_ & 512 # #=================================== Skein1024 ============================================= .if _USE_ASM_ & 1024 # # void Skein1024_Process_Block(Skein_1024_Ctxt_t *ctx,const u08b_t *blkPtr,size_t blkCnt,size_t bitcntAdd)# # ################# # use details of permutation to make register assignments # o1K_rdi = 0 #offsets in X[] associated with each register o1K_rsi = 1 o1K_rbp = 2 o1K_rax = 3 o1K_rcx = 4 #rcx is "shared" with X6, since X4/X6 alternate o1K_rbx = 5 o1K_rdx = 7 o1K_r8 = 8 o1K_r9 = 9 o1K_r10 = 10 o1K_r11 = 11 o1K_r12 = 12 o1K_r13 = 13 o1K_r14 = 14 o1K_r15 = 15 # rIdx_offs = tmpStk_1024 # .macro r1024_Mix w0,w1,reg0,reg1,_RN0_,_Rn1_,op1 addReg \reg0 , \reg1 #perform the MIX RotL64 \reg1 , 1024,%((\_RN0_) % 8),\_Rn1_ xorReg \reg1 , \reg0 .if ((\_RN0_) & 3) == 3 #time to do key injection? .if _SKEIN_DEBUG movq %\reg0 , xDebug_1024+8*\w0(%rsp) #save intermediate values for Debug_Round movq %\reg1 , xDebug_1024+8*\w1(%rsp) # (before inline key injection) .endif _II_ = ((\_RN0_)/4)+1 #injection count .if (SKEIN_ASM_UNROLL) & 1024 #here to do fully unrolled key injection addq ksKey+ 8*((_II_+\w0) % 17)(%rsp),%\reg0 addq ksKey+ 8*((_II_+\w1) % 17)(%rsp),%\reg1 .if \w1 == 13 #tweak injection addq ksTwk+ 8*((_II_+ 0) % 3)(%rsp),%\reg1 .elseif \w0 == 14 addq ksTwk+ 8*((_II_+ 1) % 3)(%rsp),%\reg0 .elseif \w1 == 15 addq $_II_, %\reg1 #(injection counter) .endif .else #here to do looping key injection .if (\w0 == 0) movq %rdi, X_stk+8*\w0(%rsp) #if so, store N0 so we can use reg as index movq rIdx_offs(%rsp),%rdi #get the injection counter index into rdi .else addq ksKey+8+8*\w0(%rsp,%rdi,8),%\reg0 #even key injection .endif .if \w1 == 13 #tweak injection addq ksTwk+8+8* 0(%rsp,%rdi,8),%\reg1 .elseif \w0 == 14 addq ksTwk+8+8* 1(%rsp,%rdi,8),%\reg0 .elseif \w1 == 15 addReg \reg1,rdi,,,1 #(injection counter) .endif addq ksKey+8+8*\w1(%rsp,%rdi,8),%\reg1 #odd key injection .endif .endif # insert the op provided, .if any \op1 .endm ################# # MACRO: four rounds for 1024-bit blocks # .macro r1024_FourRounds _RR_ #RR = base round number (0 mod 4) # should be here with X4 set properly, X6 stored on stack _Rn_ = (\_RR_) + 0 r1024_Mix 0, 1,rdi,rsi,_Rn_,0 r1024_Mix 2, 3,rbp,rax,_Rn_,1 r1024_Mix 4, 5,rcx,rbx,_Rn_,2, #save X4 on stack (x4/x6 alternate) r1024_Mix 8, 9,r8 ,r9 ,_Rn_,4, #load X6 from stack r1024_Mix 10,11,r10,r11,_Rn_,5 r1024_Mix 12,13,r12,r13,_Rn_,6 r1024_Mix 6, 7,rcx,rdx,_Rn_,3 r1024_Mix 14,15,r14,r15,_Rn_,7 .if _SKEIN_DEBUG Skein_Debug_Round 1024,%(_Rn_+1) .endif _Rn_ = (\_RR_) + 1 r1024_Mix 0, 9,rdi,r9 ,_Rn_,0 r1024_Mix 2,13,rbp,r13,_Rn_,1 r1024_Mix 6,11,rcx,r11,_Rn_,2, #save X6 on stack (x4/x6 alternate) r1024_Mix 10, 7,r10,rdx,_Rn_,4, #load X4 from stack r1024_Mix 12, 3,r12,rax,_Rn_,5 r1024_Mix 14, 5,r14,rbx,_Rn_,6 r1024_Mix 4,15,rcx,r15,_Rn_,3 r1024_Mix 8, 1,r8 ,rsi,_Rn_,7 .if _SKEIN_DEBUG Skein_Debug_Round 1024,%(_Rn_+1) .endif _Rn_ = (\_RR_) + 2 r1024_Mix 0, 7,rdi,rdx,_Rn_,0 r1024_Mix 2, 5,rbp,rbx,_Rn_,1 r1024_Mix 4, 3,rcx,rax,_Rn_,2, #save X4 on stack (x4/x6 alternate) r1024_Mix 12,15,r12,r15,_Rn_,4, #load X6 from stack r1024_Mix 14,13,r14,r13,_Rn_,5 r1024_Mix 8,11,r8 ,r11,_Rn_,6 r1024_Mix 6, 1,rcx,rsi,_Rn_,3 r1024_Mix 10, 9,r10,r9 ,_Rn_,7 .if _SKEIN_DEBUG Skein_Debug_Round 1024,%(_Rn_+1) .endif _Rn_ = (\_RR_) + 3 r1024_Mix 0,15,rdi,r15,_Rn_,0 r1024_Mix 2,11,rbp,r11,_Rn_,1 r1024_Mix 6,13,rcx,r13,_Rn_,2, #save X6 on stack (x4/x6 alternate) r1024_Mix 14, 1,r14,rsi,_Rn_,4, #load X4 from stack r1024_Mix 8, 5,r8 ,rbx,_Rn_,5 r1024_Mix 10, 3,r10,rax,_Rn_,6 r1024_Mix 4, 9,rcx,r9 ,_Rn_,3 r1024_Mix 12, 7,r12,rdx,_Rn_,7 .if _SKEIN_DEBUG Skein_Debug_Round 1024,%(_Rn_+1) .endif .if ((SKEIN_ASM_UNROLL) & 1024) == 0 #here with rdi == rIdx, X0 on stack #"rotate" the key schedule on the stack i8 = o1K_r8 i0 = o1K_rdi movq %r8 , X_stk+8*i8(%rsp) #free up a register (save it on the stack) movq ksKey+8* 0(%rsp,%rdi,8),%r8 #get key word movq %r8 , ksKey+8*17(%rsp,%rdi,8) #rotate key (must do key first or tweak clobbers it!) movq ksTwk+8* 0(%rsp,%rdi,8),%r8 #get tweak word movq %r8 , ksTwk+8* 3(%rsp,%rdi,8) #rotate tweak (onto the stack) movq X_stk+8*i8(%rsp) ,%r8 #get the reg back incq %rdi #bump the index movq %rdi, rIdx_offs (%rsp) #save rdi again movq ksKey+8*i0(%rsp,%rdi,8),%rdi #get the key schedule word for X0 back addq X_stk+8*i0(%rsp) ,%rdi #perform the X0 key injection .endif #show the result of the key injection Skein_Debug_Round 1024,SKEIN_RND_KEY_INJECT .endm #r1024_FourRounds # ################ # code # C_label Skein1024_Process_Block # Setup_Stack 1024,ROUNDS_1024/8,WCNT movq TWEAK+ 8(%rdi),%r9 jmp Skein1024_block_loop # main hash loop for Skein1024 .p2align 4 Skein1024_block_loop: # general register usage: # RSP = stack pointer # RAX..RDX,RSI,RDI = X1, X3..X7 (state words) # R8 ..R15 = X8..X15 (state words) # RBP = temp (used for X0 and X2) # .if ((SKEIN_ASM_UNROLL) & 1024) == 0 xorq %rax,%rax #init loop index on the stack movq %rax,rIdx_offs(%rsp) .endif movq TWEAK+ 0(%rdi),%r8 addq bitAdd+ F_O(%rbp),%r8 #computed updated tweak value T0 movq %r9 ,%r10 xorq %r8 ,%r10 #%rax/%rbx/%rcx = tweak schedule movq %r8 ,TWEAK+ 0(%rdi) #save updated tweak value ctx->h.T[0] movq %r8 ,ksTwk+ 0+F_O(%rbp) movq %r9 ,ksTwk+ 8+F_O(%rbp) #keep values in %r8 ,%r9 for initial tweak injection below movq %r10,ksTwk+16+F_O(%rbp) .if _SKEIN_DEBUG movq %r9 ,TWEAK+ 8(%rdi) #save updated tweak value ctx->h.T[1] for Skein_Debug_Block .endif movq blkPtr +F_O(%rbp),%rsi # rsi --> input block movq $KW_PARITY ,%rax #overall key schedule parity # the logic here assumes the set {rdi,rsi,rbp,rax} = X[0,1,2,3] .irp _rN_,0,1,2,3,4,6 #process the "initial" words, using r14/r15 as temps movq X_VARS+8*\_rN_(%rdi),%r14 #get state word movq 8*\_rN_(%rsi),%r15 #get msg word xorq %r14,%rax #update key schedule overall parity movq %r14,ksKey +8*\_rN_+F_O(%rbp) #save key schedule word on stack movq %r15,Wcopy +8*\_rN_+F_O(%rbp) #save local msg Wcopy addq %r15,%r14 #do the initial key injection movq %r14,X_stk +8*\_rN_ (%rsp) #save initial state var on stack .endr # now process the rest, using the "real" registers # (MUST do it in reverse order to inject tweaks r8/r9 first) .irp _rr_,r15,r14,r13,r12,r11,r10,r9,r8,rdx,rbx _oo_ = o1K_\_rr_ #offset assocated with the register movq X_VARS+8*_oo_(%rdi),%\_rr_ #get key schedule word from context movq 8*_oo_(%rsi),%rcx #get next input msg word movq %\_rr_, ksKey +8*_oo_(%rsp) #save key schedule on stack xorq %\_rr_, %rax #accumulate key schedule parity movq %rcx,Wcopy+8*_oo_+F_O(%rbp) #save copy of msg word for feedforward addq %rcx,%\_rr_ #do the initial key injection .if _oo_ == 13 #do the initial tweak injection addReg \_rr_,r8 # (only in words 13/14) .elseif _oo_ == 14 addReg \_rr_,r9 .endif .endr movq %rax,ksKey+8*WCNT+F_O(%rbp) #save key schedule parity .if _SKEIN_DEBUG Skein_Debug_Block 1024 #initial debug dump .endif addq $8*WCNT,%rsi #bump the msg ptr movq %rsi,blkPtr+F_O(%rbp) #save bumped msg ptr # re-load words 0..4 from stack, enter the main loop .irp _rr_,rdi,rsi,rbp,rax,rcx #(no need to re-load x6, already on stack) movq X_stk+8*o1K_\_rr_(%rsp),%\_rr_ #re-load state and get ready to go! .endr .if _SKEIN_DEBUG Skein_Debug_Round 1024,SKEIN_RND_KEY_INITIAL #show state after initial key injection .endif # ################# # now the key schedule is computed. Start the rounds # .if (SKEIN_ASM_UNROLL) & 1024 _UNROLL_CNT = ROUNDS_1024/8 .else _UNROLL_CNT = SKEIN_UNROLL_1024 .if ((ROUNDS_1024/8) % _UNROLL_CNT) .error "Invalid SKEIN_UNROLL_1024" .endif Skein1024_round_loop: .endif # _Rbase_ = 0 .rept _UNROLL_CNT*2 #implement the rounds, 4 at a time r1024_FourRounds %(4*_Rbase_+00) _Rbase_ = _Rbase_+1 .endr #rept _UNROLL_CNT # .if ((SKEIN_ASM_UNROLL) & 1024) == 0 cmpq $2*(ROUNDS_1024/8),tmpStk_1024(%rsp) #see .if we are done jb Skein1024_round_loop .endif # end of rounds ################# # # feedforward: ctx->X[i] = X[i] ^ w[i], {i=0..15} movq %rdx,X_stk+8*o1K_rdx(%rsp) #we need a register. x6 already on stack movq ctxPtr(%rsp),%rdx .irp _rr_,rdi,rsi,rbp,rax,rcx,rbx,r8,r9,r10,r11,r12,r13,r14,r15 #do all but x6,x7 _oo_ = o1K_\_rr_ xorq Wcopy +8*_oo_(%rsp),%\_rr_ #feedforward XOR movq %\_rr_,X_VARS+8*_oo_(%rdx) #save result into context .if (_oo_ == 9) movq $FIRST_MASK64 ,%r9 .endif .if (_oo_ == 14) andq TWEAK+ 8(%rdx),%r9 .endif .endr # movq X_stk +8*6(%rsp),%rax #now process x6,x7 (skipped in .irp above) movq X_stk +8*7(%rsp),%rbx xorq Wcopy +8*6(%rsp),%rax xorq Wcopy +8*7(%rsp),%rbx movq %rax,X_VARS+8*6(%rdx) decq blkCnt(%rsp) #set zero flag iff done movq %rbx,X_VARS+8*7(%rdx) Skein_Debug_Round 1024,SKEIN_RND_FEED_FWD,, # go back for more blocks, if needed movq ctxPtr(%rsp),%rdi #don't muck with the flags here! lea FRAME_OFFS(%rsp),%rbp jnz Skein1024_block_loop movq %r9 ,TWEAK+ 8(%rdx) Reset_Stack ret # Skein1024_Process_Block_End: # .if _SKEIN_DEBUG Skein_Debug_Round_1024: # call here with rdx = "round number", _SP_OFFS_ = 8*2 #stack "offset" here: rdx, return addr # #save rest of X[] state on stack so debug routines can access it .irp _rr_,rsi,rbp,rax,rbx,r8,r9,r10,r11,r12,r13,r14,r15 movq %\_rr_,X_stk+8*o1K_\_rr_+_SP_OFFS_(%rsp) .endr # Figure out what to do with x0 (rdi). When rdx == 0 mod 4, it's already on stack cmpq $SKEIN_RND_SPECIAL,%rdx #special rounds always save jae save_x0 testq $3,%rdx #otherwise only if rdx != 0 mod 4 jz save_x0_not save_x0: movq %rdi,X_stk+8*o1K_rdi+_SP_OFFS_(%rsp) save_x0_not: #figure out the x4/x6 swapping state and save the correct one! cmpq $SKEIN_RND_SPECIAL,%rdx #special rounds always do x4 jae save_x4 testq $1,%rdx #and even ones have r4 as well jz save_x4 movq %rcx,X_stk+8*6+_SP_OFFS_(%rsp) jmp debug_1024_go save_x4: movq %rcx,X_stk+8*4+_SP_OFFS_(%rsp) debug_1024_go: #now all is saved in Xstk[] except for rdx push %rsi #save two regs for BLK_BITS-specific parms push %rdi _SP_OFFS_ = _SP_OFFS_ + 16 #adjust stack offset accordingly (now 32) movq _SP_OFFS_-8(%rsp),%rsi #get back original %rdx (pushed on stack in macro call) movq %rsi,X_stk+8*o1K_rdx+_SP_OFFS_(%rsp) #and save it in its rightful place in X_stk[] movq ctxPtr+_SP_OFFS_(%rsp),%rsi #rsi = ctx_hdr_ptr movq $1024,%rdi #rdi = block size jmp Skein_Debug_Round_Common .endif # .if _SKEIN_CODE_SIZE C_label Skein1024_Process_Block_CodeSize movq $(Skein1024_Process_Block_End-Skein1024_Process_Block),%rax ret # C_label Skein1024_Unroll_Cnt .if _UNROLL_CNT <> (ROUNDS_1024/8) movq $_UNROLL_CNT,%rax .else xorq %rax,%rax .endif ret .endif # .endif # _USE_ASM_ and 1024 # .if _SKEIN_DEBUG #---------------------------------------------------------------- #local debug routine to set up for calls to: # void Skein_Show_Round(uint_t bits,const Skein_Ctxt_Hdr_t *h,int r,const u64b_t *X) # [ rdi rsi rdx rcx] # # here with %rdx = round number # %rsi = ctx_hdr_ptr # %rdi = block size (256/512/1024) # on stack: saved rdi, saved rsi, retAddr, saved rdx # Skein_Debug_Round_Common: _SP_OFFS_ = 32 #account for four words on stack already .irp _rr_,rax,rbx,rcx,rbp,r8,r9,r10,r11,r12,r13,r14,r15 #save the rest of the regs pushq %\_rr_ _SP_OFFS_ = _SP_OFFS_+8 .endr .if (_SP_OFFS_ % 16) # make sure stack is still 16-byte aligned here .error "Debug_Round_Common: stack alignment" .endif # compute %rcx = ptr to the X[] array on the stack (final parameter to call) leaq X_stk+_SP_OFFS_(%rsp),%rcx #adjust for reg pushes, return address cmpq $SKEIN_RND_FEED_FWD,%rdx #special handling for feedforward "round"? jnz _got_rcxA leaq X_VARS(%rsi),%rcx _got_rcxA: .if _USE_ASM_ & 1024 # special handling for 1024-bit case # (for rounds right before with key injection: # use xDebug_1024[] instead of X_stk[]) cmpq $SKEIN_RND_SPECIAL,%rdx jae _got_rcxB #must be a normal round orq %rdx,%rdx jz _got_rcxB #just before key injection test $3,%rdx jne _got_rcxB cmp $1024,%rdi #only 1024-bit(s) for now jne _got_rcxB leaq xDebug_1024+_SP_OFFS_(%rsp),%rcx _got_rcxB: .endif call Skein_Show_Round #call external debug handler .irp _rr_,r15,r14,r13,r12,r11,r10,r9,r8,rbp,rcx,rbx,rax #restore regs popq %\_rr_ _SP_OFFS_ = _SP_OFFS_-8 .endr .if _SP_OFFS_ - 32 .error "Debug_Round_Common: push/pop misalignment!" .endif popq %rdi popq %rsi ret .endif #---------------------------------------------------------------- .section .note.GNU-stack,"",@progbits .end diff --git a/sys/dev/acpi_support/acpi_wmi_if.m b/sys/dev/acpi_support/acpi_wmi_if.m index 905f87de33e8..7fcc9ec718e2 100644 --- a/sys/dev/acpi_support/acpi_wmi_if.m +++ b/sys/dev/acpi_support/acpi_wmi_if.m @@ -1,145 +1,144 @@ #- # Copyright (c) 2009 Michael Gmelin # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include INTERFACE acpi_wmi; # # Default implementation for acpi_wmi_generic_provides_guid_string(). # CODE { static int acpi_wmi_generic_provides_guid_string(device_t dev, const char* guid_string) { return 0; } }; # # Check if given GUID exists in WMI # Returns number of instances (max_instace+1) or 0 if guid doesn't exist # # device_t dev: Device to probe # const char* guid_string: String form of the GUID # METHOD int provides_guid_string { device_t dev; const char* guid_string; } DEFAULT acpi_wmi_generic_provides_guid_string; # # Evaluate a WMI method call # # device_t dev: Device to use # const char* guid_string: String form of the GUID # UINT8 instance: instance id # UINT32 method_id: method to call # const ACPI_BUFFER* in: input data # ACPI_BUFFER* out: output buffer # METHOD ACPI_STATUS evaluate_call { device_t dev; const char *guid_string; UINT8 instance; UINT32 method_id; const ACPI_BUFFER *in; ACPI_BUFFER *out; }; # # Get content of a WMI block # # device_t dev: Device to use # const char* guid_string: String form of the GUID # UINT8 instance: instance id # ACPI_BUFFER* out: output buffer # METHOD ACPI_STATUS get_block { device_t dev; const char *guid_string; UINT8 instance; ACPI_BUFFER *out; }; # # Write to a WMI data block # # device_t dev: Device to use # const char* guid_string: String form of the GUID # UINT8 instance: instance id # const ACPI_BUFFER* in: input data # METHOD ACPI_STATUS set_block { device_t dev; const char *guid_string; UINT8 instance; const ACPI_BUFFER *in; }; # # Install wmi event handler # # device_t dev: Device to use # const char* guid_string: String form of the GUID # ACPI_NOTIFY_HANDLER handler: Handler # void* data: Payload # METHOD ACPI_STATUS install_event_handler { device_t dev; const char *guid_string; ACPI_NOTIFY_HANDLER handler; void *data; }; # # Remove wmi event handler # # device_t dev: Device to use # const char* guid_string: String form of the GUID # METHOD ACPI_STATUS remove_event_handler { device_t dev; const char *guid_string; }; # # Get event data associated to an event # # device_t dev: Device to use # UINT32 event_id: event id # ACPI_BUFFER* out: output buffer # METHOD ACPI_STATUS get_event_data { device_t dev; UINT32 event_id; ACPI_BUFFER *out; }; diff --git a/sys/dev/acpica/acpi_bus_if.m b/sys/dev/acpica/acpi_bus_if.m index 9142a89453c5..353051ec43c1 100644 --- a/sys/dev/acpica/acpi_bus_if.m +++ b/sys/dev/acpica/acpi_bus_if.m @@ -1,66 +1,65 @@ #- # Copyright (c) 2016 The FreeBSD Foundation # # This software was developed by Andrew Turner under # sponsorship from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ #include #include #include INTERFACE acpi_bus; CODE { static acpi_bus_map_intr_t acpi_bus_default_map_intr; int acpi_bus_default_map_intr(device_t bus, device_t dev, u_int irq, int trig, int pol) { device_t parent; /* Pass up the hierarchy */ parent = device_get_parent(bus); if (parent != NULL) return (ACPI_BUS_MAP_INTR(parent, dev, irq, trig, pol)); panic("Unable to map interrupt %u", irq); } }; # Map an interrupt from ACPI space to the FreeBSD IRQ space. Note that # both of these may be different than the pysical interrupt space as this # may be local to each interrupt controller. # # This method also associates interrupt metadata with the interrupt, # removing the need for a post hoc configure step. METHOD int map_intr { device_t bus; device_t dev; u_int irq; int trig; int pol; } DEFAULT acpi_bus_default_map_intr; diff --git a/sys/dev/acpica/acpi_if.m b/sys/dev/acpica/acpi_if.m index e0ed4d72e899..6b7a770f8812 100644 --- a/sys/dev/acpica/acpi_if.m +++ b/sys/dev/acpica/acpi_if.m @@ -1,256 +1,255 @@ #- # Copyright (c) 2004 Nate Lawson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include INTERFACE acpi; # # Callback function for each child handle traversed in acpi_scan_children(). # # ACPI_HANDLE h: current child device being considered # # device_t *dev: pointer to the child's original device_t or NULL if there # was none. The callback should store a new device in *dev if it has # created one. The method implementation will automatically clean up the # previous device and properly associate the current ACPI_HANDLE with it. # # level: current level being scanned # # void *arg: argument passed in original call to acpi_scan_children() # # Returns: AE_OK if the scan should continue, otherwise an error # HEADER { typedef ACPI_STATUS (*acpi_scan_cb_t)(ACPI_HANDLE h, device_t *dev, int level, void *arg); struct acpi_bix; struct acpi_bif; struct acpi_bst; }; # # Default implementation for acpi_id_probe(). # CODE { static int acpi_generic_id_probe(device_t bus, device_t dev, char **ids, char **match) { return (ENXIO); } }; # # Check a device for a match in a list of ID strings. The strings can be # EISA PNP IDs or ACPI _HID/_CID values. # # device_t bus: parent bus for the device # # device_t dev: device being considered # # char **ids: array of ID strings to consider # # char **match: Pointer to store ID string matched or NULL if no match # pass NULL if not needed. # # Returns: BUS_PROBE_DEFAULT if _HID match # BUS_PROBE_LOW_PRIORITY if _CID match and not _HID match # ENXIO if no match. # METHOD int id_probe { device_t bus; device_t dev; char **ids; char **match; } DEFAULT acpi_generic_id_probe; # # Evaluate an ACPI method or object, given its path. # # device_t bus: parent bus for the device # # device_t dev: evaluate the object relative to this device's handle. # Specify NULL to begin the search at the ACPI root. # # ACPI_STRING pathname: absolute or relative path to this object # # ACPI_OBJECT_LIST *parameters: array of arguments to pass to the object. # Specify NULL if there are none. # # ACPI_BUFFER *ret: the result (if any) of the evaluation # Specify NULL if there is none. # # Returns: AE_OK or an error value # METHOD ACPI_STATUS evaluate_object { device_t bus; device_t dev; ACPI_STRING pathname; ACPI_OBJECT_LIST *parameters; ACPI_BUFFER *ret; }; # # Get property value from Device Specific Data # # device_t bus: parent bus for the device # # device_t dev: find property for this device's handle. # # const ACPI_STRING propname: name of the property # # const ACPI_OBJECT **value: property value output # Specify NULL if ignored # # Returns: AE_OK or an error value # METHOD ACPI_STATUS get_property { device_t bus; device_t dev; ACPI_STRING propname; const ACPI_OBJECT **value; }; # # Get the highest power state (D0-D3) that is usable for a device when # suspending/resuming. If a bus calls this when suspending a device, it # must also call it when resuming. # # device_t bus: parent bus for the device # # device_t dev: check this device's appropriate power state # # int *dstate: if successful, contains the highest valid sleep state # # Returns: 0 on success or some other error value. # METHOD int pwr_for_sleep { device_t bus; device_t dev; int *dstate; }; # # Rescan a subtree and optionally reattach devices to handles. Users # specify a callback that is called for each ACPI_HANDLE of type Device # that is a child of "dev". # # device_t bus: parent bus for the device # # device_t dev: begin the scan starting with this device's handle. # Specify NULL to begin the scan at the ACPI root. # # int max_depth: number of levels to traverse (i.e., 1 means just the # immediate children. # # acpi_scan_cb_t user_fn: called for each child handle # # void *arg: argument to pass to the callback function # # Returns: AE_OK or an error value, based on the callback return value # METHOD ACPI_STATUS scan_children { device_t bus; device_t dev; int max_depth; acpi_scan_cb_t user_fn; void *arg; }; # # Query a given driver for its supported feature(s). This should be # called by the parent bus before the driver is probed. # # driver_t *driver: child driver # # u_int *features: returned bitmask of all supported features # STATICMETHOD int get_features { driver_t *driver; u_int *features; }; # # Read embedded controller (EC) address space # # device_t dev: EC device # u_int addr: Address to read from in EC space # UINT64 *val: Location to store read value # int width: Size of area to read in bytes # METHOD int ec_read { device_t dev; u_int addr; UINT64 *val; int width; }; # # Write embedded controller (EC) address space # # device_t dev: EC device # u_int addr: Address to write to in EC space # UINT64 val: Value to write # int width: Size of value to write in bytes # METHOD int ec_write { device_t dev; u_int addr; UINT64 val; int width; }; # # Get battery information (_BIF or _BIX format) # # device_t dev: Battery device # void *bix: Pointer to storage for _BIF or _BIX results # size_t len: length of acpi_bif or acpi_bix. # METHOD int batt_get_info { device_t dev; void *bix; size_t len; }; # # Get battery status (_BST format) # # device_t dev: Battery device # struct acpi_bst *bst: Pointer to storage for _BST results # METHOD int batt_get_status { device_t dev; struct acpi_bst *bst; }; diff --git a/sys/dev/acpica/acpi_quirks b/sys/dev/acpica/acpi_quirks index 4b2099d59256..7fa0ba844343 100644 --- a/sys/dev/acpica/acpi_quirks +++ b/sys/dev/acpica/acpi_quirks @@ -1,497 +1,496 @@ -# $FreeBSD$ # # Quirks for ACPI tables can be added here. # # Comments start with '#'. Any number of spaces/tabs are ok within a line. # Be sure to include a reference to a PR when adding new quirks. Quirks # that do not contain a PR were discovered by reliable sources with no # supporting info (i.e., other OS's). # # ABit BP6 name: ABit_BP6 oem: FADT "AWARD " "AWRDACPI" oem_rev: FADT <= 0x30302e31 quirks: ACPI_Q_BROKEN # AMI INT 01/18/00 name: AMI_INT oem: FADT "AMIINT" "" oem_rev: FADT <= 10 quirks: ACPI_Q_BROKEN # ASUS P2B-D name: ASUS_P2B_D oem: FADT "ASUS " "P2B-D " oem_rev: FADT <= 0x58582e32 quirks: ACPI_Q_BROKEN # ASUS P2B-F name: ASUS_P2B_F oem: FADT "ASUS " "P2B-F " oem_rev: FADT <= 0x58582e31 quirks: ACPI_Q_BROKEN # ASUS P2B-DS 02/03/99 name: ASUS_P2B_DS oem: FADT "ASUS " "P2B-DS " oem_rev: FADT <= 0x58582e31 creator_rev: FADT <= 0x31303030 quirks: ACPI_Q_BROKEN # ASUS P2B-DS 10/21/99 name: ASUS_P2B_2 oem: FADT "ASUS " "P2B-DS " oem_rev: FADT <= 0x58582e32 creator_rev: FADT <= 0x31303030 quirks: ACPI_Q_BROKEN # ASUS P2L97-DS 02/02/99 name: ASUS_P2L97_DS oem: FADT "ASUS " "P2L97-DS" oem_rev: FADT <= 0x58582e31 creator_rev: FADT <= 0x31303030 quirks: ACPI_Q_BROKEN # ASUS P5A and P5A-B 03/12/99 # PR: i386/72450 # Testing indicates that the ACPI timer runs twice as fast but otherwise # this system works normally. name: ASUS_P5A oem: FADT "ASUS " "P5A " oem_rev: FADT <= 0x58582e31 quirks: ACPI_Q_TIMER # Compaq Armada 3500 name: Compaq_Armada_3500 oem: FADT "COMPAQ" "CPQB05E " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # Compaq Armada 6500 name: Compaq_Armada_6500 oem: FADT "PTLTD " " FACP " oem_rev: FADT = 0 quirks: ACPI_Q_BROKEN # Compaq M500 name: Compaq_M500 oem: FADT "COMPAQ" "CPQB151 " oem_rev: FADT <= 0x19990722 quirks: ACPI_Q_BROKEN # Compaq Panther name: Compaq_Panther oem: FADT "COMPAQ" "PANTHER " oem_rev: FADT <= 1 creator_rev: FADT = 0 quirks: ACPI_Q_BROKEN # Compaq Presario 1692 name: Compaq_Presario_1692 oem: FADT "COMPAQ" "VIPER II" oem_rev: FADT <= 0x06040000 creator: FADT "PTL " creator_rev: FADT <= 0xF4240 quirks: ACPI_Q_BROKEN # Compaq Presario 1925 name: Compaq_Presario_1925 oem: FADT "PTLTD " " FACP " oem_rev: FADT <= 0x06040000 quirks: ACPI_Q_BROKEN # Compaq R3000Z name: Compaq_R3000Z oem: FADT "NVIDIA" "CK8 " oem_rev: FADT = 0x6040000 creator: FADT "PTL_" quirks: ACPI_Q_MADT_IRQ0 # Compaq Thunder 05/18/99 # XXX Note creator rev should be "=", I think name: Compaq_Thunder oem: FADT "COMPAQ" "THUNDER " oem_rev: FADT <= 1 creator_rev: FADT <= 0 quirks: ACPI_Q_BROKEN # Compaq RaceBait 12/06/99 name: Compaq_RaceBait oem: FADT "COMPAQ" "RACEBAIT" oem_rev: FADT <= 2 quirks: ACPI_Q_BROKEN # Dell CP??? 01/27/99 name: Dell_CPxxx oem: FADT "Dell " "CP??? " oem_rev: FADT <= 0x27cf011b quirks: ACPI_Q_BROKEN # Dell CPt # XXX Is ">=" correct? name: Dell_CPt oem: FADT "DELL " "CPt C " oem_rev: FADT >= 0x27cf090e quirks: ACPI_Q_BROKEN # Dell CPt A02 # XXX Is ">=" correct? name: Dell_CPt_A02 oem: FADT "DELL " "CPt C " oem_rev: FADT >= 0x27cf090f quirks: ACPI_Q_BROKEN # Dell Latitude LT name: Dell_Latitude_LT oem: FADT "SHARP " " " quirks: ACPI_Q_BROKEN # Dell Inspiron 3500 name: Dell_Inspiron_3500 oem: FADT "Dell " "I 3500 " quirks: ACPI_Q_BROKEN # Dell PE1300 name: Dell_PE1300 oem: FADT "Dell " "PE1300 " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # Dell Personal Workstation 1300 name: Dell_PE1300_2 oem: FADT "DELL " "PE1300 " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # FIC PA2013 name: FIC_PA2013 oem: FADT "FIC " "PA2013 " oem_rev: FADT <= 0x30302e31 quirks: ACPI_Q_BROKEN # FIC VB601 name: FIC_VB601 oem: FADT "FIC " "VB601 " oem_rev: FADT <= 0x30302e31 quirks: ACPI_Q_BROKEN # Fujitsu Capricorn name: Fujitsu_Capricorn oem: FADT "FUJ " "CAPRICOR" quirks: ACPI_Q_BROKEN # Fujitsu M63E name: Fujitsu_M63E oem: FADT "FUJ000" "M63E " quirks: ACPI_Q_BROKEN # Fujitsu M65 name: Fujitsu_M65 oem: FADT "FUJ " "M65 " quirks: ACPI_Q_BROKEN # Fujitsu Sprint name: Fujitsu_Sprint oem: XSDT "FUJ " "SPRINT " quirks: ACPI_Q_BROKEN # Fujitsu Tandem name: Fujitsu_Tandem oem: FADT "FUJ " "TANDEM " quirks: ACPI_Q_BROKEN # Fujitsu Elm name: Fujitsu_Elm oem: FADT "FUJ " "M19A/XA " oem_rev: FADT = 1 creator: FADT "ACER" creator_rev: FADT = 0 quirks: ACPI_Q_BROKEN # Fujitsu Maple name: Fujitsu_Maple oem: FADT "FUJ " "M9D " oem_rev: FADT = 1 creator: FADT "ACER" creator_rev: FADT = 0 quirks: ACPI_Q_BROKEN # Fujitsu Sycamore name: Fujitsu_Sycamore oem: FADT "Fuj " "M11EJ " oem_rev: FADT = 1 creator: FADT "ACER" creator_rev: FADT = 0 quirks: ACPI_Q_BROKEN # Fujitsu V66NAS name: Fujitsu_V66NAS oem: FADT "FUJ " "V66NAS " quirks: ACPI_Q_BROKEN # Gateway E1200 name: Gateway_E1200 oem: FADT "INTEL " "MAUI " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # Gateway E1400 name: Gateway_E1400 oem: FADT "SUMATR" "SU81010A" oem_rev: FADT <= 0x1999072 quirks: ACPI_Q_BROKEN # Gateway Profile name: Gateway_Profile oem: FADT "GATEWA" "PROFILE " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # Gateway Solo name: Gateway_Solo oem: FADT "GATEWA" "SOLO9300" oem_rev: FADT <= 0x06040000 quirks: ACPI_Q_BROKEN # Gigabyte name: Gigabyte_Award oem: FADT "GBT" "AWRDACPI" oem_rev: FADT = 0 quirks: ACPI_Q_BROKEN # GA-5AX (Rev 4) # Testing indicates that the ACPI timer runs twice as fast but otherwise # this system works normally. name: GBT_AWRDACPI oem: FADT "GBT " "AWRDACPI" oem_rev: FADT <= 0x42302e31 quirks: ACPI_Q_TIMER # Hitachi Flora 220CX name: Hitachi_Flora_220CX oem: FADT "HTCLTD" "HTC2041 " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # Hitachi Flora 220MP name: Hitachi_Flora_220MP oem: FADT "HTCLTD" " " quirks: ACPI_Q_BROKEN # Hitachi Flora 270EX name: Hitachi_Flora_270EX oem: FADT "HTCLTD" "270-EX " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # Hitachi Flora 270VX-NH7 name: Hitachi_Flora_270VX_NH7 oem: FADT "HTCLTD" "HTC2051 " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # HP Ashaki 02/24/99 name: HP_Ashaki oem: FADT "HP " "ASHAKI " oem_rev: FADT = 0 quirks: ACPI_Q_BROKEN # HP HPBDD name: HP_HPBDD oem: FADT "HP " "HPBDD_IO" oem_rev: FADT <= 0x1006 quirks: ACPI_Q_BROKEN # HP HPCCD HX name: HP_HPCCD_HX oem: FADT "HP " "HPCCD HX" oem_rev: FADT <= 0x10000 quirks: ACPI_Q_BROKEN # HP Kayak XUMP name: HP_Kayak_XUMP oem: FADT "HP " "COGNAC " oem_rev: FADT = 0 quirks: ACPI_Q_BROKEN # HP LH 4 name: HP_LH_4 oem: FADT "HP " "LH 4 " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # HP Puma 02/12/99 name: HP_Puma oem: FADT "HP " "Puma " oem_rev: FADT = 0 quirks: ACPI_Q_BROKEN # HP Scimitar name: HP_Scimitar oem: FADT "HP " "HWPC203 " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # IBM Aptiva 145 name: IBM_Aptiva_145 oem: FADT "XXXXXX" "AWRDACPI" oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # IBM TP240 SandShark name: IBM_TP240_SandShark oem: FADT "IBM " "SShark-1" oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # Intel Kauai name: Intel_Kauai oem: FADT "INTEL " "KAUAI " quirks: ACPI_Q_BROKEN # Intel L440GX name: Intel_L440GX oem: FADT "Intel " "L440GX " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # Intel OR840 09/14/99 name: Intel_OR840 oem: FADT "Intel " "OR840 " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # Intel Seattle2 name: Intel_Seattle2 oem: FADT "INTEL " "SEATTLE2" oem_rev: FADT <= 0x19990216 quirks: ACPI_Q_BROKEN # Iwill DBS100 name: Iwill_DBS100 oem: FADT "AWARD " "AWRDACPI" oem_rev: FADT = 0 quirks: ACPI_Q_BROKEN # Micron Atlanta name: Micron_Atlanta oem: FADT "MICRON" "ATLANTA " oem_rev: FADT = 0 quirks: ACPI_Q_BROKEN # Micron Trek 2U375 name: Micron_Trek_2U375 oem: FADT "MICRON" "Trek2AGP" oem_rev: FADT = 1 quirks: ACPI_Q_BROKEN # NCR S20GX name: NCR_S20GX oem: FADT "Intel " "L440GX " oem_rev: FADT = 0 quirks: ACPI_Q_BROKEN # NEC PowerMate 8100 name: NEC_PowerMate_8100 oem: FADT "INTEL " "JN440BX1" oem_rev: FADT >= 0x19990203 oem_rev: FADT <= 0x19990810 creator_rev: FADT = 0xf4240 quirks: ACPI_Q_BROKEN # NEC VersaNote name: NEC_VersaNote oem: FADT "INTEL " "440BX " oem_rev: FADT = 0 creator: FADT "PTL " creator_rev: FADT = 0xf4240 quirks: ACPI_Q_BROKEN # NEC VersaNote C2 name: NEC_VersaNote_C2 oem: FADT "NEC " "ND000011" oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # NEC Versa LXAGP name: NEC_VersaNote_LXAGP oem: FADT "NEC " "ND000010" oem_rev: FADT <= 0x97 quirks: ACPI_Q_BROKEN # NEC Z1 name: NEC_Z1 oem: FADT "AMIINT" "" oem_rev: FADT = 0 quirks: ACPI_Q_BROKEN # QDIGRP 01/05/99 name: QDIGRP_Award oem: FADT "QDIGRP" "AWRDACPI" oem_rev: FADT <= 0 quirks: ACPI_Q_BROKEN # Siemens Mobile 750 name: Siemens_Mobile_750 oem: FADT "TSANYO" " " oem_rev: FADT = 0 quirks: ACPI_Q_BROKEN # Sony F290 name: Sony_F290 oem: FADT "SONY " "K0 " oem_rev: FADT <= 0x13108b4 quirks: ACPI_Q_BROKEN # Sony N505 name: Sony_N505 oem: FADT "SONY " "H0 " oem_rev: FADT <= 0x06040000 quirks: ACPI_Q_BROKEN # Sony PCG-777 # Sony PCG-888 # Sony PCG-F16 # Sony Z505DX name: Sony_PCG_xxx oem: FADT "SONY " " " quirks: ACPI_Q_BROKEN # Sony PCV-L300 name: Sony_PCV_L300 oem: FADT "ASUS " "SHACHI " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # Sony PCV-S520 # Sony PCV-S720 name: Sony_PCV_Sx20 oem: FADT "SONY " "440BX CR" oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # SuperMicro name: SuperMicro_MTB oem: FADT "SUPERM" "SUPERMTB" oem_rev: FADT <= 2 quirks: ACPI_Q_BROKEN # Toshiba Portege 3300 # Toshiba Satellite 4030XCDT name: Toshiba_750 oem: FADT "TOSHIB" "750 " oem_rev: FADT <= 1 quirks: ACPI_Q_BROKEN # Tyan name: Tyan_TBLE oem: FADT "TYANCP" "TYANTBLE" oem_rev: FADT <= 9 quirks: ACPI_Q_BROKEN # VIA VP3A name: VIA_VP3A oem: FADT "VIAVP3" "AWRDACPI" oem_rev: FADT = 0 quirks: ACPI_Q_BROKEN diff --git a/sys/dev/adb/adb_hb_if.m b/sys/dev/adb/adb_hb_if.m index e27094d835c8..98ca542c80cd 100644 --- a/sys/dev/adb/adb_hb_if.m +++ b/sys/dev/adb/adb_hb_if.m @@ -1,58 +1,57 @@ #- # Copyright (c) 2008 Nathan Whitehorn # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE adb_hb; # # Bus level operations. These are used by the ADB bus manager, and are # required to inplement an ADB interface. # METHOD u_int send_raw_packet { device_t dev; u_char command_byte; int len; u_char *data; u_char poll; }; METHOD u_int controller_poll { device_t dev; }; METHOD u_int set_autopoll_mask { device_t dev; uint16_t mask; }; diff --git a/sys/dev/adb/adb_if.m b/sys/dev/adb/adb_if.m index ef21fd8875e1..c638d33a7cc2 100644 --- a/sys/dev/adb/adb_if.m +++ b/sys/dev/adb/adb_if.m @@ -1,49 +1,48 @@ #- # Copyright (c) 2008 Nathan Whitehorn # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE adb; # # Driver level operations # METHOD u_int receive_packet { device_t dev; u_char status; u_char command; u_char reg; int len; u_char *data; }; diff --git a/sys/dev/agp/agp_if.m b/sys/dev/agp/agp_if.m index 4a97ca95b343..c224d5e31c0c 100644 --- a/sys/dev/agp/agp_if.m +++ b/sys/dev/agp/agp_if.m @@ -1,146 +1,145 @@ #- # Copyright (c) 2000 Doug Rabson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include # # The AGP interface is used internally to the agp driver to isolate the # differences between various AGP chipsets into chipset mini drivers. It # should not be used outside the AGP driver. The kernel api for accessing # AGP functionality is described in # INTERFACE agp; CODE { static int null_agp_chipset_flush(device_t dev) { return (ENXIO); } }; # # Return the current aperture size. # METHOD u_int32_t get_aperture { device_t dev; }; # # Set the size of the aperture. Return EINVAL on error or 0 on success. # METHOD int set_aperture { device_t dev; u_int32_t aperture; }; # # Bind a single page in the AGP aperture to a given physical address. # The offset is a byte offset within the aperture which must be # aligned to an AGP page boundary. # METHOD int bind_page { device_t dev; vm_offset_t offset; vm_offset_t physical; }; # # Unbind a single page in the AGP aperture. # METHOD int unbind_page { device_t dev; vm_offset_t offset; }; # # Flush the GATT TLB. This is used after a call to bind_page to # ensure that any mappings cached in the chipset are discarded. # METHOD void flush_tlb { device_t dev; }; # # Enable the agp hardware with the relavent mode. The mode bits are # defined in # METHOD int enable { device_t dev; u_int32_t mode; }; # # Allocate memory of a given type. The type is a chipset-specific # code which is used by certain integrated agp graphics chips # (basically just the i810 for now) to access special features of # the chipset. An opaque handle representing the memory region is # returned and can be used as an argument to free_memory, bind_memory # and unbind_memory. # # The size is specified in bytes but must be a multiple of the AGP # page size. # METHOD struct agp_memory * alloc_memory { device_t dev; int type; vm_size_t size; }; # # Free a memory region previously allocated with alloc_memory. Return # EBUSY if the memory is bound. # METHOD int free_memory { device_t dev; struct agp_memory *mem; }; # # Bind a memory region to a specific byte offset within the chipset's # AGP aperture. This effectively defines a range of contiguous # physical address which alias the (possibly uncontiguous) pages in # the memory region. # METHOD int bind_memory { device_t dev; struct agp_memory *mem; vm_offset_t offset; }; # # Unbind a memory region bound with bind_memory. # METHOD int unbind_memory { device_t dev; struct agp_memory *handle; }; METHOD int chipset_flush { device_t dev; } DEFAULT null_agp_chipset_flush; diff --git a/sys/dev/aic7xxx/aicasm/Makefile b/sys/dev/aic7xxx/aicasm/Makefile index 3ff3a343e10a..3013c7556bf9 100644 --- a/sys/dev/aic7xxx/aicasm/Makefile +++ b/sys/dev/aic7xxx/aicasm/Makefile @@ -1,44 +1,43 @@ # # $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $ # -# $FreeBSD$ PROG= aicasm CSRCS= aicasm.c aicasm_symbol.c YSRCS= aicasm_gram.y aicasm_macro_gram.y LSRCS= aicasm_scan.l aicasm_macro_scan.l GENHDRS= aicasm_gram.h aicasm_macro_gram.h SRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS} CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g} WARNS?= 0 # Correct path for kernel builds # Don't rely on the kernel's .depend file .ifdef MAKESRCPATH .PATH: ${MAKESRCPATH} DEPENDFILE= .depend_aicasm .endif CFLAGS+= -I${.CURDIR} .ifdef MAKESRCPATH CFLAGS+= -I${MAKESRCPATH} .endif MAN= YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/} .ifdef AICASM_DEBUG CFLAGS+= -DDEBUG -g YFLAGS+= -t -v LFLAGS+= -d .endif BINDIR=/usr/bin build-tools: ${PROG} .include CFLAGS+= -Wno-missing-prototypes diff --git a/sys/dev/altera/pio/pio_if.m b/sys/dev/altera/pio/pio_if.m index 644afd622ba7..068963816cc5 100644 --- a/sys/dev/altera/pio/pio_if.m +++ b/sys/dev/altera/pio/pio_if.m @@ -1,65 +1,64 @@ #- # Copyright (c) 2014 Ruslan Bukin # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) # ("CTSRD"), as part of the DARPA CRASH research programme. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE pio; # # PIO device methods # METHOD int read { device_t dev; }; METHOD int setup_irq { device_t dev; void *handler; void *ih_user; }; METHOD int teardown_irq { device_t dev; }; METHOD int set { device_t dev; int bit; int enable; }; METHOD int configure { device_t dev; int dir; int mask; } diff --git a/sys/dev/ata/ata_if.m b/sys/dev/ata/ata_if.m index 821f5b2e3a7e..7fc95b654f8c 100644 --- a/sys/dev/ata/ata_if.m +++ b/sys/dev/ata/ata_if.m @@ -1,74 +1,73 @@ # Copyright (c) 2004 - 2008 Søren Schmidt # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification, immediately at the beginning of the file. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include #include #include #include #include #include #include #include #include INTERFACE ata; CODE { static int ata_null_setmode(device_t dev, int target, int mode) { if (mode > ATA_PIO_MAX) return (ATA_PIO_MAX); return (mode); } }; METHOD int setmode { device_t dev; int target; int mode; } DEFAULT ata_null_setmode; CODE { static int ata_null_getrev(device_t dev, int target) { return (0); } }; METHOD int getrev { device_t dev; int target; } DEFAULT ata_null_getrev; METHOD void reset { device_t channel; } DEFAULT ata_generic_reset; METHOD int reinit { device_t dev; }; diff --git a/sys/dev/backlight/backlight_if.m b/sys/dev/backlight/backlight_if.m index 21a2b34af1dd..a2ddd85c5ee6 100644 --- a/sys/dev/backlight/backlight_if.m +++ b/sys/dev/backlight/backlight_if.m @@ -1,66 +1,65 @@ #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2020 Emmanuel Vadot # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ #include INTERFACE backlight; CODE { static int backlight_default_update_status(device_t dev, struct backlight_props *props) { return (EOPNOTSUPP); } static int backlight_default_get_status(device_t dev, struct backlight_props *props) { return (EOPNOTSUPP); } static int backlight_default_get_info(device_t dev, struct backlight_info *info) { return (EOPNOTSUPP); } }; METHOD int update_status { device_t dev; struct backlight_props *props; } DEFAULT backlight_default_update_status; METHOD int get_status { device_t dev; struct backlight_props *props; } DEFAULT backlight_default_get_status; METHOD int get_info { device_t dev; struct backlight_info *info; } DEFAULT backlight_default_get_info; diff --git a/sys/dev/bhnd/bhnd_bus_if.m b/sys/dev/bhnd/bhnd_bus_if.m index 379898f9af26..adb2af9c4d85 100644 --- a/sys/dev/bhnd/bhnd_bus_if.m +++ b/sys/dev/bhnd/bhnd_bus_if.m @@ -1,1650 +1,1649 @@ #- # Copyright (c) 2015-2016 Landon Fuller # Copyright (c) 2017 The FreeBSD Foundation # All rights reserved. # # Portions of this software were developed by Landon Fuller # under sponsorship from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include #include #include INTERFACE bhnd_bus; # # bhnd(4) bus interface # HEADER { /* forward declarations */ struct bhnd_board_info; struct bhnd_core_info; struct bhnd_chipid; struct bhnd_dma_translation; struct bhnd_devinfo; struct bhnd_resource; } CODE { #include #include static bhnd_erom_class_t * bhnd_bus_null_get_erom_class(driver_t *driver) { return (NULL); } static struct bhnd_chipid * bhnd_bus_null_get_chipid(device_t dev, device_t child) { panic("bhnd_bus_get_chipid unimplemented"); } static int bhnd_bus_null_read_ioctl(device_t dev, device_t child, uint16_t *ioctl) { panic("bhnd_bus_read_ioctl unimplemented"); } static int bhnd_bus_null_write_ioctl(device_t dev, device_t child, uint16_t value, uint16_t mask) { panic("bhnd_bus_write_ioctl unimplemented"); } static int bhnd_bus_null_read_iost(device_t dev, device_t child, uint16_t *iost) { panic("bhnd_bus_read_iost unimplemented"); } static bool bhnd_bus_null_is_hw_suspended(device_t dev, device_t child) { panic("bhnd_bus_is_hw_suspended unimplemented"); } static int bhnd_bus_null_reset_hw(device_t dev, device_t child, uint16_t ioctl, uint16_t reset_ioctl) { panic("bhnd_bus_reset_hw unimplemented"); } static int bhnd_bus_null_suspend_hw(device_t dev, device_t child) { panic("bhnd_bus_suspend_hw unimplemented"); } static bhnd_attach_type bhnd_bus_null_get_attach_type(device_t dev, device_t child) { panic("bhnd_bus_get_attach_type unimplemented"); } static int bhnd_bus_null_read_board_info(device_t dev, device_t child, struct bhnd_board_info *info) { panic("bhnd_bus_read_boardinfo unimplemented"); } static void bhnd_bus_null_child_added(device_t dev, device_t child) { } static int bhnd_bus_null_alloc_pmu(device_t dev, device_t child) { panic("bhnd_bus_alloc_pmu unimplemented"); } static int bhnd_bus_null_release_pmu(device_t dev, device_t child) { panic("bhnd_bus_release_pmu unimplemented"); } static int bhnd_bus_null_get_clock_latency(device_t dev, device_t child, bhnd_clock clock, u_int *latency) { panic("bhnd_pmu_get_clock_latency unimplemented"); } static int bhnd_bus_null_get_clock_freq(device_t dev, device_t child, bhnd_clock clock, u_int *freq) { panic("bhnd_pmu_get_clock_freq unimplemented"); } static int bhnd_bus_null_request_clock(device_t dev, device_t child, bhnd_clock clock) { panic("bhnd_bus_request_clock unimplemented"); } static int bhnd_bus_null_enable_clocks(device_t dev, device_t child, uint32_t clocks) { panic("bhnd_bus_enable_clocks unimplemented"); } static int bhnd_bus_null_request_ext_rsrc(device_t dev, device_t child, u_int rsrc) { panic("bhnd_bus_request_ext_rsrc unimplemented"); } static int bhnd_bus_null_release_ext_rsrc(device_t dev, device_t child, u_int rsrc) { panic("bhnd_bus_release_ext_rsrc unimplemented"); } static int bhnd_bus_null_read_config(device_t dev, device_t child, bus_size_t offset, void *value, u_int width) { panic("bhnd_bus_null_read_config unimplemented"); } static void bhnd_bus_null_write_config(device_t dev, device_t child, bus_size_t offset, void *value, u_int width) { panic("bhnd_bus_null_write_config unimplemented"); } static device_t bhnd_bus_null_find_hostb_device(device_t dev) { return (NULL); } static struct bhnd_service_registry * bhnd_bus_null_get_service_registry(device_t dev) { panic("bhnd_bus_get_service_registry unimplemented"); } static bool bhnd_bus_null_is_hw_disabled(device_t dev, device_t child) { panic("bhnd_bus_is_hw_disabled unimplemented"); } static int bhnd_bus_null_get_probe_order(device_t dev, device_t child) { panic("bhnd_bus_get_probe_order unimplemented"); } static uintptr_t bhnd_bus_null_get_intr_domain(device_t dev, device_t child, bool self) { /* Unsupported */ return (0); } static u_int bhnd_bus_null_get_intr_count(device_t dev, device_t child) { return (0); } static int bhnd_bus_null_get_intr_ivec(device_t dev, device_t child, u_int intr, u_int *ivec) { panic("bhnd_bus_get_intr_ivec unimplemented"); } static int bhnd_bus_null_map_intr(device_t dev, device_t child, u_int intr, rman_res_t *irq) { panic("bhnd_bus_map_intr unimplemented"); } static int bhnd_bus_null_unmap_intr(device_t dev, device_t child, rman_res_t irq) { panic("bhnd_bus_unmap_intr unimplemented"); } static int bhnd_bus_null_get_port_rid(device_t dev, device_t child, bhnd_port_type port_type, u_int port, u_int region) { return (-1); } static int bhnd_bus_null_decode_port_rid(device_t dev, device_t child, int type, int rid, bhnd_port_type *port_type, u_int *port, u_int *region) { return (ENOENT); } static int bhnd_bus_null_get_region_addr(device_t dev, device_t child, bhnd_port_type type, u_int port, u_int region, bhnd_addr_t *addr, bhnd_size_t *size) { return (ENOENT); } static int bhnd_bus_null_get_nvram_var(device_t dev, device_t child, const char *name, void *buf, size_t *size, bhnd_nvram_type type) { return (ENODEV); } } /** * Return the bhnd(4) bus driver's device enumeration parser class. * * @param driver The bhnd bus driver instance. */ STATICMETHOD bhnd_erom_class_t * get_erom_class { driver_t *driver; } DEFAULT bhnd_bus_null_get_erom_class; /** * Register a shared bus @p provider for a given @p service. * * @param dev The parent of @p child. * @param child The requesting child device. * @param provider The service provider to register. * @param service The service for which @p provider will be registered. * * @retval 0 success * @retval EEXIST if an entry for @p service already exists. * @retval non-zero if registering @p provider otherwise fails, a regular * unix error code will be returned. */ METHOD int register_provider { device_t dev; device_t child; device_t provider; bhnd_service_t service; } DEFAULT bhnd_bus_generic_register_provider; /** * Attempt to remove the @p service provider registration for @p provider. * * @param dev The parent of @p child. * @param child The requesting child device. * @param provider The service provider to be deregistered. * @param service The service for which @p provider will be deregistered, * or BHND_SERVICE_INVALID to remove all service * registrations for @p provider. * * @retval 0 success * @retval EBUSY if active references to @p provider exist; @see * BHND_BUS_RETAIN_PROVIDER() and * BHND_BUS_RELEASE_PROVIDER(). */ METHOD int deregister_provider { device_t dev; device_t child; device_t provider; bhnd_service_t service; } DEFAULT bhnd_bus_generic_deregister_provider; /** * Retain and return a reference to the registered @p service provider, if any. * * @param dev The parent of @p child. * @param child The requesting child device. * @param service The service for which a provider should be returned. * * On success, the caller assumes ownership the returned provider, and * is responsible for releasing this reference via * BHND_BUS_RELEASE_PROVIDER(). * * @retval device_t success * @retval NULL if no provider is registered for @p service. */ METHOD device_t retain_provider { device_t dev; device_t child; bhnd_service_t service; } DEFAULT bhnd_bus_generic_retain_provider; /** * Release a reference to a service provider previously returned by * BHND_BUS_RETAIN_PROVIDER(). * * @param dev The parent of @p child. * @param child The requesting child device. * @param provider The provider to be released. * @param service The service for which @p provider was previously * retained. */ METHOD void release_provider { device_t dev; device_t child; device_t provider; bhnd_service_t service; } DEFAULT bhnd_bus_generic_release_provider; /** * Return a struct bhnd_service_registry. * * Used by drivers which use bhnd_bus_generic_sr_register_provider() etc. * to implement service provider registration. It should return a service * registry that may be used to resolve provider requests from @p child. * * @param dev The parent of @p child. * @param child The requesting child device. */ METHOD struct bhnd_service_registry * get_service_registry { device_t dev; device_t child; } DEFAULT bhnd_bus_null_get_service_registry; /** * Return the active host bridge core for the bhnd bus, if any. * * @param dev The bhnd bus device. * * @retval device_t if a hostb device exists * @retval NULL if no hostb device is found. */ METHOD device_t find_hostb_device { device_t dev; } DEFAULT bhnd_bus_null_find_hostb_device; /** * Return true if the hardware components required by @p child are unpopulated * or otherwise unusable. * * In some cases, enumerated devices may have pins that are left floating, or * the hardware may otherwise be non-functional; this method allows a parent * device to explicitly specify if a successfully enumerated @p child should * be disabled. * * @param dev The device whose child is being examined. * @param child The child device. */ METHOD bool is_hw_disabled { device_t dev; device_t child; } DEFAULT bhnd_bus_null_is_hw_disabled; /** * Return the probe (and attach) order for @p child. * * All devices on the bhnd(4) bus will be probed, attached, or resumed in * ascending order; they will be suspended, shutdown, and detached in * descending order. * * The following device methods will be dispatched in ascending probe order * by the bus: * * - DEVICE_PROBE() * - DEVICE_ATTACH() * - DEVICE_RESUME() * * The following device methods will be dispatched in descending probe order * by the bus: * * - DEVICE_SHUTDOWN() * - DEVICE_DETACH() * - DEVICE_SUSPEND() * * @param dev The device whose child is being examined. * @param child The child device. * * Refer to BHND_PROBE_* and BHND_PROBE_ORDER_* for the standard set of * priorities. */ METHOD int get_probe_order { device_t dev; device_t child; } DEFAULT bhnd_bus_null_get_probe_order; /** * Return the BHND chip identification for the parent bus. * * @param dev The device whose child is being examined. * @param child The child device. */ METHOD const struct bhnd_chipid * get_chipid { device_t dev; device_t child; } DEFAULT bhnd_bus_null_get_chipid; /** * Return the BHND attachment type of the parent bus. * * @param dev The device whose child is being examined. * @param child The child device. * * @retval BHND_ATTACH_ADAPTER if the bus is resident on a bridged adapter, * such as a WiFi chipset. * @retval BHND_ATTACH_NATIVE if the bus provides hardware services (clock, * CPU, etc) to a directly attached native host. */ METHOD bhnd_attach_type get_attach_type { device_t dev; device_t child; } DEFAULT bhnd_bus_null_get_attach_type; /** * Find the best available DMA address translation capable of mapping a * physical host address to a BHND DMA device address of @p width with * @p flags. * * @param dev The parent of @p child. * @param child The bhnd device requesting the DMA address translation. * @param width The address width within which the translation window must * reside (see BHND_DMA_ADDR_*). * @param flags Required translation flags (see BHND_DMA_TRANSLATION_*). * @param[out] dmat On success, will be populated with a DMA tag specifying the * @p translation DMA address restrictions. This argment may be NULL if the DMA * tag is not desired. * the set of valid host DMA addresses reachable via @p translation. * @param[out] translation On success, will be populated with a DMA address * translation descriptor for @p child. This argment may be NULL if the * descriptor is not desired. * * @retval 0 success * @retval ENODEV If DMA is not supported. * @retval ENOENT If no DMA translation matching @p width and @p flags is * available. * @retval non-zero If determining the DMA address translation for @p child * otherwise fails, a regular unix error code will be returned. */ METHOD int get_dma_translation { device_t dev; device_t child; u_int width; uint32_t flags; bus_dma_tag_t *dmat; struct bhnd_dma_translation *translation; } DEFAULT bhnd_bus_generic_get_dma_translation; /** * Attempt to read the BHND board identification from the parent bus. * * This relies on NVRAM access, and will fail if a valid NVRAM device cannot * be found, or is not yet attached. * * @param dev The parent of @p child. * @param child The bhnd device requesting board info. * @param[out] info On success, will be populated with the bhnd(4) device's * board information. * * @retval 0 success * @retval ENODEV No valid NVRAM source could be found. * @retval non-zero If reading @p name otherwise fails, a regular unix * error code will be returned. */ METHOD int read_board_info { device_t dev; device_t child; struct bhnd_board_info *info; } DEFAULT bhnd_bus_null_read_board_info; /** * Notify a bhnd bus that a child was added. * * This method must be called by concrete bhnd(4) driver impementations * after @p child's bus state is fully initialized. * * @param dev The bhnd bus whose child is being added. * @param child The child added to @p dev. */ METHOD void child_added { device_t dev; device_t child; } DEFAULT bhnd_bus_null_child_added; /** * Read the current value of @p child's I/O control register. * * @param dev The bhnd bus parent of @p child. * @param child The bhnd device for which the I/O control register should be * read. * @param[out] ioctl On success, the I/O control register value. * * @retval 0 success * @retval EINVAL If @p child is not a direct child of @p dev. * @retval ENODEV If agent/config space for @p child is unavailable. * @retval non-zero If reading the IOCTL register otherwise fails, a regular * unix error code will be returned. */ METHOD int read_ioctl { device_t dev; device_t child; uint16_t *ioctl; } DEFAULT bhnd_bus_null_read_ioctl; /** * Write @p value with @p mask to @p child's I/O control register. * * @param dev The bhnd bus parent of @p child. * @param child The bhnd device for which the I/O control register should * be updated. * @param value The value to be written (see also BHND_IOCTL_*). * @param mask Only the bits defined by @p mask will be updated from @p value. * * @retval 0 success * @retval EINVAL If @p child is not a direct child of @p dev. * @retval ENODEV If agent/config space for @p child is unavailable. * @retval non-zero If writing the IOCTL register otherwise fails, a regular * unix error code will be returned. */ METHOD int write_ioctl { device_t dev; device_t child; uint16_t value; uint16_t mask; } DEFAULT bhnd_bus_null_write_ioctl; /** * Read the current value of @p child's I/O status register. * * @param dev The bhnd bus parent of @p child. * @param child The bhnd device for which the I/O status register should be * read. * @param[out] iost On success, the I/O status register value. * * @retval 0 success * @retval EINVAL If @p child is not a direct child of @p dev. * @retval ENODEV If agent/config space for @p child is unavailable. * @retval non-zero If reading the IOST register otherwise fails, a regular * unix error code will be returned. */ METHOD int read_iost { device_t dev; device_t child; uint16_t *iost; } DEFAULT bhnd_bus_null_read_iost; /** * Return true if the given bhnd device's hardware is currently held * in a RESET state or otherwise not clocked (BHND_IOCTL_CLK_EN). * * @param dev The bhnd bus parent of @p child. * @param child The device to query. * * @retval true If @p child is held in RESET or not clocked (BHND_IOCTL_CLK_EN), * or an error occurred determining @p child's hardware state. * @retval false If @p child is clocked and is not held in RESET. */ METHOD bool is_hw_suspended { device_t dev; device_t child; } DEFAULT bhnd_bus_null_is_hw_suspended; /** * Place the bhnd(4) device's hardware into a low-power RESET state with * the @p reset_ioctl I/O control flags set, and then bring the hardware out of * RESET with the @p ioctl I/O control flags set. * * Any clock or resource PMU requests previously made by @p child will be * invalidated. * * @param dev The bhnd bus parent of @p child. * @param child The device to be reset. * @param ioctl Device-specific I/O control flags to be set when bringing * the core out of its RESET state (see BHND_IOCTL_*). * @param reset_ioctl Device-specific I/O control flags to be set when placing * the core into its RESET state. * * @retval 0 success * @retval non-zero error */ METHOD int reset_hw { device_t dev; device_t child; uint16_t ioctl; uint16_t reset_ioctl; } DEFAULT bhnd_bus_null_reset_hw; /** * Suspend @p child's hardware in a low-power RESET state. * * Any clock or resource PMU requests previously made by @p dev will be * invalidated. * * The hardware may be brought out of RESET via bhnd_reset_hw(). * * @param dev The bhnd bus parent of @p child. * @param dev The device to be suspended. * @param ioctl Device-specific I/O control flags to be set when placing * the core into its RESET state (see BHND_IOCTL_*). * * @retval 0 success * @retval non-zero error */ METHOD int suspend_hw { device_t dev; device_t child; uint16_t ioctl; } DEFAULT bhnd_bus_null_suspend_hw; /** * Allocate per-core PMU resources and enable PMU request handling for @p child. * * The region containing the core's PMU register block (if any) must be * allocated via bus_alloc_resource(9) (or bhnd_alloc_resource) before * calling BHND_BUS_ALLOC_PMU(), and must not be released until after * calling BHND_BUS_RELEASE_PMU(). * * @param dev The parent of @p child. * @param child The requesting bhnd device. * * @retval 0 success * @retval non-zero if enabling per-core PMU request handling fails, a * regular unix error code will be returned. */ METHOD int alloc_pmu { device_t dev; device_t child; } DEFAULT bhnd_bus_null_alloc_pmu; /** * Release per-core PMU resources allocated for @p child. Any * outstanding PMU requests are discarded. * * @param dev The parent of @p child. * @param child The requesting bhnd device. */ METHOD int release_pmu { device_t dev; device_t child; } DEFAULT bhnd_bus_null_release_pmu; /** * Return the transition latency required for @p clock in microseconds, if * known. * * The BHND_CLOCK_HT latency value is suitable for use as the D11 core's * 'fastpwrup_dly' value. * * @note A driver must ask the bhnd bus to allocate PMU request state * via BHND_BUS_ALLOC_PMU() before querying PMU clocks. * * @param dev The parent of @p child. * @param child The requesting bhnd device. * @param clock The clock to be queried for transition latency. * @param[out] latency On success, the transition latency of @p clock in * microseconds. * * @retval 0 success * @retval ENODEV If the transition latency for @p clock is not available. */ METHOD int get_clock_latency { device_t dev; device_t child; bhnd_clock clock; u_int *latency; } DEFAULT bhnd_bus_null_get_clock_latency; /** * Return the frequency for @p clock in Hz, if known. * * @param dev The parent of @p child. * @param child The requesting bhnd device. * @param clock The clock to be queried. * @param[out] freq On success, the frequency of @p clock in Hz. * * @note A driver must ask the bhnd bus to allocate PMU request state * via BHND_BUS_ALLOC_PMU() before querying PMU clocks. * * @retval 0 success * @retval ENODEV If the frequency for @p clock is not available. */ METHOD int get_clock_freq { device_t dev; device_t child; bhnd_clock clock; u_int *freq; } DEFAULT bhnd_bus_null_get_clock_freq; /** * Request that @p clock (or faster) be routed to @p child. * * @note A driver must ask the bhnd bus to allocate PMU request state * via BHND_BUS_ALLOC_PMU() before it can request clock resources. * * @note Any outstanding PMU clock requests will be discarded upon calling * BHND_BUS_RESET_HW() or BHND_BUS_SUSPEND_HW(). * * @param dev The parent of @p child. * @param child The bhnd device requesting @p clock. * @param clock The requested clock source. * * @retval 0 success * @retval ENODEV If an unsupported clock was requested. * @retval ETIMEDOUT If the clock request succeeds, but the clock is not * detected as ready within the PMU's maximum transition * delay. This should not occur in normal operation. */ METHOD int request_clock { device_t dev; device_t child; bhnd_clock clock; } DEFAULT bhnd_bus_null_request_clock; /** * Request that @p clocks be powered on behalf of @p child. * * This will power on clock sources (e.g. XTAL, PLL, etc) required for * @p clocks and wait until they are ready, discarding any previous * requests by @p child. * * @note A driver must ask the bhnd bus to allocate PMU request state * via BHND_BUS_ALLOC_PMU() before it can request clock resources. * * @note Any outstanding PMU clock requests will be discarded upon calling * BHND_BUS_RESET_HW() or BHND_BUS_SUSPEND_HW(). * * @param dev The parent of @p child. * @param child The bhnd device requesting @p clock. * @param clock The requested clock source. * * @retval 0 success * @retval ENODEV If an unsupported clock was requested. * @retval ETIMEDOUT If the clock request succeeds, but the clock is not * detected as ready within the PMU's maximum transition * delay. This should not occur in normal operation. */ METHOD int enable_clocks { device_t dev; device_t child; uint32_t clocks; } DEFAULT bhnd_bus_null_enable_clocks; /** * Power up an external PMU-managed resource assigned to @p child. * * @note A driver must ask the bhnd bus to allocate PMU request state * via BHND_BUS_ALLOC_PMU() before it can request PMU resources. * * @note Any outstanding PMU resource requests will be released upon calling * BHND_BUS_RESET_HW() or BHND_BUS_SUSPEND_HW(). * * @param dev The parent of @p child. * @param child The bhnd device requesting @p rsrc. * @param rsrc The core-specific external resource identifier. * * @retval 0 success * @retval ENODEV If the PMU does not support @p rsrc. * @retval ETIMEDOUT If the clock request succeeds, but the clock is not * detected as ready within the PMU's maximum transition * delay. This should not occur in normal operation. */ METHOD int request_ext_rsrc { device_t dev; device_t child; u_int rsrc; } DEFAULT bhnd_bus_null_request_ext_rsrc; /** * Power down an external PMU-managed resource assigned to @p child. * * @note A driver must ask the bhnd bus to allocate PMU request state * via BHND_BUS_ALLOC_PMU() before it can request PMU resources. * * @param dev The parent of @p child. * @param child The bhnd device requesting @p rsrc. * @param rsrc The core-specific external resource number. * * @retval 0 success * @retval ENODEV If the PMU does not support @p rsrc. * @retval ETIMEDOUT If the clock request succeeds, but the clock is not * detected as ready within the PMU's maximum transition * delay. This should not occur in normal operation. */ METHOD int release_ext_rsrc { device_t dev; device_t child; u_int rsrc; } DEFAULT bhnd_bus_null_release_ext_rsrc; /** * Read @p width bytes at @p offset from the bus-specific agent/config * space of @p child. * * @param dev The parent of @p child. * @param child The bhnd device for which @p offset should be read. * @param offset The offset to be read. * @param[out] value On success, the bytes read at @p offset. * @param width The size of the access. Must be 1, 2 or 4 bytes. * * The exact behavior of this method is bus-specific. On a bcma(4) bus, this * method provides access to the first agent port of @p child; on a siba(4) bus, * this method provides access to the core's CFG0 register block. * * @note Device drivers should only use this API for functionality * that is not available via another bhnd(4) function. * * @retval 0 success * @retval EINVAL If @p child is not a direct child of @p dev. * @retval EINVAL If @p width is not one of 1, 2, or 4 bytes. * @retval ENODEV If accessing agent/config space for @p child is unsupported. * @retval EFAULT If reading @p width at @p offset exceeds the bounds of * the mapped agent/config space for @p child. */ METHOD int read_config { device_t dev; device_t child; bus_size_t offset; void *value; u_int width; } DEFAULT bhnd_bus_null_read_config; /** * Read @p width bytes at @p offset from the bus-specific agent/config * space of @p child. * * @param dev The parent of @p child. * @param child The bhnd device for which @p offset should be read. * @param offset The offset to be written. * @param value A pointer to the value to be written. * @param width The size of @p value. Must be 1, 2 or 4 bytes. * * The exact behavior of this method is bus-specific. In the case of * bcma(4), this method provides access to the first agent port of @p child. * * @note Device drivers should only use this API for functionality * that is not available via another bhnd(4) function. * * @retval 0 success * @retval EINVAL If @p child is not a direct child of @p dev. * @retval EINVAL If @p width is not one of 1, 2, or 4 bytes. * @retval ENODEV If accessing agent/config space for @p child is unsupported. * @retval EFAULT If reading @p width at @p offset exceeds the bounds of * the mapped agent/config space for @p child. */ METHOD int write_config { device_t dev; device_t child; bus_size_t offset; const void *value; u_int width; } DEFAULT bhnd_bus_null_write_config; /** * Allocate a bhnd resource. * * This method's semantics are functionally identical to the bus API of the same * name; refer to BUS_ALLOC_RESOURCE for complete documentation. */ METHOD struct bhnd_resource * alloc_resource { device_t dev; device_t child; int type; int *rid; rman_res_t start; rman_res_t end; rman_res_t count; u_int flags; } DEFAULT bhnd_bus_generic_alloc_resource; /** * Release a bhnd resource. * * This method's semantics are functionally identical to the bus API of the same * name; refer to BUS_RELEASE_RESOURCE for complete documentation. */ METHOD int release_resource { device_t dev; device_t child; int type; int rid; struct bhnd_resource *res; } DEFAULT bhnd_bus_generic_release_resource; /** * Activate a bhnd resource. * * This method's semantics are functionally identical to the bus API of the same * name; refer to BUS_ACTIVATE_RESOURCE for complete documentation. */ METHOD int activate_resource { device_t dev; device_t child; int type; int rid; struct bhnd_resource *r; } DEFAULT bhnd_bus_generic_activate_resource; /** * Deactivate a bhnd resource. * * This method's semantics are functionally identical to the bus API of the same * name; refer to BUS_DEACTIVATE_RESOURCE for complete documentation. */ METHOD int deactivate_resource { device_t dev; device_t child; int type; int rid; struct bhnd_resource *r; } DEFAULT bhnd_bus_generic_deactivate_resource; /** * Return the interrupt domain. * * This globally unique value may be used as the interrupt controller 'xref' * on targets that support INTRNG. * * @param dev The device whose child is being examined. * @param child The child device. * @param self If true, return @p child's interrupt domain, rather than the * domain in which @p child resides. * * On Non-OFW targets, this should either return: * - The pointer address of a device that can uniquely identify @p child's * interrupt domain (e.g., the bhnd bus' device_t address), or * - 0 if unsupported by the bus. * * On OFW (including FDT) targets, this should return the @p child's iparent * property's xref if @p self is false, the child's own node xref value if * @p self is true, or 0 if no interrupt parent is found. */ METHOD uintptr_t get_intr_domain { device_t dev; device_t child; bool self; } DEFAULT bhnd_bus_null_get_intr_domain; /** * Return the number of interrupt lines assigned to @p child. * * @param dev The bhnd device whose child is being examined. * @param child The child device. */ METHOD u_int get_intr_count { device_t dev; device_t child; } DEFAULT bhnd_bus_null_get_intr_count; /** * Get the backplane interrupt vector of the @p intr line attached to @p child. * * @param dev The device whose child is being examined. * @param child The child device. * @param intr The index of the interrupt line being queried. * @param[out] ivec On success, the assigned hardware interrupt vector will be * written to this pointer. * * On bcma(4) devices, this returns the OOB bus line assigned to the * interrupt. * * On siba(4) devices, this returns the target OCP slave flag number assigned * to the interrupt. * * @retval 0 success * @retval ENXIO If @p intr exceeds the number of interrupt lines * assigned to @p child. */ METHOD int get_intr_ivec { device_t dev; device_t child; u_int intr; u_int *ivec; } DEFAULT bhnd_bus_null_get_intr_ivec; /** * Map the given @p intr to an IRQ number; until unmapped, this IRQ may be used * to allocate a resource of type SYS_RES_IRQ. * * On success, the caller assumes ownership of the interrupt mapping, and * is responsible for releasing the mapping via BHND_BUS_UNMAP_INTR(). * * @param dev The bhnd bus device. * @param child The requesting child device. * @param intr The interrupt being mapped. * @param[out] irq On success, the bus interrupt value mapped for @p intr. * * @retval 0 If an interrupt was assigned. * @retval non-zero If mapping an interrupt otherwise fails, a regular * unix error code will be returned. */ METHOD int map_intr { device_t dev; device_t child; u_int intr; rman_res_t *irq; } DEFAULT bhnd_bus_null_map_intr; /** * Unmap an bus interrupt previously mapped via BHND_BUS_MAP_INTR(). * * @param dev The bhnd bus device. * @param child The requesting child device. * @param intr The interrupt number being unmapped. This is equivalent to the * bus resource ID for the interrupt. */ METHOD void unmap_intr { device_t dev; device_t child; rman_res_t irq; } DEFAULT bhnd_bus_null_unmap_intr; /** * Return true if @p region_num is a valid region on @p port_num of * @p type attached to @p child. * * @param dev The device whose child is being examined. * @param child The child device. * @param type The port type being queried. * @param port_num The port number being queried. * @param region_num The region number being queried. */ METHOD bool is_region_valid { device_t dev; device_t child; bhnd_port_type type; u_int port_num; u_int region_num; }; /** * Return the number of ports of type @p type attached to @p child. * * @param dev The device whose child is being examined. * @param child The child device. * @param type The port type being queried. */ METHOD u_int get_port_count { device_t dev; device_t child; bhnd_port_type type; }; /** * Return the number of memory regions mapped to @p child @p port of * type @p type. * * @param dev The device whose child is being examined. * @param child The child device. * @param port The port number being queried. * @param type The port type being queried. */ METHOD u_int get_region_count { device_t dev; device_t child; bhnd_port_type type; u_int port; }; /** * Return the SYS_RES_MEMORY resource-ID for a port/region pair attached to * @p child. * * @param dev The bus device. * @param child The bhnd child. * @param port_type The port type. * @param port_num The index of the child interconnect port. * @param region_num The index of the port-mapped address region. * * @retval -1 No such port/region found. */ METHOD int get_port_rid { device_t dev; device_t child; bhnd_port_type port_type; u_int port_num; u_int region_num; } DEFAULT bhnd_bus_null_get_port_rid; /** * Decode a port / region pair on @p child defined by @p type and @p rid. * * @param dev The bus device. * @param child The bhnd child. * @param type The resource type. * @param rid The resource ID. * @param[out] port_type The port's type. * @param[out] port The port identifier. * @param[out] region The identifier of the memory region on @p port. * * @retval 0 success * @retval non-zero No matching type/rid found. */ METHOD int decode_port_rid { device_t dev; device_t child; int type; int rid; bhnd_port_type *port_type; u_int *port; u_int *region; } DEFAULT bhnd_bus_null_decode_port_rid; /** * Get the address and size of @p region on @p port. * * @param dev The bus device. * @param child The bhnd child. * @param port_type The port type. * @param port The port identifier. * @param region The identifier of the memory region on @p port. * @param[out] region_addr The region's base address. * @param[out] region_size The region's size. * * @retval 0 success * @retval non-zero No matching port/region found. */ METHOD int get_region_addr { device_t dev; device_t child; bhnd_port_type port_type; u_int port; u_int region; bhnd_addr_t *region_addr; bhnd_size_t *region_size; } DEFAULT bhnd_bus_null_get_region_addr; /** * Read an NVRAM variable. * * It is the responsibility of the bus to delegate this request to * the appropriate NVRAM child device, or to a parent bus implementation. * * @param dev The bus device. * @param child The requesting device. * @param name The NVRAM variable name. * @param[out] buf On success, the requested value will be written * to this buffer. This argment may be NULL if * the value is not desired. * @param[in,out] size The capacity of @p buf. On success, will be set * to the actual size of the requested value. * @param type The data type to be written to @p buf. * * @retval 0 success * @retval ENOENT The requested variable was not found. * @retval ENOMEM If @p buf is non-NULL and a buffer of @p size is too * small to hold the requested value. * @retval ENODEV No valid NVRAM source could be found. * @retval EFTYPE If the @p name's data type cannot be coerced to @p type. * @retval ERANGE If value coercion would overflow @p type. * @retval non-zero If reading @p name otherwise fails, a regular unix * error code will be returned. */ METHOD int get_nvram_var { device_t dev; device_t child; const char *name; void *buf; size_t *size; bhnd_nvram_type type; } DEFAULT bhnd_bus_null_get_nvram_var; /** An implementation of bus_read_1() compatible with bhnd_resource */ METHOD uint8_t read_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; } /** An implementation of bus_read_2() compatible with bhnd_resource */ METHOD uint16_t read_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; } /** An implementation of bus_read_4() compatible with bhnd_resource */ METHOD uint32_t read_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; } /** An implementation of bus_write_1() compatible with bhnd_resource */ METHOD void write_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t value; } /** An implementation of bus_write_2() compatible with bhnd_resource */ METHOD void write_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t value; } /** An implementation of bus_write_4() compatible with bhnd_resource */ METHOD void write_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t value; } /** An implementation of bus_read_stream_1() compatible with bhnd_resource */ METHOD uint8_t read_stream_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; } /** An implementation of bus_read_stream_2() compatible with bhnd_resource */ METHOD uint16_t read_stream_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; } /** An implementation of bus_read_stream_4() compatible with bhnd_resource */ METHOD uint32_t read_stream_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; } /** An implementation of bus_write_stream_1() compatible with bhnd_resource */ METHOD void write_stream_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t value; } /** An implementation of bus_write_stream_2() compatible with bhnd_resource */ METHOD void write_stream_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t value; } /** An implementation of bus_write_stream_4() compatible with bhnd_resource */ METHOD void write_stream_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t value; } /** An implementation of bus_read_multi_1() compatible with bhnd_resource */ METHOD void read_multi_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t *datap; bus_size_t count; } /** An implementation of bus_read_multi_2() compatible with bhnd_resource */ METHOD void read_multi_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t *datap; bus_size_t count; } /** An implementation of bus_read_multi_4() compatible with bhnd_resource */ METHOD void read_multi_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t *datap; bus_size_t count; } /** An implementation of bus_write_multi_1() compatible with bhnd_resource */ METHOD void write_multi_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t *datap; bus_size_t count; } /** An implementation of bus_write_multi_2() compatible with bhnd_resource */ METHOD void write_multi_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t *datap; bus_size_t count; } /** An implementation of bus_write_multi_4() compatible with bhnd_resource */ METHOD void write_multi_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t *datap; bus_size_t count; } /** An implementation of bus_read_multi_stream_1() compatible * bhnd_resource */ METHOD void read_multi_stream_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t *datap; bus_size_t count; } /** An implementation of bus_read_multi_stream_2() compatible * bhnd_resource */ METHOD void read_multi_stream_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t *datap; bus_size_t count; } /** An implementation of bus_read_multi_stream_4() compatible * bhnd_resource */ METHOD void read_multi_stream_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t *datap; bus_size_t count; } /** An implementation of bus_write_multi_stream_1() compatible * bhnd_resource */ METHOD void write_multi_stream_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t *datap; bus_size_t count; } /** An implementation of bus_write_multi_stream_2() compatible with * bhnd_resource */ METHOD void write_multi_stream_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t *datap; bus_size_t count; } /** An implementation of bus_write_multi_stream_4() compatible with * bhnd_resource */ METHOD void write_multi_stream_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t *datap; bus_size_t count; } /** An implementation of bus_set_multi_1() compatible with bhnd_resource */ METHOD void set_multi_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t value; bus_size_t count; } /** An implementation of bus_set_multi_2() compatible with bhnd_resource */ METHOD void set_multi_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t value; bus_size_t count; } /** An implementation of bus_set_multi_4() compatible with bhnd_resource */ METHOD void set_multi_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t value; bus_size_t count; } /** An implementation of bus_set_region_1() compatible with bhnd_resource */ METHOD void set_region_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t value; bus_size_t count; } /** An implementation of bus_set_region_2() compatible with bhnd_resource */ METHOD void set_region_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t value; bus_size_t count; } /** An implementation of bus_set_region_4() compatible with bhnd_resource */ METHOD void set_region_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t value; bus_size_t count; } /** An implementation of bus_read_region_1() compatible with bhnd_resource */ METHOD void read_region_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t *datap; bus_size_t count; } /** An implementation of bus_read_region_2() compatible with bhnd_resource */ METHOD void read_region_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t *datap; bus_size_t count; } /** An implementation of bus_read_region_4() compatible with bhnd_resource */ METHOD void read_region_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t *datap; bus_size_t count; } /** An implementation of bus_read_region_stream_1() compatible with * bhnd_resource */ METHOD void read_region_stream_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t *datap; bus_size_t count; } /** An implementation of bus_read_region_stream_2() compatible with * bhnd_resource */ METHOD void read_region_stream_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t *datap; bus_size_t count; } /** An implementation of bus_read_region_stream_4() compatible with * bhnd_resource */ METHOD void read_region_stream_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t *datap; bus_size_t count; } /** An implementation of bus_write_region_1() compatible with bhnd_resource */ METHOD void write_region_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t *datap; bus_size_t count; } /** An implementation of bus_write_region_2() compatible with bhnd_resource */ METHOD void write_region_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t *datap; bus_size_t count; } /** An implementation of bus_write_region_4() compatible with bhnd_resource */ METHOD void write_region_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t *datap; bus_size_t count; } /** An implementation of bus_write_region_stream_1() compatible with * bhnd_resource */ METHOD void write_region_stream_1 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint8_t *datap; bus_size_t count; } /** An implementation of bus_write_region_stream_2() compatible with * bhnd_resource */ METHOD void write_region_stream_2 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint16_t *datap; bus_size_t count; } /** An implementation of bus_write_region_stream_4() compatible with * bhnd_resource */ METHOD void write_region_stream_4 { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; uint32_t *datap; bus_size_t count; } /** An implementation of bus_barrier() compatible with bhnd_resource */ METHOD void barrier { device_t dev; device_t child; struct bhnd_resource *r; bus_size_t offset; bus_size_t length; int flags; } diff --git a/sys/dev/bhnd/bhnd_erom_if.m b/sys/dev/bhnd/bhnd_erom_if.m index a00699770c27..89fd44a58e82 100644 --- a/sys/dev/bhnd/bhnd_erom_if.m +++ b/sys/dev/bhnd/bhnd_erom_if.m @@ -1,208 +1,207 @@ #- # Copyright (c) 2016-2017 Landon Fuller # Copyright (c) 2017 The FreeBSD Foundation # All rights reserved. # # Portions of this software were developed by Landon Fuller # under sponsorship from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include #include #include #include #include INTERFACE bhnd_erom; # # bhnd(4) device enumeration. # # Provides a common parser interface to the incompatible device enumeration # tables used by bhnd(4) buses. # HEADER { /* forward declarations */ struct bhnd_erom_io; }; /** * Probe to see if this device enumeration class supports the bhnd bus at * @p addr, returning a standard newbus device probe result (see BUS_PROBE_*) * and the probed chip identification. * * @param cls The erom class to probe. * @param eio A bus I/O instance, configured with a mapping of * the first bus core. * @param base_addr Address of the first bus core. * @param hint Hint used to identify the device. If chipset * supports standard chip identification registers * within the first core, this parameter should be * NULL. * @param[out] cid On success, the probed chip identifier. * * @retval 0 if this is the only possible device enumeration * parser for the probed bus. * @retval negative if the probe succeeds, a negative value should be * returned; the parser returning the highest negative * value will be selected to handle device enumeration. * @retval ENXIO If the bhnd bus type is not handled by this parser. * @retval positive if an error occurs during probing, a regular unix error * code should be returned. */ STATICMETHOD int probe { bhnd_erom_class_t *cls; struct bhnd_erom_io *eio; const struct bhnd_chipid *hint; struct bhnd_chipid *cid; }; /** * Initialize a device enumeration table parser. * * @param erom The erom parser to initialize. * @param cid The device's chip identifier. * @param eio The bus I/O instance to use when reading the device * enumeration table. On success, the erom parser assumes * ownership of this instance. * @retval 0 success * @retval non-zero if an error occurs initializing the EROM parser, * a regular unix error code will be returned. */ METHOD int init { bhnd_erom_t *erom; const struct bhnd_chipid *cid; struct bhnd_erom_io *eio; }; /** * Release all resources held by @p erom. * * @param erom An erom parser instance previously initialized via * BHND_EROM_INIT() or BHND_EROM_INIT_STATIC(). */ METHOD void fini { bhnd_erom_t *erom; }; /** * Parse all cores descriptors, returning the array in @p cores and the count * in @p num_cores. * * The memory allocated for the table must be freed via * BHND_EROM_FREE_CORE_TABLE(). * * @param erom The erom parser to be queried. * @param[out] cores The table of parsed core descriptors. * @param[out] num_cores The number of core records in @p cores. * * @retval 0 success * @retval non-zero if an error occurs, a regular unix error code will * be returned. */ METHOD int get_core_table { bhnd_erom_t *erom; struct bhnd_core_info **cores; u_int *num_cores; }; /** * Free any memory allocated in a previous call to BHND_EROM_GET_CORE_TABLE(). * * @param erom The erom parser instance. * @param cores A core table allocated by @p erom. */ METHOD void free_core_table { bhnd_erom_t *erom; struct bhnd_core_info *cores; }; /** * Locate the first core table entry in @p erom that matches @p desc. * * @param erom The erom parser to be queried. * @param desc A core match descriptor. * @param[out] core On success, the matching core info record. * * @retval 0 success * @retval ENOENT No core matching @p desc was found. * @retval non-zero Reading or parsing failed. */ METHOD int lookup_core { bhnd_erom_t *erom; const struct bhnd_core_match *desc; struct bhnd_core_info *core; }; /** * Locate the first core table entry in @p erom that matches @p desc, * and return the specified port region's base address and size. * * If a core matching @p desc is not found, or the requested port region * is not mapped to the matching core, ENOENT is returned. * * @param erom The erom parser to be queried. * @param desc A core match descriptor. * @param type The port type to search for. * @param port The port to search for. * @param region The port region to search for. * @param[out] core If not NULL, will be populated with the matched core * info record on success. * @param[out] addr On success, the base address of the port region. * @param[out] size On success, the total size of the port region. * * @retval 0 success * @retval ENOENT No core matching @p desc was found. * @retval ENOENT No port region matching @p type, @p port, and @p region * was found. * @retval non-zero Reading or parsing failed. */ METHOD int lookup_core_addr { bhnd_erom_t *erom; const struct bhnd_core_match *desc; bhnd_port_type type; u_int port; u_int region; struct bhnd_core_info *core; bhnd_addr_t *addr; bhnd_size_t *size; }; /** * Enumerate and print all EROM table entries. * * @param erom The erom parser to be enumerated. * * @retval 0 success * @retval non-zero If an error occurs reading the EROM table, a regular * unix error code will be returned. */ METHOD int dump { bhnd_erom_t *erom; }; diff --git a/sys/dev/bhnd/bhndb/bhndb_bus_if.m b/sys/dev/bhnd/bhndb/bhndb_bus_if.m index 1982407f53ba..2a702376aa79 100644 --- a/sys/dev/bhnd/bhndb/bhndb_bus_if.m +++ b/sys/dev/bhnd/bhndb/bhndb_bus_if.m @@ -1,145 +1,144 @@ #- # Copyright (c) 2015-2016 Landon Fuller # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include # # Parent bus interface required by attached bhndb bridge devices. # INTERFACE bhndb_bus; HEADER { struct bhnd_core_info; struct bhndb_hwcfg; struct bhndb_hw; }; CODE { #include static const struct bhnd_chipid * bhndb_null_get_chipid(device_t dev, device_t child) { return (NULL); } static const struct bhndb_hwcfg * bhndb_null_get_generic_hwcfg(device_t dev, device_t child) { panic("bhndb_get_generic_hwcfg unimplemented"); } static const struct bhndb_hw * bhndb_null_get_hardware_table(device_t dev, device_t child) { panic("bhndb_get_hardware_table unimplemented"); } static const struct bhndb_hw_priority * bhndb_null_get_hardware_prio(device_t dev, device_t child) { panic("bhndb_get_hardware_prio unimplemented"); } static bool bhndb_null_is_core_disabled(device_t dev, device_t child, struct bhnd_core_info *core) { return (true); } } /** * Return a generic hardware configuration to be used by * the bhndb bridge device to enumerate attached devices. * * @param dev The parent device. * @param child The attached bhndb device. * * @retval bhndb_hwcfg The configuration to use for bus enumeration. */ METHOD const struct bhndb_hwcfg * get_generic_hwcfg { device_t dev; device_t child; } DEFAULT bhndb_null_get_generic_hwcfg; /** * Provide chip identification information to be used by a @p child during * device enumeration. * * May return NULL if the device includes a ChipCommon core. * * @param dev The parent device. * @param child The attached bhndb device. */ METHOD const struct bhnd_chipid * get_chipid { device_t dev; device_t child; } DEFAULT bhndb_null_get_chipid; /** * Return the hardware specification table to be used when identifying the * bridge's full hardware configuration. * * @param dev The parent device. * @param child The attached bhndb device. */ METHOD const struct bhndb_hw * get_hardware_table { device_t dev; device_t child; } DEFAULT bhndb_null_get_hardware_table; /** * Return the hardware priority table to be used when allocating bridge * resources. * * @param dev The parent device. * @param child The attached bhndb device. */ METHOD const struct bhndb_hw_priority * get_hardware_prio { device_t dev; device_t child; } DEFAULT bhndb_null_get_hardware_prio; /** * Return true if the hardware required by @p core is unpopulated or * otherwise unusable. * * In some cases, the core's pins may be left floating, or the hardware * may otherwise be non-functional; this method allows the parent device * to explicitly specify whether @p core should be disabled. * * @param dev The parent device. * @param child The attached bhndb device. * @param core A core discovered on @p child. */ METHOD bool is_core_disabled { device_t dev; device_t child; struct bhnd_core_info *core; } DEFAULT bhndb_null_is_core_disabled; diff --git a/sys/dev/bhnd/bhndb/bhndb_if.m b/sys/dev/bhnd/bhndb/bhndb_if.m index e16f560eafd3..42be2a4c4b87 100644 --- a/sys/dev/bhnd/bhndb/bhndb_if.m +++ b/sys/dev/bhnd/bhndb/bhndb_if.m @@ -1,274 +1,273 @@ #- # Copyright (c) 2015-2016 Landon Fuller # Copyright (c) 2017 The FreeBSD Foundation # All rights reserved. # # Portions of this software were developed by Landon Fuller # under sponsorship from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include #include #include #include # # bhndb bridge device interface. # INTERFACE bhndb; HEADER { struct bhndb_intr_isrc; struct bhndb_regwin; struct bhndb_hw; struct bhndb_hw_priority; } CODE { #include #include static const struct bhnd_chipid * bhndb_null_get_chipid(device_t dev, device_t child) { panic("bhndb_get_chipid unimplemented"); } static int bhndb_null_populate_board_info(device_t dev, device_t child, struct bhnd_board_info *info) { panic("bhndb_populate_board_info unimplemented"); } static int bhndb_null_is_core_disabled(device_t dev, device_t child, struct bhnd_core_info *core) { panic("bhndb_is_core_disabled unimplemented"); } static int bhndb_null_get_hostb_core(device_t dev, device_t child, struct bhnd_core_info *core) { panic("bhndb_get_hostb_core unimplemented"); } static void bhndb_null_suspend_resource(device_t dev, device_t child, int type, struct resource *r) { panic("bhndb_suspend_resource unimplemented"); } static int bhndb_null_resume_resource(device_t dev, device_t child, int type, struct resource *r) { panic("bhndb_resume_resource unimplemented"); } static int bhndb_null_route_interrupts(device_t dev, device_t child) { panic("bhndb_route_interrupts unimplemented"); } static int bhndb_null_set_window_addr(device_t dev, const struct bhndb_regwin *rw, bhnd_addr_t addr) { panic("bhndb_set_window_addr unimplemented"); } static int bhndb_null_map_intr_isrc(device_t dev, struct resource *irq, struct bhndb_intr_isrc **isrc) { panic("bhndb_map_intr_isrc unimplemented"); } } /** * Return the chip identification information for @p child. * * @param dev The parent device of @p child. * @param child The bhndb-attached device. */ METHOD const struct bhnd_chipid * get_chipid { device_t dev; device_t child; } DEFAULT bhndb_null_get_chipid; /** * Populate @p info with board info known only to the bridge, * deferring to any existing initialized fields in @p info. * * @param dev The parent device of @p child. * @param child The bhndb-attached device. * @param[in,out] info A board info structure previously initialized with any * information available from NVRAM. */ METHOD int populate_board_info { device_t dev; device_t child; struct bhnd_board_info *info; } DEFAULT bhndb_null_populate_board_info; /** * Return true if the hardware required by @p core is unpopulated or * otherwise unusable. * * In some cases, the core's pins may be left floating, or the hardware * may otherwise be non-functional; this method allows the parent device * to explicitly specify whether @p core should be disabled. * * @param dev The parent device of @p child. * @param child The attached bhnd device. * @param core A core discovered on @p child. */ METHOD bool is_core_disabled { device_t dev; device_t child; struct bhnd_core_info *core; } DEFAULT bhndb_null_is_core_disabled; /** * Get the host bridge core info for the attached bhnd bus. * * @param dev The bridge device. * @param child The bhnd bus device attached to @p dev. * @param[out] core Will be populated with the host bridge core info, if * found. * * @retval 0 success * @retval ENOENT No host bridge core found. * @retval non-zero If locating the host bridge core otherwise fails, a * regular UNIX error code should be returned. */ METHOD int get_hostb_core { device_t dev; device_t child; struct bhnd_core_info *core; } DEFAULT bhndb_null_get_hostb_core; /** * Mark a resource as 'suspended', gauranteeing to the bridge that no * further use of the resource will be made until BHNDB_RESUME_RESOURCE() * is called. * * Bridge resources consumed by the reference may be released; these will * be reacquired if BHNDB_RESUME_RESOURCE() completes successfully. * * Requests to suspend a suspended resource will be ignored. * * @param dev The bridge device. * @param child The child device requesting resource suspension. This does * not need to be the owner of @p r. * @param type The resource type. * @param r The resource to be suspended. */ METHOD void suspend_resource { device_t dev; device_t child; int type; struct resource *r; } DEFAULT bhndb_null_suspend_resource; /** * Attempt to re-enable a resource previously suspended by * BHNDB_SUSPEND_RESOURCE(). * * Bridge resources required by the reference may not be available, in which * case an error will be returned and the resource mapped by @p r must not be * used in any capacity. * * Requests to resume a non-suspended resource will be ignored. * * @param dev The bridge device. * @param child The child device requesting resource suspension. This does * not need to be the owner of @p r. * @param type The resource type. * @param r The resource to be suspended. */ METHOD int resume_resource { device_t dev; device_t child; int type; struct resource *r; } DEFAULT bhndb_null_resume_resource; /** * Enable bridge-level interrupt routing for @p child. * * @param dev The bridge device. * @param child The bhnd child device for which interrupts should be routed. */ METHOD int route_interrupts { device_t dev; device_t child; } DEFAULT bhndb_null_route_interrupts; /** * Set a given register window's base address. * * @param dev The bridge device. * @param win The register window. * @param addr The address to be configured for @p win. * * @retval 0 success * @retval ENODEV The provided @p win is not memory-mapped on the bus or does * not support setting a base address. * @retval non-zero failure */ METHOD int set_window_addr { device_t dev; const struct bhndb_regwin *win; bhnd_addr_t addr; } DEFAULT bhndb_null_set_window_addr; /** * Map a bridged interrupt resource to its corresponding host interrupt source, * if any. * * @param dev The bridge device. * @param irq The bridged interrupt resource. * @param[out] isrc The host interrupt source to which the bridged interrupt * is routed. * * @retval 0 success * @retval non-zero if mapping @p irq otherwise fails, a regular unix error code * will be returned. */ METHOD int map_intr_isrc { device_t dev; struct resource *irq; struct bhndb_intr_isrc **isrc; } DEFAULT bhndb_null_map_intr_isrc; diff --git a/sys/dev/bhnd/cores/chipc/bhnd_chipc_if.m b/sys/dev/bhnd/cores/chipc/bhnd_chipc_if.m index 0cfcc3975973..39f2d62bbc81 100644 --- a/sys/dev/bhnd/cores/chipc/bhnd_chipc_if.m +++ b/sys/dev/bhnd/cores/chipc/bhnd_chipc_if.m @@ -1,116 +1,115 @@ #- # Copyright (c) 2016 Landon Fuller # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include INTERFACE bhnd_chipc; # # bhnd(4) ChipCommon interface. # HEADER { /* forward declarations */ struct chipc_caps; } CODE { static struct chipc_caps * bhnd_chipc_null_get_caps(device_t dev) { panic("bhnd_chipc_generic_get_caps unimplemented"); } } /** * Return the current value of the chipstatus register. * * @param dev A bhnd(4) ChipCommon device. * * Drivers should only use function for functionality that is not * available via another bhnd_chipc() function. * * @returns The chipstatus register value, or 0 if undefined by this * hardware (e.g. if @p dev is an EXTIF core). */ METHOD uint32_t read_chipst { device_t dev; } /** * Write @p value with @p mask directly to the chipctrl register. * * @param dev A bhnd(4) ChipCommon device. * @param value The value to write. * @param mask The mask of bits to be written from @p value. * * Drivers should only use function for functionality that is not * available via another bhnd_chipc() function. * * Currently, the only known valid use-case is in implementing a hardware * work-around for the BCM4321 PCIe rev7 core revision. */ METHOD void write_chipctrl { device_t dev; uint32_t value; uint32_t mask; } /** * Return a borrowed reference to ChipCommon's capability * table. * * @param dev A bhnd(4) ChipCommon device */ METHOD struct chipc_caps * get_caps { device_t dev; } DEFAULT bhnd_chipc_null_get_caps; /** * Enable hardware access to the SPROM/OTP source. * * @param sc chipc driver state. * * @retval 0 success * @retval EBUSY If enabling the hardware may conflict with * other active devices. */ METHOD int enable_sprom { device_t dev; } /** * Release hardware access to the SPROM/OTP source. * * @param sc chipc driver state. */ METHOD void disable_sprom { device_t dev; } diff --git a/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_hostb_if.m b/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_hostb_if.m index 117cb6c4f93c..4c6bc8f9c32c 100644 --- a/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_hostb_if.m +++ b/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_hostb_if.m @@ -1,129 +1,128 @@ #- # Copyright (c) 2016 Landon Fuller # Copyright (c) 2017 The FreeBSD Foundation # All rights reserved. # # Portions of this software were developed by Landon Fuller # under sponsorship from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include INTERFACE bhnd_pwrctl_hostb; # # bhnd(4) PWRCTL host bridge interface. # # Provides a common interface to the clock hardware managed by a parent host # bridge (e.g. bhndb_pci(4)). # # Early PWRCTL chipsets[1] expose clock management via their host bridge # interface, requiring that a host bridge driver (e.g. bhndb(4)) work in # tandem with the ChipCommon-attached PWRCTL driver. # # [1] Currently, this is known to include PCI (not PCIe) devices, with # ChipCommon core revisions 0-9. # HEADER { #include }; CODE { static bhnd_clksrc bhnd_pwrctl_hostb_get_clksrc(device_t dev, device_t child, bhnd_clock clock) { return (BHND_CLKSRC_UNKNOWN); } static int bhnd_pwrctl_hostb_gate_clock(device_t dev, device_t child, bhnd_clock clock) { return (ENODEV); } static int bhnd_pwrctl_hostb_ungate_clock(device_t dev, device_t child, bhnd_clock clock) { return (ENODEV); } }; /** * If supported by the chipset, return the clock source for the given clock. * * @param dev The parent of @p child. * @param child The bhnd device requesting a clock source. * @param clock The clock for which a clock source will be returned. * * @retval bhnd_clksrc The clock source for @p clock. * @retval BHND_CLKSRC_UNKNOWN If @p clock is unsupported, or its * clock source is not known to the bus. */ METHOD bhnd_clksrc get_clksrc { device_t dev; device_t child; bhnd_clock clock; } DEFAULT bhnd_pwrctl_hostb_get_clksrc; /** * If supported by the chipset, gate the clock source for @p clock. * * @param dev The parent of @p child. * @param child The bhnd device requesting clock gating. * @param clock The clock to be disabled. * * @retval 0 success * @retval ENODEV If bus-level clock source management is not supported. * @retval ENXIO If bus-level management of @p clock is not supported. */ METHOD int gate_clock { device_t dev; device_t child; bhnd_clock clock; } DEFAULT bhnd_pwrctl_hostb_gate_clock; /** * If supported by the chipset, ungate the clock source for @p clock. * * @param dev The parent of @p child. * @param child The bhnd device requesting clock gating. * @param clock The clock to be enabled. * * @retval 0 success * @retval ENODEV If bus-level clock source management is not supported. * @retval ENXIO If bus-level management of @p clock is not supported. */ METHOD int ungate_clock { device_t dev; device_t child; bhnd_clock clock; } DEFAULT bhnd_pwrctl_hostb_ungate_clock; \ No newline at end of file diff --git a/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_if.m b/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_if.m index 3305269632ec..ae0af54217be 100644 --- a/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_if.m +++ b/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_if.m @@ -1,98 +1,97 @@ #- # Copyright (c) 2016 Landon Fuller # Copyright (c) 2017 The FreeBSD Foundation # All rights reserved. # # Portions of this software were developed by Landon Fuller # under sponsorship from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include INTERFACE bhnd_pwrctl; # # bhnd(4) PWRCTL interface. # HEADER { #include }; /** * Request that @p clock (or a faster clock) be enabled on behalf of * @p child. * * @param dev PWRCTL device. * @param child The requesting bhnd(4) device. * @param clock Clock requested. * * @retval 0 success * @retval ENODEV If an unsupported clock was requested. */ METHOD int request_clock { device_t dev; device_t child; bhnd_clock clock; }; /** * Return the transition latency required for @p clock in microseconds, if * known. * * The BHND_CLOCK_HT latency value is suitable for use as the D11 core's * 'fastpwrup_dly' value. * * @param dev PWRCTL device. * @param clock The clock to be queried for transition latency. * @param[out] latency On success, the transition latency of @p clock in * microseconds. * * @retval 0 success * @retval ENODEV If the transition latency for @p clock is not available. */ METHOD int get_clock_latency { device_t dev; bhnd_clock clock; u_int *latency; }; /** * Return the frequency for @p clock in Hz, if known. * * @param dev PWRCTL device. * @param clock The clock to be queried. * @param[out] freq On success, the frequency of @p clock in Hz. * * @retval 0 success * @retval ENODEV If the frequency for @p clock is not available. */ METHOD int get_clock_freq { device_t dev; bhnd_clock clock; u_int *freq; }; diff --git a/sys/dev/bhnd/cores/pmu/bhnd_pmu_if.m b/sys/dev/bhnd/cores/pmu/bhnd_pmu_if.m index bbc9191719c0..bbf0bf2f1299 100644 --- a/sys/dev/bhnd/cores/pmu/bhnd_pmu_if.m +++ b/sys/dev/bhnd/cores/pmu/bhnd_pmu_if.m @@ -1,344 +1,343 @@ #- # Copyright (c) 2016 Landon Fuller # Copyright (c) 2017 The FreeBSD Foundation # All rights reserved. # # Portions of this software were developed by Landon Fuller # under sponsorship from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include INTERFACE bhnd_pmu; # # bhnd(4) PMU interface. # # Provides an interface to the PMU hardware found on modern bhnd(4) chipsets. # HEADER { #include struct bhnd_core_pmu_info; } CODE { static uint32_t bhnd_pmu_null_read_chipctrl(device_t dev, uint32_t reg) { panic("bhnd_pmu_read_chipctrl unimplemented"); } static void bhnd_pmu_null_write_chipctrl(device_t dev, uint32_t reg, uint32_t value, uint32_t mask) { panic("bhnd_pmu_write_chipctrl unimplemented"); } static uint32_t bhnd_pmu_null_read_regctrl(device_t dev, uint32_t reg) { panic("bhnd_pmu_read_regctrl unimplemented"); } static void bhnd_pmu_null_write_regctrl(device_t dev, uint32_t reg, uint32_t value, uint32_t mask) { panic("bhnd_pmu_write_regctrl unimplemented"); } static uint32_t bhnd_pmu_null_read_pllctrl(device_t dev, uint32_t reg) { panic("bhnd_pmu_read_pllctrl unimplemented"); } static void bhnd_pmu_null_write_pllctrl(device_t dev, uint32_t reg, uint32_t value, uint32_t mask) { panic("bhnd_pmu_write_pllctrl unimplemented"); } static int bhnd_pmu_null_request_spuravoid(device_t dev, bhnd_pmu_spuravoid spuravoid) { panic("bhnd_pmu_request_spuravoid unimplemented"); } static int bhnd_pmu_null_set_voltage_raw(device_t dev, bhnd_pmu_regulator regulator, uint32_t value) { panic("bhnd_pmu_set_voltage_raw unimplemented"); } static int bhnd_pmu_null_enable_regulator(device_t dev, bhnd_pmu_regulator regulator) { panic("bhnd_pmu_enable_regulator unimplemented"); } static int bhnd_pmu_null_disable_regulator(device_t dev, bhnd_pmu_regulator regulator) { panic("bhnd_pmu_disable_regulator unimplemented"); } static int bhnd_pmu_null_get_clock_latency(device_t dev, bhnd_clock clock, u_int *latency) { panic("bhnd_pmu_get_clock_latency unimplemented"); } static int bhnd_pmu_null_get_clock_freq(device_t dev, bhnd_clock clock, u_int *freq) { panic("bhnd_pmu_get_clock_freq unimplemented"); } } /** * Return the current value of a PMU chipctrl register. * * @param dev A bhnd(4) PMU device. * @param reg The PMU chipctrl register to be read. * * Drivers should only use function for functionality that is not * available via another bhnd_chipc() function. * * @returns The chipctrl register value, or 0 if undefined by this hardware. */ METHOD uint32_t read_chipctrl { device_t dev; uint32_t reg; } DEFAULT bhnd_pmu_null_read_chipctrl; /** * Write @p value with @p mask to a PMU chipctrl register. * * @param dev A bhnd(4) PMU device. * @param reg The PMU chipctrl register to be written. * @param value The value to write. * @param mask The mask of bits to be written from @p value. * * Drivers should only use function for functionality that is not * available via another bhnd_pmu() function. */ METHOD void write_chipctrl { device_t dev; uint32_t reg; uint32_t value; uint32_t mask; } DEFAULT bhnd_pmu_null_write_chipctrl; /** * Return the current value of a PMU regulator control register. * * @param dev A bhnd(4) PMU device. * @param reg The PMU regctrl register to be read. * * Drivers should only use function for functionality that is not * available via another bhnd_chipc() function. * * @returns The regctrl register value, or 0 if undefined by this hardware. */ METHOD uint32_t read_regctrl { device_t dev; uint32_t reg; } DEFAULT bhnd_pmu_null_read_regctrl; /** * Write @p value with @p mask to a PMU regulator control register. * * @param dev A bhnd(4) PMU device. * @param reg The PMU regctrl register to be written. * @param value The value to write. * @param mask The mask of bits to be written from @p value. * * Drivers should only use function for functionality that is not * available via another bhnd_pmu() function. */ METHOD void write_regctrl { device_t dev; uint32_t reg; uint32_t value; uint32_t mask; } DEFAULT bhnd_pmu_null_write_regctrl; /** * Return the current value of a PMU PLL control register. * * @param dev A bhnd(4) PMU device. * @param reg The PMU pllctrl register to be read. * * Drivers should only use function for functionality that is not * available via another bhnd_chipc() function. * * @returns The pllctrl register value, or 0 if undefined by this hardware. */ METHOD uint32_t read_pllctrl { device_t dev; uint32_t reg; } DEFAULT bhnd_pmu_null_read_pllctrl; /** * Write @p value with @p mask to a PMU PLL control register. * * @param dev A bhnd(4) PMU device. * @param reg The PMU pllctrl register to be written. * @param value The value to write. * @param mask The mask of bits to be written from @p value. * * Drivers should only use function for functionality that is not * available via another bhnd_pmu() function. */ METHOD void write_pllctrl { device_t dev; uint32_t reg; uint32_t value; uint32_t mask; } DEFAULT bhnd_pmu_null_write_pllctrl; /** * Set a hardware-specific output voltage register value for @p regulator. * * @param dev PMU device. * @param regulator Regulator to be configured. * @param value The raw voltage register value. * * @retval 0 success * @retval ENODEV If @p regulator is not supported by this driver. */ METHOD int set_voltage_raw { device_t dev; bhnd_pmu_regulator regulator; uint32_t value; } DEFAULT bhnd_pmu_null_set_voltage_raw; /** * Enable the given @p regulator. * * @param dev PMU device. * @param regulator Regulator to be enabled. * * @retval 0 success * @retval ENODEV If @p regulator is not supported by this driver. */ METHOD int enable_regulator { device_t dev; bhnd_pmu_regulator regulator; } DEFAULT bhnd_pmu_null_enable_regulator; /** * Disable the given @p regulator. * * @param dev PMU device. * @param regulator Regulator to be disabled. * * @retval 0 success * @retval ENODEV If @p regulator is not supported by this driver. */ METHOD int disable_regulator { device_t dev; bhnd_pmu_regulator regulator; } DEFAULT bhnd_pmu_null_disable_regulator; /** * Return the transition latency required for @p clock in microseconds, if * known. * * The BHND_CLOCK_HT latency value is suitable for use as the D11 core's * 'fastpwrup_dly' value. * * @param dev PMU device. * @param clock The clock to be queried for transition latency. * @param[out] latency On success, the transition latency of @p clock in * microseconds. * * @retval 0 success * @retval ENODEV If the transition latency for @p clock is not available. */ METHOD int get_clock_latency { device_t dev; bhnd_clock clock; u_int *latency; } DEFAULT bhnd_pmu_null_get_clock_latency; /** * Return the frequency for @p clock in Hz, if known. * * @param dev PMU device. * @param clock The clock to be queried. * @param[out] freq On success, the frequency of @p clock in Hz. * * @retval 0 success * @retval ENODEV If the frequency for @p clock is not available. */ METHOD int get_clock_freq { device_t dev; bhnd_clock clock; u_int *freq; } DEFAULT bhnd_pmu_null_get_clock_freq; /** * Request that the PMU configure itself for a given hardware-specific * spuravoid mode. * * @param dev PMU device. * @param spuravoid The requested mode. * * @retval 0 success * @retval ENODEV If @p regulator is not supported by this driver. */ METHOD int request_spuravoid { device_t dev; bhnd_pmu_spuravoid spuravoid; } DEFAULT bhnd_pmu_null_request_spuravoid; /** * Return the PMU's maximum state transition latency in microseconds. * * This upper bound may be used to busy-wait on PMU clock and resource state * transitions. * * @param dev PMU device. * * @returns maximum PMU transition latency, in microseconds. */ METHOD u_int get_max_transition_latency { device_t dev; }; diff --git a/sys/dev/bhnd/nvram/bhnd_nvram_if.m b/sys/dev/bhnd/nvram/bhnd_nvram_if.m index 0efe491fd850..188dadd5af80 100644 --- a/sys/dev/bhnd/nvram/bhnd_nvram_if.m +++ b/sys/dev/bhnd/nvram/bhnd_nvram_if.m @@ -1,102 +1,101 @@ #- # Copyright (c) 2016 Landon Fuller # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include INTERFACE bhnd_nvram; # # bhnd(4) NVRAM device interface. # # Provides a shared interface to HND NVRAM, OTP, and SPROM devices that provide # access to a common set of hardware/device configuration variables. # /** * Read an NVRAM variable. * * @param dev The NVRAM device. * @param name The NVRAM variable name. * @param[out] buf On success, the requested value will be written * to this buffer. This argment may be NULL if * the value is not desired. * @param[in,out] len The maximum capacity of @p buf. On success, * will be set to the actual size of the requested * value. * @param type The data type to be written to @p buf. * * @retval 0 success * @retval ENOENT The requested variable was not found. * @retval ENOMEM If @p buf is non-NULL and a buffer of @p len is too * small to hold the requested value. * @retval ENODEV If no supported NVRAM hardware is accessible via this * device. * @retval EOPNOTSUPP If any coercion to @p type is unsupported. * @retval EFTYPE If the @p name's data type cannot be coerced to @p type. * @retval ERANGE If value coercion would overflow @p type. * @retval non-zero If reading @p name otherwise fails, a regular unix * error code will be returned. */ METHOD int getvar { device_t dev; const char *name; void *buf; size_t *len; bhnd_nvram_type type; }; /** * Set an NVRAM variable's value. * * No changes will be written to non-volatile storage until explicitly * committed. * * @param dev The NVRAM device. * @param name The NVRAM variable name. * @param value The new value. * @param len The size of @p value. * @param type The data type of @p value. * * @retval 0 success * @retval ENOENT The specified variable name is not recognized. * @retval ENODEV If no supported NVRAM hardware is accessible via this * device. * @retval EOPNOTSUPP If any coercion to @p type is unsupported. * @retval EFTYPE If the @p name's data type cannot be coerced to @p type. * @retval ERANGE If value coercion from @p type would overflow. * @retval non-zero If reading @p name otherwise fails, a regular unix * error code will be returned. */ METHOD int setvar { device_t dev; const char *name; const void *value; size_t len; bhnd_nvram_type type; }; diff --git a/sys/dev/bhnd/nvram/nvram_map b/sys/dev/bhnd/nvram/nvram_map index cfe65cc3abfe..c96710bbb644 100644 --- a/sys/dev/bhnd/nvram/nvram_map +++ b/sys/dev/bhnd/nvram/nvram_map @@ -1,3074 +1,3073 @@ #- # Copyright (c) 2015-2016 Landon Fuller # Copyright (C) 2008-2015, Broadcom Corporation. # All Rights Reserved. # # The contents of this file (variable names, descriptions, and offsets) were # extracted or derived from Broadcom's ISC-licensed sources. # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY # SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # -# $FreeBSD$ # # NVRAM variable and SPROM layout descriptions. # # Process with nvram_map_gen.awk to produce bhnd_nvram_map.h and # bhnd_nvram_map_data.h # # NOTE: file was originally generated automatically by using libclang # to analyze and extract format information and descriptions from Broadcom's # available ISC-licensed CIS and SROM code and associated headers. # group "Antenna Configuration" { u8 aa2g { desc "Available 2.4GHz Antennas" help "Antennas 0-3 are marked as available if the corresponding bit is set." } u8 aa5g { desc "Available 5GHz Antennas" help "Antennas 0-3 are marked as available if the corresponding bit is set." } u8 ag0 { desc "Antenna 0 Gain" help "The lower 6 bits represent dB as a signed number. The high 2 bits represent a positive number of quarter dBs to be added to the dB value" } u8 ag1 { desc "Antenna 1 Gain" help "The lower 6 bits represent dB as a signed number. The high 2 bits represent a positive number of quarter dBs to be added to the dB value" } u8 ag2 { desc "Antenna 2 Gain" help "The lower 6 bits represent dB as a signed number. The high 2 bits represent a positive number of quarter dBs to be added to the dB value" } u8 ag3 { desc "Antenna 3 Gain" help "The lower 6 bits represent dB as a signed number. The high 2 bits represent a positive number of quarter dBs to be added to the dB value" } u8 txchain { desc "Available TX Chains" help "TX chains 0-3 are marked as available if the corresponding bit is set." all1 ignore } u8 rxchain { desc "Available RX Chains" help "RX chains 0-3 are marked as available if the corresponding bit is set." all1 ignore } u16 antswitch { desc "Antenna Diversity Switch Type" help "The antenna diversity switch configuration used by this device. The value is hardware-specific." all1 ignore } } u8 aga0 { #desc #help } u8 aga1 { #desc #help } u8 aga2 { #desc #help } u8 agbg0 { #desc #help } u8 agbg1 { #desc #help } u8 agbg2 { #desc #help } u8 antswctl2g { #desc #help } u8 antswctl5g { #desc #help } u32 boardflags { #desc #help } u32 boardflags2 { #desc #help } u32 boardflags3 { #desc #help } u16 boardnum { fmt decimal #desc #help } u16 boardrev { #desc #help } u16 boardtype { #desc #help } u16 boardvendor { #desc #help } u16 bw40po { #desc #help } u16 bwduppo { #desc #help } u8 bxa2g { #desc #help } u8 bxa5g { #desc #help } u8 cc { fmt decimal #desc #help } u16 cck2gpo { #desc #help } u16 cckPwrOffset { #desc #help } u16 cckbw202gpo { #desc #help } u16 cckbw20ul2gpo { #desc #help } char ccode[2] { #desc #help } u16 cddpo { #desc #help } u16 devid { #desc #help } u16 dot11agduphrpo { #desc #help } u16 dot11agduplrpo { #desc #help } u16 dot11agofdmhrbw202gpo { #desc #help } u8 elna2g { #desc #help } u8 elna5g { #desc #help } u8 epagain2g { fmt decimal #desc #help } u8 epagain5g { fmt decimal #desc #help } u8 et1macaddr[6] { fmt macaddr #desc #help } u8 eu_edthresh2g { #desc #help } u8 eu_edthresh5g { #desc #help } u8 extpagain2g { #desc #help } u8 extpagain5g { #desc #help } u8 femctrl { fmt decimal #desc #help } u8 freqoffset_corr { #desc #help } u8 gainctrlsph { fmt decimal #desc #help } u8 hw_iqcal_en { #desc #help } u8 il0macaddr[6] { fmt macaddr #desc #help } u8 iqcal_swp_dis { #desc #help } u8 itt2ga0 { #desc #help } u8 itt2ga1 { #desc #help } u8 itt2ga2 { #desc #help } u8 itt2ga3 { #desc #help } u8 itt5ga0 { #desc #help } u8 itt5ga1 { #desc #help } u8 itt5ga2 { #desc #help } u8 itt5ga3 { #desc #help } u8 ledbh0 { all1 ignore #desc #help } u8 ledbh1 { all1 ignore #desc #help } u8 ledbh2 { all1 ignore #desc #help } u8 ledbh3 { all1 ignore #desc #help } u32 leddc { all1 ignore fmt leddc #desc #help } u16 legofdm40duppo { #desc #help } u32 legofdmbw202gpo { #desc #help } u32 legofdmbw205ghpo { #desc #help } u32 legofdmbw205glpo { #desc #help } u32 legofdmbw205gmpo { #desc #help } u32 legofdmbw20ul2gpo { #desc #help } u32 legofdmbw20ul5ghpo { #desc #help } u32 legofdmbw20ul5glpo { #desc #help } u32 legofdmbw20ul5gmpo { #desc #help } u8 macaddr[6] { fmt macaddr #desc #help } u8 maxp2ga0 { #desc #help } u8 maxp2ga1 { #desc #help } u8 maxp2ga2 { #desc #help } u8 maxp2ga3 { #desc #help } u8 maxp5ga0[4] { #desc #help } u8 maxp5ga1[4] { #desc #help } u8 maxp5ga2[4] { #desc #help } u8 maxp5ga3[1] { #desc #help } u8 maxp5gha0 { #desc #help } u8 maxp5gha1 { #desc #help } u8 maxp5gha2 { #desc #help } u8 maxp5gha3 { #desc #help } u8 maxp5gla0 { #desc #help } u8 maxp5gla1 { #desc #help } u8 maxp5gla2 { #desc #help } u8 maxp5gla3 { #desc #help } u16 mcs2gpo0 { #desc #help } u16 mcs2gpo1 { #desc #help } u16 mcs2gpo2 { #desc #help } u16 mcs2gpo3 { #desc #help } u16 mcs2gpo4 { #desc #help } u16 mcs2gpo5 { #desc #help } u16 mcs2gpo6 { #desc #help } u16 mcs2gpo7 { #desc #help } u16 mcs32po { #desc #help } u16 mcs5ghpo0 { #desc #help } u16 mcs5ghpo1 { #desc #help } u16 mcs5ghpo2 { #desc #help } u16 mcs5ghpo3 { #desc #help } u16 mcs5ghpo4 { #desc #help } u16 mcs5ghpo5 { #desc #help } u16 mcs5ghpo6 { #desc #help } u16 mcs5ghpo7 { #desc #help } u16 mcs5glpo0 { #desc #help } u16 mcs5glpo1 { #desc #help } u16 mcs5glpo2 { #desc #help } u16 mcs5glpo3 { #desc #help } u16 mcs5glpo4 { #desc #help } u16 mcs5glpo5 { #desc #help } u16 mcs5glpo6 { #desc #help } u16 mcs5glpo7 { #desc #help } u16 mcs5gpo0 { #desc #help } u16 mcs5gpo1 { #desc #help } u16 mcs5gpo2 { #desc #help } u16 mcs5gpo3 { #desc #help } u16 mcs5gpo4 { #desc #help } u16 mcs5gpo5 { #desc #help } u16 mcs5gpo6 { #desc #help } u16 mcs5gpo7 { #desc #help } u32 mcsbw202gpo { #desc #help } u32 mcsbw205ghpo { #desc #help } u32 mcsbw205glpo { #desc #help } u32 mcsbw205gmpo { #desc #help } u32 mcsbw20ul2gpo { #desc #help } u32 mcsbw20ul5ghpo { #desc #help } u32 mcsbw20ul5glpo { #desc #help } u32 mcsbw20ul5gmpo { #desc #help } u32 mcsbw402gpo { #desc #help } u32 mcsbw405ghpo { #desc #help } u32 mcsbw405glpo { #desc #help } u32 mcsbw405gmpo { #desc #help } u32 mcsbw805ghpo { #desc #help } u32 mcsbw805glpo { #desc #help } u32 mcsbw805gmpo { #desc #help } u16 mcslr5ghpo { #desc #help } u16 mcslr5glpo { #desc #help } u16 mcslr5gmpo { #desc #help } u8 measpower { #desc #help } u8 measpower1 { #desc #help } u8 measpower2 { #desc #help } u8 noisecaloffset { #desc #help } u8 noisecaloffset5g { #desc #help } u8 noiselvl2ga0 { fmt decimal #desc #help } u8 noiselvl2ga1 { fmt decimal #desc #help } u8 noiselvl2ga2 { fmt decimal #desc #help } u8 noiselvl5ga0[4] { fmt decimal #desc #help } u8 noiselvl5ga1[4] { fmt decimal #desc #help } u8 noiselvl5ga2[4] { fmt decimal #desc #help } u8 noiselvl5gha0 { #desc #help } u8 noiselvl5gha1 { #desc #help } u8 noiselvl5gha2 { #desc #help } u8 noiselvl5gla0 { #desc #help } u8 noiselvl5gla1 { #desc #help } u8 noiselvl5gla2 { #desc #help } u8 noiselvl5gma0 { #desc #help } u8 noiselvl5gma1 { #desc #help } u8 noiselvl5gma2 { #desc #help } u8 noiselvl5gua0 { #desc #help } u8 noiselvl5gua1 { #desc #help } u8 noiselvl5gua2 { #desc #help } u32 ofdm2gpo { #desc #help } u32 ofdm5ghpo { #desc #help } u32 ofdm5glpo { #desc #help } u32 ofdm5gpo { #desc #help } u16 ofdmlrbw202gpo { #desc #help } u8 opo { fmt decimal #desc #help } i16 pa0b0 { fmt decimal #desc #help } i16 pa0b1 { fmt decimal #desc #help } i16 pa0b2 { fmt decimal #desc #help } i8 pa0itssit { fmt decimal #desc #help } u8 pa0maxpwr { fmt decimal #desc #help } i16 pa1b0 { fmt decimal #desc #help } i16 pa1b1 { fmt decimal #desc #help } i16 pa1b2 { fmt decimal #desc #help } i16 pa1hib0 { fmt decimal #desc #help } i16 pa1hib1 { fmt decimal #desc #help } i16 pa1hib2 { fmt decimal #desc #help } u8 pa1himaxpwr { fmt decimal #desc #help } i8 pa1itssit { fmt decimal #desc #help } i16 pa1lob0 { fmt decimal #desc #help } i16 pa1lob1 { fmt decimal #desc #help } i16 pa1lob2 { fmt decimal #desc #help } u8 pa1lomaxpwr { fmt decimal #desc #help } u8 pa1maxpwr { fmt decimal #desc #help } i16 pa2ga0[3] { fmt decimal #desc #help } i16 pa2ga1[3] { fmt decimal #desc #help } i16 pa2ga2[3] { fmt decimal #desc #help } i16 pa2ga3[3] { fmt decimal #desc #help } u16 pa2gccka0[3] { #desc #help } u16 pa2gw0a0 { #desc #help } u16 pa2gw0a1 { #desc #help } u16 pa2gw0a2 { #desc #help } u16 pa2gw0a3 { #desc #help } u16 pa2gw1a0 { #desc #help } u16 pa2gw1a1 { #desc #help } u16 pa2gw1a2 { #desc #help } u16 pa2gw1a3 { #desc #help } u16 pa2gw2a0 { #desc #help } u16 pa2gw2a1 { #desc #help } u16 pa2gw2a2 { #desc #help } u16 pa2gw2a3 { #desc #help } u16 pa2gw3a0 { #desc #help } u16 pa2gw3a1 { #desc #help } u16 pa2gw3a2 { #desc #help } u16 pa2gw3a3 { #desc #help } i16 pa5ga0[12] { fmt decimal #desc #help } i16 pa5ga1[12] { fmt decimal #desc #help } i16 pa5ga2[12] { fmt decimal #desc #help } i16 pa5ga3[12] { fmt decimal #desc #help } u16 pa5gbw4080a0[12] { #desc #help } u16 pa5gbw4080a1[12] { #desc #help } u16 pa5gbw40a0[12] { #desc #help } u16 pa5gbw80a0[12] { #desc #help } u16 pa5ghw0a0 { #desc #help } u16 pa5ghw0a1 { #desc #help } u16 pa5ghw0a2 { #desc #help } u16 pa5ghw0a3 { #desc #help } u16 pa5ghw1a0 { #desc #help } u16 pa5ghw1a1 { #desc #help } u16 pa5ghw1a2 { #desc #help } u16 pa5ghw1a3 { #desc #help } u16 pa5ghw2a0 { #desc #help } u16 pa5ghw2a1 { #desc #help } u16 pa5ghw2a2 { #desc #help } u16 pa5ghw2a3 { #desc #help } u16 pa5ghw3a0 { #desc #help } u16 pa5ghw3a1 { #desc #help } u16 pa5ghw3a2 { #desc #help } u16 pa5ghw3a3 { #desc #help } u16 pa5glw0a0 { #desc #help } u16 pa5glw0a1 { #desc #help } u16 pa5glw0a2 { #desc #help } u16 pa5glw0a3 { #desc #help } u16 pa5glw1a0 { #desc #help } u16 pa5glw1a1 { #desc #help } u16 pa5glw1a2 { #desc #help } u16 pa5glw1a3 { #desc #help } u16 pa5glw2a0 { #desc #help } u16 pa5glw2a1 { #desc #help } u16 pa5glw2a2 { #desc #help } u16 pa5glw2a3 { #desc #help } u16 pa5glw3a0 { #desc #help } u16 pa5glw3a1 { #desc #help } u16 pa5glw3a2 { #desc #help } u16 pa5glw3a3 { #desc #help } u16 pa5gw0a0 { #desc #help } u16 pa5gw0a1 { #desc #help } u16 pa5gw0a2 { #desc #help } u16 pa5gw0a3 { #desc #help } u16 pa5gw1a0 { #desc #help } u16 pa5gw1a1 { #desc #help } u16 pa5gw1a2 { #desc #help } u16 pa5gw1a3 { #desc #help } u16 pa5gw2a0 { #desc #help } u16 pa5gw2a1 { #desc #help } u16 pa5gw2a2 { #desc #help } u16 pa5gw2a3 { #desc #help } u16 pa5gw3a0 { #desc #help } u16 pa5gw3a1 { #desc #help } u16 pa5gw3a2 { #desc #help } u16 pa5gw3a3 { #desc #help } u8 paparambwver { fmt decimal #desc #help } u8 papdcap2g { fmt decimal #desc #help } u8 papdcap5g { fmt decimal #desc #help } u8 pcieingress_war { #desc #help } u8 pdetrange2g { #desc #help } u8 pdetrange5g { #desc #help } u8 pdgain2g { fmt decimal #desc #help } u8 pdgain5g { fmt decimal #desc #help } u8 pdoffset2g40ma0 { #desc #help } u8 pdoffset2g40ma1 { #desc #help } u8 pdoffset2g40ma2 { #desc #help } u8 pdoffset2g40mvalid { #desc #help } u16 pdoffset40ma0 { #desc #help } u16 pdoffset40ma1 { #desc #help } u16 pdoffset40ma2 { #desc #help } u16 pdoffset80ma0 { #desc #help } u16 pdoffset80ma1 { #desc #help } u16 pdoffset80ma2 { #desc #help } u8 pdoffsetcckma0 { #desc #help } u8 pdoffsetcckma1 { #desc #help } u8 pdoffsetcckma2 { #desc #help } u8 phycal_tempdelta { fmt decimal #desc #help } u16 rawtempsense { #desc #help } u8 regrev { fmt decimal #desc #help } u32 rmax { fmt decimal #desc #help } u32 rmin { fmt decimal #desc #help } u16 rpcal2g { #desc #help } u16 rpcal5gb0 { #desc #help } u16 rpcal5gb1 { #desc #help } u16 rpcal5gb2 { #desc #help } u16 rpcal5gb3 { #desc #help } u8 rssisav2g { #desc #help } u8 rssisav5g { #desc #help } u8 rssismc2g { #desc #help } u8 rssismc5g { #desc #help } u8 rssismf2g { #desc #help } u8 rssismf5g { #desc #help } u8 rxgainerr2ga0 { #desc #help } u8 rxgainerr2ga1 { #desc #help } u8 rxgainerr2ga2 { #desc #help } u8 rxgainerr5ga0[4] { #desc #help } u8 rxgainerr5ga1[4] { #desc #help } u8 rxgainerr5ga2[4] { #desc #help } u8 rxgainerr5gha0 { #desc #help } u8 rxgainerr5gha1 { #desc #help } u8 rxgainerr5gha2 { #desc #help } u8 rxgainerr5gla0 { #desc #help } u8 rxgainerr5gla1 { #desc #help } u8 rxgainerr5gla2 { #desc #help } u8 rxgainerr5gma0 { #desc #help } u8 rxgainerr5gma1 { #desc #help } u8 rxgainerr5gma2 { #desc #help } u8 rxgainerr5gua0 { #desc #help } u8 rxgainerr5gua1 { #desc #help } u8 rxgainerr5gua2 { #desc #help } u8 rxgains2gelnagaina0 { #desc #help } u8 rxgains2gelnagaina1 { #desc #help } u8 rxgains2gelnagaina2 { #desc #help } u8 rxgains2gelnagaina3 { #desc #help } u8 rxgains2gtrelnabypa0 { #desc #help } u8 rxgains2gtrelnabypa1 { #desc #help } u8 rxgains2gtrelnabypa2 { #desc #help } u8 rxgains2gtrelnabypa3 { #desc #help } u8 rxgains2gtrisoa0 { #desc #help } u8 rxgains2gtrisoa1 { #desc #help } u8 rxgains2gtrisoa2 { #desc #help } u8 rxgains2gtrisoa3 { #desc #help } u8 rxgains5gelnagaina0 { #desc #help } u8 rxgains5gelnagaina1 { #desc #help } u8 rxgains5gelnagaina2 { #desc #help } u8 rxgains5gelnagaina3 { #desc #help } u8 rxgains5ghelnagaina0 { #desc #help } u8 rxgains5ghelnagaina1 { #desc #help } u8 rxgains5ghelnagaina2 { #desc #help } u8 rxgains5ghelnagaina3 { #desc #help } u8 rxgains5ghtrelnabypa0 { #desc #help } u8 rxgains5ghtrelnabypa1 { #desc #help } u8 rxgains5ghtrelnabypa2 { #desc #help } u8 rxgains5ghtrelnabypa3 { #desc #help } u8 rxgains5ghtrisoa0 { #desc #help } u8 rxgains5ghtrisoa1 { #desc #help } u8 rxgains5ghtrisoa2 { #desc #help } u8 rxgains5ghtrisoa3 { #desc #help } u8 rxgains5gmelnagaina0 { #desc #help } u8 rxgains5gmelnagaina1 { #desc #help } u8 rxgains5gmelnagaina2 { #desc #help } u8 rxgains5gmelnagaina3 { #desc #help } u8 rxgains5gmtrelnabypa0 { #desc #help } u8 rxgains5gmtrelnabypa1 { #desc #help } u8 rxgains5gmtrelnabypa2 { #desc #help } u8 rxgains5gmtrelnabypa3 { #desc #help } u8 rxgains5gmtrisoa0 { #desc #help } u8 rxgains5gmtrisoa1 { #desc #help } u8 rxgains5gmtrisoa2 { #desc #help } u8 rxgains5gmtrisoa3 { #desc #help } u8 rxgains5gtrelnabypa0 { #desc #help } u8 rxgains5gtrelnabypa1 { #desc #help } u8 rxgains5gtrelnabypa2 { #desc #help } u8 rxgains5gtrelnabypa3 { #desc #help } u8 rxgains5gtrisoa0 { #desc #help } u8 rxgains5gtrisoa1 { #desc #help } u8 rxgains5gtrisoa2 { #desc #help } u8 rxgains5gtrisoa3 { #desc #help } i8 rxpo2g { fmt decimal #desc #help } i8 rxpo5g { fmt decimal #desc #help } u8 sar2g { #desc #help } u8 sar5g { #desc #help } u16 sb20in40hrpo { #desc #help } u16 sb20in40lrpo { #desc #help } u16 sb20in80and160hr5ghpo { #desc #help } u16 sb20in80and160hr5glpo { #desc #help } u16 sb20in80and160hr5gmpo { #desc #help } u16 sb20in80and160lr5ghpo { #desc #help } u16 sb20in80and160lr5glpo { #desc #help } u16 sb20in80and160lr5gmpo { #desc #help } u16 sb40and80hr5ghpo { #desc #help } u16 sb40and80hr5glpo { #desc #help } u16 sb40and80hr5gmpo { #desc #help } u16 sb40and80lr5ghpo { #desc #help } u16 sb40and80lr5glpo { #desc #help } u16 sb40and80lr5gmpo { #desc #help } u8 sromrev { #desc #help } u16 stbcpo { #desc #help } u16 subband5gver { #desc #help } u16 subvid { #desc #help } u32 swctrlmap_2g[5] { #desc #help } u8 tempcorrx { #desc #help } u8 tempoffset { fmt decimal #desc #help } u8 temps_hysteresis { fmt decimal #desc #help } u8 temps_period { fmt decimal #desc #help } u8 tempsense_option { #desc #help } u8 tempsense_slope { #desc #help } u8 tempthresh { #desc #help } u8 tri2g { #desc #help } u8 tri5g { #desc #help } u8 tri5gh { #desc #help } u8 tri5gl { #desc #help } u8 triso2g { #desc #help } u8 triso5g { #desc #help } u16 tssifloor2g { #desc #help } u16 tssifloor5g[4] { #desc #help } u8 tssipos2g { #desc #help } u8 tssipos5g { #desc #help } u8 tssiposslope2g { fmt decimal #desc #help } u8 tssiposslope5g { fmt decimal #desc #help } u8 tworangetssi2g { fmt decimal #desc #help } u8 tworangetssi5g { fmt decimal #desc #help } u8 txidxcap2g { #desc #help } u8 txidxcap5g { #desc #help } u8 txpid2ga0 { #desc #help } u8 txpid2ga1 { #desc #help } u8 txpid2ga2 { #desc #help } u8 txpid2ga3 { #desc #help } u8 txpid5ga0 { #desc #help } u8 txpid5ga1 { #desc #help } u8 txpid5ga2 { #desc #help } u8 txpid5ga3 { #desc #help } u8 txpid5gha0 { #desc #help } u8 txpid5gha1 { #desc #help } u8 txpid5gha2 { #desc #help } u8 txpid5gha3 { #desc #help } u8 txpid5gla0 { #desc #help } u8 txpid5gla1 { #desc #help } u8 txpid5gla2 { #desc #help } u8 txpid5gla3 { #desc #help } u32 xtalfreq { fmt decimal #desc #help } srom 1 { 0x048: u8 il0macaddr[6] { +0x1, +0x0, +0x3, +0x2, +0x5, +0x4 } 0x04C: u16 boardnum 0x054: u8 et1macaddr[6] { +0x1, +0x0, +0x3, +0x2, +0x5, +0x4 } 0x05C: u8 boardrev 0x05D: u8 aa5g (&0xC0, >>6) 0x05D: u8 cc (&0xF) 0x05D: u8 aa2g (&0x30, >>4) 0x05E: i16 pa0b0 0x060: i16 pa0b1 0x062: i16 pa0b2 0x064: u8 ledbh0 0x065: u8 ledbh1 0x066: u8 ledbh2 0x067: u8 ledbh3 0x068: u8 pa0maxpwr 0x069: u8 pa1maxpwr 0x06A: i16 pa1b0 0x06C: i16 pa1b1 0x06E: i16 pa1b2 0x070: i8 pa0itssit 0x071: i8 pa1itssit 0x072: u16 boardflags 0x074: u8 ag0 0x075: u8 ag1 0x076: char ccode[2] { +0x1, +0x0 } 0x07E: u8 sromrev 0x07F: u8 } srom 2-3 { 0x004: u16 boardtype 0x006: u16 subvid 0x03A: u8 pa1himaxpwr 0x03B: u8 pa1lomaxpwr 0x03C: i16 pa1lob0 0x03E: i16 pa1lob1 0x040: i16 pa1lob2 0x042: i16 pa1hib0 0x044: i16 pa1hib1 0x046: i16 pa1hib2 srom 2 { 0x048: u8 il0macaddr[6] { +0x1, +0x0, +0x3, +0x2, +0x5, +0x4 } 0x04C: u16 boardnum 0x054: u8 et1macaddr[6] { +0x1, +0x0, +0x3, +0x2, +0x5, +0x4 } } srom 3 { 0x04A: u8 macaddr[6] { +0x1, +0x0, +0x3, +0x2, +0x5, +0x4 } 0x04E: u16 boardnum 0x050: u8 rssismf2g (&0xF) 0x050: u8 rssismc2g (&0xF0, >>4) 0x051: u8 bxa2g (&0x18, >>3) 0x051: u8 rssisav2g (&0x7) 0x052: u8 rssismc5g (&0xF0, >>4) 0x052: u8 rssismf5g (&0xF) 0x053: u8 bxa5g (&0x18, >>3) 0x053: u8 rssisav5g (&0x7) 0x054: u8 tri2g 0x055: u8 tri5g 0x056: u8 tri5gl 0x057: u8 tri5gh 0x05A: i8 rxpo2g 0x05B: i8 rxpo5g } 0x05C: u8 boardrev 0x05D: u8 aa5g (&0xC0, >>6) 0x05D: u8 aa2g (&0x30, >>4) 0x05E: i16 pa0b0 0x060: i16 pa0b1 0x062: i16 pa0b2 0x064: u8 ledbh0 0x065: u8 ledbh1 0x066: u8 ledbh2 0x067: u8 ledbh3 0x068: u8 pa0maxpwr 0x069: u8 pa1maxpwr 0x06A: i16 pa1b0 0x06C: i16 pa1b1 0x06E: i16 pa1b2 0x070: i8 pa0itssit 0x071: i8 pa1itssit srom 2 { 0x072: u32 boardflags { +0x0: u16 | 0x038: u16 (<<16) } } srom 3 { 0x072: u32 boardflags { +0x0: u16 | +0x8: u16 (<<16) } } 0x074: u8 ag0 0x075: u8 ag1 0x076: char ccode[2] { +0x1, +0x0 } 0x078: u8 opo srom 3 { 0x079: u8 regrev 0x07C: u16 leddc } 0x07E: u8 sromrev 0x07F: u8 } srom 4 { 0x004: u16 boardtype 0x006: u16 subvid 0x040: u16 (=0x5372) 0x042: u16 boardrev 0x044: u32 boardflags 0x048: u32 boardflags2 0x04C: u8 macaddr[6] { +0x1, +0x0, +0x3, +0x2, +0x5, +0x4 } 0x050: u16 boardnum 0x052: char ccode[2] { +0x1, +0x0 } 0x054: u8 regrev 0x056: u8 ledbh0 0x057: u8 ledbh1 0x058: u8 ledbh2 0x059: u8 ledbh3 0x05A: u16 leddc 0x05C: u8 aa2g 0x05D: u8 aa5g 0x05E: u8 ag0 0x05F: u8 ag1 0x060: u8 ag2 0x061: u8 ag3 0x062: u8 txpid2ga0 0x063: u8 txpid2ga1 0x064: u8 txpid2ga2 0x065: u8 txpid2ga3 0x066: u8 txpid5ga0 0x067: u8 txpid5ga1 0x068: u8 txpid5ga2 0x069: u8 txpid5ga3 0x06A: u8 txpid5gla0 0x06B: u8 txpid5gla1 0x06C: u8 txpid5gla2 0x06D: u8 txpid5gla3 0x06E: u8 txpid5gha0 0x06F: u8 txpid5gha1 0x070: u8 txpid5gha2 0x071: u8 txpid5gha3 0x07A: u8 rxchain (&0xF0, >>4) 0x07A: u8 txchain (&0xF) 0x07B: u8 antswitch 0x080: u8 maxp2ga0 0x081: u8 itt2ga0 0x082: u16 pa2gw0a0 0x084: u16 pa2gw1a0 0x086: u16 pa2gw2a0 0x088: u16 pa2gw3a0 0x08A: u8 maxp5ga0[1] 0x08B: u8 itt5ga0 0x08C: u8 maxp5gha0 0x08D: u8 maxp5gla0 0x08E: u16 pa5gw0a0 0x090: u16 pa5gw1a0 0x092: u16 pa5gw2a0 0x094: u16 pa5gw3a0 0x096: u16 pa5glw0a0 0x098: u16 pa5glw1a0 0x09A: u16 pa5glw2a0 0x09C: u16 pa5glw3a0 0x09E: u16 pa5ghw0a0 0x0A0: u16 pa5ghw1a0 0x0A2: u16 pa5ghw2a0 0x0A4: u16 pa5ghw3a0 0x0AE: u8 maxp2ga1 0x0AF: u8 itt2ga1 0x0B0: u16 pa2gw0a1 0x0B2: u16 pa2gw1a1 0x0B4: u16 pa2gw2a1 0x0B6: u16 pa2gw3a1 0x0B8: u8 maxp5ga1[1] 0x0B9: u8 itt5ga1 0x0BA: u8 maxp5gha1 0x0BB: u8 maxp5gla1 0x0BC: u16 pa5gw0a1 0x0BE: u16 pa5gw1a1 0x0C0: u16 pa5gw2a1 0x0C2: u16 pa5gw3a1 0x0C4: u16 pa5glw0a1 0x0C6: u16 pa5glw1a1 0x0C8: u16 pa5glw2a1 0x0CA: u16 pa5glw3a1 0x0CC: u16 pa5ghw0a1 0x0CE: u16 pa5ghw1a1 0x0D0: u16 pa5ghw2a1 0x0D2: u16 pa5ghw3a1 0x0DC: u8 maxp2ga2 0x0DD: u8 itt2ga2 0x0DE: u16 pa2gw0a2 0x0E0: u16 pa2gw1a2 0x0E2: u16 pa2gw2a2 0x0E4: u16 pa2gw3a2 0x0E6: u8 maxp5ga2[1] 0x0E7: u8 itt5ga2 0x0E8: u8 maxp5gha2 0x0E9: u8 maxp5gla2 0x0EA: u16 pa5gw0a2 0x0EC: u16 pa5gw1a2 0x0EE: u16 pa5gw2a2 0x0F0: u16 pa5gw3a2 0x0F2: u16 pa5glw0a2 0x0F4: u16 pa5glw1a2 0x0F6: u16 pa5glw2a2 0x0F8: u16 pa5glw3a2 0x0FA: u16 pa5ghw0a2 0x0FC: u16 pa5ghw1a2 0x0FE: u16 pa5ghw2a2 0x100: u16 pa5ghw3a2 0x10A: u8 maxp2ga3 0x10B: u8 itt2ga3 0x10C: u16 pa2gw0a3 0x10E: u16 pa2gw1a3 0x110: u16 pa2gw2a3 0x112: u16 pa2gw3a3 0x114: u8 maxp5ga3[1] 0x115: u8 itt5ga3 0x116: u8 maxp5gha3 0x117: u8 maxp5gla3 0x118: u16 pa5gw0a3 0x11A: u16 pa5gw1a3 0x11C: u16 pa5gw2a3 0x11E: u16 pa5gw3a3 0x120: u16 pa5glw0a3 0x122: u16 pa5glw1a3 0x124: u16 pa5glw2a3 0x126: u16 pa5glw3a3 0x128: u16 pa5ghw0a3 0x12A: u16 pa5ghw1a3 0x12C: u16 pa5ghw2a3 0x12E: u16 pa5ghw3a3 0x138: u16 cck2gpo 0x13A: u32 ofdm2gpo 0x13E: u32 ofdm5gpo 0x142: u32 ofdm5glpo 0x146: u32 ofdm5ghpo 0x14A: u16 mcs2gpo0 0x14C: u16 mcs2gpo1 0x14E: u16 mcs2gpo2 0x150: u16 mcs2gpo3 0x152: u16 mcs2gpo4 0x154: u16 mcs2gpo5 0x156: u16 mcs2gpo6 0x158: u16 mcs2gpo7 0x15A: u16 mcs5gpo0 0x15C: u16 mcs5gpo1 0x15E: u16 mcs5gpo2 0x160: u16 mcs5gpo3 0x162: u16 mcs5gpo4 0x164: u16 mcs5gpo5 0x166: u16 mcs5gpo6 0x168: u16 mcs5gpo7 0x16A: u16 mcs5glpo0 0x16C: u16 mcs5glpo1 0x16E: u16 mcs5glpo2 0x170: u16 mcs5glpo3 0x172: u16 mcs5glpo4 0x174: u16 mcs5glpo5 0x176: u16 mcs5glpo6 0x178: u16 mcs5glpo7 0x17A: u16 mcs5ghpo0 0x17C: u16 mcs5ghpo1 0x17E: u16 mcs5ghpo2 0x180: u16 mcs5ghpo3 0x182: u16 mcs5ghpo4 0x184: u16 mcs5ghpo5 0x186: u16 mcs5ghpo6 0x188: u16 mcs5ghpo7 0x18A: u16 cddpo 0x18C: u16 stbcpo 0x18E: u16 bw40po 0x190: u16 bwduppo 0x1B6: u8 sromrev 0x1B7: u8 } srom 5-7 { 0x004: u16 boardtype 0x006: u16 subvid 0x042: u16 boardrev 0x044: char ccode[2] { +0x1, +0x0 } 0x046: u8 regrev 0x04A: u32 boardflags 0x04E: u32 boardflags2 0x052: u8 macaddr[6] { +0x1, +0x0, +0x3, +0x2, +0x5, +0x4 } 0x056: u16 boardnum 0x05A: u16 leddc 0x05C: u8 aa2g 0x05D: u8 aa5g 0x05E: u8 ag0 0x05F: u8 ag1 0x060: u8 ag2 0x061: u8 ag3 0x062: u8 txpid2ga0 0x063: u8 txpid2ga1 0x064: u8 txpid2ga2 0x065: u8 txpid2ga3 0x066: u8 txpid5ga0 0x067: u8 txpid5ga1 0x068: u8 txpid5ga2 0x069: u8 txpid5ga3 0x06A: u8 txpid5gla0 0x06B: u8 txpid5gla1 0x06C: u8 txpid5gla2 0x06D: u8 txpid5gla3 0x06E: u8 txpid5gha0 0x06F: u8 txpid5gha1 0x070: u8 txpid5gha2 0x071: u8 txpid5gha3 0x076: u8 ledbh0 0x077: u8 ledbh1 0x078: u8 ledbh2 0x079: u8 ledbh3 0x07A: u8 txchain (&0xF) 0x07A: u8 rxchain (&0xF0, >>4) 0x07B: u8 antswitch 0x080: u8 maxp2ga0 0x081: u8 itt2ga0 0x082: u16 pa2gw0a0 0x084: u16 pa2gw1a0 0x086: u16 pa2gw2a0 0x088: u16 pa2gw3a0 0x08A: u8 maxp5ga0[1] 0x08B: u8 itt5ga0 0x08C: u8 maxp5gha0 0x08D: u8 maxp5gla0 0x08E: u16 pa5gw0a0 0x090: u16 pa5gw1a0 0x092: u16 pa5gw2a0 0x094: u16 pa5gw3a0 0x096: u16 pa5glw0a0 0x098: u16 pa5glw1a0 0x09A: u16 pa5glw2a0 0x09C: u16 pa5glw3a0 0x09E: u16 pa5ghw0a0 0x0A0: u16 pa5ghw1a0 0x0A2: u16 pa5ghw2a0 0x0A4: u16 pa5ghw3a0 0x0AE: u8 maxp2ga1 0x0AF: u8 itt2ga1 0x0B0: u16 pa2gw0a1 0x0B2: u16 pa2gw1a1 0x0B4: u16 pa2gw2a1 0x0B6: u16 pa2gw3a1 0x0B8: u8 maxp5ga1[1] 0x0B9: u8 itt5ga1 0x0BA: u8 maxp5gha1 0x0BB: u8 maxp5gla1 0x0BC: u16 pa5gw0a1 0x0BE: u16 pa5gw1a1 0x0C0: u16 pa5gw2a1 0x0C2: u16 pa5gw3a1 0x0C4: u16 pa5glw0a1 0x0C6: u16 pa5glw1a1 0x0C8: u16 pa5glw2a1 0x0CA: u16 pa5glw3a1 0x0CC: u16 pa5ghw0a1 0x0CE: u16 pa5ghw1a1 0x0D0: u16 pa5ghw2a1 0x0D2: u16 pa5ghw3a1 0x0DC: u8 maxp2ga2 0x0DD: u8 itt2ga2 0x0DE: u16 pa2gw0a2 0x0E0: u16 pa2gw1a2 0x0E2: u16 pa2gw2a2 0x0E4: u16 pa2gw3a2 0x0E6: u8 maxp5ga2[1] 0x0E7: u8 itt5ga2 0x0E8: u8 maxp5gha2 0x0E9: u8 maxp5gla2 0x0EA: u16 pa5gw0a2 0x0EC: u16 pa5gw1a2 0x0EE: u16 pa5gw2a2 0x0F0: u16 pa5gw3a2 0x0F2: u16 pa5glw0a2 0x0F4: u16 pa5glw1a2 0x0F6: u16 pa5glw2a2 0x0F8: u16 pa5glw3a2 0x0FA: u16 pa5ghw0a2 0x0FC: u16 pa5ghw1a2 0x0FE: u16 pa5ghw2a2 0x100: u16 pa5ghw3a2 0x10A: u8 maxp2ga3 0x10B: u8 itt2ga3 0x10C: u16 pa2gw0a3 0x10E: u16 pa2gw1a3 0x110: u16 pa2gw2a3 0x112: u16 pa2gw3a3 0x114: u8 maxp5ga3[1] 0x115: u8 itt5ga3 0x116: u8 maxp5gha3 0x117: u8 maxp5gla3 0x118: u16 pa5gw0a3 0x11A: u16 pa5gw1a3 0x11C: u16 pa5gw2a3 0x11E: u16 pa5gw3a3 0x120: u16 pa5glw0a3 0x122: u16 pa5glw1a3 0x124: u16 pa5glw2a3 0x126: u16 pa5glw3a3 0x128: u16 pa5ghw0a3 0x12A: u16 pa5ghw1a3 0x12C: u16 pa5ghw2a3 0x12E: u16 pa5ghw3a3 0x138: u16 cck2gpo 0x13A: u32 ofdm2gpo 0x13E: u32 ofdm5gpo 0x142: u32 ofdm5glpo 0x146: u32 ofdm5ghpo 0x14A: u16 mcs2gpo0 0x14C: u16 mcs2gpo1 0x14E: u16 mcs2gpo2 0x150: u16 mcs2gpo3 0x152: u16 mcs2gpo4 0x154: u16 mcs2gpo5 0x156: u16 mcs2gpo6 0x158: u16 mcs2gpo7 0x15A: u16 mcs5gpo0 0x15C: u16 mcs5gpo1 0x15E: u16 mcs5gpo2 0x160: u16 mcs5gpo3 0x162: u16 mcs5gpo4 0x164: u16 mcs5gpo5 0x166: u16 mcs5gpo6 0x168: u16 mcs5gpo7 0x16A: u16 mcs5glpo0 0x16C: u16 mcs5glpo1 0x16E: u16 mcs5glpo2 0x170: u16 mcs5glpo3 0x172: u16 mcs5glpo4 0x174: u16 mcs5glpo5 0x176: u16 mcs5glpo6 0x178: u16 mcs5glpo7 0x17A: u16 mcs5ghpo0 0x17C: u16 mcs5ghpo1 0x17E: u16 mcs5ghpo2 0x180: u16 mcs5ghpo3 0x182: u16 mcs5ghpo4 0x184: u16 mcs5ghpo5 0x186: u16 mcs5ghpo6 0x188: u16 mcs5ghpo7 0x18A: u16 cddpo 0x18C: u16 stbcpo 0x18E: u16 bw40po 0x190: u16 bwduppo 0x1B6: u8 sromrev 0x1B7: u8 } srom 8 { 0x004: u16 boardtype 0x006: u16 subvid 0x060: u16 devid 0x080: u16 (=0x5372) 0x082: u16 boardrev 0x084: u32 boardflags 0x088: u32 boardflags2 0x08C: u8 macaddr[6] { +0x1, +0x0, +0x3, +0x2, +0x5, +0x4 } 0x090: u16 boardnum 0x092: char ccode[2] { +0x1, +0x0 } 0x094: u8 regrev 0x096: u8 ledbh0 0x097: u8 ledbh1 0x098: u8 ledbh2 0x099: u8 ledbh3 0x09A: u16 leddc 0x09C: u8 aa2g 0x09D: u8 aa5g 0x09E: u8 ag0 0x09F: u8 ag1 0x0A0: u8 ag2 0x0A1: u8 ag3 0x0A2: u8 txchain (&0xF) 0x0A2: u8 rxchain (&0xF0, >>4) 0x0A3: u8 antswitch 0x0A4: u8 rssismf2g (&0xF) 0x0A4: u8 rssismc2g (&0xF0, >>4) 0x0A5: u8 bxa2g (&0x18, >>3) 0x0A5: u8 rssisav2g (&0x7) 0x0A6: u8 rssismc5g (&0xF0, >>4) 0x0A6: u8 rssismf5g (&0xF) 0x0A7: u8 bxa5g (&0x18, >>3) 0x0A7: u8 rssisav5g (&0x7) 0x0A8: u8 tri2g 0x0A9: u8 tri5g 0x0AA: u8 tri5gl 0x0AB: u8 tri5gh 0x0AC: i8 rxpo2g 0x0AD: i8 rxpo5g 0x0AE: u8 tssipos2g (&0x1) 0x0AE: u8 pdetrange2g (&0xF8, >>3) 0x0AE: u8 extpagain2g (&0x6, >>1) 0x0AF: u8 antswctl2g (&0xF8, >>3) 0x0AF: u8 triso2g (&0x7) 0x0B0: u8 pdetrange5g (&0xF8, >>3) 0x0B0: u8 tssipos5g (&0x1) 0x0B0: u8 extpagain5g (&0x6, >>1) 0x0B1: u8 triso5g (&0x7) 0x0B1: u8 antswctl5g (&0xF8, >>3) 0x0B2: u8 tempoffset 0x0B3: u8 tempthresh 0x0B4: u16 rawtempsense (&0x1FF) 0x0B5: u8 measpower (&0xFE, >>1) 0x0B6: u8 tempsense_slope 0x0B7: u8 tempsense_option (&0x3) 0x0B7: u8 tempcorrx (&0xFC, >>2) 0x0B8: u8 hw_iqcal_en (&0x20, >>5) 0x0B8: u8 freqoffset_corr (&0xF) 0x0B8: u8 iqcal_swp_dis (&0x10, >>4) 0x0BA: u8 elna2g 0x0BB: u8 elna5g 0x0BC: u8 phycal_tempdelta 0x0BD: u8 temps_period (&0xF) 0x0BD: u8 temps_hysteresis (&0xF0, >>4) 0x0BE: u8 measpower1 (&0x7F) 0x0BE: u8 measpower2 { +0x0: u16 (&0x3F80, >>7) } 0x0C0: u8 pa0maxpwr 0x0C0: u8 maxp2ga0 0x0C1: i8 pa0itssit 0x0C1: u8 itt2ga0 0x0C2: i16 pa0b0 0x0C2: u16 pa2gw0a0 0x0C4: u16 pa2gw1a0 0x0C4: i16 pa0b1 0x0C6: i16 pa0b2 0x0C6: u16 pa2gw2a0 0x0C8: u8 pa1maxpwr 0x0C8: u8 maxp5ga0[1] 0x0C9: u8 itt5ga0 0x0C9: i8 pa1itssit 0x0CA: u8 maxp5gha0 0x0CA: u8 pa1himaxpwr 0x0CB: u8 maxp5gla0 0x0CB: u8 pa1lomaxpwr 0x0CC: u16 pa5gw0a0 0x0CC: i16 pa1b0 0x0CE: i16 pa1b1 0x0CE: u16 pa5gw1a0 0x0D0: i16 pa1b2 0x0D0: u16 pa5gw2a0 0x0D2: i16 pa1lob0 0x0D2: u16 pa5glw0a0 0x0D4: u16 pa5glw1a0 0x0D4: i16 pa1lob1 0x0D6: u16 pa5glw2a0 0x0D6: i16 pa1lob2 0x0D8: i16 pa1hib0 0x0D8: u16 pa5ghw0a0 0x0DA: i16 pa1hib1 0x0DA: u16 pa5ghw1a0 0x0DC: i16 pa1hib2 0x0DC: u16 pa5ghw2a0 0x0E0: u8 maxp2ga1 0x0E1: u8 itt2ga1 0x0E2: u16 pa2gw0a1 0x0E4: u16 pa2gw1a1 0x0E6: u16 pa2gw2a1 0x0E8: u8 maxp5ga1[1] 0x0E9: u8 itt5ga1 0x0EA: u8 maxp5gha1 0x0EB: u8 maxp5gla1 0x0EC: u16 pa5gw0a1 0x0EE: u16 pa5gw1a1 0x0F0: u16 pa5gw2a1 0x0F2: u16 pa5glw0a1 0x0F4: u16 pa5glw1a1 0x0F6: u16 pa5glw2a1 0x0F8: u16 pa5ghw0a1 0x0FA: u16 pa5ghw1a1 0x0FC: u16 pa5ghw2a1 0x100: u8 maxp2ga2 0x101: u8 itt2ga2 0x102: u16 pa2gw0a2 0x104: u16 pa2gw1a2 0x106: u16 pa2gw2a2 0x108: u8 maxp5ga2[1] 0x109: u8 itt5ga2 0x10A: u8 maxp5gha2 0x10B: u8 maxp5gla2 0x10C: u16 pa5gw0a2 0x10E: u16 pa5gw1a2 0x110: u16 pa5gw2a2 0x112: u16 pa5glw0a2 0x114: u16 pa5glw1a2 0x116: u16 pa5glw2a2 0x118: u16 pa5ghw0a2 0x11A: u16 pa5ghw1a2 0x11C: u16 pa5ghw2a2 0x120: u8 maxp2ga3 0x121: u8 itt2ga3 0x122: u16 pa2gw0a3 0x124: u16 pa2gw1a3 0x126: u16 pa2gw2a3 0x128: u8 maxp5ga3[1] 0x129: u8 itt5ga3 0x12A: u8 maxp5gha3 0x12B: u8 maxp5gla3 0x12C: u16 pa5gw0a3 0x12E: u16 pa5gw1a3 0x130: u16 pa5gw2a3 0x132: u16 pa5glw0a3 0x134: u16 pa5glw1a3 0x136: u16 pa5glw2a3 0x138: u16 pa5ghw0a3 0x13A: u16 pa5ghw1a3 0x13C: u16 pa5ghw2a3 0x140: u16 cck2gpo 0x142: u32 ofdm2gpo 0x142: u8 opo 0x146: u32 ofdm5gpo 0x14A: u32 ofdm5glpo 0x14E: u32 ofdm5ghpo 0x152: u16 mcs2gpo0 0x154: u16 mcs2gpo1 0x156: u16 mcs2gpo2 0x158: u16 mcs2gpo3 0x15A: u16 mcs2gpo4 0x15C: u16 mcs2gpo5 0x15E: u16 mcs2gpo6 0x160: u16 mcs2gpo7 0x162: u16 mcs5gpo0 0x164: u16 mcs5gpo1 0x166: u16 mcs5gpo2 0x168: u16 mcs5gpo3 0x16A: u16 mcs5gpo4 0x16C: u16 mcs5gpo5 0x16E: u16 mcs5gpo6 0x170: u16 mcs5gpo7 0x172: u16 mcs5glpo0 0x174: u16 mcs5glpo1 0x176: u16 mcs5glpo2 0x178: u16 mcs5glpo3 0x17A: u16 mcs5glpo4 0x17C: u16 mcs5glpo5 0x17E: u16 mcs5glpo6 0x180: u16 mcs5glpo7 0x182: u16 mcs5ghpo0 0x184: u16 mcs5ghpo1 0x186: u16 mcs5ghpo2 0x188: u16 mcs5ghpo3 0x18A: u16 mcs5ghpo4 0x18C: u16 mcs5ghpo5 0x18E: u16 mcs5ghpo6 0x190: u16 mcs5ghpo7 0x192: u16 cddpo 0x194: u16 stbcpo 0x196: u16 bw40po 0x198: u16 bwduppo 0x19A: u8 rxgainerr2ga0 (&0x3F) 0x19A: u8 rxgainerr2ga1 { +0x0: u16 (&0x7C0, >>6) } 0x19B: u8 rxgainerr2ga2 (&0xF8, >>3) 0x19C: u8 rxgainerr5gla0 (&0x3F) 0x19C: u8 rxgainerr5gla1 { +0x0: u16 (&0x7C0, >>6) } 0x19D: u8 rxgainerr5gla2 (&0xF8, >>3) 0x19E: u8 rxgainerr5gma0 (&0x3F) 0x19E: u8 rxgainerr5gma1 { +0x0: u16 (&0x7C0, >>6) } 0x19F: u8 rxgainerr5gma2 (&0xF8, >>3) 0x1A0: u8 rxgainerr5gha1 { +0x0: u16 (&0x7C0, >>6) } 0x1A0: u8 rxgainerr5gha0 (&0x3F) 0x1A1: u8 rxgainerr5gha2 (&0xF8, >>3) 0x1A2: u8 rxgainerr5gua1 { +0x0: u16 (&0x7C0, >>6) } 0x1A2: u8 rxgainerr5gua0 (&0x3F) 0x1A3: u8 rxgainerr5gua2 (&0xF8, >>3) 0x1A4: u8 subband5gver (&0x7) 0x1A6: u8 pcieingress_war (&0xF) 0x1A8: u8 eu_edthresh2g 0x1A9: u8 eu_edthresh5g 0x1AA: u8 noiselvl2ga0 (&0x1F) 0x1AA: u8 noiselvl2ga1 { +0x0: u16 (&0x3E0, >>5) } 0x1AB: u8 noiselvl2ga2 (&0x7C, >>2) 0x1AC: u8 noiselvl5gla1 { +0x0: u16 (&0x3E0, >>5) } 0x1AC: u8 noiselvl5gla0 (&0x1F) 0x1AD: u8 noiselvl5gla2 (&0x7C, >>2) 0x1AE: u8 noiselvl5gma0 (&0x1F) 0x1AE: u8 noiselvl5gma1 { +0x0: u16 (&0x3E0, >>5) } 0x1AF: u8 noiselvl5gma2 (&0x7C, >>2) 0x1B0: u8 noiselvl5gha0 (&0x1F) 0x1B0: u8 noiselvl5gha1 { +0x0: u16 (&0x3E0, >>5) } 0x1B1: u8 noiselvl5gha2 (&0x7C, >>2) 0x1B2: u8 noiselvl5gua0 (&0x1F) 0x1B2: u8 noiselvl5gua1 { +0x0: u16 (&0x3E0, >>5) } 0x1B3: u8 noiselvl5gua2 (&0x7C, >>2) 0x1B4: u8 noisecaloffset 0x1B5: u8 noisecaloffset5g 0x1B6: u8 sromrev 0x1B7: u8 } srom 9-10 { 0x004: u16 boardtype 0x006: u16 subvid 0x060: u16 devid srom 9 { 0x080: u16 (=0x5372) } 0x082: u16 boardrev 0x084: u32 boardflags 0x088: u32 boardflags2 0x08C: u8 macaddr[6] { +0x1, +0x0, +0x3, +0x2, +0x5, +0x4 } 0x090: u16 boardnum 0x092: char ccode[2] { +0x1, +0x0 } 0x094: u8 regrev 0x096: u8 ledbh0 0x097: u8 ledbh1 0x098: u8 ledbh2 0x099: u8 ledbh3 0x09A: u16 leddc 0x09C: u8 aa2g 0x09D: u8 aa5g 0x09E: u8 ag0 0x09F: u8 ag1 0x0A0: u8 ag2 0x0A1: u8 ag3 0x0A2: u8 txchain (&0xF) 0x0A2: u8 rxchain (&0xF0, >>4) 0x0A3: u8 antswitch 0x0A4: u8 rssismf2g (&0xF) 0x0A4: u8 rssismc2g (&0xF0, >>4) 0x0A5: u8 rssisav2g (&0x7) 0x0A5: u8 bxa2g (&0x18, >>3) 0x0A6: u8 rssismf5g (&0xF) 0x0A6: u8 rssismc5g (&0xF0, >>4) 0x0A7: u8 bxa5g (&0x18, >>3) 0x0A7: u8 rssisav5g (&0x7) 0x0A8: u8 tri2g 0x0A9: u8 tri5g 0x0AA: u8 tri5gl 0x0AB: u8 tri5gh 0x0AC: i8 rxpo2g 0x0AD: i8 rxpo5g 0x0AE: u8 extpagain2g (&0x6, >>1) 0x0AE: u8 tssipos2g (&0x1) 0x0AE: u8 pdetrange2g (&0xF8, >>3) 0x0AF: u8 antswctl2g (&0xF8, >>3) 0x0AF: u8 triso2g (&0x7) 0x0B0: u8 extpagain5g (&0x6, >>1) 0x0B0: u8 pdetrange5g (&0xF8, >>3) 0x0B0: u8 tssipos5g (&0x1) 0x0B1: u8 triso5g (&0x7) 0x0B1: u8 antswctl5g (&0xF8, >>3) 0x0B2: u8 tempoffset 0x0B3: u8 tempthresh 0x0B4: u16 rawtempsense (&0x1FF) 0x0B5: u8 measpower (&0xFE, >>1) 0x0B6: u8 tempsense_slope 0x0B7: u8 tempsense_option (&0x3) 0x0B7: u8 tempcorrx (&0xFC, >>2) 0x0B8: u8 iqcal_swp_dis (&0x10, >>4) 0x0B8: u8 freqoffset_corr (&0xF) 0x0B8: u8 hw_iqcal_en (&0x20, >>5) 0x0BA: u8 elna2g 0x0BB: u8 elna5g 0x0BC: u8 phycal_tempdelta 0x0BD: u8 temps_hysteresis (&0xF0, >>4) 0x0BD: u8 temps_period (&0xF) 0x0BE: u8 measpower2 { +0x0: u16 (&0x3F80, >>7) } 0x0BE: u8 measpower1 (&0x7F) 0x0C0: u8 pa0maxpwr 0x0C0: u8 maxp2ga0 0x0C1: u8 itt2ga0 0x0C1: i8 pa0itssit 0x0C2: u16 pa2gw0a0 0x0C2: i16 pa0b0 0x0C4: i16 pa0b1 0x0C4: u16 pa2gw1a0 0x0C6: u16 pa2gw2a0 0x0C6: i16 pa0b2 0x0C8: u8 pa1maxpwr 0x0C8: u8 maxp5ga0[1] 0x0C9: u8 itt5ga0 0x0C9: i8 pa1itssit 0x0CA: u8 pa1himaxpwr 0x0CA: u8 maxp5gha0 0x0CB: u8 maxp5gla0 0x0CB: u8 pa1lomaxpwr 0x0CC: i16 pa1b0 0x0CC: u16 pa5gw0a0 0x0CE: u16 pa5gw1a0 0x0CE: i16 pa1b1 0x0D0: i16 pa1b2 0x0D0: u16 pa5gw2a0 0x0D2: u16 pa5glw0a0 0x0D2: i16 pa1lob0 0x0D4: u16 pa5glw1a0 0x0D4: i16 pa1lob1 0x0D6: u16 pa5glw2a0 0x0D6: i16 pa1lob2 0x0D8: i16 pa1hib0 0x0D8: u16 pa5ghw0a0 0x0DA: u16 pa5ghw1a0 0x0DA: i16 pa1hib1 0x0DC: u16 pa5ghw2a0 0x0DC: i16 pa1hib2 0x0E0: u8 maxp2ga1 0x0E1: u8 itt2ga1 0x0E2: u16 pa2gw0a1 0x0E4: u16 pa2gw1a1 0x0E6: u16 pa2gw2a1 0x0E8: u8 maxp5ga1[1] 0x0E9: u8 itt5ga1 0x0EA: u8 maxp5gha1 0x0EB: u8 maxp5gla1 0x0EC: u16 pa5gw0a1 0x0EE: u16 pa5gw1a1 0x0F0: u16 pa5gw2a1 0x0F2: u16 pa5glw0a1 0x0F4: u16 pa5glw1a1 0x0F6: u16 pa5glw2a1 0x0F8: u16 pa5ghw0a1 0x0FA: u16 pa5ghw1a1 0x0FC: u16 pa5ghw2a1 0x100: u8 maxp2ga2 0x101: u8 itt2ga2 0x102: u16 pa2gw0a2 0x104: u16 pa2gw1a2 0x106: u16 pa2gw2a2 0x108: u8 maxp5ga2[1] 0x109: u8 itt5ga2 0x10A: u8 maxp5gha2 0x10B: u8 maxp5gla2 0x10C: u16 pa5gw0a2 0x10E: u16 pa5gw1a2 0x110: u16 pa5gw2a2 0x112: u16 pa5glw0a2 0x114: u16 pa5glw1a2 0x116: u16 pa5glw2a2 0x118: u16 pa5ghw0a2 0x11A: u16 pa5ghw1a2 0x11C: u16 pa5ghw2a2 0x120: u8 maxp2ga3 0x121: u8 itt2ga3 0x122: u16 pa2gw0a3 0x124: u16 pa2gw1a3 0x126: u16 pa2gw2a3 0x128: u8 maxp5ga3[1] 0x129: u8 itt5ga3 0x12A: u8 maxp5gha3 0x12B: u8 maxp5gla3 0x12C: u16 pa5gw0a3 0x12E: u16 pa5gw1a3 0x130: u16 pa5gw2a3 0x132: u16 pa5glw0a3 0x134: u16 pa5glw1a3 0x136: u16 pa5glw2a3 0x138: u16 pa5ghw0a3 0x13A: u16 pa5ghw1a3 0x13C: u16 pa5ghw2a3 0x140: u16 cckbw202gpo 0x142: u8 opo 0x142: u16 cckbw20ul2gpo 0x144: u32 legofdmbw202gpo 0x148: u32 legofdmbw20ul2gpo 0x14C: u32 legofdmbw205glpo 0x150: u32 legofdmbw20ul5glpo 0x154: u32 legofdmbw205gmpo 0x158: u32 legofdmbw20ul5gmpo 0x15C: u32 legofdmbw205ghpo 0x160: u32 legofdmbw20ul5ghpo 0x164: u32 mcsbw202gpo 0x168: u32 mcsbw20ul2gpo 0x16C: u32 mcsbw402gpo 0x170: u32 mcsbw205glpo 0x174: u32 mcsbw20ul5glpo 0x178: u32 mcsbw405glpo 0x17C: u32 mcsbw205gmpo 0x180: u32 mcsbw20ul5gmpo 0x184: u32 mcsbw405gmpo 0x188: u32 mcsbw205ghpo 0x18C: u32 mcsbw20ul5ghpo 0x190: u32 mcsbw405ghpo 0x194: u16 mcs32po 0x196: u16 legofdm40duppo 0x198: u8 eu_edthresh2g 0x199: u8 eu_edthresh5g 0x19A: u8 rxgainerr2ga0 (&0x3F) 0x19A: u8 rxgainerr2ga1 { +0x0: u16 (&0x7C0, >>6) } 0x19B: u8 rxgainerr2ga2 (&0xF8, >>3) 0x19C: u8 rxgainerr5gla0 (&0x3F) 0x19C: u8 rxgainerr5gla1 { +0x0: u16 (&0x7C0, >>6) } 0x19D: u8 rxgainerr5gla2 (&0xF8, >>3) 0x19E: u8 rxgainerr5gma0 (&0x3F) 0x19E: u8 rxgainerr5gma1 { +0x0: u16 (&0x7C0, >>6) } 0x19F: u8 rxgainerr5gma2 (&0xF8, >>3) 0x1A0: u8 rxgainerr5gha0 (&0x3F) 0x1A0: u8 rxgainerr5gha1 { +0x0: u16 (&0x7C0, >>6) } 0x1A1: u8 rxgainerr5gha2 (&0xF8, >>3) 0x1A2: u8 rxgainerr5gua0 (&0x3F) 0x1A2: u8 rxgainerr5gua1 { +0x0: u16 (&0x7C0, >>6) } 0x1A3: u8 rxgainerr5gua2 (&0xF8, >>3) 0x1A4: u8 subband5gver (&0x7) 0x1A6: u8 pcieingress_war (&0xF) 0x1A8: u8 sar2g 0x1A9: u8 sar5g 0x1AA: u8 noiselvl2ga1 { +0x0: u16 (&0x3E0, >>5) } 0x1AA: u8 noiselvl2ga0 (&0x1F) 0x1AB: u8 noiselvl2ga2 (&0x7C, >>2) 0x1AC: u8 noiselvl5gla0 (&0x1F) 0x1AC: u8 noiselvl5gla1 { +0x0: u16 (&0x3E0, >>5) } 0x1AD: u8 noiselvl5gla2 (&0x7C, >>2) 0x1AE: u8 noiselvl5gma1 { +0x0: u16 (&0x3E0, >>5) } 0x1AE: u8 noiselvl5gma0 (&0x1F) 0x1AF: u8 noiselvl5gma2 (&0x7C, >>2) 0x1B0: u8 noiselvl5gha0 (&0x1F) 0x1B0: u8 noiselvl5gha1 { +0x0: u16 (&0x3E0, >>5) } 0x1B1: u8 noiselvl5gha2 (&0x7C, >>2) 0x1B2: u8 noiselvl5gua0 (&0x1F) 0x1B2: u8 noiselvl5gua1 { +0x0: u16 (&0x3E0, >>5) } 0x1B3: u8 noiselvl5gua2 (&0x7C, >>2) srom 9 { 0x1B4: u8 noisecaloffset 0x1B5: u8 noisecaloffset5g 0x1B6: u8 sromrev 0x1B7: u8 } srom 10 { 0x1B4: u16 cckPwrOffset 0x1B6: u16 (=0x5372) 0x1B8: u32 swctrlmap_2g[5] { +0x0: u32[4], +0x10: u16 } 0x1CA: u8 sromrev 0x1CB: u8 } } srom 11 { 0x004: u16 boardtype 0x006: u16 subvid 0x060: u16 devid 0x080: u16 (=0x0634) 0x082: u16 boardrev 0x084: u32 boardflags 0x088: u32 boardflags2 0x08C: u32 boardflags3 0x090: u8 macaddr[6] { +0x1, +0x0, +0x3, +0x2, +0x5, +0x4 } 0x094: u16 boardnum 0x096: char ccode[2] { +0x1, +0x0 } 0x098: u8 regrev 0x09A: u8 ledbh0 0x09B: u8 ledbh1 0x09C: u8 ledbh2 0x09D: u8 ledbh3 0x09E: u16 leddc 0x0A0: u8 aa2g 0x0A1: u8 aa5g 0x0A2: u8 agbg1 0x0A3: u8 agbg0 0x0A4: u8 aga0 0x0A5: u8 agbg2 0x0A6: u8 aga2 0x0A7: u8 aga1 0x0A8: u8 txchain (&0xF) 0x0A8: u8 rxchain (&0xF0, >>4) 0x0A9: u8 antswitch 0x0AA: u8 epagain2g (&0xE, >>1) 0x0AA: u8 tssiposslope2g (&0x1) 0x0AA: u8 pdgain2g { +0x0: u16 (&0x1F0, >>4) } 0x0AB: u8 papdcap2g (&0x4, >>2) 0x0AB: u8 tworangetssi2g (&0x2, >>1) 0x0AB: u8 femctrl (&0xF8, >>3) 0x0AC: u8 epagain5g (&0xE, >>1) 0x0AC: u8 tssiposslope5g (&0x1) 0x0AC: u8 pdgain5g { +0x0: u16 (&0x1F0, >>4) } 0x0AD: u8 tworangetssi5g (&0x2, >>1) 0x0AD: u8 gainctrlsph (&0xF8, >>3) 0x0AD: u8 papdcap5g (&0x4, >>2) 0x0AE: u8 tempoffset 0x0AF: u8 tempthresh 0x0B0: u16 rawtempsense (&0x1FF) 0x0B1: u8 measpower (&0xFE, >>1) 0x0B2: u8 tempsense_slope 0x0B3: u8 tempcorrx (&0xFC, >>2) 0x0B3: u8 tempsense_option (&0x3) 0x0B4: u16 xtalfreq 0x0B6: u16 pa5gbw4080a1[12] { +0x0: u16, +0x6: u16, 0x0CE: u16, +0x1E: u16, 0x128: u16[8] } 0x0B8: u8 phycal_tempdelta 0x0B9: u8 temps_period (&0xF) 0x0B9: u8 temps_hysteresis (&0xF0, >>4) 0x0BA: u8 measpower2 { +0x0: u16 (&0x3F80, >>7) } 0x0BA: u8 measpower1 (&0x7F) 0x0BE: u16 tssifloor2g (&0x3FF) 0x0C0: u16 tssifloor5g[4] (&0x3FF) 0x0C8: u8 pdoffset2g40ma0 (&0xF) 0x0C8: u8 pdoffset2g40ma1 (&0xF0, >>4) 0x0C9: u8 pdoffset2g40mvalid (&0x80, >>7) 0x0C9: u8 pdoffset2g40ma2 (&0xF) 0x0CA: u16 pdoffset40ma0 0x0CC: u16 pdoffset40ma1 0x0CE: u16 pdoffset40ma2 0x0D0: u16 pdoffset80ma0 0x0D2: u16 pdoffset80ma1 0x0D4: u16 pdoffset80ma2 0x0D6: u16 subband5gver 0x0D8: u8 maxp2ga0 0x0DA: i16 pa2ga0[3] 0x0E0: u8 rxgains5gmtrisoa0 (&0x78, >>3) 0x0E0: u8 rxgains5gmelnagaina0 (&0x7) 0x0E0: u8 rxgains5gmtrelnabypa0 (&0x80, >>7) 0x0E1: u8 rxgains5ghtrisoa0 (&0x78, >>3) 0x0E1: u8 rxgains5ghelnagaina0 (&0x7) 0x0E1: u8 rxgains5ghtrelnabypa0 (&0x80, >>7) 0x0E2: u8 rxgains2gtrelnabypa0 (&0x80, >>7) 0x0E2: u8 rxgains2gelnagaina0 (&0x7) 0x0E2: u8 rxgains2gtrisoa0 (&0x78, >>3) 0x0E3: u8 rxgains5gtrelnabypa0 (&0x80, >>7) 0x0E3: u8 rxgains5gtrisoa0 (&0x78, >>3) 0x0E3: u8 rxgains5gelnagaina0 (&0x7) 0x0E4: u8 maxp5ga0[4] 0x0E8: i16 pa5ga0[12] 0x100: u8 maxp2ga1 0x102: u16 pa2gccka0[3] 0x102: i16 pa2ga1[3] 0x108: u8 rxgains5gmtrisoa1 (&0x78, >>3) 0x108: u8 rxgains5gmelnagaina1 (&0x7) 0x108: u8 rxgains5gmtrelnabypa1 (&0x80, >>7) 0x109: u8 rxgains5ghtrisoa1 (&0x78, >>3) 0x109: u8 rxgains5ghelnagaina1 (&0x7) 0x109: u8 rxgains5ghtrelnabypa1 (&0x80, >>7) 0x10A: u8 rxgains2gtrelnabypa1 (&0x80, >>7) 0x10A: u8 rxgains2gtrisoa1 (&0x78, >>3) 0x10A: u8 rxgains2gelnagaina1 (&0x7) 0x10B: u8 rxgains5gtrisoa1 (&0x78, >>3) 0x10B: u8 rxgains5gtrelnabypa1 (&0x80, >>7) 0x10B: u8 rxgains5gelnagaina1 (&0x7) 0x10C: u8 maxp5ga1[4] 0x110: u16 pa5gbw40a0[12] 0x110: i16 pa5ga1[12] 0x128: u8 maxp2ga2 0x12A: i16 pa2ga2[3] 0x130: u8 rxgains5gmtrelnabypa2 (&0x80, >>7) 0x130: u8 rxgains5gmtrisoa2 (&0x78, >>3) 0x130: u8 rxgains5gmelnagaina2 (&0x7) 0x131: u8 rxgains5ghtrisoa2 (&0x78, >>3) 0x131: u8 rxgains5ghtrelnabypa2 (&0x80, >>7) 0x131: u8 rxgains5ghelnagaina2 (&0x7) 0x132: u8 rxgains2gtrisoa2 (&0x78, >>3) 0x132: u8 rxgains2gelnagaina2 (&0x7) 0x132: u8 rxgains2gtrelnabypa2 (&0x80, >>7) 0x133: u8 rxgains5gtrisoa2 (&0x78, >>3) 0x133: u8 rxgains5gtrelnabypa2 (&0x80, >>7) 0x133: u8 rxgains5gelnagaina2 (&0x7) 0x134: u8 maxp5ga2[4] 0x138: i16 pa5ga2[12] 0x138: u16 pa5gbw80a0[12] 0x138: u16 pa5gbw4080a0[12] 0x150: u16 cckbw202gpo 0x152: u16 cckbw20ul2gpo 0x154: u32 mcsbw202gpo 0x158: u32 mcsbw402gpo 0x15C: u16 dot11agofdmhrbw202gpo 0x15E: u16 ofdmlrbw202gpo 0x160: u32 mcsbw205glpo 0x164: u32 mcsbw405glpo 0x168: u32 mcsbw805glpo 0x16C: u16 rpcal2g 0x16E: u16 rpcal5gb0 0x170: u32 mcsbw205gmpo 0x174: u32 mcsbw405gmpo 0x178: u32 mcsbw805gmpo 0x17C: u16 rpcal5gb1 0x17E: u16 rpcal5gb2 0x180: u32 mcsbw205ghpo 0x184: u32 mcsbw405ghpo 0x188: u32 mcsbw805ghpo 0x18C: u16 rpcal5gb3 0x18E: u8 pdoffsetcckma1 (&0xF0, >>4) 0x18E: u8 pdoffsetcckma0 (&0xF) 0x18F: u8 pdoffsetcckma2 (&0xF) 0x190: u16 mcslr5glpo (&0xFFF) 0x191: u8 paparambwver (&0xF0, >>4) 0x192: u16 mcslr5gmpo 0x194: u16 mcslr5ghpo 0x196: u16 sb20in40hrpo 0x198: u16 sb20in80and160hr5glpo 0x19A: u16 sb40and80hr5glpo 0x19C: u16 sb20in80and160hr5gmpo 0x19E: u16 sb40and80hr5gmpo 0x1A0: u16 sb20in80and160hr5ghpo 0x1A2: u16 sb40and80hr5ghpo 0x1A4: u16 sb20in40lrpo 0x1A6: u16 sb20in80and160lr5glpo 0x1A8: u8 txidxcap2g { +0x0: u16 (&0xFF0, >>4) } 0x1A8: u16 sb40and80lr5glpo 0x1AA: u16 sb20in80and160lr5gmpo 0x1AC: u8 txidxcap5g { +0x0: u16 (&0xFF0, >>4) } 0x1AC: u16 sb40and80lr5gmpo 0x1AE: u16 sb20in80and160lr5ghpo 0x1B0: u16 sb40and80lr5ghpo 0x1B2: u16 dot11agduphrpo 0x1B4: u16 dot11agduplrpo 0x1BA: u8 sar2g 0x1BB: u8 sar5g 0x1BC: u8 noiselvl2ga0 (&0x1F) 0x1BC: u8 noiselvl2ga1 { +0x0: u16 (&0x3E0, >>5) } 0x1BD: u8 noiselvl2ga2 (&0x7C, >>2) 0x1BE: u8 noiselvl5ga1[4] { +0x0: u16[4] (&0x3E0, >>5) } 0x1BE: u8 noiselvl5ga0[4] { +0x0: u8 (&0x1F), +0x2: u8 (&0x1F), +0x4: u8 (&0x1F), +0x6: u8 (&0x1F) } 0x1BF: u8 noiselvl5ga2[4] { +0x0: u8 (&0x7C, >>2), +0x2: u8 (&0x7C, >>2), +0x4: u8 (&0x7C, >>2), +0x6: u8 (&0x7C, >>2) } 0x1C6: u8 rxgainerr2ga1 { +0x0: u16 (&0x7C0, >>6) } 0x1C6: u8 rxgainerr2ga0 (&0x3F) 0x1C7: u8 rxgainerr2ga2 (&0xF8, >>3) 0x1C8: u8 rxgainerr5ga1[4] { +0x0: u16[4] (&0x7C0, >>6) } 0x1C8: u8 rxgainerr5ga0[4] { +0x0: u8 (&0x3F), +0x2: u8 (&0x3F), +0x4: u8 (&0x3F), +0x6: u8 (&0x3F) } 0x1C9: u8 rxgainerr5ga2[4] { +0x0: u8 (&0xF8, >>3), +0x2: u8 (&0xF8, >>3), +0x4: u8 (&0xF8, >>3), +0x6: u8 (&0xF8, >>3) } 0x1D0: u8 eu_edthresh2g 0x1D1: u8 eu_edthresh5g 0x1D2: u8 sromrev 0x1D3: u8 } diff --git a/sys/dev/bhnd/tools/bus_macro.sh b/sys/dev/bhnd/tools/bus_macro.sh index 1016a079368e..c902c1d86a4c 100644 --- a/sys/dev/bhnd/tools/bus_macro.sh +++ b/sys/dev/bhnd/tools/bus_macro.sh @@ -1,91 +1,90 @@ #!/bin/sh # # Copyright (c) 2015-2016 Landon Fuller # Copyright (c) 2004-2005 Poul-Henning Kamp. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # # Generate the bhnd resource macros at the bottom of dev/bhnd/bhnd.h # # Derived from PHK's tools/bus_macros.sh # macro () { n=${1} bus_n=$(echo $n | tr "[:lower:]" "[:upper:]") shift echo -n "#define bhnd_bus_${n}(r" for i do echo -n ", ${i}" done echo ") \\" echo " (((r)->direct) ? \\" echo -n " bus_${n}((r)->res" for i do echo -n ", (${i})" done echo ") : \\" echo " BHND_BUS_${bus_n}( \\" echo " device_get_parent(rman_get_device((r)->res)), \\" echo -n " rman_get_device((r)->res), (r)" for i do echo -n ", (${i})" done echo "))" } macro barrier o l f for w in 1 2 4 #8 do # macro copy_region_$w so dh do c # macro copy_region_stream_$w ? # macro peek_$w for s in "" stream_ do macro read_$s$w o macro read_multi_$s$w o d c macro read_region_$s$w o d c macro write_$s$w o v macro write_multi_$s$w o d c macro write_region_$s$w o d c done # set_(multi_)?_stream is not supported on ARM/ARM64, and so for # simplicity, we don't support their use with bhnd resources. # # if that changes, these can be merged back into the stream-eanbled # loop above. for s in "" do macro set_multi_$s$w o v c macro set_region_$s$w o v c done done diff --git a/sys/dev/bhnd/tools/nvram_map_gen.awk b/sys/dev/bhnd/tools/nvram_map_gen.awk index 29061691105f..8428339b5baf 100755 --- a/sys/dev/bhnd/tools/nvram_map_gen.awk +++ b/sys/dev/bhnd/tools/nvram_map_gen.awk @@ -1,4265 +1,4264 @@ #!/usr/bin/awk -f #- # Copyright (c) 2015-2016 Landon Fuller # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ BEGIN { main() } END { at_exit() } # # Print usage # function usage() { print "usage: bhnd_nvram_map.awk [-hd] [-o output file]" _EARLY_EXIT = 1 exit 1 } function main(_i) { RS="\n" OUTPUT_FILE = null # Probe awk implementation's hex digit handling if ("0xA" + 0 != 10) { AWK_REQ_HEX_PARSING=1 } # Output type OUT_T = null OUT_T_HEADER = "HEADER" OUT_T_DATA = "DATA" VERBOSE = 0 # Tab width to use when calculating output alignment TAB_WIDTH = 8 # Enable debug output DEBUG = 0 # Maximum revision REV_MAX = 256 # Parse arguments if (ARGC < 2) usage() for (_i = 1; _i < ARGC; _i++) { if (ARGV[_i] == "--debug") { DEBUG = 1 } else if (ARGV[_i] == "-d" && OUT_T == null) { OUT_T = OUT_T_DATA } else if (ARGV[_i] == "-h" && OUT_T == null) { OUT_T = OUT_T_HEADER } else if (ARGV[_i] == "-v") { VERBOSE = 1 } else if (ARGV[_i] == "-o") { _i++ if (_i >= ARGC) usage() OUTPUT_FILE = ARGV[_i] } else if (ARGV[_i] == "--") { _i++ break } else if (ARGV[_i] !~ /^-/) { FILENAME = ARGV[_i] } else { print "unknown option " ARGV[_i] usage() } } ARGC=2 if (OUT_T == null) { print("error: one of -d or -h required") usage() } if (FILENAME == null) { print("error: no input file specified") usage() } if (OUTPUT_FILE == "-") { OUTPUT_FILE = "/dev/stdout" } else if (OUTPUT_FILE == null) { OUTPUT_FILE_IDX = split(FILENAME, _g_output_path, "/") OUTPUT_FILE = _g_output_path[OUTPUT_FILE_IDX] if (OUTPUT_FILE !~ /^bhnd_/) OUTPUT_FILE = "bhnd_" OUTPUT_FILE if (OUT_T == OUT_T_HEADER) OUTPUT_FILE = OUTPUT_FILE ".h" else OUTPUT_FILE = OUTPUT_FILE "_data.h" } # Common Regexs UINT_REGEX = "^(0|[1-9][0-9]*)$" HEX_REGEX = "^(0x[A-Fa-f0-9]+)$" OFF_REGEX = "^(0|[1-9][0-9]*)|^(0x[A-Fa-f0-9]+)" REL_OFF_REGEX = "^\\+(0|[1-9][0-9]*)|^\\+(0x[A-Fa-f0-9]+)" ARRAY_REGEX = "\\[(0|[1-9][0-9]*)\\]" TYPES_REGEX = "^(((u|i)(8|16|32))|char)("ARRAY_REGEX")?$" IDENT_REGEX = "[A-Za-z_][A-Za-z0-9_]*" SVAR_IDENT_REGEX = "^<"IDENT_REGEX">{?$" # identifiers VAR_IDENT_REGEX = "^"IDENT_REGEX"{?$" # var identifiers VACCESS_REGEX = "^(private|internal)$" # Property array keys PROP_ID = "p_id" PROP_NAME = "p_name" # Prop path array keys PPATH_HEAD = "ppath_head" PPATH_TAIL = "ppath_tail" # Object array keys OBJ_IS_CLS = "o_is_cls" OBJ_SUPER = "o_super" OBJ_PROP = "o_prop" # Class array keys CLS_NAME = "cls_name" CLS_PROP = "cls_prop" # C SPROM binding opcodes/opcode flags SPROM_OPCODE_EOF = "SPROM_OPCODE_EOF" SPROM_OPCODE_NELEM = "SPROM_OPCODE_NELEM" SPROM_OPCODE_VAR_END = "SPROM_OPCODE_VAR_END" SPROM_OPCODE_VAR_IMM = "SPROM_OPCODE_VAR_IMM" SPROM_OPCODE_VAR_REL_IMM = "SPROM_OPCODE_VAR_REL_IMM" SPROM_OPCODE_VAR = "SPROM_OPCODE_VAR" SPROM_OPCODE_REV_IMM = "SPROM_OPCODE_REV_IMM" SPROM_OPCODE_REV_RANGE = "SPROM_OPCODE_REV_RANGE" SPROM_OP_REV_START_MASK = "SPROM_OP_REV_START_MASK" SPROM_OP_REV_START_SHIFT = "SPROM_OP_REV_START_SHIFT" SPROM_OP_REV_END_MASK = "SPROM_OP_REV_END_MASK" SPROM_OP_REV_END_SHIFT = "SPROM_OP_REV_END_SHIFT" SPROM_OPCODE_MASK_IMM = "SPROM_OPCODE_MASK_IMM" SPROM_OPCODE_MASK = "SPROM_OPCODE_MASK" SPROM_OPCODE_SHIFT_IMM = "SPROM_OPCODE_SHIFT_IMM" SPROM_OPCODE_SHIFT = "SPROM_OPCODE_SHIFT" SPROM_OPCODE_OFFSET_REL_IMM = "SPROM_OPCODE_OFFSET_REL_IMM" SPROM_OPCODE_OFFSET = "SPROM_OPCODE_OFFSET" SPROM_OPCODE_TYPE = "SPROM_OPCODE_TYPE" SPROM_OPCODE_TYPE_IMM = "SPROM_OPCODE_TYPE_IMM" SPROM_OPCODE_DO_BINDN_IMM = "SPROM_OPCODE_DO_BINDN_IMM" SPROM_OPCODE_DO_BIND = "SPROM_OPCODE_DO_BIND" SPROM_OPCODE_DO_BINDN = "SPROM_OPCODE_DO_BINDN" SPROM_OP_BIND_SKIP_IN_MASK = "SPROM_OP_BIND_SKIP_IN_MASK" SPROM_OP_BIND_SKIP_IN_SHIFT = "SPROM_OP_BIND_SKIP_IN_SHIFT" SPROM_OP_BIND_SKIP_IN_SIGN = "SPROM_OP_BIND_SKIP_IN_SIGN" SPROM_OP_BIND_SKIP_OUT_MASK = "SPROM_OP_BIND_SKIP_OUT_MASK" SPROM_OP_BIND_SKIP_OUT_SHIFT = "SPROM_OP_BIND_SKIP_OUT_SHIFT" SPROM_OP_DATA_U8 = "SPROM_OP_DATA_U8" SPROM_OP_DATA_U8_SCALED = "SPROM_OP_DATA_U8_SCALED" SPROM_OP_DATA_U16 = "SPROM_OP_DATA_U16" SPROM_OP_DATA_U32 = "SPROM_OP_DATA_U32" SPROM_OP_DATA_I8 = "SPROM_OP_DATA_I8" SPROM_OP_BIND_SKIP_IN_MAX = 3 # maximum SKIP_IN value SPROM_OP_BIND_SKIP_IN_MIN = -3 # minimum SKIP_IN value SPROM_OP_BIND_SKIP_OUT_MAX = 1 # maximum SKIP_OUT value SPROM_OP_BIND_SKIP_OUT_MIN = 0 # minimum SKIP_OUT value SPROM_OP_IMM_MAX = 15 # maximum immediate value SPROM_OP_REV_RANGE_MAX = 15 # maximum SROM rev range value # SPROM opcode encoding state SromOpStream = class_new("SromOpStream") class_add_prop(SromOpStream, p_layout, "layout") class_add_prop(SromOpStream, p_revisions, "revisions") class_add_prop(SromOpStream, p_vid, "vid") class_add_prop(SromOpStream, p_offset, "offset") class_add_prop(SromOpStream, p_type, "type") class_add_prop(SromOpStream, p_nelem, "nelem") class_add_prop(SromOpStream, p_mask, "mask") class_add_prop(SromOpStream, p_shift, "shift") class_add_prop(SromOpStream, p_bind_total, "bind_total") class_add_prop(SromOpStream, p_pending_bind, "pending_bind") # SROM pending bind operation SromOpBind = class_new("SromOpBind") class_add_prop(SromOpBind, p_segment, "segment") class_add_prop(SromOpBind, p_count, "count") class_add_prop(SromOpBind, p_offset, "offset") class_add_prop(SromOpBind, p_width, "width") class_add_prop(SromOpBind, p_skip_in, "skip_in") class_add_prop(SromOpBind, p_skip_out, "skip_out") class_add_prop(SromOpBind, p_buffer, "buffer") # Map class definition Map = class_new("Map") # Array class definition Array = class_new("Array") class_add_prop(Array, p_count, "count") # MacroType class definition # Used to define a set of known macro types that may be generated MacroType = class_new("MacroType") class_add_prop(MacroType, p_name, "name") class_add_prop(MacroType, p_const_suffix, "const_suffix") MTypeVarName = macro_type_new("name", "") # var name MTypeVarID = macro_type_new("id", "_ID") # var unique ID MTypeVarMaxLen = macro_type_new("len", "_MAXLEN") # var max array length # Preprocessor Constant MacroDefine = class_new("MacroDefine") class_add_prop(MacroDefine, p_name, "name") class_add_prop(MacroDefine, p_value, "value") # ParseState definition ParseState = class_new("ParseState") class_add_prop(ParseState, p_ctx, "ctx") class_add_prop(ParseState, p_is_block, "is_block") class_add_prop(ParseState, p_line, "line") # Value Formats Fmt = class_new("Fmt") class_add_prop(Fmt, p_name, "name") class_add_prop(Fmt, p_symbol, "symbol") class_add_prop(Fmt, p_array_fmt, "array_fmt") FmtHex = fmt_new("hex", "bhnd_nvram_val_bcm_hex_fmt") FmtDec = fmt_new("decimal", "bhnd_nvram_val_bcm_decimal_fmt") FmtMAC = fmt_new("macaddr", "bhnd_nvram_val_bcm_macaddr_fmt") FmtLEDDC = fmt_new("leddc", "bhnd_nvram_val_bcm_leddc_fmt") FmtCharArray = fmt_new("char_array", "bhnd_nvram_val_char_array_fmt") FmtChar = fmt_new("char", "bhnd_nvram_val_char_array_fmt", FmtCharArray) FmtStr = fmt_new("string", "bhnd_nvram_val_bcm_string_fmt") # User-specifiable value formats ValueFormats = map_new() map_set(ValueFormats, get(FmtHex, p_name), FmtHex) map_set(ValueFormats, get(FmtDec, p_name), FmtDec) map_set(ValueFormats, get(FmtMAC, p_name), FmtMAC) map_set(ValueFormats, get(FmtLEDDC, p_name), FmtLEDDC) map_set(ValueFormats, get(FmtStr, p_name), FmtStr) # Data Types Type = class_new("Type") class_add_prop(Type, p_name, "name") class_add_prop(Type, p_width, "width") class_add_prop(Type, p_signed, "signed") class_add_prop(Type, p_const, "const") class_add_prop(Type, p_const_val, "const_val") class_add_prop(Type, p_array_const, "array_const") class_add_prop(Type, p_array_const_val, "array_const_val") class_add_prop(Type, p_default_fmt, "default_fmt") class_add_prop(Type, p_mask, "mask") ArrayType = class_new("ArrayType", AST) class_add_prop(ArrayType, p_type, "type") class_add_prop(ArrayType, p_count, "count") UInt8Max = 255 UInt16Max = 65535 UInt32Max = 4294967295 Int8Min = -128 Int8Max = 127 Int16Min = -32768 Int16Max = 32767 Int32Min = -2147483648 Int32Max = 2147483648 CharMin = Int8Min CharMax = Int8Max UInt8 = type_new("u8", 1, 0, "BHND_NVRAM_TYPE_UINT8", "BHND_NVRAM_TYPE_UINT8_ARRAY", FmtHex, UInt8Max, 0, 16) UInt16 = type_new("u16", 2, 0, "BHND_NVRAM_TYPE_UINT16", "BHND_NVRAM_TYPE_UINT16_ARRAY", FmtHex, UInt16Max, 1, 17) UInt32 = type_new("u32", 4, 0, "BHND_NVRAM_TYPE_UINT32", "BHND_NVRAM_TYPE_UINT32_ARRAY", FmtHex, UInt32Max, 2, 18) Int8 = type_new("i8", 1, 1, "BHND_NVRAM_TYPE_INT8", "BHND_NVRAM_TYPE_INT8_ARRAY", FmtDec, UInt8Max, 4, 20) Int16 = type_new("i16", 2, 1, "BHND_NVRAM_TYPE_INT16", "BHND_NVRAM_TYPE_INT16_ARRAY", FmtDec, UInt16Max, 5, 21) Int32 = type_new("i32", 4, 1, "BHND_NVRAM_TYPE_INT32", "BHND_NVRAM_TYPE_INT32_ARRAY", FmtDec, UInt32Max, 6, 22) Char = type_new("char", 1, 1, "BHND_NVRAM_TYPE_CHAR", "BHND_NVRAM_TYPE_CHAR_ARRAY", FmtChar, UInt8Max, 8, 24) BaseTypes = map_new() map_set(BaseTypes, get(UInt8, p_name), UInt8) map_set(BaseTypes, get(UInt16, p_name), UInt16) map_set(BaseTypes, get(UInt32, p_name), UInt32) map_set(BaseTypes, get(Int8, p_name), Int8) map_set(BaseTypes, get(Int16, p_name), Int16) map_set(BaseTypes, get(Int32, p_name), Int32) map_set(BaseTypes, get(Char, p_name), Char) BaseTypesArray = map_to_array(BaseTypes) BaseTypesCount = array_size(BaseTypesArray) # Variable Flags VFlag = class_new("VFlag") class_add_prop(VFlag, p_name, "name") class_add_prop(VFlag, p_const, "const") VFlagPrivate = vflag_new("private", "BHND_NVRAM_VF_MFGINT") VFlagIgnoreAll1 = vflag_new("ignall1", "BHND_NVRAM_VF_IGNALL1") # Variable Access Type Constants VAccess = class_new("VAccess") VAccessPublic = obj_new(VAccess) # Public VAccessPrivate = obj_new(VAccess) # MFG Private VAccessInternal = obj_new(VAccess) # Implementation-Internal # # AST node classes # AST = class_new("AST") class_add_prop(AST, p_line, "line") SymbolContext = class_new("SymbolContext", AST) class_add_prop(SymbolContext, p_vars, "vars") # NVRAM root parser context NVRAM = class_new("NVRAM", SymbolContext) class_add_prop(NVRAM, p_var_groups, "var_groups") class_add_prop(NVRAM, p_srom_layouts, "srom_layouts") class_add_prop(NVRAM, p_srom_table, "srom_table") # Variable Group VarGroup = class_new("VarGroup", SymbolContext) class_add_prop(VarGroup, p_name, "name") # Revision Range RevRange = class_new("RevRange", AST) class_add_prop(RevRange, p_start, "start") class_add_prop(RevRange, p_end, "end") # String Constant StringConstant = class_new("StringConstant", AST) class_add_prop(StringConstant, p_value, "value") # string class_add_prop(StringConstant, p_continued, "continued") # bool # Variable Declaration Var = class_new("Var", AST) class_add_prop(Var, p_access, "access") # VAccess class_add_prop(Var, p_name, "name") # string class_add_prop(Var, p_desc, "desc") # StringConstant class_add_prop(Var, p_help, "help") # StringConstant class_add_prop(Var, p_type, "type") # AbstractType class_add_prop(Var, p_fmt, "fmt") # Fmt class_add_prop(Var, p_ignall1, "ignall1") # bool # ID is assigned once all variables are sorted class_add_prop(Var, p_vid, "vid") # int # Common interface inherited by parser contexts that support # registration of SROM variable entries SromContext = class_new("SromContext", AST) class_add_prop(SromContext, p_revisions, "revisions") # SROM Layout Node SromLayout = class_new("SromLayout", SromContext) class_add_prop(SromLayout, p_entries, "entries") # Array class_add_prop(SromLayout, p_revmap, "revmap") # Map<(string,int), SromEntry> class_add_prop(SromLayout, p_output_var_counts, # Map (rev->count) "output_var_counts") # SROM Layout Filter Node # Represents a filter over a parent SromLayout's revisions SromLayoutFilter = class_new("SromLayoutFilter", SromContext) class_add_prop(SromLayoutFilter, p_parent, "parent") # SROM variable entry SromEntry = class_new("SromEntry", AST) class_add_prop(SromEntry, p_var, "var") class_add_prop(SromEntry, p_revisions, "revisions") class_add_prop(SromEntry, p_base_offset, "base_offset") class_add_prop(SromEntry, p_type, "type") class_add_prop(SromEntry, p_offsets, "offsets") # SROM variable offset SromOffset = class_new("SromOffset", AST) class_add_prop(SromOffset, p_segments, "segments") # SROM variable offset segment SromSegment = class_new("SromSegment", AST) class_add_prop(SromSegment, p_offset, "offset") class_add_prop(SromSegment, p_type, "type") class_add_prop(SromSegment, p_mask, "mask") class_add_prop(SromSegment, p_shift, "shift") class_add_prop(SromSegment, p_value, "value") # Create the parse state stack _g_parse_stack_depth = 0 _g_parse_stack[0] = null # Push the root parse state parser_state_push(nvram_new(), 0) } function at_exit(_block_start, _state, _output_vars, _noutput_vars, _name, _var, _i) { # Skip completion handling if exiting from an error if (_EARLY_EXIT) exit 1 # Check for complete block closure if (!in_parser_context(NVRAM)) { _state = parser_state_get() _block_start = get(_state, p_line) errorx("missing '}' for block opened on line " _block_start "") } # Apply lexicographical sorting to our variable names. To support more # effecient table searching, we guarantee a stable sort order (using C # collation). # # This also has a side-effect of generating a unique monotonic ID # for all variables, which we will emit as a #define and can use as a # direct index into the C variable table _output_vars = array_new() for (_name in _g_var_names) { _var = _g_var_names[_name] # Don't include internal variables in the output if (var_is_internal(_var)) continue array_append(_output_vars, _var) } # Sort by variable name array_sort(_output_vars, prop_to_path(p_name)) # Set all variable ID properties to their newly assigned ID value _noutput_vars = array_size(_output_vars) for (_i = 0; _i < _noutput_vars; _i++) { _var = array_get(_output_vars, _i) set(_var, p_vid, _i) } # Truncate output file and write common header printf("") > OUTPUT_FILE emit("/*\n") emit(" * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.\n") emit(" *\n") emit(" * generated from nvram map: " FILENAME "\n") emit(" */\n") emit("\n") # Emit all variable definitions if (OUT_T == OUT_T_DATA) { write_data(_output_vars) } else if (OUT_T == OUT_T_HEADER) { write_header(_output_vars) } if (VERBOSE == 1) { printf("%u variable records written to %s\n", array_size(_output_vars), OUTPUT_FILE) >> "/dev/stderr" } } # Write the public header (output type HEADER) function write_header(output_vars, _noutput_vars, _var, _tab_align, _macro, _macros, _num_macros, _i) { # Produce our array of #defines _num_macros = 0 _noutput_vars = array_size(output_vars) for (_i = 0; _i < _noutput_vars; _i++) { _var = array_get(output_vars, _i) # Variable name _macro = var_get_macro(_var, MTypeVarName, \ "\"" get(_var, p_name) "\"") _macros[_num_macros++] = _macro # Variable array length if (var_has_array_type(_var)) { _macro = var_get_macro(_var, MTypeVarMaxLen, var_get_array_len(_var)) _macros[_num_macros++] = _macro } } # Calculate value tab alignment position for our macros _tab_align = macros_get_tab_alignment(_macros, _num_macros) # Write the macros for (_i = 0; _i < _num_macros; _i++) write_macro_define(_macros[_i], _tab_align) } # Write the private data header (output type DATA) function write_data(output_vars, _noutput_vars, _var, _nvram, _layouts, _nlayouts, _layout, _revs, _rev, _rev_start, _rev_end, _base_type, _srom_table, _nsrom_table, _i, _j) { _nvram = parser_state_get_context(NVRAM) _layouts = get(_nvram, p_srom_layouts) _nlayouts = array_size(_layouts) _noutput_vars = array_size(output_vars) # Write all our private NVAR_ID defines write_data_defines(output_vars) # Write all layout binding opcodes, and build an array # mapping SROM revision to corresponding SROM layout _srom_table = array_new() for (_i = 0; _i < _nlayouts; _i++) { _layout = array_get(_layouts, _i) # Write binding opcode table to our output file write_srom_bindings(_layout) # Add entries to _srom_table for all covered revisions _revs = get(_layout, p_revisions) _rev_start = get(_revs, p_start) _rev_end = get(_revs, p_end) for (_j = _rev_start; _j <= _rev_end; _j++) array_append(_srom_table, _j) } # Sort in ascending order, by SROM revision array_sort(_srom_table) _nsrom_table = array_size(_srom_table) # Write the variable definitions emit("/* Variable definitions */\n") emit("const struct bhnd_nvram_vardefn " \ "bhnd_nvram_vardefns[] = {\n") output_depth++ for (_i = 0; _i < _noutput_vars; _i++) { write_data_nvram_vardefn(array_get(output_vars, _i)) } output_depth-- emit("};\n") emit("const size_t bhnd_nvram_num_vardefns = " _noutput_vars ";\n") # Write static asserts for raw type constant values that must be kept # synchronized with the code for (_i = 0; _i < BaseTypesCount; _i++) { _base_type = array_get(BaseTypesArray, _i) emit(sprintf("_Static_assert(%s == %u, \"%s\");\n", type_get_const(_base_type), type_get_const_val(_base_type), "type constant out of sync")) emit(sprintf("_Static_assert(%s == %u, \"%s\");\n", get(_base_type, p_array_const), get(_base_type, p_array_const_val), "array type constant out of sync")) } # Write all top-level bhnd_sprom_layout entries emit("/* SPROM layouts */\n") emit("const struct bhnd_sprom_layout bhnd_sprom_layouts[] = {\n") output_depth++ for (_i = 0; _i < _nsrom_table; _i++) { _rev = array_get(_srom_table, _i) _layout = nvram_get_srom_layout(_nvram, _rev) write_data_srom_layout(_layout, _rev) } output_depth-- emit("};\n") emit("const size_t bhnd_sprom_num_layouts = " _nsrom_table ";\n") } # Write a bhnd_nvram_vardef entry for the given variable function write_data_nvram_vardefn(v, _desc, _help, _type, _fmt) { obj_assert_class(v, Var) _desc = get(v, p_desc) _help = get(v, p_help) _type = get(v, p_type) _fmt = var_get_fmt(v) emit("{\n") output_depth++ emit(sprintf(".name = \"%s\",\n", get(v, p_name))) if (_desc != null) emit(sprintf(".desc = \"%s\",\n", get(_desc, p_value))) else emit(".desc = NULL,\n") if (_help != null) emit(sprintf(".help = \"%s\",\n", get(_help, p_value))) else emit(".help = NULL,\n") emit(".type = " type_get_const(_type) ",\n") emit(".nelem = " var_get_array_len(v) ",\n") emit(".fmt = &" get(_fmt, p_symbol) ",\n") emit(".flags = " gen_var_flags(v) ",\n") output_depth-- emit("},\n") } # Write a top-level bhnd_sprom_layout entry for the given revision # and layout definition function write_data_srom_layout(layout, revision, _flags, _size, _sromcrc, _crc_seg, _crc_off, _sromsig, _sig_seg, _sig_offset, _sig_value, _sromrev, _rev_seg, _rev_off, _num_vars) { _flags = array_new() # Calculate the size; it always follows the internal CRC variable _sromcrc = srom_layout_find_entry(layout, "", revision) if (_sromcrc == null) { errorx("missing '' entry for '"revision"' layout, " \ "cannot compute total size") } else { _crc_seg = srom_entry_get_single_segment(_sromcrc) _crc_off = get(_crc_seg, p_offset) _size = _crc_off _size += get(get(_crc_seg, p_type), p_width) } # Fetch signature definition _sromsig = srom_layout_find_entry(layout, "", revision) if (_sromsig == null) { array_append(_flags, "SPROM_LAYOUT_MAGIC_NONE") } else { _sig_seg = srom_entry_get_single_segment(_sromsig) _sig_offset = get(_sig_seg, p_offset) _sig_value = get(_sig_seg, p_value) if (_sig_value == "") errorc(get(_sromsig, p_line), "missing signature value") } # Fetch sromrev definition _sromrev = srom_layout_find_entry(layout, "sromrev", revision) if (_sromrev == null) { errorx("missing 'sromrev' entry for '"revision"' layout, " \ "cannot determine offset") } else { # Must be a u8 value if (!type_equal(get(_sromrev, p_type), UInt8)) { errorx("'sromrev' entry has non-u8 type '" \ type_to_string(get(_sromrev, p_type))) } _rev_seg = srom_entry_get_single_segment(_sromrev) _rev_off = get(_rev_seg, p_offset) } # Write layout entry emit("{\n") output_depth++ emit(".size = "_size",\n") emit(".rev = "revision",\n") if (array_size(_flags) > 0) { emit(".flags = " array_join(_flags, "|") ",\n") } else { emit(".flags = 0,\n") } emit(".srev_offset = " _rev_off ",\n") if (_sromsig != null) { emit(".magic_offset = " _sig_offset ",\n") emit(".magic_value = " _sig_value ",\n") } else { emit(".magic_offset = 0,\n") emit(".magic_value = 0,\n") } emit(".crc_offset = " _crc_off ",\n") emit(".bindings = " srom_layout_get_variable_name(layout) ",\n") emit(".bindings_size = nitems(" \ srom_layout_get_variable_name(layout) "),\n") emit(".num_vars = " srom_layout_num_output_vars(layout, revision) ",\n") obj_delete(_flags) output_depth-- emit("},\n"); } # Create a new opstream encoding state instance for the given layout function srom_ops_new(layout, _obj) { obj_assert_class(layout, SromLayout) _obj = obj_new(SromOpStream) set(_obj, p_layout, layout) set(_obj, p_revisions, get(layout, p_revisions)) set(_obj, p_vid, 0) set(_obj, p_offset, 0) set(_obj, p_type, null) set(_obj, p_mask, null) set(_obj, p_shift, null) return (_obj) } # Return the current type width, or throw an error if no type is currently # specified. function srom_ops_get_type_width(opstream, _type) { obj_assert_class(opstream, SromOpStream) _type = get(opstream, p_type) if (_type == null) errorx("no type value set") return (get(type_get_base(_type), p_width)) } # Write a string to the SROM opcode stream, either buffering the write, # or emitting it directly. function srom_ops_emit(opstream, string, _pending_bind, _buffer) { obj_assert_class(opstream, SromOpStream) # Buffered? if ((_pending_bind = get(opstream, p_pending_bind)) != null) { _buffer = get(_pending_bind, p_buffer) array_append(_buffer, string) return } # Emit directly emit(string) } # Emit a SROM opcode followed by up to four optional bytes function srom_ops_emit_opcode(opstream, opcode, arg0, arg1, arg2, arg3) { obj_assert_class(opstream, SromOpStream) srom_ops_emit(opstream, opcode",\n") if (arg0 != "") srom_ops_emit(opstream, arg0",\n") if (arg1 != "") srom_ops_emit(opstream, arg1",\n") if (arg2 != "") srom_ops_emit(opstream, arg2",\n") if (arg3 != "") srom_ops_emit(opstream, arg3",\n") } # Emit a SROM opcode and associated integer value, choosing the best # SROM_OP_DATA variant for encoding the value. # # opc: The standard opcode for non-IMM encoded data, or null if none # opc_imm: The IMM opcode, or null if none # value: The value to encode # svalue: Symbolic representation of value to include in output, or null function srom_ops_emit_int_opcode(opstream, opc, opc_imm, value, svalue, _width, _offset, _delta) { obj_assert_class(opstream, SromOpStream) # Fetch current type width _width = srom_ops_get_type_width(opstream) # Special cases: if (opc_imm == SPROM_OPCODE_SHIFT_IMM) { # SHIFT_IMM -- the imm value must be positive and divisible by # two (shift/2) to use the IMM form. if (value >= 0 && value % 2 == 0) { value = (value/2) opc = null } else { opc_imm = null } } else if (opc_imm == SPROM_OPCODE_OFFSET_REL_IMM) { # OFFSET_REL_IMM -- the imm value must be positive, divisible # by the type width, and relative to the last offset to use # the IMM form. # Assert that callers correctly flushed any pending bind before # attempting to set a relative offset if (get(opstream, p_pending_bind) != null) errorx("can't set relative offset with a pending bind") # Fetch current offset, calculate relative value and determine # whether we can issue an IMM opcode _offset = get(opstream, p_offset) _delta = value - _offset if (_delta >= 0 && _delta % _width == 0 && (_delta/_width) <= SPROM_OP_IMM_MAX) { srom_ops_emit(opstream, sprintf("/* %#x + %#x -> %#x */\n", _offset, _delta, value)) value = (_delta / _width) opc = null } else { opc_imm = null } } # If no symbolic representation provided, write the raw value if (svalue == null) svalue = value # Try to encode as IMM value? if (opc_imm != null && value >= 0 && value <= SPROM_OP_IMM_MAX) { srom_ops_emit_opcode(opstream, "("opc_imm"|"svalue")") return } # Can't encode as immediate; do we have a non-immediate form? if (opc == null) errorx("can't encode '" value "' as immediate, and no " \ "non-immediate form was provided") # Determine and emit minimal encoding # We let the C compiler perform the bit operations, rather than # trying to wrestle awk's floating point arithmetic if (value < 0) { # Only Int8 is used if (value < Int8Min) errorx("cannot int8 encode '" value "'") srom_ops_emit_opcode(opstream, "("opc"|"SPROM_OP_DATA_I8")", svalue) } else if (value <= UInt8Max) { srom_ops_emit_opcode(opstream, "("opc"|"SPROM_OP_DATA_U8")", svalue) } else if (value % _width == 0 && (value / _width) <= UInt8Max) { srom_ops_emit_opcode(opstream, "("opc"|"SPROM_OP_DATA_U8_SCALED")", svalue / _width) } else if (value <= UInt16Max) { srom_ops_emit_opcode(opstream, "("opc"|"SPROM_OP_DATA_U16")", "("svalue" & 0xFF)", "("svalue" >> 8)") } else if (value <= UInt32Max) { srom_ops_emit_opcode(opstream, "("opc"|"SPROM_OP_DATA_U32")", "("svalue" & 0xFF)", "(("svalue" >> 8) & 0xFF)", "(("svalue" >> 16) & 0xFF)", "(("svalue" >> 24) & 0xFF)") } else { errorx("can't encode '" value "' (too large)") } } # Emit initial OPCODE_VAR opcode and update opstream state function srom_ops_reset_var(opstream, var, _vid_prev, _vid, _vid_name, _type, _base_type) { obj_assert_class(opstream, SromOpStream) obj_assert_class(var, Var) # Flush any pending bind for the previous variable srom_ops_flush_bind(opstream, 1) # Fetch current state _vid_prev = get(opstream, p_vid) _vid = get(var, p_vid) _vid_name = var_get_macro_name(var, MTypeVarID) # Update state _type = get(var, p_type) set(opstream, p_vid, _vid) set(opstream, p_type, type_get_base(_type)) set(opstream, p_nelem, var_get_array_len(var)) set(opstream, p_mask, type_get_default_mask(_type)) set(opstream, p_shift, 0) set(opstream, p_bind_total, 0) # Always provide a human readable comment srom_ops_emit(opstream, sprintf("/* %s (%#x) */\n", get(var, p_name), get(opstream, p_offset))) # Prefer a single VAR_IMM byte if (_vid_prev == 0 || _vid <= SPROM_OP_IMM_MAX) { srom_ops_emit_int_opcode(opstream, null, SPROM_OPCODE_VAR_IMM, _vid, _vid_name) return } # Try encoding as a single VAR_REL_IMM byte if (_vid_prev <= _vid && (_vid - _vid_prev) <= SPROM_OP_IMM_MAX) { srom_ops_emit_int_opcode(opstream, null, SPROM_OPCODE_VAR_REL_IMM, _vid - _vid_prev, null) return } # Fall back on a multibyte encoding srom_ops_emit_int_opcode(opstream, SPROM_OPCODE_VAR, null, _vid, _vid_name) } # Emit OPCODE_REV/OPCODE_REV_RANGE (if necessary) for a new revision range function srom_ops_emit_revisions(opstream, revisions, _prev_revs, _start, _end) { obj_assert_class(opstream, SromOpStream) _prev_revs = get(opstream, p_revisions) if (revrange_equal(_prev_revs, revisions)) return; # Update stream state set(opstream, p_revisions, revisions) _start = get(revisions, p_start) _end = get(revisions, p_end) # Sanity-check range values if (_start < 0 || _end < 0) errorx("invalid range: " revrange_to_string(revisions)) # If range covers a single revision, and can be encoded within # SROM_OP_IMM_MAX, we can use the single byte encoding if (_start == _end && _start <= SPROM_OP_IMM_MAX) { srom_ops_emit_int_opcode(opstream, null, SPROM_OPCODE_REV_IMM, _start) return } # Otherwise, we need to use the two byte range encoding if (_start > SPROM_OP_REV_RANGE_MAX || _end > SPROM_OP_REV_RANGE_MAX) { errorx(sprintf("cannot encode range values %s (>= %u)", revrange_to_string(revisions), SPROM_OP_REV_RANGE_MAX)) } srom_ops_emit_opcode(opstream, SPROM_OPCODE_REV_RANGE, sprintf("(%u << %s) | (%u << %s)", _start, SPROM_OP_REV_START_SHIFT, _end, SPROM_OP_REV_END_SHIFT)) } # Emit OPCODE_OFFSET (if necessary) for a new offset function srom_ops_emit_offset(opstream, offset, _prev_offset, _rel_offset, _bind) { obj_assert_class(opstream, SromOpStream) # Flush any pending bind before adjusting the offset srom_ops_flush_bind(opstream, 0) # Fetch current offset _prev_offset = get(opstream, p_offset) if (_prev_offset == offset) return # Encode (possibly a relative, 1-byte form) of the offset opcode srom_ops_emit_int_opcode(opstream, SPROM_OPCODE_OFFSET, SPROM_OPCODE_OFFSET_REL_IMM, offset, null) # Update state set(opstream, p_offset, offset) } # Emit OPCODE_TYPE (if necessary) for a new type value; this also # resets the mask to the type default. function srom_ops_emit_type(opstream, type, _base_type, _prev_type, _prev_mask, _default_mask) { obj_assert_class(opstream, SromOpStream) if (!obj_is_instanceof(type, ArrayType)) obj_assert_class(type, Type) _default_mask = type_get_default_mask(type) _base_type = type_get_base(type) # If state already matches the requested type, nothing to be # done _prev_type = get(opstream, p_type) _prev_mask = get(opstream, p_mask) if (type_equal(_prev_type, _base_type) && _prev_mask == _default_mask) return # Update state set(opstream, p_type, _base_type) set(opstream, p_mask, _default_mask) # Emit opcode. if (type_get_const_val(_base_type) <= SPROM_OP_IMM_MAX) { # Single byte IMM encoding srom_ops_emit_opcode(opstream, SPROM_OPCODE_TYPE_IMM "|" type_get_const(_base_type)) } else { # Two byte encoding srom_ops_emit_opcode(opstream, SPROM_OPCODE_TYPE, type_get_const(_base_type)) } } # Emit OPCODE_MASK (if necessary) for a new mask value function srom_ops_emit_mask(opstream, mask, _prev_mask) { obj_assert_class(opstream, SromOpStream) _prev_mask = get(opstream, p_mask) if (_prev_mask == mask) return set(opstream, p_mask, mask) srom_ops_emit_int_opcode(opstream, SPROM_OPCODE_MASK, SPROM_OPCODE_MASK_IMM, mask, sprintf("0x%x", mask)) } # Emit OPCODE_SHIFT (if necessary) for a new shift value function srom_ops_emit_shift(opstream, shift, _prev_shift) { obj_assert_class(opstream, SromOpStream) _prev_shift = get(opstream, p_shift) if (_prev_shift == shift) return set(opstream, p_shift, shift) srom_ops_emit_int_opcode(opstream, SPROM_OPCODE_SHIFT, SPROM_OPCODE_SHIFT_IMM, shift, null) } # Return true if a valid BIND/BINDN encoding exists for the given SKIP_IN # value, false if the skip values exceed the limits of the bind opcode # family. function srom_ops_can_encode_skip_in(skip_in) { return (skip_in >= SPROM_OP_BIND_SKIP_IN_MIN && skip_in <= SPROM_OP_BIND_SKIP_IN_MAX) } # Return true if a valid BIND/BINDN encoding exists for the given SKIP_OUT # value, false if the skip values exceed the limits of the bind opcode # family. function srom_ops_can_encode_skip_out(skip_out) { return (skip_in >= SPROM_OP_BIND_SKIP_IN_MIN && skip_in <= SPROM_OP_BIND_SKIP_IN_MAX) } # Return true if a valid BIND/BINDN encoding exists for the given skip # values, false if the skip values exceed the limits of the bind opcode # family. function srom_ops_can_encode_skip(skip_in, skip_out) { return (srom_ops_can_encode_skip_in(skip_in) && srom_ops_can_encode_skip_out(skip_out)) } # Create a new SromOpBind instance for the given segment function srom_opbind_new(segment, skip_in, skip_out, _obj, _type, _width, _offset) { obj_assert_class(segment, SromSegment) # Verify that an encoding exists for the skip values if (!srom_ops_can_encode_skip_in(skip_in)) { errorx(sprintf("cannot encode SKIP_IN=%d; maximum supported " \ "range %d-%d", skip_in, SPROM_OP_BIND_SKIP_IN_MIN, SPROM_OP_BIND_SKIP_IN_MAX)) } if (!srom_ops_can_encode_skip_out(skip_out)) { errorx(sprintf("cannot encode SKIP_OUT=%d; maximum supported " \ "range %d-%d", skip_out, SPROM_OP_BIND_SKIP_OUT_MIN, SPROM_OP_BIND_SKIP_OUT_MAX)) } # Fetch basic segment info _offset = get(segment, p_offset) _type = srom_segment_get_base_type(segment) _width = get(_type, p_width) # Construct new instance _obj = obj_new(SromOpBind) set(_obj, p_segment, segment) set(_obj, p_count, 1) set(_obj, p_offset, _offset) set(_obj, p_width, _width) set(_obj, p_skip_in, skip_in) set(_obj, p_skip_out, skip_out) set(_obj, p_buffer, array_new()) return (_obj) } # Try to coalesce a BIND for the given segment with an existing bind request, # returning true on success, or false if the two segments cannot be coalesced # into the existing request function srom_opbind_append(bind, segment, skip_out, _bind_seg, _bind_off, _width, _count, _skip_in, _seg_offset, _delta) { obj_assert_class(bind, SromOpBind) obj_assert_class(segment, SromSegment) # Are the segments compatible? _bind_seg = get(bind, p_segment) if (!srom_segment_attributes_equal(_bind_seg, segment)) return (0) # Are the output skip values compatible? if (get(bind, p_skip_out) != skip_out) return (0) # Find bind offset/count/width/skip _bind_off = get(bind, p_offset) _count = get(bind, p_count) _skip_in = get(bind, p_skip_in) _width = get(bind, p_width) # Fetch new segment's offset _seg_offset = get(segment, p_offset) # If there's only one segment in the bind op, we ned to compute the # skip value to be used for all later segments (including the # segment we're attempting to append) # # If there's already multiple segments, we just need to verify that # the bind_offset + (count * width * skip_in) produces the new # segment's offset if (_count == 1) { # Determine the delta between the two segment offsets. This # must be a multiple of the type width to be encoded # as a BINDN entry _delta = _seg_offset - _bind_off if ((_delta % _width) != 0) return (0) # The skip byte count is calculated as (type width * skip) _skip_in = _delta / _width # Is the skip encodable? if (!srom_ops_can_encode_skip_in(_skip_in)) return (0) # Save required skip set(bind, p_skip_in, _skip_in) } else if (_count > 1) { # Get the final offset of the binding if we were to add # one additional segment _bind_off = _bind_off + (_width * _skip_in * (_count + 1)) # If it doesn't match our segment's offset, we can't # append this segment if (_bind_off != _seg_offset) return (0) } # Success! Increment the bind count in the existing bind set(bind, p_count, _count + 1) return (1) } # Return true if the given binding operation can be omitted from the output # if it would be immediately followed by a VAR, VAR_REL_IMM, or EOF opcode. # # The bind operatin must be configured with default count, skip_in, and # skip_out values of 1, and must contain no buffered post-BIND opcodes function srom_opbind_is_implicit_encodable(bind) { obj_assert_class(bind, SromOpBind) if (get(bind, p_count) != 1) return (0) if (get(bind, p_skip_in) != 1) return (0) if (get(bind, p_skip_out) != 1) return (0) if (array_size(get(bind, p_buffer)) != 0) return (0) return (1) } # Encode all segment settings for a single offset segment, followed by a bind # request. # # opstream: Opcode stream # segment: Segment to be written # continued: If this segment's value should be OR'd with the value of a # following segment function srom_ops_emit_segment(opstream, segment, continued, _value, _bind, _skip_in, _skip_out) { obj_assert_class(opstream, SromOpStream) obj_assert_class(segment, SromSegment) # Determine basic bind parameters _count = 1 _skip_in = 1 _skip_out = continued ? 0 : 1 # Try to coalesce with a pending binding if ((_bind = get(opstream, p_pending_bind)) != null) { if (srom_opbind_append(_bind, segment, _skip_out)) return } # Otherwise, flush any pending bind and enqueue our own srom_ops_flush_bind(opstream, 0) if (get(opstream, p_pending_bind)) errorx("bind not flushed!") # Encode type _value = get(segment, p_type) srom_ops_emit_type(opstream, _value) # Encode offset _value = get(segment, p_offset) srom_ops_emit_offset(opstream, _value) # Encode mask _value = get(segment, p_mask) srom_ops_emit_mask(opstream, _value) # Encode shift _value = get(segment, p_shift) srom_ops_emit_shift(opstream, _value) # Enqueue binding with opstream _bind = srom_opbind_new(segment, _skip_in, _skip_out) set(opstream, p_pending_bind, _bind) } # (private) Adjust the stream's input offset by applying the given bind # operation's skip_in * width * count. function _srom_ops_apply_bind_offset(opstream, bind, _count, _offset, _width, _skip_in, _opstream_offset) { obj_assert_class(opstream, SromOpStream) obj_assert_class(bind, SromOpBind) _opstream_offset = get(opstream, p_offset) _offset = get(bind, p_offset) if (_opstream_offset != _offset) errorx("stream/bind offset state mismatch") _count = get(bind, p_count) _width = get(bind, p_width) _skip_in = get(bind, p_skip_in) set(opstream, p_offset, _opstream_offset + ((_width * _skip_in) * _count)) } # (private) Write a bind instance and all buffered opcodes function _srom_ops_emit_bind(opstream, bind, _count, _skip_in, _skip_out, _off_start, _width, _si_signbit, _written, _nbuffer, _buffer) { obj_assert_class(opstream, SromOpStream) obj_assert_class(bind, SromOpBind) # Assert that any pending bind state has already been cleared if (get(opstream, p_pending_bind) != null) errorx("cannot flush bind with an existing pending_bind active") # Fetch (and assert valid) our skip values _skip_in = get(bind, p_skip_in) _skip_out = get(bind, p_skip_out) if (!srom_ops_can_encode_skip(_skip_in, _skip_out)) errorx("invalid skip values in buffered bind") # Determine SKIP_IN sign bit _si_signbit = "0" if (_skip_in < 0) _si_signbit = SPROM_OP_BIND_SKIP_IN_SIGN # Emit BIND/BINDN opcodes until the full count is encoded _count = get(bind, p_count) while (_count > 0) { if (_count > 1 && _count <= SPROM_OP_IMM_MAX && _skip_in == 1 && _skip_out == 1) { # The one-byte BINDN form requires encoding the count # as a IMM, and has an implicit in/out skip of 1. srom_ops_emit_opcode(opstream, "("SPROM_OPCODE_DO_BINDN_IMM"|"_count")") _count -= _count } else if (_count > 1) { # The two byte BINDN form can encode skip values and a # larger U8 count _written = min(_count, UInt8Max) srom_ops_emit_opcode(opstream, sprintf("(%s|%s|(%u<<%s)|(%u<<%s))", SPROM_OPCODE_DO_BINDN, _si_signbit, abs(_skip_in), SPROM_OP_BIND_SKIP_IN_SHIFT, _skip_out, SPROM_OP_BIND_SKIP_OUT_SHIFT), _written) _count -= _written } else { # The 1-byte BIND form can encode the same SKIP values # as the 2-byte BINDN, with a implicit count of 1 srom_ops_emit_opcode(opstream, sprintf("(%s|%s|(%u<<%s)|(%u<<%s))", SPROM_OPCODE_DO_BIND, _si_signbit, abs(_skip_in), SPROM_OP_BIND_SKIP_IN_SHIFT, _skip_out, SPROM_OP_BIND_SKIP_OUT_SHIFT)) _count-- } } # Update the stream's input offset _srom_ops_apply_bind_offset(opstream, bind) # Write any buffered post-BIND opcodes _buffer = get(bind, p_buffer) _nbuffer = array_size(_buffer) for (_i = 0; _i < _nbuffer; _i++) srom_ops_emit(opstream, array_get(_buffer, _i)) } # Flush any buffered binding function srom_ops_flush_bind(opstream, allow_implicit, _bind, _bind_total) { obj_assert_class(opstream, SromOpStream) # If no pending bind, nothing to flush if ((_bind = get(opstream, p_pending_bind)) == null) return # Check the per-variable bind count to determine whether # we can encode an implicit bind. # # If there have been any explicit bind statements, implicit binding # cannot be used. _bind_total = get(opstream, p_bind_total) if (allow_implicit && _bind_total > 0) { # Disable implicit encoding; explicit bind statements have # been issued for this variable previously. allow_implicit = 0 } # Increment bind count set(opstream, p_bind_total, _bind_total + 1) # Clear the property value set(opstream, p_pending_bind, null) # If a pending bind operation can be encoded as an implicit bind, # emit a descriptive comment and update the stream state. # # Otherwise, emit the full set of bind opcode(s) _base_off = get(opstream, p_offset) if (allow_implicit && srom_opbind_is_implicit_encodable(_bind)) { # Update stream's input offset _srom_ops_apply_bind_offset(opstream, _bind) } else { _srom_ops_emit_bind(opstream, _bind) } # Provide bind information as a comment srom_ops_emit(opstream, sprintf("/* bind (%s @ %#x -> %#x) */\n", type_to_string(get(opstream, p_type)), _base_off, get(opstream, p_offset))) # Clean up obj_delete(_bind) } # Write OPCODE_EOF after flushing any buffered writes function srom_ops_emit_eof(opstream) { obj_assert_class(opstream, SromOpStream) # Flush any buffered writes srom_ops_flush_bind(opstream, 1) # Emit an explicit VAR_END opcode for the last entry srom_ops_emit_opcode(opstream, SPROM_OPCODE_VAR_END) # Emit EOF srom_ops_emit_opcode(opstream, SPROM_OPCODE_EOF) } # Write the SROM offset segment bindings to the opstream function write_srom_offset_bindings(opstream, offsets, _noffsets, _offset, _segs, _nsegs, _segment, _cont, _i, _j) { _noffsets = array_size(offsets) for (_i = 0; _i < _noffsets; _i++) { # Encode each segment in this offset _offset = array_get(offsets, _i) _segs = get(_offset, p_segments) _nsegs = array_size(_segs) for (_j = 0; _j < _nsegs; _j++) { _segment = array_get(_segs, _j) _cont = 0 # Should this value be OR'd with the next segment? if (_j+1 < _nsegs) _cont = 1 # Encode segment srom_ops_emit_segment(opstream, _segment, _cont) } } } # Write the SROM entry stream for a SROM entry to the output file function write_srom_entry_bindings(entry, opstream, _var, _vid, _var_type, _entry_type, _offsets, _noffsets) { _var = get(entry, p_var) _vid = get(_var, p_vid) # Encode revision switch. This resets variable state, so must # occur before any variable definitions to which it applies srom_ops_emit_revisions(opstream, get(entry, p_revisions)) # Encode variable ID srom_ops_reset_var(opstream, _var, _vid) output_depth++ # Write entry-specific array length (SROM layouts may define array # mappings with fewer elements than in the variable definition) if (srom_entry_has_array_type(entry)) { _var_type = get(_var, p_type) _entry_type = get(entry, p_type) # If the array length differs from the variable default, # write an OPCODE_EXT_NELEM entry if (type_get_nelem(_var_type) != type_get_nelem(_entry_type)) { srom_ops_emit_opcode(opstream, SPROM_OPCODE_NELEM, srom_entry_get_array_len(entry)) } } # Write offset segment bindings _offsets = get(entry, p_offsets) write_srom_offset_bindings(opstream, _offsets) output_depth-- } # Write a SROM layout binding opcode table to the output file function write_srom_bindings(layout, _varname, _var, _all_entries, _nall_entries, _entries, _nentries, _entry, _opstream, _i) { _varname = srom_layout_get_variable_name(layout) _all_entries = get(layout, p_entries) _opstream = srom_ops_new(layout) # # Collect all entries to be included in the output, and then # sort by their variable's assigned ID (ascending). # # The variable IDs were previously assigned in lexigraphical sort # order; since the variable *offsets* tend to match this order, this # works out well for our compact encoding, allowing us to make use of # compact relative encoding of both variable IDs and variable offsets. # _entries = array_new() _nall_entries = array_size(_all_entries) for (_i = 0; _i < _nall_entries; _i++) { _entry = array_get(_all_entries, _i) _var = get(_entry, p_var) # Skip internal variables if (var_is_internal(_var)) continue # Sanity check variable ID assignment if (get(_var, p_vid) == "") errorx("missing variable ID for " obj_to_string(_var)) array_append(_entries, _entry) } # Sort entries by (variable ID, revision range), ascending array_sort(_entries, prop_path_create(p_var, p_vid), prop_path_create(p_revisions, p_start), prop_path_create(p_revisions, p_end)) # Emit all entry binding opcodes emit("static const uint8_t " _varname "[] = {\n") output_depth++ _nentries = array_size(_entries) for (_i = 0; _i < _nentries; _i++) { _entry = array_get(_entries, _i) write_srom_entry_bindings(_entry, _opstream) } # Flush and write EOF srom_ops_emit_eof(_opstream) output_depth-- emit("};\n") obj_delete(_opstream) obj_delete(_entries) } # Write the BHND_NVAR__ID #defines to the output file function write_data_defines(output_vars, _noutput_vars, _tab_align, _var, _macro, _macros, _num_macros, _i) { # Produce our array of #defines _num_macros = 0 _noutput_vars = array_size(output_vars) for (_i = 0; _i < _noutput_vars; _i++) { _var = array_get(output_vars, _i) # Variable ID _macro = var_get_macro(_var, MTypeVarID, get(_var, p_vid)) _macros[_num_macros++] = _macro } # Calculate value tab alignment position for our macros _tab_align = macros_get_tab_alignment(_macros, _num_macros) # Write the #defines emit("/* ID constants provide an index into the variable array */\n") for (_i = 0; _i < _num_macros; _i++) write_macro_define(_macros[_i], _tab_align) emit("\n\n"); } # Calculate the common tab alignment to be used with a set of prefix strings # with the given maximum length function tab_alignment(max_len, _tab_align) { _tab_align = max_len _tab_align += (TAB_WIDTH - (_tab_align % TAB_WIDTH)) % TAB_WIDTH _tab_align /= TAB_WIDTH return (_tab_align) } # Generate and return a tab string that can be appended to a string of # `strlen` to pad the column out to `align_to` # # Note: If the string from which strlen was derived contains tabs, the result # is undefined function tab_str(strlen, align_to, _lead, _pad, _result, _i) { _lead = strlen _lead -= (_lead % TAB_WIDTH); _lead /= TAB_WIDTH; # Determine required padding to reach the desired alignment if (align_to >= _lead) _pad = align_to - _lead; else _pad = 1; for (_i = 0; _i < _pad; _i++) _result = _result "\t" return (_result) } # Write a MacroDefine constant, padding the constant out to `align_to` function write_macro_define(macro, align_to, _tabstr, _i) { # Determine required padding to reach the desired alignment _tabstr = tab_str(length(get(macro, p_name)), align_to) emit("#define\t" get(macro, p_name) _tabstr get(macro, p_value) "\n") } # Calculate the tab alignment to be used with a given integer-indexed array # of Macro instances. function macros_get_tab_alignment(macros, macros_len, _macro, _max_len, _i) { _max_len = 0 for (_i = 0; _i < macros_len; _i++) { _macro = macros[_i] _max_len = max(_max_len, length(get(_macro, p_name))) } return (tab_alignment(_max_len)) } # Variable group block $1 == "group" && in_parser_context(NVRAM) { parse_variable_group() } # Variable definition (($1 ~ VACCESS_REGEX && $2 ~ TYPES_REGEX) || $1 ~ TYPES_REGEX) && in_parser_context(SymbolContext) \ { parse_variable_defn() } # Variable "fmt" parameter $1 == "fmt" && in_parser_context(Var) { parse_variable_param($1) next } # Variable "all1" parameter $1 == "all1" && in_parser_context(Var) { parse_variable_param($1) next } # Variable desc/help parameters ($1 == "desc" || $1 == "help") && in_parser_context(Var) { parse_variable_param($1) next } # SROM layout block $1 == "srom" && in_parser_context(NVRAM) { parse_srom_layout() } # SROM layout revision filter block $1 == "srom" && in_parser_context(SromLayout) { parse_srom_layout_filter() } # SROM layout variable entry $1 ~ "("OFF_REGEX"):$" && \ (in_parser_context(SromLayout) || in_parser_context(SromLayoutFilter)) \ { parse_srom_variable_entry() } # SROM entry segment $1 ~ "("REL_OFF_REGEX"|"OFF_REGEX")[:,|]?" && in_parser_context(SromEntry) { parse_srom_entry_segments() } # Skip comments and blank lines /^[ \t]*#/ || /^$/ { next } # Close blocks /}/ && !in_parser_context(NVRAM) { while (!in_parser_context(NVRAM) && $0 ~ "}") { parser_state_close_block(); } next } # Report unbalanced '}' /}/ && in_parser_context(NVRAM) { error("extra '}'") } # Invalid variable type $1 && in_parser_context(SymbolContext) { error("unknown type '" $1 "'") } # Generic parse failure { error("unrecognized statement") } # Create a class instance with the given name function class_new(name, superclass, _class) { if (_class != null) errorx("class_get() must be called with one or two arguments") # Look for an existing class instance if (name in _g_class_names) errorx("redefining class: " name) # Create and register the class object _class = obj_new(superclass) _g_class_names[name] = _class _g_obj[_class,OBJ_IS_CLS] = 1 _g_obj[_class,CLS_NAME] = name return (_class) } # Return the class instance with the given name function class_get(name) { if (name in _g_class_names) return (_g_class_names[name]) errorx("no such class " name) } # Return the name of cls function class_get_name(cls) { if (cls == null) { warnx("class_get_name() called with null class") return "" } if (!obj_is_class(cls)) errorx(cls " is not a class object") return (_g_obj[cls,CLS_NAME]) } # Return true if the given property property ID is defined on class function class_has_prop_id(class, prop_id, _super) { if (_super != null) errorx("class_has_prop_id() must be called with two arguments") if (class == null) return (0) if (prop_id == null) return (0) # Check class<->prop cache if ((class, prop_id) in _g_class_prop_cache) return (1) # Otherwise, slow path if (!obj_is_class(class)) errorx(class " is not a class object") if (_super != null) errorx("class_has_prop_id() must be called with two arguments") for (_super = class; _super != null; _super = obj_get_class(_super)) { if (!((_super,CLS_PROP,prop_id) in _g_obj)) continue # Found; add to class<->prop cache _g_class_prop_cache[class,prop_id] = 1 return (1) } return (0) } # Return true if the given property prop is defined on class function class_has_property(class, prop) { if (!(PROP_ID in prop)) return (0) return (class_has_prop_id(class, prop[PROP_ID])) } # Define a `prop` on `class` with the given `name` string function class_add_prop(class, prop, name, _prop_id) { if (_prop_id != null) errorx("class_add_prop() must be called with three arguments") # Check for duplicate property definition if (class_has_property(class, prop)) errorx("property " prop[PROP_NAME] " already defined on " \ class_get_name(class)) # Init property IDs if (_g_prop_ids == null) _g_prop_ids = 1 # Get (or create) new property entry if (name in _g_prop_names) { _prop_id = _g_prop_names[name] } else { _prop_id = _g_prop_ids++ _g_prop_names[name] = _prop_id _g_props[_prop_id] = name prop[PROP_NAME] = name prop[PROP_ID] = _prop_id } # Add to class definition _g_obj[class,CLS_PROP,prop[PROP_ID]] = name return (name) } # Return the property ID for a given class-defined property function class_get_prop_id(class, prop) { if (class == null) errorx("class_get_prop_id() on null class") if (!class_has_property(class, prop)) { errorx("requested undefined property '" prop[PROP_NAME] "on " \ class_get_name(class)) } return (prop[PROP_ID]) } # Return the property ID for a given class-defined property name function class_get_named_prop_id(class, name, _prop_id) { if (class == null) errorx("class_get_prop_id() on null class") if (!(name in _g_prop_names)) errorx("requested undefined property '" name "'") _prop_id = _g_prop_names[name] if (!class_has_prop_id(class, _prop_id)) { errorx("requested undefined property '" _g_props[_prop_id] \ "' on " class_get_name(class)) } return (_prop_id) } # Create a new instance of the given class function obj_new(class, _obj) { if (_obj != null) errorx("obj_new() must be called with one argument") if (_g_obj_ids == null) _g_obj_ids = 1 # Assign ID and set superclass _obj = _g_obj_ids++ _g_obj[_obj,OBJ_SUPER] = class return (_obj) } # obj_delete() support for Map instances function _obj_delete_map(obj, _prefix, _key) { obj_assert_class(obj, Map) _prefix = "^" obj SUBSEP for (_key in _g_maps) { if (!match(_key, _prefix) && _key != obj) continue delete _g_maps[_key] } } # obj_delete() support for Array instances function _obj_delete_array(obj, _size, _i) { obj_assert_class(obj, Array) _size = array_size(obj) for (_i = 0; _i < _size; _i++) delete _g_arrays[obj,OBJ_PROP,_i] } # Destroy all metadata associated with the given object function obj_delete(obj, _prop_id, _prop_name, _prefix, _key, _size, _i) { if (obj_is_class(obj)) errorx("cannot delete class objects") # Handle classes that use external global array storage # for effeciency if (obj_is_instanceof(obj, Map)) { _obj_delete_map(obj) } else if (obj_is_instanceof(obj, Array)) { _obj_delete_array(obj) } # Delete all object properties for (_prop_name in _g_prop_names) { if (!obj_has_prop_id(obj, _prop_id)) continue _prop_id = _g_prop_names[_prop_name] delete _g_obj[obj,OBJ_PROP,_prop_id] delete _g_obj_nr[obj,OBJ_PROP,_prop_id] } # Delete instance state delete _g_obj[obj,OBJ_IS_CLS] delete _g_obj[obj,OBJ_SUPER] } # Print an object's unique ID, class, and properties to # stdout function obj_dump(obj, _pname, _prop_id, _prop_val) { print(class_get_name(obj_get_class(obj)) "<" obj ">:") # Dump all properties for (_pname in _g_prop_names) { _prop_id = _g_prop_names[_pname] if (!obj_has_prop_id(obj, _prop_id)) continue _prop_val = prop_get(obj, _prop_id) printf("\t%s: %s\n", _pname, _prop_val) } } # Return true if obj is a class object function obj_is_class(obj) { return (_g_obj[obj,OBJ_IS_CLS] == 1) } # Return the class of obj, if any. function obj_get_class(obj) { if (obj == null) errorx("obj_get_class() on null object") return (_g_obj[obj,OBJ_SUPER]) } # Return true if obj is an instance of the given class function obj_is_instanceof(obj, class, _super) { if (_super != null) errorx("obj_is_instanceof() must be called with two arguments") if (!obj_is_class(class)) errorx(class " is not a class object") if (obj == null) { errorx("obj_is_instanceof() called with null obj (class " \ class_get_name(class) ")") } for (_super = obj_get_class(obj); _super != null; _super = obj_get_class(_super)) { if (_super == class) return (1) } return (0) } # Default object shallow equality implementation. Returns true if the two # objects share a common superclass and have identity equality across all defined # properties. function obj_trivially_equal(lhs, rhs, _class, _pname, _prop_id) { # Simple case if (lhs == rhs) return (1) # Must share a common superclass _class = obj_get_class(lhs) if (_class != obj_get_class(rhs)) return (0) # Compare all properties _prop_count = 0 for (_pname in _g_prop_names) { _prop_id = _g_prop_names[_pname] if (!class_has_prop_id(_class, _prop_id)) continue if (prop_get(lhs, _prop_id) != prop_get(rhs, _prop_id)) return (0) } # All properties are trivially equal return (1) } # Return a debug string representation of an object's unique ID, class, and # properties function obj_to_string(obj, _pname, _prop_id, _prop_val, _prop_count, _result) { _result = class_get_name(obj_get_class(obj)) "<" obj ">: { " # Fetch all properties _prop_count = 0 for (_pname in _g_prop_names) { _prop_id = _g_prop_names[_pname] if (!obj_has_prop_id(obj, _prop_id)) continue if (_prop_count >= 0) _result = _result ", " _result = _result sprintf("\t%s: %s\n", _pname, _prop_val) _prop_count++ } return (_result " }") } # Assert that obj is an instance of the given class function obj_assert_class(obj, class) { if (!obj_is_instanceof(obj, class)) { errorx(class_get_name(obj_get_class(obj)) "<" obj "> is not " \ "an instance of " class_get_name(class)) } } # Return true if the given property prop is defined by the object's superclass function obj_has_property(obj, prop, _class) { if (obj == null) errorx("obj_has_property() on null object") _class = obj_get_class(obj) return (class_has_property(_class, prop)) } # Return true if the given property ID is defined by the object's superclass function obj_has_prop_id(obj, prop_id, _class) { if (obj == null) errorx("obj_has_prop_id() on null object") _class = obj_get_class(obj) return (class_has_prop_id(_class, prop_id)) } # Return the line (NR) at which a given property ID was set on the object # Will throw an error if the property has not been set on obj function obj_get_prop_id_nr(obj, prop_id) { if (obj == null) errorx("obj_get_prop_id_nr() on null object") if (!obj_has_prop_id(obj, prop_id)) { errorx("requested undefined property '" _g_props[prop_id] \ "' (" prop_id ") on " obj_to_string(obj)) } # Fetch NR if ((obj,OBJ_PROP,prop_id) in _g_obj_nr) return (_g_obj_nr[obj,OBJ_PROP,prop_id]) errorx("property '" _g_props[prop_id] "' (" prop_id ") not " \ "previously set on " obj_to_string(obj)) } # Return the line (NR) at which a given property was set on the object # Will throw an error if the property has not been set on obj function obj_get_prop_nr(obj, prop) { return (obj_get_prop_id_nr(obj, prop[PROP_ID])) } # Return an abstract property ID for a given property function obj_get_prop_id(obj, prop) { if (obj == null) errorx("obj_get_prop_id() on null object") return (class_get_prop_id(obj_get_class(obj), prop)) } # Return the property ID for a given property name function obj_get_named_prop_id(obj, name) { if (obj == null) errorx("obj_get_named_prop_id() on null object") return (class_get_named_prop_id(obj_get_class(obj), name)) } # Set a property on obj function set(obj, prop, value, _class) { return (prop_set(obj, prop[PROP_ID], value)) } # Get a property value defined on obj function get(obj, prop, _class) { return (prop_get(obj, prop[PROP_ID])) } # Set a property on obj, using a property ID returned by obj_get_prop_id() or # class_get_prop_id() function prop_set(obj, prop_id, value, _class) { if (obj == null) { errorx("setting property '" _g_props[prop_id] \ "' on null object") } _class = obj_get_class(obj) if (_class == null) errorx(obj " has no superclass") if (!class_has_prop_id(_class, prop_id)) { errorx("requested undefined property '" _g_props[prop_id] \ "' (" prop_id ") on " class_get_name(_class)) } # Track the line on which the property was set _g_obj_nr[obj,OBJ_PROP,prop_id] = NR _g_obj[obj,OBJ_PROP,prop_id] = value } # Convert a property ID to a property path. function prop_id_to_path(prop_id) { if (!(prop_id in _g_props)) errorx("'" prop_id "' is not a property ID") # Convert to path string representation return (""prop_id) } # Convert a property to a property path. function prop_to_path(prop) { if (!(PROP_ID in prop)) errorx("prop_to_path() called with non-property head") return (prop_id_to_path(prop[PROP_ID])) } # Create a property path from head and tail properties # Additional properties may be appended via prop_path_append() or # prop_path_append_id() function prop_path_create(head, tail) { if (!(PROP_ID in head)) errorx("prop_path() called with non-property head") if (!(PROP_ID in tail)) errorx("prop_path() called with non-property tail") return (head[PROP_ID] SUBSEP tail[PROP_ID]) } # Append a property to the given property path function prop_path_append(path, tail) { if (!(PROP_ID in tail)) errorx("prop_path_append() called with non-property tail") return (prop_path_append_id(path, tail[PROP_ID])) } # Append a property ID to the given property path function prop_path_append_id(path, tail_id) { if (!(tail_id in _g_props)) errorx("'" tail_id "' is not a property ID") return (path SUBSEP tail_id) } # Fetch a value from obj using a property path previously returned by # prop_path_create(), prop_to_path(), etc. function prop_get_path(obj, prop_path, _class, _prop_ids, _nprop_ids, _next, _prop_head, _prop_len, _prop_tail) { if (obj == null) { errorx("requested property path '" \ gsub(SUBSEP, ".", prop_path) "' on null object") } # Try the cache first _class = obj_get_class(obj) if ((_class,prop_path,PPATH_HEAD) in _g_ppath_cache) { _prop_head = _g_ppath_cache[_class,prop_path,PPATH_HEAD] _next = prop_get(obj, _prop_head) if ((_class,prop_path,PPATH_TAIL) in _g_ppath_cache) { _prop_tail = _g_ppath_cache[_class,prop_path,PPATH_TAIL] return (prop_get_path(_next, _prop_tail)) } return (_next) } # Parse the head/tail of the property path and add to cache _nprop_ids = split(prop_path, _prop_ids, SUBSEP) if (_nprop_ids == 0) errorx("empty property path") _prop_head = _prop_ids[1] _g_ppath_cache[_class,prop_path,PPATH_HEAD] = _prop_head if (_nprop_ids > 1) { _prop_len = length(_prop_head) _prop_tail = substr(prop_path, _prop_len+2) # Add to cache _g_ppath_cache[_class,prop_path,PPATH_TAIL] = _prop_tail } # Recursively call out implementation, this time fetching from # cache return (prop_get_path(obj, prop_path)) } # Fetch a value property value from obj, using a property ID returned by # obj_get_prop_id() or class_get_prop_id() function prop_get(obj, prop_id, _class) { if (obj == null) { errorx("requested property '" _g_props[prop_id] \ "' on null object") } _class = obj_get_class(obj) if (_class == null) errorx(obj " has no superclass") if (!class_has_prop_id(_class, prop_id)) { errorx("requested undefined property '" _g_props[prop_id] \ "' (" prop_id ") on " class_get_name(_class)) } return (_g_obj[obj,OBJ_PROP,prop_id]) } # Create a new MacroType instance function macro_type_new(name, const_suffix, _obj) { _obj = obj_new(MacroType) set(_obj, p_name, name) set(_obj, p_const_suffix, const_suffix) return (_obj) } # Create a new MacroDefine instance function macro_new(name, value, _obj) { _obj = obj_new(MacroDefine) set(_obj, p_name, name) set(_obj, p_value, value) return (_obj) } # Create an empty array; this uses _g_arrays to store integer # keys/values under the object's property prefix. function array_new(_obj) { _obj = obj_new(Array) set(_obj, p_count, 0) return (_obj) } # Return the number of elements in the array function array_size(array) { obj_assert_class(array, Array) return (get(array, p_count)) } # Return true if the array is empty function array_empty(array) { return (array_size(array) == 0) } # Append a value to the array function array_append(array, value, _i) { obj_assert_class(array, Array) _i = get(array, p_count) _g_arrays[array,OBJ_PROP,_i] = value set(array, p_count, _i+1) } # Set an array value # An error will be thrown if the idx is outside array bounds function array_set(array, idx, value) { obj_assert_class(array, Array) if (!((array,OBJ_PROP,idx) in _g_arrays)) errorx(idx " out of range of array " obj_to_string(array)) _g_arrays[array,OBJ_PROP,idx] = value } # Return value at the given index from the array # An error will be thrown if 'idx' is outside the array bounds function array_get(array, idx) { obj_assert_class(array, Array) if (!((array,OBJ_PROP,idx) in _g_arrays)) errorx(idx " out of range of array " obj_to_string(array)) return (_g_arrays[array,OBJ_PROP,idx]) } # # Sort an array, using standard awk comparison operators over its values. # # If `prop_path*` is non-NULL, the corresponding property path (or property ID) # will be fetched from each array element and used as the sorting value. # # If multiple property paths are specified, the array is first sorted by # the first path, and then any equal values are sorted by the second path, # and so on. # function array_sort(array, prop_path0, prop_path1, prop_path2, _size) { obj_assert_class(array, Array) if (_size != null) errorx("no more than three property paths may be specified") _size = array_size(array) if (_size <= 1) return _qsort(array, prop_path0, prop_path1, prop_path2, 0, _size-1) } function _qsort_get_key(array, idx, prop_path, _v) { _v = array_get(array, idx) if (prop_path == null) return (_v) return (prop_get_path(_v, prop_path)) } function _qsort_compare(array, lhs_idx, rhs_val, ppath0, ppath1, ppath2, _lhs_val, _rhs_prop_val) { _lhs_val = _qsort_get_key(array, lhs_idx, ppath0) if (ppath0 == null) _rhs_prop_val = rhs_val else _rhs_prop_val = prop_get_path(rhs_val, ppath0) if (_lhs_val == _rhs_prop_val && ppath1 != null) { _lhs_val = _qsort_get_key(array, lhs_idx, ppath1) _rhs_prop_val = prop_get_path(rhs_val, ppath1) if (_lhs_val == _rhs_prop_val && ppath2 != null) { _lhs_val = _qsort_get_key(array, lhs_idx, ppath2) _rhs_prop_val = prop_get_path(rhs_val, ppath2) } } if (_lhs_val < _rhs_prop_val) return (-1) else if (_lhs_val > _rhs_prop_val) return (1) else return (0) } function _qsort(array, ppath0, ppath1, ppath2, first, last, _qpivot, _qleft, _qleft_val, _qright, _qright_val) { if (first >= last) return # select pivot element _qpivot = int(first + int((last-first+1) * rand())) _qleft = first _qright = last _qpivot_val = array_get(array, _qpivot) # partition while (_qleft <= _qright) { while (_qsort_compare(array, _qleft, _qpivot_val, ppath0, ppath1, ppath2) < 0) { _qleft++ } while (_qsort_compare(array, _qright, _qpivot_val, ppath0, ppath1, ppath2) > 0) { _qright-- } # swap if (_qleft <= _qright) { _qleft_val = array_get(array, _qleft) _qright_val = array_get(array, _qright) array_set(array, _qleft, _qright_val) array_set(array, _qright, _qleft_val) _qleft++ _qright-- } } # sort the partitions _qsort(array, ppath0, ppath1, ppath2, first, _qright) _qsort(array, ppath0, ppath1, ppath2, _qleft, last) } # # Join all array values with the given separator # # If `prop_path` is non-NULL, the corresponding property path (or property ID) # will be fetched from each array value and included in the result, rather than # immediate array value # function array_join(array, sep, prop_path, _i, _size, _value, _result) { obj_assert_class(array, Array) _result = "" _size = array_size(array) for (_i = 0; _i < _size; _i++) { # Fetch the value (and optionally, a target property) _value = array_get(array, _i) if (prop_path != null) _value = prop_get_path(_value, prop_path) if (_i+1 < _size) _result = _result _value sep else _result = _result _value } return (_result) } # Return the first value in the array, or null if empty function array_first(array) { obj_assert_class(array, Array) if (array_size(array) == 0) return (null) else return (array_get(array, 0)) } # Return the last value in the array, or null if empty function array_tail(list, _size) { obj_assert_class(array, Array) _size = array_size(array) if (_size == 0) return (null) else return (array_get(array, _size-1)) } # Create an empty hash table; this uses the _g_maps array to store arbitrary # keys/values under the object's property prefix. function map_new(_obj) { _obj = obj_new(Map) return (_obj) } # Add `key` with `value` to `map` function map_set(map, key, value) { obj_assert_class(map, Map) _g_maps[map,OBJ_PROP,key] = value } # Remove `key` from the map function map_remove(map, key) { obj_assert_class(map, Map) delete _g_maps[map,OBJ_PROP,key] } # Return true if `key` is found in `map`, false otherwise function map_contains(map, key) { obj_assert_class(map, Map) return ((map,OBJ_PROP,key) in _g_maps) } # Fetch the value of `key` from the map. Will throw an error if the # key does not exist function map_get(map, key) { obj_assert_class(map, Map) return _g_maps[map,OBJ_PROP,key] } # Create and return a new list containing all defined values in `map` function map_to_array(map, _key, _prefix, _values) { obj_assert_class(map, Map) _values = array_new() _prefix = "^" map SUBSEP OBJ_PROP SUBSEP for (_key in _g_maps) { if (!match(_key, _prefix)) continue array_append(_values, _g_maps[_key]) } return (_values) } # Create a new Type instance function type_new(name, width, signed, constant, array_constant, fmt, mask, constant_value, array_constant_value, _obj) { obj_assert_class(fmt, Fmt) _obj = obj_new(Type) set(_obj, p_name, name) set(_obj, p_width, width) set(_obj, p_signed, signed) set(_obj, p_const, constant) set(_obj, p_const_val, constant_value) set(_obj, p_array_const, array_constant) set(_obj, p_array_const_val, array_constant_value) set(_obj, p_default_fmt, fmt) set(_obj, p_mask, mask) return (_obj) } # Return true if two types are equal function type_equal(lhs, rhs) { # Simple case if (lhs == rhs) return (1) # Must share a common class if (obj_get_class(lhs) != obj_get_class(rhs)) return (0) # Handle ArrayType equality if (obj_is_instanceof(lhs, ArrayType)) { # Size must be equal if (get(lhs, p_count) != get(rhs, p_count)) return (0) # The base types must be equal return (type_equal(type_get_base(lhs), type_get_base(rhs))) } # Handle Type equality -- we just check for trivial identity # equality of all members obj_assert_class(lhs, Type) return (obj_trivially_equal(lhs, rhs)) } # Return the type's default value mask. If the type is an array type, # the default mask of the base type will be returned. function type_get_default_mask(type) { if (obj_is_instanceof(type, ArrayType)) return (type_get_default_mask(type_get_base(type))) obj_assert_class(type, Type) return (get(type, p_mask)) } # Return the type's C constant representation function type_get_const(type) { if (obj_is_instanceof(type, ArrayType)) return (get(type_get_base(type), p_array_const)) obj_assert_class(type, Type) return (get(type, p_const)) } # Return the type's C constant integer value function type_get_const_val(type) { if (obj_is_instanceof(type, ArrayType)) return (get(type_get_base(type), p_array_const_val)) obj_assert_class(type, Type) return (get(type, p_const_val)) } # Return an array type's element count, or 1 if the type is not # an array type function type_get_nelem(type) { if (obj_is_instanceof(type, ArrayType)) return (get(type, p_count)) obj_assert_class(type, Type) return (1) } # Return the base type for a given type instance. function type_get_base(type) { if (obj_is_instanceof(type, ArrayType)) return (type_get_base(get(type, p_type))) obj_assert_class(type, Type) return (type) } # Return the default fmt for a given type instance function type_get_default_fmt(type, _base, _fmt, _array_fmt) { _base = type_get_base(type) _fmt = get(_base, p_default_fmt) if (obj_is_instanceof(type, ArrayType)) { _array_fmt = get(_fmt, p_array_fmt) if (_array_fmt != null) _fmt = _array_fmt } return (_fmt) } # Return a string representation of the given type function type_to_string(type, _base_type) { if (obj_is_instanceof(type, ArrayType)) { _base_type = type_get_base(type) return (type_to_string(_base_type) "[" get(type, p_count) "]") } return get(type, p_name) } # Return true if type `rhs` is can be coerced to type `lhs` without data # loss function type_can_represent(lhs, rhs) { # Must be of the same class (Type or ArrayType) if (obj_get_class(lhs) != obj_get_class(rhs)) return (0) if (obj_is_instanceof(lhs, ArrayType)) { # The base types must have a representable relationship if (!type_can_represent(type_get_base(lhs), type_get_base(rhs))) return (0) # The lhs type must be able to represent -at least- as # many elements as the RHS type if (get(lhs, p_count) < get(rhs, p_count)) return (0) return (1) } # A signed type could represent the full range of a smaller unsigned # type, but we don't bother; the two should agree when used in a SROM # layout. Instead simply assert that both are signed or unsigned. if (get(lhs, p_signed) != get(rhs, p_signed)) return (0) # The `rhs` type must be equal or smaller in width to the `lhs` type if (get(lhs, p_width) < get(rhs, p_width)) return (0) return (1) } # Create a new ArrayType instance function array_type_new(type, count, _obj) { _obj = obj_new(ArrayType) set(_obj, p_type, type) set(_obj, p_count, count) return (_obj) } # # Parse a type string to either the Type, ArrayType, or null if # the type is not recognized. # function parse_type_string(str, _base, _count) { if (match(str, ARRAY_REGEX"$") > 0) { # Extract count and base type _count = substr(str, RSTART+1, RLENGTH-2) sub(ARRAY_REGEX"$", "", str) # Look for base type if ((_base = type_named(str)) == null) return (null) return (array_type_new(_base, int(_count))) } else { return (type_named(str)) } } # # Parse a variable name in the form of 'name' or 'name[len]', returning # either the provided base_type if no array specifiers are found, or # the fully parsed ArrayType. # function parse_array_type_specifier(str, base_type, _count) { if (match(str, ARRAY_REGEX"$") > 0) { # Extract count _count = substr(str, RSTART+1, RLENGTH-2) return (array_type_new(base_type, int(_count))) } else { return (base_type) } } # Return the type constant for `name`, if any function type_named(name, _n, _type) { if (name == null) errorx("called type_named() with null name") if (map_contains(BaseTypes, name)) return (map_get(BaseTypes, name)) return (null) } # Create a new Fmt instance function fmt_new(name, symbol, array_fmt, _obj) { _obj = obj_new(Fmt) set(_obj, p_name, name) set(_obj, p_symbol, symbol) if (array_fmt != null) set(_obj, p_array_fmt, array_fmt) return (_obj) } # Return the Fmt constant for `name`, if any function fmt_named(name, _n, _fmt) { if (map_contains(ValueFormats, name)) return (map_get(ValueFormats, name)) return (null) } # Create a new VFlag instance function vflag_new(name, constant, _obj) { _obj = obj_new(VFlag) set(_obj, p_name, name) set(_obj, p_const, constant) return (_obj) } # Create a new StringConstant AST node function stringconstant_new(value, continued, _obj) { _obj = obj_new(StringConstant) set(_obj, p_value, value) set(_obj, p_continued, continued) set(_obj, p_line, NR) return (_obj) } # Create an empty StringConstant AST node to which additional lines # may be appended function stringconstant_empty(_obj) { return (stringconstant_new("", 1)) } # Parse an input string and return a new string constant # instance function stringconstant_parse_line(line, _obj) { _obj = stringconstant_empty() stringconstant_append_line(_obj, line) return (_obj) } # Parse and apend an additional line to this string constant function stringconstant_append_line(str, line, _cont, _strbuf, _regex, _eol) { obj_assert_class(str, StringConstant) # Must be marked for continuation if (!get(str, p_continued)) { errorx("can't append to non-continuation string '" \ get(str, p_value) "'") } _strbuf = get(str, p_value) # If start of string, look for (and remove) initial double quote if (_strbuf == null) { _regex = "^[ \t]*\"" if (!sub(_regex, "", line)) { error("expected quoted string") } } # Look for a terminating double quote _regex = "([^\"\\\\]*(\\\\.[^\"\\\\]*)*)\"" _eol = match(line, _regex) if (_eol > 0) { # Drop everything following the terminating quote line = substr(line, 1, RLENGTH-1) _cont = 0 } else { # No terminating quote found, continues on next line _cont = 1 } # Trim leading and trailing whitespace sub(/(^[ \t]+|[ \t]+$)/, "", line) # Append to existing buffer if ((_strbuf = get(str, p_value)) == NULL) set(str, p_value, line) else set(str, p_value, _strbuf " " line) # Update line continuation setting set(str, p_continued, _cont) } # Create a new RevRange instance function revrange_new(start, end, _obj) { _obj = obj_new(RevRange) set(_obj, p_start, start) set(_obj, p_end, end) set(_obj, p_line, NR) return (_obj) } # Return true if the two revision ranges are equal function revrange_equal(lhs, rhs) { if (get(lhs, p_start) != get(rhs, p_start)) return (0) if (get(lhs, p_end) != get(rhs, p_end)) return (0) return (1) } # Return true if the requested rev is covered by revrange, false otherwise function revrange_contains(range, rev) { obj_assert_class(range, RevRange) if (rev < get(range, p_start)) return (0) else if (rev > get(range, p_end)) { return (0) } else { return (1) } } # # Return a string representation of the given revision range # function revrange_to_string(revs, _start, _end) { obj_assert_class(revs, RevRange) _start = get(revs, p_start) _end = get(revs, p_end) if (_start == 0) return ("<= " _end) else if (_end == REV_MAX) return (">= " _start) else return (_start "-" _end) } # Create a new VarGroup instance function var_group_new(name, _obj) { _obj = obj_new(VarGroup) set(_obj, p_name, name) set(_obj, p_vars, array_new()) set(_obj, p_line, NR) return (_obj) } # Create a new NVRAM instance function nvram_new(_obj, _vars, _v) { _obj = obj_new(NVRAM) _vars = array_new() set(_obj, p_vars, _vars) set(_obj, p_var_groups, array_new()) set(_obj, p_srom_layouts, array_new()) set(_obj, p_srom_table, map_new()) # # Register our implicit variable definitions # # SROM signature offset _v = var_new(VAccessInternal, "", UInt16) array_append(_vars, _v) _g_var_names[get(_v, p_name)] = _v # SROM CRC8 offset _v = var_new(VAccessInternal, "", UInt8) array_append(_vars, _v) _g_var_names[get(_v, p_name)] = _v return (_obj) } # Register a new SROM layout instance # An error will be thrown if the layout overlaps any revisions covered # by an existing instance. function nvram_add_srom_layout(nvram, layout, _table, _revs, _start, _end, _i) { obj_assert_class(nvram, NVRAM) obj_assert_class(layout, SromLayout) # revision:layout hash table _table = get(nvram, p_srom_table) # register the layout's revisions _revs = get(layout, p_revisions) _start = get(_revs, p_start) _end = get(_revs, p_end) for (_i = _start; _i <= _end; _i++) { if (map_contains(_table, _i)) { error("SROM layout redeclares layout for revision '" \ _i "' (originally declared on line " \ get(map_get(_table, _i), p_line) ")") } map_set(_table, _i, layout) } # append to srom_layouts array_append(get(nvram, p_srom_layouts), layout) } # Return the first SROM layout registered for a given SROM revision, # or null if no matching layout is found function nvram_get_srom_layout(nvram, revision, _layouts, _nlayouts, _layout, _i) { obj_assert_class(nvram, NVRAM) _layouts = get(nvram, p_srom_layouts) _nlayouts = array_size(_layouts) for (_i = 0; _i < _nlayouts; _i++) { _layout = array_get(_layouts, _i) if (srom_layout_has_rev(_layout, revision)) return (_layout) } # Not found return (null) } # Create a new Var instance function var_new(access, name, type, _obj) { obj_assert_class(access, VAccess) # Validate the variable identifier # # The access modifier dictates the permitted identifier format. # VAccessInternal: # VAccess(Public|Private): ident if (access != VAccessInternal && name ~ SVAR_IDENT_REGEX) { error("invalid identifier '"name"'; did you mean to " \ "mark this variable as internal?") } else if (access == VAccessInternal) { if (name !~ SVAR_IDENT_REGEX) error("invalid identifier '"name"' for internal " \ "variable; did you mean '<" name ">'?") } else if (name !~ VAR_IDENT_REGEX) { error("invalid identifier '"name"'") } _obj = obj_new(Var) set(_obj, p_access, access) set(_obj, p_name, name) set(_obj, p_type, type) set(_obj, p_line, NR) return (_obj) } # Return true if var is internal-only, and should not be included # in any output (e.g. has an access specifier of VAccessInternal). function var_is_internal(var) { return (get(var, p_access) == VAccessInternal) } # Return true if `var` has an array type function var_has_array_type(var, _vtype) { obj_assert_class(var, Var) _vtype = get(var, p_type) return (obj_is_instanceof(_vtype, ArrayType)) } # Return the number of array elements defined by this variable's type, # or 1 if the variable does not have an array type. function var_get_array_len(var) { obj_assert_class(var, Var) return (type_get_nelem(get(var, p_type))) } # Return the fmt for var. If not explicitly set on var, will return then # return of calling type_get_default_fmt() with the variable's type function var_get_fmt(var, _fmt) { obj_assert_class(var, Var) # If defined on var, return it if ((_fmt = get(var, p_fmt)) != null) return (_fmt) # Fall back on the type's default return (type_get_default_fmt(get(var, p_type))) } # Return a new MacroDefine instance for the given variable, macro type, # and value function var_get_macro(var, macro_type, value, _macro) { obj_assert_class(var, Var) obj_assert_class(macro_type, MacroType) return (macro_new(var_get_macro_name(var, macro_type), value)) } # Return the preprocessor constant name to be used with `var` for the given # macro_type function var_get_macro_name(var, macro_type, _var_name, _suffix) { obj_assert_class(var, Var) obj_assert_class(macro_type, MacroType) _var_name = get(var, p_name) _suffix = get(macro_type, p_const_suffix) return("BHND_NVAR_" toupper(_var_name) _suffix) } # Create a new SromLayout instance function srom_layout_new(rev_desc, _obj) { _obj = obj_new(SromLayout) set(_obj, p_revisions, rev_desc) set(_obj, p_entries, array_new()) set(_obj, p_revmap, map_new()) set(_obj, p_output_var_counts, map_new()) set(_obj, p_line, NR) return (_obj) } # Register a new entry with the srom layout function srom_layout_add_entry(layout, entry, _revmap, _name, _rev_start, _rev_end, _var, _prev_entry, _count, _i) { obj_assert_class(layout, SromLayout) obj_assert_class(entry, SromEntry) _layout_revmap = get(layout, p_revmap) _layout_var_count = get(layout, p_output_var_counts) _var = get(entry, p_var) _name = get(_var, p_name) # Add to revision array array_append(get(layout, p_entries), entry) # Add to the revision map tables _rev_start = get(get(entry, p_revisions), p_start) _rev_end = get(get(entry, p_revisions), p_end) for (_i = _rev_start; _i <= _rev_end; _i++) { # Check for existing entry _prev_entry = srom_layout_find_entry(layout, _name, _i) if (_prev_entry != null) { error("redefinition of variable '" _name "' for SROM " \ "revision " _i " (previously defined on line " \ get(_prev_entry, p_line) ")") } # Add to the (varname,revision) map map_set(_layout_revmap, (_name SUBSEP _i), entry) # If an output variable, set or increment the output variable # count if (!srom_entry_should_output(entry, _i)) continue if (!map_contains(_layout_var_count, _i)) { map_set(_layout_var_count, _i, 1) } else { _count = map_get(_layout_var_count, _i) map_set(_layout_var_count, _i, _count + 1) } } } # Return the variable name to be used when emitting C declarations # for this SROM layout # # The name is gauranteed to be unique across SROM layouts with non-overlapping # revision ranges function srom_layout_get_variable_name(layout, _revs) { obj_assert_class(layout, SromLayout) _revs = get(layout, p_revisions) return ("bhnd_sprom_layout_r" get(_revs, p_start) \ "_r" get(_revs, p_end)) } # Return true if the given SROM revision is defined by the layout, false # otherwise function srom_layout_has_rev(layout, rev) { obj_assert_class(layout, SromLayout) return (revrange_contains(get(layout, p_revisions), rev)) } # Return the total number of output variables (variables to be included # in the SROM layout bindings) for the given SROM revision function srom_layout_num_output_vars(layout, rev, _counts) { obj_assert_class(layout, SromLayout) _counts = get(layout, p_output_var_counts) if (!map_contains(_counts, rev)) return (0) return (map_get(_counts, rev)) } # Return the SromEntry defined for the given variable name and SROM revision, # or null if none function srom_layout_find_entry(layout, vname, revision, _key, _srom_revmap) { obj_assert_class(layout, SromLayout) _srom_revmap = get(layout, p_revmap) # SromEntry are mapped by name,revision composite keys _key = vname SUBSEP revision if (!map_contains(_srom_revmap, _key)) return (null) return (map_get(_srom_revmap, _key)) } # Create a new SromLayoutFilter instance, checking that `revs` # falls within the parent's revision range function srom_layout_filter_new(parent, revs, _obj, _start, _end, _parent_revs) { obj_assert_class(parent, SromLayout) obj_assert_class(revs, RevRange) # Fetch our parent's revision range, confirm that we're # a strict subset _start = get(revs, p_start) _end = get(revs, p_end) _parent_revs = get(parent, p_revisions) if (!revrange_contains(_parent_revs, _start)) error("'" _start "' is outside of parent range") if (!revrange_contains(_parent_revs, _end)) error("'" _end "' is outside of parent range") if (revrange_equal(revs, _parent_revs)) { error("srom range '" revrange_to_string(revs) "' is " \ "identical to parent range of '" \ revrange_to_string(_parent_revs) "'") } # Construct and return new filter instance _obj = obj_new(SromLayoutFilter) set(_obj, p_parent, parent) set(_obj, p_revisions, revs) set(_obj, p_line, NR) return (_obj) } # # Create a new SromEntry instance # # var: The variable referenced by this entry # revisions: The SROM revisions to which this entry applies # base_offset: The SROM entry offset; any relative segment offsets will be # calculated relative to the base offset # type: The SROM's value type; this may be a subtype of the variable # type, and defines the data (width, sign, etc) to be read from # SROM. # function srom_entry_new(var, revisions, base_offset, type, _obj) { obj_assert_class(var, Var) if (revisions != null) obj_assert_class(revisions, RevRange) _obj = obj_new(SromEntry) set(_obj, p_var, var) set(_obj, p_revisions, revisions) set(_obj, p_base_offset, base_offset) set(_obj, p_type, type) set(_obj, p_offsets, array_new()) set(_obj, p_line, NR) return (_obj) } # Return true if the SromEntry has an array type function srom_entry_has_array_type(entry) { obj_assert_class(entry, SromEntry) return (obj_is_instanceof(get(entry, p_type), ArrayType)) } # Return the number of array elements defined by this SromEntry's type, # or 1 if the entry does not have an array type. function srom_entry_get_array_len(entry, _type) { obj_assert_class(entry, SromEntry) return (type_get_nelem(get(entry, p_type))) } # # Return true if the given entry should be included in the output bindings # generated for the given revision, false otherwise. # function srom_entry_should_output(entry, rev, _var, _revs) { obj_assert_class(entry, SromEntry) _var = get(entry, p_var) _revs = get(entry, p_revisions) # Exclude internal variables if (var_is_internal(_var)) return (0) # Exclude inapplicable entry revisions if (!revrange_contains(_revs, rev)) return (0) return (1) } # # Return the single, non-shifted, non-masked offset/segment for the given # SromEntry, or throw an error if the entry contains multiple offsets/segments. # # This is used to fetch special-cased variable definitions that are required # to present a single simple offset. # function srom_entry_get_single_segment(entry, _offsets, _segments, _seg, _base_type, _default_mask) { obj_assert_class(entry, SromEntry) # Fetch the single offset's segment list _offsets = get(entry, p_offsets) if (array_size(_offsets) != 1) errorc(get(entry, p_line), "unsupported offset count") _segments = get(array_first(_offsets), p_segments) if (array_size(_segments) != 1) errorc(get(entry, p_line), "unsupported segment count") # Fetch the single segment _seg = array_first(_segments) _base_type = srom_segment_get_base_type(_seg) _default_mask = get(_base_type, p_mask) # Must not be shifted/masked if (get(_seg, p_shift) != 0) errorc(obj_get_prop_nr(_seg, p_mask), "shift unsupported") if (get(_seg, p_mask) != _default_mask) errorc(obj_get_prop_nr(_seg, p_mask), "mask unsupported") return (_seg) } # Create a new SromOffset instance function srom_offset_new(_obj) { _obj = obj_new(SromOffset) set(_obj, p_segments, array_new()) set(_obj, p_line, NR) return (_obj) } # Return the number of SromSegment instances defined by this offset. function srom_offset_segment_count(offset) { obj_assert_class(offset, SromOffset) return (array_size(get(offset, p_segments))) } # Return the idx'th segment. Will throw an error if idx falls outside # the number of available segments. function srom_offset_get_segment(offset, idx, _segments, _seg) { obj_assert_class(offset, SromOffset) return (array_get(get(offset, p_segments), idx)) } # Create a new SromSegment instance function srom_segment_new(offset, type, mask, shift, value, _obj) { _obj = obj_new(SromSegment) set(_obj, p_offset, offset) set(_obj, p_type, type) set(_obj, p_mask, mask) set(_obj, p_shift, shift) set(_obj, p_value, value) set(_obj, p_line, NR) return (_obj) } # Return true if the segment has an array type function srom_segment_has_array_type(seg, _type) { _type = srom_segment_get_type(seg) return (obj_is_instanceof(_type, ArrayType)) } # Return the array count of the segment, or 1 if the segment does not have # an array type function srom_segment_get_array_len(seg, _type) { if (!srom_segment_has_array_type(seg)) return (1) _type = srom_segment_get_type(seg) return (get(_type, p_count)) } # Return the type of the segment function srom_segment_get_type(seg) { obj_assert_class(seg, SromSegment) return (get(seg, p_type)) } # Return the base type of the segment function srom_segment_get_base_type(seg) { return (type_get_base(srom_segment_get_type(seg))) } # Return true if the two segments have identical types and attributes (i.e. # differing only by offset) function srom_segment_attributes_equal(lhs, rhs) { obj_assert_class(lhs, SromSegment) obj_assert_class(rhs, SromSegment) # type if (!type_equal(get(lhs, p_type), get(rhs, p_type))) return (0) # mask if (get(lhs, p_mask) != get(rhs, p_mask)) return (0) # shift if (get(lhs, p_shift) != get(rhs, p_shift)) return (0) # value if (get(lhs, p_value) != get(rhs, p_value)) return (0) return (1) } # Return a human-readable representation of a Segment instance function segment_to_string(seg, _str, _t, _m, _s, _attrs, _attr_str) { _attrs = array_new() # include type (if specified) if ((_t = get(seg, p_type)) != null) _str = (type_to_string(_t) " ") # include offset _str = (_str sprintf("0x%X", get(seg, p_offset))) # append list of attributes if ((_m = get(seg, p_mask)) != null) array_append(_attrs, ("&" _m)) if ((_s = get(seg, p_shift)) != null) { if (_s > 0) _s = ">>" _s else _s = "<<" _s array_append(_attrs, _s) } _attr_str = array_join(_attrs, ", ") obj_delete(_attrs) if (_attr_str == "") return (_str) else return (_str " (" _attr_str ")") } # return the flag definition for variable `v` function gen_var_flags(v, _type, _flags, _flag, _str) { _num_flags = 0; _type = get(v, p_type) _flags = array_new() # VF_PRIVATE if (get(v, p_access) == VAccessPrivate) array_append(_flags, VFlagPrivate) # VF_IGNALL1 if (get(v, p_ignall1)) array_append(_flags, VFlagIgnoreAll1) # If empty, return empty flag value if (array_size(_flags) == 0) { obj_delete(_flags) return ("0") } # Join all flag constants with | _str = array_join(_flags, "|", class_get_prop_id(VFlag, p_const)) # Clean up obj_delete(_flags) return (_str) } # # Return the absolute value # function abs(i) { return (i < 0 ? -i : i) } # # Return the minimum of two values # function min(lhs, rhs) { return (lhs < rhs ? lhs : rhs) } # # Return the maximum of two values # function max(lhs, rhs) { return (lhs > rhs ? lhs : rhs) } # # Parse a hex string # function parse_hex_string(str, _hex_pstate, _out, _p, _count) { if (!AWK_REQ_HEX_PARSING) return (str + 0) # Populate hex parsing lookup table on-demand if (!("F" in _g_hex_table)) { for (_p = 0; _p < 16; _p++) { _g_hex_table[sprintf("%X", _p)] = _p _g_hex_table[sprintf("%x", _p)] = _p } } # Split input into an array _count = split(toupper(str), _hex_pstate, "") _p = 1 # Skip leading '0x' if (_count >= 2 && _hex_pstate[1] == "0") { if (_hex_pstate[2] == "x" || _hex_pstate[2] == "X") _p += 2 } # Parse the hex_digits _out = 0 for (; _p <= _count; _p++) _out = (_out * 16) + _g_hex_table[_hex_pstate[_p]] return (_out) } # # Return the integer representation of an unsigned decimal, hexadecimal, or # octal string # function parse_uint_string(str) { if (str ~ UINT_REGEX) return (int(str)) else if (str ~ HEX_REGEX) return (parse_hex_string(str)) else error("invalid integer value: '" str "'") } # # Parse an offset string, stripping any leading '+' or trailing ':' or ',' # characters # # +0x0: # 0x0, # ... # function parse_uint_offset(str) { # Drop any leading '+' sub(/^\+/, "", str) # Drop any trailing ':', ',', or '|' sub("[,|:]$", "", str) # Parse the cleaned up string return (parse_uint_string(str)) } # # Print msg to output file, without indentation # function emit_ni(msg) { printf("%s", msg) >> OUTPUT_FILE } # # Print msg to output file, indented for the current `output_depth` # function emit(msg, _ind) { for (_ind = 0; _ind < output_depth; _ind++) emit_ni("\t") emit_ni(msg) } # # Print a warning to stderr # function warn(msg) { print "warning:", msg, "at", FILENAME, "line", NR > "/dev/stderr" } # # Print an warning message without including the source line information # function warnx(msg) { print "warning:", msg > "/dev/stderr" } # # Print a compiler error to stderr with a caller supplied # line number # function errorc(line, msg) { errorx(msg " at " FILENAME " line " line) } # # Print a compiler error to stderr # function error(msg) { errorx(msg " at " FILENAME " line " NR ":\n\t" $0) } # # Print an error message without including the source line information # function errorx(msg) { print "error:", msg > "/dev/stderr" _EARLY_EXIT=1 exit 1 } # # Print a debug output message # function debug(msg, _i) { if (!DEBUG) return for (_i = 1; _i < _g_parse_stack_depth; _i++) printf("\t") > "/dev/stderr" print msg > "/dev/stderr" } # # Advance to the next non-comment input record # function next_line(_result) { do { _result = getline } while (_result > 0 && $0 ~ /^[ \t]*#.*/) # skip comment lines return (_result) } # # Advance to the next input record and verify that it matches @p regex # function getline_matching(regex, _result) { _result = next_line() if (_result <= 0) return (_result) if ($0 ~ regex) return (1) return (-1) } # # Shift the current fields left by `n`. # # If all fields are consumed and the optional do_getline argument is true, # read the next line. # function shiftf(n, do_getline, _i) { if (n > NF) error("shift past end of line") if (n == NF) { # If shifting the entire line, just reset the line value $0 = "" } else { for (_i = 1; _i <= NF-n; _i++) { $(_i) = $(_i+n) } NF = NF - n } if (NF == 0 && do_getline) next_line() } # Push a new parser state. function parser_state_push(ctx, is_block, _state) { _state = obj_new(ParseState) set(_state, p_ctx, ctx) set(_state, p_is_block, is_block) set(_state, p_line, NR) _g_parse_stack_depth++ _g_parse_stack[_g_parse_stack_depth] = _state } # Fetch the current parser state function parser_state_get() { if (_g_parse_stack_depth == 0) errorx("parser_state_get() called with empty parse stack") return (_g_parse_stack[_g_parse_stack_depth]) } # Pop the current parser state function parser_state_pop(_block_state, _closes_block) { if (_g_parse_stack_depth == 0) errorx("parser_state_pop() called with empty parse stack") _closes_block = get(parser_state_get(), p_is_block) delete _g_parse_stack[_g_parse_stack_depth] _g_parse_stack_depth-- if (_closes_block) debug("}") } # Fetch the current context object associated with this parser state # The object will be asserted as being an instance of the given class. function parser_state_get_context(class, _ctx_obj) { _ctx_obj = get(parser_state_get(), p_ctx) obj_assert_class(_ctx_obj, class) return (_ctx_obj) } # Walk the parser state stack until a context object of the given class # is found. If the top of the stack is reached without finding a context object # of the requested type, an error will be thrown. function parser_state_find_context(class, _state, _ctx, _i) { if (class == null) errorx("parser_state_find_context() called with null class") # Find the first context instance inheriting from `class` for (_i = 0; _i < _g_parse_stack_depth; _i++) { _state = _g_parse_stack[_g_parse_stack_depth - _i] _ctx = get(_state, p_ctx) # Check for match if (obj_is_instanceof(_ctx, class)) return (_ctx) } # Not found errorx("no context instance of type '" class_get_name(class) "' " \ "found in parse stack") } # # Find opening brace and push a new parser state for a brace-delimited block. # function parser_state_open_block(ctx) { if ($0 ~ "{" || getline_matching("^[ \t]*{") > 0) { parser_state_push(ctx, 1) sub("^[^{]*{", "", $0) return } error("found '"$1 "' instead of expected '{'") } # # Find closing brace and pop parser states until the first # brace-delimited block is discarded. # function parser_state_close_block(_next_state, _found_block) { if ($0 !~ "}") error("internal error - no closing brace") # pop states until we exit the first enclosing block do { _next_state = parser_state_get() _found_block = get(_next_state, p_is_block) parser_state_pop() } while (!_found_block) # strip everything prior to the block closure sub("^[^}]*}", "", $0) } # Evaluates to true if the current parser state is defined with a context of # the given class function in_parser_context(class, _ctx) { if (class == null) errorx("called in_parser_context() with null class") _ctx = get(parser_state_get(), p_ctx) return (obj_is_instanceof(_ctx, class)) } # # Parse and return a revision range from the current line. # # 4 # 4-10 # revisions 4-10, inclusive # > 4 # < 4 # >= 4 # <= 4 # function parse_revrange(_start, _end, _robj) { _start = 0 _end = 0 if ($2 ~ "[0-9]*-[0-9*]") { split($2, _g_rev_range, "[ \t]*-[ \t]*") _start = int(_g_rev_range[1]) _end = int(_g_rev_range[2]) } else if ($2 ~ "(>|>=|<|<=)" && $3 ~ "[1-9][0-9]*") { if ($2 == ">") { _start = int($3)+1 _end = REV_MAX } else if ($2 == ">=") { _start = int($3) _end = REV_MAX } else if ($2 == "<" && int($3) > 0) { _start = 0 _end = int($3)-1 } else if ($2 == "<=") { _start = 0 _end = int($3)-1 } else { error("invalid revision descriptor") } } else if ($2 ~ "[1-9][0-9]*") { _start = int($2) _end = int($2) } else { error("invalid revision descriptor") } return (revrange_new(_start, _end)) } # # Parse a variable group block starting at the current line # # group "Group Name" { # u8 var_name[10] { # ... # } # ... # } # function parse_variable_group(_ctx, _groups, _group, _group_name) { _ctx = parser_state_get_context(NVRAM) # Seek to the start of the name string shiftf(1) # Parse the first line _group_name = stringconstant_parse_line($0) # Incrementally parse line continuations while (get(_group_name, p_continued)) { getline stringconstant_append_line(_group_name, $0) } debug("group \"" get(_group_name, p_value) "\" {") # Register the new variable group _groups = get(_ctx, p_var_groups) _group = var_group_new(_group_name) array_append(_groups, _group) # Push our variable group block parser_state_open_block(_group) } # # Parse a variable definition block starting at the current line # # u8 var_name[10] { # all1 ignore # desc ... # } # function parse_variable_defn(_ctx, _vaccess, _type, _name, _fmt, _var, _var_list) { _ctx = parser_state_get_context(SymbolContext) # Check for access modifier if ($1 == "private") { _vaccess = VAccessPrivate shiftf(1) } else if ($1 == "internal") { _vaccess = VAccessInternal shiftf(1) } else { _vaccess = VAccessPublic } # Find the base type if ((_type = type_named($1)) == null) error("unknown type '" $1 "'") # Parse (and trim) any array specifier from the variable name _name = $2 _type = parse_array_type_specifier(_name, _type) sub(ARRAY_REGEX"$", "", _name) # Look for an existing variable definition if (_name in _g_var_names) { error("variable identifier '" _name "' previously defined at " \ "line " get(_g_var_names[_name], p_line)) } # Construct new variable instance _var = var_new(_vaccess, _name, _type) debug((_private ? "private " : "") type_to_string(_type) " " _name " {") # Register in global name table _g_var_names[_name] = _var # Add to our parent context _var_list = get(_ctx, p_vars) array_append(_var_list, _var) # Push our variable definition block parser_state_open_block(_var) } # # Return a string containing the human-readable list of valid Fmt names # function fmt_get_human_readable_list(_result, _fmts, _fmt, _nfmts, _i) { # Build up a string listing the valid formats _fmts = map_to_array(ValueFormats) _result = "" _nfmts = array_size(_fmts) for (_i = 0; _i < _nfmts; _i++) { _fmt = array_get(_fmts, _i) if (_i+1 == _nfmts) _result = _result "or " _result = _name_str \ "'" get(_fmt, p_name) "'" if (_i+1 < _nfmts) _result = _result ", " } obj_delete(_fmts) return (_result) } # # Parse a variable parameter from the current line # # fmt (decimal|hex|macaddr|...) # all1 ignore # desc "quoted string" # help "quoted string" # function parse_variable_param(param_name, _var, _vprops, _prop_id, _pval) { _var = parser_state_get_context(Var) if (param_name == "fmt") { debug($1 " " $2) # Check for an existing definition if ((_pval = get(_var, p_fmt)) != null) { error("fmt previously specified on line " \ obj_get_prop_nr(_var, p_fmt)) } # Validate arguments if (NF != 2) { error("'" $1 "' requires a single parameter value of " \ fmt_get_human_readable_list()) } if ((_pval = fmt_named($2)) == null) { error("'" $1 "' value '" $2 "' unrecognized. Must be " \ "one of " fmt_get_human_readable_list()) } # Set fmt reference set(_var, p_fmt, _pval) } else if (param_name == "all1") { debug($1 " " $2) # Check for an existing definition if ((_pval = get(_var, p_ignall1)) != null) { error("all1 previously specified on line " \ obj_get_prop_nr(_var, p_ignall1)) } # Check argument if (NF != 2) error("'" $1 "'requires a single 'ignore' argument") else if ($2 != "ignore") error("unknown "$1" value '"$2"', expected 'ignore'") # Set variable property set(_var, p_ignall1, 1) } else if (param_name == "desc" || param_name == "help") { # Fetch an indirect property reference for either the 'desc' # or 'help' property _prop_id = obj_get_named_prop_id(_var, param_name) # Check for an existing definition if ((_pval = prop_get(_var, _prop_id)) != null) { error(get(_var, p_name) " '" $1 "' redefined " \ "(previously defined on line " \ obj_get_prop_id_nr(_var, _prop_id) ")") } # Seek to the start of the desc/help string shiftf(1) # Parse the first line _pval = stringconstant_parse_line($0) # Incrementally parse line continuations while (get(_pval, p_continued)) { getline stringconstant_append_line(_pval, $0) } debug(param_name " \"" get(_pval, p_value) "\"") # Add to the var object prop_set(_var, _prop_id, _pval) } else { error("unknown variable property type: '" param_name "'") } } # # Parse a top-level SROM layout block starting at the current line # # srom 4-7 { # 0x000: ... # } # function parse_srom_layout(_nvram, _srom_layouts, _revs, _layout) { _nvram = parser_state_get_context(NVRAM) _srom_layouts = get(_nvram, p_srom_layouts) # Parse revision descriptor and register SROM # instance _revs = parse_revrange() _layout = srom_layout_new(_revs) nvram_add_srom_layout(_nvram, _layout) debug("srom " revrange_to_string(_revs) " {") # Push new SROM parser state parser_state_open_block(_layout) } # # Parse a nested srom range filter block starting at the current line # srom 4-7 { # # Filter block # srom 5 { # 0x000: ... # } # } # function parse_srom_layout_filter(_parent, _revs, _filter) { _parent = parser_state_get_context(SromLayout) # Parse revision descriptor _revs = parse_revrange() # Construct the filter (which also validates the revision range) _filter = srom_layout_filter_new(_parent, _revs) debug("srom " revrange_to_string(_revs) " {") # Push new SROM parser state parser_state_open_block(_filter) } # # Parse a SROM offset segment's attribute list from the current line # # # (&0xF0, >>4, =0x5340) # () # # Attribute designators: # &0xF Mask value with 0xF # <<4 Shift left 4 bits # >>4 Shift right 4 bits # =0x53 The parsed value must be equal to this constant value # # May be followed by a | indicating that this segment should be OR'd with the # segment that follows, or a terminating , indicating that a new offset's # list of segments may follow. # function parse_srom_segment_attributes(offset, type, _attrs, _num_attr, _attr, _mask, _shift, _value, _i) { # seek to offset (attributes...) or end of the offset expr (|,) sub("^[^,(|){}]+", "", $0) # defaults _mask = type_get_default_mask(type) _shift = 0 # parse attributes if ($1 ~ "^\\(") { # extract attribute list if (match($0, /\([^|\(\)]*\)/) <= 0) error("expected attribute list") _attrs = substr($0, RSTART+1, RLENGTH-2) # drop attribute list from the input line $0 = substr($0, RSTART+RLENGTH, length($0) - RSTART+RLENGTH) # parse attributes _num_attr = split(_attrs, _g_attrs, ",[ \t]*") for (_i = 1; _i <= _num_attr; _i++) { _attr = _g_attrs[_i] if (sub("^&[ \t]*", "", _attr) > 0) { _mask = parse_uint_string(_attr) } else if (sub("^<<[ \t]*", "", _attr) > 0) { _shift = - parse_uint_string(_attr) } else if (sub("^>>[ \t]*", "", _attr) > 0) { _shift = parse_uint_string(_attr) } else if (sub("^=[ \t]*", "", _attr) > 0) { _value = _attr } else { error("unknown attribute '" _attr "'") } } } return (srom_segment_new(offset, type, _mask, _shift, _value)) } # # Parse a SROM offset's segment declaration from the current line # # +0x0: u8 (&0xF0, >>4) # read 8 bits at +0x0 (relative to srom entry # # offset, apply 0xF0 mask, shift >> 4 # 0x10: u8 (&0xF0, >>4) # identical to above, but perform the read at # # absolute offset 0x10 # # +0x0: u8 # no attributes # 0x10: u8 # # +0x0 # simplified forms denoted by lack of ':'; the # 0x0 # type is inherited from the parent SromEntry # # function parse_srom_segment(base_offset, base_type, _simple, _type, _type_str, _offset, _attrs, _num_attr, _attr, _mask, _shift, _off_desc) { # Fetch the offset value _offset = $1 # Offset string must be one of: # simplified entry: # Provides only the offset, with the type inherited # from the original variable definition # standard entry: : # Provides the offset, followed by a type # # We differentiate the two by looking for (and simultaneously removing) # the trailing ':' if (!sub(/:$/, "", _offset)) _simple = 1 # The offset may either be absolute (e.g. 0x180) or relative (e.g. # +0x01). # # If we find a relative offset definition, we must trim the leading '+' # and then add the base offset if (sub(/^\+/, "", _offset)) { _offset = base_offset + parse_uint_offset(_offset) } else { _offset = parse_uint_offset(_offset) } # If simplified form, use the base type of the SROM entry. Otherwise, # we need to parse the type. if (_simple) { _type = base_type } else { _type_str = $2 sub(/,$/, "", _type_str) # trim trailing ',', if any if ((_type = parse_type_string(_type_str)) == null) error("unknown type '" _type_str "'") } # Parse the trailing (... attributes ...), if any return (parse_srom_segment_attributes(_offset, _type)) } # # Parse a SROM variable entry from the current line # : ... # function parse_srom_variable_entry(_srom, _srom_revs, _rev_start, _rev_end, _srom_entries, _srom_revmap, _prev_entry, _ctx, _base_offset, _name, _stype, _var, _entry, _offset, _seg, _i) { # Fetch our parent context _ctx = parser_state_get_context(SromContext) _srom_revs = get(_ctx, p_revisions) _rev_start = get(_srom_revs, p_start) _rev_end = get(_srom_revs, p_end) # Locate our enclosing layout _srom = parser_state_find_context(SromLayout) _srom_entries = get(_srom, p_entries) _srom_revmap = get(_srom, p_revmap) # Verify argument count if (NF < 3) { error("unrecognized srom entry syntax; must specify at " \ "least \": \"") } # Parse the base offset _base_offset = parse_uint_offset($1) # Parse the base type if ((_stype = type_named($2)) == null) error("unknown type '" $2 "'") # Parse (and trim) any array specifier from the variable name _name = $3 _stype = parse_array_type_specifier(_name, _stype) sub(ARRAY_REGEX"$", "", _name) # Locate the variable definition if (!(_name in _g_var_names)) error("no definition found for variable '" _name "'") _var = _g_var_names[_name] # The SROM entry type must be a subtype of the variable's declared # type if (!type_can_represent(get(_var, p_type), _stype)) { error("'" type_to_string(_stype) "' SROM value cannot be " \ "coerced to '" type_to_string(get(_var, p_type)) " " _name \ "' variable") } # Create and register our new offset entry _entry = srom_entry_new(_var, _srom_revs, _base_offset, _stype) srom_layout_add_entry(_srom, _entry) # Seek to either the block start ('{'), or the attributes to be # used for a single offset/segment entry at `offset` shiftf(3) # Using the block syntax? */ if ($1 == "{") { debug(sprintf("0x%03x: %s %s {", _base_offset, type_to_string(_stype), _name)) parser_state_open_block(_entry) } else { # Otherwise, we're using the simplified syntax -- create and # register our implicit SromOffset _offset = srom_offset_new() array_append(get(_entry, p_offsets), _offset) # Parse and register simplified segment syntax _seg = parse_srom_segment_attributes(_base_offset, _stype) array_append(get(_offset, p_segments), _seg) debug(sprintf("0x%03x: %s %s { %s }", _base_offset, type_to_string(_stype), _name, segment_to_string(_seg))) } } # # Parse all SromSegment entry segments readable starting at the current line # # [,|]? # : [,|]? # : ()[,|]? # function parse_srom_entry_segments(_entry, _base_off, _base_type, _offs, _offset, _segs, _seg, _more_seg, _more_vals) { _entry = parser_state_get_context(SromEntry) _base_off = get(_entry, p_base_offset) _offs = get(_entry, p_offsets) _base_type = get(_entry, p_type) _base_type = type_get_base(_base_type) # Parse all offsets do { # Create a SromOffset _offset = srom_offset_new() _segs = get(_offset, p_segments) array_append(_offs, _offset) # Parse all segments do { _seg = parse_srom_segment(_base_off, _base_type) array_append(_segs, _seg) # Do more segments follow? _more_seg = ($1 == "|") if (_more_seg) shiftf(1, 1) if (_more_seg) debug(segment_to_string(_seg) " |") else debug(segment_to_string(_seg)) } while (_more_seg) # Do more offsets follow? _more_vals = ($1 == ",") if (_more_vals) shiftf(1, 1) } while (_more_vals) } diff --git a/sys/dev/bhnd/tools/nvram_map_gen.sh b/sys/dev/bhnd/tools/nvram_map_gen.sh index 5b3409b58ceb..5c59b1b0e325 100755 --- a/sys/dev/bhnd/tools/nvram_map_gen.sh +++ b/sys/dev/bhnd/tools/nvram_map_gen.sh @@ -1,12 +1,10 @@ #!/bin/sh # Use C locale to ensure AWK string comparisons always produce # a stable sort order. -# $FreeBSD$ - BHND_TOOLDIR="$(dirname $0)/" LC_ALL=C; export LC_ALL "${AWK:-/usr/bin/awk}" -f "$BHND_TOOLDIR/nvram_map_gen.awk" $@ diff --git a/sys/dev/bnxt/convert_hsi.pl b/sys/dev/bnxt/convert_hsi.pl index b8a9887d7206..df59aeab6cc9 100755 --- a/sys/dev/bnxt/convert_hsi.pl +++ b/sys/dev/bnxt/convert_hsi.pl @@ -1,356 +1,355 @@ #!/usr/bin/env perl # This script cleans up the "official" Broadcom hsi_struct_defs.h file as distributed # to something somewhat more programmer friendly. # -# $FreeBSD$ my $do_decode = 0; if (! -f $ARGV[0]) { print "Input file not specified (should be path to hsi_struct_defs.h)\n"; exit 1; } if (!open(IN, "<", $ARGV[0])) { print "Failure to open input file\n"; exit 1; } if (!open(OUT, ">", "hsi_struct_def.h")) { print "Failure to open output file\n"; exit 1; } $/=undef; my $header = ; close IN; print OUT < __FBSDID("\$FreeBSD\$"); END_OF_NOTICE # Convert line endings $header =~ s/\r\n/\n/gs; # Convert arrays of two u32_t to a single uint64_t $header =~ s/\bu32_t(\s+[a-zA-Z0-9_]+)\[2\]/uint64_t$1/gs; # Convert uint32_t *_lo/uint32_t *_hi to a single uint64_t $header =~ s/\bu32_t(\s+[a-zA-Z0-9_]+)_lo;\s*\r?\n\s*u32_t(\s+[a-zA-Z0-9_]+)_hi/uint64_t$1/gs; # Convert types $header =~ s/\bu([0-9]+)_t\b/uint$1_t/gs; # Convert literals $header =~ s/\b((?:0x)?[0-9a-f]+)UL/UINT32_C($1)/gs; # Strip comments #$header =~ s/^(\s*[^\/\s][^\/]+?)\s*\/\*.*?\*\/\s*?$/$1/gm; #$header =~ s/[ \t]*\/\*.*?\*\/\s*?\n?//gs; # Pack structs #$header =~ s/}(\s+)([^\s]+_t[,;])/} __attribute__((packed))$1$2/gs; # Normalize indent $header =~ s/( ) +(#define)/$1$2/gs; $header =~ s/^(}[^\n]*;)\n([^\n])/$1\n\n$2/gsm; $header =~ s/([^\n])\n(typedef)/$1\n\n$2/gs; $header =~ s/ /\t/g; $header =~ s/ /\t/g; $header =~ s/([^\s]\t+) +/$1/g; # Remove typedefs and pack structs $header =~ s/^typedef struct (.*?)\n{\n(.*?)}[^\n]*;/struct $1 {\n$2} __attribute__((packed));/gsm; print OUT $header; close OUT; if ($do_decode) { if(!open(OUT, ">", "hsi_struct_decode.c")) { print "Failure to open decoder output file\n"; exit 1; } print OUT < __FBSDID("\$FreeBSD\$"); END_OF_NOTICE if(!open(HDR, ">", "hsi_struct_decode.h")) { print "Failure to open decoder output header file\n"; exit 1; } print HDR <\n#include \n#include \n#include \"hsi_struct_def_dpdk.h\"\n#include \"hsi_struct_decode.h\"\n#include \"hsi_struct_decode.h\"\n\n"; print HDR "#ifdef HSI_DEBUG\n#include \"hsi_struct_def_dpdk.h\"\n\n"; my $hdr_defs = ''; sub print_single_val { my $field=shift; my $type=shift; my $max_field_len=shift; my $name = shift; my $macroshash = shift; my %macros = %$macroshash; $macrosref = shift; my @macros = @$macrosref; $macrosref = shift; my @fields = @$macrosref; if ($type eq 'uint32_t') { printf OUT "\tRTE_LOG(DEBUG, PMD, \" % *s = 0x%%08\"PRIX32\"\\n\", data->$field);\n",$max_field_len,$field; } elsif ($type eq 'uint16_t') { printf OUT "\tRTE_LOG(DEBUG, PMD, \" % *s = 0x%%04\"PRIX16\"\\n\", data->$field);\n",$max_field_len,$field; } elsif ($type eq 'uint8_t') { printf OUT "\tRTE_LOG(DEBUG, PMD, \" % *s = 0x%%02\"PRIX8\"\\n\", data->$field);\n",$max_field_len,$field; } elsif ($type eq 'uint64_t') { printf OUT "\tRTE_LOG(DEBUG, PMD, \" % *s = 0x%%016\"PRIX64\"\\n\", data->$field);\n",$max_field_len,$field; } elsif ($type eq 'char') { if ($field =~ s/\[([0-9]+)\]//) { printf OUT "\tRTE_LOG(DEBUG, PMD, \" % *s = \\\"%%.$1s\\\"\\n\", data->$field);\n",$max_field_len,$field; } else { printf OUT "\tRTE_LOG(DEBUG, PMD, \" % *s = 0x%%02\"PRIX8\"\\n\", data->$field);\n",$max_field_len,$field; } } else { print "Unhandled type: '$type'\n"; } my $macro_prefix = uc($name).'_'.uc($field).'_'; # Special handling for the common flags_type field $macro_prefix =~ s/FLAGS_TYPE_$/FLAGS_/ if ($field eq 'flags_type'); # Special handling for _hi types $macro_prefix =~ s/_HI_/_/ if ($name =~ /_hi$/); $macro_prefix =~ s/\[[0-9]+\]//; my %vmacros; my $vmacros_have_mask = 0; my @vmacros; my %subfields; my $all_single_bits=1; MACRO: foreach my $macro (@macros) { if ($macro =~ /^$macro_prefix(.*)_MASK$/) { my $macro = $&; my $maskdef = $macros{$macro}; my $subfield = $1; my $subfield_value = "(data->$field & $macro)"; if (defined $macros{"$macro_prefix$subfield\_SFT"}) { $subfield_value = "($subfield_value >> $macro_prefix$subfield\_SFT)"; } $maskdef =~ s/[x0 ]//g; if ($type eq 'uint64_t') { printf OUT "\tRTE_LOG(DEBUG, PMD, \" % *s $subfield = %%0*\" PRIX64 \"\\n\", %u, $subfield_value);\n", $max_field_len, '', length($maskdef); } else { printf OUT "\tRTE_LOG(DEBUG, PMD, \" % *s $subfield = %%0*X\\n\", %u, $subfield_value);\n", $max_field_len, '', length($maskdef); } delete $$macroshash{$macro}; } elsif ($macro =~ /^$macro_prefix(.*)_SFT$/) { delete $$macroshash{$macro}; } elsif ($macro =~ /^$macro_prefix\MASK$/) { $vmacros_have_mask = 1; delete $$macroshash{$macro}; } elsif ($macro =~ /^$macro_prefix(.*)$/) { my $macro = $&; my $subfield = $1; # Check for longer fields with the same base... ie: link and link_speed foreach my $extra_field (@fields) { next if ($extra_field eq $field); if ($extra_field =~ /^$field/) { my $extra_prefix = uc($name).'_'.uc($extra_field).'_'; next MACRO if ($macro =~ /^$extra_prefix/); } } push @vmacros, $macro; my $macroeval = $macros{$macro}; $macroeval =~ s/UINT32_C\((.*?)\)/$1/g; $vmacros{$macro} = eval("$macroeval"); $subfields{$macro} = $subfield; $all_single_bits = 0 if ($vmacros{$macro} & ($vmacros{$macro}-1)); $all_single_bits = 0 if ($vmacros{$macro} == 0); } } if ($all_single_bits) { foreach my $macro (@vmacros) { my $subfield_value = "(data->$field & $macro)"; printf OUT "\tRTE_LOG(DEBUG, PMD, \" % *s $subfields{$macro} : %%s\\n\", $subfield_value?\"ON\":\"OFF\");\n", $max_field_len, ''; delete $$macroshash{$macro}; } } else { printf OUT "\tRTE_LOG(DEBUG, PMD, \" % *s Value : %%s\\n\",\n", $max_field_len, ''; foreach my $macro (@vmacros) { my $subfield_value = "data->$field"; $subfield_value = "($subfield_value & $macro_prefix\MASK)" if $vmacros_have_mask; print OUT "\t\t$subfield_value == $macro ? \"$subfields{$macro}\" :\n"; delete $$macroshash{$macro}; } print OUT "\t\t\"Unknown\");\n"; } } while ($header =~ /^typedef\s+struct\s+(.*?)\s+{(.*?)^}/msg) { my ($name,$def) = ($1, $2); my @fields=(); my %type=(); my @macros=(); my %macros=(); my $max_field_len=0; # First, pull out all the fields in order... while($def =~ /^\s*([^\s#\/]+?)\s+([^;\/\s]+?)\s*;/mg) { my ($type, $name) = ($1, $2); push @fields, $name; $type{$name}=$type; $max_field_len = length($name) if length($name) > $max_field_len; } # Now, pull out the macros... while($def =~ /^\s*\#define\s+([^\s]+?)\s+(.*?)\s*$/mg) { push @macros, $1; $macros{$1}=$2; } # Now, generate code to print the struct... print OUT "void decode_$name(const char *string __rte_unused, struct $name *data) {\n\tRTE_LOG(DEBUG, PMD, \"$name\\n\");\n"; print HDR "void decode_$name(const char *string __rte_unused, struct $name *data);\n"; $hdr_defs .= "#define decode_$name(x, y) {}\n"; foreach my $field (@fields) { if ($field =~ /\[([0-9]+)\]/) { if ($type{$field} eq 'char') { print_single_val($field, $type{$field}, $max_field_len, $name, \%macros, \@macros, \@fields); } else { foreach my $idx (0..$1-1) { my $item = $field; $item =~ s/\[[0-9]+\]/[$idx]/; print_single_val($item, $type{$field}, $max_field_len, $name, \%macros, \@macros, \@fields); } } } else { print_single_val($field, $type{$field}, $max_field_len, $name, \%macros, \@macros, \@fields); } } # print "Unhandled macros:\n",join("\n", keys %macros),"\n" if (keys %macros > 0); print OUT "}\n\n"; } print OUT "#endif\n"; print HDR "#else\n"; print HDR $hdr_defs; print HDR "#endif\n"; close OUT; close HDR; } diff --git a/sys/dev/cardbus/card_if.m b/sys/dev/cardbus/card_if.m index e1b816807a48..f0dbca5509c2 100644 --- a/sys/dev/cardbus/card_if.m +++ b/sys/dev/cardbus/card_if.m @@ -1,151 +1,150 @@ #- # Copyright (c) 1999 M. Warner Losh # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include INTERFACE card; # # Companion interface for pccard. We need to set attributes for memory # and i/o port mappings (as well as other types of attributes) that have # a well defined meaning inside the PC Card/CardBus system. The bus # methods are inadequate for this because this must be done at the time the # resources are set for the device, which predates their activation. Also, # the driver activating the resources doesn't necessarily know or need to know # these attributes. # METHOD int set_res_flags { device_t dev; device_t child; int restype; int rid; u_long value; }; METHOD int get_res_flags { device_t dev; device_t child; int restype; int rid; u_long *value; }; # # Sets the memory offset of the pccard bridge's window into attribute # or common memory space. # METHOD int set_memory_offset { device_t dev; device_t child; int rid; uint32_t cardaddr; uint32_t *deltap; } METHOD int get_memory_offset { device_t dev; device_t child; int rid; uint32_t *offset; } # # pccard bridges call this method to initate the attachment of a card # METHOD int attach_card { device_t dev; } # # pccard bridges call this to detach a card. # METHOD int detach_card { device_t dev; } # # Find "dev" in the passed table of devices. Return it or NULL. # METHOD const struct pccard_product * do_product_lookup { device_t bus; device_t dev; const struct pccard_product *tab; size_t ent_size; pccard_product_match_fn matchfn; } # # Scanning function for accessing the CIS of a card in its driver. # METHOD int cis_scan { device_t bus; device_t dev; pccard_scan_t fnp; void *argp; }; # # Convenience function to read attribute memory. # METHOD int attr_read { device_t bus; device_t dev; uint32_t offset; uint8_t *val; } # # Convenience function to write attribute memory. # METHOD int attr_write { device_t bus; device_t dev; uint32_t offset; uint8_t val; } # # Read the CCR register # METHOD int ccr_read { device_t bus; device_t dev; uint32_t offset; uint8_t *val; } # # Write the CCR register # METHOD int ccr_write { device_t bus; device_t dev; uint32_t offset; uint8_t val; } diff --git a/sys/dev/cardbus/power_if.m b/sys/dev/cardbus/power_if.m index b1067bda2b90..8f9223fa1bca 100644 --- a/sys/dev/cardbus/power_if.m +++ b/sys/dev/cardbus/power_if.m @@ -1,45 +1,44 @@ #- # Copyright (c) 1999 M. Warner Losh # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE power; # # Interface for powering cards on/off. It is hoped that this will be # generic enough to be used for other systems in addition to the pccard # <-> pcic interface that it was originally written for. # METHOD int enable_socket { device_t dev; device_t child; }; METHOD int disable_socket { device_t dev; device_t child; }; diff --git a/sys/dev/cxgb/bin2h.pl b/sys/dev/cxgb/bin2h.pl index 83ad3028c9a1..8d132be43ffb 100644 --- a/sys/dev/cxgb/bin2h.pl +++ b/sys/dev/cxgb/bin2h.pl @@ -1,81 +1,79 @@ #!/usr/bin/perl -w -#$FreeBSD$ - if ($#ARGV != 1) { print "bin2h.pl \n"; exit 1; } my $success = open INPUT, "$ARGV[0]"; unless ($success) { print "failed to open input\n"; exit 1; } $success = open OUTPUT, ">$ARGV[1].h"; unless ($success) { print "failed to open output\n"; exit 1; } my $license = < # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE t4; # The "main" device of a T4/T5 NIC is the PF4 device. Drivers for other # functions on the NIC need to wait for the main device to be initialized # before finishing attach. These routines allow drivers for other devices # to coordinate with the main driver for the PF4. # Called by a driver during attach to determine if the PF4 driver is # initialized. If the main driver is not ready, the driver should defer # further initialization until 'attach_child'. METHOD int is_main_ready { device_t dev; }; # Called by the PF4 driver on each sibling device when the PF4 driver is # initialized. METHOD int attach_child { device_t dev; }; # Called by the PF4 driver on each sibling device when the PF4 driver is # preparing to detach. METHOD int detach_child { device_t dev; }; # Called by a driver to query the PF4 driver for the child device # associated with a given port. If the port is not enabled on the adapter, # this will fail. METHOD int read_port_device { device_t dev; int port; device_t *child; }; diff --git a/sys/dev/dpaa2/memac_mdio_if.m b/sys/dev/dpaa2/memac_mdio_if.m index d49c95641409..41a67062a988 100644 --- a/sys/dev/dpaa2/memac_mdio_if.m +++ b/sys/dev/dpaa2/memac_mdio_if.m @@ -1,42 +1,41 @@ #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright © 2022, Bjoern A. Zeeb # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE memac_mdio; METHOD int set_ni_dev { device_t dev; device_t nidev; }; METHOD int get_phy_loc { device_t dev; int *phy_loc; }; diff --git a/sys/dev/dwc/if_dwc_if.m b/sys/dev/dwc/if_dwc_if.m index dae429c55e8a..b8133ef898da 100644 --- a/sys/dev/dwc/if_dwc_if.m +++ b/sys/dev/dwc/if_dwc_if.m @@ -1,90 +1,89 @@ #- # Copyright (c) 2015 Luiz Otavio O Souza # Copyright (c) 2014 Ruslan Bukin # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # INTERFACE if_dwc; #include CODE { static int if_dwc_default_init(device_t dev) { return (0); } static int if_dwc_default_mac_type(device_t dev) { return (DWC_GMAC_EXT_DESC); } static int if_dwc_default_mii_clk(device_t dev) { return (GMAC_MII_CLK_25_35M_DIV16); } static int if_dwc_default_set_speed(device_t dev, int speed) { return (0); } }; HEADER { }; # # Initialize the SoC specific registers. # METHOD int init { device_t dev; } DEFAULT if_dwc_default_init; # # Return the DWC MAC type (descriptor type). # METHOD int mac_type { device_t dev; } DEFAULT if_dwc_default_mac_type; # # Return the DWC MII clock for a specific hardware. # METHOD int mii_clk { device_t dev; } DEFAULT if_dwc_default_mii_clk; # # Signal media change to a specific hardware # METHOD int set_speed { device_t dev; int speed; } DEFAULT if_dwc_default_set_speed; diff --git a/sys/dev/etherswitch/etherswitch_if.m b/sys/dev/etherswitch/etherswitch_if.m index a13013d77c87..f8e43a277210 100644 --- a/sys/dev/etherswitch/etherswitch_if.m +++ b/sys/dev/etherswitch/etherswitch_if.m @@ -1,221 +1,220 @@ -# $FreeBSD$ #include # Needed for ifreq/ifmediareq #include #include #include INTERFACE etherswitch; # # Default implementation # CODE { static void null_etherswitch_lock(device_t dev) { } static void null_etherswitch_unlock(device_t dev) { } static int null_etherswitch_getconf(device_t dev, etherswitch_conf_t *conf) { return (0); } static int null_etherswitch_setconf(device_t dev, etherswitch_conf_t *conf) { return (0); } static int null_etherswitch_flush_all(device_t dev) { return (ENXIO); } static int null_etherswitch_flush_port(device_t dev, int port) { return (ENXIO); } static int null_etherswitch_flush_mac(device_t dev, etherswitch_atu_flush_macentry_t *e) { return (ENXIO); } static int null_etherswitch_fetch_table(device_t dev, etherswitch_atu_table_t *table) { table->es_nitems = 0; return (ENXIO); } static int null_etherswitch_fetch_entry(device_t dev, etherswitch_atu_entry_t *e) { return (ENXIO); } }; # # Return device info # METHOD etherswitch_info_t* getinfo { device_t dev; } # # Lock access to switch registers # METHOD void lock { device_t dev; } DEFAULT null_etherswitch_lock; # # Unlock access to switch registers # METHOD void unlock { device_t dev; } DEFAULT null_etherswitch_unlock; # # Read switch register # METHOD int readreg { device_t dev; int reg; }; # # Write switch register # METHOD int writereg { device_t dev; int reg; int value; }; # # Read PHY register # METHOD int readphyreg { device_t dev; int phy; int reg; }; # # Write PHY register # METHOD int writephyreg { device_t dev; int phy; int reg; int value; }; # # Get port configuration # METHOD int getport { device_t dev; etherswitch_port_t *vg; } # # Set port configuration # METHOD int setport { device_t dev; etherswitch_port_t *vg; } # # Get VLAN group configuration # METHOD int getvgroup { device_t dev; etherswitch_vlangroup_t *vg; } # # Set VLAN group configuration # METHOD int setvgroup { device_t dev; etherswitch_vlangroup_t *vg; } # # Get the Switch configuration # METHOD int getconf { device_t dev; etherswitch_conf_t *conf; } DEFAULT null_etherswitch_getconf; # # Set the Switch configuration # METHOD int setconf { device_t dev; etherswitch_conf_t *conf; } DEFAULT null_etherswitch_setconf; # # Flush all of the programmed/learnt MAC addresses # METHOD int flush_all { device_t dev; } DEFAULT null_etherswitch_flush_all; # # Flush a single MAC address entry # METHOD int flush_mac { device_t dev; etherswitch_atu_flush_macentry_t *entry; } DEFAULT null_etherswitch_flush_mac; # # Flush all of the dynamic MAC addresses on a given port # METHOD int flush_port { device_t dev; int port; } DEFAULT null_etherswitch_flush_port; # # Fetch the address table from the ethernet switch. # METHOD int fetch_table { device_t dev; etherswitch_atu_table_t *table; } DEFAULT null_etherswitch_fetch_table; # # Fetch a single entry from the ethernet switch table. # METHOD int fetch_table_entry { device_t dev; etherswitch_atu_entry_t *entry; } DEFAULT null_etherswitch_fetch_entry; diff --git a/sys/dev/extres/clk/clkdev_if.m b/sys/dev/extres/clk/clkdev_if.m index f9f5084d2c77..8b75cfb9003b 100644 --- a/sys/dev/extres/clk/clkdev_if.m +++ b/sys/dev/extres/clk/clkdev_if.m @@ -1,138 +1,137 @@ #- # Copyright 2016 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE clkdev; CODE { #include #include static int clkdev_default_write_4(device_t dev, bus_addr_t addr, uint32_t val) { device_t pdev; pdev = device_get_parent(dev); if (pdev == NULL) return (ENXIO); return (CLKDEV_WRITE_4(pdev, addr, val)); } static int clkdev_default_read_4(device_t dev, bus_addr_t addr, uint32_t *val) { device_t pdev; pdev = device_get_parent(dev); if (pdev == NULL) return (ENXIO); return (CLKDEV_READ_4(pdev, addr, val)); } static int clkdev_default_modify_4(device_t dev, bus_addr_t addr, uint32_t clear_mask, uint32_t set_mask) { device_t pdev; pdev = device_get_parent(dev); if (pdev == NULL) return (ENXIO); return (CLKDEV_MODIFY_4(pdev, addr, clear_mask, set_mask)); } static void clkdev_default_device_lock(device_t dev) { device_t pdev; pdev = device_get_parent(dev); if (pdev == NULL) panic("clkdev_device_lock not implemented"); CLKDEV_DEVICE_LOCK(pdev); } static void clkdev_default_device_unlock(device_t dev) { device_t pdev; pdev = device_get_parent(dev); if (pdev == NULL) panic("clkdev_device_unlock not implemented"); CLKDEV_DEVICE_UNLOCK(pdev); } } # # Write single register # METHOD int write_4 { device_t dev; bus_addr_t addr; uint32_t val; } DEFAULT clkdev_default_write_4; # # Read single register # METHOD int read_4 { device_t dev; bus_addr_t addr; uint32_t *val; } DEFAULT clkdev_default_read_4; # # Modify single register # METHOD int modify_4 { device_t dev; bus_addr_t addr; uint32_t clear_mask; uint32_t set_mask; } DEFAULT clkdev_default_modify_4; # # Get exclusive access to underlying device # METHOD void device_lock { device_t dev; } DEFAULT clkdev_default_device_lock; # # Release exclusive access to underlying device # METHOD void device_unlock { device_t dev; } DEFAULT clkdev_default_device_unlock; diff --git a/sys/dev/extres/clk/clknode_if.m b/sys/dev/extres/clk/clknode_if.m index 367bc0c432ed..69cb514e4deb 100644 --- a/sys/dev/extres/clk/clknode_if.m +++ b/sys/dev/extres/clk/clknode_if.m @@ -1,90 +1,89 @@ #- # Copyright 2016 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # INTERFACE clknode; HEADER { struct clknode; } # # Initialize clock node, get shanpshot of cached values # METHOD int init { struct clknode *clk; device_t dev; }; # # Recalculate frequency # req - in/out recalulated frequency # METHOD int recalc_freq { struct clknode *clk; uint64_t *freq; }; # # Set frequency # fin - parent (input)frequency. # fout - requested output freqency. If clock cannot change frequency, # then must return new requested frequency for his parent METHOD int set_freq { struct clknode *clk; uint64_t fin; uint64_t *fout; int flags; int *done; }; # # Enable/disable clock # METHOD int set_gate { struct clknode *clk; bool enable; }; # # Get gate status # Return: ENXIO - method is not implemented # ENOENT - HW doesn't support reading of gate enable # 0 - success # METHOD int get_gate { struct clknode *clk; bool *enabled; }; # # Set multiplexer # METHOD int set_mux { struct clknode *clk; int idx; }; diff --git a/sys/dev/extres/hwreset/hwreset_if.m b/sys/dev/extres/hwreset/hwreset_if.m index 87f1cb0da244..53b75c246d64 100644 --- a/sys/dev/extres/hwreset/hwreset_if.m +++ b/sys/dev/extres/hwreset/hwreset_if.m @@ -1,74 +1,73 @@ #- # Copyright 2016 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include "opt_platform.h" #ifdef FDT #include #include #endif INTERFACE hwreset; #ifdef FDT HEADER { int hwreset_default_ofw_map(device_t , phandle_t, int, pcell_t *, intptr_t *); } # # map fdt property cells to reset id # Returns 0 on success or a standard errno value. # METHOD int map { device_t provider_dev; phandle_t xref; int ncells; pcell_t *cells; intptr_t *id; } DEFAULT hwreset_default_ofw_map; #endif # # Assert/deassert given reset. # Returns 0 on success or a standard errno value. # METHOD int assert { device_t provider_dev; intptr_t id; bool value; }; # # Get actual status of given reset. # Returns 0 on success or a standard errno value. # METHOD int is_asserted { device_t provider_dev; intptr_t id; bool *value; }; diff --git a/sys/dev/extres/nvmem/nvmem_if.m b/sys/dev/extres/nvmem/nvmem_if.m index 769e07d9bc4f..e7f31ba0755a 100644 --- a/sys/dev/extres/nvmem/nvmem_if.m +++ b/sys/dev/extres/nvmem/nvmem_if.m @@ -1,67 +1,66 @@ #- # Copyright (c) 2018 Emmanuel Vadot # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # INTERFACE nvmem; # # Default implementations of some methods. # CODE { static int null_nvmem_read(device_t dev __unused, uint32_t offset __unused, uint32_t size __unused, uint8_t *buffer __unused) { return (ENXIO); } static int null_nvmem_write(device_t dev __unused, uint32_t offset __unused, uint32_t size __unused, uint8_t *buffer __unused) { return (ENXIO); } }; # # Read # METHOD int read { device_t dev; uint32_t offset; uint32_t size; uint8_t *buffer; } DEFAULT null_nvmem_read; # # Write # METHOD int write { device_t dev; uint32_t offset; uint32_t size; uint8_t *buffer; } DEFAULT null_nvmem_write; diff --git a/sys/dev/extres/phy/phydev_if.m b/sys/dev/extres/phy/phydev_if.m index 5d35f84efbf6..310b056c68df 100644 --- a/sys/dev/extres/phy/phydev_if.m +++ b/sys/dev/extres/phy/phydev_if.m @@ -1,51 +1,50 @@ #- # Copyright 2017 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include INTERFACE phydev; HEADER { int phydev_default_ofw_map(device_t , phandle_t, int, pcell_t *, intptr_t *); } # # map fdt property cells to regulator number # Returns 0 on success or a standard errno value. # METHOD int map { device_t provider_dev; phandle_t xref; int ncells; pcell_t *cells; intptr_t *id; } DEFAULT phydev_default_ofw_map; diff --git a/sys/dev/extres/phy/phynode_usb_if.m b/sys/dev/extres/phy/phynode_usb_if.m index 3622e2cc9938..2a3906522740 100644 --- a/sys/dev/extres/phy/phynode_usb_if.m +++ b/sys/dev/extres/phy/phynode_usb_if.m @@ -1,51 +1,50 @@ #- # Copyright 2018 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # INTERFACE phynode_usb; HEADER { struct phynode; } # # Set USB mode for phy # Returns 0 on success or a standard errno value. # METHOD int set_mode { struct phynode *phynode; int usb_mode; /* PHY_USB_MODE_* */ }; # # Get USB mode # Returns 0 on success or a standard errno value. # METHOD int get_mode { struct phynode *phynode; int *usb_mode; /* PHY_USB_MODE_* */ }; diff --git a/sys/dev/extres/regulator/regdev_if.m b/sys/dev/extres/regulator/regdev_if.m index 426012bc45b6..bed20c464a1c 100644 --- a/sys/dev/extres/regulator/regdev_if.m +++ b/sys/dev/extres/regulator/regdev_if.m @@ -1,50 +1,49 @@ #- # Copyright 2016 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include INTERFACE regdev; HEADER { int regdev_default_ofw_map(device_t , phandle_t, int, pcell_t *, intptr_t *); } # # map fdt property cells to regulator number # Returns 0 on success or a standard errno value. # METHOD int map { device_t provider_dev; phandle_t xref; int ncells; pcell_t *cells; intptr_t *id; } DEFAULT regdev_default_ofw_map; diff --git a/sys/dev/extres/regulator/regnode_if.m b/sys/dev/extres/regulator/regnode_if.m index 616cbd36a061..83ca0460ff70 100644 --- a/sys/dev/extres/regulator/regnode_if.m +++ b/sys/dev/extres/regulator/regnode_if.m @@ -1,109 +1,108 @@ #- # Copyright (c) 2016 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # INTERFACE regnode; HEADER { struct regnode; } CODE { static int regnode_default_stop(struct regnode *regnode, int *udelay) { return(REGNODE_ENABLE(regnode, false, udelay)); } } # # Initialize regulator # Returns 0 on success or a standard errno value. # METHOD int init { struct regnode *regnode; }; # # Enable/disable regulator # Returns 0 on success or a standard errno value. # - enable - input. # - delay - output, delay needed to stabilize voltage (in us) # METHOD int enable { struct regnode *regnode; bool enable; int *udelay; }; # # Get regulator status # Returns 0 on success or a standard errno value. # METHOD int status { struct regnode *regnode; int *status; /* REGULATOR_STATUS_* */ }; # # Set regulator voltage # Returns 0 on success or a standard errno value. # - min_uvolt, max_uvolt - input, requested voltage range (in uV) # - delay - output, delay needed to stabilize voltage (in us) METHOD int set_voltage { struct regnode *regnode; int min_uvolt; int max_uvolt; int *udelay; }; # # Get regulator voltage # Returns 0 on success or a standard errno value. # METHOD int get_voltage { struct regnode *regnode; int *uvolt; }; # # Check if a given voltage is supported by the regulator # Returns 0 on success or a standard errno value. # METHOD int check_voltage { struct regnode *regnode; int uvolt; }; # # Stop (shutdown) regulator # Returns 0 on success or a standard errno value. # METHOD int stop { struct regnode *regnode; int *udelay; } DEFAULT regnode_default_stop; diff --git a/sys/dev/extres/syscon/syscon_if.m b/sys/dev/extres/syscon/syscon_if.m index d6b88d2c35dd..f67dae55c8fd 100644 --- a/sys/dev/extres/syscon/syscon_if.m +++ b/sys/dev/extres/syscon/syscon_if.m @@ -1,135 +1,134 @@ #- # Copyright (c) 2015 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE syscon; HEADER { struct syscon; int syscon_get_handle_default(device_t dev, struct syscon **syscon); } CODE { #include #include int syscon_get_handle_default(device_t dev, struct syscon **syscon) { device_t parent; parent = device_get_parent(dev); if (parent == NULL) return (ENODEV); return (SYSCON_GET_HANDLE(parent, syscon)); } static void syscon_device_lock_default(device_t dev) { panic("syscon_device_lock is not implemented"); }; static void syscon_device_unlock_default(device_t dev) { panic("syscon_device_unlock is not implemented"); }; } METHOD int init { struct syscon *syscon; }; METHOD int uninit { struct syscon *syscon; }; /** * Accessor functions for syscon register space */ METHOD uint32_t read_4 { struct syscon *syscon; bus_size_t offset; }; METHOD int write_4 { struct syscon *syscon; bus_size_t offset; uint32_t val; }; METHOD int modify_4 { struct syscon *syscon; bus_size_t offset; uint32_t clear_bits; uint32_t set_bits; }; /** * Unlocked verion of access function */ METHOD uint32_t unlocked_read_4 { struct syscon *syscon; bus_size_t offset; }; METHOD int unlocked_write_4 { struct syscon *syscon; bus_size_t offset; uint32_t val; }; METHOD int unlocked_modify_4 { struct syscon *syscon; bus_size_t offset; uint32_t clear_bits; uint32_t set_bits; }; /** * Locking for exclusive access to underlying device */ METHOD void device_lock { device_t dev; } DEFAULT syscon_device_lock_default; METHOD void device_unlock { device_t dev; } DEFAULT syscon_device_unlock_default; /** * Get syscon handle from parent driver */ METHOD int get_handle { device_t dev; struct syscon **syscon; } DEFAULT syscon_get_handle_default; diff --git a/sys/dev/fdt/fdt_clock_if.m b/sys/dev/fdt/fdt_clock_if.m index 68e4e49093e0..9c77d246cd44 100644 --- a/sys/dev/fdt/fdt_clock_if.m +++ b/sys/dev/fdt/fdt_clock_if.m @@ -1,81 +1,80 @@ #- # Copyright (c) 2014 Ian Lepore # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include # # This is the interface that fdt_clock drivers provide to other drivers. # In this context, clock refers to a clock signal provided to some other # hardware component within the system. They are most often found within # embedded processors that have on-chip IO controllers. # INTERFACE fdt_clock; HEADER { enum { FDT_CIFLAG_RUNNING = 0x01, }; struct fdt_clock_info { device_t provider; uint32_t index; const char * name; /* May be "", will not be NULL. */ uint32_t flags; uint64_t frequency; /* In Hz. */ }; } # # Enable the specified clock. # Returns 0 on success or a standard errno value. # METHOD int enable { device_t provider; int index; }; # # Disable the specified clock. # Returns 0 on success or a standard errno value. # METHOD int disable { device_t provider; int index; }; # # Returns information about the current operational state of specified clock. # METHOD int get_info { device_t provider; int index; struct fdt_clock_info *info; }; diff --git a/sys/dev/fdt/fdt_pinctrl_if.m b/sys/dev/fdt/fdt_pinctrl_if.m index 3defb630140a..a20e41229977 100644 --- a/sys/dev/fdt/fdt_pinctrl_if.m +++ b/sys/dev/fdt/fdt_pinctrl_if.m @@ -1,117 +1,116 @@ #- # Copyright (c) 2014 Ian Lepore # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include # # This is the interface that fdt_pinctrl drivers provide to other drivers. # INTERFACE fdt_pinctrl; CODE { static int fdt_pinctrl_default_is_gpio(device_t pinctrl, device_t gpio, bool *is_gpio) { return (EOPNOTSUPP); } static int fdt_pinctrl_default_set_flags(device_t pinctrl, device_t gpio, uint32_t pin, uint32_t flags) { return (EOPNOTSUPP); } static int fdt_pinctrl_default_get_flags(device_t pinctrl, device_t gpio, uint32_t pin, uint32_t *flags) { return (EOPNOTSUPP); } }; # Needed for timestamping device probe/attach calls HEADER { #include } # # Set pins to the specified configuration. The cfgxref arg is an xref phandle # to a descendent node (child, grandchild, ...) of the pinctrl device node. # Returns 0 on success or a standard errno value. # PROLOG { TSENTER2(device_get_name(pinctrl)); } EPILOG { TSEXIT2(device_get_name(pinctrl)); } METHOD int configure { device_t pinctrl; phandle_t cfgxref; }; # # Test if the pin is in gpio mode # Called from a gpio device # METHOD int is_gpio { device_t pinctrl; device_t gpio; uint32_t pin; bool *is_gpio; } DEFAULT fdt_pinctrl_default_is_gpio; # # Set the flags of a pin # Called from a gpio device # METHOD int set_flags { device_t pinctrl; device_t gpio; uint32_t pin; uint32_t flags; } DEFAULT fdt_pinctrl_default_set_flags; # # Get the flags of a pin # Called from a gpio device # METHOD int get_flags { device_t pinctrl; device_t gpio; uint32_t pin; uint32_t *flags; } DEFAULT fdt_pinctrl_default_get_flags; diff --git a/sys/dev/flash/qspi_if.m b/sys/dev/flash/qspi_if.m index d810217ebe77..e916178c4208 100644 --- a/sys/dev/flash/qspi_if.m +++ b/sys/dev/flash/qspi_if.m @@ -1,76 +1,75 @@ #- # Copyright (c) 2017-2018 Ruslan Bukin # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE qspi; METHOD int read { device_t dev; device_t child; struct bio *bp; off_t offset; caddr_t data; off_t count; }; METHOD int write { device_t dev; device_t child; struct bio *bp; off_t offset; caddr_t data; off_t count; }; METHOD int erase { device_t dev; device_t child; off_t offset; }; METHOD int write_reg { device_t dev; device_t child; uint8_t opcode; uint8_t *addr; uint32_t len; }; METHOD int read_reg { device_t dev; device_t child; uint8_t opcode; uint8_t *addr; uint32_t len; }; diff --git a/sys/dev/gpio/dwgpio/dwgpio_if.m b/sys/dev/gpio/dwgpio/dwgpio_if.m index ed423a6dc3e3..3fba5f8bb5d6 100644 --- a/sys/dev/gpio/dwgpio/dwgpio_if.m +++ b/sys/dev/gpio/dwgpio/dwgpio_if.m @@ -1,52 +1,51 @@ #- # Copyright (c) 2019 Ruslan Bukin # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory (Department of Computer Science and # Technology) under DARPA contract HR0011-18-C-0016 ("ECATS"), as part of the # DARPA SSITH research programme. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE dwgpio; # # GPIO write # METHOD int write { device_t dev; bus_size_t offset; int val; }; # # GPIO read # METHOD int read { device_t dev; bus_size_t offset; }; diff --git a/sys/dev/gpio/gpio_if.m b/sys/dev/gpio/gpio_if.m index 4a97f532b1e2..5501b2b5c0e7 100644 --- a/sys/dev/gpio/gpio_if.m +++ b/sys/dev/gpio/gpio_if.m @@ -1,188 +1,187 @@ #- # Copyright (c) 2009 Oleksandr Tymoshenko # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE gpio; CODE { static device_t gpio_default_get_bus(void) { return (NULL); } static int gpio_default_nosupport(void) { return (EOPNOTSUPP); } static int gpio_default_map_gpios(device_t bus, phandle_t dev, phandle_t gparent, int gcells, pcell_t *gpios, uint32_t *pin, uint32_t *flags) { /* Propagate up the bus hierarchy until someone handles it. */ if (device_get_parent(bus) != NULL) return (GPIO_MAP_GPIOS(device_get_parent(bus), dev, gparent, gcells, gpios, pin, flags)); /* If that fails, then assume the FreeBSD defaults. */ *pin = gpios[0]; if (gcells == 2 || gcells == 3) *flags = gpios[gcells - 1]; return (0); } }; HEADER { #include }; # # Return the gpiobus device reference # METHOD device_t get_bus { device_t dev; } DEFAULT gpio_default_get_bus; # # Get maximum pin number # METHOD int pin_max { device_t dev; int *maxpin; }; # # Set value of pin specified by pin_num # METHOD int pin_set { device_t dev; uint32_t pin_num; uint32_t pin_value; }; # # Get value of pin specified by pin_num # METHOD int pin_get { device_t dev; uint32_t pin_num; uint32_t *pin_value; }; # # Toggle value of pin specified by pin_num # METHOD int pin_toggle { device_t dev; uint32_t pin_num; }; # # Get pin capabilities # METHOD int pin_getcaps { device_t dev; uint32_t pin_num; uint32_t *caps; }; # # Get pin flags # METHOD int pin_getflags { device_t dev; uint32_t pin_num; uint32_t *flags; }; # # Get pin name # METHOD int pin_getname { device_t dev; uint32_t pin_num; char *name; }; # # Set current configuration and capabilities # METHOD int pin_setflags { device_t dev; uint32_t pin_num; uint32_t flags; }; # # Allow the GPIO controller to map the gpio-specifier on its own. # METHOD int map_gpios { device_t bus; phandle_t dev; phandle_t gparent; int gcells; pcell_t *gpios; uint32_t *pin; uint32_t *flags; } DEFAULT gpio_default_map_gpios; # # Simultaneously read and/or change up to 32 adjacent pins. # If the device cannot change the pins simultaneously, returns EOPNOTSUPP. # # More details about using this interface can be found in sys/gpio.h # METHOD int pin_access_32 { device_t dev; uint32_t first_pin; uint32_t clear_pins; uint32_t change_pins; uint32_t *orig_pins; } DEFAULT gpio_default_nosupport; # # Simultaneously configure up to 32 adjacent pins. # This is intended to change the configuration of all the pins simultaneously, # but unlike pin_access_32, this will not fail if the hardware can't do so. # # More details about using this interface can be found in sys/gpio.h # METHOD int pin_config_32 { device_t dev; uint32_t first_pin; uint32_t num_pins; uint32_t *pin_flags; } DEFAULT gpio_default_nosupport; diff --git a/sys/dev/gpio/gpiobus_if.m b/sys/dev/gpio/gpiobus_if.m index 63324645a4de..8bf29839ef4e 100644 --- a/sys/dev/gpio/gpiobus_if.m +++ b/sys/dev/gpio/gpiobus_if.m @@ -1,126 +1,125 @@ #- # Copyright (c) 2009 Oleksandr Tymoshenko # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE gpiobus; # # Dedicate the gpio bus control for a child # METHOD int acquire_bus { device_t busdev; device_t dev; int how; }; # # Release the bus # METHOD void release_bus { device_t busdev; device_t dev; }; # # Set value of pin specified by pin_num # METHOD int pin_set { device_t dev; device_t child; uint32_t pin_num; uint32_t pin_value; }; # # Get value of pin specified by pin_num # METHOD int pin_get { device_t dev; device_t child; uint32_t pin_num; uint32_t *pin_value; }; # # Toggle value of pin specified by pin_num # METHOD int pin_toggle { device_t dev; device_t child; uint32_t pin_num; }; # # Get pin capabilities # METHOD int pin_getcaps { device_t dev; device_t child; uint32_t pin_num; uint32_t *caps; }; # # Get pin flags # METHOD int pin_getflags { device_t dev; device_t child; uint32_t pin_num; uint32_t *flags; }; # # Set current configuration and capabilities # METHOD int pin_setflags { device_t dev; device_t child; uint32_t pin_num; uint32_t flags; }; # # Get the pin name # METHOD int pin_getname { device_t dev; uint32_t pin_num; char *name; }; # # Set the pin name # METHOD int pin_setname { device_t dev; uint32_t pin_num; const char *name; }; diff --git a/sys/dev/hid/hid_if.m b/sys/dev/hid/hid_if.m index 9050620ccea6..8c0e4a63d7f6 100644 --- a/sys/dev/hid/hid_if.m +++ b/sys/dev/hid/hid_if.m @@ -1,189 +1,188 @@ #- # Copyright (c) 2019 Vladimir Kondratyev # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include #include #include # Any function listed here can do unbound sleeps waiting for IO to complete. INTERFACE hid; # Interrupts interface # # Allocate memory and initialise interrupt transfers. # intr callback function which is called if input data is available. # context is the private softc pointer, which will be used to callback. # rdesc is pointer to structire containing requested maximal sizes of input, # output and feature reports. It is used by hardware transport drivers # to determine sizes of internal buffers. # This function can be subsequently called with intr parameter set to NULL # to request intr_poll method support for transport driver. # METHOD void intr_setup { device_t dev; device_t child; hid_intr_t intr; void *context; struct hid_rdesc_info *rdesc; }; # # Release all allocated resources associated with interrupt transfers. # METHOD void intr_unsetup { device_t dev; device_t child; }; # # Start the interrupt transfers if not already started. # METHOD int intr_start { device_t dev; device_t child; }; # # Stop the interrupt transfers if not already stopped. # METHOD int intr_stop { device_t dev; device_t child; }; # # The following function gets called from the HID keyboard driver when # the system has panicked. intr_setup method with NULL passed as intr parameter # must be called once before to let transport driver to be prepared. # METHOD void intr_poll { device_t dev; device_t child; }; # HID interface # # Read out an report descriptor from the HID device. # METHOD int get_rdesc { device_t dev; device_t child; void *data; hid_size_t len; }; # # Get input data from the device. Data should be read in chunks # of the size prescribed by the report descriptor. # This function interferes with interrupt transfers and should not be used. # METHOD int read { device_t dev; device_t child; void *data; hid_size_t maxlen; hid_size_t *actlen; }; # # Send data to the device. Data should be written in # chunks of the size prescribed by the report descriptor. # METHOD int write { device_t dev; device_t child; const void *data; hid_size_t len; }; # # Get a report from the device without waiting for data on the interrupt. # Copies a maximum of len bytes of the report data into the memory specified # by data. Upon return actlen is set to the number of bytes copied. The type # field indicates which report is requested. It should be HID_INPUT_REPORT, # HID_OUTPUT_REPORT, or HID_FEATURE_REPORT. This call may fail if the device # does not support this feature. # METHOD int get_report { device_t dev; device_t child; void *data; hid_size_t maxlen; hid_size_t *actlen; uint8_t type; uint8_t id; }; # # Set a report in the device. The type field indicates which report is to be # set. It should be HID_INPUT_REPORT, HID_OUTPUT_REPORT, or HID_FEATURE_REPORT. # The value of the report is specified by the data and the len fields. # This call may fail if the device does not support this feature. # METHOD int set_report { device_t dev; device_t child; const void *data; hid_size_t len; uint8_t type; uint8_t id; }; # # Set duration between input reports (in mSec). # METHOD int set_idle { device_t dev; device_t child; uint16_t duration; uint8_t id; }; # # Switch between the boot protocol and the report protocol (or vice versa). # METHOD int set_protocol { device_t dev; device_t child; uint16_t protocol; }; # # Executes arbitrary transport backend command. # Format of command is defined by hardware transport driver. # METHOD int ioctl { device_t dev; device_t child; unsigned long cmd; uintptr_t data; }; diff --git a/sys/dev/hyperv/vmbus/vmbus_if.m b/sys/dev/hyperv/vmbus/vmbus_if.m index 3b41c5148fdf..a6bb511207d7 100644 --- a/sys/dev/hyperv/vmbus/vmbus_if.m +++ b/sys/dev/hyperv/vmbus/vmbus_if.m @@ -1,60 +1,59 @@ #- # Copyright (c) 2016 Microsoft Corp. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice unmodified, this list of conditions, and the following # disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE vmbus; HEADER { struct hyperv_guid; struct taskqueue; }; METHOD uint32_t get_version { device_t bus; device_t dev; }; METHOD int probe_guid { device_t bus; device_t dev; const struct hyperv_guid *guid; }; METHOD uint32_t get_vcpu_id { device_t bus; device_t dev; int cpu; }; METHOD struct taskqueue * get_event_taskq { device_t bus; device_t dev; int cpu; }; diff --git a/sys/dev/ice/irdma_di_if.m b/sys/dev/ice/irdma_di_if.m index 4fe7feebffea..ca1a4ad834ab 100644 --- a/sys/dev/ice/irdma_di_if.m +++ b/sys/dev/ice/irdma_di_if.m @@ -1,97 +1,96 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2023, Intel Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # 3. Neither the name of the Intel Corporation nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -# $FreeBSD$ /** * @file irdma_di_if.m * @brief RDMA client kobject driver interface * * KObject methods implemented by the ice driver. These functions are called * by the RDMA client driver to connect with the ice driver and request * operations or notify the driver of RDMA events. */ #include "ice_rdma.h" INTERFACE irdma_di; /** * reset - Request the ice driver to perform a reset * @peer: the RDMA peer structure * * Called by the RDMA client driver to request a reset of the ice device. */ METHOD int reset { struct ice_rdma_peer *peer; }; /** * msix_init - Initialize MSI-X resources for the RDMA driver * @peer: the RDMA peer structure * @msix_info: the requested MSI-X mapping * * Called by the RDMA client driver to request initialization of the MSI-X * resources used for RDMA functionality. */ METHOD int msix_init { struct ice_rdma_peer *peer; struct ice_rdma_msix_mapping *msix_info; }; /** * qset_register_request - RDMA client interface request qset * registration or deregistration * @peer: the RDMA peer client structure * @res: resources to be registered or unregistered */ METHOD int qset_register_request { struct ice_rdma_peer *peer; struct ice_rdma_qset_update *res; }; /** * vsi_filter_update - configure vsi information * when opening or closing rdma driver * @peer: the RDMA peer client structure * @enable: enable or disable the rdma filter */ METHOD int vsi_filter_update { struct ice_rdma_peer *peer; bool enable; }; /** * req_handler - handle requests incoming from RDMA driver * @peer: the RDMA peer client structure * @req: structure containing request */ METHOD void req_handler { struct ice_rdma_peer *peer; struct ice_rdma_request *req; }; diff --git a/sys/dev/ice/irdma_if.m b/sys/dev/ice/irdma_if.m index 370e483d55da..c5db6f45c503 100644 --- a/sys/dev/ice/irdma_if.m +++ b/sys/dev/ice/irdma_if.m @@ -1,106 +1,105 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2023, Intel Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # 3. Neither the name of the Intel Corporation nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -# $FreeBSD$ /** * @file irdma_if.m * @brief RDMA client kobject interface * * KOBject methods implemented by the RDMA client driver. These functions will * be called from the ice driver to notify the RDMA client driver of device * driver events. */ #include "ice_rdma.h" INTERFACE irdma; /** * probe - Notify the RDMA client driver that a peer device has been created * @peer: the RDMA peer structure * * Called by the ice driver during attach to notify the RDMA client driver * that a new PF has been initialized. */ METHOD int probe { struct ice_rdma_peer *peer; }; /** * open - Notify the RDMA client driver that a peer device has been opened * @peer: the RDMA peer structure * * Called by the ice driver during the if_init routine to notify the RDMA * client driver that a PF has been activated. */ METHOD int open { struct ice_rdma_peer *peer; }; /** * close - Notify the RDMA client driver that a peer device has closed * @peer: the RDMA peer structure * * Called by the ice driver during the if_stop routine to notify the RDMA * client driver that a PF has been deactivated. */ METHOD int close { struct ice_rdma_peer *peer; }; /** * remove - Notify the RDMA client driver that a peer device has been removed * @peer: the RDMA peer structure * * Called by the ice driver during detach to notify the RDMA client driver * that a PF has been removed. */ METHOD int remove { struct ice_rdma_peer *peer; } /** * link_change - Notify the RDMA client driver that link status has changed * @peer: the RDMA peer structure * @linkstate: link status * @baudrate: link rate in bits per second * * Called by the ice driver when link status changes to notify the RDMA client * driver of the new status. */ METHOD void link_change { struct ice_rdma_peer *peer; int linkstate; uint64_t baudrate; } METHOD void event_handler { struct ice_rdma_peer *peer; struct ice_rdma_event *event; } diff --git a/sys/dev/iicbus/iicbb_if.m b/sys/dev/iicbus/iicbb_if.m index f363d5c1afbc..7909ec700b05 100644 --- a/sys/dev/iicbus/iicbb_if.m +++ b/sys/dev/iicbus/iicbb_if.m @@ -1,118 +1,117 @@ #- # Copyright (c) 1998 Nicolas Souchu # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE iicbb; # # Default implementation of optional methods # CODE { static int null_pre_xfer(device_t dev) { return 0; } static void null_post_xfer(device_t dev) { } static int null_callback(device_t dev, int index, caddr_t data) { return 0; } }; # # iicbus callback # METHOD int callback { device_t dev; int index; caddr_t data; } DEFAULT null_callback; # # Prepare device for I2C transfer # METHOD int pre_xfer { device_t dev; } DEFAULT null_pre_xfer; # # Cleanup device after I2C transfer # METHOD void post_xfer { device_t dev; } DEFAULT null_post_xfer; # # Set I2C bus data line # METHOD void setsda { device_t dev; int val; }; # # Set I2C bus clock line # METHOD void setscl { device_t dev; int val; }; # # Get I2C bus data line # # METHOD int getsda { device_t dev; }; # # Get I2C bus clock line # # METHOD int getscl { device_t dev; }; # # Reset interface # METHOD int reset { device_t dev; u_char speed; u_char addr; u_char *oldaddr; }; diff --git a/sys/dev/iicbus/iicbus_if.m b/sys/dev/iicbus/iicbus_if.m index a52fda838505..f368ad39409b 100644 --- a/sys/dev/iicbus/iicbus_if.m +++ b/sys/dev/iicbus/iicbus_if.m @@ -1,147 +1,146 @@ #- # Copyright (c) 1998 Nicolas Souchu # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE iicbus; CODE { static int iicbus_nosupport(void) { return (ENODEV); } static u_int iicbus_default_frequency(device_t bus, u_char speed) { return (100000); } }; # # Interpret interrupt # METHOD int intr { device_t dev; int event; char *buf; }; # # iicbus callback # Request ownership of bus # index: IIC_REQUEST_BUS or IIC_RELEASE_BUS # data: pointer to int containing IIC_WAIT or IIC_DONTWAIT and either IIC_INTR or IIC_NOINTR # This function is allowed to sleep if *data contains IIC_WAIT. # METHOD int callback { device_t dev; int index; caddr_t data; }; # # Send REPEATED_START condition # METHOD int repeated_start { device_t dev; u_char slave; int timeout; } DEFAULT iicbus_nosupport; # # Send START condition # METHOD int start { device_t dev; u_char slave; int timeout; } DEFAULT iicbus_nosupport; # # Send STOP condition # METHOD int stop { device_t dev; } DEFAULT iicbus_nosupport; # # Read from I2C bus # METHOD int read { device_t dev; char *buf; int len; int *bytes; int last; int delay; } DEFAULT iicbus_nosupport; # # Write to the I2C bus # METHOD int write { device_t dev; const char *buf; int len; int *bytes; int timeout; } DEFAULT iicbus_nosupport; # # Reset I2C bus # METHOD int reset { device_t dev; u_char speed; u_char addr; u_char *oldaddr; }; # # Generalized Read/Write interface # METHOD int transfer { device_t dev; struct iic_msg *msgs; uint32_t nmsgs; }; # # Return the frequency in Hz for the bus running at the given # symbolic speed. Only the IIC_SLOW speed has meaning, it is always # 100KHz. The UNKNOWN, FAST, and FASTEST rates all map to the # configured bus frequency, or 100KHz when not otherwise configured. # METHOD u_int get_frequency { device_t dev; u_char speed; } DEFAULT iicbus_default_frequency; diff --git a/sys/dev/iicbus/mux/iicmux_if.m b/sys/dev/iicbus/mux/iicmux_if.m index 3d89da863748..e8b3e3972daf 100644 --- a/sys/dev/iicbus/mux/iicmux_if.m +++ b/sys/dev/iicbus/mux/iicmux_if.m @@ -1,49 +1,48 @@ #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2019 Ian Lepore # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE iicmux; HEADER { struct iic_reqbus_data; } # # iicmux_bus_select(device_t dev, int busidx, struct iic_reqbus_data *rd) # Do whatever the mux hardware requires to connect the downstream # bus selected by busidx to the upstream bus. This must return # an IIC adapter-layer error code; standard errno values returned # from this must be encoded using iic2errno(). # METHOD int bus_select { device_t dev; int busidx; struct iic_reqbus_data *rd; }; diff --git a/sys/dev/iscsi/icl_conn_if.m b/sys/dev/iscsi/icl_conn_if.m index 102ec19c7425..d8d1245bd432 100644 --- a/sys/dev/iscsi/icl_conn_if.m +++ b/sys/dev/iscsi/icl_conn_if.m @@ -1,158 +1,157 @@ #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2014 The FreeBSD Foundation # # This software was developed by Edward Tomasz Napierala under sponsorship # from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include INTERFACE icl_conn; CODE { static void null_pdu_queue_cb(struct icl_conn *ic, struct icl_pdu *ip, icl_pdu_cb cb) { ICL_CONN_PDU_QUEUE(ic, ip); if (cb) cb(ip, 0); } }; METHOD size_t pdu_data_segment_length { struct icl_conn *_ic; const struct icl_pdu *_ip; }; METHOD int pdu_append_bio { struct icl_conn *_ic; struct icl_pdu *_ip; struct bio *_bp; size_t _offset; size_t _len; int _flags; }; METHOD int pdu_append_data { struct icl_conn *_ic; struct icl_pdu *_ip; const void *_addr; size_t _len; int _flags; }; METHOD void pdu_get_bio { struct icl_conn *_ic; struct icl_pdu *_ip; size_t _pdu_off; struct bio *_bp; size_t _bio_off; size_t _len; }; METHOD void pdu_get_data { struct icl_conn *_ic; struct icl_pdu *_ip; size_t _off; void *_addr; size_t _len; }; METHOD void pdu_queue { struct icl_conn *_ic; struct icl_pdu *_ip; }; METHOD void pdu_queue_cb { struct icl_conn *_ic; struct icl_pdu *_ip; icl_pdu_cb cb; } DEFAULT null_pdu_queue_cb; METHOD void pdu_free { struct icl_conn *_ic; struct icl_pdu *_ip; }; METHOD struct icl_pdu * new_pdu { struct icl_conn *_ic; int _flags; }; METHOD void free { struct icl_conn *_ic; }; METHOD int handoff { struct icl_conn *_ic; int _fd; }; METHOD void close { struct icl_conn *_ic; }; METHOD int task_setup { struct icl_conn *_ic; struct icl_pdu *_ip; struct ccb_scsiio *_csio; uint32_t *_task_tag; void **_prvp; }; METHOD void task_done { struct icl_conn *_ic; void *_prv; }; METHOD int transfer_setup { struct icl_conn *_ic; struct icl_pdu *_ip; union ctl_io *_io; uint32_t *_transfer_tag; void **_prvp; }; METHOD void transfer_done { struct icl_conn *_ic; void *_prv; }; # # The function below is only used with ICL_KERNEL_PROXY. # METHOD int connect { struct icl_conn *_ic; int _domain; int _socktype; int _protocol; struct sockaddr *_from_sa; struct sockaddr *_to_sa; }; diff --git a/sys/dev/mbox/mbox_if.m b/sys/dev/mbox/mbox_if.m index ad29a7d73e2a..a65e0c288e79 100644 --- a/sys/dev/mbox/mbox_if.m +++ b/sys/dev/mbox/mbox_if.m @@ -1,46 +1,45 @@ #- # Copyright (c) 2013 Rui Paulo # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # # Mailboxes are used as an IPC mechanism that allows subsystems to # communicate with each other. # A system can have multiple mailboxes (e.g. OMAP4) but there's usually a # system wide mailbox. # INTERFACE mbox; METHOD int read { device_t dev; int channel; uint32_t *data; }; METHOD int write { device_t dev; int channel; uint32_t data; }; diff --git a/sys/dev/mdio/mdio_if.m b/sys/dev/mdio/mdio_if.m index a510e262d615..4b3abc8b48da 100644 --- a/sys/dev/mdio/mdio_if.m +++ b/sys/dev/mdio/mdio_if.m @@ -1,123 +1,122 @@ -# $FreeBSD$ #include INTERFACE mdio; CODE { #include static int mdio_null_readextreg(device_t dev, int phy, int devad, int reg) { if (devad == MDIO_DEVADDR_NONE) return (MDIO_READREG(dev, phy, reg)); return (~0U); } static int mdio_null_writeextreg(device_t dev, int phy, int devad, int reg, int val) { if (devad == MDIO_DEVADDR_NONE) return (MDIO_WRITEREG(dev, phy, reg, val)); return (EINVAL); } } /** * @brief Read register from device on MDIO bus. * * @param dev MDIO bus device. * @param phy PHY address. * @param reg The PHY register offset. */ METHOD int readreg { device_t dev; int phy; int reg; }; /** * @brief Read register from device on MDIO muxed bus. * * @param dev MDIO bus device. * @param bus MDIO bus mux position * @param phy PHY address. * @param reg The PHY register offset. */ METHOD int readreg_mux { device_t dev; int bus; int phy; int reg; }; /** * @brief Write register to device on MDIO bus. * * @param dev MDIO bus device. * @param phy PHY address. * @param reg The PHY register offset. * @param val The value to write at offset @p reg. */ METHOD int writereg { device_t dev; int phy; int reg; int val; }; /** * @brief Write register to device on MDIO muxed bus. * * @param dev MDIO bus device. * @param bus MDIO bus mux position * @param phy PHY address. * @param reg The PHY register offset. * @param val The value to write at offset @p reg. */ METHOD int writereg_mux { device_t dev; int bus; int phy; int reg; int val; }; /** * @brief Read extended register from device on MDIO bus. * * @param dev MDIO bus device. * @param phy PHY address. * @param devad The MDIO IEEE 802.3 Clause 45 device address, or * MDIO_DEVADDR_NONE to request Clause 22 register addressing. * @param reg The PHY register offset. */ METHOD int readextreg { device_t dev; int phy; int devad; int reg; } DEFAULT mdio_null_readextreg; /** * @brief Write extended register to device on MDIO bus. * * @param dev MDIO bus device. * @param phy PHY address. * @param devad The MDIO IEEE 802.3 Clause 45 device address, or * MDIO_DEVADDR_NONE to request Clause 22 register addressing. * @param reg The PHY register offset. * @param val The value to write at offset @p reg. */ METHOD int writeextreg { device_t dev; int phy; int devad; int reg; int val; } DEFAULT mdio_null_writeextreg; diff --git a/sys/dev/mii/miibus_if.m b/sys/dev/mii/miibus_if.m index 017812f4dfb0..f6f16b7bfec8 100644 --- a/sys/dev/mii/miibus_if.m +++ b/sys/dev/mii/miibus_if.m @@ -1,45 +1,44 @@ -# $FreeBSD$ #include INTERFACE miibus; # # Read register from device on MII bus # METHOD int readreg { device_t dev; int phy; int reg; }; # # Write register to device on MII bus # METHOD int writereg { device_t dev; int phy; int reg; int val; }; # # Notify bus about PHY status change. # METHOD void statchg { device_t dev; }; # # Notify bus about PHY link change. # METHOD void linkchg { device_t dev; }; # # Notify bus that media has been set. # METHOD void mediainit { device_t dev; }; diff --git a/sys/dev/mmc/mmc_pwrseq_if.m b/sys/dev/mmc/mmc_pwrseq_if.m index 60a8779d46da..f8c0a0e1c66f 100644 --- a/sys/dev/mmc/mmc_pwrseq_if.m +++ b/sys/dev/mmc/mmc_pwrseq_if.m @@ -1,38 +1,37 @@ #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2021 Emmanuel Vadot # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # INTERFACE mmc_pwrseq; # # Power up/down the card # METHOD int set_power { device_t bus; bool power_on; }; diff --git a/sys/dev/mmc/mmcbr_if.m b/sys/dev/mmc/mmcbr_if.m index 72f712d75948..a93984606c84 100644 --- a/sys/dev/mmc/mmcbr_if.m +++ b/sys/dev/mmc/mmcbr_if.m @@ -1,165 +1,164 @@ #- # Copyright (c) 2006 M. Warner Losh # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # Portions of this software may have been developed with reference to # the SD Simplified Specification. The following disclaimer may apply: # # The following conditions apply to the release of the simplified # specification ("Simplified Specification") by the SD Card Association and # the SD Group. The Simplified Specification is a subset of the complete SD # Specification which is owned by the SD Card Association and the SD # Group. This Simplified Specification is provided on a non-confidential # basis subject to the disclaimers below. Any implementation of the # Simplified Specification may require a license from the SD Card # Association, SD Group, SD-3C LLC or other third parties. # # Disclaimers: # # The information contained in the Simplified Specification is presented only # as a standard specification for SD Cards and SD Host/Ancillary products and # is provided "AS-IS" without any representations or warranties of any # kind. No responsibility is assumed by the SD Group, SD-3C LLC or the SD # Card Association for any damages, any infringements of patents or other # right of the SD Group, SD-3C LLC, the SD Card Association or any third # parties, which may result from its use. No license is granted by # implication, estoppel or otherwise under any patent or other rights of the # SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing # herein shall be construed as an obligation by the SD Group, the SD-3C LLC # or the SD Card Association to disclose or distribute any technical # information, know-how or other confidential information to any third party. # -# $FreeBSD$ # #include #include # # This is the interface that a mmc bridge chip gives to the mmc bus # that attaches to the mmc bridge. # INTERFACE mmcbr; # # Default implementations of some methods. # CODE { static int null_switch_vccq(device_t brdev __unused, device_t reqdev __unused) { return (0); } static int null_retune(device_t brdev __unused, device_t reqdev __unused, bool reset __unused) { return (0); } static int null_tune(device_t brdev __unused, device_t reqdev __unused, bool hs400 __unused) { return (0); } }; # # Called by the mmcbus to set up the IO pins correctly, the common/core # supply voltage (VDD/VCC) to use for the device, the clock frequency, the # type of SPI chip select, power mode and bus width. # METHOD int update_ios { device_t brdev; device_t reqdev; }; # # Called by the mmcbus to switch the signaling voltage (VCCQ). # METHOD int switch_vccq { device_t brdev; device_t reqdev; } DEFAULT null_switch_vccq; # # Called by the mmcbus with the bridge claimed to execute initial tuning. # METHOD int tune { device_t brdev; device_t reqdev; bool hs400; } DEFAULT null_tune; # # Called by the mmcbus with the bridge claimed to execute re-tuning. # METHOD int retune { device_t brdev; device_t reqdev; bool reset; } DEFAULT null_retune; # # Called by the mmcbus or its children to schedule a mmc request. These # requests are queued. Time passes. The bridge then gets notification # of the status of the request, who then notifies the requesting device # by calling the completion function supplied as part of the request. # Requires the bridge to be claimed. # METHOD int request { device_t brdev; device_t reqdev; struct mmc_request *req; }; # # Called by mmcbus to get the read only status bits. # METHOD int get_ro { device_t brdev; device_t reqdev; }; # # Claim the current bridge, blocking the current thread until the host # is no longer busy. # METHOD int acquire_host { device_t brdev; device_t reqdev; }; # # Release the current bridge. # METHOD int release_host { device_t brdev; device_t reqdev; }; diff --git a/sys/dev/mmc/mmcbus_if.m b/sys/dev/mmc/mmcbus_if.m index d3e6d7276ea8..99b3fb91dbfe 100644 --- a/sys/dev/mmc/mmcbus_if.m +++ b/sys/dev/mmc/mmcbus_if.m @@ -1,107 +1,106 @@ #- # Copyright (c) 2006 M. Warner Losh # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # Portions of this software may have been developed with reference to # the SD Simplified Specification. The following disclaimer may apply: # # The following conditions apply to the release of the simplified # specification ("Simplified Specification") by the SD Card Association and # the SD Group. The Simplified Specification is a subset of the complete SD # Specification which is owned by the SD Card Association and the SD # Group. This Simplified Specification is provided on a non-confidential # basis subject to the disclaimers below. Any implementation of the # Simplified Specification may require a license from the SD Card # Association, SD Group, SD-3C LLC or other third parties. # # Disclaimers: # # The information contained in the Simplified Specification is presented only # as a standard specification for SD Cards and SD Host/Ancillary products and # is provided "AS-IS" without any representations or warranties of any # kind. No responsibility is assumed by the SD Group, SD-3C LLC or the SD # Card Association for any damages, any infringements of patents or other # right of the SD Group, SD-3C LLC, the SD Card Association or any third # parties, which may result from its use. No license is granted by # implication, estoppel or otherwise under any patent or other rights of the # SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing # herein shall be construed as an obligation by the SD Group, the SD-3C LLC # or the SD Card Association to disclose or distribute any technical # information, know-how or other confidential information to any third party. # -# $FreeBSD$ # #include #include # # This is the set of callbacks that the MMC subroutines and the mmc/sd card # driver call into the bus to make requests. # INTERFACE mmcbus; # # Pause re-tuning, optionally with triggering re-tuning up-front. Requires # the bus to be claimed. # METHOD void retune_pause { device_t busdev; device_t reqdev; bool retune; }; # # Unpause re-tuning. Requires the bus to be claimed. # METHOD void retune_unpause { device_t busdev; device_t reqdev; }; # # Queue and wait for a request. Requires the bus to be claimed. # METHOD int wait_for_request { device_t busdev; device_t reqdev; struct mmc_request *req; }; # # Claim the current bus, blocking the current thread until the host is no # longer busy. # METHOD int acquire_bus { device_t busdev; device_t reqdev; }; # # Release the current bus. # METHOD int release_bus { device_t busdev; device_t reqdev; }; diff --git a/sys/dev/mvs/mvs_if.m b/sys/dev/mvs/mvs_if.m index e74421920651..d6a5a9e7f94a 100644 --- a/sys/dev/mvs/mvs_if.m +++ b/sys/dev/mvs/mvs_if.m @@ -1,34 +1,33 @@ # Copyright (c) 2010 Alexander Motin # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification, immediately at the beginning of the file. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ INTERFACE mvs; METHOD void edma { device_t dev; device_t child; int mode; }; diff --git a/sys/dev/ntb/ntb_if.m b/sys/dev/ntb/ntb_if.m index dccebeea08f8..e6d6e5811899 100644 --- a/sys/dev/ntb/ntb_if.m +++ b/sys/dev/ntb/ntb_if.m @@ -1,229 +1,228 @@ #- # Copyright (c) 2016 Alexander Motin # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE ntb; HEADER { enum ntb_speed { NTB_SPEED_AUTO = -1, NTB_SPEED_NONE = 0, NTB_SPEED_GEN1 = 1, NTB_SPEED_GEN2 = 2, NTB_SPEED_GEN3 = 3, NTB_SPEED_GEN4 = 4, }; enum ntb_width { NTB_WIDTH_AUTO = -1, NTB_WIDTH_NONE = 0, NTB_WIDTH_1 = 1, NTB_WIDTH_2 = 2, NTB_WIDTH_4 = 4, NTB_WIDTH_8 = 8, NTB_WIDTH_12 = 12, NTB_WIDTH_16 = 16, NTB_WIDTH_32 = 32, }; typedef void (*ntb_db_callback)(void *data, uint32_t vector); typedef void (*ntb_event_callback)(void *data); struct ntb_ctx_ops { ntb_event_callback link_event; ntb_db_callback db_event; }; }; METHOD int port_number { device_t ntb; }; METHOD int peer_port_count { device_t ntb; }; METHOD int peer_port_number { device_t ntb; int pidx; }; METHOD int peer_port_idx { device_t ntb; int port; }; METHOD bool link_is_up { device_t ntb; enum ntb_speed *speed; enum ntb_width *width; }; METHOD int link_enable { device_t ntb; enum ntb_speed speed; enum ntb_width width; }; METHOD int link_disable { device_t ntb; }; METHOD bool link_enabled { device_t ntb; }; METHOD int set_ctx { device_t ntb; void *ctx; const struct ntb_ctx_ops *ctx_ops; }; METHOD void * get_ctx { device_t ntb; const struct ntb_ctx_ops **ctx_ops; }; METHOD void clear_ctx { device_t ntb; }; METHOD uint8_t mw_count { device_t ntb; }; METHOD int mw_get_range { device_t ntb; unsigned mw_idx; vm_paddr_t *base; caddr_t *vbase; size_t *size; size_t *align; size_t *align_size; bus_addr_t *plimit; }; METHOD int mw_set_trans { device_t ntb; unsigned mw_idx; bus_addr_t addr; size_t size; }; METHOD int mw_clear_trans { device_t ntb; unsigned mw_idx; }; METHOD int mw_get_wc { device_t ntb; unsigned mw_idx; vm_memattr_t *mode; }; METHOD int mw_set_wc { device_t ntb; unsigned mw_idx; vm_memattr_t mode; }; METHOD uint8_t spad_count { device_t ntb; }; METHOD void spad_clear { device_t ntb; }; METHOD int spad_write { device_t ntb; unsigned int idx; uint32_t val; }; METHOD int spad_read { device_t ntb; unsigned int idx; uint32_t *val; }; METHOD int peer_spad_write { device_t ntb; unsigned int idx; uint32_t val; }; METHOD int peer_spad_read { device_t ntb; unsigned int idx; uint32_t *val; }; METHOD uint64_t db_valid_mask { device_t ntb; }; METHOD int db_vector_count { device_t ntb; }; METHOD uint64_t db_vector_mask { device_t ntb; uint32_t vector; }; METHOD int peer_db_addr { device_t ntb; bus_addr_t *db_addr; vm_size_t *db_size; }; METHOD void db_clear { device_t ntb; uint64_t bits; }; METHOD void db_clear_mask { device_t ntb; uint64_t bits; }; METHOD uint64_t db_read { device_t ntb; }; METHOD void db_set_mask { device_t ntb; uint64_t bits; }; METHOD void peer_db_set { device_t ntb; uint64_t bits; }; diff --git a/sys/dev/ofw/ofw_bus_if.m b/sys/dev/ofw/ofw_bus_if.m index 36d10e616800..951c20361438 100644 --- a/sys/dev/ofw/ofw_bus_if.m +++ b/sys/dev/ofw/ofw_bus_if.m @@ -1,171 +1,170 @@ #- # Copyright (c) 2001, 2003 by Thomas Moestl # Copyright (c) 2004, 2005 by Marius Strobl # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ # Interface for retrieving the package handle and a subset, namely # 'compatible', 'device_type', 'model' and 'name', of the standard # properties of a device on an Open Firmware assisted bus for use # in device drivers. The rest of the standard properties, 'address', # 'interrupts', 'reg' and 'status', are not covered by this interface # as they are expected to be only of interest in the respective bus # driver. #include #include INTERFACE ofw_bus; HEADER { struct ofw_bus_devinfo { phandle_t obd_node; char *obd_compat; char *obd_model; char *obd_name; char *obd_type; char *obd_status; }; }; CODE { static ofw_bus_get_devinfo_t ofw_bus_default_get_devinfo; static ofw_bus_get_compat_t ofw_bus_default_get_compat; static ofw_bus_get_model_t ofw_bus_default_get_model; static ofw_bus_get_name_t ofw_bus_default_get_name; static ofw_bus_get_node_t ofw_bus_default_get_node; static ofw_bus_get_type_t ofw_bus_default_get_type; static ofw_bus_map_intr_t ofw_bus_default_map_intr; static const struct ofw_bus_devinfo * ofw_bus_default_get_devinfo(device_t bus, device_t dev) { return (NULL); } static const char * ofw_bus_default_get_compat(device_t bus, device_t dev) { return (NULL); } static const char * ofw_bus_default_get_model(device_t bus, device_t dev) { return (NULL); } static const char * ofw_bus_default_get_name(device_t bus, device_t dev) { return (NULL); } static phandle_t ofw_bus_default_get_node(device_t bus, device_t dev) { return (-1); } static const char * ofw_bus_default_get_type(device_t bus, device_t dev) { return (NULL); } int ofw_bus_default_map_intr(device_t bus, device_t dev, phandle_t iparent, int icells, pcell_t *interrupt) { /* Propagate up the bus hierarchy until someone handles it. */ if (device_get_parent(bus) != NULL) return OFW_BUS_MAP_INTR(device_get_parent(bus), dev, iparent, icells, interrupt); /* If that fails, then assume a one-domain system */ return (interrupt[0]); } }; # Get the ofw_bus_devinfo struct for the device dev on the bus. Used for bus # drivers which use the generic methods in ofw_bus_subr.c to implement the # reset of this interface. The default method will return NULL, which means # there is no such struct associated with the device. METHOD const struct ofw_bus_devinfo * get_devinfo { device_t bus; device_t dev; } DEFAULT ofw_bus_default_get_devinfo; # Get the alternate firmware name for the device dev on the bus. The default # method will return NULL, which means the device doesn't have such a property. METHOD const char * get_compat { device_t bus; device_t dev; } DEFAULT ofw_bus_default_get_compat; # Get the firmware model name for the device dev on the bus. The default method # will return NULL, which means the device doesn't have such a property. METHOD const char * get_model { device_t bus; device_t dev; } DEFAULT ofw_bus_default_get_model; # Get the firmware name for the device dev on the bus. The default method will # return NULL, which means the device doesn't have such a property. METHOD const char * get_name { device_t bus; device_t dev; } DEFAULT ofw_bus_default_get_name; # Get the firmware node for the device dev on the bus. The default method will # return -1, which signals that there is no such node. METHOD phandle_t get_node { device_t bus; device_t dev; } DEFAULT ofw_bus_default_get_node; # Get the firmware device type for the device dev on the bus. The default # method will return NULL, which means the device doesn't have such a property. METHOD const char * get_type { device_t bus; device_t dev; } DEFAULT ofw_bus_default_get_type; # Map an (interrupt parent, IRQ) pair to a unique system-wide interrupt number. # If the interrupt encoding includes a sense field, the interrupt sense will # also be configured. METHOD int map_intr { device_t bus; device_t dev; phandle_t iparent; int icells; pcell_t *interrupt; } DEFAULT ofw_bus_default_map_intr; diff --git a/sys/dev/ofw/ofw_if.m b/sys/dev/ofw/ofw_if.m index 6017a69e7bd6..9fa588706f68 100644 --- a/sys/dev/ofw/ofw_if.m +++ b/sys/dev/ofw/ofw_if.m @@ -1,354 +1,353 @@ #- # Copyright (c) 2008 Nathan Whitehorn # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include /** * @defgroup OFW ofw - KObj methods for Open Firmware RTAS implementations * @brief A set of methods to implement the Open Firmware client side interface. * @{ */ INTERFACE ofw; /** * @brief Initialize OFW client interface * * @param _cookie A handle to the client interface, generally the OF * callback routine. */ METHOD int init { ofw_t _ofw; void *_cookie; }; /** * @brief Return next sibling of node. * * @param _node Selected node */ METHOD phandle_t peer { ofw_t _ofw; phandle_t _node; }; /** * @brief Return parent of node. * * @param _node Selected node */ METHOD phandle_t parent { ofw_t _ofw; phandle_t _node; }; /** * @brief Return first child of node. * * @param _node Selected node */ METHOD phandle_t child { ofw_t _ofw; phandle_t _node; }; /** * @brief Return package corresponding to instance. * * @param _handle Selected instance */ METHOD phandle_t instance_to_package { ofw_t _ofw; ihandle_t _handle; }; /** * @brief Return length of node property. * * @param _node Selected node * @param _prop Property name */ METHOD ssize_t getproplen { ofw_t _ofw; phandle_t _node; const char *_prop; }; /** * @brief Read node property. * * @param _node Selected node * @param _prop Property name * @param _buf Pointer to buffer * @param _size Size of buffer */ METHOD ssize_t getprop { ofw_t _ofw; phandle_t _node; const char *_prop; void *_buf; size_t _size; }; /** * @brief Get next property name. * * @param _node Selected node * @param _prop Current property name * @param _buf Buffer for next property name * @param _size Size of buffer */ METHOD int nextprop { ofw_t _ofw; phandle_t _node; const char *_prop; char *_buf; size_t _size; }; /** * @brief Set property. * * @param _node Selected node * @param _prop Property name * @param _buf Value to set * @param _size Size of buffer */ METHOD int setprop { ofw_t _ofw; phandle_t _node; const char *_prop; const void *_buf; size_t _size; }; /** * @brief Canonicalize path. * * @param _path Path to canonicalize * @param _buf Buffer for canonicalized path * @param _size Size of buffer */ METHOD ssize_t canon { ofw_t _ofw; const char *_path; char *_buf; size_t _size; }; /** * @brief Return phandle for named device. * * @param _path Device path */ METHOD phandle_t finddevice { ofw_t _ofw; const char *_path; }; /** * @brief Return path for node instance. * * @param _handle Instance handle * @param _path Buffer for path * @param _size Size of buffer */ METHOD ssize_t instance_to_path { ofw_t _ofw; ihandle_t _handle; char *_path; size_t _size; }; /** * @brief Return path for node. * * @param _node Package node * @param _path Buffer for path * @param _size Size of buffer */ METHOD ssize_t package_to_path { ofw_t _ofw; phandle_t _node; char *_path; size_t _size; }; # Methods for OF method calls (optional) /** * @brief Test to see if a service exists. * * @param _name name of the service */ METHOD int test { ofw_t _ofw; const char *_name; }; /** * @brief Call method belonging to an instance handle. * * @param _instance Instance handle * @param _method Method name * @param _nargs Number of arguments * @param _nreturns Number of return values * @param _args_and_returns Values for arguments, followed by returns */ METHOD int call_method { ofw_t _ofw; ihandle_t _instance; const char *_method; int _nargs; int _nreturns; cell_t *_args_and_returns; }; /** * @brief Interpret a forth command. * * @param _cmd Command * @param _nreturns Number of return values * @param _returns Values for returns */ METHOD int interpret { ofw_t _ofw; const char *_cmd; int _nreturns; cell_t *_returns; }; # Device I/O Functions (optional) /** * @brief Open node, returning instance handle. * * @param _path Path to node */ METHOD ihandle_t open { ofw_t _ofw; const char *_path; } /** * @brief Close node instance. * * @param _instance Instance to close */ METHOD void close { ofw_t _ofw; ihandle_t _instance; } /** * @brief Read from device. * * @param _instance Device instance * @param _buf Buffer to read to * @param _size Size of buffer */ METHOD ssize_t read { ofw_t _ofw; ihandle_t _instance; void *_buf; size_t size; } /** * @brief Write to device. * * @param _instance Device instance * @param _buf Buffer to write from * @param _size Size of buffer */ METHOD ssize_t write { ofw_t _ofw; ihandle_t _instance; const void *_buf; size_t size; } /** * @brief Seek device. * * @param _instance Device instance * @param _off Offset to which to seek */ METHOD int seek { ofw_t _ofw; ihandle_t _instance; uint64_t _off; } # Open Firmware memory management /** * @brief Claim virtual memory. * * @param _addr Requested memory location (NULL for first available) * @param _size Requested size in bytes * @param _align Requested alignment */ METHOD caddr_t claim { ofw_t _ofw; void *_addr; size_t _size; u_int _align; } /** * @brief Release virtual memory. * * @param _addr Memory location * @param _size Size in bytes */ METHOD void release { ofw_t _ofw; void *_addr; size_t _size; }; # Commands for returning control to the firmware /** * @brief Temporarily return control to firmware. */ METHOD void enter { ofw_t _ofw; }; /** * @brief Halt and return control to firmware. */ METHOD void exit { ofw_t _ofw; }; diff --git a/sys/dev/ow/owll_if.m b/sys/dev/ow/owll_if.m index 22e237cea123..7f908ab69ffc 100644 --- a/sys/dev/ow/owll_if.m +++ b/sys/dev/ow/owll_if.m @@ -1,157 +1,156 @@ #- # Copyright (c) 2015 M. Warner Losh # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE owll; # # Dallas Semiconductor 1-Wire bus Link Layer (owll) # # See Maxim Application Note AN937: Book of iButton Standards for the # 1-Wire protocol specification. # http://pdfserv.maximintegrated.com/en/an/AN937.pdf # # Note: 1-Wire is a registered trademark of Maxim Integrated Products, Inc. # # This file provides an interface to the logical layer of the protocol. # Although the first implementation is done with GPIO bit banging, some # SoCs have a 1-Wire controller with more smarts or hardware offload. # Maxim datasheets also describe how to use UARTs to generate timing, # as well as both usb and i2c 1-Wire controllers. # # Chapter 4 has all the electrical timing diagrams that make up the link # layer of this protocol. # # Two speed classes are defined: Regular speed and Overdrive speed. # It is the responsibility of a device implementing the owll(9) interface # to ensure that the timings are met: # # Regular Overdrive # # 60us <= tSLOT < 120us 6us <= tSLOT <= 16us # 60us <= tLOW0 < tSLOT < 120us 6us <= tLOW0 < tSLOT < 16us # 1us <= tLOW1 < 15us 1us <= tLOW < 2us # 1us < tLOWR < 15us 1us <= tLOWR < 2us # 0 <= tRELEASE < 45us 0 <= tRELEASE < 4us # 1us <= tREC < inf 1us <= tREC < inf # tRDV = 15us tRDV = 2us # 480us <= tRSTL < inf 48us <= tRSTL < 80us # 480us <= tRSTH < inf 48us <= tRSTH < inf # 15us < tPDH < 60us 2us <= tPDH < 6us # 60us < tPDL < 240us 8us <= tPDL < 24us # # In the diagrams below, R is driven by the resistor pullup, M is driven by # the master, and S is driven by the slave / target. # # All of these methods are expected to be called from the "network"/bus layer # for doing its operations. See 1wn_if.m for those. # # Note: This is the polling / busy-wait interface. An interrupt-based interface # may be different. But an interrupt-based, non-blocking interface can be tricky. # # Only the owbus should talk to this interface. # # WRITE-ONE (see above for timings) From Figure 4-1 AN-937 # # |<---------tSLOT---->|<-tREC->| # High RRRRM | RRRRRRRRRRRR|RRRRRRRRM # M | R | | | M # M| R | | | M # Low MMMMMMM | | | MMMMMM... # |<-tLOW1->| | | # |<------15us--->| | # |<--------60us---->| # # METHOD int write_one { device_t lldev; /* Link Level device (eg bridge) */ struct ow_timing *timing; /* timing values */ }; # WRITE-ZERO (see above for timings) From Figure 4-2 AN-937 # # |<---------tSLOT------>|<-tREC->| # High RRRRM | | |RRRRRRRM # M | | R M # M| | | |R M # Low MMMMMMMMMMMMMMMMMMMMMR MMMMMM... # |<--15us->| | | # |<------60us--->| | # |<-------tLOW0------>| # # METHOD int write_zero { device_t lldev; /* Link Level device (eg bridge) */ struct ow_timing *timing; /* timing values */ }; # READ-DATA (see above for timings) From Figure 4-3 AN-937 # # |<---------tSLOT------>|<-tREC->| # High RRRRM | rrrrrrrrrrrrrrrRRRRRRRM # M | r | R M # M| r | |R M # Low MMMMMMMSSSSSSSSSSSSSSR MMMMMM... # |< sample > | # |<------tRDV---->| | # ->| |<-tRELEASE # # r -- allowed to pull high via the resistor when slave writes a 1-bit # METHOD int read_data { device_t lldev; /* Link Level device (eg bridge) */ struct ow_timing *timing; /* timing values */ int *bit; /* Bit we sampled */ }; # RESET AND PRESENCE PULSE (see above for timings) From Figure 4-4 AN-937 # # |<---------tRSTH------------>| # High RRRM | | RRRRRRRS | RRRR RRM # M | |R| |S | R M # M| R | | S |R M # Low MMMMMMMM MMMMMM| | | SSSSSSSSSS MMMMMM # |<----tRSTL--->| | |<-tPDL---->| # | ->| |<-tR | | # || # # Note: for Regular Speed operations, tRSTL + tR should be less than 960us to # avoid interfering with other devives on the bus. # # Returns errors associating with acquiring the bus, or EIO to indicate # that the bus was low during the RRRR time where it should have been # pulled high. The present field is always updated, even on error. # METHOD int reset_and_presence { device_t lldev; /* Link level device (eg bridge) */ struct ow_timing *timing; /* timing values */ int *present; /* 0 = slave 1 = no slave -1 = bus error */ }; diff --git a/sys/dev/ow/own_if.m b/sys/dev/ow/own_if.m index e4b4bb8d7c74..a16dfd6ede13 100644 --- a/sys/dev/ow/own_if.m +++ b/sys/dev/ow/own_if.m @@ -1,77 +1,76 @@ #- # Copyright (c) 2015 M. Warner Losh # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE own; # # Dallas Semiconductor 1-Wire bus network and transport layer (own) # # See Maxim Application Note AN937: Book of iButton Standards for the # 1-Wire protocol specification. # http://pdfserv.maximintegrated.com/en/an/AN937.pdf # # Note: 1-Wire is a registered trademark of Maxim Integrated Products, Inc. # # # Send a command up the stack. # METHOD int send_command { device_t ndev; /* Network (bus) level device */ device_t pdev; /* Device to send command for */ struct ow_cmd *cmd; /* Pointer to filled in command */ }; # # Grab exclusive use of the bus (advisory) # METHOD int acquire_bus { device_t ndev; device_t pdev; int how; }; # # Release exclusive use of the bus (advisory) # METHOD void release_bus { device_t ndev; device_t pdev; }; # # Compute a CRC for a given range of bytes # METHOD uint8_t crc { device_t ndev; device_t pdev; uint8_t *buffer; size_t len; }; diff --git a/sys/dev/pci/pci_dw_if.m b/sys/dev/pci/pci_dw_if.m index e5fc3ae444cf..583cdf844571 100644 --- a/sys/dev/pci/pci_dw_if.m +++ b/sys/dev/pci/pci_dw_if.m @@ -1,73 +1,72 @@ #- # Copyright (c) 2019 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE pci_dw; /** * Read from dbi space. * The reg argument is a byte offset into dbi space. * The width argument (which should be 1, 2 or 4) specifies how * many bytes to read from that offset. */ METHOD uint32_t dbi_read{ device_t dev; u_int reg; int width; }; /** * Write to dbi space. * The reg argument is a byte offset into dbi space. * The width argument (which should be 1, 2 or 4) specifies how * many bytes to write to that offset. */ METHOD void dbi_write{ device_t dev; u_int reg; uint32_t value; int width; }; /** * Start or stop link */ METHOD int set_link{ device_t dev; bool start; }; /** * Query link status (up/down) */ METHOD int get_link{ device_t dev; bool *status; }; diff --git a/sys/dev/pci/pci_if.m b/sys/dev/pci/pci_if.m index 36e2172172a8..a366c9c1d58b 100644 --- a/sys/dev/pci/pci_if.m +++ b/sys/dev/pci/pci_if.m @@ -1,282 +1,281 @@ #- # Copyright (c) 1998 Doug Rabson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE pci; CODE { static int null_msi_count(device_t dev, device_t child) { return (0); } static int null_msix_bar(device_t dev, device_t child) { return (-1); } static device_t null_create_iov_child(device_t bus, device_t pf, uint16_t rid, uint16_t vid, uint16_t did) { device_printf(bus, "PCI_IOV not implemented on this bus.\n"); return (NULL); } }; HEADER { struct nvlist; enum pci_id_type { PCI_ID_RID, PCI_ID_MSI, PCI_ID_OFW_IOMMU, }; enum pci_feature { PCI_FEATURE_HP, /* Hot Plug feature */ PCI_FEATURE_AER, /* Advanced Error Reporting */ }; } METHOD u_int32_t read_config { device_t dev; device_t child; int reg; int width; }; METHOD void write_config { device_t dev; device_t child; int reg; u_int32_t val; int width; }; METHOD int get_powerstate { device_t dev; device_t child; }; METHOD int set_powerstate { device_t dev; device_t child; int state; }; METHOD int get_vpd_ident { device_t dev; device_t child; const char **identptr; }; METHOD int get_vpd_readonly { device_t dev; device_t child; const char *kw; const char **vptr; }; METHOD int enable_busmaster { device_t dev; device_t child; }; METHOD int disable_busmaster { device_t dev; device_t child; }; METHOD int enable_io { device_t dev; device_t child; int space; }; METHOD int disable_io { device_t dev; device_t child; int space; }; METHOD int assign_interrupt { device_t dev; device_t child; }; METHOD int find_cap { device_t dev; device_t child; int capability; int *capreg; }; METHOD int find_next_cap { device_t dev; device_t child; int capability; int start; int *capreg; }; METHOD int find_extcap { device_t dev; device_t child; int capability; int *capreg; }; METHOD int find_next_extcap { device_t dev; device_t child; int capability; int start; int *capreg; }; METHOD int find_htcap { device_t dev; device_t child; int capability; int *capreg; }; METHOD int find_next_htcap { device_t dev; device_t child; int capability; int start; int *capreg; }; METHOD int alloc_msi { device_t dev; device_t child; int *count; }; METHOD int alloc_msix { device_t dev; device_t child; int *count; }; METHOD void enable_msi { device_t dev; device_t child; uint64_t address; uint16_t data; }; METHOD void enable_msix { device_t dev; device_t child; u_int index; uint64_t address; uint32_t data; }; METHOD void disable_msi { device_t dev; device_t child; }; METHOD int remap_msix { device_t dev; device_t child; int count; const u_int *vectors; }; METHOD int release_msi { device_t dev; device_t child; }; METHOD int msi_count { device_t dev; device_t child; } DEFAULT null_msi_count; METHOD int msix_count { device_t dev; device_t child; } DEFAULT null_msi_count; METHOD int msix_pba_bar { device_t dev; device_t child; } DEFAULT null_msix_bar; METHOD int msix_table_bar { device_t dev; device_t child; } DEFAULT null_msix_bar; METHOD int get_id { device_t dev; device_t child; enum pci_id_type type; uintptr_t *id; }; METHOD struct pci_devinfo * alloc_devinfo { device_t dev; }; METHOD void child_added { device_t dev; device_t child; }; METHOD int iov_attach { device_t dev; device_t child; struct nvlist *pf_schema; struct nvlist *vf_schema; const char *name; }; METHOD int iov_detach { device_t dev; device_t child; }; METHOD device_t create_iov_child { device_t bus; device_t pf; uint16_t rid; uint16_t vid; uint16_t did; } DEFAULT null_create_iov_child; diff --git a/sys/dev/pci/pci_iov_if.m b/sys/dev/pci/pci_iov_if.m index 3b6796badcec..6f2a53ada2ed 100644 --- a/sys/dev/pci/pci_iov_if.m +++ b/sys/dev/pci/pci_iov_if.m @@ -1,52 +1,51 @@ #- # Copyright (c) 2013-2015 Sandvine Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE pci_iov; HEADER { struct nvlist; } METHOD int init { device_t dev; uint16_t num_vfs; const struct nvlist *config; }; METHOD void uninit { device_t dev; }; METHOD int add_vf { device_t dev; uint16_t vfnum; const struct nvlist *config; }; diff --git a/sys/dev/pci/pcib_if.m b/sys/dev/pci/pcib_if.m index 32f2804de31e..f4f16f466144 100644 --- a/sys/dev/pci/pcib_if.m +++ b/sys/dev/pci/pcib_if.m @@ -1,223 +1,222 @@ #- # Copyright (c) 2000 Doug Rabson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include #include INTERFACE pcib; CODE { static int null_route_interrupt(device_t pcib, device_t dev, int pin) { return (PCI_INVALID_IRQ); } static int pcib_null_ari_enabled(device_t pcib) { return (0); } }; HEADER { #include "pci_if.h" }; # # Return the number of slots on the attached PCI bus. # METHOD int maxslots { device_t dev; }; # # # Return the number of functions on the attached PCI bus. # METHOD int maxfuncs { device_t dev; } DEFAULT pcib_maxfuncs; # # Read configuration space on the PCI bus. The bus, slot and func # arguments determine the device which is being read and the reg # argument is a byte offset into configuration space for that # device. The width argument (which should be 1, 2 or 4) specifies how # many byte of configuration space to read from that offset. # METHOD u_int32_t read_config { device_t dev; u_int bus; u_int slot; u_int func; u_int reg; int width; }; # # Write configuration space on the PCI bus. The bus, slot and func # arguments determine the device which is being written and the reg # argument is a byte offset into configuration space for that # device. The value field is written to the configuration space, with # the number of bytes written depending on the width argument. # METHOD void write_config { device_t dev; u_int bus; u_int slot; u_int func; u_int reg; u_int32_t value; int width; }; # # Route an interrupt. Returns a value suitable for stuffing into # a device's interrupt register. # METHOD int route_interrupt { device_t pcib; device_t dev; int pin; } DEFAULT null_route_interrupt; # # Allocate 'count' MSI messsages mapped onto 'count' IRQs. 'irq' points # to an array of at least 'count' ints. The max number of messages this # device supports is included so that the MD code can take that into # account when assigning resources so that the proper number of low bits # are clear in the resulting message data value. # METHOD int alloc_msi { device_t pcib; device_t dev; int count; int maxcount; int *irqs; }; # # Release 'count' MSI messages mapped onto 'count' IRQs stored in the # array pointed to by 'irqs'. # METHOD int release_msi { device_t pcib; device_t dev; int count; int *irqs; }; # # Allocate a single MSI-X message mapped onto '*irq'. # METHOD int alloc_msix { device_t pcib; device_t dev; int *irq; }; # # Release a single MSI-X message mapped onto 'irq'. # METHOD int release_msix { device_t pcib; device_t dev; int irq; }; # # Determine the MSI/MSI-X message address and data for 'irq'. The address # is returned in '*addr', and the data in '*data'. # METHOD int map_msi { device_t pcib; device_t dev; int irq; uint64_t *addr; uint32_t *data; }; # # Return the device power state to be used during a system sleep state # transition such as suspend and resume. # METHOD int power_for_sleep { device_t pcib; device_t dev; int *pstate; }; # # Return the PCI Routing Identifier (RID) for the device. # METHOD int get_id { device_t pcib; device_t dev; enum pci_id_type type; uintptr_t *id; } DEFAULT pcib_get_id; # # Enable Alternative RID Interpretation if both the downstream port (pcib) # and the endpoint device (dev) both support it. # METHOD int try_enable_ari { device_t pcib; device_t dev; }; # # Return non-zero if PCI ARI is enabled, or zero otherwise # METHOD int ari_enabled { device_t pcib; } DEFAULT pcib_null_ari_enabled; # # Decode a PCI Routing Identifier (RID) into PCI bus/slot/function # METHOD void decode_rid { device_t pcib; uint16_t rid; int *bus; int *slot; int *func; } DEFAULT pcib_decode_rid; # # Request control of PCI features from host firmware, if any. # METHOD int request_feature { device_t pcib; device_t dev; enum pci_feature feature; }; diff --git a/sys/dev/ppbus/ppbus_if.m b/sys/dev/ppbus/ppbus_if.m index ccc308d23f36..bb0ed3b1c26c 100644 --- a/sys/dev/ppbus/ppbus_if.m +++ b/sys/dev/ppbus/ppbus_if.m @@ -1,93 +1,92 @@ #- # Copyright (c) 1999 Nicolas Souchu # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE ppbus; # # Do low level i/o operations # METHOD u_char io { device_t dev; int opcode; u_char *addr; int cnt; u_char byte; }; # # Execution of a microsequence # METHOD int exec_microseq { device_t dev; struct ppb_microseq **ppb_microseq; }; # # Reset EPP timeout # METHOD int reset_epp { device_t dev; } # # Set chipset mode # METHOD int setmode { device_t dev; int mode; } # # Synchronize ECP FIFO # METHOD int ecp_sync { device_t dev; } # # Do chipset dependent low level read # METHOD int read { device_t dev; char *buf; int len; int how; } # # Do chipset dependent low level write # METHOD int write { device_t dev; char *buf; int len; int how; } diff --git a/sys/dev/pwm/pwmbus_if.m b/sys/dev/pwm/pwmbus_if.m index 353d378adfc9..498915fbc59e 100644 --- a/sys/dev/pwm/pwmbus_if.m +++ b/sys/dev/pwm/pwmbus_if.m @@ -1,115 +1,114 @@ #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2018 Emmanuel Vadot # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE pwmbus; CODE { static int pwm_default_set_flags(device_t bus, u_int channel, uint32_t flags) { return (EOPNOTSUPP); } static int pwm_default_get_flags(device_t bus, u_int channel, uint32_t *flags) { *flags = 0; return (0); } }; # # Config the period (Total number of cycle in ns) and # the duty (active number of cycle in ns) # METHOD int channel_config { device_t bus; u_int channel; u_int period; u_int duty; }; # # Get the period (Total number of cycle in ns) and # the duty (active number of cycle in ns) # METHOD int channel_get_config { device_t bus; u_int channel; u_int *period; u_int *duty; }; # # Set the flags # METHOD int channel_set_flags { device_t bus; u_int channel; uint32_t flags; } DEFAULT pwm_default_set_flags; # # Get the flags # METHOD int channel_get_flags { device_t bus; u_int channel; uint32_t *flags; } DEFAULT pwm_default_get_flags; # # Enable the pwm output # METHOD int channel_enable { device_t bus; u_int channel; bool enable; }; # # Is the pwm output enabled # METHOD int channel_is_enabled { device_t bus; u_int channel; bool *enabled; }; # # Get the number of channels # METHOD int channel_count { device_t bus; u_int *nchannel; }; diff --git a/sys/dev/qlxgb/README.txt b/sys/dev/qlxgb/README.txt index bd95f8bca623..0c782fd3a67a 100644 --- a/sys/dev/qlxgb/README.txt +++ b/sys/dev/qlxgb/README.txt @@ -1,99 +1,98 @@ -# $FreeBSD$ README File QLogic 3200 and 8200 series Single/Dual Port 10 Gigabit Ethernet & CNA Adapter Driver for FreeBSD 7.x/8.x/9.x QLogic Corporation. All rights reserved. Table of Contents 1. Package Contents 2. OS Support 3. Supported Features 4. Using the Driver 4.1 Installing the driver 4.2 Removing the driver 5. Driver Parameters 6. Additional Notes 7. Contacting Support 1. Package Contents * Documentation - README (this document) version:1.0 - Release Notes Version:1.0 * Driver (if_qlxgb.ko) - FreeBSD 7.x/8.x/9.x * Firmware: pre-flashed on QLogic adapter; 2. OS Support The Qlogic 10Gigabit Ethernet/CNA driver is compatible with the following OS platforms: * FreeBSD 7.x/8.x/9.x (64-bit) [Intel EM64T, AMD64] 3. Supported Features 10Gigabit Ethernet NIC/CNA driver supports following features * Large Segment Offload over TCP IPV4 * Large Segment Offload over TCP IPV6 * Receive Side scaling * TCP over IPv4 checksum offload * UDP over IPv4 checksum offload * IPV4 checksum offload * TCP over IPv6 checksum offload * UDP over IPv6 checksum offload * Jumbo frames * VLAN Tag 4. Using the driver 4.1 Installing the driver - copy the driver file (if_qlxgb.ko) into some directory (say qla_driver) - cd - kldload -v ./if_qlxgb.ko 4.2 Removing the driver - kldunload if_qlxgb 5. Parameters to set prior to installing the driver - Add the following lines to /etc/sysctl.conf and reboot the machine prior to installing the driver kern.ipc.nmbjumbo9=262144 net.inet.tcp.recvbuf_max=262144 net.inet.tcp.recvbuf_inc=16384 kern.ipc.nmbclusters=1000000 kern.ipc.maxsockbuf=2097152 net.inet.tcp.recvspace=131072 net.inet.tcp.sendbuf_max=262144 net.inet.tcp.sendspace=65536 - If you do not want to reboot the system please run the following commands login or su to root sysctl kern.ipc.nmbjumbo9=262144 sysctl net.inet.tcp.recvbuf_max=262144 sysctl net.inet.tcp.recvbuf_inc=16384 sysctl kern.ipc.nmbclusters=1000000 sysctl kern.ipc.maxsockbuf=2097152 sysctl net.inet.tcp.recvspace=131072 sysctl net.inet.tcp.sendbuf_max=262144 sysctl net.inet.tcp.sendspace=65536 6. Contacting Support Please feel free to contact your QLogic approved reseller or QLogic Technical Support at any phase of integration for assistance. QLogic Technical Support can be reached by the following methods: Web: http://support.qlogic.com E-mail: support@qlogic.com (c) Copyright 2013. All rights reserved worldwide. QLogic, the QLogic logo, and the Powered by QLogic logo are registered trademarks of QLogic Corporation. All other brand and product names are trademarks or registered trademarks of their respective owners. diff --git a/sys/dev/qlxgbe/README.txt b/sys/dev/qlxgbe/README.txt index 8ce6adb00ee7..cf6d223c39db 100644 --- a/sys/dev/qlxgbe/README.txt +++ b/sys/dev/qlxgbe/README.txt @@ -1,105 +1,104 @@ -# $FreeBSD$ README File QLogic 8300 series Dual Port 10 Gigabit Ethernet & CNA Adapter Driver for FreeBSD 9.x/10.x QLogic Corporation. All rights reserved. Table of Contents 1. Package Contents 2. OS Support 3. Supported Features 4. Using the Driver 4.1 Installing the driver 4.2 Removing the driver 5. Driver Parameters 6. Additional Notes 7. Contacting Support 1. Package Contents * Documentation - README (this document) version:1.0 - Release Notes Version:1.0 * Driver (if_qlxgbe.ko) - FreeBSD 9.x/10.x * Firmware: pre-flashed on QLogic adapter; 2. OS Support The Qlogic 83xx 10Gigabit Ethernet/CNA driver is compatible with the following OS platforms: * FreeBSD 9.x/10.x (64-bit) [Intel EM64T, AMD64] 3. Supported Features 10Gigabit Ethernet NIC/CNA driver supports following features * Large Segment Offload over TCP IPV4 * Large Segment Offload over TCP IPV6 * Receive Side scaling * TCP over IPv4 checksum offload * UDP over IPv4 checksum offload * IPV4 checksum offload * TCP over IPv6 checksum offload * UDP over IPv6 checksum offload * Jumbo frames * VLAN Tag 4. Using the driver 4.1 Installing the driver - copy the driver file (if_qlxgbe.ko) into some directory (say qla_driver) - cd - kldload -v ./if_qlxgbe.ko 4.2 Removing the driver - kldunload if_qlxgbe 5. Parameters to set prior to installing the driver Please run "sysctl kern.ipc" and "sysctl net.inet.tcp" and see if these values are already greater than shown below. Change only those which are less than shown below. - Add the following lines to /etc/sysctl.conf and reboot the machine prior to installing the driver kern.ipc.nmbjumbo9=2000000 kern.ipc.nmbclusters=1000000 net.inet.tcp.recvbuf_max=262144 net.inet.tcp.recvbuf_inc=16384 kern.ipc.maxsockbuf=2097152 net.inet.tcp.recvspace=131072 net.inet.tcp.sendbuf_max=262144 net.inet.tcp.sendspace=65536 - If you do not want to reboot the system please run the following commands login or su to root sysctl kern.ipc.nmbjumbo9=2000000 sysctl kern.ipc.nmbclusters=1000000 sysctl net.inet.tcp.recvbuf_max=262144 sysctl net.inet.tcp.recvbuf_inc=16384 sysctl kern.ipc.maxsockbuf=2097152 sysctl net.inet.tcp.recvspace=131072 sysctl net.inet.tcp.sendbuf_max=262144 sysctl net.inet.tcp.sendspace=65536 6. Compile options Makefile if building driver from sources None 7. Contacting Support Please feel free to contact your QLogic approved reseller or QLogic Technical Support at any phase of integration for assistance. QLogic Technical Support can be reached by the following methods: Web: http://support.qlogic.com E-mail: support@qlogic.com (c) Copyright 2013-14. All rights reserved worldwide. QLogic, the QLogic logo, and the Powered by QLogic logo are registered trademarks of QLogic Corporation. All other brand and product names are trademarks or registered trademarks of their respective owners. diff --git a/sys/dev/qlxge/README.txt b/sys/dev/qlxge/README.txt index fb01051382b5..52e5299ceae6 100644 --- a/sys/dev/qlxge/README.txt +++ b/sys/dev/qlxge/README.txt @@ -1,97 +1,96 @@ -#$FreeBSD$ README File QLogic 8100 series Dual Port 10 Gigabit Ethernet & CNA Adapter Driver for FreeBSD 9.x/10.x QLogic Corporation. All rights reserved. Table of Contents 1. Package Contents 2. OS Support 3. Supported Features 4. Using the Driver 4.1 Installing the driver 4.2 Removing the driver 5. Driver Parameters 6. Additional Notes 7. Contacting Support 1. Package Contents * Documentation - README (this document) version:1.0 - Release Notes Version:1.0 * Driver (if_qlxge.ko) - FreeBSD 9.x/10.x * Firmware: pre-flashed on QLogic adapter; 2. OS Support The Qlogic 10Gigabit Ethernet/CNA driver is compatible with the following OS platforms: * FreeBSD 9.x/10.x (64-bit) [Intel EM64T, AMD64] 3. Supported Features 10Gigabit Ethernet NIC/CNA driver supports following features * Large Segment Offload over TCP IPV4 * Large Segment Offload over TCP IPV6 * Receive Side scaling * TCP over IPv4 checksum offload * UDP over IPv4 checksum offload * IPV4 checksum offload * TCP over IPv6 checksum offload * UDP over IPv6 checksum offload * Jumbo frames * VLAN Tag 4. Using the driver 4.1 Installing the driver - copy the driver file (if_qlxge.ko) into some directory (say qla_driver) - cd - kldload -v ./if_qlxge.ko 4.2 Removing the driver - kldunload if_qlxge 5. Parameters to set prior to installing the driver - Add the following lines to /etc/sysctl.conf and reboot the machine prior to installing the driver net.inet.tcp.recvbuf_max=262144 net.inet.tcp.recvbuf_inc=16384 kern.ipc.nmbclusters=1000000 kern.ipc.maxsockbuf=2097152 net.inet.tcp.recvspace=131072 net.inet.tcp.sendbuf_max=262144 net.inet.tcp.sendspace=65536 - If you do not want to reboot the system please run the following commands login or su to root sysctl net.inet.tcp.recvbuf_max=262144 sysctl net.inet.tcp.recvbuf_inc=16384 sysctl kern.ipc.nmbclusters=1000000 sysctl kern.ipc.maxsockbuf=2097152 sysctl net.inet.tcp.recvspace=131072 sysctl net.inet.tcp.sendbuf_max=262144 sysctl net.inet.tcp.sendspace=65536 7. Contacting Support Please feel free to contact your QLogic approved reseller or QLogic Technical Support at any phase of integration for assistance. QLogic Technical Support can be reached by the following methods: Web: http://support.qlogic.com E-mail: support@qlogic.com (c) Copyright 2013-14. All rights reserved worldwide. QLogic, the QLogic logo, and the Powered by QLogic logo are registered trademarks of QLogic Corporation. All other brand and product names are trademarks or registered trademarks of their respective owners. diff --git a/sys/dev/random/build.sh b/sys/dev/random/build.sh index 08e033f844ba..0ad297f94138 100755 --- a/sys/dev/random/build.sh +++ b/sys/dev/random/build.sh @@ -1,57 +1,56 @@ #!/bin/sh #- # Copyright (c) 2013-2015 Mark R V Murray # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer # in this position and unchanged. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ # # Basic script to build crude unit tests. # # Diff-reduction checking between fortuna and the other algorithm is done like so: # # $ diff -u -B <(sed -e 's/random_other/random_wombat/g' \ # -e 's/RANDOM_OTHER/RANDOM_WOMBAT/g' other_algorithm.c) \ # <(sed -e 's/random_fortuna/random_wombat/g' \ # -e 's/RANDOM_FORTUNA/RANDOM_WOMBAT/g' fortuna.c) | less # cc -g -O0 -pthread \ -I../.. -lstdthreads -Wall \ unit_test.c \ other_algorithm.c \ hash.c \ ../../crypto/rijndael/rijndael-api-fst.c \ ../../crypto/rijndael/rijndael-alg-fst.c \ ../../crypto/sha2/sha256c.c \ -lz \ -o other_unit_test cc -g -O0 -pthread \ -I../.. -lstdthreads -Wall \ unit_test.c \ fortuna.c \ hash.c \ ../../crypto/rijndael/rijndael-api-fst.c \ ../../crypto/rijndael/rijndael-alg-fst.c \ ../../crypto/sha2/sha256c.c \ -lz \ -o fortuna_unit_test diff --git a/sys/dev/scc/scc_if.m b/sys/dev/scc/scc_if.m index f40f64a7c2f5..40f094445935 100644 --- a/sys/dev/scc/scc_if.m +++ b/sys/dev/scc/scc_if.m @@ -1,93 +1,92 @@ #- # Copyright (c) 2004-2006 Marcel Moolenaar # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include #include #include #include #include # The SCC hardware interface. The core SCC code is hardware independent. # The details of the hardware are abstracted by the SCC hardware interface. INTERFACE scc; # Default implementations of some methods. CODE { static int default_enabled(struct scc_softc *this, struct scc_chan *ch) { return (1); } } # attach() - attach hardware. # This method is called when the device is being attached. All resources # have been allocated. The intend of this method is to setup the hardware # for normal operation. # The reset parameter informs the hardware driver whether a full device # reset is allowed or not. This is important when one of the channels can # be used as system console and a hardware reset would disrupt output. METHOD int attach { struct scc_softc *this; int reset; }; # enabled() METHOD int enabled { struct scc_softc *this; struct scc_chan *chan; } DEFAULT default_enabled; # iclear() METHOD int iclear { struct scc_softc *this; struct scc_chan *chan; }; # ipend() - query SCC for pending interrupts. # When an interrupt is signalled, the handler will call this method to find # out which of the interrupt sources needs attention. The handler will use # this information to dispatch service routines that deal with each of the # interrupt sources. An advantage of this approach is that it allows multi- # port drivers (like puc(4)) to query multiple devices concurrently and # service them on an interrupt priority basis. If the hardware cannot provide # the information reliably, it is free to service the interrupt and return 0, # meaning that no attention is required. METHOD int ipend { struct scc_softc *this; } # probe() - detect hardware. # This method is called as part of the bus probe to make sure the # hardware exists. This function should also set the device description # to something that represents the hardware. METHOD int probe { struct scc_softc *this; }; diff --git a/sys/dev/sdhci/sdhci_if.m b/sys/dev/sdhci/sdhci_if.m index 531ef0e3adec..c2f852d1c3dc 100644 --- a/sys/dev/sdhci/sdhci_if.m +++ b/sys/dev/sdhci/sdhci_if.m @@ -1,186 +1,185 @@ #- # Copyright (c) 2006 M. Warner Losh # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # Portions of this software may have been developed with reference to # the SD Simplified Specification. The following disclaimer may apply: # # The following conditions apply to the release of the simplified # specification ("Simplified Specification") by the SD Card Association and # the SD Group. The Simplified Specification is a subset of the complete SD # Specification which is owned by the SD Card Association and the SD # Group. This Simplified Specification is provided on a non-confidential # basis subject to the disclaimers below. Any implementation of the # Simplified Specification may require a license from the SD Card # Association, SD Group, SD-3C LLC or other third parties. # # Disclaimers: # # The information contained in the Simplified Specification is presented only # as a standard specification for SD Cards and SD Host/Ancillary products and # is provided "AS-IS" without any representations or warranties of any # kind. No responsibility is assumed by the SD Group, SD-3C LLC or the SD # Card Association for any damages, any infringements of patents or other # right of the SD Group, SD-3C LLC, the SD Card Association or any third # parties, which may result from its use. No license is granted by # implication, estoppel or otherwise under any patent or other rights of the # SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing # herein shall be construed as an obligation by the SD Group, the SD-3C LLC # or the SD Card Association to disclose or distribute any technical # information, know-how or other confidential information to any third party. # -# $FreeBSD$ # # # This is the set of callbacks that mmc bridges call into the bus, or # that mmc/sd card drivers call to make requests. # #include #include #include #include #include #include #include #include CODE { static int null_set_clock(device_t brdev __unused, struct sdhci_slot *slot __unused, int clock) { return (clock); } static void null_set_uhs_timing(device_t brdev __unused, struct sdhci_slot *slot __unused) { } } INTERFACE sdhci; METHOD uint8_t read_1 { device_t brdev; struct sdhci_slot *slot; bus_size_t off; } METHOD uint16_t read_2 { device_t brdev; struct sdhci_slot *slot; bus_size_t off; } METHOD uint32_t read_4 { device_t brdev; struct sdhci_slot *slot; bus_size_t off; } METHOD void read_multi_4 { device_t brdev; struct sdhci_slot *slot; bus_size_t off; uint32_t *data; bus_size_t count; } METHOD void write_1 { device_t brdev; struct sdhci_slot *slot; bus_size_t off; uint8_t val; } METHOD void write_2 { device_t brdev; struct sdhci_slot *slot; bus_size_t off; uint16_t val; } METHOD void write_4 { device_t brdev; struct sdhci_slot *slot; bus_size_t off; uint32_t val; } METHOD void write_multi_4 { device_t brdev; struct sdhci_slot *slot; bus_size_t off; uint32_t *data; bus_size_t count; } METHOD int platform_will_handle { device_t brdev; struct sdhci_slot *slot; } METHOD void platform_start_transfer { device_t brdev; struct sdhci_slot *slot; uint32_t *intmask; } METHOD void platform_finish_transfer { device_t brdev; struct sdhci_slot *slot; } METHOD uint32_t min_freq { device_t brdev; struct sdhci_slot *slot; } DEFAULT sdhci_generic_min_freq; METHOD bool get_card_present { device_t brdev; struct sdhci_slot *slot; } DEFAULT sdhci_generic_get_card_present; METHOD void set_uhs_timing { device_t brdev; struct sdhci_slot *slot; } DEFAULT null_set_uhs_timing; METHOD int set_clock { device_t brdev; struct sdhci_slot *slot; int clock; } DEFAULT null_set_clock; METHOD void reset { device_t brdev; struct sdhci_slot *slot; uint8_t mask; } DEFAULT sdhci_generic_reset; diff --git a/sys/dev/sdio/sdio_if.m b/sys/dev/sdio/sdio_if.m index d6f15ba6cff6..ecd31c629a47 100644 --- a/sys/dev/sdio/sdio_if.m +++ b/sys/dev/sdio/sdio_if.m @@ -1,79 +1,78 @@ #- # Copyright (c) 2019 The FreeBSD Foundation # # Portions of this software were developed by Björn Zeeb # under sponsorship from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE sdio; # # READ DIRECT (1byte) # METHOD int read_direct { device_t dev; uint8_t fn; uint32_t addr; uint8_t *val; }; # # WRITE DIRECT (1byte) # METHOD int write_direct { device_t dev; uint8_t fn; uint32_t addr; uint8_t val; }; # # READ EXTENDED # METHOD int read_extended { device_t dev; uint8_t fn; uint32_t addr; uint32_t size; uint8_t *buffer; bool incaddr; }; # # WRITE EXTENDED # METHOD int write_extended { device_t dev; uint8_t fn; uint32_t addr; uint32_t size; uint8_t *buffer; bool incaddr; }; # end diff --git a/sys/dev/smbus/smbus_if.m b/sys/dev/smbus/smbus_if.m index d969e25ed566..e8eaa7b10281 100644 --- a/sys/dev/smbus/smbus_if.m +++ b/sys/dev/smbus/smbus_if.m @@ -1,151 +1,150 @@ #- # Copyright (c) 1998 Nicolas Souchu # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE smbus; # # Interpret interrupt # METHOD void intr { device_t dev; u_char devaddr; char low; char high; int error; }; # # smbus callback # METHOD int callback { device_t dev; int index; void *data; }; # # Quick command # METHOD int quick { device_t dev; u_char slave; int how; }; # # Send Byte command # METHOD int sendb { device_t dev; u_char slave; char byte; }; # # Receive Byte command # METHOD int recvb { device_t dev; u_char slave; char *byte; }; # # Write Byte command # METHOD int writeb { device_t dev; u_char slave; char cmd; char byte; }; # # Write Word command # METHOD int writew { device_t dev; u_char slave; char cmd; short word; }; # # Read Byte command # METHOD int readb { device_t dev; u_char slave; char cmd; char *byte; }; # # Read Word command # METHOD int readw { device_t dev; u_char slave; char cmd; short *word; }; # # Process Call command # METHOD int pcall { device_t dev; u_char slave; char cmd; short sdata; short *rdata; }; # # Block Write command # METHOD int bwrite { device_t dev; u_char slave; char cmd; u_char count; char *buf; }; # # Block Read command # METHOD int bread { device_t dev; u_char slave; char cmd; u_char *count; char *buf; }; diff --git a/sys/dev/sound/fdt/audio_dai_if.m b/sys/dev/sound/fdt/audio_dai_if.m index dc3ebbba5489..830ab99d5c7e 100644 --- a/sys/dev/sound/fdt/audio_dai_if.m +++ b/sys/dev/sound/fdt/audio_dai_if.m @@ -1,95 +1,94 @@ #- # Copyright (c) 2019 Oleksandr Tymoshenko # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # CODE { #include #include #include } INTERFACE audio_dai; # set DAI format for communications between CPU/codec nodes METHOD int init { device_t dev; uint32_t format; } # Initialize DAI and set up interrrupt handler METHOD int setup_intr { device_t dev; driver_intr_t intr_handler; void *intr_arg; } # Setup mixers for codec node METHOD int setup_mixer { device_t dev; device_t ausocdev; } # setup clock speed METHOD int set_sysclk { device_t dev; uint32_t rate; int dai_dir; } METHOD int trigger { device_t dev; int go; int pcm_dir; } METHOD struct pcmchan_caps* get_caps { device_t dev; } METHOD uint32_t get_ptr { device_t dev; int pcm_dir; } # Set PCM channel format METHOD uint32_t set_chanformat { device_t dev; uint32_t format; } # Set PCM channel sampling rate METHOD uint32_t set_chanspeed { device_t dev; uint32_t speed; } # call DAI interrupt handler # returns 1 if call to chn_intr required, 0 otherwise METHOD int intr { device_t dev; struct snd_dbuf *play_buf; struct snd_dbuf *rec_buf; } diff --git a/sys/dev/sound/midi/mpu_if.m b/sys/dev/sound/midi/mpu_if.m index 2db606e1b812..b7cb586c5dd0 100644 --- a/sys/dev/sound/midi/mpu_if.m +++ b/sys/dev/sound/midi/mpu_if.m @@ -1,74 +1,73 @@ #- # Copyright (c) 2003 Mathew Kanner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE mpu; METHOD int inqsize { struct snd_midi *_kobj; void *_cookie; }; METHOD int outqsize { struct snd_midi *_kobj; void *_cookie; }; METHOD int init { struct snd_midi *_kobj; void *_cookie; }; METHOD void callbackp { struct snd_midi *_kobj; void *_cookie; int _flags; }; METHOD void callback { struct snd_midi *_kobj; void *_cookie; int _flags; }; METHOD const char * provider { struct snd_midi *_kobj; void *_cookie; }; METHOD const char * descr { struct snd_midi *_kobj; void *_cookie; int _verbosity; }; METHOD int uninit { struct snd_midi *_kobj; void *_cookie; }; diff --git a/sys/dev/sound/midi/mpufoi_if.m b/sys/dev/sound/midi/mpufoi_if.m index 299b7f9a7003..f19f64c1c6e6 100644 --- a/sys/dev/sound/midi/mpufoi_if.m +++ b/sys/dev/sound/midi/mpufoi_if.m @@ -1,50 +1,49 @@ #- # Copyright (c) 2003 Mathew Kanner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE mpufoi; METHOD unsigned char read { struct mpu401 *_kobj; void *_cookie; int _reg; }; METHOD void write { struct mpu401 *_kobj; void *_cookie; int _reg; unsigned char _d; }; METHOD int uninit { struct mpu401 *_kobj; void *_cookie; }; diff --git a/sys/dev/sound/midi/synth_if.m b/sys/dev/sound/midi/synth_if.m index e29032b9ca87..a763b3422bc6 100644 --- a/sys/dev/sound/midi/synth_if.m +++ b/sys/dev/sound/midi/synth_if.m @@ -1,313 +1,312 @@ #- # Copyright (c) 2003 Mathew Kanner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # INTERFACE synth; #include CODE { synth_killnote_t nokillnote; synth_startnote_t nostartnote; synth_setinstr_t nosetinstr; synth_hwcontrol_t nohwcontrol; synth_aftertouch_t noaftertouch; synth_panning_t nopanning; synth_controller_t nocontroller; synth_volumemethod_t novolumemethod; synth_bender_t nobender; synth_setupvoice_t nosetupvoice; synth_sendsysex_t nosendsysex; synth_allocvoice_t noallocvoice; synth_writeraw_t nowriteraw; synth_reset_t noreset; synth_shortname_t noshortname; synth_open_t noopen; synth_close_t noclose; synth_query_t noquery; synth_insync_t noinsync; synth_alloc_t noalloc; int nokillnote(void *_kobj, uint8_t _chn, uint8_t _note, uint8_t _vel) { printf("nokillnote\n"); return 0; } int noopen(void *_kobj, void *_arg, int mode) { printf("noopen\n"); return 0; } int noquery(void *_kboj) { printf("noquery\n"); return 0; } int nostartnote(void *_kb, uint8_t _voice, uint8_t _note, uint8_t _parm) { printf("nostartnote\n"); return 0; } int nosetinstr(void *_kb, uint8_t _chn, uint16_t _patchno) { printf("nosetinstr\n"); return 0; } int nohwcontrol(void *_kb, uint8_t *_event) { printf("nohwcontrol\n"); return 0; } int noaftertouch ( void /* X */ * _kobj, uint8_t _x1, uint8_t _x2) { printf("noaftertouch\n"); return 0; } int nopanning ( void /* X */ * _kobj, uint8_t _x1, uint8_t _x2) { printf("nopanning\n"); return 0; } int nocontroller ( void /* X */ * _kobj, uint8_t _x1, uint8_t _x2, uint16_t _x3) { printf("nocontroller\n"); return 0; } int novolumemethod ( void /* X */ * _kobj, uint8_t _x1) { printf("novolumemethod\n"); return 0; } int nobender ( void /* X */ * _kobj, uint8_t _voice, uint16_t _bend) { printf("nobender\n"); return 0; } int nosetupvoice ( void /* X */ * _kobj, uint8_t _voice, uint8_t _chn) { printf("nosetupvoice\n"); return 0; } int nosendsysex ( void /* X */ * _kobj, void * _buf, size_t _len) { printf("nosendsysex\n"); return 0; } int noallocvoice ( void /* X */ * _kobj, uint8_t _chn, uint8_t _note, void *_x) { printf("noallocvoice\n"); return 0; } int nowriteraw ( void /* X */ * _kobjt, uint8_t * _buf, size_t _len) { printf("nowriteraw\n"); return 1; } int noreset ( void /* X */ * _kobjt) { printf("noreset\n"); return 0; } char * noshortname (void /* X */ * _kobjt) { printf("noshortname\n"); return "noshortname"; } int noclose ( void /* X */ * _kobjt) { printf("noclose\n"); return 0; } int noinsync (void /* X */ * _kobjt) { printf("noinsync\n"); return 0; } int noalloc ( void /* x */ * _kbojt, uint8_t _chn, uint8_t _note) { printf("noalloc\n"); return 0; } } METHOD int killnote { void /* X */ *_kobj; uint8_t _chan; uint8_t _note; uint8_t _vel; } DEFAULT nokillnote; METHOD int startnote { void /* X */ *_kobj; uint8_t _voice; uint8_t _note; uint8_t _parm; } DEFAULT nostartnote; METHOD int setinstr { void /* X */ *_kobj; uint8_t _chn; uint16_t _patchno; } DEFAULT nosetinstr; METHOD int hwcontrol { void /* X */ *_kobj; uint8_t *_event; } DEFAULT nohwcontrol; METHOD int aftertouch { void /* X */ *_kobj; uint8_t _x1; uint8_t _x2; } DEFAULT noaftertouch; METHOD int panning { void /* X */ *_kobj; uint8_t _x1; uint8_t _x2; } DEFAULT nopanning; METHOD int controller { void /* X */ *_kobj; uint8_t _x1; uint8_t _x2; uint16_t _x3; } DEFAULT nocontroller; METHOD int volumemethod { void /* X */ *_kobj; uint8_t _x1; } DEFAULT novolumemethod; METHOD int bender { void /* X */ *_kobj; uint8_t _voice; uint16_t _bend; } DEFAULT nobender; METHOD int setupvoice { void /* X */ *_kobj; uint8_t _voice; uint8_t _chn; } DEFAULT nosetupvoice; METHOD int sendsysex { void /* X */ *_kobj; void *_buf; size_t _len; } DEFAULT nosendsysex; METHOD int allocvoice { void /* X */ *_kobj; uint8_t _chn; uint8_t _note; void *_x; } DEFAULT noallocvoice; METHOD int writeraw { void /* X */ *_kobjt; uint8_t *_buf; size_t _len; } DEFAULT nowriteraw; METHOD int reset { void /* X */ *_kobjt; } DEFAULT noreset; METHOD char * shortname { void /* X */ *_kobjt; } DEFAULT noshortname; METHOD int open { void /* X */ *_kobjt; void *_sythn; int _mode; } DEFAULT noopen; METHOD int close { void /* X */ *_kobjt; } DEFAULT noclose; METHOD int query { void /* X */ *_kobjt; } DEFAULT noquery; METHOD int insync { void /* X */ *_kobjt; } DEFAULT noinsync; METHOD int alloc { void /* x */ *_kbojt; uint8_t _chn; uint8_t _note; } DEFAULT noalloc; diff --git a/sys/dev/sound/pci/hda/hdac_if.m b/sys/dev/sound/pci/hda/hdac_if.m index f87e2edffdea..fd7a06422673 100644 --- a/sys/dev/sound/pci/hda/hdac_if.m +++ b/sys/dev/sound/pci/hda/hdac_if.m @@ -1,115 +1,114 @@ # Copyright (c) 2012 Alexander Motin # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification, immediately at the beginning of the file. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include INTERFACE hdac; METHOD struct mtx * get_mtx { device_t dev; device_t child; }; METHOD uint32_t codec_command { device_t dev; device_t child; uint32_t verb; }; METHOD int stream_alloc { device_t dev; device_t child; int dir; int format; int stripe; uint32_t **dmapos; }; METHOD void stream_free { device_t dev; device_t child; int dir; int stream; }; METHOD int stream_start { device_t dev; device_t child; int dir; int stream; bus_addr_t buf; int blksz; int blkcnt; }; METHOD void stream_stop { device_t dev; device_t child; int dir; int stream; }; METHOD void stream_reset { device_t dev; device_t child; int dir; int stream; }; METHOD uint32_t stream_getptr { device_t dev; device_t child; int dir; int stream; }; METHOD void stream_intr { device_t dev; int dir; int stream; }; METHOD int unsol_alloc { device_t dev; device_t child; int wanted; }; METHOD void unsol_free { device_t dev; device_t child; int tag; }; METHOD void unsol_intr { device_t dev; uint32_t resp; }; METHOD void pindump { device_t dev; }; diff --git a/sys/dev/sound/pcm/ac97_if.m b/sys/dev/sound/pcm/ac97_if.m index 19f7378d1c6d..3cdbc72cc82d 100644 --- a/sys/dev/sound/pcm/ac97_if.m +++ b/sys/dev/sound/pcm/ac97_if.m @@ -1,61 +1,60 @@ #- # KOBJ # # Copyright (c) 2000 Cameron Grant # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE ac97; CODE { static u_int32_t ac97_noinit(kobj_t obj, void *devinfo) { return 1; } }; METHOD u_int32_t init { kobj_t obj; void *devinfo; } DEFAULT ac97_noinit; METHOD int read { kobj_t obj; void *devinfo; int regno; }; METHOD int write { kobj_t obj; void *devinfo; int regno; u_int32_t data; }; diff --git a/sys/dev/sound/pcm/channel_if.m b/sys/dev/sound/pcm/channel_if.m index c5c4fffc6730..407ee8787ee1 100644 --- a/sys/dev/sound/pcm/channel_if.m +++ b/sys/dev/sound/pcm/channel_if.m @@ -1,233 +1,232 @@ #- # KOBJ # # Copyright (c) 2005-2009 Ariff Abdullah # Portions Copyright (c) Ryan Beasley - GSoC 2006 # Copyright (c) 2000 Cameron Grant # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE channel; CODE { static int channel_noreset(kobj_t obj, void *data) { return 0; } static int channel_noresetdone(kobj_t obj, void *data) { return 0; } static int channel_nofree(kobj_t obj, void *data) { return 1; } static u_int32_t channel_nogetptr(kobj_t obj, void *data) { return 0; } static int channel_nonotify(kobj_t obj, void *data, u_int32_t changed) { return 0; } static int channel_nogetpeaks(kobj_t obj, void *data, int *lpeak, int *rpeak) { return -1; } static int channel_nogetrates(kobj_t obj, void *data, int **rates) { *rates = NULL; return 0; } static int channel_nosetfragments(kobj_t obj, void *data, u_int32_t blocksize, u_int32_t blockcount) { return ENOTSUP; } static struct pcmchan_matrix * channel_nogetmatrix(kobj_t obj, void *data, u_int32_t format) { format = feeder_matrix_default_format(format); return (feeder_matrix_format_map(format)); } static int channel_nosetmatrix(kobj_t obj, void *data, struct pcmchan_matrix *m) { return ENOTSUP; } }; METHOD void* init { kobj_t obj; void *devinfo; struct snd_dbuf *b; struct pcm_channel *c; int dir; }; METHOD int free { kobj_t obj; void *data; } DEFAULT channel_nofree; METHOD int reset { kobj_t obj; void *data; } DEFAULT channel_noreset; METHOD int resetdone { kobj_t obj; void *data; } DEFAULT channel_noresetdone; METHOD int setformat { kobj_t obj; void *data; u_int32_t format; }; METHOD u_int32_t setspeed { kobj_t obj; void *data; u_int32_t speed; }; METHOD u_int32_t setblocksize { kobj_t obj; void *data; u_int32_t blocksize; }; METHOD int setfragments { kobj_t obj; void *data; u_int32_t blocksize; u_int32_t blockcount; } DEFAULT channel_nosetfragments; METHOD int trigger { kobj_t obj; void *data; int go; }; METHOD u_int32_t getptr { kobj_t obj; void *data; } DEFAULT channel_nogetptr; METHOD struct pcmchan_caps* getcaps { kobj_t obj; void *data; }; METHOD int notify { kobj_t obj; void *data; u_int32_t changed; } DEFAULT channel_nonotify; /** * @brief Retrieve channel peak values * * This function is intended to obtain peak volume values for samples * played/recorded on a channel. Values are on a linear scale from 0 to * 32767. If the channel is monaural, a single value should be recorded * in @c lpeak. * * If hardware support isn't available, the SNDCTL_DSP_GET[IO]PEAKS * operation should return EINVAL. However, we may opt to provide * software support that the user may toggle via sysctl/mixext. * * @param obj standard kobj object (usually @c channel->methods) * @param data driver-specific data (usually @c channel->devinfo) * @param lpeak pointer to store left peak level * @param rpeak pointer to store right peak level * * @retval -1 Error; usually operation isn't supported. * @retval 0 success */ METHOD int getpeaks { kobj_t obj; void *data; int *lpeak; int *rpeak; } DEFAULT channel_nogetpeaks; /** * @brief Retrieve discrete supported sample rates * * Some cards operate at fixed rates, and this call is intended to retrieve * those rates primarily for when in-kernel rate adjustment is undesirable * (e.g., application wants direct DMA access after setting a channel to run * "uncooked"). * * The parameter @c rates is a double pointer which will be reset to * point to an array of supported sample rates. The number of elements * in the array is returned to the caller. * * @param obj standard kobj object (usually @c channel->methods) * @param data driver-specific data (usually @c channel->devinfo) * @param rates rate array pointer * * @return Number of rates in the array */ METHOD int getrates { kobj_t obj; void *data; int **rates; } DEFAULT channel_nogetrates; METHOD struct pcmchan_matrix * getmatrix { kobj_t obj; void *data; u_int32_t format; } DEFAULT channel_nogetmatrix; METHOD int setmatrix { kobj_t obj; void *data; struct pcmchan_matrix *m; } DEFAULT channel_nosetmatrix; diff --git a/sys/dev/sound/pcm/feeder_if.m b/sys/dev/sound/pcm/feeder_if.m index 83c0fb073b53..21644d2a4a54 100644 --- a/sys/dev/sound/pcm/feeder_if.m +++ b/sys/dev/sound/pcm/feeder_if.m @@ -1,88 +1,87 @@ #- # KOBJ # # Copyright (c) 2000 Cameron Grant # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE feeder; CODE { static int feeder_noinit(struct pcm_feeder* feeder) { return 0; } static int feeder_nofree(struct pcm_feeder* feeder) { return 0; } static int feeder_noset(struct pcm_feeder* feeder, int what, int value) { return -1; } static int feeder_noget(struct pcm_feeder* feeder, int what) { return -1; } }; METHOD int init { struct pcm_feeder* feeder; } DEFAULT feeder_noinit; METHOD int free { struct pcm_feeder* feeder; } DEFAULT feeder_nofree; METHOD int set { struct pcm_feeder* feeder; int what; int value; } DEFAULT feeder_noset; METHOD int get { struct pcm_feeder* feeder; int what; } DEFAULT feeder_noget; METHOD int feed { struct pcm_feeder* feeder; struct pcm_channel* c; u_int8_t* buffer; u_int32_t count; void* source; }; diff --git a/sys/dev/sound/pcm/mixer_if.m b/sys/dev/sound/pcm/mixer_if.m index 9bd974ce7d9e..8cb0b9ae6592 100644 --- a/sys/dev/sound/pcm/mixer_if.m +++ b/sys/dev/sound/pcm/mixer_if.m @@ -1,67 +1,66 @@ #- # KOBJ # # Copyright (c) 2000 Cameron Grant # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE mixer; CODE { static int mixer_noreinit(struct snd_mixer *m) { return 0; } }; METHOD int init { struct snd_mixer *m; }; METHOD int reinit { struct snd_mixer *m; } DEFAULT mixer_noreinit; METHOD int uninit { struct snd_mixer *m; }; METHOD int set { struct snd_mixer *m; unsigned dev; unsigned left; unsigned right; }; METHOD u_int32_t setrecsrc { struct snd_mixer *m; u_int32_t src; }; diff --git a/sys/dev/spibus/spibus_if.m b/sys/dev/spibus/spibus_if.m index 8e95c358fa82..1d9f32f2aac6 100644 --- a/sys/dev/spibus/spibus_if.m +++ b/sys/dev/spibus/spibus_if.m @@ -1,40 +1,39 @@ #- # Copyright (c) 2006 M. Warner Losh # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE spibus; # # Do a spi command # METHOD int transfer { device_t dev; device_t child; struct spi_command *cmd; }; diff --git a/sys/dev/sram/mmio_sram_if.m b/sys/dev/sram/mmio_sram_if.m index 02994175c069..1a3724ad5085 100644 --- a/sys/dev/sram/mmio_sram_if.m +++ b/sys/dev/sram/mmio_sram_if.m @@ -1,44 +1,43 @@ #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2022 Ruslan Bukin # # This work was supported by Innovate UK project 105694, "Digital Security by # Design (DSbD) Technology Platform Prototype". # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE mmio_sram; METHOD uint8_t read_1 { device_t dev; bus_size_t offset; }; METHOD void write_1 { device_t dev; bus_size_t offset; uint8_t value; }; diff --git a/sys/dev/syscons/fonts/cursor.awk b/sys/dev/syscons/fonts/cursor.awk index 425a0a5f67a5..b4070ca06a89 100644 --- a/sys/dev/syscons/fonts/cursor.awk +++ b/sys/dev/syscons/fonts/cursor.awk @@ -1,48 +1,47 @@ -# $FreeBSD$ # # awk script to convert a bdf file to C declarations in a form specialized # for the mouse cursors in syscons/scvgarndr.c. Usage: # awk -f thisfile < file.bdf < file.c # The accompanying syscons mouse cursor bdf file has specialized comments # which this script converts to details in the C declarations. # This is not a general conversion utility, but produces reasonable output # if the input is for a monospaced font of size between 9x16 and 16x16. /^COMMENT cn.*mouse/ { gsub("[(),]", "") i = index($3, "-") n = substr($3, 1, i - 1) name[n] = $4 i = index($4, "e") j = index($4, "x") k = index($4, "_") width[n] = substr($4, i + 1, j - i - 1) height[n] = substr($4, j + 1, k - j - 1) baspect[n] = $6 iaspect[n] = $8 } state == 0 && /^STARTCHAR/ { n = substr($2, 5) printf("static const struct mousedata %s = { {\n\t", name[n]) state = 1 } state >= 1 && state < 7 || state >= 7 + 16 && state < 7 + 16 + 7 { state++ next } state >= 7 && state < 7 + 16 || state >= 7 + 16 + 7 && state < 7 + 16 + 7 +16 { printf("0x%s,", $1) if (state == 7 + 7 || state == 7 + 16 + 7 + 7) printf("\n\t") else if (state == 7 + 15) printf(" }, {\n\t") else if (state == 7 + 16 + 7 + 15) { printf(" },\n\t%s, %s, %s, %s, \"%s\",", width[n], height[n], baspect[n], iaspect[n], name[n]) printf("\n};\n\n") state = -1 } else printf(" ") state++ next } diff --git a/sys/dev/uart/uart_if.m b/sys/dev/uart/uart_if.m index aab777172fb0..516e8b0811df 100644 --- a/sys/dev/uart/uart_if.m +++ b/sys/dev/uart/uart_if.m @@ -1,159 +1,158 @@ #- # Copyright (c) 2003 Marcel Moolenaar # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include #include #include #include #include #include # The UART hardware interface. The core UART code is hardware independent. # The details of the hardware are abstracted by the UART hardware interface. INTERFACE uart; # attach() - attach hardware. # This method is called when the device is being attached. All resources # have been allocated. The transmit and receive buffers exist, but no # high-level (ie tty) initialization has been done yet. # The intend of this method is to setup the hardware for normal operation. METHOD int attach { struct uart_softc *this; }; # detach() - detach hardware. # This method is called when a device is being detached from its bus. It # is the first action performed, so even the high-level (ie tty) interface # is still operational. # The intend of this method is to disable the hardware. METHOD int detach { struct uart_softc *this; }; # flush() - flush FIFOs. # This method is called to flush the transmitter and/or the receiver as # specified by the what argument. Characters are expected to be lost. METHOD int flush { struct uart_softc *this; int what; }; # getsig() - get line and modem signals. # This method retrieves the DTE and DCE signals and their corresponding # delta bits. The delta bits include those corresponding to DTE signals # when they were changed by a call to setsig. The delta bits maintained # by the hardware driver are cleared as a side-effect. A second call to # this function will not have any delta bits set, unless there was a # change in the signals in the mean time. METHOD int getsig { struct uart_softc *this; }; # ioctl() - get or set miscellaneous parameters. # This method is the bitbucket method. It can (and will) be used when there's # something we need to set or get for which a new method is overkill. It's # used for example to set HW or SW flow-control. METHOD int ioctl { struct uart_softc *this; int request; intptr_t data; }; # ipend() - query UART for pending interrupts. # When an interrupt is signalled, the handler will call this method to find # out which of the interrupt sources needs attention. The handler will use # this information to dispatch service routines that deal with each of the # interrupt sources. An advantage of this approach is that it allows multi- # port drivers (like puc(4)) to query multiple devices concurrently and # service them on an interrupt priority basis. If the hardware cannot provide # the information reliably, it is free to service the interrupt and return 0, # meaning that no attention is required. METHOD int ipend { struct uart_softc *this; } # param() - set communication parameters. # This method is called to change the communication parameters. METHOD int param { struct uart_softc *this; int baudrate; int databits; int stopbits; int parity; }; # probe() - detect hardware. # This method is called as part of the bus probe to make sure the # hardware exists. This function should also set the device description # to something that represents the hardware. METHOD int probe { struct uart_softc *this; }; # receive() - move data from the receive FIFO to the receive buffer. # This method is called to move received data to the receive buffer and # additionally should make sure the receive interrupt should be cleared. METHOD int receive { struct uart_softc *this; }; # setsig() - set line and modem signals. # This method allows changing DTE signals. The DTE delta bits indicate which # signals are to be changed and the DTE bits themselves indicate whether to # set or clear the signals. A subsequent call to getsig will return with the # DTE delta bits set of those DTE signals that did change by this method. METHOD int setsig { struct uart_softc *this; int sig; }; # transmit() - move data from the transmit buffer to the transmit FIFO. # This method is responsible for writing the Tx buffer to the UART and # additionally should make sure that a transmit interrupt is generated # when transmission is complete. METHOD int transmit { struct uart_softc *this; }; # grab() - Up call from the console to the upper layers of the driver when # the kernel asks to grab the console. This is valid only for console # drivers. This method is responsible for transitioning the hardware # from an interrupt driven state to a polled state that works with the # low-level console interface defined for this device. The kernel # currently only calls this when it wants to grab input from the # console. Output can still happen asyncrhonously to these calls. METHOD void grab { struct uart_softc *this; }; # ungrab() - Undoes the effects of grab(). METHOD void ungrab { struct uart_softc *this; }; diff --git a/sys/dev/usb/controller/generic_usb_if.m b/sys/dev/usb/controller/generic_usb_if.m index 455f273fe1f2..22969a0b71b3 100644 --- a/sys/dev/usb/controller/generic_usb_if.m +++ b/sys/dev/usb/controller/generic_usb_if.m @@ -1,59 +1,58 @@ #- # Copyright (c) 2016 Emmanuel Vadot # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # INTERFACE generic_usb; CODE { static int generic_usb_default_init(device_t dev) { return (0); } static int generic_usb_default_deinit(device_t dev) { return (0); } }; HEADER { }; # # Initialize the SoC bits # METHOD int init { device_t dev; } DEFAULT generic_usb_default_init; # # Deinitialize the SoC bits # METHOD int deinit { device_t dev; } DEFAULT generic_usb_default_deinit; diff --git a/sys/dev/usb/usb_if.m b/sys/dev/usb/usb_if.m index b24fc2b386a4..edacf6ec89cd 100644 --- a/sys/dev/usb/usb_if.m +++ b/sys/dev/usb/usb_if.m @@ -1,66 +1,65 @@ #- # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification, immediately at the beginning of the file. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. The name of the author may not be used to endorse or promote products # derived from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ # # USB interface description # #include INTERFACE usb; # The device received a control request # # The value pointed to by "pstate" can be updated to # "USB_HR_COMPLETE_OK" to indicate that the control # read transfer is complete, in case of short USB # control transfers. # # Return values: # 0: Success # ENOTTY: Transaction stalled # Else: Use builtin request handler # METHOD int handle_request { device_t dev; const void *req; /* pointer to the device request */ void **pptr; /* data pointer */ uint16_t *plen; /* maximum transfer length */ uint16_t offset; /* data offset */ uint8_t *pstate; /* set if transfer is complete, see USB_HR_XXX */ }; # Take controller from BIOS # # Return values: # 0: Success # Else: Failure # METHOD int take_controller { device_t dev; }; diff --git a/sys/dev/video/crtc_if.m b/sys/dev/video/crtc_if.m index 8cf81bccccf9..56696340244b 100644 --- a/sys/dev/video/crtc_if.m +++ b/sys/dev/video/crtc_if.m @@ -1,67 +1,66 @@ #- # Copyright (c) 2015 Oleksandr Tymoshenko # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include INTERFACE crtc; HEADER { #include typedef void (*hdmi_event_hook)(void *, device_t, int); EVENTHANDLER_DECLARE(hdmi_event, hdmi_event_hook); #define HDMI_EVENT_CONNECTED 0 } # # Get EDID info # METHOD int get_edid { device_t dev; uint8_t **edid; uint32_t *edid_length; }; # # Set videomode # METHOD int set_videomode { device_t dev; const struct videomode *videomode; }; # # Enable/disable output # METHOD int enable { device_t dev; int onoff; }; diff --git a/sys/dev/videomode/Makefile.ediddevs b/sys/dev/videomode/Makefile.ediddevs index 69dc8bcce9cc..25d445a4b5c2 100644 --- a/sys/dev/videomode/Makefile.ediddevs +++ b/sys/dev/videomode/Makefile.ediddevs @@ -1,16 +1,15 @@ # $NetBSD: Makefile.ediddevs,v 1.1 2006/05/11 01:49:53 gdamore Exp $ -# $FreeBSD$ # # As per tron@NetBSD.org, the proper procedure is # # 1.) Change "src/sys/dev/videomode/ediddevs". # 2.) Commit "src/sys/dev/videomode/ediddevs". # 3.) Execute "make -f Makefile.ediddevs" in "src/sys/dev/videomode". # 4.) Commit "src/sys/dev/videomode/ediddevs.h" and # "src/sys/dev/videomode/ediddevs_data.h". .include ediddevs.h ediddevs_data.h: ediddevs devlist2h.awk /bin/rm -f ediddevs.h ediddevs_data.h ${TOOL_AWK} -f devlist2h.awk ediddevs diff --git a/sys/dev/videomode/Makefile.videomode b/sys/dev/videomode/Makefile.videomode index 27ac06e8a10a..72110be25915 100644 --- a/sys/dev/videomode/Makefile.videomode +++ b/sys/dev/videomode/Makefile.videomode @@ -1,18 +1,17 @@ # $NetBSD: Makefile.videomode,v 1.1 2006/03/04 02:34:27 gdamore Exp $ -# $FreeBSD$ # # As per tron@NetBSD.org, the proper procedure is # # 1.) Change "src/sys/dev/videomode/modelines". # 2.) Commit "src/sys/dev/videomode/modelines". # 3.) Execute "make -f Makefile.videomode" in "src/sys/dev/videomode". # 4.) Commit "src/sys/dev/videomode/videomode.c" .include videomode.c: modelines modelines2c.awk /bin/rm -f videomode.c ${TOOL_AWK} -f modelines2c.awk modelines > videomode.c test: videomode.c videomode.h test.c ${CC} -I ../../ -o test test.c videomode.c diff --git a/sys/dev/videomode/devlist2h.awk b/sys/dev/videomode/devlist2h.awk index f317da61be3b..2bae373cd307 100644 --- a/sys/dev/videomode/devlist2h.awk +++ b/sys/dev/videomode/devlist2h.awk @@ -1,193 +1,192 @@ #! /usr/bin/awk -f # $NetBSD: devlist2h.awk,v 1.9 2005/12/11 12:21:20 christos Exp $ -# $FreeBSD$ # # Copyright (c) 1995, 1996 Christopher G. Demetriou # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by Christopher G. Demetriou. # 4. The name of the author may not be used to endorse or promote products # derived from this software without specific prior written permission # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # BEGIN { nproducts = nvendors = blanklines = 0 dfile="ediddevs_data.h" hfile="ediddevs.h" } NR == 1 { VERSION = $0 gsub("\\$", "", VERSION) gsub(/ $/, "", VERSION) printf("/*\t$FreeBSD" "$\t*/\n\n") > dfile printf("/*\n") > dfile printf(" * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \ > dfile printf(" *\n") > dfile printf(" * generated from:\n") > dfile printf(" *\t%s\n", VERSION) > dfile printf(" */\n") > dfile printf("/*\t$NetBSD" "$\t*/\n\n") > hfile printf("/*\n") > hfile printf(" * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \ > hfile printf(" *\n") > hfile printf(" * generated from:\n") > hfile printf(" *\t%s\n", VERSION) > hfile printf(" */\n") > hfile next } NF > 0 && $1 == "vendor" { nvendors++ vendorindex[$2] = nvendors; # record index for this name, for later. vendors[nvendors, 1] = $2; # name/ID i = 2; f = 3; printf("#define\tEDID_VENDOR_%s\t\"", vendors[nvendors, 1]) > hfile # comments oparen = 0 while (f <= NF) { if ($f == "#") { printf("(") > hfile oparen = 1 f++ continue } if (oparen) { printf("%s", $f) > hfile f++ continue } vendors[nvendors, i] = $f printf("%s", vendors[nvendors, i]) > hfile if (f < NF) printf(" ") > hfile i++; f++; } if (oparen) printf(")") > hfile printf("\"") > hfile printf("\n") > hfile next } NF > 0 && $1 == "product" { nproducts++ products[nproducts, 1] = $2; # vendor name products[nproducts, 2] = $3; # product id products[nproducts, 3] = $4; # id printf("#define\tEDID_PRODUCT_%s_%s\t%s", products[nproducts, 1], products[nproducts, 2], products[nproducts, 3]) > hfile i = 4; f = 5; ocomment = oparen = 0 if (f <= NF) { printf("\t\t/* ") > hfile ocomment = 1; } while (f <= NF) { if ($f == "#") { printf("(") > hfile oparen = 1 f++ continue } if (oparen) { printf("%s", $f) > hfile if (f < NF) printf(" ") > hfile f++ continue } products[nproducts, i] = $f printf("%s", products[nproducts, i]) > hfile if (f < NF) printf(" ") > hfile i++; f++; } if (oparen) printf(")") > hfile if (ocomment) printf(" */") > hfile printf("\n") > hfile next } { if ($0 == "") blanklines++ if (blanklines != 2 && blanklines != 3) print $0 > hfile if (blanklines < 2) print $0 > dfile } END { # print out the match tables printf("\n") > dfile printf("const struct edid_vendor edid_vendors[] = {\n") > dfile for (i = 1; i <= nvendors; i++) { printf("\t{") > dfile printf(" \"%s\", EDID_VENDOR_%s", vendors[i, 1], \ vendors[i, 1]) > dfile printf(" },\n") > dfile } printf("};\n") > dfile printf("const int edid_nvendors = %d;\n", nvendors) > dfile printf("\n") > dfile printf("const struct edid_product edid_products[] = {\n") > dfile for (i = 1; i <= nproducts; i++) { printf("\t{\n") > dfile printf("\t \"%s\", EDID_PRODUCT_%s_%s,\n", \ products[i, 1], products[i, 1], products[i, 2]) > dfile printf("\t \"") > dfile j = 4 needspace = 0 while ((i, j) in products) { if (needspace) printf(" ") > dfile printf("%s", products[i, j]) > dfile needspace = 1 j++ } printf("\",\n") > dfile printf("\t},\n") > dfile } printf("};\n") > dfile printf("const int edid_nproducts = %d;\n", nproducts) >dfile close(dfile) close(hfile) } diff --git a/sys/dev/videomode/modelines2c.awk b/sys/dev/videomode/modelines2c.awk index 9b95c3fc660d..cd62f4fd8b90 100644 --- a/sys/dev/videomode/modelines2c.awk +++ b/sys/dev/videomode/modelines2c.awk @@ -1,150 +1,149 @@ #! /usr/bin/awk -f # $NetBSD: modelines2c.awk,v 1.4 2006/10/26 23:19:50 bjh21 Exp $ -# $FreeBSD$ # # Copyright (c) 2006 Itronix Inc. # All rights reserved. # # Written by Garrett D'Amore for Itronix Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. The name of Itronix Inc. may not be used to endorse # or promote products derived from this software without specific # prior written permission. # # THIS SOFTWARE IS PROVIDED BY ITRONIX INC. ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # BEGIN { nmodes = 0; } NR == 1 { split($0,v,"$"); VERSION=v[2]; printf("/*\t$NetBSD" "$\t*/\n\n"); printf("/*\n") ; printf(" * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n"); printf(" *\n"); printf(" * generated from:\n"); printf(" *\t%s\n", VERSION); printf(" */\n\n"); printf("#include \n"); printf("__KERNEL_RCSID(0, \"$NetBSD" "$\");\n\n"); printf("#include \n\n"); printf("/*\n"); printf(" * These macros help the modelines below fit on one line.\n"); printf(" */\n"); printf("#define HP VID_PHSYNC\n"); printf("#define HN VID_NHSYNC\n"); printf("#define VP VID_PVSYNC\n"); printf("#define VN VID_NVSYNC\n"); printf("#define I VID_INTERLACE\n"); printf("#define DS VID_DBLSCAN\n"); printf("\n"); printf("#define M(nm,hr,vr,clk,hs,he,ht,vs,ve,vt,f) \\\n"); printf("\t{ clk, hr, hs, he, ht, vr, vs, ve, vt, f, nm } \n\n"); printf("const struct videomode videomode_list[] = {\n"); next } (/^ModeLine/) { dotclock = $3; hdisplay = $4; hsyncstart = $5; hsyncend = $6; htotal = $7; vdisplay = $8; vsyncstart = $9; vsyncend = $10; vtotal = $11; macro = "MODE"; iflag = ""; iflags = ""; hflags = "HP"; vflags = "VP"; if ($12 ~ "^-") hflags = "HN"; if ($13 ~ "^-") vflags = "VN"; ifactor=1.0; if ($14 ~ "[Ii][Nn][Tt][Ee][Rr][Ll][Aa][Cc][Ee]") { iflag = "i"; iflags = "|I"; ifactor = 2.0; } # We truncate the vrefresh figure, but some mode descriptions rely # on rounding, so we can't win here. Adding an additional .1 # compensates to some extent. hrefresh= (dotclock * 1000000) / htotal; vrefresh= int(((hrefresh * ifactor) / vtotal) + .1); modestr = sprintf("%dx%dx%d%s", hdisplay, vdisplay, vrefresh, iflag); # printf("/* %dx%d%s refresh %d Hz, hsync %d kHz */\n", # hdisplay, vdisplay, iflag, vrefresh, hrefresh/1000); printf("M(\"%s\",%d,%d,%d,%d,%d,%d,%d,%d,%d,%s),\n", modestr, hdisplay, vdisplay, dotclock * 1000, hsyncstart, hsyncend, htotal, vsyncstart, vsyncend, vtotal, hflags "|" vflags iflags); modestr = sprintf("%dx%dx%d%s", hdisplay/2 , vdisplay/2, vrefresh, iflag); dmodes[nmodes]=sprintf("M(\"%s\",%d,%d,%d,%d,%d,%d,%d,%d,%d,%s),", modestr, hdisplay/2, vdisplay/2, dotclock * 1000 / 2, hsyncstart/2, hsyncend/2, htotal/2, vsyncstart/2, vsyncend/2, vtotal/2, hflags "|" vflags "|DS" iflags); nmodes = nmodes + 1 } END { printf("\n/* Derived Double Scan Modes */\n\n"); for ( i = 0; i < nmodes; i++ ) { print dmodes[i]; } printf("};\n\n"); printf("const int videomode_count = %d;\n", nmodes); } diff --git a/sys/dev/virtio/mmio/virtio_mmio_if.m b/sys/dev/virtio/mmio/virtio_mmio_if.m index 3cdb4498d934..baebbd9a0b1c 100644 --- a/sys/dev/virtio/mmio/virtio_mmio_if.m +++ b/sys/dev/virtio/mmio/virtio_mmio_if.m @@ -1,100 +1,99 @@ #- # Copyright (c) 2014 Ruslan Bukin # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) # ("CTSRD"), as part of the DARPA CRASH research programme. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include # # This is optional interface to virtio mmio backend. # Useful when backend is implemented not by the hardware but software, e.g. # by using another cpu core. # INTERFACE virtio_mmio; CODE { static int virtio_mmio_prewrite(device_t dev, size_t offset, int val) { return (1); } static int virtio_mmio_note(device_t dev, size_t offset, int val) { return (1); } static int virtio_mmio_setup_intr(device_t dev, device_t mmio_dev, void *handler, void *ih_user) { return (1); } }; # # Inform backend we are going to write data at offset. # METHOD int prewrite { device_t dev; size_t offset; int val; } DEFAULT virtio_mmio_prewrite; # # Inform backend we have data wrotten to offset. # METHOD int note { device_t dev; size_t offset; int val; } DEFAULT virtio_mmio_note; # # Inform backend we are going to poll virtqueue. # METHOD int poll { device_t dev; }; # # Setup backend-specific interrupts. # METHOD int setup_intr { device_t dev; device_t mmio_dev; void *handler; void *ih_user; } DEFAULT virtio_mmio_setup_intr; diff --git a/sys/dev/virtio/pci/virtio_pci_if.m b/sys/dev/virtio/pci/virtio_pci_if.m index 077ed6e1e51e..028e3c4a97fe 100644 --- a/sys/dev/virtio/pci/virtio_pci_if.m +++ b/sys/dev/virtio/pci/virtio_pci_if.m @@ -1,71 +1,70 @@ #- # Copyright (c) 2017, Bryan Venteicher # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ #include #include INTERFACE virtio_pci; HEADER { struct virtqueue; struct vtpci_interrupt; }; METHOD uint8_t read_isr { device_t dev; }; METHOD uint16_t get_vq_size { device_t dev; int idx; }; METHOD bus_size_t get_vq_notify_off { device_t dev; int idx; }; METHOD void set_vq { device_t dev; struct virtqueue *vq; }; METHOD void disable_vq { device_t dev; int idx; }; METHOD int register_cfg_msix { device_t dev; struct vtpci_interrupt *intr; }; METHOD int register_vq_msix { device_t dev; int idx; struct vtpci_interrupt *intr; }; diff --git a/sys/dev/virtio/virtio_bus_if.m b/sys/dev/virtio/virtio_bus_if.m index 80a99f2afedd..8d7b6db7d488 100644 --- a/sys/dev/virtio/virtio_bus_if.m +++ b/sys/dev/virtio/virtio_bus_if.m @@ -1,117 +1,116 @@ #- # Copyright (c) 2011, Bryan Venteicher # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ #include #include INTERFACE virtio_bus; HEADER { struct vq_alloc_info; }; CODE { static int virtio_bus_default_finalize_features(device_t dev) { return (0); } static int virtio_bus_default_config_generation(device_t dev) { return (0); } }; METHOD uint64_t negotiate_features { device_t dev; uint64_t child_features; }; METHOD int finalize_features { device_t dev; } DEFAULT virtio_bus_default_finalize_features; METHOD int with_feature { device_t dev; uint64_t feature; }; METHOD int alloc_virtqueues { device_t dev; int flags; int nvqs; struct vq_alloc_info *info; }; METHOD int setup_intr { device_t dev; enum intr_type type; }; METHOD void stop { device_t dev; }; METHOD int reinit { device_t dev; uint64_t features; }; METHOD void reinit_complete { device_t dev; }; METHOD void notify_vq { device_t dev; uint16_t queue; bus_size_t offset; }; METHOD int config_generation { device_t dev; } DEFAULT virtio_bus_default_config_generation; METHOD void read_device_config { device_t dev; bus_size_t offset; void *dst; int len; }; METHOD void write_device_config { device_t dev; bus_size_t offset; const void *src; int len; }; METHOD void poll { device_t dev; }; diff --git a/sys/dev/virtio/virtio_if.m b/sys/dev/virtio/virtio_if.m index 521f4b8973a8..a3b22dd70ad5 100644 --- a/sys/dev/virtio/virtio_if.m +++ b/sys/dev/virtio/virtio_if.m @@ -1,54 +1,53 @@ #- # Copyright (c) 2011, Bryan Venteicher # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ #include INTERFACE virtio; CODE { static int virtio_default_attach_completed(device_t dev) { return (0); } }; METHOD int attach_completed { device_t dev; } DEFAULT virtio_default_attach_completed; CODE { static int virtio_default_config_change(device_t dev) { return (0); } }; METHOD int config_change { device_t dev; } DEFAULT virtio_default_config_change; diff --git a/sys/dev/vnic/lmac_if.m b/sys/dev/vnic/lmac_if.m index 59fa635c5a4d..fb1cb33adbaf 100644 --- a/sys/dev/vnic/lmac_if.m +++ b/sys/dev/vnic/lmac_if.m @@ -1,101 +1,100 @@ #- # Copyright (c) 2015 The FreeBSD Foundation # # This software was developed by Semihalf under # the sponsorship of the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # LMAC (BGX controller) interface description # INTERFACE lmac; CODE { static int null_lmac_media_status(device_t dev, int lmacid, int *link, int *duplex, int *speed) { return (ENXIO); } static int null_lmac_media_change(device_t dev, int lmacid, int link, int duplex, int speed) { return (ENXIO); } static int null_lmac_phy_connect(device_t dev, int lmacid, int phy) { return (ENXIO); } static int null_lmac_phy_disconnect(device_t dev, int lmacid, int phy) { return (ENXIO); } }; # Get link status # # 0 : Success # METHOD int media_status { device_t dev; int lmacid; int * link; int * duplex; int * speed; } DEFAULT null_lmac_media_status; # Change link status # # 0 : Success # METHOD int media_change { device_t dev; int lmacid; int link; int duplex; int speed; } DEFAULT null_lmac_media_change; # Connect PHY # # 0 : Success # METHOD int phy_connect { device_t dev; int lmacid; int phy; } DEFAULT null_lmac_phy_connect; # Disconnect PHY # # 0 : Success # METHOD int phy_disconnect { device_t dev; int lmacid; int phy; } DEFAULT null_lmac_phy_disconnect; diff --git a/sys/dev/xdma/xdma_if.m b/sys/dev/xdma/xdma_if.m index b34b72bc5d42..6d3514f89bc3 100644 --- a/sys/dev/xdma/xdma_if.m +++ b/sys/dev/xdma/xdma_if.m @@ -1,158 +1,157 @@ #- # Copyright (c) 2016-2019 Ruslan Bukin # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include "opt_platform.h" #include #include #ifdef FDT #include #include #include #endif #include INTERFACE xdma; # # Request a transfer. # METHOD int channel_request { device_t dev; struct xdma_channel *xchan; struct xdma_request *req; }; # # Prepare xDMA channel for a scatter-gather transfer. # METHOD int channel_prep_sg { device_t dev; struct xdma_channel *xchan; }; # # Query DMA engine driver for the amount of free entries # (descriptors) are available. # METHOD int channel_capacity { device_t dev; struct xdma_channel *xchan; uint32_t *capacity; }; # # Submit sglist list to DMA engine driver. # METHOD int channel_submit_sg { device_t dev; struct xdma_channel *xchan; struct xdma_sglist *sg; uint32_t sg_n; }; #ifdef FDT # # Notify driver we have machine-dependend data. # METHOD int ofw_md_data { device_t dev; pcell_t *cells; int ncells; void **data; }; #endif # # Allocate both virtual and harware channels. # METHOD int channel_alloc { device_t dev; struct xdma_channel *xchan; }; # # Free the real hardware channel. # METHOD int channel_free { device_t dev; struct xdma_channel *xchan; }; # # Begin, pause or terminate the channel operation. # METHOD int channel_control { device_t dev; struct xdma_channel *xchan; int cmd; }; # IOMMU interface # # pmap is initialized # METHOD int iommu_init { device_t dev; struct xdma_iommu *xio; }; # # pmap is released # METHOD int iommu_release { device_t dev; struct xdma_iommu *xio; }; # # Mapping entered # METHOD int iommu_enter { device_t dev; struct xdma_iommu *xio; vm_offset_t va; vm_offset_t pa; }; # # Mapping removed # METHOD int iommu_remove { device_t dev; struct xdma_iommu *xio; vm_offset_t va; }; diff --git a/sys/dts/Makefile b/sys/dts/Makefile index ae57a10819c7..6f771855ea54 100644 --- a/sys/dts/Makefile +++ b/sys/dts/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ SUBDIR=arm powerpc .include diff --git a/sys/dts/Makefile.inc b/sys/dts/Makefile.inc index bb6fef4bbd20..9aa907fd12d5 100644 --- a/sys/dts/Makefile.inc +++ b/sys/dts/Makefile.inc @@ -1,13 +1,12 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys test-dts: .for dts in ${DTS} @env MACHINE=`basename ${.CURDIR}` ${SYSDIR}/tools/fdt/make_dtb.sh ${SYSDIR} ${dts} /tmp .endfor test-dtso: .for dtso in ${DTSO} @env MACHINE=`basename ${.CURDIR}` ${SYSDIR}/tools/fdt/make_dtbo.sh ${SYSDIR} ${dtso} /tmp .endfor diff --git a/sys/dts/arm/Makefile b/sys/dts/arm/Makefile index 855f8847d514..fd0468739432 100644 --- a/sys/dts/arm/Makefile +++ b/sys/dts/arm/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ DTS!=ls ${.CURDIR}/*.dts all: test-dts .include diff --git a/sys/dts/arm/Makefile.inc b/sys/dts/arm/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/dts/arm/Makefile.inc +++ b/sys/dts/arm/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/dts/arm/overlays/Makefile b/sys/dts/arm/overlays/Makefile index cfc655929ef3..f3d08520a271 100644 --- a/sys/dts/arm/overlays/Makefile +++ b/sys/dts/arm/overlays/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ DTSO!=ls ${.CURDIR}/*.dtso all: test-dtso .include diff --git a/sys/dts/arm64/Makefile b/sys/dts/arm64/Makefile index 855f8847d514..fd0468739432 100644 --- a/sys/dts/arm64/Makefile +++ b/sys/dts/arm64/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ DTS!=ls ${.CURDIR}/*.dts all: test-dts .include diff --git a/sys/dts/arm64/Makefile.inc b/sys/dts/arm64/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/dts/arm64/Makefile.inc +++ b/sys/dts/arm64/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/dts/arm64/overlays/Makefile b/sys/dts/arm64/overlays/Makefile index cfc655929ef3..f3d08520a271 100644 --- a/sys/dts/arm64/overlays/Makefile +++ b/sys/dts/arm64/overlays/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ DTSO!=ls ${.CURDIR}/*.dtso all: test-dtso .include diff --git a/sys/dts/powerpc/Makefile b/sys/dts/powerpc/Makefile index 855f8847d514..fd0468739432 100644 --- a/sys/dts/powerpc/Makefile +++ b/sys/dts/powerpc/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ DTS!=ls ${.CURDIR}/*.dts all: test-dts .include diff --git a/sys/fs/cd9660/TODO b/sys/fs/cd9660/TODO index b8d7f3efebb9..6b91d0de0ee3 100644 --- a/sys/fs/cd9660/TODO +++ b/sys/fs/cd9660/TODO @@ -1,43 +1,42 @@ -# $FreeBSD$ 2) should understand Rock Ridge Yes, we have follows function. o Symbolic Link o Real Name(long name) o File Attribute o Time stamp o uid, gid o Devices o Relocated directories Except follows: o POSIX device number mapping There is some preliminary stuff in there that (ab-)uses the mknod system call, but this needs a writable filesystem 5) should have name translation enabled by mount flag Yes. we can disable the Rock Ridge Extension by follows option; "mount -t isofs -o -norrip /dev/cd0d /cdrom" 6) should run as a user process, and not take up kernel space (cdroms are slow) Not yet. 7) ECMA support. Not yet. we need not only a technical spec but also ECMA format cd-rom itself! 8) Character set change by SVD ( multi SVD support ) Not yet. We should also hack the other part of system as 8 bit clean. As far as I know, if you export the cdrom by NFS, the client can access the 8 bit clean (ie. Solaris Japanese with EUC code ) diff --git a/sys/geom/part/g_part_if.m b/sys/geom/part/g_part_if.m index 01f398aee152..29ba95f96aee 100644 --- a/sys/geom/part/g_part_if.m +++ b/sys/geom/part/g_part_if.m @@ -1,275 +1,274 @@ #- # Copyright (c) 2006-2009 Marcel Moolenaar # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include #include #include #include #include #include #include #include # The G_PART scheme interface. INTERFACE g_part; # Default implementations of methods. CODE { static void default_fullname(struct g_part_table *table, struct g_part_entry *entry, struct sbuf *sb, const char *pfx) { char buf[32]; sbuf_printf(sb, "%s%s%s", pfx, g_part_separator, G_PART_NAME(table, entry, buf, sizeof(buf))); } static struct g_provider * default_new_provider(struct g_part_table *table, struct g_geom *gp, struct g_part_entry *entry, const char *pfx) { struct g_provider *ret; struct sbuf *sb; sb = sbuf_new_auto(); G_PART_FULLNAME(table, entry, sb, pfx); sbuf_finish(sb); ret = g_new_providerf(gp, "%s", sbuf_data(sb)); sbuf_delete(sb); return (ret); } static void default_add_alias(struct g_part_table *table, struct g_provider *pp, struct g_part_entry *entry, const char *pfx) { struct sbuf *sb; sb = sbuf_new_auto(); G_PART_FULLNAME(table, entry, sb, pfx); sbuf_finish(sb); g_provider_add_alias(pp, "%s", sbuf_data(sb)); sbuf_delete(sb); } static int default_precheck(struct g_part_table *t __unused, enum g_part_ctl r __unused, struct g_part_parms *p __unused) { return (0); } static int default_resize(struct g_part_table *t __unused, struct g_part_entry *e __unused, struct g_part_parms *p __unused) { return (ENOSYS); } static int default_recover(struct g_part_table *t __unused) { return (ENOSYS); } static int default_ioctl(struct g_part_table *table __unused, struct g_provider *pp __unused, u_long cmd __unused, void *data __unused, int fflag __unused, struct thread *td __unused) { return (ENOIOCTL); } static int default_getattr(struct g_part_table *table __unused, struct g_part_entry *entry __unused, struct bio *bp __unused) { return (ENOIOCTL); } }; # add() - scheme specific processing for the add verb. METHOD int add { struct g_part_table *table; struct g_part_entry *entry; struct g_part_parms *gpp; }; # add_alias() - Create aliases for the partition's provider with the given # alias prefixes. METHOD void add_alias { struct g_part_table *table; struct g_provider *pp; struct g_part_entry *entry; const char *pfx; } DEFAULT default_add_alias; # bootcode() - scheme specific processing for the bootcode verb. METHOD int bootcode { struct g_part_table *table; struct g_part_parms *gpp; }; # create() - scheme specific processing for the create verb. METHOD int create { struct g_part_table *table; struct g_part_parms *gpp; }; # destroy() - scheme specific processing for the destroy verb. METHOD int destroy { struct g_part_table *table; struct g_part_parms *gpp; }; # dumpconf() METHOD void dumpconf { struct g_part_table *table; struct g_part_entry *entry; struct sbuf *sb; const char *indent; }; # dumpto() - return whether the partition can be used for kernel dumps. METHOD int dumpto { struct g_part_table *table; struct g_part_entry *entry; }; # fullname() - write the name of the given partition entry to the sbuf. METHOD void fullname { struct g_part_table *table; struct g_part_entry *entry; struct sbuf *sb; const char *pfx; } DEFAULT default_fullname; # ioctl() - implement historic ioctls, perhaps. METHOD int ioctl { struct g_part_table *table; struct g_provider *pp; u_long cmd; void *data; int fflag; struct thread *td; } DEFAULT default_ioctl; # modify() - scheme specific processing for the modify verb. METHOD int modify { struct g_part_table *table; struct g_part_entry *entry; struct g_part_parms *gpp; }; # new_provider() - Create the partition's provider(s). METHOD struct g_provider * new_provider { struct g_part_table *table; struct g_geom *gp; struct g_part_entry *entry; const char *pfx; } DEFAULT default_new_provider; # resize() - scheme specific processing for the resize verb. METHOD int resize { struct g_part_table *table; struct g_part_entry *entry; struct g_part_parms *gpp; } DEFAULT default_resize; # name() - return the name of the given partition entry. # Typical names are "p1", "s0" or "c". METHOD const char * name { struct g_part_table *table; struct g_part_entry *entry; char *buf; size_t bufsz; }; # precheck() - method to allow schemes to check the parameters given # to the mentioned ctl request. This only applies to the requests that # operate on a GEOM. In other words, it does not apply to the create # request. # It is allowed (intended actually) to change the parameters according # to the schemes needs before they are used. Returning an error will # terminate the request immediately. METHOD int precheck { struct g_part_table *table; enum g_part_ctl req; struct g_part_parms *gpp; } DEFAULT default_precheck; # probe() - probe the provider attached to the given consumer for the # existence of the scheme implemented by the G_PART interface handler. METHOD int probe { struct g_part_table *table; struct g_consumer *cp; }; # read() - read the on-disk partition table into memory. METHOD int read { struct g_part_table *table; struct g_consumer *cp; }; # recover() - scheme specific processing for the recover verb. METHOD int recover { struct g_part_table *table; } DEFAULT default_recover; # setunset() - set or unset partition entry attributes. METHOD int setunset { struct g_part_table *table; struct g_part_entry *entry; const char *attrib; unsigned int set; }; # type() - return a string representation of the partition type. # Preferably, the alias names. METHOD const char * type { struct g_part_table *table; struct g_part_entry *entry; char *buf; size_t bufsz; }; # write() - write the in-memory partition table to disk. METHOD int write { struct g_part_table *table; struct g_consumer *cp; }; # getattr() - get the specified attribute, if any METHOD int getattr { struct g_part_table *table; struct g_part_entry *entry; struct bio *bp; } DEFAULT default_getattr; diff --git a/sys/geom/raid/g_raid_md_if.m b/sys/geom/raid/g_raid_md_if.m index 3fcbab4b57ca..cd4c2376ddea 100644 --- a/sys/geom/raid/g_raid_md_if.m +++ b/sys/geom/raid/g_raid_md_if.m @@ -1,173 +1,172 @@ #- # Copyright (c) 2010 Alexander Motin # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include #include #include #include #include #include #include #include # The G_RAID metadata class interface. INTERFACE g_raid_md; HEADER { #define G_RAID_MD_TASTE_FAIL -1 #define G_RAID_MD_TASTE_EXISTING 0 #define G_RAID_MD_TASTE_NEW 1 }; # Default implementations of methods. CODE { static int g_raid_md_create_default(struct g_raid_md_object *md, struct g_class *mp, struct g_geom **gp) { return (G_RAID_MD_TASTE_FAIL); } static int g_raid_md_create_req_default(struct g_raid_md_object *md, struct g_class *mp, struct gctl_req *req, struct g_geom **gp) { return (G_RAID_MD_CREATE(md, mp, gp)); } static int g_raid_md_ctl_default(struct g_raid_md_object *md, struct gctl_req *req) { return (-1); } static int g_raid_md_volume_event_default(struct g_raid_md_object *md, struct g_raid_volume *vol, u_int event) { return (-1); } static int g_raid_md_free_disk_default(struct g_raid_md_object *md, struct g_raid_volume *vol) { return (0); } static int g_raid_md_free_volume_default(struct g_raid_md_object *md, struct g_raid_volume *vol) { return (0); } }; # create() - create new node from scratch. METHOD int create { struct g_raid_md_object *md; struct g_class *mp; struct g_geom **gp; } DEFAULT g_raid_md_create_default; # create_req() - create new node from scratch, with request argument. METHOD int create_req { struct g_raid_md_object *md; struct g_class *mp; struct gctl_req *req; struct g_geom **gp; } DEFAULT g_raid_md_create_req_default; # taste() - taste disk and, if needed, create new node. METHOD int taste { struct g_raid_md_object *md; struct g_class *mp; struct g_consumer *cp; struct g_geom **gp; }; # ctl() - user-level control commands handling method. METHOD int ctl { struct g_raid_md_object *md; struct gctl_req *req; } DEFAULT g_raid_md_ctl_default; # event() - events handling method. METHOD int event { struct g_raid_md_object *md; struct g_raid_disk *disk; u_int event; }; # volume_event() - events handling method. METHOD int volume_event { struct g_raid_md_object *md; struct g_raid_volume *vol; u_int event; } DEFAULT g_raid_md_volume_event_default; # write() - metadata write method. METHOD int write { struct g_raid_md_object *md; struct g_raid_volume *vol; struct g_raid_subdisk *sd; struct g_raid_disk *disk; }; # fail_disk() - mark disk as failed and remove it from use. METHOD int fail_disk { struct g_raid_md_object *md; struct g_raid_subdisk *sd; struct g_raid_disk *disk; }; # free_disk() - disk destructor. METHOD int free_disk { struct g_raid_md_object *md; struct g_raid_disk *disk; } DEFAULT g_raid_md_free_disk_default; # free_volume() - volume destructor. METHOD int free_volume { struct g_raid_md_object *md; struct g_raid_volume *vol; } DEFAULT g_raid_md_free_volume_default; # free() - destructor. METHOD int free { struct g_raid_md_object *md; }; diff --git a/sys/geom/raid/g_raid_tr_if.m b/sys/geom/raid/g_raid_tr_if.m index 8de09ba1eb56..c33cb37d5724 100644 --- a/sys/geom/raid/g_raid_tr_if.m +++ b/sys/geom/raid/g_raid_tr_if.m @@ -1,117 +1,116 @@ #- # Copyright (c) 2010 Alexander Motin # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include #include #include #include #include #include #include #include #include # The G_RAID transformation class interface. INTERFACE g_raid_tr; # Default implementations of methods. CODE { static int g_raid_tr_locked_default(struct g_raid_tr_object *tr, void *argp) { return (0); } }; HEADER { #define G_RAID_TR_TASTE_FAIL -1 #define G_RAID_TR_TASTE_SUCCEED 0 }; # taste() - volume taste method. METHOD int taste { struct g_raid_tr_object *tr; struct g_raid_volume *volume; }; # event() - events handling method. METHOD int event { struct g_raid_tr_object *tr; struct g_raid_subdisk *sd; u_int event; }; # start() - begin operation. METHOD int start { struct g_raid_tr_object *tr; }; # stop() - stop operation. METHOD int stop { struct g_raid_tr_object *tr; }; # iorequest() - manage forward transformation and generates requests to disks. METHOD void iostart { struct g_raid_tr_object *tr; struct bio *bp; }; # iodone() - manages backward transformation and reports completion status. METHOD void iodone { struct g_raid_tr_object *tr; struct g_raid_subdisk *sd; struct bio *bp; }; # kerneldump() - optimized for rebustness (simplified) kernel dumping routine. METHOD int kerneldump { struct g_raid_tr_object *tr; void *virtual; off_t offset; size_t length; } DEFAULT g_raid_tr_kerneldump_common; # locked() - callback method for lock(). METHOD int locked { struct g_raid_tr_object *tr; void *argp; } DEFAULT g_raid_tr_locked_default; # free() - destructor. METHOD int free { struct g_raid_tr_object *tr; }; # idle() - callback when the volume is idle for a while and the TR wants # to schedule some work for that idle period. METHOD int idle { struct g_raid_tr_object *tr; }; diff --git a/sys/i386/Makefile b/sys/i386/Makefile index fe6ac2bf41d9..bea7771aeb35 100644 --- a/sys/i386/Makefile +++ b/sys/i386/Makefile @@ -1,39 +1,38 @@ -# $FreeBSD$ # @(#)Makefile 8.1 (Berkeley) 6/11/93 # Makefile for i386 links, tags file # SYS is normally set in Make.tags.inc SYS=/sys TAGDIR= i386 .include "../kern/Make.tags.inc" all: @echo "make links or tags only" # Directories in which to place i386 tags links DI386= apm i386 include isa linux links:: -for i in ${COMMDIR1}; do \ (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done -for i in ${COMMDIR2}; do \ (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done -for i in ${DI386}; do \ (cd $$i && { rm -f tags; ln -s ../tags tags; }) done SI386= ${SYS}/i386/acpica/*.[ch] ${SYS}/i386/bios/*.[ch] \ ${SYS}/i386/i386/*.[ch] ${SYS}/i386/include/*.[ch] \ ${SYS}/i386/isa/*.[ch] ${SYS}/i386/linux/*.[ch] \ ${SYS}/i386/pci/*.[ch] AI386= ${SYS}/i386/i386/*.s tags:: -ctags -wdt ${COMM} ${SI386} egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ >> tags sort -o tags tags chmod 444 tags diff --git a/sys/i386/conf/DEFAULTS b/sys/i386/conf/DEFAULTS index 8ed95641af6f..28254ecb131d 100644 --- a/sys/i386/conf/DEFAULTS +++ b/sys/i386/conf/DEFAULTS @@ -1,35 +1,34 @@ # # DEFAULTS -- Default kernel configuration file for FreeBSD/i386 # -# $FreeBSD$ machine i386 options EARLY_AP_STARTUP # Bus support. device isa options ISAPNP # Pseudo devices. device mem # Memory and kernel memory devices device io # I/O device # UART chips on this platform device uart_ns8250 # Default partitioning schemes options GEOM_PART_BSD options GEOM_PART_EBR options GEOM_PART_MBR options GEOM_PART_GPT # Default congestion control algorithm options CC_CUBIC # include CUBIC congestion control # enable support for native hardware device atpic options NEW_PCIB options NETLINK # netlink(4) support diff --git a/sys/i386/conf/GENERIC b/sys/i386/conf/GENERIC index 877898777749..00932195efcd 100644 --- a/sys/i386/conf/GENERIC +++ b/sys/i386/conf/GENERIC @@ -1,350 +1,349 @@ # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ cpu I486_CPU cpu I586_CPU cpu I686_CPU ident GENERIC makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options VIMAGE # Subsystem virtualization, e.g. VNET options INET # InterNETworking options INET6 # IPv6 communications protocols options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 options ROUTE_MPATH # Multipath routing support options TCP_HHOOK # hhook(9) framework for TCP options TCP_OFFLOAD # TCP offload options SCTP_SUPPORT # Allow kldload of SCTP options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options QUOTA # Enable disk quotas for UFS options MD_ROOT # MD is a potential root device options NFSCL # Network Filesystem Client options NFSD # Network Filesystem Server options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as /, requires NFSCL options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options TMPFS # Efficient memory filesystem options GEOM_RAID # Soft RAID functionality. options GEOM_LABEL # Provides labelization options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options COMPAT_FREEBSD9 # Compatible with FreeBSD9 options COMPAT_FREEBSD10 # Compatible with FreeBSD10 options COMPAT_FREEBSD11 # Compatible with FreeBSD11 options COMPAT_FREEBSD12 # Compatible with FreeBSD12 options COMPAT_FREEBSD13 # Compatible with FreeBSD13 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KBD_INSTALL_CDEV # install a CDEV entry in /dev options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options AUDIT # Security event auditing options CAPABILITY_MODE # Capsicum capability mode options CAPABILITIES # Capsicum capabilities options MAC # TrustedBSD MAC Framework options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options INCLUDE_CONFIG_FILE # Include this file in kernel options RACCT # Resource accounting framework options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default options RCTL # Resource limits # Debugging support. Always need this: options KDB # Enable kernel debugger support. options KDB_TRACE # Print a stack trace for a panic. # For full debugger support use (turn off in stable branch): options DDB # Support DDB. options GDB # Support remote GDB. options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default # Kernel dump features. options EKCD # Support for encrypted kernel dumps options GZIO # gzip-compressed kernel and user dumps options ZSTDIO # zstd-compressed kernel and user dumps options DEBUGNET # debugnet networking options NETDUMP # netdump(4) client support options NETGDB # netgdb(4) client support # To make an SMP kernel, the next two lines are needed options SMP # Symmetric MultiProcessor Kernel device apic # I/O APIC # CPU frequency control device cpufreq # Bus support. device acpi device smbios device pci options PCI_HP # PCI-Express native HotPlug options PCI_IOV # PCI SR-IOV support # Floppy drives device fdc # ATA controllers device ahci # AHCI-compatible SATA controllers device ata # Legacy ATA/SATA controllers device mvs # Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA device siis # SiliconImage SiI3124/SiI3132/SiI3531 SATA # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices device hptiop # Highpoint RocketRaid 3xxx series device isp # Qlogic family #device ispfw # Firmware for QLogic HBAs- normally a module device mpt # LSI-Logic MPT-Fusion device mps # LSI-Logic MPT-Fusion 2 device mpr # LSI-Logic MPT-Fusion 3 device sym # NCR/Symbios Logic device isci # Intel C600 SAS controller device pvscsi # VMware PVSCSI # ATA/SCSI peripherals device scbus # SCSI bus (required for ATA/SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct ATA/SCSI access) device ses # Enclosure Services (SES and SAF-TE) #device ctl # CAM Target Layer # RAID controllers interfaced to the SCSI subsystem device arcmsr # Areca SATA II RAID device ciss # Compaq Smart RAID 5* device ips # IBM (Adaptec) ServeRAID device tws # LSI 3ware 9750 SATA+SAS 6Gb/s RAID controller # RAID controllers device aac # Adaptec FSA RAID device aacp # SCSI passthrough for aac (requires CAM) device aacraid # Adaptec by PMC RAID device ida # Compaq Smart RAID device mfi # LSI MegaRAID SAS device mlx # Mylex DAC960 family device mrsas # LSI/Avago MegaRAID SAS/SATA, 6Gb/s and 12Gb/s device pst # Promise Supertrak SX6000 # NVM Express (NVMe) support device nvme # base NVMe driver device nvd # expose NVMe namespace as disks, depends on nvme # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device kbdmux # keyboard multiplexer # syscons is the legacy console driver, resembling an SCO console device vga # VGA video card driver device splash # Splash screen and screen saver support device sc options SC_PIXEL_MODE # add support for the raster text mode # vt is the default video console driver device vt device vt_vga device vt_vbefb device agp # support several AGP chipsets # CardBus bridge support device cbb # CardBus (yenta) bridge device cardbus # CardBus (32-bit) bus # Serial (COM) ports device uart # Generic UART driver # Parallel port device ppc device ppbus # Parallel port bus (required) device lpt # Printer device ppi # Parallel port interface device #device vpo # Requires scbus and da device puc # Multi I/O cards and multi-channel UARTs # PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure device iflib device igc # Intel I225 2.5G Ethernet device em # Intel PRO/1000 Gigabit Ethernet Family device vmx # VMware VMXNET3 Ethernet # PCI Ethernet NICs. device bxe # Broadcom NetXtreme II BCM5771X/BCM578XX 10GbE device le # AMD Am7900 LANCE and Am79C9xx PCnet device ti # Alteon Networks Tigon I/II gigabit Ethernet # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support device ae # Attansic/Atheros L2 FastEthernet device age # Attansic/Atheros L1 Gigabit Ethernet device alc # Atheros AR8131/AR8132 Ethernet device ale # Atheros AR8121/AR8113/AR8114 Ethernet device bce # Broadcom BCM5706/BCM5708 Gigabit Ethernet device bfe # Broadcom BCM440x 10/100 Ethernet device bge # Broadcom BCM570xx Gigabit Ethernet device cas # Sun Cassini/Cassini+ and NS DP83065 Saturn device dc # DEC/Intel 21143 and various workalikes device et # Agere ET1310 10/100/Gigabit Ethernet device fxp # Intel EtherExpress PRO/100B (82557, 82558) device gem # Sun GEM/Sun ERI/Apple GMAC device jme # JMicron JMC250 Gigabit/JMC260 Fast Ethernet device lge # Level 1 LXT1001 gigabit Ethernet device msk # Marvell/SysKonnect Yukon II Gigabit Ethernet device nfe # nVidia nForce MCP on-board Ethernet device nge # NatSemi DP83820 gigabit Ethernet device re # RealTek 8139C+/8169/8169S/8110S device rl # RealTek 8129/8139 device sge # Silicon Integrated Systems SiS190/191 device sis # Silicon Integrated Systems SiS 900/SiS 7016 device sk # SysKonnect SK-984x & SK-982x gigabit Ethernet device ste # Sundance ST201 (D-Link DFE-550TX) device stge # Sundance/Tamarack TC9021 gigabit Ethernet device vge # VIA VT612x gigabit Ethernet device vr # VIA Rhine, Rhine II device vte # DM&P Vortex86 RDC R6040 Fast Ethernet device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # Wireless NIC cards device wlan # 802.11 support options IEEE80211_DEBUG # enable debug msgs options IEEE80211_SUPPORT_MESH # enable 802.11s draft support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm device ath # Atheros CardBus/PCI NICs device ath_hal # Atheros CardBus/PCI chip support options AH_AR5416_INTERRUPT_MITIGATION # AR5416 interrupt mitigation options ATH_ENABLE_11N # Enable 802.11n support for AR5416 and later device ath_rate_sample # SampleRate tx rate control for ath #device bwi # Broadcom BCM430x/BCM431x wireless NICs. #device bwn # Broadcom BCM43xx wireless NICs. device ipw # Intel 2100 wireless NICs. device iwi # Intel 2200BG/2225BG/2915ABG wireless NICs. device iwn # Intel 4965/1000/5000/6000 wireless NICs. device malo # Marvell Libertas wireless NICs. device mwl # Marvell 88W8363 802.11n wireless NICs. device ral # Ralink Technology RT2500 wireless NICs. device wpi # Intel 3945ABG wireless NICs. # Pseudo devices. device crypto # core crypto support device aesni # AES-NI OpenCrypto module device loop # Network loopback device padlock_rng # VIA Padlock RNG device rdrand_rng # Intel Bull Mountain RNG device ether # Ethernet support device vlan # 802.1Q VLAN support device tuntap # Packet tunnel. device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device firmware # firmware assist module # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # USB support options USB_DEBUG # enable debug msgs device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci # EHCI PCI->USB interface (USB 2.0) device xhci # XHCI PCI->USB interface (USB 3.0) device usb # USB Bus (required) device ukbd # Keyboard device umass # Disks/Mass storage - Requires scbus and da # Sound support device sound # Generic sound driver (required) device snd_cmi # CMedia CMI8338/CMI8738 device snd_csa # Crystal Semiconductor CS461x/428x device snd_emu10kx # Creative SoundBlaster Live! and Audigy device snd_es137x # Ensoniq AudioPCI ES137x device snd_hda # Intel High Definition Audio device snd_ich # Intel, NVidia and other ICH AC'97 Audio device snd_via8233 # VIA VT8233x Audio # MMC/SD device mmc # MMC/SD bus device mmcsd # MMC/SD memory card device sdhci # Generic PCI SD Host Controller # VirtIO support device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI device device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device # Linux KVM paravirtualization support device kvm_clock # KVM paravirtual clock driver # HyperV drivers and enhancement support # NOTE: HYPERV depends on hyperv. They must be added or removed together. options HYPERV # Kernel support for HyperV drivers device hyperv # HyperV drivers # Xen HVM Guest Optimizations # NOTE: XENHVM and xenpci interdepend. They must be added or removed # together. xentimer depends on XENHVM and isn't required. options XENHVM # Xen HVM kernel infrastructure device xenpci # Xen HVM Hypervisor services driver device xentimer # Xen x86 PV timer device # evdev interface options EVDEV_SUPPORT # evdev support in legacy drivers device evdev # input event device support device uinput # install /dev/uinput cdev # HID support options HID_DEBUG # enable debug msgs device hid # Generic HID support options IICHID_SAMPLING # Workaround missing GPIO INTR support diff --git a/sys/i386/conf/GENERIC-NODEBUG b/sys/i386/conf/GENERIC-NODEBUG index f0b3ecd818fd..64b9ecb8a332 100644 --- a/sys/i386/conf/GENERIC-NODEBUG +++ b/sys/i386/conf/GENERIC-NODEBUG @@ -1,32 +1,31 @@ # # GENERIC-NODEBUG -- WITNESS and INVARIANTS free kernel configuration file # for FreeBSD/i386 # # This configuration file removes several debugging options, including # WITNESS and INVARIANTS checking, which are known to have significant # performance impact on running systems. When benchmarking new features # this kernel should be used instead of the standard GENERIC. # This kernel configuration should never appear outside of the HEAD # of the FreeBSD tree. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ include GENERIC include "../../conf/std.nodebug" ident GENERIC-NODEBUG diff --git a/sys/i386/conf/GENERIC.hints b/sys/i386/conf/GENERIC.hints index ffd10a65e7f6..1928878880f7 100644 --- a/sys/i386/conf/GENERIC.hints +++ b/sys/i386/conf/GENERIC.hints @@ -1,42 +1,41 @@ -# $FreeBSD$ hint.fdc.0.at="isa" hint.fdc.0.port="0x3F0" hint.fdc.0.irq="6" hint.fdc.0.drq="2" hint.fd.0.at="fdc0" hint.fd.0.drive="0" hint.fd.1.at="fdc0" hint.fd.1.drive="1" hint.ata.0.at="isa" hint.ata.0.port="0x1F0" hint.ata.0.irq="14" hint.ata.1.at="isa" hint.ata.1.port="0x170" hint.ata.1.irq="15" hint.atkbdc.0.at="isa" hint.atkbdc.0.port="0x060" hint.atkbd.0.at="atkbdc" hint.atkbd.0.irq="1" hint.psm.0.at="atkbdc" hint.psm.0.irq="12" hint.sc.0.at="isa" hint.sc.0.flags="0x100" hint.apm.0.disabled="1" hint.apm.0.flags="0x20" hint.uart.0.at="isa" hint.uart.0.port="0x3F8" hint.uart.0.flags="0x10" hint.uart.0.irq="4" hint.uart.1.at="isa" hint.uart.1.port="0x2F8" hint.uart.1.irq="3" hint.ppc.0.at="isa" hint.ppc.0.irq="7" hint.atrtc.0.at="isa" hint.atrtc.0.port="0x70" hint.atrtc.0.irq="8" hint.attimer.0.at="isa" hint.attimer.0.port="0x40" hint.attimer.0.irq="0" hint.acpi_throttle.0.disabled="1" hint.p4tcc.0.disabled="1" diff --git a/sys/i386/conf/LINT b/sys/i386/conf/LINT index 9618f78944ab..41207eb63cb9 100644 --- a/sys/i386/conf/LINT +++ b/sys/i386/conf/LINT @@ -1,5 +1,4 @@ -# $FreeBSD$ include "../../conf/NOTES" include "../../x86/conf/NOTES" include NOTES diff --git a/sys/i386/conf/MINIMAL b/sys/i386/conf/MINIMAL index a2aab1660209..3d97f84058a9 100644 --- a/sys/i386/conf/MINIMAL +++ b/sys/i386/conf/MINIMAL @@ -1,156 +1,155 @@ # # MINIMAL -- Mostly Minimal kernel configuration file for FreeBSD/i386 # # Many definitions of minimal are possible. The one this file follows is # GENERIC, minus all functionality that can be replaced by loading kernel # modules. # # Exceptions: # o While UFS is buildable as a module, the current module lacks # some features (ACL, GJOURNAL) that GENERIC includes. # o acpi as a module has been reported flakey and not well tested, so # is included in the kernel. # o (non-loaded) random is included due to uncertainty... # o Many networking things are included # # For now, please run changes to these list past imp@freebsd.org # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ cpu I486_CPU cpu I586_CPU cpu I686_CPU ident MINIMAL makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking options INET6 # IPv6 communications protocols options TCP_OFFLOAD # TCP offload options SCTP_SUPPORT # Allow kldload of SCTP options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options QUOTA # Enable disk quotas for UFS options MD_ROOT # MD is a potential root device options GEOM_LABEL # Provides labelization options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options COMPAT_FREEBSD9 # Compatible with FreeBSD9 options COMPAT_FREEBSD10 # Compatible with FreeBSD10 options COMPAT_FREEBSD11 # Compatible with FreeBSD11 options COMPAT_FREEBSD12 # Compatible with FreeBSD12 options COMPAT_FREEBSD13 # Compatible with FreeBSD13 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KBD_INSTALL_CDEV # install a CDEV entry in /dev options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options AUDIT # Security event auditing options CAPABILITY_MODE # Capsicum capability mode options CAPABILITIES # Capsicum capabilities options MAC # TrustedBSD MAC Framework options KDTRACE_FRAME # Ensure frames are compiled in options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options INCLUDE_CONFIG_FILE # Include this file in kernel # Debugging support. Always need this: options KDB # Enable kernel debugger support. options KDB_TRACE # Print a stack trace for a panic. # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor Kernel device apic # CPU frequency control device cpufreq # Bus support. device acpi device smbios device pci # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device kbdmux # keyboard multiplexer # syscons is the legacy console driver, resembling an SCO console device vga # VGA video card driver device splash # Splash screen and screen saver support device sc options SC_PIXEL_MODE # add support for the raster text mode # vt is the default video console driver device vt device vt_vga device vt_efifb device vt_vbefb device agp # support several AGP chipsets # Serial (COM) ports device uart # Generic UART driver # Pseudo devices. device loop # Network loopback device padlock_rng # VIA Padlock RNG device rdrand_rng # Intel Bull Mountain RNG device ether # Ethernet support # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # VirtIO support device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI device device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_balloon # VirtIO Memory Balloon device # Linux KVM paravirtualization support device kvm_clock # KVM paravirtual clock driver # Xen HVM Guest Optimizations # NOTE: XENHVM depends on xenpci and xentimer. # They must be added or removed together. options XENHVM # Xen HVM kernel infrastructure device xenpci # Xen HVM Hypervisor services driver device xentimer # Xen x86 PV timer device # evdev interface options EVDEV_SUPPORT # evdev support in legacy drivers device evdev # input event device support device uinput # install /dev/uinput cdev diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES index 65218529e565..ce115b1640e0 100644 --- a/sys/i386/conf/NOTES +++ b/sys/i386/conf/NOTES @@ -1,894 +1,893 @@ # # NOTES -- Lines that can be cut/pasted into kernel and hints configs. # # This file contains machine dependent kernel configuration notes. For # machine independent notes, look in /sys/conf/NOTES. # -# $FreeBSD$ # # # Enable the kernel DTrace hooks which are required to load the DTrace # kernel modules. # options KDTRACE_HOOKS # DTrace core # NOTE: introduces CDDL-licensed components into the kernel #device dtrace # DTrace modules #device dtrace_profile #device dtrace_sdt #device dtrace_fbt #device dtrace_systrace #device dtrace_prototype #device dtnfscl #device dtmalloc # Alternatively include all the DTrace modules #device dtraceall ##################################################################### # SMP OPTIONS: # # The apic device enables the use of the I/O APIC for interrupt delivery. # The apic device can be used in both UP and SMP kernels, but is required # for SMP kernels. Thus, the apic device is not strictly an SMP option, # but it is a prerequisite for SMP. # # Notes: # # HTT CPUs should only be used if they are enabled in the BIOS. For # the ACPI case, ACPI only correctly tells us about any HTT CPUs if # they are enabled. However, most HTT systems do not list HTT CPUs # in the MP Table if they are enabled, thus we guess at the HTT CPUs # for the MP Table case. However, we shouldn't try to guess and use # these CPUs if HTT is disabled. Thus, HTT guessing is only enabled # for the MP Table if the user explicitly asks for it via the # MPTABLE_FORCE_HTT option. Do NOT use this option if you have HTT # disabled in your BIOS. # # IPI_PREEMPTION instructs the kernel to preempt threads running on other # CPUS if needed. Relies on the PREEMPTION option # Mandatory: device apic # I/O apic # Optional: options MPTABLE_FORCE_HTT # Enable HTT CPUs with the MP Table options IPI_PREEMPTION # Debugging options. # options COUNT_XINVLTLB_HITS # Counters for TLB events options COUNT_IPIS # Per-CPU IPI interrupt counters ##################################################################### # CPU OPTIONS # # You must specify at least one CPU (the one you intend to run on); # deleting the specification for CPUs you don't need to use may make # parts of the system run faster. # cpu I486_CPU cpu I586_CPU # aka Pentium(tm) cpu I686_CPU # aka Pentium Pro(tm) # # Options for CPU features. # # CPU_ATHLON_SSE_HACK tries to enable SSE instructions when the BIOS has # forgotten to enable them. # # CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning # CPU if CPU supports it. The default is double-clock mode on # BlueLightning CPU box. # # CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM # BlueLightning CPU. It works only with Cyrix FPU, and this option # should not be used with Intel FPU. # # CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1). # # CPU_CYRIX_NO_LOCK enables weak locking for the entire address space # of Cyrix 6x86 and 6x86MX CPUs by setting the NO_LOCK bit of CCR1. # Otherwise, the NO_LOCK bit of CCR1 is cleared. (NOTE 3) # # CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct # mapped mode. Default is 2-way set associative mode. # # CPU_DISABLE_5X86_LSSER disables load store serialize (i.e., enables # reorder). This option should not be used if you use memory mapped # I/O device(s). # # CPU_ELAN enables support for AMDs ElanSC520 CPU. # CPU_ELAN_PPS enables precision timestamp code. # CPU_ELAN_XTAL sets the clock crystal frequency in Hz. # # CPU_ENABLE_LONGRUN enables support for Transmeta Crusoe LongRun # technology which allows to restrict power consumption of the CPU by # using group of hw.crusoe.* sysctls. # # CPU_FASTER_5X86_FPU enables faster FPU exception handler. # # CPU_GEODE is for the SC1100 Geode embedded processor. This option # is necessary because the i8254 timecounter is toast. # # CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products # for i386 machines. # # CPU_IORT defines I/O clock delay time (NOTE 1). Default values of # I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively # (no clock delay). # # CPU_L2_LATENCY specifies the L2 cache latency value. This option is used # only when CPU_PPRO2CELERON is defined and Mendocino Celeron is detected. # The default value is 5. # # CPU_LOOP_EN prevents flushing the prefetch buffer if the destination # of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE # 1). # # CPU_PPRO2CELERON enables L2 cache of Mendocino Celeron CPUs. This option # is useful when you use Socket 8 to Socket 370 converter, because most Pentium # Pro BIOSs do not enable L2 cache of Mendocino Celeron CPUs. # # CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1). # # CPU_SOEKRIS enables support www.soekris.com hardware. # # CPU_SUSP_HLT enables suspend on HALT. If this option is set, CPU # enters suspend mode following execution of HALT instruction. # # CPU_UPGRADE_HW_CACHE eliminates unneeded cache flush instruction(s). # # CPU_WT_ALLOC enables write allocation on Cyrix 6x86/6x86MX and AMD # K5/K6/K6-2 CPUs. # # CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache # flush at hold state. # # CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs # without cache flush at hold state, and (2) write-back CPU cache on # Cyrix 6x86 whose revision < 2.7 (NOTE 2). # # NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY # Pentiums) from locking up when a LOCK CMPXCHG8B instruction is # executed. This option is only needed if I586_CPU is also defined, # and should be included for any non-Pentium CPU that defines it. # # NO_MEMORY_HOLE is an optimisation for systems with AMD K6 processors # which indicates that the 15-16MB range is *definitely* not being # occupied by an ISA memory hole. # # NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT, # CPU_LOOP_EN and CPU_RSTK_EN should not be used because of CPU bugs. # These options may crash your system. # # NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled # in write-through mode when revision < 2.7. If revision of Cyrix # 6x86 >= 2.7, CPU cache is always enabled in write-back mode. # # NOTE 3: This option may cause failures for software that requires # locked cycles in order to operate correctly. # options CPU_ATHLON_SSE_HACK options CPU_BLUELIGHTNING_3X options CPU_BLUELIGHTNING_FPU_OP_CACHE options CPU_BTB_EN options CPU_DIRECT_MAPPED_CACHE options CPU_DISABLE_5X86_LSSER options CPU_ELAN options CPU_ELAN_PPS options CPU_ELAN_XTAL=32768000 options CPU_ENABLE_LONGRUN options CPU_FASTER_5X86_FPU options CPU_GEODE options CPU_I486_ON_386 options CPU_IORT options CPU_L2_LATENCY=5 options CPU_LOOP_EN options CPU_PPRO2CELERON options CPU_RSTK_EN options CPU_SOEKRIS options CPU_SUSP_HLT options CPU_UPGRADE_HW_CACHE options CPU_WT_ALLOC options CYRIX_CACHE_WORKS options CYRIX_CACHE_REALLY_WORKS #options NO_F00F_HACK # Debug options options NPX_DEBUG # enable npx debugging # # PERFMON causes the driver for Pentium/Pentium Pro performance counters # to be compiled. See perfmon(4) for more information. # options PERFMON ##################################################################### # NETWORKING OPTIONS # # DEVICE_POLLING adds support for mixed interrupt-polling handling # of network device drivers, which has significant benefits in terms # of robustness to overloads and responsivity, as well as permitting # accurate scheduling of the CPU time between kernel network processing # and other activities. The drawback is a moderate (up to 1/HZ seconds) # potential increase in response times. # It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING # to achieve smoother behaviour. # Additionally, you can enable/disable polling at runtime with help of # the ifconfig(8) utility, and select the CPU fraction reserved to # userland with the sysctl variable kern.polling.user_frac # (default 50, range 0..100). # # Not all device drivers support this mode of operation at the time of # this writing. See polling(4) for more details. options DEVICE_POLLING # BPF_JITTER adds support for BPF just-in-time compiler. options BPF_JITTER # OpenFabrics Enterprise Distribution (Infiniband). options OFED options OFED_DEBUG_INIT # Sockets Direct Protocol options SDP options SDP_DEBUG # IP over Infiniband options IPOIB options IPOIB_DEBUG options IPOIB_CM ##################################################################### # CLOCK OPTIONS # Provide read/write access to the memory in the clock chip. device nvram # Access to rtc cmos via /dev/nvram ##################################################################### # MISCELLANEOUS DEVICES AND OPTIONS device speaker #Play IBM BASIC-style noises out your speaker envvar hint.speaker.0.at="isa" envvar hint.speaker.0.port="0x61" ##################################################################### # HARDWARE BUS CONFIGURATION # # ISA bus # device isa # # Options for `isa': # # AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A # interrupt controller. This saves about 0.7-1.25 usec for each interrupt. # This option breaks suspend/resume on some portables. # # AUTO_EOI_2 enables the `automatic EOI' feature for the slave 8259A # interrupt controller. This saves about 0.7-1.25 usec for each interrupt. # Automatic EOI is documented not to work for the slave with the # original i8259A, but it works for some clones and some integrated # versions. # # MAXMEM specifies the amount of RAM on the machine; if this is not # specified, FreeBSD will first read the amount of memory from the CMOS # RAM, so the amount of memory will initially be limited to 64MB or 16MB # depending on the BIOS. If the BIOS reports 64MB, a memory probe will # then attempt to detect the installed amount of RAM. If this probe # fails to detect >64MB RAM you will have to use the MAXMEM option. # The amount is in kilobytes, so for a machine with 128MB of RAM, it would # be 131072 (128 * 1024). # # BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to # reset the CPU for reboot. This is needed on some systems with broken # keyboard controllers. options AUTO_EOI_1 #options AUTO_EOI_2 options MAXMEM=(128*1024) #options BROKEN_KEYBOARD_RESET # # AGP GART support device agp # AGP debugging. options AGP_DEBUG ##################################################################### # HARDWARE DEVICE CONFIGURATION # To include support for VGA VESA video modes options VESA # Turn on extra debugging checks and output for VESA support. options VESA_DEBUG device dpms # DPMS suspend & resume via VESA BIOS # x86 real mode BIOS emulator, required by atkbdc/dpms/vesa options X86BIOS # # Hints for the non-optional Numeric Processing eXtension driver. envvar hint.npx.0.flags="0x0" envvar hint.npx.0.irq="13" # # `flags' for npx0: # 0x01 don't use the npx registers to optimize bcopy. # 0x02 don't use the npx registers to optimize bzero. # 0x04 don't use the npx registers to optimize copyin or copyout. # The npx registers are normally used to optimize copying and zeroing when # all of the following conditions are satisfied: # I586_CPU is an option # the cpu is an i586 (perhaps not a Pentium) # the probe for npx0 succeeds # INT 16 exception handling works. # Then copying and zeroing using the npx registers is normally 30-100% faster. # The flags can be used to control cases where it doesn't work or is slower. # Setting them at boot time using hints works right (the optimizations # are not used until later in the bootstrap when npx0 is attached). # Flag 0x08 automatically disables the i586 optimized routines. # # # Optional devices: # # PS/2 mouse device psm envvar hint.psm.0.at="atkbdc" envvar hint.psm.0.irq="12" # Options for psm: options PSM_HOOKRESUME #hook the system resume event, useful #for some laptops options PSM_RESETAFTERSUSPEND #reset the device at the resume event # The keyboard controller; it controls the keyboard and the PS/2 mouse. device atkbdc envvar hint.atkbdc.0.at="isa" envvar hint.atkbdc.0.port="0x060" # The AT keyboard device atkbd envvar hint.atkbd.0.at="atkbdc" envvar hint.atkbd.0.irq="1" # Options for atkbd: options ATKBD_DFLT_KEYMAP # specify the built-in keymap makeoptions ATKBD_DFLT_KEYMAP=fr.dvorak # `flags' for atkbd: # 0x01 Force detection of keyboard, else we always assume a keyboard # 0x02 Don't reset keyboard, useful for some newer ThinkPads # 0x03 Force detection and avoid reset, might help with certain # dockingstations # 0x04 Old-style (XT) keyboard support, useful for older ThinkPads # Video card driver for VGA adapters. device vga envvar hint.vga.0.at="isa" # Options for vga: # Try the following option if the mouse pointer is not drawn correctly # or font does not seem to be loaded properly. May cause flicker on # some systems. options VGA_ALT_SEQACCESS # If you can dispense with some vga driver features, you may want to # use the following options to save some memory. #options VGA_NO_FONT_LOADING # don't save/load font #options VGA_NO_MODE_CHANGE # don't change video modes # Older video cards may require this option for proper operation. options VGA_SLOW_IOACCESS # do byte-wide i/o's to TS and GDC regs # The following option probably won't work with the LCD displays. options VGA_WIDTH90 # support 90 column modes # Debugging. options VGA_DEBUG # vt(4) drivers. device vt_vga device vt_vbefb # Linear framebuffer driver for S3 VESA 1.2 cards. Works on top of VESA. device s3pci # 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support. This will create # the /dev/3dfx0 device to work with glide implementations. This should get # linked to /dev/3dfx and /dev/voodoo. Note that this is not the same as # the tdfx DRI module from XFree86 and is completely unrelated. # # To enable Linuxulator support, one must also load linux.ko and tdfx_linux.ko. device tdfx # Enable 3Dfx Voodoo support options IOMMU # Enable IOMMU support # # ACPI support using the Intel ACPI Component Architecture reference # implementation. # # ACPI_DEBUG enables the use of the debug.acpi.level and debug.acpi.layer # kernel environment variables to select initial debugging levels for the # Intel ACPICA code. (Note that the Intel code must also have USE_DEBUGGER # defined when it is built). device acpi options ACPI_DEBUG # ACPI WMI Mapping driver device acpi_wmi # ACPI Asus Extras (LCD backlight/brightness, video output, etc.) device acpi_asus # ACPI Fujitsu Extras (Buttons) device acpi_fujitsu # ACPI extras driver for HP laptops device acpi_hp # ACPI extras driver for IBM laptops device acpi_ibm # ACPI Panasonic Extras (LCD backlight/brightness, video output, etc.) device acpi_panasonic # ACPI Sony extra (LCD brightness) device acpi_sony # ACPI Toshiba Extras (LCD backlight/brightness, video output, etc.) device acpi_toshiba # ACPI Video Extensions (LCD backlight/brightness, video output, etc.) device acpi_video # ACPI Docking Station device acpi_dock # ACPI ASOC ATK0110 ASUSTeK AI Booster (voltage, temperature and fan sensors) device aibs # The cpufreq(4) driver provides support for non-ACPI CPU frequency control device cpufreq # # Network interfaces: # # bxe: Broadcom NetXtreme II (BCM5771X/BCM578XX) PCIe 10Gb Ethernet # adapters. # igc: Intel I225 2.5G Ethernet adapter # ipw: Intel PRO/Wireless 2100 IEEE 802.11 adapter # iwi: Intel PRO/Wireless 2200BG/2225BG/2915ABG IEEE 802.11 adapters # Requires the iwi firmware module # iwn: Intel Wireless WiFi Link 1000/105/135/2000/4965/5000/6000/6050 abgn # 802.11 network adapters # Requires the iwn firmware module # mthca: Mellanox HCA InfiniBand # mlx4ib: Mellanox ConnectX HCA InfiniBand # mlx4en: Mellanox ConnectX HCA Ethernet # nfe: nVidia nForce MCP on-board Ethernet Networking (BSD open source) # sbni: Granch SBNI12-xx ISA and PCI adapters # vmx: VMware VMXNET3 Ethernet (BSD open source) # wpi: Intel 3945ABG Wireless LAN controller # Requires the wpi firmware module # Order for ISA/EISA devices is important here device bxe # Broadcom NetXtreme II BCM5771X/BCM578XX 10GbE envvar hint.cs.0.at="isa" envvar hint.cs.0.port="0x300" envvar hint.ed.0.at="isa" envvar hint.ed.0.port="0x280" envvar hint.ed.0.irq="5" envvar hint.ed.0.maddr="0xd8000" device igc # Intel I225 2.5G Ethernet device ipw # Intel 2100 wireless NICs. device iwi # Intel 2200BG/2225BG/2915ABG wireless NICs. device iwn # Intel 4965/1000/5000/6000 wireless NICs. # Hint for the i386-only ISA front-end of le(4). envvar hint.le.0.at="isa" envvar hint.le.0.port="0x280" envvar hint.le.0.irq="10" envvar hint.le.0.drq="0" device mthca # Mellanox HCA InfiniBand device mlx4 # Shared code module between IB and Ethernet device mlx4ib # Mellanox ConnectX HCA InfiniBand device mlx4en # Mellanox ConnectX HCA Ethernet device nfe # nVidia nForce MCP on-board Ethernet device sbni envvar hint.sbni.0.at="isa" envvar hint.sbni.0.port="0x210" envvar hint.sbni.0.irq="0xefdead" envvar hint.sbni.0.flags="0" device vmx # VMware VMXNET3 Ethernet device wpi # Intel 3945ABG wireless NICs. # IEEE 802.11 adapter firmware modules # Intel PRO/Wireless 2100 firmware: # ipwfw: BSS/IBSS/monitor mode firmware # ipwbssfw: BSS mode firmware # ipwibssfw: IBSS mode firmware # ipwmonitorfw: Monitor mode firmware # Intel PRO/Wireless 2200BG/2225BG/2915ABG firmware: # iwifw: BSS/IBSS/monitor mode firmware # iwibssfw: BSS mode firmware # iwiibssfw: IBSS mode firmware # iwimonitorfw: Monitor mode firmware # Intel Wireless WiFi Link 4965/1000/5000/6000 series firmware: # iwnfw: Single module to support all devices # iwn1000fw: Specific module for the 1000 only # iwn105fw: Specific module for the 105 only # iwn135fw: Specific module for the 135 only # iwn2000fw: Specific module for the 2000 only # iwn2030fw: Specific module for the 2030 only # iwn4965fw: Specific module for the 4965 only # iwn5000fw: Specific module for the 5000 only # iwn5150fw: Specific module for the 5150 only # iwn6000fw: Specific module for the 6000 only # iwn6000g2afw: Specific module for the 6000g2a only # iwn6000g2bfw: Specific module for the 6000g2b only # iwn6050fw: Specific module for the 6050 only # wpifw: Intel 3945ABG Wireless LAN Controller firmware device iwifw device iwibssfw device iwiibssfw device iwimonitorfw device ipwfw device ipwbssfw device ipwibssfw device ipwmonitorfw device iwnfw device iwn1000fw device iwn105fw device iwn135fw device iwn2000fw device iwn2030fw device iwn4965fw device iwn5000fw device iwn5150fw device iwn6000fw device iwn6000g2afw device iwn6000g2bfw device iwn6050fw device wpifw # # Non-Transparent Bridge (NTB) drivers # device if_ntb # Virtual NTB network interface device ntb_transport # NTB packet transport driver device ntb # NTB hardware interface device ntb_hw_amd # AMD NTB hardware driver device ntb_hw_intel # Intel NTB hardware driver device ntb_hw_plx # PLX NTB hardware driver # # ATA raid adapters # device pst # # Areca 11xx and 12xx series of SATA II RAID controllers. # CAM is required. # device arcmsr # Areca SATA II RAID # # Adaptec FSA RAID controllers, including integrated DELL controllers, # the Dell PERC 2/QC and the HP NetRAID-4M device aac device aacp # SCSI Passthrough interface (optional, CAM required) # # Adaptec by PMC RAID controllers, Series 6/7/8 and upcoming families device aacraid # Container interface, CAM required # # Highpoint RocketRAID 27xx. device hpt27xx # # Highpoint RocketRAID 182x. device hptmv # # Highpoint DC7280 and R750. device hptnr # # Highpoint RocketRAID. Supports RR172x, RR222x, RR2240, RR232x, RR2340, # RR2210, RR174x, RR2522, RR231x, RR230x. device hptrr # # Highpoint RocketRaid 3xxx series SATA RAID device hptiop # # Intel integrated Memory Controller (iMC) SMBus controller # Sandybridge-Xeon, Ivybridge-Xeon, Haswell-Xeon, Broadwell-Xeon device imcsmb # # IBM (now Adaptec) ServeRAID controllers device ips # # Intel C600 (Patsburg) integrated SAS controller device isci options ISCI_LOGGING # enable debugging in isci HAL # # NVM Express (NVMe) support device nvme # base NVMe driver device nvd # expose NVMe namespaces as disks, depends on nvme # # Intel Volume Management Device (VMD) support device vmd # # PMC-Sierra SAS/SATA controller device pmspcv # # SafeNet crypto driver: can be moved to the MI NOTES as soon as # it's tested on a big-endian machine # device safe # SafeNet 1141 options SAFE_DEBUG # enable debugging support: hw.safe.debug options SAFE_RNDTEST # enable rndtest support # # glxiic is an I2C driver for the AMD Geode LX CS5536 System Management Bus # controller. Requires 'device iicbus'. # device glxiic # AMD Geode LX CS5536 System Management Bus # # glxsb is a driver for the Security Block in AMD Geode LX processors. # Requires 'device crypto'. # device glxsb # AMD Geode LX Security Block # # VirtIO support # # The virtio entry provides a generic bus for use by the device drivers. # It must be combined with an interface that communicates with the host. # Multiple such interfaces defined by the VirtIO specification. FreeBSD # only has support for PCI. Therefore, virtio_pci must be statically # compiled in or loaded as a module for the device drivers to function. # device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI Interface device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device device virtio_random # VirtIO Entropy device device virtio_console # VirtIO Console device # Linux KVM paravirtualization support device kvm_clock # KVM paravirtual clock driver # Google Virtual NIC device gve # Google Virtual NIC (gVNIC) driver options HYPERV device hyperv # HyperV drivers device hvhid # HyperV HID device ##################################################################### # # Miscellaneous hardware: # # ipmi: Intelligent Platform Management Interface # smapi: System Management Application Program Interface driver # smbios: DMI/SMBIOS entry point # vpd: Vital Product Data kernel interface # pbio: Parallel (8255 PPI) basic I/O (mode 0) port (e.g. Advantech PCL-724) # asmc: Apple System Management Controller # si: Specialix International SI/XIO or SX intelligent serial card driver # tpm: Trusted Platform Module # Notes on the Specialix SI/XIO driver: # The host card is memory, not IO mapped. # The Rev 1 host cards use a 64K chunk, on a 32K boundary. # The Rev 2 host cards use a 32K chunk, on a 32K boundary. # The cards can use an IRQ of 11, 12 or 15. # Notes on the Sony Programmable I/O controller # This is a temporary driver that should someday be replaced by something # that hooks into the ACPI layer. The device is hooked to the PIIX4's # General Device 10 decoder, which means you have to fiddle with PCI # registers to map it in, even though it is otherwise treated here as # an ISA device. At the moment, the driver polls, although the device # is capable of generating interrupts. It largely undocumented. # The port location in the hint is where you WANT the device to be # mapped. 0x10a0 seems to be traditional. At the moment the jogdial # is the only thing truly supported, but apparently a fair percentage # of the Vaio extra features are controlled by this device. device ipmi device smapi device smbios device vpd device pbio envvar hint.pbio.0.at="isa" envvar hint.pbio.0.port="0x360" device asmc device tpm device padlock_rng # VIA Padlock RNG device rdrand_rng # Intel Bull Mountain RNG device aesni # AES-NI OpenCrypto module device ossl # OpenSSL OpenCrypto module # # Laptop/Notebook options: # # See also: # apm under `Miscellaneous hardware' # above. device backlight # For older notebooks that signal a powerfail condition (external # power supply dropped, or battery state low) by issuing an NMI: options POWERFAIL_NMI # make it beep instead of panicing # # I2C Bus # # Philips i2c bus support is provided by the `iicbus' device. # # Supported interfaces: # pcf Philips PCF8584 ISA-bus controller # device pcf envvar hint.pcf.0.at="isa" envvar hint.pcf.0.port="0x320" envvar hint.pcf.0.irq="5" # # Hardware watchdog timers: # # ichwd: Intel ICH watchdog timer # amdsbwd: AMD SB7xx watchdog timer # viawd: VIA south bridge watchdog timer # wbwd: Winbond watchdog timer # itwd: ITE Super I/O watchdog timer # device ichwd device amdsbwd device viawd device wbwd device itwd # # Temperature sensors: # # coretemp: on-die sensor on Intel Core and newer CPUs # amdtemp: on-die sensor on AMD K8/K10/K11 CPUs # device coretemp device amdtemp # # CPU control pseudo-device. Provides access to MSRs, CPUID info and # microcode update feature. # device cpuctl # # SuperIO driver. # device superio # # System Management Bus (SMB) # options ENABLE_ALART # Control alarm on Intel intpm driver # # Set the number of PV entries per process. Increasing this can # stop panics related to heavy use of shared memory. However, that can # (combined with large amounts of physical memory) cause panics at # boot time due the kernel running out of VM space. # # If you're tweaking this, you might also want to increase the sysctls # "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target". # # The value below is the one more than the default. # options PMAP_SHPGPERPROC=201 # # Number of initial kernel page table pages used for early bootstrap. # This number should include enough pages to map the kernel, any # modules or other data loaded with the kernel by the loader, and data # structures allocated before the VM system is initialized such as the # vm_page_t array. Each page table page maps 4MB (2MB with PAE). # options NKPT=31 # # HID-over-I2C support # device iichid # HID-over-I2C support options IICHID_DEBUG # Enable HID-over-I2C debug messages options IICHID_SAMPLING # Workaround missing GPIO INTR support ##################################################################### # ABI Emulation # Enable (32-bit) a.out binary support options COMPAT_AOUT ##################################################################### # VM OPTIONS # KSTACK_PAGES is the number of memory pages to assign to the kernel # stack of each thread. options KSTACK_PAGES=5 # Enable detailed accounting by the PV entry allocator. options PV_STATS ##################################################################### # More undocumented options for linting. # Note that documenting these are not considered an affront. options KBDIO_DEBUG=2 options KBD_MAXRETRY=4 options KBD_MAXWAIT=6 options KBD_RESETDELAY=201 options PSM_DEBUG=1 options TIMER_FREQ=((14318182+6)/12) options VM_KMEM_SIZE options VM_KMEM_SIZE_MAX options VM_KMEM_SIZE_SCALE ##################################################################### # Items broken on i386 that are generally available elsewhere # Device uses bus_read_8 and friends, so can't work. Remove it from lint. nodevice bnxt diff --git a/sys/i386/conf/PAE b/sys/i386/conf/PAE index 07dfec58fd8e..a39d32d77106 100644 --- a/sys/i386/conf/PAE +++ b/sys/i386/conf/PAE @@ -1,21 +1,20 @@ # # PAE -- Generic kernel configuration file for FreeBSD/i386 PAE # -# $FreeBSD$ include GENERIC ident PAE-GENERIC # To make a PAE kernel, the next option is needed options PAE # Physical Address Extensions Kernel # The following drivers don't build with PAE enabled. makeoptions WITHOUT_MODULES="ctl dpt hptmv ida" nodevice dpt nodevice hptmv nodevice ida # The following drivers don't work with PAE enabled. makeoptions WITHOUT_MODULES+="pst" nodevice pst diff --git a/sys/i386/linux/Makefile b/sys/i386/linux/Makefile index 662c7f8fc42f..e0d74bb46c78 100644 --- a/sys/i386/linux/Makefile +++ b/sys/i386/linux/Makefile @@ -1,7 +1,6 @@ # Makefile for syscall tables # -# $FreeBSD$ GENERATED_PREFIX= linux_ .include "../../conf/sysent.mk" diff --git a/sys/i386/linux/syscalls.conf b/sys/i386/linux/syscalls.conf index a47f80444c2a..b46b9e500553 100644 --- a/sys/i386/linux/syscalls.conf +++ b/sys/i386/linux/syscalls.conf @@ -1,12 +1,11 @@ -# $FreeBSD$ sysnames="linux_syscalls.c" sysproto="linux_proto.h" sysproto_h=_LINUX_SYSPROTO_H_ syshdr="linux_syscall.h" syssw="linux_sysent.c" sysmk="/dev/null" syscallprefix="LINUX_SYS_" switchname="linux_sysent" namesname="linux_syscallnames" systrace="linux_systrace_args.c" compat_set="" diff --git a/sys/isa/isa_if.m b/sys/isa/isa_if.m index dc64fc568b94..b97e589855ce 100644 --- a/sys/isa/isa_if.m +++ b/sys/isa/isa_if.m @@ -1,72 +1,71 @@ #- # Copyright (c) 1999 Doug Rabson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE isa; # # Add a Plug-and-play configuration to the device. Configurations with # a lower priority are preferred. # METHOD int add_config { device_t dev; device_t child; int priority; struct isa_config *config; }; # # Register a function which can be called to configure a device with # a given set of resources. The function will be called with a struct # isa_config representing the desired configuration and a flag to # state whether the device should be enabled. # METHOD void set_config_callback { device_t dev; device_t child; isa_config_cb *fn; void *arg; }; # # A helper method for implementing probe methods for PnP compatible # drivers. The driver calls this method with a list of PnP ids and # descriptions and it returns zero if one of the ids matches or ENXIO # otherwise. # # If the device is not plug-and-play compatible, this method returns # ENOENT, allowing the caller to fall back to heuristic probing # techniques. # METHOD int pnp_probe { device_t dev; device_t child; struct isa_pnp_id *ids; }; diff --git a/sys/kern/Make.tags.inc b/sys/kern/Make.tags.inc index 23a85150c19a..5909350f55c7 100644 --- a/sys/kern/Make.tags.inc +++ b/sys/kern/Make.tags.inc @@ -1,89 +1,88 @@ -# $FreeBSD$ # @(#)Make.tags.inc 8.1 (Berkeley) 6/11/93 SYS?= ${.CURDIR}/.. # Common files for "make tags", included by the Makefile for each # architecture. # Put the /sys/sys include files at the end so that subroutine definitions # win when there is a struct tag with the same name (e.g., vmmeter). The # better solution would be for ctags to generate "struct vmmeter" tags. COMM= ${SYS}/sys/vnode.h \ ${SYS}/dev/alc/*.[ch] \ ${SYS}/dev/iicbus/*.[ch] \ ${SYS}/dev/isp/*.[ch] \ ${SYS}/dev/ppbus/*.[ch] \ ${SYS}/dev/smbus/*.[ch] \ ${SYS}/fs/autofs/*.[ch] \ ${SYS}/fs/cd9660/*.[ch] \ ${SYS}/fs/cuse/*.[ch] \ ${SYS}/fs/deadfs/*.[ch] \ ${SYS}/fs/devfs/*.[ch] \ ${SYS}/fs/ext2fs/*.[ch] \ ${SYS}/fs/fdescfs/*.[ch] \ ${SYS}/fs/fifofs/*.[ch] \ ${SYS}/fs/fuse/*.[ch] \ ${SYS}/fs/msdosfs/*.[ch] \ ${SYS}/fs/nfs/*.[ch] \ ${SYS}/fs/nfsclient/*.[ch] \ ${SYS}/fs/nfsserver/*.[ch] \ ${SYS}/fs/nullfs/*.[ch] \ ${SYS}/fs/procfs/*.[ch] \ ${SYS}/fs/pseudofs/*.[ch] \ ${SYS}/fs/smbfs/*.[ch] \ ${SYS}/fs/tmpfs/*.[ch] \ ${SYS}/fs/udf/*.[ch] \ ${SYS}/fs/unionfs/*.[ch] \ ${SYS}/geom/*.[ch] \ ${SYS}/kern/*.[ch] \ ${SYS}/net/*.[ch] \ ${SYS}/netinet/*.[ch] \ ${SYS}/netinet6/*.[ch] \ ${SYS}/netipsec/*.[ch] \ ${SYS}/ddb/*.[ch] \ ${SYS}/ufs/ffs/*.[ch] \ ${SYS}/ufs/ufs/*.[ch] \ ${SYS}/vm/*.[ch] \ ${SYS}/sys/*.[ch] COMMDIR1= ${SYS}/conf \ ${SYS}/geom \ ${SYS}/kern \ ${SYS}/net \ ${SYS}/netinet \ ${SYS}/netinet6 \ ${SYS}/netipsec \ ${SYS}/ddb \ ${SYS}/vm \ ${SYS}/sys COMMDIR2= ${SYS}/dev/alc \ ${SYS}/dev/iicbus \ ${SYS}/dev/isp \ ${SYS}/dev/md \ ${SYS}/dev/ppbus \ ${SYS}/dev/smbus \ ${SYS}/fs/autofs \ ${SYS}/fs/cd9660 \ ${SYS}/fs/cuse \ ${SYS}/fs/deadfs \ ${SYS}/fs/devfs \ ${SYS}/fs/ext2fs \ ${SYS}/fs/fdescfs \ ${SYS}/fs/fifofs \ ${SYS}/fs/fuse \ ${SYS}/fs/msdosfs \ ${SYS}/fs/nfs \ ${SYS}/fs/nfsclient \ ${SYS}/fs/nfsserver \ ${SYS}/fs/nullfs \ ${SYS}/fs/procfs \ ${SYS}/fs/pseudofs \ ${SYS}/fs/smbfs \ ${SYS}/fs/tmpfs \ ${SYS}/fs/udf \ ${SYS}/fs/unionfs \ ${SYS}/ufs/ffs \ ${SYS}/ufs/ufs diff --git a/sys/kern/Makefile b/sys/kern/Makefile index 453a6d8251c1..839ad83b02e4 100644 --- a/sys/kern/Makefile +++ b/sys/kern/Makefile @@ -1,14 +1,13 @@ # @(#)Makefile 8.2 (Berkeley) 3/21/94 -# $FreeBSD$ # # Makefile for init_sysent SYSENT_CONF= GENERATED= init_sysent.c \ syscalls.c \ systrace_args.c \ ${SYSDIR}/sys/syscall.h \ ${SYSDIR}/sys/syscall.mk \ ${SYSDIR}/sys/sysproto.h .include "../conf/sysent.mk" diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m index 6fc73a5732de..7bd08fb713f8 100644 --- a/sys/kern/bus_if.m +++ b/sys/kern/bus_if.m @@ -1,962 +1,961 @@ #- # Copyright (c) 1998-2004 Doug Rabson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include /** * @defgroup BUS bus - KObj methods for drivers of devices with children * @brief A set of methods required device drivers that support * child devices. * @{ */ INTERFACE bus; # # Default implementations of some methods. # CODE { static struct resource * null_alloc_resource(device_t dev, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) { return (0); } static int null_remap_intr(device_t bus, device_t dev, u_int irq) { if (dev != NULL) return (BUS_REMAP_INTR(dev, NULL, irq)); return (ENXIO); } static device_t null_add_child(device_t bus, int order, const char *name, int unit) { panic("bus_add_child is not implemented"); } static int null_reset_post(device_t bus, device_t dev) { return (0); } static int null_reset_prepare(device_t bus, device_t dev) { return (0); } }; /** * @brief Print a description of a child device * * This is called from system code which prints out a description of a * device. It should describe the attachment that the child has with * the parent. For instance the TurboLaser bus prints which node the * device is attached to. See bus_generic_print_child() for more * information. * * @param _dev the device whose child is being printed * @param _child the child device to describe * * @returns the number of characters output. */ METHOD int print_child { device_t _dev; device_t _child; } DEFAULT bus_generic_print_child; /** * @brief Print a notification about an unprobed child device. * * Called for each child device that did not succeed in probing for a * driver. * * @param _dev the device whose child was being probed * @param _child the child device which failed to probe */ METHOD void probe_nomatch { device_t _dev; device_t _child; }; /** * @brief Read the value of a bus-specific attribute of a device * * This method, along with BUS_WRITE_IVAR() manages a bus-specific set * of instance variables of a child device. The intention is that * each different type of bus defines a set of appropriate instance * variables (such as ports and irqs for ISA bus etc.) * * This information could be given to the child device as a struct but * that makes it hard for a bus to add or remove variables without * forcing an edit and recompile for all drivers which may not be * possible for vendor supplied binary drivers. * * This method copies the value of an instance variable to the * location specified by @p *_result. * * @param _dev the device whose child was being examined * @param _child the child device whose instance variable is * being read * @param _index the instance variable to read * @param _result a location to receive the instance variable * value * * @retval 0 success * @retval ENOENT no such instance variable is supported by @p * _dev */ METHOD int read_ivar { device_t _dev; device_t _child; int _index; uintptr_t *_result; }; /** * @brief Write the value of a bus-specific attribute of a device * * This method sets the value of an instance variable to @p _value. * * @param _dev the device whose child was being updated * @param _child the child device whose instance variable is * being written * @param _index the instance variable to write * @param _value the value to write to that instance variable * * @retval 0 success * @retval ENOENT no such instance variable is supported by @p * _dev * @retval EINVAL the instance variable was recognised but * contains a read-only value */ METHOD int write_ivar { device_t _dev; device_t _child; int _indx; uintptr_t _value; }; /** * @brief Notify a bus that a child was deleted * * Called at the beginning of device_delete_child() to allow the parent * to teardown any bus-specific state for the child. * * @param _dev the device whose child is being deleted * @param _child the child device which is being deleted */ METHOD void child_deleted { device_t _dev; device_t _child; }; /** * @brief Notify a bus that a child was detached * * Called after the child's DEVICE_DETACH() method to allow the parent * to reclaim any resources allocated on behalf of the child. * * @param _dev the device whose child changed state * @param _child the child device which changed state */ METHOD void child_detached { device_t _dev; device_t _child; }; /** * @brief Notify a bus that a new driver was added * * Called when a new driver is added to the devclass which owns this * bus. The generic implementation of this method attempts to probe and * attach any un-matched children of the bus. * * @param _dev the device whose devclass had a new driver * added to it * @param _driver the new driver which was added */ METHOD void driver_added { device_t _dev; driver_t *_driver; } DEFAULT bus_generic_driver_added; /** * @brief Create a new child device * * For buses which use use drivers supporting DEVICE_IDENTIFY() to * enumerate their devices, this method is used to create new * device instances. The new device will be added after the last * existing child with the same order. Implementations of bus_add_child * call device_add_child_ordered to add the child and often add * a suitable ivar to the device specific to that bus. * * @param _dev the bus device which will be the parent of the * new child device * @param _order a value which is used to partially sort the * children of @p _dev - devices created using * lower values of @p _order appear first in @p * _dev's list of children * @param _name devclass name for new device or @c NULL if not * specified * @param _unit unit number for new device or @c -1 if not * specified */ METHOD device_t add_child { device_t _dev; u_int _order; const char *_name; int _unit; } DEFAULT null_add_child; /** * @brief Rescan the bus * * This method is called by a parent bridge or devctl to trigger a bus * rescan. The rescan should delete devices no longer present and * enumerate devices that have newly arrived. * * @param _dev the bus device */ METHOD int rescan { device_t _dev; } DEFAULT bus_null_rescan; /** * @brief Allocate a system resource * * This method is called by child devices of a bus to allocate resources. * The types are defined in ; the meaning of the * resource-ID field varies from bus to bus (but @p *rid == 0 is always * valid if the resource type is). If a resource was allocated and the * caller did not use the RF_ACTIVE to specify that it should be * activated immediately, the caller is responsible for calling * BUS_ACTIVATE_RESOURCE() when it actually uses the resource. * * @param _dev the parent device of @p _child * @param _child the device which is requesting an allocation * @param _type the type of resource to allocate * @param _rid a pointer to the resource identifier * @param _start hint at the start of the resource range - pass * @c 0 for any start address * @param _end hint at the end of the resource range - pass * @c ~0 for any end address * @param _count hint at the size of range required - pass @c 1 * for any size * @param _flags any extra flags to control the resource * allocation - see @c RF_XXX flags in * for details * * @returns the resource which was allocated or @c NULL if no * resource could be allocated */ METHOD struct resource * alloc_resource { device_t _dev; device_t _child; int _type; int *_rid; rman_res_t _start; rman_res_t _end; rman_res_t _count; u_int _flags; } DEFAULT null_alloc_resource; /** * @brief Activate a resource * * Activate a resource previously allocated with * BUS_ALLOC_RESOURCE(). This may enable decoding of this resource in a * device for instance. It will also establish a mapping for the resource * unless RF_UNMAPPED was set when allocating the resource. * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _type the type of resource * @param _rid the resource identifier * @param _r the resource to activate */ METHOD int activate_resource { device_t _dev; device_t _child; int _type; int _rid; struct resource *_r; }; /** * @brief Map a resource * * Allocate a mapping for a range of an active resource. The mapping * is described by a struct resource_map object. This may for instance * map a memory region into the kernel's virtual address space. * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _type the type of resource * @param _r the resource to map * @param _args optional attributes of the mapping * @param _map the mapping */ METHOD int map_resource { device_t _dev; device_t _child; int _type; struct resource *_r; struct resource_map_request *_args; struct resource_map *_map; } DEFAULT bus_generic_map_resource; /** * @brief Unmap a resource * * Release a mapping previously allocated with * BUS_MAP_RESOURCE(). This may for instance unmap a memory region * from the kernel's virtual address space. * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _type the type of resource * @param _r the resource * @param _map the mapping to release */ METHOD int unmap_resource { device_t _dev; device_t _child; int _type; struct resource *_r; struct resource_map *_map; } DEFAULT bus_generic_unmap_resource; /** * @brief Deactivate a resource * * Deactivate a resource previously allocated with * BUS_ALLOC_RESOURCE(). * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _type the type of resource * @param _rid the resource identifier * @param _r the resource to deactivate */ METHOD int deactivate_resource { device_t _dev; device_t _child; int _type; int _rid; struct resource *_r; }; /** * @brief Adjust a resource * * Adjust the start and/or end of a resource allocated by * BUS_ALLOC_RESOURCE. At least part of the new address range must overlap * with the existing address range. If the successful, the resource's range * will be adjusted to [start, end] on return. * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _type the type of resource * @param _res the resource to adjust * @param _start the new starting address of the resource range * @param _end the new ending address of the resource range */ METHOD int adjust_resource { device_t _dev; device_t _child; int _type; struct resource *_res; rman_res_t _start; rman_res_t _end; }; /** * @brief translate a resource value * * Give a bus driver the opportunity to translate resource ranges. If * successful, the host's view of the resource starting at @p _start is * returned in @p _newstart, otherwise an error is returned. * * @param _dev the device associated with the resource * @param _type the type of resource * @param _start the starting address of the resource range * @param _newstart the new starting address of the resource range */ METHOD int translate_resource { device_t _dev; int _type; rman_res_t _start; rman_res_t *_newstart; } DEFAULT bus_generic_translate_resource; /** * @brief Release a resource * * Free a resource allocated by the BUS_ALLOC_RESOURCE. The @p _rid * value must be the same as the one returned by BUS_ALLOC_RESOURCE() * (which is not necessarily the same as the one the client passed). * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _type the type of resource * @param _rid the resource identifier * @param _r the resource to release */ METHOD int release_resource { device_t _dev; device_t _child; int _type; int _rid; struct resource *_res; }; /** * @brief Install an interrupt handler * * This method is used to associate an interrupt handler function with * an irq resource. When the interrupt triggers, the function @p _intr * will be called with the value of @p _arg as its single * argument. The value returned in @p *_cookiep is used to cancel the * interrupt handler - the caller should save this value to use in a * future call to BUS_TEARDOWN_INTR(). * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _irq the resource representing the interrupt * @param _flags a set of bits from enum intr_type specifying * the class of interrupt * @param _intr the function to call when the interrupt * triggers * @param _arg a value to use as the single argument in calls * to @p _intr * @param _cookiep a pointer to a location to receive a cookie * value that may be used to remove the interrupt * handler */ METHOD int setup_intr { device_t _dev; device_t _child; struct resource *_irq; int _flags; driver_filter_t *_filter; driver_intr_t *_intr; void *_arg; void **_cookiep; }; /** * @brief Uninstall an interrupt handler * * This method is used to disassociate an interrupt handler function * with an irq resource. The value of @p _cookie must be the value * returned from a previous call to BUS_SETUP_INTR(). * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _irq the resource representing the interrupt * @param _cookie the cookie value returned when the interrupt * was originally registered */ METHOD int teardown_intr { device_t _dev; device_t _child; struct resource *_irq; void *_cookie; }; /** * @brief Suspend an interrupt handler * * This method is used to mark a handler as suspended in the case * that the associated device is powered down and cannot be a source * for the, typically shared, interrupt. * The value of @p _irq must be the interrupt resource passed * to a previous call to BUS_SETUP_INTR(). * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _irq the resource representing the interrupt */ METHOD int suspend_intr { device_t _dev; device_t _child; struct resource *_irq; } DEFAULT bus_generic_suspend_intr; /** * @brief Resume an interrupt handler * * This method is used to clear suspended state of a handler when * the associated device is powered up and can be an interrupt source * again. * The value of @p _irq must be the interrupt resource passed * to a previous call to BUS_SETUP_INTR(). * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _irq the resource representing the interrupt */ METHOD int resume_intr { device_t _dev; device_t _child; struct resource *_irq; } DEFAULT bus_generic_resume_intr; /** * @brief Define a resource which can be allocated with * BUS_ALLOC_RESOURCE(). * * This method is used by some buses (typically ISA) to allow a * driver to describe a resource range that it would like to * allocate. The resource defined by @p _type and @p _rid is defined * to start at @p _start and to include @p _count indices in its * range. * * @param _dev the parent device of @p _child * @param _child the device which owns the resource * @param _type the type of resource * @param _rid the resource identifier * @param _start the start of the resource range * @param _count the size of the resource range */ METHOD int set_resource { device_t _dev; device_t _child; int _type; int _rid; rman_res_t _start; rman_res_t _count; }; /** * @brief Describe a resource * * This method allows a driver to examine the range used for a given * resource without actually allocating it. * * @param _dev the parent device of @p _child * @param _child the device which owns the resource * @param _type the type of resource * @param _rid the resource identifier * @param _start the address of a location to receive the start * index of the resource range * @param _count the address of a location to receive the size * of the resource range */ METHOD int get_resource { device_t _dev; device_t _child; int _type; int _rid; rman_res_t *_startp; rman_res_t *_countp; }; /** * @brief Delete a resource. * * Use this to delete a resource (possibly one previously added with * BUS_SET_RESOURCE()). * * @param _dev the parent device of @p _child * @param _child the device which owns the resource * @param _type the type of resource * @param _rid the resource identifier */ METHOD void delete_resource { device_t _dev; device_t _child; int _type; int _rid; }; /** * @brief Return a struct resource_list. * * Used by drivers which use bus_generic_rl_alloc_resource() etc. to * implement their resource handling. It should return the resource * list of the given child device. * * @param _dev the parent device of @p _child * @param _child the device which owns the resource list */ METHOD struct resource_list * get_resource_list { device_t _dev; device_t _child; } DEFAULT bus_generic_get_resource_list; /** * @brief Is the hardware described by @p _child still attached to the * system? * * This method should return 0 if the device is not present. It * should return -1 if it is present. Any errors in determining * should be returned as a normal errno value. Client drivers are to * assume that the device is present, even if there is an error * determining if it is there. Buses are to try to avoid returning * errors, but newcard will return an error if the device fails to * implement this method. * * @param _dev the parent device of @p _child * @param _child the device which is being examined */ METHOD int child_present { device_t _dev; device_t _child; } DEFAULT bus_generic_child_present; /** * @brief Returns the pnp info for this device. * * Return it as a string, appended to @p _sb * * The string must be formatted as a space-separated list of * name=value pairs. Names may only contain alphanumeric characters, * underscores ('_') and hyphens ('-'). Values can contain any * non-whitespace characters. Values containing whitespace can be * quoted with double quotes ('"'). Double quotes and backslashes in * quoted values can be escaped with backslashes ('\'). * * @param _dev the parent device of @p _child * @param _child the device which is being examined * @param _sb sbuf for results string */ METHOD int child_pnpinfo { device_t _dev; device_t _child; struct sbuf *_sb; } DEFAULT bus_generic_child_pnpinfo; /** * @brief Returns the location for this device. * * Return it as a string, appended to @p _sb * * The string must be formatted as a space-separated list of * name=value pairs. Names may only contain alphanumeric characters, * underscores ('_') and hyphens ('-'). Values can contain any * non-whitespace characters. Values containing whitespace can be * quoted with double quotes ('"'). Double quotes and backslashes in * quoted values can be escaped with backslashes ('\'). * * @param _dev the parent device of @p _child * @param _child the device which is being examined * @param _sb sbuf for results string */ METHOD int child_location { device_t _dev; device_t _child; struct sbuf *_sb; } DEFAULT bus_generic_child_location; /** * @brief Allow drivers to request that an interrupt be bound to a specific * CPU. * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _irq the resource representing the interrupt * @param _cpu the CPU to bind the interrupt to */ METHOD int bind_intr { device_t _dev; device_t _child; struct resource *_irq; int _cpu; } DEFAULT bus_generic_bind_intr; /** * @brief Allow (bus) drivers to specify the trigger mode and polarity * of the specified interrupt. * * @param _dev the bus device * @param _irq the interrupt number to modify * @param _trig the trigger mode required * @param _pol the interrupt polarity required */ METHOD int config_intr { device_t _dev; int _irq; enum intr_trigger _trig; enum intr_polarity _pol; } DEFAULT bus_generic_config_intr; /** * @brief Allow drivers to associate a description with an active * interrupt handler. * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource * @param _irq the resource representing the interrupt * @param _cookie the cookie value returned when the interrupt * was originally registered * @param _descr the description to associate with the interrupt */ METHOD int describe_intr { device_t _dev; device_t _child; struct resource *_irq; void *_cookie; const char *_descr; } DEFAULT bus_generic_describe_intr; /** * @brief Notify a (bus) driver about a child that the hints mechanism * believes it has discovered. * * The bus is responsible for then adding the child in the right order * and discovering other things about the child. The bus driver is * free to ignore this hint, to do special things, etc. It is all up * to the bus driver to interpret. * * This method is only called in response to the parent bus asking for * hinted devices to be enumerated. * * @param _dev the bus device * @param _dname the name of the device w/o unit numbers * @param _dunit the unit number of the device */ METHOD void hinted_child { device_t _dev; const char *_dname; int _dunit; }; /** * @brief Returns bus_dma_tag_t for use w/ devices on the bus. * * @param _dev the parent device of @p _child * @param _child the device to which the tag will belong */ METHOD bus_dma_tag_t get_dma_tag { device_t _dev; device_t _child; } DEFAULT bus_generic_get_dma_tag; /** * @brief Returns bus_space_tag_t for use w/ devices on the bus. * * @param _dev the parent device of @p _child * @param _child the device to which the tag will belong */ METHOD bus_space_tag_t get_bus_tag { device_t _dev; device_t _child; } DEFAULT bus_generic_get_bus_tag; /** * @brief Allow the bus to determine the unit number of a device. * * @param _dev the parent device of @p _child * @param _child the device whose unit is to be wired * @param _name the name of the device's new devclass * @param _unitp a pointer to the device's new unit value */ METHOD void hint_device_unit { device_t _dev; device_t _child; const char *_name; int *_unitp; }; /** * @brief Notify a bus that the bus pass level has been changed * * @param _dev the bus device */ METHOD void new_pass { device_t _dev; } DEFAULT bus_generic_new_pass; /** * @brief Notify a bus that specified child's IRQ should be remapped. * * @param _dev the bus device * @param _child the child device * @param _irq the irq number */ METHOD int remap_intr { device_t _dev; device_t _child; u_int _irq; } DEFAULT null_remap_intr; /** * @brief Suspend a given child * * @param _dev the parent device of @p _child * @param _child the device to suspend */ METHOD int suspend_child { device_t _dev; device_t _child; } DEFAULT bus_generic_suspend_child; /** * @brief Resume a given child * * @param _dev the parent device of @p _child * @param _child the device to resume */ METHOD int resume_child { device_t _dev; device_t _child; } DEFAULT bus_generic_resume_child; /** * @brief Get the VM domain handle for the given bus and child. * * @param _dev the bus device * @param _child the child device * @param _domain a pointer to the bus's domain handle identifier */ METHOD int get_domain { device_t _dev; device_t _child; int *_domain; } DEFAULT bus_generic_get_domain; /** * @brief Request a set of CPUs * * @param _dev the bus device * @param _child the child device * @param _op type of CPUs to request * @param _setsize the size of the set passed in _cpuset * @param _cpuset a pointer to a cpuset to receive the requested * set of CPUs */ METHOD int get_cpus { device_t _dev; device_t _child; enum cpu_sets _op; size_t _setsize; struct _cpuset *_cpuset; } DEFAULT bus_generic_get_cpus; /** * @brief Prepares the given child of the bus for reset * * Typically bus detaches or suspends children' drivers, and then * calls this method to save bus-specific information, for instance, * PCI config space, which is damaged by reset. * * The bus_helper_reset_prepare() helper is provided to ease * implementing bus reset methods. * * @param _dev the bus device * @param _child the child device */ METHOD int reset_prepare { device_t _dev; device_t _child; } DEFAULT null_reset_prepare; /** * @brief Restores the child operations after the reset * * The bus_helper_reset_post() helper is provided to ease * implementing bus reset methods. * * @param _dev the bus device * @param _child the child device */ METHOD int reset_post { device_t _dev; device_t _child; } DEFAULT null_reset_post; /** * @brief Performs reset of the child * * @param _dev the bus device * @param _child the child device * @param _flags DEVF_RESET_ flags */ METHOD int reset_child { device_t _dev; device_t _child; int _flags; }; /** * @brief Gets child's specific property * * The bus_get_property can be used to access device * specific properties stored on the bus. If _propvalue * is NULL or _size is 0, then method only returns size * of the property. * * @param _dev the bus device * @param _child the child device * @param _propname property name * @param _propvalue property value destination * @param _size property value size * * @returns size of property if successful otherwise -1 */ METHOD ssize_t get_property { device_t _dev; device_t _child; const char *_propname; void *_propvalue; size_t _size; device_property_type_t type; } DEFAULT bus_generic_get_property; /** * @brief Gets a child's full path to the device * * The get_device_path method retrieves a device's * full path to the device using one of several * locators present in the system. * * @param _bus the bus device * @param _child the child device * @param _locator locator name * @param _sb buffer loaction string */ METHOD int get_device_path { device_t _bus; device_t _child; const char *_locator; struct sbuf *_sb; } DEFAULT bus_generic_get_device_path; diff --git a/sys/kern/clock_if.m b/sys/kern/clock_if.m index cb1179aed203..3d3adbc37068 100644 --- a/sys/kern/clock_if.m +++ b/sys/kern/clock_if.m @@ -1,45 +1,44 @@ #- # Copyright (c) 2001 by Thomas Moestl . # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ #include #include INTERFACE clock; # Interface for clock drivers. This is inspired by the NetBSD device-independent # clock code (by Gordon W. Ross). # An EINVAL error return from this call signifies that the clock has an illegal # setting. METHOD int gettime { device_t dev; struct timespec *ts; }; METHOD int settime { device_t dev; struct timespec *ts; }; diff --git a/sys/kern/cpufreq_if.m b/sys/kern/cpufreq_if.m index 8b1213e2b3d8..c69bb788cf41 100644 --- a/sys/kern/cpufreq_if.m +++ b/sys/kern/cpufreq_if.m @@ -1,100 +1,99 @@ # # Copyright (c) 2004 Nate Lawson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE cpufreq; HEADER { struct cf_level; struct cf_setting; }; # cpufreq interface methods # # Set the current CPU frequency level. # METHOD int set { device_t dev; const struct cf_level *level; int priority; }; # # Get the current active level. # METHOD int get { device_t dev; struct cf_level *level; }; # # Get the current possible levels, based on all drivers. # METHOD int levels { device_t dev; struct cf_level *levels; int *count; }; # Individual frequency driver methods # # Set an individual driver's setting. # METHOD int drv_set { device_t dev; const struct cf_setting *set; }; # # Get an individual driver's setting. # METHOD int drv_get { device_t dev; struct cf_setting *set; }; # # Get the settings supported by a driver. # METHOD int drv_settings { device_t dev; struct cf_setting *sets; int *count; }; # # Get an individual driver's type. # METHOD int drv_type { device_t dev; int *type; }; diff --git a/sys/kern/device_if.m b/sys/kern/device_if.m index e58d39d68178..c02e5a46f326 100644 --- a/sys/kern/device_if.m +++ b/sys/kern/device_if.m @@ -1,361 +1,360 @@ #- # Copyright (c) 1998-2004 Doug Rabson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include /** * @defgroup DEVICE device - KObj methods for all device drivers * @brief A basic set of methods required for all device drivers. * * The device interface is used to match devices to drivers during * autoconfiguration and provides methods to allow drivers to handle * system-wide events such as suspend, resume or shutdown. * @{ */ INTERFACE device; # Needed for timestamping device probe/attach calls HEADER { #include } # # Default implementations of some methods. # CODE { static int null_shutdown(device_t dev) { return 0; } static int null_suspend(device_t dev) { return 0; } static int null_resume(device_t dev) { return 0; } static int null_quiesce(device_t dev) { return 0; } static void * null_register(device_t dev) { return NULL; } }; /** * @brief Probe to see if a device matches a driver. * * Users should not call this method directly. Normally, this * is called via device_probe_and_attach() to select a driver * calling the DEVICE_PROBE() of all candidate drivers and attach * the winning driver (if any) to the device. * * This function is used to match devices to device drivers. * Typically, the driver will examine the device to see if * it is suitable for this driver. This might include checking * the values of various device instance variables or reading * hardware registers. * * In some cases, there may be more than one driver available * which can be used for a device (for instance there might * be a generic driver which works for a set of many types of * device and a more specific driver which works for a subset * of devices). Because of this, a driver should not assume * that it will be the driver that attaches to the device even * if it returns a success status from DEVICE_PROBE(). In particular, * a driver must free any resources which it allocated during * the probe before returning. The return value of DEVICE_PROBE() * is used to elect which driver is used - the driver which returns * the largest non-error value wins the election and attaches to * the device. Common non-error values are described in the * DEVICE_PROBE(9) manual page. * * If a driver matches the hardware, it should set the device * description string using device_set_desc() or * device_set_desc_copy(). This string is used to generate an * informative message when DEVICE_ATTACH() is called. * * As a special case, if a driver returns zero, the driver election * is cut short and that driver will attach to the device * immediately. This should rarely be used. * * For example, a probe method for a PCI device driver might look * like this: * * @code * int * foo_probe(device_t dev) * { * if (pci_get_vendor(dev) == FOOVENDOR && * pci_get_device(dev) == FOODEVICE) { * device_set_desc(dev, "Foo device"); * return (BUS_PROBE_DEFAULT); * } * return (ENXIO); * } * @endcode * * To include this method in a device driver, use a line like this * in the driver's method list: * * @code * KOBJMETHOD(device_probe, foo_probe) * @endcode * * @param dev the device to probe * * @retval 0 if this is the only possible driver for this * device * @retval negative if the driver can match this device - the * least negative value is used to select the * driver * @retval ENXIO if the driver does not match the device * @retval positive if some kind of error was detected during * the probe, a regular unix error code should * be returned to indicate the type of error * @see DEVICE_ATTACH(), pci_get_vendor(), pci_get_device() */ PROLOG { TSENTER2(device_get_name(dev)); } EPILOG { TSEXIT2(device_get_name(dev)); } METHOD int probe { device_t dev; }; /** * @brief Allow a device driver to detect devices not otherwise enumerated. * * The DEVICE_IDENTIFY() method is used by some drivers (e.g. the ISA * bus driver) to help populate the bus device with a useful set of * child devices, normally by calling the BUS_ADD_CHILD() method of * the parent device. For instance, the ISA bus driver uses several * special drivers, including the isahint driver and the pnp driver to * create child devices based on configuration hints and PnP bus * probes respectively. * * Many bus drivers which support true plug-and-play do not need to * use this method at all since child devices can be discovered * automatically without help from child drivers. * * To include this method in a device driver, use a line like this * in the driver's method list: * * @code * KOBJMETHOD(device_identify, foo_identify) * @endcode * * @param driver the driver whose identify method is being called * @param parent the parent device to use when adding new children */ STATICMETHOD void identify { driver_t *driver; device_t parent; }; /** * @brief Attach a device to a device driver * * Normally only called via device_probe_and_attach(), this is called * when a driver has succeeded in probing against a device. * This method should initialise the hardware and allocate other * system resources (e.g. devfs entries) as required. * * To include this method in a device driver, use a line like this * in the driver's method list: * * @code * KOBJMETHOD(device_attach, foo_attach) * @endcode * * @param dev the device to probe * * @retval 0 success * @retval non-zero if some kind of error was detected during * the attach, a regular unix error code should * be returned to indicate the type of error * @see DEVICE_PROBE() */ PROLOG { TSENTER2(device_get_name(dev)); } EPILOG { TSEXIT2(device_get_name(dev)); } METHOD int attach { device_t dev; }; /** * @brief Detach a driver from a device. * * This can be called if the user is replacing the * driver software or if a device is about to be physically removed * from the system (e.g. for removable hardware such as USB or PCCARD). * * To include this method in a device driver, use a line like this * in the driver's method list: * * @code * KOBJMETHOD(device_detach, foo_detach) * @endcode * * @param dev the device to detach * * @retval 0 success * @retval non-zero the detach could not be performed, e.g. if the * driver does not support detaching. * * @see DEVICE_ATTACH() */ METHOD int detach { device_t dev; }; /** * @brief Called during system shutdown. * * This method allows drivers to detect when the system is being shut down. * Some drivers need to use this to place their hardware in a consistent * state before rebooting the computer. * * To include this method in a device driver, use a line like this * in the driver's method list: * * @code * KOBJMETHOD(device_shutdown, foo_shutdown) * @endcode */ METHOD int shutdown { device_t dev; } DEFAULT null_shutdown; /** * @brief This is called by the power-management subsystem when a * suspend has been requested by the user or by some automatic * mechanism. * * This gives drivers a chance to veto the suspend or save their * configuration before power is removed. * * To include this method in a device driver, use a line like this in * the driver's method list: * * @code * KOBJMETHOD(device_suspend, foo_suspend) * @endcode * * @param dev the device being suspended * * @retval 0 success * @retval non-zero an error occurred while attempting to prepare the * device for suspension * * @see DEVICE_RESUME() */ METHOD int suspend { device_t dev; } DEFAULT null_suspend; /** * @brief This is called when the system resumes after a suspend. * * To include this method in a device driver, use a line like this * in the driver's method list: * * @code * KOBJMETHOD(device_resume, foo_resume) * @endcode * * @param dev the device being resumed * * @retval 0 success * @retval non-zero an error occurred while attempting to restore the * device from suspension * * @see DEVICE_SUSPEND() */ METHOD int resume { device_t dev; } DEFAULT null_resume; /** * @brief This is called when the driver is asked to quiesce itself. * * The driver should arrange for the orderly shutdown of this device. * All further access to the device should be curtailed. Soon there * will be a request to detach, but there won't necessarily be one. * * To include this method in a device driver, use a line like this * in the driver's method list: * * @code * KOBJMETHOD(device_quiesce, foo_quiesce) * @endcode * * @param dev the device being quiesced * * @retval 0 success * @retval non-zero an error occurred while attempting to quiesce the * device * * @see DEVICE_DETACH() */ METHOD int quiesce { device_t dev; } DEFAULT null_quiesce; /** * @brief This is called when the driver is asked to register handlers. * * * To include this method in a device driver, use a line like this * in the driver's method list: * * @code * KOBJMETHOD(device_register, foo_register) * @endcode * * @param dev the device for which handlers are being registered * * @retval NULL method not implemented * @retval non-NULL a pointer to implementation specific static driver state * */ METHOD void * register { device_t dev; } DEFAULT null_register; diff --git a/sys/kern/genassym.sh b/sys/kern/genassym.sh index 999090f22d0e..e17c1642ecc7 100644 --- a/sys/kern/genassym.sh +++ b/sys/kern/genassym.sh @@ -1,72 +1,71 @@ #!/bin/sh -# $FreeBSD$ usage() { echo "usage: genassym [-o outfile] objfile" exit 1 } work() { ${NM:='nm'} ${NMFLAGS} "$1" | ${AWK:='awk'} ' / C .*sign$/ { sign = substr($1, length($1) - 3, 4) sub("^0*", "", sign) if (sign != "") sign = "-" } / C .*w0$/ { w0 = substr($1, length($1) - 3, 4) } / C .*w1$/ { w1 = substr($1, length($1) - 3, 4) } / C .*w2$/ { w2 = substr($1, length($1) - 3, 4) } / C .*w3$/ { w3 = substr($1, length($1) - 3, 4) w = w3 w2 w1 w0 sub("^0*", "", w) if (w == "") w = "0" hex = "" if (w != "0") hex = "0x" sub("w3$", "", $3) # This still has minor problems representing INT_MIN, etc. # E.g., # with 32-bit 2''s complement ints, this prints -0x80000000, # which has the wrong type (unsigned int). printf("#define\t%s\t%s%s%s\n", $3, sign, hex, w) } ' } # #MAIN PROGGRAM # use_outfile="no" while getopts "o:" option do case "$option" in o) outfile="$OPTARG" use_outfile="yes";; *) usage;; esac done shift $((OPTIND - 1)) case $# in 1) ;; *) usage;; esac if [ "$use_outfile" = "yes" ] then work "$1" 3>"$outfile" >&3 3>&- else work "$1" fi diff --git a/sys/kern/genoffset.sh b/sys/kern/genoffset.sh index 0caeabf0ca59..fda27998ca79 100644 --- a/sys/kern/genoffset.sh +++ b/sys/kern/genoffset.sh @@ -1,100 +1,99 @@ #!/bin/sh # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2000, Bruce Evans # Copyright (c) 2018, Jeff Roberson # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ usage() { echo "usage: genoffset [-o outfile] objfile" exit 1 } work() ( local last off x1 x2 x3 struct field type lastoff lasttype echo "#ifndef _OFFSET_INC_" echo "#define _OFFSET_INC_" echo "#if !defined(GENOFFSET) && (!defined(KLD_MODULE) || defined(KLD_TIED))" last= temp=$(mktemp -d genoffset.XXXXXXXXXX) trap "rm -rf ${temp}" EXIT # Note: we need to print symbol values in decimal so the numeric sort works ${NM:='nm'} ${NMFLAGS} -t d "$1" | grep __assym_offset__ | sed -e 's/__/ /g' | sort -k 4 -k 1 -n | while read off x1 x2 struct field type x3; do off=$(echo "$off" | sed -E 's/^0+//') if [ "$last" != "$struct" ]; then if [ -n "$last" ]; then echo "};" fi echo "struct ${struct}_lite {" last=$struct printf "%b" "\tu_char\tpad_${field}[${off}];\n" else printf "%b" "\tu_char\tpad_${field}[${off} - (${lastoff} + sizeof(${lasttype}))];\n" fi printf "%b" "\t${type}\t${field};\n" lastoff="$off" lasttype="$type" echo "_SA(${struct}, ${field}, ${off});" >> "$temp/asserts" done echo "};" echo "#define _SA(s,f,o) _Static_assert(__builtin_offsetof(struct s ## _lite, f) == o, \\" printf '\t"struct "#s"_lite field "#f" not at offset "#o)\n' cat "$temp/asserts" echo "#undef _SA" echo "#endif" echo "#endif" ) # #MAIN PROGGRAM # use_outfile="no" while getopts "o:" option do case "$option" in o) outfile="$OPTARG" use_outfile="yes";; *) usage;; esac done shift $((OPTIND - 1)) case $# in 1) ;; *) usage;; esac if [ "$use_outfile" = "yes" ] then work "$1" 3>"$outfile" >&3 3>&- else work "$1" fi diff --git a/sys/kern/linker_if.m b/sys/kern/linker_if.m index 524f786ccac8..0722390d4e20 100644 --- a/sys/kern/linker_if.m +++ b/sys/kern/linker_if.m @@ -1,157 +1,156 @@ #- # Copyright (c) 2000 Doug Rabson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE linker; # # Lookup a symbol in the file's symbol table. If the symbol is not # found then return ENOENT, otherwise zero. # METHOD int lookup_symbol { linker_file_t file; const char* name; c_linker_sym_t* symp; }; METHOD int lookup_debug_symbol { linker_file_t file; const char* name; c_linker_sym_t* symp; }; METHOD int symbol_values { linker_file_t file; c_linker_sym_t sym; linker_symval_t* valp; }; METHOD int debug_symbol_values { linker_file_t file; c_linker_sym_t sym; linker_symval_t* valp; }; METHOD int search_symbol { linker_file_t file; caddr_t value; c_linker_sym_t* symp; long* diffp; }; # # Call the callback with each specified function defined in the file. # Stop and return the error if the callback returns an error. # METHOD int each_function_name { linker_file_t file; linker_function_name_callback_t callback; void* opaque; }; # # Call the callback with each specified function and it's value # defined in the file. # Stop and return the error if the callback returns an error. # METHOD int each_function_nameval { linker_file_t file; linker_function_nameval_callback_t callback; void* opaque; }; # # Search for a linker set in a file. Return a pointer to the first # entry (which is itself a pointer), and the number of entries. # "stop" points to the entry beyond the last valid entry. # If count, start or stop are NULL, they are not returned. # METHOD int lookup_set { linker_file_t file; const char* name; void*** start; void*** stop; int* count; }; # # Unload a file, releasing dependencies and freeing storage. # METHOD void unload { linker_file_t file; }; # # Load CTF data if necessary and if there is a .SUNW_ctf section # in the ELF file, returning info in the linker CTF structure. # METHOD int ctf_get { linker_file_t file; linker_ctf_t *lc; }; # # Get the symbol table, returning it in **symtab. Return the # number of symbols, otherwise zero. # METHOD long symtab_get { linker_file_t file; const Elf_Sym **symtab; }; # # Get the string table, returning it in *strtab. Return the # size (in bytes) of the string table, otherwise zero. # METHOD long strtab_get { linker_file_t file; caddr_t *strtab; }; # # Load a file, returning the new linker_file_t in *result. If # the class does not recognise the file type, zero should be # returned, without modifying *result. If the file is # recognised, the file should be loaded, *result set to the new # file and zero returned. If some other error is detected an # appropriate errno should be returned. # STATICMETHOD int load_file { linker_class_t cls; const char* filename; linker_file_t* result; }; STATICMETHOD int link_preload { linker_class_t cls; const char* filename; linker_file_t* result; }; METHOD int link_preload_finish { linker_file_t file; }; diff --git a/sys/kern/msi_if.m b/sys/kern/msi_if.m index cb354379535f..3d3abde21315 100644 --- a/sys/kern/msi_if.m +++ b/sys/kern/msi_if.m @@ -1,102 +1,101 @@ #- # Copyright (c) 2016 The FreeBSD Foundation # # This software was developed by Andrew Turner under # sponsorship from the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # INTERFACE msi; HEADER { #include #include struct intr_irqsrc; }; # # Default implementations of some methods. # CODE { static int iommu_init(device_t dev, device_t child, struct iommu_domain **domain) { *domain = NULL; return (0); } static void iommu_deinit(device_t dev, device_t child) { } }; METHOD int alloc_msi { device_t dev; device_t child; int count; int maxcount; device_t *pic; struct intr_irqsrc **srcs; }; METHOD int release_msi { device_t dev; device_t child; int count; struct intr_irqsrc **srcs; }; METHOD int alloc_msix { device_t dev; device_t child; device_t *pic; struct intr_irqsrc **src; }; METHOD int release_msix { device_t dev; device_t child; struct intr_irqsrc *src; }; METHOD int map_msi { device_t dev; device_t child; struct intr_irqsrc *src; uint64_t *addr; uint32_t *data; }; METHOD int iommu_init { device_t dev; device_t child; struct iommu_domain **domain; } DEFAULT iommu_init; METHOD void iommu_deinit { device_t dev; device_t child; } DEFAULT iommu_deinit; diff --git a/sys/kern/pic_if.m b/sys/kern/pic_if.m index 1787b06d6544..53117e4b15f7 100644 --- a/sys/kern/pic_if.m +++ b/sys/kern/pic_if.m @@ -1,174 +1,173 @@ #- # Copyright (c) 2015-2016 Svatopluk Kraus # Copyright (c) 2015-2016 Michal Meloun # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include #include INTERFACE pic; CODE { static int dflt_pic_bind_intr(device_t dev, struct intr_irqsrc *isrc) { return (EOPNOTSUPP); } static int null_pic_activate_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, struct intr_map_data *data) { return (0); } static int null_pic_deactivate_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, struct intr_map_data *data) { return (0); } static int null_pic_setup_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, struct intr_map_data *data) { return (0); } static int null_pic_teardown_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, struct intr_map_data *data) { return (0); } static void null_pic_init_secondary(device_t dev) { } static void null_pic_ipi_send(device_t dev, cpuset_t cpus, u_int ipi) { } static int dflt_pic_ipi_setup(device_t dev, u_int ipi, struct intr_irqsrc *isrc) { return (EOPNOTSUPP); } }; METHOD int activate_intr { device_t dev; struct intr_irqsrc *isrc; struct resource *res; struct intr_map_data *data; } DEFAULT null_pic_activate_intr; METHOD int bind_intr { device_t dev; struct intr_irqsrc *isrc; } DEFAULT dflt_pic_bind_intr; METHOD void disable_intr { device_t dev; struct intr_irqsrc *isrc; }; METHOD void enable_intr { device_t dev; struct intr_irqsrc *isrc; }; METHOD int map_intr { device_t dev; struct intr_map_data *data; struct intr_irqsrc **isrcp; }; METHOD int deactivate_intr { device_t dev; struct intr_irqsrc *isrc; struct resource *res; struct intr_map_data *data; } DEFAULT null_pic_deactivate_intr; METHOD int setup_intr { device_t dev; struct intr_irqsrc *isrc; struct resource *res; struct intr_map_data *data; } DEFAULT null_pic_setup_intr; METHOD int teardown_intr { device_t dev; struct intr_irqsrc *isrc; struct resource *res; struct intr_map_data *data; } DEFAULT null_pic_teardown_intr; METHOD void post_filter { device_t dev; struct intr_irqsrc *isrc; }; METHOD void post_ithread { device_t dev; struct intr_irqsrc *isrc; }; METHOD void pre_ithread { device_t dev; struct intr_irqsrc *isrc; }; METHOD void init_secondary { device_t dev; } DEFAULT null_pic_init_secondary; METHOD void ipi_send { device_t dev; struct intr_irqsrc *isrc; cpuset_t cpus; u_int ipi; } DEFAULT null_pic_ipi_send; METHOD int ipi_setup { device_t dev; u_int ipi; struct intr_irqsrc **isrcp; } DEFAULT dflt_pic_ipi_setup; diff --git a/sys/kern/serdev_if.m b/sys/kern/serdev_if.m index fbf4363c093b..12b17f9b87b6 100644 --- a/sys/kern/serdev_if.m +++ b/sys/kern/serdev_if.m @@ -1,94 +1,93 @@ #- # Copyright (c) 2006 Marcel Moolenaar # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include # The serdev interface is used by umbrella drivers and children thereof to # establish a more intimate relationship, necessary for efficient handling # of multiple (concurrent) serial communication channels. Examples include # serial communications controller (SCC) drivers, multi-I/O adapter drivers # and intelligent multi-port serial drivers. Methods specifically deal # with interrupt handling and configuration. Conceptually, the umbrella # driver is responsible for the overall operation of the hardware and uses # child drivers to handle each individual channel. # The serdev interface is intended to inherit the device interface. INTERFACE serdev; # Default implementations of some methods. CODE { static serdev_intr_t * default_ihand(device_t dev, int ipend) { return (NULL); } static int default_ipend(device_t dev) { return (-1); } static int default_sysdev(device_t dev) { return (0); } }; # ihand() - Query serial device interrupt handler. # This method is called by the umbrella driver to obtain function pointers # to interrupt handlers for each individual interrupt source. This allows # the umbralla driver to control the servicing of interrupts between the # different channels in the most flexible way. METHOD serdev_intr_t* ihand { device_t dev; int ipend; } DEFAULT default_ihand; # ipend() - Query pending interrupt status. # This method is called by the umbrella driver to obtain interrupt status # for the UART in question. This allows the umbrella driver to build a # matrix and service the interrupts in the most flexible way by calling # interrupt handlers collected with the ihand() method. METHOD int ipend { device_t dev; } DEFAULT default_ipend; # sysdev() - Query system device status # This method may be called by the umbrella driver for each child driver # to establish if a particular channel and mode is currently being used # for system specific usage. If this is the case, the hardware is not # reset and the channel will not change its operation mode. # The return value is !0 if the channel and mode are used for a system # device and 0 otherwise. METHOD int sysdev { device_t dev; } DEFAULT default_sysdev; diff --git a/sys/kern/vnode_if.src b/sys/kern/vnode_if.src index d2147d110671..3b16d4c0ada8 100644 --- a/sys/kern/vnode_if.src +++ b/sys/kern/vnode_if.src @@ -1,844 +1,843 @@ #- # Copyright (c) 1992, 1993 # The Regents of the University of California. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. Neither the name of the University nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # @(#)vnode_if.src 8.12 (Berkeley) 5/14/95 -# $FreeBSD$ # # # Above each of the vop descriptors in lines starting with %% # is a specification of the locking protocol used by each vop call. # The first column is the name of the variable, the remaining three # columns are in, out and error respectively. The "in" column defines # the lock state on input, the "out" column defines the state on successful # return, and the "error" column defines the locking state on error exit. # # The locking value can take the following values: # L: locked; not converted to type of lock. # E: locked with exclusive lock for this process. # U: unlocked. # -: not applicable. vnode does not yet (or no longer) exists. # =: the same on input and output, may be either L or U. # # The parameter named "vpp" is assumed to be always used with double # indirection (**vpp) and that name is hard-coded in vnode_if.awk ! # # Lines starting with %! specify a pre or post-condition function # to call before/after the vop call. # # If other such parameters are introduced, they have to be added to # the AWK script at the head of the definition of "add_debug_code()". # vop_islocked { IN struct vnode *vp; }; %% lookup dvp L L L %% lookup vpp - L - # XXX - the lookup locking protocol defies simple description and depends # on the flags and operation fields in the (cnp) structure. Note # especially that *vpp may equal dvp and both may be locked. vop_lookup { IN struct vnode *dvp; INOUT struct vnode **vpp; IN struct componentname *cnp; }; %% cachedlookup dvp L L L %% cachedlookup vpp - L - # This must be an exact copy of lookup. See kern/vfs_cache.c for details. vop_cachedlookup { IN struct vnode *dvp; INOUT struct vnode **vpp; IN struct componentname *cnp; }; %% create dvp E E E %% create vpp - L - %! create pre vop_create_pre %! create post vop_create_post vop_create { IN struct vnode *dvp; OUT struct vnode **vpp; IN struct componentname *cnp; IN struct vattr *vap; }; %% whiteout dvp E E E %! whiteout pre vop_whiteout_pre %! whiteout post vop_whiteout_post vop_whiteout { IN struct vnode *dvp; IN struct componentname *cnp; IN int flags; }; %% mknod dvp E E E %% mknod vpp - L - %! mknod pre vop_mknod_pre %! mknod post vop_mknod_post vop_mknod { IN struct vnode *dvp; OUT struct vnode **vpp; IN struct componentname *cnp; IN struct vattr *vap; }; %% open vp L L L %! open post vop_open_post vop_open { IN struct vnode *vp; IN int mode; IN struct ucred *cred; IN struct thread *td; IN struct file *fp; }; %% close vp L L L %! close post vop_close_post vop_close { IN struct vnode *vp; IN int fflag; IN struct ucred *cred; IN struct thread *td; }; %% fplookup_vexec vp - - - %! fplookup_vexec debugpre vop_fplookup_vexec_debugpre %! fplookup_vexec debugpost vop_fplookup_vexec_debugpost vop_fplookup_vexec { IN struct vnode *vp; IN struct ucred *cred; }; %% fplookup_symlink vp - - - %! fplookup_symlink debugpre vop_fplookup_symlink_debugpre %! fplookup_symlink debugpost vop_fplookup_symlink_debugpost vop_fplookup_symlink { IN struct vnode *vp; IN struct cache_fpl *fpl; }; %% access vp L L L vop_access { IN struct vnode *vp; IN accmode_t accmode; IN struct ucred *cred; IN struct thread *td; }; %% accessx vp L L L vop_accessx { IN struct vnode *vp; IN accmode_t accmode; IN struct ucred *cred; IN struct thread *td; }; %% stat vp L L L vop_stat { IN struct vnode *vp; OUT struct stat *sb; IN struct ucred *active_cred; IN struct ucred *file_cred; }; %% getattr vp L L L vop_getattr { IN struct vnode *vp; OUT struct vattr *vap; IN struct ucred *cred; }; %% setattr vp E E E %! setattr pre vop_setattr_pre %! setattr post vop_setattr_post vop_setattr { IN struct vnode *vp; IN struct vattr *vap; IN struct ucred *cred; }; %% mmapped vp L L L vop_mmapped { IN struct vnode *vp; }; %% read vp L L L %! read post vop_read_post vop_read { IN struct vnode *vp; INOUT struct uio *uio; IN int ioflag; IN struct ucred *cred; }; %% read_pgcache vp - - - %! read_pgcache post vop_read_pgcache_post vop_read_pgcache { IN struct vnode *vp; INOUT struct uio *uio; IN int ioflag; IN struct ucred *cred; }; %% write vp L L L %! write pre VOP_WRITE_PRE %! write post VOP_WRITE_POST vop_write { IN struct vnode *vp; INOUT struct uio *uio; IN int ioflag; IN struct ucred *cred; }; %% ioctl vp U U U vop_ioctl { IN struct vnode *vp; IN u_long command; IN void *data; IN int fflag; IN struct ucred *cred; IN struct thread *td; }; %% poll vp U U U vop_poll { IN struct vnode *vp; IN int events; IN struct ucred *cred; IN struct thread *td; }; %% kqfilter vp U U U vop_kqfilter { IN struct vnode *vp; IN struct knote *kn; }; %% revoke vp L L L vop_revoke { IN struct vnode *vp; IN int flags; }; %% fsync vp - - - %! fsync pre vop_fsync_debugpre %! fsync post vop_fsync_debugpost vop_fsync { IN struct vnode *vp; IN int waitfor; IN struct thread *td; }; %% remove dvp E E E %% remove vp E E E %! remove pre vop_remove_pre %! remove post vop_remove_post vop_remove { IN struct vnode *dvp; IN struct vnode *vp; IN struct componentname *cnp; }; %% link tdvp E E E %% link vp E E E %! link pre vop_link_pre %! link post vop_link_post vop_link { IN struct vnode *tdvp; IN struct vnode *vp; IN struct componentname *cnp; }; %! rename pre vop_rename_pre %! rename post vop_rename_post vop_rename { IN WILLRELE struct vnode *fdvp; IN WILLRELE struct vnode *fvp; IN struct componentname *fcnp; IN WILLRELE struct vnode *tdvp; IN WILLRELE struct vnode *tvp; IN struct componentname *tcnp; }; %% mkdir dvp E E E %% mkdir vpp - E - %! mkdir pre vop_mkdir_pre %! mkdir post vop_mkdir_post %! mkdir debugpost vop_mkdir_debugpost vop_mkdir { IN struct vnode *dvp; OUT struct vnode **vpp; IN struct componentname *cnp; IN struct vattr *vap; }; %% rmdir dvp E E E %% rmdir vp E E E %! rmdir pre vop_rmdir_pre %! rmdir post vop_rmdir_post vop_rmdir { IN struct vnode *dvp; IN struct vnode *vp; IN struct componentname *cnp; }; %% symlink dvp E E E %% symlink vpp - E - %! symlink pre vop_symlink_pre %! symlink post vop_symlink_post vop_symlink { IN struct vnode *dvp; OUT struct vnode **vpp; IN struct componentname *cnp; IN struct vattr *vap; IN const char *target; }; %% readdir vp L L L %! readdir post vop_readdir_post vop_readdir { IN struct vnode *vp; INOUT struct uio *uio; IN struct ucred *cred; INOUT int *eofflag; OUT int *ncookies; INOUT uint64_t **cookies; }; %% readlink vp L L L vop_readlink { IN struct vnode *vp; INOUT struct uio *uio; IN struct ucred *cred; }; %% inactive vp E E E vop_inactive { IN struct vnode *vp; }; %! need_inactive debugpre vop_need_inactive_debugpre %! need_inactive debugpost vop_need_inactive_debugpost vop_need_inactive { IN struct vnode *vp; }; %% reclaim vp E E E %! reclaim post vop_reclaim_post vop_reclaim { IN struct vnode *vp; }; %! lock1 debugpre vop_lock_debugpre %! lock1 debugpost vop_lock_debugpost vop_lock1 { IN struct vnode *vp; IN int flags; IN const char *file; IN int line; }; %! unlock debugpre vop_unlock_debugpre vop_unlock { IN struct vnode *vp; }; %% bmap vp L L L vop_bmap { IN struct vnode *vp; IN daddr_t bn; OUT struct bufobj **bop; IN daddr_t *bnp; OUT int *runp; OUT int *runb; }; %% strategy vp L L L %! strategy debugpre vop_strategy_debugpre vop_strategy { IN struct vnode *vp; IN struct buf *bp; }; %% getwritemount vp = = = vop_getwritemount { IN struct vnode *vp; OUT struct mount **mpp; }; %% print vp - - - vop_print { IN struct vnode *vp; }; %% pathconf vp L L L vop_pathconf { IN struct vnode *vp; IN int name; OUT long *retval; }; %% advlock vp U U U vop_advlock { IN struct vnode *vp; IN void *id; IN int op; IN struct flock *fl; IN int flags; }; %% advlockasync vp U U U vop_advlockasync { IN struct vnode *vp; IN void *id; IN int op; IN struct flock *fl; IN int flags; IN struct task *task; INOUT void **cookiep; }; %% advlockpurge vp E E E vop_advlockpurge { IN struct vnode *vp; }; %% reallocblks vp E E E vop_reallocblks { IN struct vnode *vp; IN struct cluster_save *buflist; }; %% getpages vp L L L vop_getpages { IN struct vnode *vp; IN vm_page_t *m; IN int count; IN int *rbehind; IN int *rahead; }; %% getpages_async vp L L L vop_getpages_async { IN struct vnode *vp; IN vm_page_t *m; IN int count; IN int *rbehind; IN int *rahead; IN vop_getpages_iodone_t *iodone; IN void *arg; }; %% putpages vp L L L vop_putpages { IN struct vnode *vp; IN vm_page_t *m; IN int count; IN int sync; IN int *rtvals; }; %% getacl vp L L L vop_getacl { IN struct vnode *vp; IN acl_type_t type; OUT struct acl *aclp; IN struct ucred *cred; IN struct thread *td; }; %% setacl vp E E E %! setacl pre vop_setacl_pre %! setacl post vop_setacl_post vop_setacl { IN struct vnode *vp; IN acl_type_t type; IN struct acl *aclp; IN struct ucred *cred; IN struct thread *td; }; %% aclcheck vp = = = vop_aclcheck { IN struct vnode *vp; IN acl_type_t type; IN struct acl *aclp; IN struct ucred *cred; IN struct thread *td; }; %% closeextattr vp L L L vop_closeextattr { IN struct vnode *vp; IN int commit; IN struct ucred *cred; IN struct thread *td; }; %% getextattr vp L L L vop_getextattr { IN struct vnode *vp; IN int attrnamespace; IN const char *name; INOUT struct uio *uio; OUT size_t *size; IN struct ucred *cred; IN struct thread *td; }; %% listextattr vp L L L vop_listextattr { IN struct vnode *vp; IN int attrnamespace; INOUT struct uio *uio; OUT size_t *size; IN struct ucred *cred; IN struct thread *td; }; %% openextattr vp L L L vop_openextattr { IN struct vnode *vp; IN struct ucred *cred; IN struct thread *td; }; %% deleteextattr vp E E E %! deleteextattr pre vop_deleteextattr_pre %! deleteextattr post vop_deleteextattr_post vop_deleteextattr { IN struct vnode *vp; IN int attrnamespace; IN const char *name; IN struct ucred *cred; IN struct thread *td; }; %% setextattr vp E E E %! setextattr pre vop_setextattr_pre %! setextattr post vop_setextattr_post vop_setextattr { IN struct vnode *vp; IN int attrnamespace; IN const char *name; INOUT struct uio *uio; IN struct ucred *cred; IN struct thread *td; }; %% setlabel vp E E E vop_setlabel { IN struct vnode *vp; IN struct label *label; IN struct ucred *cred; IN struct thread *td; }; %% vptofh vp = = = vop_vptofh { IN struct vnode *vp; IN struct fid *fhp; }; %% vptocnp vp L L L %% vptocnp vpp - U - vop_vptocnp { IN struct vnode *vp; OUT struct vnode **vpp; INOUT char *buf; INOUT size_t *buflen; }; %% allocate vp E E E vop_allocate { IN struct vnode *vp; INOUT off_t *offset; INOUT off_t *len; IN int ioflag; IN struct ucred *cred; }; %% advise vp U U U vop_advise { IN struct vnode *vp; IN off_t start; IN off_t end; IN int advice; }; %% unp_bind vp E E E vop_unp_bind { IN struct vnode *vp; IN struct unpcb *unpcb; }; %% unp_connect vp L L L vop_unp_connect { IN struct vnode *vp; OUT struct unpcb **unpcb; }; %% unp_detach vp = = = vop_unp_detach { IN struct vnode *vp; }; %% is_text vp L L L vop_is_text { IN struct vnode *vp; }; %% set_text vp = = = vop_set_text { IN struct vnode *vp; }; %% vop_unset_text vp L L L vop_unset_text { IN struct vnode *vp; }; %% add_writecount vp L L L vop_add_writecount { IN struct vnode *vp; IN int inc; }; %% fdatasync vp - - - %! fdatasync pre vop_fdatasync_debugpre %! fdatasync post vop_fdatasync_debugpost vop_fdatasync { IN struct vnode *vp; IN struct thread *td; }; %% copy_file_range invp U U U %% copy_file_range outvp U U U vop_copy_file_range { IN struct vnode *invp; INOUT off_t *inoffp; IN struct vnode *outvp; INOUT off_t *outoffp; INOUT size_t *lenp; IN unsigned int flags; IN struct ucred *incred; IN struct ucred *outcred; IN struct thread *fsizetd; }; %% vput_pair dvp E - - vop_vput_pair { IN struct vnode *dvp; INOUT struct vnode **vpp; IN bool unlock_vp; }; %% deallocate vp L L L vop_deallocate { IN struct vnode *vp; INOUT off_t *offset; INOUT off_t *len; IN int flags; IN int ioflag; IN struct ucred *cred; }; # The VOPs below are spares at the end of the table to allow new VOPs to be # added in stable branches without breaking the KBI. New VOPs in HEAD should # be added above these spares. When merging a new VOP to a stable branch, # the new VOP should replace one of the spares. vop_spare1 { IN struct vnode *vp; }; vop_spare2 { IN struct vnode *vp; }; vop_spare3 { IN struct vnode *vp; }; vop_spare4 { IN struct vnode *vp; }; vop_spare5 { IN struct vnode *vp; }; diff --git a/sys/kgssapi/kgss_if.m b/sys/kgssapi/kgss_if.m index 53d499a2b182..332461d20cf5 100644 --- a/sys/kgssapi/kgss_if.m +++ b/sys/kgssapi/kgss_if.m @@ -1,95 +1,94 @@ #- # Copyright (c) 2008 Isilon Inc http://www.isilon.com/ # Authors: Doug Rabson # Developed with Red Inc: Alfred Perlstein # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # Interface for the in-kernel part of a GSS-API mechanism #include #include "gssd.h" INTERFACE kgss; METHOD void init { gss_ctx_id_t ctx; }; METHOD OM_uint32 import { gss_ctx_id_t ctx; enum sec_context_format format; const gss_buffer_t context_token; }; METHOD void delete { gss_ctx_id_t ctx; gss_buffer_t output_token; }; METHOD gss_OID mech_type { gss_ctx_id_t ctx; }; METHOD OM_uint32 get_mic { gss_ctx_id_t ctx; OM_uint32 *minor_status; gss_qop_t qop_req; struct mbuf *message_buffer; struct mbuf **message_token; }; METHOD OM_uint32 verify_mic { gss_ctx_id_t ctx; OM_uint32 *minor_status; struct mbuf *message_buffer; struct mbuf *token_buffer; gss_qop_t *qop_state; }; METHOD OM_uint32 wrap { gss_ctx_id_t ctx; OM_uint32 *minor_status; int conf_req_flag; gss_qop_t qop_req; struct mbuf **message_buffer; int *conf_state; }; METHOD OM_uint32 unwrap { gss_ctx_id_t ctx; OM_uint32 *minor_status; struct mbuf **message_buffer; int *conf_state; gss_qop_t *qop_state; }; METHOD OM_uint32 wrap_size_limit { gss_ctx_id_t ctx; OM_uint32 *minor_status; int conf_req_flag; gss_qop_t qop_req; OM_uint32 req_ouput_size; OM_uint32 *max_input_size; } diff --git a/sys/libkern/iconv_converter_if.m b/sys/libkern/iconv_converter_if.m index 592fa1372903..a16426e861cd 100644 --- a/sys/libkern/iconv_converter_if.m +++ b/sys/libkern/iconv_converter_if.m @@ -1,74 +1,73 @@ #- # Copyright (c) 2000-2001 Boris Popov # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE iconv_converter; STATICMETHOD int open { struct iconv_converter_class *dcp; struct iconv_cspair *cspto; struct iconv_cspair *cspfrom; void **hpp; }; METHOD int close { void *handle; }; METHOD int conv { void *handle; const char **inbuf; size_t *inbytesleft; char **outbuf; size_t *outbytesleft; int convchar; int casetype; }; STATICMETHOD int init { struct iconv_converter_class *dcp; } DEFAULT iconv_converter_initstub; STATICMETHOD int done { struct iconv_converter_class *dcp; } DEFAULT iconv_converter_donestub; STATICMETHOD const char * name { struct iconv_converter_class *dcp; }; METHOD int tolower { void *handle; int c; } DEFAULT iconv_converter_tolowerstub; METHOD int toupper { void *handle; int c; } DEFAULT iconv_converter_tolowerstub; diff --git a/sys/modules/3dfx/Makefile b/sys/modules/3dfx/Makefile index 05f57cb2a6b9..8d553b25c656 100644 --- a/sys/modules/3dfx/Makefile +++ b/sys/modules/3dfx/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/tdfx KMOD= 3dfx SRCS= bus_if.h pci_if.h device_if.h tdfx_pci.h tdfx_io.h\ tdfx_vars.h tdfx_pci.c # Uncomment this for debugging messages #CFLAGS+= -DDEBUG .include diff --git a/sys/modules/3dfx_linux/Makefile b/sys/modules/3dfx_linux/Makefile index 609f5b3cf3ca..b6da59fd35c2 100644 --- a/sys/modules/3dfx_linux/Makefile +++ b/sys/modules/3dfx_linux/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/tdfx KMOD= 3dfx_linux SRCS= tdfx_linux.c .include diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 8b5e48a2d53f..201cfbcca725 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -1,919 +1,918 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" SUBDIR_PARALLEL= # Modules that include binary-only blobs of microcode should be selectable by # MK_SOURCELESS_UCODE option (see below). .include "${SYSDIR}/conf/config.mk" .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) SUBDIR=${MODULES_OVERRIDE} .else SUBDIR= \ ${_3dfx} \ ${_3dfx_linux} \ ${_aac} \ ${_aacraid} \ accf_data \ accf_dns \ accf_http \ acl_nfs4 \ acl_posix1e \ ${_acpi} \ ae \ ${_aesni} \ age \ ${_agp} \ ahci \ aic7xxx \ alc \ ale \ alq \ ${_amd_ecc_inject} \ ${_amdgpio} \ ${_amdsbwd} \ ${_amdsmn} \ ${_amdtemp} \ ${_aout} \ ${_arcmsr} \ ${_allwinner} \ ${_armv8crypto} \ ${_asmc} \ ata \ ath \ ath_dfs \ ath_hal \ ath_hal_ar5210 \ ath_hal_ar5211 \ ath_hal_ar5212 \ ath_hal_ar5416 \ ath_hal_ar9300 \ ath_main \ ath_rate \ ${_autofs} \ axgbe \ backlight \ ${_bce} \ ${_bcm283x_clkman} \ ${_bcm283x_pwm} \ bfe \ bge \ bhnd \ ${_bxe} \ ${_bios} \ ${_blake2} \ ${_bnxt} \ bridgestp \ bwi \ bwn \ ${_bytgpio} \ ${_chvgpio} \ cam \ ${_cardbus} \ ${_carp} \ cas \ ${_cbb} \ cc \ ${_ccp} \ cd9660 \ cd9660_iconv \ ${_cfi} \ ${_chromebook_platform} \ ${_ciss} \ ${_coretemp} \ ${_cpsw} \ ${_cpuctl} \ ${_cpufreq} \ ${_crypto} \ ${_cryptodev} \ ctl \ ${_cxgb} \ ${_cxgbe} \ dc \ dcons \ dcons_crom \ ${_dpaa2} \ ${_dpdk_lpm4} \ ${_dpdk_lpm6} \ ${_dpms} \ dummynet \ ${_dwwdt} \ ${_e6000sw} \ ${_efirt} \ ${_em} \ ${_ena} \ ${_enic} \ ${_enetc} \ ${_et} \ evdev \ ${_exca} \ ext2fs \ fdc \ fdescfs \ ${_felix} \ ${_ffec} \ ${_fib_dxr} \ filemon \ firewire \ firmware \ flash \ ${_ftgpio} \ ${_ftwd} \ fusefs \ ${_fxp} \ gem \ geom \ ${_glxiic} \ ${_glxsb} \ gpio \ ${_gve} \ hid \ hifn \ ${_hpt27xx} \ ${_hptiop} \ ${_hptmv} \ ${_hptnr} \ ${_hptrr} \ hwpmc \ ${_hyperv} \ i2c \ ${_iavf} \ ${_ibcore} \ ${_ichwd} \ ${_ice} \ ${_ice_ddp} \ ${_irdma} \ ${_ida} \ if_bridge \ ${_if_cgem} \ if_disc \ if_edsc \ ${_if_enc} \ if_epair \ ${_if_gif} \ ${_if_gre} \ ${_if_me} \ if_infiniband \ if_lagg \ if_ovpn \ ${_if_stf} \ if_tuntap \ if_vlan \ if_vxlan \ ${_if_wg} \ iflib \ ${_igc} \ imgact_binmisc \ ${_intelspi} \ ${_io} \ ${_ioat} \ ${_ipoib} \ ipdivert \ ${_ipfilter} \ ${_ipfw} \ ipfw_nat \ ${_ipfw_nat64} \ ${_ipfw_nptv6} \ ${_ipfw_pmod} \ ${_ipmi} \ ip6_mroute_mod \ ip_mroute_mod \ ${_ips} \ ${_ipsec} \ ${_ipw} \ ${_ipwfw} \ ${_isci} \ ${_iser} \ isp \ ${_ispfw} \ ${_itwd} \ ${_iwi} \ ${_iwifw} \ ${_iwlwifi} \ ${_iwlwififw} \ ${_iwm} \ ${_iwmfw} \ ${_iwn} \ ${_iwnfw} \ ${_ix} \ ${_ixv} \ ${_ixl} \ jme \ kbdmux \ kgssapi \ kgssapi_krb5 \ khelp \ krpc \ ksyms \ le \ lge \ libalias \ libiconv \ libmchain \ lindebugfs \ linuxkpi \ linuxkpi_hdmi \ linuxkpi_wlan \ ${_lio} \ lpt \ ${_mac_biba} \ ${_mac_bsdextended} \ ${_mac_ddb} \ ${_mac_ifoff} \ ${_mac_ipacl} \ ${_mac_lomac} \ ${_mac_mls} \ ${_mac_none} \ ${_mac_ntpd} \ ${_mac_partition} \ ${_mac_pimd} \ ${_mac_portacl} \ ${_mac_priority} \ ${_mac_seeotheruids} \ ${_mac_stub} \ ${_mac_test} \ ${_mac_veriexec} \ ${_mac_veriexec_sha1} \ ${_mac_veriexec_sha256} \ ${_mac_veriexec_sha384} \ ${_mac_veriexec_sha512} \ ${_malo} \ ${_mana} \ md \ mdio \ ${_mgb} \ mem \ mfi \ mii \ mlx \ mlxfw \ ${_mlx4} \ ${_mlx4ib} \ ${_mlx4en} \ ${_mlx5} \ ${_mlx5en} \ ${_mlx5ib} \ mmc \ mmcsd \ ${_mpi3mr} \ ${_mpr} \ ${_mps} \ mpt \ mqueue \ mrsas \ msdosfs \ msdosfs_iconv \ msk \ ${_mthca} \ mvs \ mwl \ ${_mwlfw} \ mxge \ my \ ${_nctgpio} \ ${_ncthwm} \ ${_neta} \ netlink \ ${_netgraph} \ ${_nfe} \ nfscl \ nfscommon \ nfsd \ nfslockd \ nfssvc \ nlsysevent \ nge \ nmdm \ nullfs \ ${_ntb} \ ${_nvd} \ ${_nvdimm} \ ${_nvme} \ ${_nvram} \ oce \ ${_ocs_fc} \ ${_ossl} \ otus \ ${_otusfw} \ ow \ ${_padlock} \ ${_padlock_rng} \ ${_pchtherm} \ ${_pcfclock} \ ${_pf} \ ${_pflog} \ ${_pfsync} \ plip \ ${_pms} \ ppbus \ ppc \ ppi \ pps \ procfs \ proto \ pseudofs \ ${_pst} \ pty \ puc \ pwm \ ${_qat} \ ${_qatfw} \ ${_qat_c2xxx} \ ${_qat_c2xxxfw} \ ${_qlxge} \ ${_qlxgb} \ ${_qlxgbe} \ ${_qlnx} \ ral \ ${_ralfw} \ ${_random_fortuna} \ ${_random_other} \ rc4 \ ${_rdma} \ ${_rdrand_rng} \ re \ rl \ ${_rockchip} \ rtsx \ ${_rtw88} \ ${_rtw88fw} \ rtwn \ rtwn_pci \ rtwn_usb \ ${_rtwnfw} \ ${_s3} \ ${_safe} \ safexcel \ ${_sbni} \ scc \ ${_sctp} \ sdhci \ ${_sdhci_acpi} \ ${_sdhci_fdt} \ sdhci_pci \ sdio \ sem \ send \ ${_sfxge} \ sge \ ${_sgx} \ ${_sgx_linux} \ siftr \ siis \ sis \ sk \ ${_smartpqi} \ smbfs \ snp \ sound \ ${_speaker} \ spi \ ${_splash} \ ste \ stge \ ${_sume} \ ${_superio} \ ${_p2sb} \ sym \ ${_syscons} \ sysvipc \ tarfs \ tcp \ ${_ti} \ tmpfs \ ${_toecore} \ ${_tpm} \ tws \ uart \ udf \ udf_iconv \ ufs \ uinput \ unionfs \ usb \ ${_vesa} \ virtio \ vge \ ${_viawd} \ videomode \ vkbd \ ${_vmd} \ ${_vmm} \ ${_vmware} \ vr \ vte \ ${_wbwd} \ ${_wdatwd} \ wlan \ wlan_acl \ wlan_amrr \ wlan_ccmp \ wlan_rssadapt \ wlan_tkip \ wlan_wep \ wlan_xauth \ ${_wpi} \ ${_wpifw} \ ${_x86bios} \ xdr \ xl \ xz \ zlib .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES) _autofs= autofs .endif .if ${MK_DTRACE} != "no" || defined(ALL_MODULES) .if ${KERN_OPTS:MKDTRACE_HOOKS} SUBDIR+= dtrace .endif SUBDIR+= opensolaris .endif # Requires bus_space_read_8 .if ${MACHINE_ARCH} != "i386" _bnxt= bnxt .endif .if ${MK_CRYPT} != "no" || defined(ALL_MODULES) .if exists(${SRCTOP}/sys/opencrypto) _crypto= crypto _cryptodev= cryptodev _random_fortuna=random_fortuna _random_other= random_other .endif .endif .if ${MK_CUSE} != "no" || defined(ALL_MODULES) SUBDIR+= cuse .endif .if ${MK_EFI} != "no" .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" _efirt= efirt .endif .endif .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ defined(ALL_MODULES) _carp= carp _toecore= toecore _if_enc= if_enc _if_gif= if_gif _if_gre= if_gre .if ${MK_CRYPT} != "no" || defined(ALL_MODULES) _if_wg= if_wg .endif _ipfw_pmod= ipfw_pmod .if ${KERN_OPTS:MIPSEC_SUPPORT} && !${KERN_OPTS:MIPSEC} _ipsec= ipsec .endif .if ${KERN_OPTS:MSCTP_SUPPORT} || ${KERN_OPTS:MSCTP} _sctp= sctp .endif .endif .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ defined(ALL_MODULES) _if_stf= if_stf .endif .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) _if_me= if_me _ipfw= ipfw .if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) _ipfw_nat64= ipfw_nat64 .endif .endif .if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) _ipfw_nptv6= ipfw_nptv6 .endif .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) _ipfilter= ipfilter .endif .if ${MK_INET_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO} _dpdk_lpm4= dpdk_lpm4 _fib_dxr= fib_dxr .endif .if ${MK_INET6_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO} _dpdk_lpm6= dpdk_lpm6 .endif .if ${MK_ISCSI} != "no" || defined(ALL_MODULES) SUBDIR+= cfiscsi SUBDIR+= iscsi .endif .if !empty(OPT_FDT) SUBDIR+= fdt .endif # Linuxulator .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" SUBDIR+= linprocfs SUBDIR+= linsysfs .endif .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" SUBDIR+= linux .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" SUBDIR+= linux64 SUBDIR+= linux_common .endif .if ${MACHINE_CPUARCH} != "arm" .if ${MK_OFED} != "no" || defined(ALL_MODULES) _ibcore= ibcore _ipoib= ipoib _iser= iser _mthca= mthca _rdma= rdma .endif .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" || ${MACHINE_ARCH:Mpowerpc64*} != "" _ipmi= ipmi _mlx4= mlx4 _mlx5= mlx5 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ defined(ALL_MODULES) _mlx4en= mlx4en _mlx5en= mlx5en .endif .if ${MK_OFED} != "no" || defined(ALL_MODULES) _mlx4ib= mlx4ib _mlx5ib= mlx5ib .endif .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" _ena= ena _gve= gve _iwlwifi= iwlwifi .if ${MK_SOURCELESS_UCODE} != "no" _iwlwififw= iwlwififw .endif _ossl= ossl _rtw88= rtw88 .if ${MK_SOURCELESS_UCODE} != "no" _rtw88fw= rtw88fw .endif _vmware= vmware .endif # MAC framework .if ${KERN_OPTS:MMAC} || defined(ALL_MODULES) _mac_biba= mac_biba _mac_bsdextended= mac_bsdextended .if ${KERN_OPTS:MDDB} || defined(ALL_MODULES) _mac_ddb= mac_ddb .endif _mac_ifoff= mac_ifoff _mac_ipacl= mac_ipacl _mac_lomac= mac_lomac _mac_mls= mac_mls _mac_none= mac_none _mac_ntpd= mac_ntpd _mac_partition= mac_partition _mac_pimd= mac_pimd _mac_portacl= mac_portacl _mac_priority= mac_priority _mac_seeotheruids= mac_seeotheruids _mac_stub= mac_stub _mac_test= mac_test .if ${MK_VERIEXEC} != "no" || defined(ALL_MODULES) _mac_veriexec= mac_veriexec _mac_veriexec_sha1= mac_veriexec_sha1 _mac_veriexec_sha256= mac_veriexec_sha256 _mac_veriexec_sha384= mac_veriexec_sha384 _mac_veriexec_sha512= mac_veriexec_sha512 .endif .endif .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) _netgraph= netgraph .endif .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) _pf= pf _pflog= pflog .if ${MK_INET_SUPPORT} != "no" _pfsync= pfsync .endif .endif .if ${MK_SOURCELESS_UCODE} != "no" _bce= bce _fxp= fxp _ispfw= ispfw _ti= ti _mwlfw= mwlfw _otusfw= otusfw _ralfw= ralfw _rtwnfw= rtwnfw .endif .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \ ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \ ${MACHINE_CPUARCH} != "riscv" _cxgbe= cxgbe .endif # This has only been tested on amd64 and arm64 .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "aarch64" _mpi3mr=mpi3mr .endif .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "aarch64" || \ ${MACHINE_ARCH:Mpowerpc64*} _ice= ice .if ${MK_SOURCELESS_UCODE} != "no" _ice_ddp= ice_ddp .endif .if ${MK_OFED} != "no" || defined(ALL_MODULES) .if ${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no" _irdma= irdma .endif .endif .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ ${MACHINE_CPUARCH} == "riscv" .if !empty(OPT_FDT) _if_cgem= if_cgem .endif .endif # These rely on 64bit atomics .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" _mps= mps _mpr= mpr .endif .if ${MK_TESTS} != "no" || defined(ALL_MODULES) SUBDIR+= ktest SUBDIR+= tests .endif .if ${MK_ZFS} != "no" || defined(ALL_MODULES) SUBDIR+= zfs .endif .if ${MK_SOURCELESS_UCODE} != "no" _cxgb= cxgb .endif .if ${MACHINE_CPUARCH} == "aarch64" _armv8crypto= armv8crypto _dpaa2= dpaa2 _em= em _hyperv= hyperv .if !empty(OPT_FDT) _allwinner= allwinner _dwwdt= dwwdt _enetc= enetc _felix= felix _rockchip= rockchip .endif .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" .if !empty(OPT_FDT) _sdhci_fdt= sdhci_fdt .endif _e6000sw= e6000sw _neta= neta .endif .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" _agp= agp .if ${MACHINE_CPUARCH} == "i386" || !empty(COMPAT_FREEBSD32_ENABLED) _aout= aout .endif _bios= bios .if ${MK_SOURCELESS_UCODE} != "no" _bxe= bxe .endif _cardbus= cardbus _cbb= cbb _cpuctl= cpuctl _cpufreq= cpufreq _dpms= dpms _em= em _et= et _ftgpio= ftgpio _ftwd= ftwd _exca= exca _igc= igc _io= io _itwd= itwd _ix= ix _ixv= ixv .if ${MK_SOURCELESS_UCODE} != "no" _lio= lio .endif _mana= mana _mgb= mgb _nctgpio= nctgpio _ncthwm= ncthwm _ntb= ntb _ocs_fc= ocs_fc _p2sb= p2sb _qat_c2xxx= qat_c2xxx _qat_c2xxxfw= qat_c2xxxfw _safe= safe _speaker= speaker _splash= splash _syscons= syscons _wbwd= wbwd _wdatwd= wdatwd _aac= aac _aacraid= aacraid _acpi= acpi .if ${MK_CRYPT} != "no" || defined(ALL_MODULES) _aesni= aesni .endif _amd_ecc_inject=amd_ecc_inject _amdsbwd= amdsbwd _amdsmn= amdsmn _amdtemp= amdtemp _arcmsr= arcmsr _asmc= asmc .if ${MK_CRYPT} != "no" || defined(ALL_MODULES) _blake2= blake2 .endif _bytgpio= bytgpio _chvgpio= chvgpio _ciss= ciss _chromebook_platform= chromebook_platform _coretemp= coretemp .if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) _hpt27xx= hpt27xx .endif _hptiop= hptiop .if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) _hptmv= hptmv _hptnr= hptnr _hptrr= hptrr .endif _hyperv= hyperv _ichwd= ichwd _ida= ida _intelspi= intelspi _ips= ips _isci= isci _ipw= ipw _iwi= iwi _iwm= iwm _iwn= iwn .if ${MK_SOURCELESS_UCODE} != "no" _ipwfw= ipwfw _iwifw= iwifw _iwmfw= iwmfw _iwnfw= iwnfw .endif _nfe= nfe _nvd= nvd _nvme= nvme _nvram= nvram .if ${MK_CRYPT} != "no" || defined(ALL_MODULES) _padlock= padlock _padlock_rng= padlock_rng _rdrand_rng= rdrand_rng .endif _pchtherm = pchtherm _s3= s3 _sdhci_acpi= sdhci_acpi _superio= superio _tpm= tpm _vesa= vesa _viawd= viawd _vmd= vmd _wpi= wpi .if ${MK_SOURCELESS_UCODE} != "no" _wpifw= wpifw .endif _x86bios= x86bios .endif .if ${MACHINE_CPUARCH} == "amd64" _amdgpio= amdgpio _ccp= ccp _enic= enic _iavf= iavf _ioat= ioat _ixl= ixl _nvdimm= nvdimm _pms= pms _qat= qat .if ${MK_SOURCELESS_UCODE} != "no" _qatfw= qatfw .endif _qlxge= qlxge _qlxgb= qlxgb _sume= sume .if ${MK_SOURCELESS_UCODE} != "no" _qlxgbe= qlxgbe _qlnx= qlnx .endif _sfxge= sfxge _sgx= sgx _sgx_linux= sgx_linux _smartpqi= smartpqi _p2sb= p2sb .if ${MK_BHYVE} != "no" || defined(ALL_MODULES) .if ${KERN_OPTS:MSMP} _vmm= vmm .endif .endif .endif .if ${MACHINE_CPUARCH} == "i386" # XXX some of these can move to the general case when de-i386'ed # XXX some of these can move now, but are untested on other architectures. _3dfx= 3dfx _3dfx_linux= 3dfx_linux _glxiic= glxiic _glxsb= glxsb _pcfclock= pcfclock _pst= pst _sbni= sbni .endif .if ${MACHINE_ARCH} == "armv7" _cfi= cfi _cpsw= cpsw .endif .if ${MACHINE_CPUARCH} == "powerpc" _aacraid= aacraid _agp= agp _an= an _cardbus= cardbus _cbb= cbb _cfi= cfi _cpufreq= cpufreq _exca= exca _ffec= ffec _nvd= nvd _nvme= nvme .endif .if ${MACHINE_ARCH:Mpowerpc64*} != "" _ixl= ixl _nvram= opal_nvram .endif .if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe" # Don't build powermac_nvram for powerpcspe, it's never supported. _nvram+= powermac_nvram .endif .if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "aarch64" _bcm283x_clkman= bcm283x_clkman _bcm283x_pwm= bcm283x_pwm .endif .if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000) # LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11: # https://bugs.llvm.org/show_bug.cgi?id=44351 _malo= malo .endif SUBDIR+=${MODULES_EXTRA} .for reject in ${WITHOUT_MODULES} SUBDIR:= ${SUBDIR:N${reject}} .endfor .endif # MODULES_OVERRIDE -- Keep last # Calling kldxref(8) for each module is expensive. .if !defined(NO_XREF) .MAKEFLAGS+= -DNO_XREF afterinstall: .PHONY @if type kldxref >/dev/null 2>&1; then \ ${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ fi .endif SUBDIR:= ${SUBDIR:u:O} .include diff --git a/sys/modules/Makefile.inc b/sys/modules/Makefile.inc index a81b6b1edc37..d6f8b49f655c 100644 --- a/sys/modules/Makefile.inc +++ b/sys/modules/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ SUBDIR_PARALLEL= yes diff --git a/sys/modules/aac/Makefile b/sys/modules/aac/Makefile index 1a5b433688ee..549619098e78 100644 --- a/sys/modules/aac/Makefile +++ b/sys/modules/aac/Makefile @@ -1,18 +1,17 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/aac .if ${MACHINE_CPUARCH} == "i386" SUBDIR= aac_linux .endif KMOD= aac SRCS= aac.c aac_pci.c aac_disk.c aac_cam.c SRCS+= opt_scsi.h opt_cam.h opt_aac.h SRCS+= device_if.h bus_if.h pci_if.h # To enable debug output from the driver, uncomment these two lines. #CFLAGS+= -DAAC_DEBUG=2 #SRCS+= aac_debug.c .include diff --git a/sys/modules/aac/Makefile.inc b/sys/modules/aac/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/aac/Makefile.inc +++ b/sys/modules/aac/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/aac/aac_linux/Makefile b/sys/modules/aac/aac_linux/Makefile index 88861bf85b32..b6ff82211308 100644 --- a/sys/modules/aac/aac_linux/Makefile +++ b/sys/modules/aac/aac_linux/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/aac KMOD= aac_linux SRCS= aac_linux.c .include diff --git a/sys/modules/aacraid/Makefile b/sys/modules/aacraid/Makefile index 8bbe1d7db708..22815f9b4e56 100644 --- a/sys/modules/aacraid/Makefile +++ b/sys/modules/aacraid/Makefile @@ -1,21 +1,20 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/aacraid .if ${MACHINE_CPUARCH} == "i386" SUBDIR= aacraid_linux .endif KMOD= aacraid SRCS= aacraid.c aacraid_pci.c aacraid_cam.c .if ${MACHINE_CPUARCH} == "powerpc" SRCS+= aacraid_endian.c .endif SRCS+= opt_scsi.h opt_cam.h opt_aacraid.h SRCS+= device_if.h bus_if.h pci_if.h # To enable debug output from the driver, uncomment these two lines. #CFLAGS+= -DAACRAID_DEBUG=2 #SRCS+= aacraid_debug.c .include diff --git a/sys/modules/aacraid/Makefile.inc b/sys/modules/aacraid/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/aacraid/Makefile.inc +++ b/sys/modules/aacraid/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/aacraid/aacraid_linux/Makefile b/sys/modules/aacraid/aacraid_linux/Makefile index 426f9d8a4f77..cf661c61d5a4 100644 --- a/sys/modules/aacraid/aacraid_linux/Makefile +++ b/sys/modules/aacraid/aacraid_linux/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/aacraid KMOD= aacraid_linux SRCS= aacraid_linux.c .include diff --git a/sys/modules/accf_data/Makefile b/sys/modules/accf_data/Makefile index 3cd8139fc79f..10e7e6fa850d 100644 --- a/sys/modules/accf_data/Makefile +++ b/sys/modules/accf_data/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet KMOD= accf_data SRCS= accf_data.c .include diff --git a/sys/modules/accf_dns/Makefile b/sys/modules/accf_dns/Makefile index ba655024951a..c7c780843fe7 100644 --- a/sys/modules/accf_dns/Makefile +++ b/sys/modules/accf_dns/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet KMOD= accf_dns SRCS= accf_dns.c .include diff --git a/sys/modules/accf_http/Makefile b/sys/modules/accf_http/Makefile index 6444703ce90f..dc491a819747 100644 --- a/sys/modules/accf_http/Makefile +++ b/sys/modules/accf_http/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet KMOD= accf_http SRCS= accf_http.c .include diff --git a/sys/modules/acl_nfs4/Makefile b/sys/modules/acl_nfs4/Makefile index 2a6dee6312b6..ae12090d11a9 100644 --- a/sys/modules/acl_nfs4/Makefile +++ b/sys/modules/acl_nfs4/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= acl_nfs4 SRCS= vnode_if.h subr_acl_nfs4.c .include diff --git a/sys/modules/acl_posix1e/Makefile b/sys/modules/acl_posix1e/Makefile index 70d1b9d870b1..f9333de37375 100644 --- a/sys/modules/acl_posix1e/Makefile +++ b/sys/modules/acl_posix1e/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= acl_posix1e SRCS= vnode_if.h subr_acl_posix1e.c .include diff --git a/sys/modules/acpi/Makefile b/sys/modules/acpi/Makefile index 71e083fef700..ee921a23aeb7 100644 --- a/sys/modules/acpi/Makefile +++ b/sys/modules/acpi/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ SUBDIR= acpi_asus acpi_asus_wmi acpi_dock acpi_fujitsu acpi_hp \ acpi_ged acpi_ibm acpi_panasonic acpi_sony acpi_toshiba \ acpi_video acpi_wmi aibs .include diff --git a/sys/modules/acpi/Makefile.inc b/sys/modules/acpi/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/acpi/Makefile.inc +++ b/sys/modules/acpi/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/acpi/acpi_asus/Makefile b/sys/modules/acpi/acpi_asus/Makefile index 3d5ec770799d..234fc11c3355 100644 --- a/sys/modules/acpi/acpi_asus/Makefile +++ b/sys/modules/acpi/acpi_asus/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpi_support KMOD= acpi_asus SRCS= acpi_asus.c opt_acpi.h acpi_if.h bus_if.h device_if.h SRCS+= opt_ddb.h .include diff --git a/sys/modules/acpi/acpi_asus_wmi/Makefile b/sys/modules/acpi/acpi_asus_wmi/Makefile index d9fa647633bd..0e831bf05e47 100644 --- a/sys/modules/acpi/acpi_asus_wmi/Makefile +++ b/sys/modules/acpi/acpi_asus_wmi/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpi_support KMOD= acpi_asus_wmi CFLAGS+=-I${SRCTOP}/sys/dev/acpi_support SRCS= acpi_asus_wmi.c opt_acpi.h acpi_if.h acpi_wmi_if.h device_if.h bus_if.h .include diff --git a/sys/modules/acpi/acpi_dock/Makefile b/sys/modules/acpi/acpi_dock/Makefile index 7bda6b98c376..f9856e1295d2 100644 --- a/sys/modules/acpi/acpi_dock/Makefile +++ b/sys/modules/acpi/acpi_dock/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpica KMOD= acpi_dock SRCS= acpi_dock.c opt_acpi.h device_if.h bus_if.h acpi_if.h SRCS+= opt_ddb.h .include diff --git a/sys/modules/acpi/acpi_fujitsu/Makefile b/sys/modules/acpi/acpi_fujitsu/Makefile index 9c21c4b6118c..8053f9891e65 100644 --- a/sys/modules/acpi/acpi_fujitsu/Makefile +++ b/sys/modules/acpi/acpi_fujitsu/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpi_support KMOD= acpi_fujitsu CFLAGS+=-I${SRCTOP}/sys/dev/acpi_support SRCS= acpi_fujitsu.c opt_acpi.h acpi_if.h device_if.h bus_if.h .include diff --git a/sys/modules/acpi/acpi_ged/Makefile b/sys/modules/acpi/acpi_ged/Makefile index 78f0303f275e..3cfc3b51a21e 100644 --- a/sys/modules/acpi/acpi_ged/Makefile +++ b/sys/modules/acpi/acpi_ged/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpica KMOD= acpi_ged SRCS= acpi_ged.c SRCS+= opt_acpi.h opt_evdev.h acpi_if.h bus_if.h device_if.h .include diff --git a/sys/modules/acpi/acpi_hp/Makefile b/sys/modules/acpi/acpi_hp/Makefile index e927b9278fe8..0d1a03c30b6b 100644 --- a/sys/modules/acpi/acpi_hp/Makefile +++ b/sys/modules/acpi/acpi_hp/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpi_support KMOD= acpi_hp CFLAGS+=-I${SRCTOP}/sys/dev/acpi_support SRCS= acpi_hp.c opt_acpi.h acpi_if.h acpi_wmi_if.h device_if.h bus_if.h .include diff --git a/sys/modules/acpi/acpi_ibm/Makefile b/sys/modules/acpi/acpi_ibm/Makefile index d6530241adbe..9e815ccc9e80 100644 --- a/sys/modules/acpi/acpi_ibm/Makefile +++ b/sys/modules/acpi/acpi_ibm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpi_support KMOD= acpi_ibm SRCS= acpi_ibm.c opt_acpi.h device_if.h bus_if.h acpi_if.h SRCS+= opt_ddb.h .include diff --git a/sys/modules/acpi/acpi_panasonic/Makefile b/sys/modules/acpi/acpi_panasonic/Makefile index e13a43cf7eaa..60a04cecb57f 100644 --- a/sys/modules/acpi/acpi_panasonic/Makefile +++ b/sys/modules/acpi/acpi_panasonic/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpi_support KMOD= acpi_panasonic SRCS= acpi_panasonic.c opt_acpi.h acpi_if.h bus_if.h device_if.h .include diff --git a/sys/modules/acpi/acpi_rapidstart/Makefile b/sys/modules/acpi/acpi_rapidstart/Makefile index 30e373b9b533..109fc30ba1d5 100644 --- a/sys/modules/acpi/acpi_rapidstart/Makefile +++ b/sys/modules/acpi/acpi_rapidstart/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpi_support KMOD= acpi_rapidstart SRCS= acpi_rapidstart.c opt_acpi.h device_if.h bus_if.h acpi_if.h .include diff --git a/sys/modules/acpi/acpi_sony/Makefile b/sys/modules/acpi/acpi_sony/Makefile index 94bd85d05978..b1c93c3d4be1 100644 --- a/sys/modules/acpi/acpi_sony/Makefile +++ b/sys/modules/acpi/acpi_sony/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpi_support KMOD= acpi_sony SRCS= acpi_sony.c opt_acpi.h device_if.h bus_if.h acpi_if.h .include diff --git a/sys/modules/acpi/acpi_toshiba/Makefile b/sys/modules/acpi/acpi_toshiba/Makefile index 7d6576753b37..2f6190e1524f 100644 --- a/sys/modules/acpi/acpi_toshiba/Makefile +++ b/sys/modules/acpi/acpi_toshiba/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpi_support KMOD= acpi_toshiba SRCS= acpi_toshiba.c opt_acpi.h acpi_if.h bus_if.h device_if.h .include diff --git a/sys/modules/acpi/acpi_video/Makefile b/sys/modules/acpi/acpi_video/Makefile index d2556c8a56dc..78c20b705cb9 100644 --- a/sys/modules/acpi/acpi_video/Makefile +++ b/sys/modules/acpi/acpi_video/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpica KMOD= acpi_video SRCS= acpi_video.c SRCS+= opt_acpi.h opt_evdev.h acpi_if.h bus_if.h device_if.h .include diff --git a/sys/modules/acpi/acpi_wmi/Makefile b/sys/modules/acpi/acpi_wmi/Makefile index 0c03ffb789b9..850be463e076 100644 --- a/sys/modules/acpi/acpi_wmi/Makefile +++ b/sys/modules/acpi/acpi_wmi/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpi_support KMOD= acpi_wmi CFLAGS+=-I${SRCTOP}/sys/dev/acpi_support SRCS= acpi_wmi.c opt_acpi.h acpi_if.h acpi_wmi_if.h device_if.h bus_if.h .include diff --git a/sys/modules/acpi/aibs/Makefile b/sys/modules/acpi/aibs/Makefile index dec7f39f4358..b3af05552f8f 100644 --- a/sys/modules/acpi/aibs/Makefile +++ b/sys/modules/acpi/aibs/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpi_support KMOD= aibs SRCS= atk0110.c SRCS+= opt_acpi.h acpi_if.h bus_if.h device_if.h SRCS+= opt_ddb.h .include diff --git a/sys/modules/adlink/Makefile b/sys/modules/adlink/Makefile index e5c495665210..1d5931cfcc9b 100644 --- a/sys/modules/adlink/Makefile +++ b/sys/modules/adlink/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/adlink KMOD= adlink SRCS= adlink.c \ device_if.h bus_if.h .include diff --git a/sys/modules/ae/Makefile b/sys/modules/ae/Makefile index 6a4941d11dfd..b9e1e6bf16b6 100644 --- a/sys/modules/ae/Makefile +++ b/sys/modules/ae/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ae KMOD= if_ae SRCS= if_ae.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h .include diff --git a/sys/modules/aesni/Makefile b/sys/modules/aesni/Makefile index cb8c744adde4..2ae256e40e89 100644 --- a/sys/modules/aesni/Makefile +++ b/sys/modules/aesni/Makefile @@ -1,49 +1,48 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/crypto/aesni .PATH: ${SRCTOP}/contrib/llvm-project/clang/lib/Headers KMOD= aesni SRCS= aesni.c SRCS+= aeskeys_${MACHINE_CPUARCH}.S SRCS+= device_if.h bus_if.h opt_bus.h cryptodev_if.h OBJS+= aesni_ghash.o aesni_wrap.o aesni_ccm.o OBJS+= intel_sha1.o intel_sha256.o # Remove -nostdinc so we can get the intrinsics. aesni_ghash.o: aesni_ghash.c ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${PROF} \ -mmmx -msse -msse4 -maes -mpclmul ${.IMPSRC} ${CTFCONVERT_CMD} aesni_ccm.o: aesni_ccm.c ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${PROF} \ -mmmx -msse -msse4 -maes -mpclmul ${.IMPSRC} ${CTFCONVERT_CMD} aesni_wrap.o: aesni_wrap.c ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${PROF} \ -mmmx -msse -msse4 -maes ${.IMPSRC} ${CTFCONVERT_CMD} intel_sha1.o: intel_sha1.c ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${PROF} \ -mmmx -msse -msse4 -msha ${.IMPSRC} ${CTFCONVERT_CMD} intel_sha256.o: intel_sha256.c ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${PROF} \ -mmmx -msse -msse4 -msha ${.IMPSRC} ${CTFCONVERT_CMD} aesni_ghash.o: aesni.h aesni_wrap.o: aesni.h aesni_ccm.o: aesni.h intel_sha1.o: sha_sse.h immintrin.h shaintrin.h tmmintrin.h xmmintrin.h intel_sha256.o: sha_sse.h immintrin.h shaintrin.h tmmintrin.h xmmintrin.h .include CWARNFLAGS.aesni_ghash.c= ${NO_WCAST_QUAL} CWARNFLAGS.aesni_wrap.c= ${NO_WCAST_QUAL} diff --git a/sys/modules/age/Makefile b/sys/modules/age/Makefile index add3f66bcd3a..e1e895222b2c 100644 --- a/sys/modules/age/Makefile +++ b/sys/modules/age/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/age KMOD= if_age SRCS= if_age.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h .include diff --git a/sys/modules/agp/Makefile b/sys/modules/agp/Makefile index a96dfc9fa7c4..c5ce53d2ef13 100644 --- a/sys/modules/agp/Makefile +++ b/sys/modules/agp/Makefile @@ -1,47 +1,46 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/agp KMOD= agp SRCS= agp.c agp_if.c .if ${MACHINE_CPUARCH} == "i386" SRCS+= agp_i810.c agp_intel.c agp_via.c agp_sis.c agp_ali.c agp_amd.c \ agp_nvidia.c agp_ati.c .endif .if ${MACHINE} == "i386" SRCS+= agp_amd64.c .endif .if ${MACHINE_CPUARCH} == "amd64" SRCS+= agp_amd64.c agp_i810.c agp_via.c .endif .if ${MACHINE_CPUARCH} == "powerpc" SRCS+= agp_apple.c .endif SRCS+= device_if.h bus_if.h agp_if.h pci_if.h SRCS+= opt_agp.h EXPORT_SYMS= agp_find_device \ agp_state \ agp_acquire \ agp_release \ agp_enable \ agp_alloc_memory \ agp_free_memory \ agp_bind_memory \ agp_unbind_memory \ agp_memory_info .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" EXPORT_SYMS+= intel_gtt_clear_range \ intel_gtt_insert_pages \ intel_gtt_install_pte \ intel_gtt_get \ intel_gtt_chipset_flush \ intel_gtt_unmap_memory \ intel_gtt_map_memory \ intel_gtt_insert_sg_entries \ intel_gtt_get_bridge_device .endif .include diff --git a/sys/modules/ahci/Makefile b/sys/modules/ahci/Makefile index 7085927715db..b7d8aadc4fc0 100644 --- a/sys/modules/ahci/Makefile +++ b/sys/modules/ahci/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ahci KMOD= ahci SRCS= ahci.c ahci_pci.c ahciem.c ahci.h device_if.h bus_if.h pci_if.h opt_cam.h .if ${MACHINE_CPUARCH} == "aarch64" SRCS+= ahci_generic.c acpi_if.h ofw_bus_if.h .endif .include diff --git a/sys/modules/aic7xxx/Makefile b/sys/modules/aic7xxx/Makefile index 9bf3e52fd196..720a7709a31d 100644 --- a/sys/modules/aic7xxx/Makefile +++ b/sys/modules/aic7xxx/Makefile @@ -1,22 +1,20 @@ -# $FreeBSD$ - SUBDIR= ahc ahd firmware: aicasm/aicasm ahdfirmware ahcfirmware aicasm/aicasm: ( cd ${.CURDIR}/aicasm ; ${MAKE} aicasm ) ahdfirmware: ( cd ${.CURDIR}/ahd ; ${MAKE} ahdfirmware ) ahcfirmware: ( cd ${.CURDIR}/ahc ; ${MAKE} ahcfirmware ) cleanfirmware: ( cd .${CURDIR}/aicasm ; ${MAKE} clean ) ( cd .${CURDIR}/ahc ; ${MAKE} cleanfirmware ) ( cd .${CURDIR}/ahd ; ${MAKE} cleanfirmware ) .include diff --git a/sys/modules/aic7xxx/Makefile.inc b/sys/modules/aic7xxx/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/aic7xxx/Makefile.inc +++ b/sys/modules/aic7xxx/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/aic7xxx/ahc/Makefile b/sys/modules/aic7xxx/ahc/Makefile index 57451e77f2a1..8fc4c68feebb 100644 --- a/sys/modules/aic7xxx/ahc/Makefile +++ b/sys/modules/aic7xxx/ahc/Makefile @@ -1,57 +1,55 @@ -# $FreeBSD$ - SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/dev/aic7xxx KMOD= ahc SUBDIR+= ahc_isa ahc_pci GENSRCS= aic7xxx_seq.h aic7xxx_reg.h # AHC_REG_PRETTY_PRINT=1 REG_PRINT_OPT= .ifdef AHC_REG_PRETTY_PRINT GENSRCS+= aic7xxx_reg_print.c CFLAGS+= -DAHC_REG_PRETTY_PRINT=1 REG_PRINT_OPT= -p aic7xxx_reg_print.c .endif BEFORE_DEPEND = ${GENSRCS} ../aicasm/aicasm: ${SYSDIR}/dev/aic7xxx/aicasm/*.[chyl] ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) .if make(ahcfirmware) ahcfirmware: ${GENSRCS} ${GENSRCS}: \ ${SYSDIR}/dev/aic7xxx/aic7xxx.{reg,seq} \ ${SYSDIR}/cam/scsi/scsi_message.h ../aicasm/aicasm ${INCLUDES} -I${SYSDIR}/cam/scsi \ -I${SYSDIR}/dev/aic7xxx \ -o aic7xxx_seq.h -r aic7xxx_reg.h \ ${REG_PRINT_OPT} \ -i ${SYSDIR}/dev/aic7xxx/aic7xxx_osm.h \ ${SYSDIR}/dev/aic7xxx/aic7xxx.seq .elif defined(.MAKE.LEVEL) # This target interfers with fmake's world view and causes this message # to appear when building the tree from 8.x worlds where fmake is the # default. fmake doens't define .MAKE.LEVEL so key off that to omit it, # while still allowing more-modern makes to theoretically update things. ${GENSRCS}: .NOMETA @echo "Error: ${.TARGET} is missing. Run 'make ahcfirmware'" .endif SRCS= ${GENSRCS} SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c aic7770.c SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h .if make(cleanfirmware) cleanfirmware: clean CLEANFILES= ${GENSRCS} .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/aic7xxx/ahc/Makefile.inc b/sys/modules/aic7xxx/ahc/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/aic7xxx/ahc/Makefile.inc +++ b/sys/modules/aic7xxx/ahc/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/aic7xxx/ahc/ahc_isa/Makefile b/sys/modules/aic7xxx/ahc/ahc_isa/Makefile index 301e095e5c2a..0d33d08e6e1e 100644 --- a/sys/modules/aic7xxx/ahc/ahc_isa/Makefile +++ b/sys/modules/aic7xxx/ahc/ahc_isa/Makefile @@ -1,13 +1,11 @@ -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/aic7xxx KMOD= ahc_isa SRCS= ahc_isa.c SRCS+= device_if.h bus_if.h pci_if.h isa_if.h SRCS+= opt_scsi.h opt_cam.h opt_aic7xxx.h CFLAGS+= -I${SRCTOP}/sys/dev/aic7xxx -I.. .include diff --git a/sys/modules/aic7xxx/ahc/ahc_pci/Makefile b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile index 7d59c868c853..5b4059f2ceff 100644 --- a/sys/modules/aic7xxx/ahc/ahc_pci/Makefile +++ b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile @@ -1,15 +1,13 @@ -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/aic7xxx KMOD= ahc_pci SRCS= ahc_pci.c aic7xxx_pci.c SRCS+= device_if.h bus_if.h pci_if.h SRCS+= opt_scsi.h opt_cam.h opt_aic7xxx.h CFLAGS+= -I${SRCTOP}/sys/dev/aic7xxx -I.. .include CWARNFLAGS.ahc_pci.c= ${NO_WCONSTANT_CONVERSION} diff --git a/sys/modules/aic7xxx/ahd/Makefile b/sys/modules/aic7xxx/ahd/Makefile index f6a9f0bdbd81..2fff21f332e9 100644 --- a/sys/modules/aic7xxx/ahd/Makefile +++ b/sys/modules/aic7xxx/ahd/Makefile @@ -1,46 +1,44 @@ -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/aic7xxx KMOD= ahd GENSRCS= aic79xx_seq.h aic79xx_reg.h REG_PRINT_OPT= # AHD_REG_PRETTY_PRINT=1 .ifdef AHD_REG_PRETTY_PRINT GENSRCS += aic79xx_reg_print.c CFLAGS+= -DAHD_REG_PRETTY_PRINT=1 REG_PRINT_OPT= -p aic79xx_reg_print.c .endif BEFORE_DEPEND= ${GENSRCS} .if make(ahdfirmware) ahdfirmware: ${GENSRCS} ${GENSRCS}: \ ${SRCTOP}/sys/dev/aic7xxx/aic79xx.{reg,seq} \ ${SRCTOP}/sys/cam/scsi/scsi_message.h aicasm ${INCLUDES} -I${SRCTOP}/sys/cam/scsi \ -I${SRCTOP}/sys/dev/aic7xxx \ -o aic79xx_seq.h -r aic79xx_reg.h \ ${REG_PRINT_OPT} \ -i ${SRCTOP}/sys/dev/aic7xxx/aic79xx_osm.h \ ${SRCTOP}/sys/dev/aic7xxx/aic79xx.seq .else ${GENSRCS}: .NOMETA @echo "Error: ${.TARGET} is missing. Run 'make ahdfirmware'." .endif SRCS= ${GENSRCS} SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h SRCS+= device_if.h bus_if.h pci_if.h .if make(cleanfirmware) cleanfirmware: clean CLEANFILES= ${GENSRCS} .endif .include CWARNFLAGS.ahd_pci.c= ${NO_WCONSTANT_CONVERSION} diff --git a/sys/modules/aic7xxx/aicasm/Makefile b/sys/modules/aic7xxx/aicasm/Makefile index c5a7fc19cbd5..d1e744e3583e 100644 --- a/sys/modules/aic7xxx/aicasm/Makefile +++ b/sys/modules/aic7xxx/aicasm/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ MAKESRCPATH= ${SRCTOP}/sys/dev/aic7xxx/aicasm install: .include "${SRCTOP}/sys/dev/aic7xxx/aicasm/Makefile" build-tools: ${PROG} diff --git a/sys/modules/alc/Makefile b/sys/modules/alc/Makefile index 54d6186241cc..49aa0247cd43 100644 --- a/sys/modules/alc/Makefile +++ b/sys/modules/alc/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/alc KMOD= if_alc SRCS= if_alc.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h .include diff --git a/sys/modules/ale/Makefile b/sys/modules/ale/Makefile index 10aa9b0d280c..beed313e4953 100644 --- a/sys/modules/ale/Makefile +++ b/sys/modules/ale/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ale KMOD= if_ale SRCS= if_ale.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h .include diff --git a/sys/modules/allwinner/Makefile b/sys/modules/allwinner/Makefile index 35fe0dfef0dd..c74d772224db 100644 --- a/sys/modules/allwinner/Makefile +++ b/sys/modules/allwinner/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ # Build modules specific to Allwinner. SUBDIR = \ aw_mmc \ aw_pwm \ aw_rtc \ aw_rsb \ aw_sid \ aw_spi \ aw_thermal \ axp81x \ if_awg .include diff --git a/sys/modules/allwinner/aw_mmc/Makefile b/sys/modules/allwinner/aw_mmc/Makefile index ebca6fec5418..450ba717829b 100644 --- a/sys/modules/allwinner/aw_mmc/Makefile +++ b/sys/modules/allwinner/aw_mmc/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/allwinner KMOD= aw_mmc SRCS= aw_mmc.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ mmc_pwrseq_if.h \ ofw_bus_if.h .include diff --git a/sys/modules/allwinner/aw_pwm/Makefile b/sys/modules/allwinner/aw_pwm/Makefile index 4f949bb562b8..2ffc5baab879 100644 --- a/sys/modules/allwinner/aw_pwm/Makefile +++ b/sys/modules/allwinner/aw_pwm/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/allwinner KMOD= aw_pwm SRCS= aw_pwm.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ ofw_bus_if.h \ pwmbus_if.h .include diff --git a/sys/modules/allwinner/aw_rsb/Makefile b/sys/modules/allwinner/aw_rsb/Makefile index 40aebb2fb137..89f5ec687170 100644 --- a/sys/modules/allwinner/aw_rsb/Makefile +++ b/sys/modules/allwinner/aw_rsb/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/allwinner KMOD= aw_rsb SRCS= aw_rsb.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ ofw_bus_if.h \ iicbus_if.h .include diff --git a/sys/modules/allwinner/aw_rtc/Makefile b/sys/modules/allwinner/aw_rtc/Makefile index 9135d93a501c..0eaa9befd88e 100644 --- a/sys/modules/allwinner/aw_rtc/Makefile +++ b/sys/modules/allwinner/aw_rtc/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/allwinner KMOD= aw_rtc SRCS= aw_rtc.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ ofw_bus_if.h \ spibus_if.h \ .include diff --git a/sys/modules/allwinner/aw_sid/Makefile b/sys/modules/allwinner/aw_sid/Makefile index dc2beb74c874..edbaf33f1a0a 100644 --- a/sys/modules/allwinner/aw_sid/Makefile +++ b/sys/modules/allwinner/aw_sid/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/allwinner KMOD= aw_sid SRCS= aw_sid.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ ofw_bus_if.h \ .include diff --git a/sys/modules/allwinner/aw_spi/Makefile b/sys/modules/allwinner/aw_spi/Makefile index af49f87fa197..e26ffd6589e5 100644 --- a/sys/modules/allwinner/aw_spi/Makefile +++ b/sys/modules/allwinner/aw_spi/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/allwinner KMOD= aw_spi SRCS= aw_spi.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ ofw_bus_if.h \ spibus_if.h \ .include diff --git a/sys/modules/allwinner/aw_thermal/Makefile b/sys/modules/allwinner/aw_thermal/Makefile index 804fbc6db0d3..1552d420af87 100644 --- a/sys/modules/allwinner/aw_thermal/Makefile +++ b/sys/modules/allwinner/aw_thermal/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/allwinner KMOD= aw_thermal SRCS= aw_thermal.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ ofw_bus_if.h \ .include diff --git a/sys/modules/allwinner/axp81x/Makefile b/sys/modules/allwinner/axp81x/Makefile index 890046f355d2..589303de4caa 100644 --- a/sys/modules/allwinner/axp81x/Makefile +++ b/sys/modules/allwinner/axp81x/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/allwinner KMOD= axp81x SRCS= axp81x.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ ofw_bus_if.h \ iicbus_if.h .include diff --git a/sys/modules/allwinner/if_awg/Makefile b/sys/modules/allwinner/if_awg/Makefile index ffef575c7cd4..41d98909583e 100644 --- a/sys/modules/allwinner/if_awg/Makefile +++ b/sys/modules/allwinner/if_awg/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/allwinner KMOD= if_awg SRCS= if_awg.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ miibus_if.h \ ofw_bus_if.h .include diff --git a/sys/modules/alq/Makefile b/sys/modules/alq/Makefile index 858f2a55ded7..4eee884b3b07 100644 --- a/sys/modules/alq/Makefile +++ b/sys/modules/alq/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= alq SRCS= opt_mac.h vnode_if.h kern_alq.c EXPORT_SYMS= YES .include diff --git a/sys/modules/am335x_dmtpps/Makefile b/sys/modules/am335x_dmtpps/Makefile index 607f88d52d65..9fabb2aeaf40 100644 --- a/sys/modules/am335x_dmtpps/Makefile +++ b/sys/modules/am335x_dmtpps/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/ti/am335x KMOD= am335x_dmtpps SRCS= am335x_dmtpps.c SRCS+= bus_if.h device_if.h ofw_bus_if.h .include diff --git a/sys/modules/amd_ecc_inject/Makefile b/sys/modules/amd_ecc_inject/Makefile index 1e17eb31d0a2..93d26d73beef 100644 --- a/sys/modules/amd_ecc_inject/Makefile +++ b/sys/modules/amd_ecc_inject/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/amd_ecc_inject KMOD= amd_ecc_inject SRCS= ecc_inject.c bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/amdgpio/Makefile b/sys/modules/amdgpio/Makefile index 5cb038f42691..f825cd059bd4 100644 --- a/sys/modules/amdgpio/Makefile +++ b/sys/modules/amdgpio/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/amdgpio KMOD= amdgpio SRCS= amdgpio.c SRCS+= acpi_if.h device_if.h bus_if.h gpio_if.h pic_if.h opt_acpi.h opt_platform.h .include diff --git a/sys/modules/amdsbwd/Makefile b/sys/modules/amdsbwd/Makefile index 1398fa8c5484..78166c67c775 100644 --- a/sys/modules/amdsbwd/Makefile +++ b/sys/modules/amdsbwd/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/amdsbwd KMOD = amdsbwd SRCS = amdsbwd.c SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_amdsbwd.h .include diff --git a/sys/modules/amdsmb/Makefile b/sys/modules/amdsmb/Makefile index 112ca990596a..91762bf883da 100644 --- a/sys/modules/amdsmb/Makefile +++ b/sys/modules/amdsmb/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/amdsmb KMOD= amdsmb SRCS= amdsmb.c bus_if.h device_if.h pci_if.h smbus_if.h .include diff --git a/sys/modules/amdsmn/Makefile b/sys/modules/amdsmn/Makefile index 0e5e1b182548..f41b8ac5c2b5 100644 --- a/sys/modules/amdsmn/Makefile +++ b/sys/modules/amdsmn/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/amdsmn KMOD= amdsmn SRCS= amdsmn.c bus_if.h device_if.h pci_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/amdtemp/Makefile b/sys/modules/amdtemp/Makefile index f7e5ac64494b..04b2b7b1135d 100644 --- a/sys/modules/amdtemp/Makefile +++ b/sys/modules/amdtemp/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/amdtemp KMOD= amdtemp SRCS= amdtemp.c bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/aout/Makefile b/sys/modules/aout/Makefile index 3eb57c1be688..cd5f6b99dcb4 100644 --- a/sys/modules/aout/Makefile +++ b/sys/modules/aout/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= aout SRCS= imgact_aout.c \ vnode_if.h .include diff --git a/sys/modules/arcmsr/Makefile b/sys/modules/arcmsr/Makefile index 015adbbba403..ec5e69f73eb6 100644 --- a/sys/modules/arcmsr/Makefile +++ b/sys/modules/arcmsr/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/arcmsr KMOD= arcmsr SRCS= arcmsr.c SRCS+= opt_scsi.h opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/arm_ti/Makefile b/sys/modules/arm_ti/Makefile index 38af3a93c455..a90d4aee3a60 100644 --- a/sys/modules/arm_ti/Makefile +++ b/sys/modules/arm_ti/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ # Build modules specific to Texas Instruments ARM SoCs. SUBDIR = \ ../am335x_dmtpps \ am335x_ehrpwm \ ti_i2c \ .include diff --git a/sys/modules/arm_ti/am335x_ehrpwm/Makefile b/sys/modules/arm_ti/am335x_ehrpwm/Makefile index affb7cdc3a96..75139fff2bb0 100644 --- a/sys/modules/arm_ti/am335x_ehrpwm/Makefile +++ b/sys/modules/arm_ti/am335x_ehrpwm/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/ti/am335x KMOD= am335x_ehrpwm SRCS= am335x_ehrpwm.c # Generated files... SRCS+= \ bus_if.h \ device_if.h \ ofw_bus_if.h \ pwmbus_if.h \ .include diff --git a/sys/modules/arm_ti/ti_i2c/Makefile b/sys/modules/arm_ti/ti_i2c/Makefile index d0fbd5f1ca0a..3a5e1a35b2a4 100644 --- a/sys/modules/arm_ti/ti_i2c/Makefile +++ b/sys/modules/arm_ti/ti_i2c/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/ti KMOD= ti_i2c SRCS= ti_i2c.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ ofw_bus_if.h \ .include diff --git a/sys/modules/armv8crypto/Makefile b/sys/modules/armv8crypto/Makefile index b252a72609be..da8e962c0307 100644 --- a/sys/modules/armv8crypto/Makefile +++ b/sys/modules/armv8crypto/Makefile @@ -1,36 +1,35 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/crypto/armv8 .PATH: ${SRCTOP}/sys/crypto/openssl/aarch64 KMOD= armv8crypto SRCS= armv8_crypto.c SRCS+= device_if.h bus_if.h opt_bus.h cryptodev_if.h OBJS+= armv8_crypto_wrap.o aesv8-armx.o ghashv8-armx.o # Remove -nostdinc so we can get the intrinsics. armv8_crypto_wrap.o: armv8_crypto_wrap.c ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} \ -I${SRCTOP}/sys/crypto/armv8 \ ${WERROR} ${PROF} \ -march=armv8-a+crypto ${.IMPSRC} ${CTFCONVERT_CMD} aesv8-armx.o: aesv8-armx.S ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} \ -I${SRCTOP}/sys/crypto/armv8 \ ${WERROR} ${PROF} \ -march=armv8-a+crypto ${.IMPSRC} ${CTFCONVERT_CMD} ghashv8-armx.o: ghashv8-armx.S ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} \ -I${SRCTOP}/sys/crypto/armv8 \ ${WERROR} ${PROF} \ -march=armv8-a+crypto ${.IMPSRC} ${CTFCONVERT_CMD} armv8_crypto_wrap.o: armv8_crypto.h .include diff --git a/sys/modules/asmc/Makefile b/sys/modules/asmc/Makefile index 152b837cafd4..70d8ed845900 100644 --- a/sys/modules/asmc/Makefile +++ b/sys/modules/asmc/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/asmc KMOD= asmc SRCS= asmc.c opt_acpi.h acpi_if.h bus_if.h device_if.h .include diff --git a/sys/modules/ata/Makefile b/sys/modules/ata/Makefile index c7d1b17f5f40..3a9ad0dd123f 100644 --- a/sys/modules/ata/Makefile +++ b/sys/modules/ata/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ SUBDIR = atacore SUBDIR += ataisa SUBDIR += atapci .include diff --git a/sys/modules/ata/Makefile.inc b/sys/modules/ata/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/ata/Makefile.inc +++ b/sys/modules/ata/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/ata/atacore/Makefile b/sys/modules/ata/atacore/Makefile index f0cd0b4349d3..f4eff60f7b86 100644 --- a/sys/modules/ata/atacore/Makefile +++ b/sys/modules/ata/atacore/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata KMOD= ata SRCS= ata-all.c ata_if.c ata-lowlevel.c SRCS+= ata_if.h bus_if.h device_if.h opt_cam.h pci_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/ata/ataisa/Makefile b/sys/modules/ata/ataisa/Makefile index 38b782870029..7aab7b999be6 100644 --- a/sys/modules/ata/ataisa/Makefile +++ b/sys/modules/ata/ataisa/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata KMOD= ataisa SRCS= ata-isa.c SRCS+= ata_if.h bus_if.h device_if.h isa_if.h .include diff --git a/sys/modules/ata/atapci/Makefile b/sys/modules/ata/atapci/Makefile index bc00b57728ee..dfabcf765a16 100644 --- a/sys/modules/ata/atapci/Makefile +++ b/sys/modules/ata/atapci/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ SUBDIR += chipsets .PATH: ${SRCTOP}/sys/dev/ata KMOD= atapci SRCS= ata-pci.c ata-dma.c ata-sata.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/ata/atapci/Makefile.inc b/sys/modules/ata/atapci/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/ata/atapci/Makefile.inc +++ b/sys/modules/ata/atapci/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/ata/atapci/chipsets/Makefile b/sys/modules/ata/atapci/chipsets/Makefile index c216656637b4..c17c84e6496c 100644 --- a/sys/modules/ata/atapci/chipsets/Makefile +++ b/sys/modules/ata/atapci/chipsets/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ SUBDIR += ataacard ataacerlabs ataamd ataati atacenatek atacypress atacyrix atahighpoint ataintel ataite atajmicron atamarvell atamicron atanational atanetcell atanvidia atapromise ataserverworks atasiliconimage atasis atavia .include diff --git a/sys/modules/ata/atapci/chipsets/Makefile.inc b/sys/modules/ata/atapci/chipsets/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/ata/atapci/chipsets/Makefile.inc +++ b/sys/modules/ata/atapci/chipsets/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/ata/atapci/chipsets/ataacard/Makefile b/sys/modules/ata/atapci/chipsets/ataacard/Makefile index 99c4c3620286..23ced8d7473b 100644 --- a/sys/modules/ata/atapci/chipsets/ataacard/Makefile +++ b/sys/modules/ata/atapci/chipsets/ataacard/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= ataacard SRCS= ata-acard.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/ataacerlabs/Makefile b/sys/modules/ata/atapci/chipsets/ataacerlabs/Makefile index 8684293ca9e2..971d626dc12c 100644 --- a/sys/modules/ata/atapci/chipsets/ataacerlabs/Makefile +++ b/sys/modules/ata/atapci/chipsets/ataacerlabs/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= ataacerlabs SRCS= ata-acerlabs.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/ataamd/Makefile b/sys/modules/ata/atapci/chipsets/ataamd/Makefile index 96ed09d1e8f4..eff9a378b130 100644 --- a/sys/modules/ata/atapci/chipsets/ataamd/Makefile +++ b/sys/modules/ata/atapci/chipsets/ataamd/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= ataamd SRCS= ata-amd.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/ataati/Makefile b/sys/modules/ata/atapci/chipsets/ataati/Makefile index f7d524b64b5d..6bd4a306f6dd 100644 --- a/sys/modules/ata/atapci/chipsets/ataati/Makefile +++ b/sys/modules/ata/atapci/chipsets/ataati/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= ataati SRCS= ata-ati.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atacenatek/Makefile b/sys/modules/ata/atapci/chipsets/atacenatek/Makefile index 336052712738..7c9cec4c3ee8 100644 --- a/sys/modules/ata/atapci/chipsets/atacenatek/Makefile +++ b/sys/modules/ata/atapci/chipsets/atacenatek/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atacenatek SRCS= ata-cenatek.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atacypress/Makefile b/sys/modules/ata/atapci/chipsets/atacypress/Makefile index 284b6fb6a47c..c0dae4ce6143 100644 --- a/sys/modules/ata/atapci/chipsets/atacypress/Makefile +++ b/sys/modules/ata/atapci/chipsets/atacypress/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atacypress SRCS= ata-cypress.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atacyrix/Makefile b/sys/modules/ata/atapci/chipsets/atacyrix/Makefile index fe9296e8b403..7a39455ba1d1 100644 --- a/sys/modules/ata/atapci/chipsets/atacyrix/Makefile +++ b/sys/modules/ata/atapci/chipsets/atacyrix/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atacyrix SRCS= ata-cyrix.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atahighpoint/Makefile b/sys/modules/ata/atapci/chipsets/atahighpoint/Makefile index 2ef5eabbe09d..a889fc8ea47f 100644 --- a/sys/modules/ata/atapci/chipsets/atahighpoint/Makefile +++ b/sys/modules/ata/atapci/chipsets/atahighpoint/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atahighpoint SRCS= ata-highpoint.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/ataintel/Makefile b/sys/modules/ata/atapci/chipsets/ataintel/Makefile index 8ec8a91cfeaf..4734ccff6d7e 100644 --- a/sys/modules/ata/atapci/chipsets/ataintel/Makefile +++ b/sys/modules/ata/atapci/chipsets/ataintel/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= ataintel SRCS= ata-intel.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/ataite/Makefile b/sys/modules/ata/atapci/chipsets/ataite/Makefile index eabb064c0e36..e1a17c373b64 100644 --- a/sys/modules/ata/atapci/chipsets/ataite/Makefile +++ b/sys/modules/ata/atapci/chipsets/ataite/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= ataite SRCS= ata-ite.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atajmicron/Makefile b/sys/modules/ata/atapci/chipsets/atajmicron/Makefile index ddc75296ad64..71ee58d6e89e 100644 --- a/sys/modules/ata/atapci/chipsets/atajmicron/Makefile +++ b/sys/modules/ata/atapci/chipsets/atajmicron/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atajmicron SRCS= ata-jmicron.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atamarvell/Makefile b/sys/modules/ata/atapci/chipsets/atamarvell/Makefile index 0d77b3f4a2cb..9fccff592287 100644 --- a/sys/modules/ata/atapci/chipsets/atamarvell/Makefile +++ b/sys/modules/ata/atapci/chipsets/atamarvell/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atamarvell SRCS= ata-marvell.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atamicron/Makefile b/sys/modules/ata/atapci/chipsets/atamicron/Makefile index 2952a518c387..54934f6d11c3 100644 --- a/sys/modules/ata/atapci/chipsets/atamicron/Makefile +++ b/sys/modules/ata/atapci/chipsets/atamicron/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atamicron SRCS= ata-micron.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atanational/Makefile b/sys/modules/ata/atapci/chipsets/atanational/Makefile index a7a1ec8fc9ed..3e486b1637e3 100644 --- a/sys/modules/ata/atapci/chipsets/atanational/Makefile +++ b/sys/modules/ata/atapci/chipsets/atanational/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atanational SRCS= ata-national.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atanetcell/Makefile b/sys/modules/ata/atapci/chipsets/atanetcell/Makefile index 64bd6502f1f6..b317e950a22b 100644 --- a/sys/modules/ata/atapci/chipsets/atanetcell/Makefile +++ b/sys/modules/ata/atapci/chipsets/atanetcell/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atanetcell SRCS= ata-netcell.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atanvidia/Makefile b/sys/modules/ata/atapci/chipsets/atanvidia/Makefile index 4fd44374ce54..b4b720cfea13 100644 --- a/sys/modules/ata/atapci/chipsets/atanvidia/Makefile +++ b/sys/modules/ata/atapci/chipsets/atanvidia/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atanvidia SRCS= ata-nvidia.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atapromise/Makefile b/sys/modules/ata/atapci/chipsets/atapromise/Makefile index a53ddba17b31..d6296769f63f 100644 --- a/sys/modules/ata/atapci/chipsets/atapromise/Makefile +++ b/sys/modules/ata/atapci/chipsets/atapromise/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atapromise SRCS= ata-promise.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/ataserverworks/Makefile b/sys/modules/ata/atapci/chipsets/ataserverworks/Makefile index 1f731ff27114..76662f0a81c9 100644 --- a/sys/modules/ata/atapci/chipsets/ataserverworks/Makefile +++ b/sys/modules/ata/atapci/chipsets/ataserverworks/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= ataserverworks SRCS= ata-serverworks.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile b/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile index 52e806366d0e..3bb7248468f3 100644 --- a/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile +++ b/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atasiliconimage SRCS= ata-siliconimage.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/ata/atapci/chipsets/atasis/Makefile b/sys/modules/ata/atapci/chipsets/atasis/Makefile index 8e6b1cb7e785..16252fff2861 100644 --- a/sys/modules/ata/atapci/chipsets/atasis/Makefile +++ b/sys/modules/ata/atapci/chipsets/atasis/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atasis SRCS= ata-sis.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ata/atapci/chipsets/atavia/Makefile b/sys/modules/ata/atapci/chipsets/atavia/Makefile index 75a164099469..04a76295277f 100644 --- a/sys/modules/ata/atapci/chipsets/atavia/Makefile +++ b/sys/modules/ata/atapci/chipsets/atavia/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ata/chipsets KMOD= atavia SRCS= ata-via.c SRCS+= ata_if.h bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/ath/Makefile b/sys/modules/ath/Makefile index c312058a4abf..7a6b38438032 100644 --- a/sys/modules/ath/Makefile +++ b/sys/modules/ath/Makefile @@ -1,45 +1,44 @@ # # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/ath .PATH: ${SRCTOP}/sys/dev/ath/ath_hal KMOD= if_ath SRCS= if_ath_drv.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ .include CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath10k/Makefile b/sys/modules/ath10k/Makefile index cfbdab5eb008..318b49fe43a1 100644 --- a/sys/modules/ath10k/Makefile +++ b/sys/modules/ath10k/Makefile @@ -1,50 +1,49 @@ -# $FreeBSD$ DEVATH10KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath10k .PATH: ${DEVATH10KDIR} WITH_CONFIG_FWLOG= 1 KMOD= if_ath10k SRCS+= core.c debug.c mac.c ce.c hw.c bmi.c SRCS+= htc.c htt.c htt_rx.c htt_tx.c SRCS+= txrx.c wmi.c wmi-tlv.c SRCS+= p2p.c swap.c SRCS+= pci.c # Other SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h .if defined(WITH_CONFIG_FWLOG) && ${WITH_CONFIG_FWLOG} > 0 SRCS+= fwlog.c CFLAGS+= -DCONFIG_FWLOG=${WITH_CONFIG_FWLOG} .endif CFLAGS+= -DKBUILD_MODNAME='"ath10k"' CFLAGS+= -I${DEVATH10KDIR} CFLAGS+= -I${DEVATH10KDIR}/.. CFLAGS+= ${LINUXKPI_INCLUDES} # Helpful after fresh imports. #CFLAGS+= -ferror-limit=0 CFLAGS+= -DCONFIG_ATH10K_DEBUG #CFLAGS+= -DCONFIG_ATH10K_AHB #CFLAGS+= -DCONFIG_ATH10K_DEBUGFS #CFLAGS+= -DCONFIG_ATH10K_DFS_CERTIFIED #CFLAGS+= -DCONFIG_ATH10K_SPECTRAL #CFLAGS+= -DCONFIG_ATH10K_TRACING #CFLAGS+= -DCONFIG_DEV_COREDUMP #CFLAGS+= -DCONFIG_MAC80211_DEBUGFS #CFLAGS+= -DCONFIG_MAC80211_MESH #CFLAGS+= -DCONFIG_NL80211_TESTMODE #CFLAGS+= -DCONFIG_PM #CFLAGS+= -DCONFIG_PM_SLEEP #CFLAGS+= -DCONFIG_THERMAL .include diff --git a/sys/modules/ath11k/Makefile b/sys/modules/ath11k/Makefile index f610fa35a817..e9d6d62e8e74 100644 --- a/sys/modules/ath11k/Makefile +++ b/sys/modules/ath11k/Makefile @@ -1,44 +1,43 @@ -# $FreeBSD$ DEVATH11KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath11k .PATH: ${DEVATH11KDIR} WITH_DEBUGFS= 0 # Does not yet compile KMOD= if_ath11k SRCS+= core.c hal.c hal_tx.c hal_rx.c SRCS+= wmi.c mac.c reg.c htc.c qmi.c SRCS+= dp.c dp_tx.c dp_rx.c debug.c SRCS+= ce.c peer.c dbring.c hw.c wow.c SRCS+= mhi.c pci.c # Other SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h CFLAGS+= -DKBUILD_MODNAME='"ath11k"' CFLAGS+= -I${DEVATH11KDIR} CFLAGS+= -I${DEVATH11KDIR}/.. CFLAGS+= ${LINUXKPI_INCLUDES} # Helpful after fresh imports. #CFLAGS+= -ferror-limit=0 CFLAGS+= -DCONFIG_ATH11K_DEBUG .if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 SRCS+= debugfs.c debugfs_htt_stats.c debugfs_sta.c CFLAGS+= -DCONFIG_ATH11K_DEBUGFS=${WITH_DEBUGFS} CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS} .endif #CFLAGS+= -DCONFIG_ATH11K_SPECTRAL #CFLAGS+= -DCONFIG_ATH11K_TRACING #CFLAGS+= -DCONFIG_NL80211_TESTMODE #CFLAGS+= -DCONFIG_PM #CFLAGS+= -DCONFIG_THERMAL .include diff --git a/sys/modules/ath_dfs/Makefile b/sys/modules/ath_dfs/Makefile index 93c6b64e23ce..4e0243178cca 100644 --- a/sys/modules/ath_dfs/Makefile +++ b/sys/modules/ath_dfs/Makefile @@ -1,49 +1,48 @@ # # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/ath KMOD= ath_dfs SRCS= if_ath_dfs.c # DFS .PATH: ${SRCTOP}/sys/dev/ath/ath_dfs/null SRCS+= dfs_null.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ .include CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_hal/Makefile b/sys/modules/ath_hal/Makefile index e21698918e76..15a124dcbf04 100644 --- a/sys/modules/ath_hal/Makefile +++ b/sys/modules/ath_hal/Makefile @@ -1,50 +1,49 @@ # # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/ath .PATH: ${SRCTOP}/sys/dev/ath/ath_hal KMOD= ath_hal SRCS= ah_osdep.c ah.c ah_regdomain.c SRCS+= ah_eeprom_v1.c ah_eeprom_v3.c ah_eeprom_v14.c ah_eeprom_v4k.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ .include EXPORT_SYMS= YES CWARNFLAGS.ah_regdomain.c= ${NO_WSHIFT_COUNT_NEGATIVE} ${NO_WSHIFT_COUNT_OVERFLOW} CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_hal_ar5210/Makefile b/sys/modules/ath_hal_ar5210/Makefile index 57302b01bdf3..6a73cef89ad9 100644 --- a/sys/modules/ath_hal_ar5210/Makefile +++ b/sys/modules/ath_hal_ar5210/Makefile @@ -1,55 +1,54 @@ # # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/ath KMOD= ath_hal_ar5210 # FreeBSD module loading pieces .PATH: ${SRCTOP}/sys/dev/ath/ SRCS= ah_osdep_ar5210.c # # AR5210 support; these are first generation 11a-only devices. # .PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar5210 SRCS+= ar5210_attach.c ar5210_beacon.c ar5210_interrupts.c \ ar5210_keycache.c ar5210_misc.c ar5210_phy.c ar5210_power.c \ ar5210_recv.c ar5210_reset.c ar5210_xmit.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ .include CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_hal_ar5211/Makefile b/sys/modules/ath_hal_ar5211/Makefile index 29f03932f640..5c2e6b40741f 100644 --- a/sys/modules/ath_hal_ar5211/Makefile +++ b/sys/modules/ath_hal_ar5211/Makefile @@ -1,57 +1,56 @@ # # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/ath .PATH: ${SRCTOP}/sys/dev/ath/ath_hal KMOD= ath_hal_ar5211 # FreeBSD module loading pieces .PATH: ${SRCTOP}/sys/dev/ath/ SRCS= ah_osdep_ar5211.c # # AR5211 support; these are second generation 11b/g/a devices # (but 11g was OFDM only and is not supported). # .PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar5211 SRCS+= ar5211_attach.c ar5211_beacon.c ar5211_interrupts.c \ ar5211_keycache.c ar5211_misc.c ar5211_phy.c ar5211_power.c \ ar5211_recv.c ar5211_reset.c ar5211_xmit.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ .include CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_hal_ar5212/Makefile b/sys/modules/ath_hal_ar5212/Makefile index 53ab389ba4e0..9c6eac976fa6 100644 --- a/sys/modules/ath_hal_ar5212/Makefile +++ b/sys/modules/ath_hal_ar5212/Makefile @@ -1,62 +1,61 @@ # # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/ath .PATH: ${SRCTOP}/sys/dev/ath/ath_hal KMOD= ath_hal_ar5212 # FreeBSD module loading pieces .PATH: ${SRCTOP}/sys/dev/ath/ SRCS= ah_osdep_ar5212.c # # AR5212 support; this covers almost all other pci/cardbus legacy parts. # .PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar5212 SRCS+= ar5212_ani.c ar5212_attach.c ar5212_beacon.c ar5212_eeprom.c \ ar5212_gpio.c ar5212_interrupts.c ar5212_keycache.c ar5212_misc.c \ ar5212_phy.c ar5212_power.c ar5212_recv.c ar5212_reset.c \ ar5212_rfgain.c ar5212_xmit.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h # RF backends SRCS+= ar5111.c SRCS+= ar5112.c SRCS+= ar2413.c SRCS+= ar2425.c SRCS+= ar5413.c CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ .include CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_hal_ar5416/Makefile b/sys/modules/ath_hal_ar5416/Makefile index c92c8209b516..b0885b55b1c0 100644 --- a/sys/modules/ath_hal_ar5416/Makefile +++ b/sys/modules/ath_hal_ar5416/Makefile @@ -1,84 +1,83 @@ # # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/ath .PATH: ${SRCTOP}/sys/dev/ath/ath_hal KMOD= ath_hal_ar5416 # FreeBSD module loading pieces .PATH: ${SRCTOP}/sys/dev/ath/ SRCS= ah_osdep_ar5416.c # # AR5416, AR9130, AR9160, AR9220, AR9280, AR9285, AR9287 support. # # NB: 9160 depends on 5416 but 5416 does not require 9160 # # + 5416 (Owl) .PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar5416 SRCS+= ar5416_ani.c ar5416_attach.c ar5416_beacon.c ar5416_btcoex.c \ ar5416_cal.c ar5416_cal_iq.c ar5416_cal_adcgain.c ar5416_cal_adcdc.c \ ar5416_eeprom.c ar5416_gpio.c ar5416_interrupts.c ar5416_keycache.c \ ar5416_misc.c ar5416_phy.c ar5416_power.c ar5416_radar.c ar5416_spectral.c \ ar5416_recv.c ar5416_reset.c ar5416_xmit.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h # RF backend for 5416, 9130 and 9160 SRCS+= ar2133.c # + AR9160 (Sowl) .PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar9001 SRCS+= ar9160_attach.c # AR9002 series chips # + AR9220/AR9280 - Merlin .PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar9002 SRCS+= ar9280.c ar9280_attach.c ar9280_olc.c # + AR9285 - Kite SRCS+= ar9285.c ar9285_reset.c ar9285_attach.c ar9285_cal.c ar9285_phy.c SRCS+= ar9285_diversity.c ar9285_btcoex.c # + AR9287 - Kiwi .PATH: ${SRCTOP}/sys/dev/ath/ath_hal SRCS+= ah_eeprom_9287.c .PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar9002 SRCS+= ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ .include CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_hal_ar9300/Makefile b/sys/modules/ath_hal_ar9300/Makefile index 1145777f1838..57e566f5bac9 100644 --- a/sys/modules/ath_hal_ar9300/Makefile +++ b/sys/modules/ath_hal_ar9300/Makefile @@ -1,60 +1,59 @@ # # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/ath .PATH: ${SRCTOP}/sys/dev/ath/ath_hal KMOD= ath_hal_ar9300 # FreeBSD module loading pieces .PATH: ${SRCTOP}/sys/dev/ath/ SRCS= ah_osdep_ar9300.c # + AR9300 HAL .PATH: ${SRCTOP}/sys/contrib/dev/ath/ath_hal/ar9300 SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c SRCS+= ar9300_power.c ar9300_timer.c ar9300_spectral.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ .include # AR9300 HAL build overrides, as there's still some code to tidy up CWARNFLAGS.ar9300_eeprom.c= ${NO_WCONSTANT_CONVERSION} CWARNFLAGS.ar9300_reset.c= ${NO_WSOMETIMES_UNINITIALIZED} -Wno-unused-function CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_main/Makefile b/sys/modules/ath_main/Makefile index 6a08874115ac..5b479ce67a48 100644 --- a/sys/modules/ath_main/Makefile +++ b/sys/modules/ath_main/Makefile @@ -1,54 +1,53 @@ # # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # ATH_RATE?= sample # tx rate control algorithm .PATH: ${SRCTOP}/sys/dev/ath .PATH: ${SRCTOP}/sys/dev/ath/ath_hal KMOD= ath_main SRCS= if_ath.c if_ath_alq.c if_ath_debug.c if_ath_keycache.c if_ath_sysctl.c SRCS+= if_ath_tx.c if_ath_tx_ht.c if_ath_led.c if_ath_rx.c if_ath_tdma.c SRCS+= if_ath_beacon.c if_ath_rx_edma.c if_ath_tx_edma.c if_ath_spectral.c SRCS+= if_ath_btcoex.c if_ath_btcoex_mci.c if_ath_lna_div.c if_ath_ioctl.c if_ath_descdma.c SRCS+= if_ath_pci.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ CFLAGS+= ${ATH_CFLAGS} .include # XXX Work around clang warnings, until maintainer approves fix. CWARNFLAGS.if_ath.c= ${NO_WSOMETIMES_UNINITIALIZED} CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_rate/Makefile b/sys/modules/ath_rate/Makefile index b36c1b426d30..537f59ef3eef 100644 --- a/sys/modules/ath_rate/Makefile +++ b/sys/modules/ath_rate/Makefile @@ -1,59 +1,58 @@ # # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # ATH_RATE?= sample # tx rate control algorithm .PATH: ${SRCTOP}/sys/dev/ath KMOD= ath_rate SRCS= if_ath_rate.c # NB: rate control is bound to the driver by symbol names so only pick one .if ${ATH_RATE} == "sample" .PATH: ${SRCTOP}/sys/dev/ath/ath_rate/sample SRCS+= sample.c .elif ${ATH_RATE} == "onoe" .PATH: ${SRCTOP}/sys/dev/ath/ath_rate/onoe SRCS+= onoe.c .elif ${ATH_RATE} == "amrr" .PATH: ${SRCTOP}/sys/dev/ath/ath_rate/amrr SRCS+= amrr.c .endif SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ .include CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/athk_common/Makefile b/sys/modules/athk_common/Makefile index 1fceb9b8fb34..284e1b187405 100644 --- a/sys/modules/athk_common/Makefile +++ b/sys/modules/athk_common/Makefile @@ -1,37 +1,36 @@ -# $FreeBSD$ DEVDIR= ${SRCTOP}/sys/contrib/dev/athk .PATH: ${DEVDIR} KMOD= athk_common WITH_ATH_DEBUG= 1 WITH_ATH_TRACEPOINTS= 0 SRCS= main.c SRCS+= dfs_pattern_detector.c dfs_pri_detector.c SRCS+= hw.c key.c regd.c .if defined(WITH_ATH_DEBUG) && ${WITH_ATH_DEBUG} > 0 SRCS+= debug.c CFLAGS+= -DCONFIG_ATH_DEBUG .endif .if defined(WITH_ATH_TRACEPOINTS) && ${WITH_ATH_TRACEPOINTS} > 0 SRCS+= trace.c CFLAGS+= -DCONFIG_ATH_TRACEPOINTS .endif # Other SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h CFLAGS+= -DKBUILD_MODNAME='"athk_common"' CFLAGS+= -I${DEVDIR} CFLAGS+= ${LINUXKPI_INCLUDES} # Helpful after fresh imports. #CFLAGS+= -ferror-limit=0 .include diff --git a/sys/modules/autofs/Makefile b/sys/modules/autofs/Makefile index e6e93536677c..3fbd3a7db707 100644 --- a/sys/modules/autofs/Makefile +++ b/sys/modules/autofs/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/autofs KMOD= autofs SRCS= vnode_if.h \ autofs.c \ autofs_vnops.c \ autofs_vfsops.c .include diff --git a/sys/modules/axgbe/Makefile b/sys/modules/axgbe/Makefile index 9bf694ef2e3f..bc5c5b1299f3 100644 --- a/sys/modules/axgbe/Makefile +++ b/sys/modules/axgbe/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .if ${MACHINE_CPUARCH} == "aarch64" SUBDIR= if_axa .elif ${MACHINE_CPUARCH} == "amd64" SUBDIR= if_axp .endif .include diff --git a/sys/modules/axgbe/if_axa/Makefile b/sys/modules/axgbe/if_axa/Makefile index ed4d285b7ff1..088e4383b9e0 100644 --- a/sys/modules/axgbe/if_axa/Makefile +++ b/sys/modules/axgbe/if_axa/Makefile @@ -1,12 +1,11 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/axgbe KMOD = if_axa SRCS = device_if.h bus_if.h miibus_if.h ofw_bus_if.h ifdi_if.h vnode_if.h SRCS += opt_inet.h opt_inet6.h opt_rss.h opt_iflib.h opt_platform.h SRCS += if_axgbe.c xgbe-sysctl.c xgbe_osdep.c xgbe-desc.c xgbe-drv.c xgbe-mdio.c xgbe-dev.c xgbe-i2c.c xgbe-phy-v1.c xgbe-txrx.c CFLAGS+= ${LINUXKPI_INCLUDES} .include diff --git a/sys/modules/axgbe/if_axp/Makefile b/sys/modules/axgbe/if_axp/Makefile index 60b8d24b0909..6cab3317c1e2 100644 --- a/sys/modules/axgbe/if_axp/Makefile +++ b/sys/modules/axgbe/if_axp/Makefile @@ -1,12 +1,11 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/axgbe KMOD = if_axp SRCS = device_if.h bus_if.h miibus_if.h pci_if.h ifdi_if.h vnode_if.h SRCS += opt_inet.h opt_inet6.h opt_rss.h opt_iflib.h opt_platform.h SRCS += if_axgbe_pci.c xgbe-sysctl.c xgbe_osdep.c xgbe-desc.c xgbe-drv.c xgbe-mdio.c xgbe-dev.c xgbe-i2c.c xgbe-phy-v2.c xgbe-txrx.c CFLAGS+= ${LINUXKPI_INCLUDES} .include diff --git a/sys/modules/backlight/Makefile b/sys/modules/backlight/Makefile index 31de4e804127..48c45d785ada 100644 --- a/sys/modules/backlight/Makefile +++ b/sys/modules/backlight/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/backlight KMOD= backlight SRCS= backlight.c SRCS+= bus_if.h \ device_if.h \ opt_platform.h \ backlight_if.h \ backlight_if.c EXPORT_SYMS= YES .include diff --git a/sys/modules/bce/Makefile b/sys/modules/bce/Makefile index 5998c2864180..6e6756f5fbc2 100644 --- a/sys/modules/bce/Makefile +++ b/sys/modules/bce/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bce KMOD= if_bce SRCS= opt_platform.h opt_bce.h if_bce.c miibus_if.h miidevs.h device_if.h bus_if.h pci_if.h #CFLAGS += -DBCE_DEBUG=0 .include diff --git a/sys/modules/bcm283x_clkman/Makefile b/sys/modules/bcm283x_clkman/Makefile index b8d14f8c9b0d..06ae3cfc5668 100644 --- a/sys/modules/bcm283x_clkman/Makefile +++ b/sys/modules/bcm283x_clkman/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/broadcom/bcm2835/ KMOD= bcm283x_clkman SRCS= bcm2835_clkman.c EXPORT_SYMS= bcm2835_clkman_set_frequency SRCS+= bus_if.h device_if.h ofw_bus_if.h .include diff --git a/sys/modules/bcm283x_pwm/Makefile b/sys/modules/bcm283x_pwm/Makefile index cb51c4ea36ae..16f3364ef8e4 100644 --- a/sys/modules/bcm283x_pwm/Makefile +++ b/sys/modules/bcm283x_pwm/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/broadcom/bcm2835/ KMOD= bcm283x_pwm SRCS= bcm2835_pwm.c SRCS+= bus_if.h device_if.h ofw_bus_if.h .include diff --git a/sys/modules/bfe/Makefile b/sys/modules/bfe/Makefile index 9e558c044eda..99458b2bec7b 100644 --- a/sys/modules/bfe/Makefile +++ b/sys/modules/bfe/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bfe KMOD= if_bfe SRCS= if_bfe.c miibus_if.h miidevs.h device_if.h bus_if.h pci_if.h opt_platform.h .include diff --git a/sys/modules/bge/Makefile b/sys/modules/bge/Makefile index 46a4946d4f21..4ded89da977b 100644 --- a/sys/modules/bge/Makefile +++ b/sys/modules/bge/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bge KMOD= if_bge SRCS= if_bge.c miibus_if.h miidevs.h device_if.h bus_if.h pci_if.h opt_platform.h .include diff --git a/sys/modules/bhnd/Makefile b/sys/modules/bhnd/Makefile index 54a72a11e28d..032d33210079 100644 --- a/sys/modules/bhnd/Makefile +++ b/sys/modules/bhnd/Makefile @@ -1,77 +1,76 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd .PATH: ${SRCTOP}/sys/dev/bhnd/cores/chipc .PATH: ${SRCTOP}/sys/dev/bhnd/cores/chipc/pwrctl .PATH: ${SRCTOP}/sys/dev/bhnd/cores/pmu .PATH: ${SRCTOP}/sys/dev/bhnd/nvram KMOD= bhnd SRCS= bhnd.c bhnd_subr.c SRCS+= bhnd_bus_if.c bhnd_bus_if.h SRCS+= bhnd_erom.c SRCS+= bhnd_erom_if.c bhnd_erom_if.h # ChipCommon SRCS+= chipc.c chipc_subr.c SRCS+= chipc_gpio.c SRCS+= gpio_if.h ofw_bus_if.h SRCS+= opt_platform.h SRCS+= bhnd_sprom_chipc.c \ bhnd_pmu_chipc.c SRCS+= bhnd_pwrctl.c \ bhnd_pwrctl_subr.c \ bhnd_pwrctl_if.c \ bhnd_pwrctl_if.h SRCS+= bhnd_pwrctl_hostb_if.c bhnd_pwrctl_hostb_if.h SRCS+= bhnd_chipc_if.c bhnd_chipc_if.h # PMU SRCS+= bhnd_pmu.c \ bhnd_pmu_core.c \ bhnd_pmu_subr.c SRCS+= bhnd_pmu_if.c bhnd_pmu_if.h # NVRAM/SPROM SRCS+= bhnd_nvram_data.c \ bhnd_nvram_data_bcm.c \ bhnd_nvram_data_bcmraw.c \ bhnd_nvram_data_btxt.c \ bhnd_nvram_data_sprom.c \ bhnd_nvram_data_sprom_subr.c \ bhnd_nvram_data_tlv.c \ bhnd_nvram_io.c \ bhnd_nvram_iobuf.c \ bhnd_nvram_ioptr.c \ bhnd_nvram_iores.c \ bhnd_nvram_plist.c \ bhnd_nvram_store.c \ bhnd_nvram_store_subr.c \ bhnd_nvram_subr.c \ bhnd_nvram_value.c \ bhnd_nvram_value_fmts.c \ bhnd_nvram_value_prf.c \ bhnd_nvram_value_subr.c \ bhnd_sprom.c SRCS+= bhnd_nvram_map.h bhnd_nvram_map_data.h SRCS+= bhnd_nvram_if.c bhnd_nvram_if.h SRCS+= device_if.h bus_if.h SUBDIR= bcma \ bcma_bhndb \ bhndb \ bhndb_pci \ cores \ siba \ siba_bhndb EXPORT_SYMS= YES .include .include diff --git a/sys/modules/bhnd/bcma/Makefile b/sys/modules/bhnd/bcma/Makefile index 08a651d8477f..c329aa3c6e98 100644 --- a/sys/modules/bhnd/bcma/Makefile +++ b/sys/modules/bhnd/bcma/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd/bcma KMOD= bcma SRCS= bcma.c bcma_subr.c bcma_erom.c SRCS+= device_if.h bus_if.h SRCS+= bhnd_bus_if.h bhnd_erom_if.h bhnd_pmu_if.h .include diff --git a/sys/modules/bhnd/bcma_bhndb/Makefile b/sys/modules/bhnd/bcma_bhndb/Makefile index 7dd2f82b4761..c771985ecde4 100644 --- a/sys/modules/bhnd/bcma_bhndb/Makefile +++ b/sys/modules/bhnd/bcma_bhndb/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd/bcma KMOD= bcma_bhndb SRCS= bcma_bhndb.c SRCS+= bhnd_bus_if.h bhnd_erom_if.h SRCS+= bhndb_bus_if.h bhndb_if.h SRCS+= device_if.h bus_if.h .include diff --git a/sys/modules/bhnd/bhndb/Makefile b/sys/modules/bhnd/bhndb/Makefile index 12fcde7e049f..c4745f17b74e 100644 --- a/sys/modules/bhnd/bhndb/Makefile +++ b/sys/modules/bhnd/bhndb/Makefile @@ -1,20 +1,19 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd/bhndb KMOD= bhndb SRCS= bhndb.c bhndb_subr.c bhndb_hwdata.c \ bhnd_bhndb.c \ bhndb_bus_if.c bhndb_bus_if.h \ bhndb_if.c bhndb_if.h SRCS+= bhnd_bus_if.h \ bhnd_chipc_if.h \ bhnd_erom_if.h \ bhnd_pwrctl_hostb_if.h \ bhnd_nvram_if.h SRCS+= device_if.h bus_if.h pci_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/bhnd/bhndb_pci/Makefile b/sys/modules/bhnd/bhndb_pci/Makefile index 97aa7496e7ff..958502b29c0e 100644 --- a/sys/modules/bhnd/bhndb_pci/Makefile +++ b/sys/modules/bhnd/bhndb_pci/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd/bhndb KMOD= bhndb_pci SRCS= bhndb_pci.c bhndb_pci_hwdata.c \ bhndb_pci_sprom.c SRCS+= bhnd_bus_if.h bhndb_bus_if.h bhndb_if.h SRCS+= bhnd_erom_if.h SRCS+= bhnd_nvram_if.h SRCS+= bhnd_pwrctl_hostb_if.h SRCS+= device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/bhnd/cores/Makefile b/sys/modules/bhnd/cores/Makefile index 3c7398e38582..610d735f723d 100644 --- a/sys/modules/bhnd/cores/Makefile +++ b/sys/modules/bhnd/cores/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ SUBDIR= bhnd_pci \ bhnd_pci_hostb \ bhnd_pcib .include diff --git a/sys/modules/bhnd/cores/bhnd_pci/Makefile b/sys/modules/bhnd/cores/bhnd_pci/Makefile index 62bf96b68e98..96275c7d5ee8 100644 --- a/sys/modules/bhnd/cores/bhnd_pci/Makefile +++ b/sys/modules/bhnd/cores/bhnd_pci/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd/cores/pci .PATH: ${SRCTOP}/sys/dev/bhnd/cores/pcie2 KMOD= bhnd_pci SRCS= bhnd_pci.c bhnd_pcie2.c SRCS+= device_if.h bus_if.h bhnd_bus_if.h .include diff --git a/sys/modules/bhnd/cores/bhnd_pci_hostb/Makefile b/sys/modules/bhnd/cores/bhnd_pci_hostb/Makefile index 03f20f61ae52..a27d30f50677 100644 --- a/sys/modules/bhnd/cores/bhnd_pci_hostb/Makefile +++ b/sys/modules/bhnd/cores/bhnd_pci_hostb/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd/cores/pci .PATH: ${SRCTOP}/sys/dev/bhnd/cores/pcie2 KMOD= bhnd_pci_hostb SRCS= bhnd_pci_hostb.c bhnd_pcie2_hostb.c SRCS+= device_if.h bus_if.h pci_if.h \ bhnd_bus_if.h bhnd_chipc_if.h .include diff --git a/sys/modules/bhnd/cores/bhnd_pcib/Makefile b/sys/modules/bhnd/cores/bhnd_pcib/Makefile index be7b21984eb5..93e53415df0d 100644 --- a/sys/modules/bhnd/cores/bhnd_pcib/Makefile +++ b/sys/modules/bhnd/cores/bhnd_pcib/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd/cores/pci .PATH: ${SRCTOP}/sys/dev/bhnd/cores/pcie2 KMOD= bhnd_pcib SRCS= bhnd_pcib.c bhnd_pcie2b.c SRCS+= device_if.h bus_if.h pci_if.h \ bhnd_bus_if.h .include diff --git a/sys/modules/bhnd/siba/Makefile b/sys/modules/bhnd/siba/Makefile index f31b5d373914..572fab726664 100644 --- a/sys/modules/bhnd/siba/Makefile +++ b/sys/modules/bhnd/siba/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd/siba KMOD= siba SRCS= siba.c siba_subr.c \ siba_erom.c SRCS+= device_if.h bus_if.h SRCS+= bhnd_bus_if.h bhnd_chipc_if.h \ bhnd_erom_if.h bhnd_pmu_if.h \ bhnd_pwrctl_if.h .include diff --git a/sys/modules/bhnd/siba_bhndb/Makefile b/sys/modules/bhnd/siba_bhndb/Makefile index bba2b97954a9..ccf978edf515 100644 --- a/sys/modules/bhnd/siba_bhndb/Makefile +++ b/sys/modules/bhnd/siba_bhndb/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bhnd/siba KMOD= siba_bhndb SRCS= siba_bhndb.c SRCS+= bhnd_bus_if.h bhnd_erom_if.h SRCS+= bhndb_bus_if.h bhndb_if.h SRCS+= device_if.h bus_if.h .include diff --git a/sys/modules/bios/Makefile b/sys/modules/bios/Makefile index 7d255a9c47ab..1fe7e1e1bba3 100644 --- a/sys/modules/bios/Makefile +++ b/sys/modules/bios/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ # SUBDIR= smbios vpd .if ${MACHINE_ARCH} == "i386" SUBDIR+= smapi .endif .include diff --git a/sys/modules/bios/smapi/Makefile b/sys/modules/bios/smapi/Makefile index 90506d962dc6..1b5df8d12957 100644 --- a/sys/modules/bios/smapi/Makefile +++ b/sys/modules/bios/smapi/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/i386/bios KMOD= smapi SRCS= smapi.c smapi_bios.S \ bus_if.h device_if.h .include diff --git a/sys/modules/bios/smbios/Makefile b/sys/modules/bios/smbios/Makefile index 58301eca17d6..ca1e4b04815d 100644 --- a/sys/modules/bios/smbios/Makefile +++ b/sys/modules/bios/smbios/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/smbios KMOD= smbios SRCS= smbios.c \ bus_if.h device_if.h .include diff --git a/sys/modules/bios/vpd/Makefile b/sys/modules/bios/vpd/Makefile index 86b9719f1b52..bab4e7286098 100644 --- a/sys/modules/bios/vpd/Makefile +++ b/sys/modules/bios/vpd/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/x86/bios KMOD= vpd SRCS= vpd.c \ bus_if.h device_if.h .include diff --git a/sys/modules/blake2/Makefile b/sys/modules/blake2/Makefile index e4b3fb9f1263..a8863c2e67e7 100644 --- a/sys/modules/blake2/Makefile +++ b/sys/modules/blake2/Makefile @@ -1,91 +1,90 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/libb2 .PATH: ${SRCTOP}/sys/crypto/blake2 .PATH: ${SRCTOP}/sys/opencrypto .PATH: ${SRCTOP}/contrib/llvm-project/clang/lib/Headers KMOD = blake2 # Vendor sources SRCS += blake2.h SRCS += blake2-impl.h SRCS += blake2-config.h SRCS += blake2-dispatch.c SRCS += blake2bp.c SRCS += blake2sp.c CFLAGS += -I${SRCTOP}/sys/contrib/libb2 CFLAGS += -I${SRCTOP}/sys/crypto/blake2 # x86 specific optimization headers: SRCS += blake2b-load-sse2.h SRCS += blake2b-load-sse41.h SRCS += blake2b-round.h SRCS += blake2s-load-sse2.h SRCS += blake2s-load-sse41.h SRCS += blake2s-load-xop.h SRCS += blake2s-round.h # C files to build a dispatched fat implementation on x86 SRCS_IN += blake2b-sse2.c SRCS_IN += blake2b-ssse3.c SRCS_IN += blake2b-sse41.c SRCS_IN += blake2b-avx.c SRCS_IN += blake2b-xop.c SRCS_IN += blake2s-sse2.c SRCS_IN += blake2s-ssse3.c SRCS_IN += blake2s-sse41.c SRCS_IN += blake2s-avx.c SRCS_IN += blake2s-xop.c OBJS+= ${SRCS_IN:S/.c/.o/g} CFLAGS.blake2b-sse2.c += -DSUFFIX=_sse2 -msse2 CFLAGS.blake2s-sse2.c += -DSUFFIX=_sse2 -msse2 CFLAGS.blake2b-ssse3.c += -DSUFFIX=_ssse3 -msse2 -mssse3 CFLAGS.blake2s-ssse3.c += -DSUFFIX=_ssse3 -msse2 -mssse3 CFLAGS.blake2b-sse41.c += -DSUFFIX=_sse41 -msse2 -mssse3 -msse4.1 CFLAGS.blake2s-sse41.c += -DSUFFIX=_sse41 -msse2 -mssse3 -msse4.1 CFLAGS.blake2b-avx.c += -DSUFFIX=_avx -msse2 -mssse3 -msse4.1 -mavx CFLAGS.blake2s-avx.c += -DSUFFIX=_avx -msse2 -mssse3 -msse4.1 -mavx CFLAGS.blake2b-xop.c += -DSUFFIX=_xop -msse2 -mssse3 -msse4.1 -mavx -mxop CFLAGS.blake2s-xop.c += -DSUFFIX=_xop -msse2 -mssse3 -msse4.1 -mavx -mxop .for src in ${SRCS_IN} ${src:S/.c/.o/}: ${src} ${CC} -c ${CFLAGS:N-nostdinc} ${CFLAGS.${src}} ${WERROR} ${PROF} \ -D_MM_MALLOC_H_INCLUDED -Wno-unused-function ${.IMPSRC} ${CTFCONVERT_CMD} ${src:S/.c/.o/}: intrin.h emmintrin.h tmmintrin.h smmintrin.h immintrin.h \ x86intrin.h ${SRCS:M*.h} .endfor # FreeBSD-specific sources: SRCS += blake2_kfreebsd.h SRCS += config.h SRCS += stddef.h SRCS += stdint.h SRCS += stdio.h SRCS += stdlib.h SRCS += string.h SRCS += blake2_cryptodev.c SRCS += opt_param.h cryptodev_if.h bus_if.h device_if.h WARNS ?= 6 .include CWARNFLAGS.blake2-dispatch.c += -Wno-unused-const-variable CWARNFLAGS.blake2s-ref.c += -Wno-cast-qual -Wno-unused-function CWARNFLAGS += -Wno-cast-qual diff --git a/sys/modules/bnxt/Makefile b/sys/modules/bnxt/Makefile index f27e9934034e..5cef9f8d5343 100644 --- a/sys/modules/bnxt/Makefile +++ b/sys/modules/bnxt/Makefile @@ -1,15 +1,14 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bnxt KMOD = if_bnxt SRCS = device_if.h bus_if.h pci_if.h pci_iov_if.h ifdi_if.h SRCS += opt_inet.h opt_inet6.h opt_rss.h SRCS += bnxt_txrx.c if_bnxt.c SRCS += bnxt_hwrm.c SRCS += bnxt_sysctl.c SRCS += bnxt_mgmt.c CFLAGS+= -DIFLIB .include diff --git a/sys/modules/bridgestp/Makefile b/sys/modules/bridgestp/Makefile index 47a28cb8e7cd..79b339bb3d44 100644 --- a/sys/modules/bridgestp/Makefile +++ b/sys/modules/bridgestp/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= bridgestp SRCS= bridgestp.c EXPORT_SYMS= YES .include diff --git a/sys/modules/bwi/Makefile b/sys/modules/bwi/Makefile index c956f64d40c2..6fbf77bc903f 100644 --- a/sys/modules/bwi/Makefile +++ b/sys/modules/bwi/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bwi KMOD = if_bwi SRCS = if_bwi.c if_bwi_pci.c bwimac.c bwiphy.c bwirf.c SRCS += device_if.h bus_if.h pci_if.h opt_inet.h opt_bwi.h opt_wlan.h .include diff --git a/sys/modules/bwn/Makefile b/sys/modules/bwn/Makefile index 4d52cb589ef1..4385b5498ad8 100644 --- a/sys/modules/bwn/Makefile +++ b/sys/modules/bwn/Makefile @@ -1,40 +1,39 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/bwn KMOD= if_bwn SRCS= if_bwn.c if_bwnreg.h if_bwnvar.h SRCS+= if_bwn_pci.c SRCS+= if_bwn_util.c # PHY SRCS+= if_bwn_phy_common.c SRCS+= if_bwn_phy_g.c if_bwn_phy_lp.c SRCS+= if_bwn_phy_n.c # BHND SRCS+= bhnd_bus_if.h \ bhnd_chipc_if.h \ bhnd_pmu_if.h \ bhnd_pwrctl_if.h SRCS+= bhnd_nvram_map.h # BHNDB SRCS+= bhndb_bus_if.h \ bhndb_if.h # Other SRCS+= device_if.h bus_if.h gpio_if.h pci_if.h opt_bwn.h opt_wlan.h # The following need the BWN_GPL_PHY kenrel option to opt-in # to the GPL'd 802.11n PHY support for this driver. .PATH: ${SRCTOP}/sys/gnu/dev/bwn/phy_n SRCS.BWN_GPL_PHY+= if_bwn_radio_2055.c SRCS.BWN_GPL_PHY+= if_bwn_radio_2056.c SRCS.BWN_GPL_PHY+= if_bwn_radio_2057.c SRCS.BWN_GPL_PHY+= if_bwn_phy_n_sprom.c SRCS.BWN_GPL_PHY+= if_bwn_phy_n_tables.c SRCS.BWN_GPL_PHY+= if_bwn_phy_n_ppr.c SRCS.BWN_GPL_PHY+= if_bwn_phy_n_core.c .include diff --git a/sys/modules/bxe/Makefile b/sys/modules/bxe/Makefile index b9202e22c305..70b2965ece51 100644 --- a/sys/modules/bxe/Makefile +++ b/sys/modules/bxe/Makefile @@ -1,22 +1,21 @@ -# $FreeBSD$ SYSDIR ?= ${SRCTOP}/sys BXE = ${SYSDIR}/dev/bxe .PATH: ${BXE} KMOD = if_bxe SRCS = device_if.h bus_if.h pci_if.h SRCS += bxe.c \ bxe_stats.c \ bxe_debug.c \ bxe_elink.c \ ecore_sp.c \ 57710_init_values.c \ 57711_init_values.c \ 57712_init_values.c CFLAGS += -I${BXE} .include CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/bytgpio/Makefile b/sys/modules/bytgpio/Makefile index 4a46f612a0b6..a25a76141031 100644 --- a/sys/modules/bytgpio/Makefile +++ b/sys/modules/bytgpio/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/gpio KMOD= bytgpio SRCS= bytgpio.c SRCS+= acpi_if.h device_if.h bus_if.h gpio_if.h opt_acpi.h opt_platform.h .include diff --git a/sys/modules/cam/Makefile b/sys/modules/cam/Makefile index a95ca1b09cb8..79551349be3c 100644 --- a/sys/modules/cam/Makefile +++ b/sys/modules/cam/Makefile @@ -1,47 +1,46 @@ -# $FreeBSD$ S= ${SRCTOP}/sys .PATH: $S/cam $S/cam/scsi $S/cam/ata $S/cam/nvme $S/dev/nvme KMOD= cam # See sys/conf/options for the flags that go into the different opt_*.h files. SRCS= opt_cam.h SRCS+= opt_ada.h SRCS+= opt_scsi.h SRCS+= opt_cd.h SRCS+= opt_da.h SRCS+= opt_pt.h SRCS+= opt_sa.h SRCS+= opt_ses.h SRCS+= opt_ddb.h SRCS+= opt_printf.h SRCS+= device_if.h bus_if.h vnode_if.h SRCS+= cam.c SRCS+= cam_compat.c SRCS+= cam_iosched.c cam_periph.c cam_queue.c cam_sim.c cam_xpt.c SRCS+= scsi_all.c scsi_cd.c scsi_ch.c SRCS+= scsi_da.c SRCS+= scsi_pass.c SRCS+= scsi_pt.c SRCS+= scsi_sa.c SRCS+= scsi_enc.c SRCS+= scsi_enc_ses.c SRCS+= scsi_enc_safte.c SRCS+= scsi_sg.c SRCS+= scsi_targ_bh.c scsi_target.c SRCS+= scsi_xpt.c SRCS+= smp_all.c SRCS+= ata_all.c SRCS+= ata_xpt.c SRCS+= ata_da.c SRCS+= ata_pmp.c SRCS+= nvme_all.c SRCS+= nvme_xpt.c SRCS+= nvme_da.c SRCS+= nvme_util.c EXPORT_SYMS= YES # XXX evaluate .include diff --git a/sys/modules/cardbus/Makefile b/sys/modules/cardbus/Makefile index 16c2659c8a61..a87a0de5185a 100644 --- a/sys/modules/cardbus/Makefile +++ b/sys/modules/cardbus/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/cardbus KMOD= cardbus SRCS= cardbus.c cardbus_cis.c cardbus_device.c \ device_if.h bus_if.h card_if.h power_if.h pci_if.h pcib_if.h .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" CFLAGS += -DNEW_PCIB .endif .include diff --git a/sys/modules/carp/Makefile b/sys/modules/carp/Makefile index faf3af66ece1..5506d1aaec23 100644 --- a/sys/modules/carp/Makefile +++ b/sys/modules/carp/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet .PATH: ${SRCTOP}/sys/crypto KMOD= carp SRCS= ip_carp.c sha1.c SRCS+= device_if.h bus_if.h vnode_if.h SRCS+= opt_carp.h opt_bpf.h opt_inet.h opt_inet6.h opt_ofed.h opt_netlink.h .include diff --git a/sys/modules/cas/Makefile b/sys/modules/cas/Makefile index 92270d653f1f..45d475734562 100644 --- a/sys/modules/cas/Makefile +++ b/sys/modules/cas/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/cas KMOD= if_cas SRCS= bus_if.h device_if.h if_cas.c miibus_if.h pci_if.h ${ofw_bus_if} opt_platform.h .if ${MACHINE_CPUARCH} == "powerpc" ofw_bus_if= ofw_bus_if.h .endif .include diff --git a/sys/modules/cbb/Makefile b/sys/modules/cbb/Makefile index b59752948a12..156a273e01b2 100644 --- a/sys/modules/cbb/Makefile +++ b/sys/modules/cbb/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/pccbb KMOD= cbb SRCS= pccbb.c pccbb_pci.c \ device_if.h bus_if.h power_if.h card_if.h pci_if.h pcib_if.h .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" CFLAGS += -DNEW_PCIB .endif .include diff --git a/sys/modules/cc/Makefile b/sys/modules/cc/Makefile index b595cc204481..c3e59aef331e 100644 --- a/sys/modules/cc/Makefile +++ b/sys/modules/cc/Makefile @@ -1,21 +1,20 @@ -# $FreeBSD$ SUBDIR= cc_newreno \ cc_cubic \ cc_dctcp \ cc_htcp # Do we have the TCP_HHOOK symbol defined? If not, there is no point in # building these modules by default. # We will default to building these modules if $OPT_GLOBAL does contain # the TCP_HHOOK option. .if defined(ALL_MODULES) || ${OPT_GLOBAL:UTCP_HHOOK:MTCP_HHOOK} != "" SUBDIR+= \ cc_cdg \ cc_chd \ cc_hd \ cc_vegas .endif .include diff --git a/sys/modules/cc/cc_cdg/Makefile b/sys/modules/cc/cc_cdg/Makefile index 4e69e2d803a4..8da536709e7d 100644 --- a/sys/modules/cc/cc_cdg/Makefile +++ b/sys/modules/cc/cc_cdg/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/cc KMOD= cc_cdg SRCS= cc_cdg.c opt_kern_tls.h .include diff --git a/sys/modules/cc/cc_chd/Makefile b/sys/modules/cc/cc_chd/Makefile index 02242094860a..0f682432d26d 100644 --- a/sys/modules/cc/cc_chd/Makefile +++ b/sys/modules/cc/cc_chd/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/cc KMOD= cc_chd SRCS= cc_chd.c opt_kern_tls.h .include diff --git a/sys/modules/cc/cc_cubic/Makefile b/sys/modules/cc/cc_cubic/Makefile index 8b91b4dd3864..6599126e0b8d 100644 --- a/sys/modules/cc/cc_cubic/Makefile +++ b/sys/modules/cc/cc_cubic/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/cc KMOD= cc_cubic SRCS= cc_cubic.c opt_kern_tls.h .include diff --git a/sys/modules/cc/cc_dctcp/Makefile b/sys/modules/cc/cc_dctcp/Makefile index 73712583ff8b..a084ae4f6e0e 100644 --- a/sys/modules/cc/cc_dctcp/Makefile +++ b/sys/modules/cc/cc_dctcp/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/cc KMOD= cc_dctcp SRCS= cc_dctcp.c opt_kern_tls.h .include diff --git a/sys/modules/cc/cc_hd/Makefile b/sys/modules/cc/cc_hd/Makefile index 9ff5ee3c4594..ae3fe500a278 100644 --- a/sys/modules/cc/cc_hd/Makefile +++ b/sys/modules/cc/cc_hd/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/cc KMOD= cc_hd SRCS= cc_hd.c opt_kern_tls.h .include diff --git a/sys/modules/cc/cc_htcp/Makefile b/sys/modules/cc/cc_htcp/Makefile index 3256bc6d9445..0475f768a545 100644 --- a/sys/modules/cc/cc_htcp/Makefile +++ b/sys/modules/cc/cc_htcp/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/cc KMOD= cc_htcp SRCS= cc_htcp.c opt_kern_tls.h .include diff --git a/sys/modules/cc/cc_newreno/Makefile b/sys/modules/cc/cc_newreno/Makefile index 39e91237be2b..d6ec03807b6f 100644 --- a/sys/modules/cc/cc_newreno/Makefile +++ b/sys/modules/cc/cc_newreno/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/cc KMOD= cc_newreno SRCS= cc_newreno.c opt_kern_tls.h .include diff --git a/sys/modules/cc/cc_vegas/Makefile b/sys/modules/cc/cc_vegas/Makefile index 5e309c96ed5c..87f36414a2e2 100644 --- a/sys/modules/cc/cc_vegas/Makefile +++ b/sys/modules/cc/cc_vegas/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/cc KMOD= cc_vegas SRCS= cc_vegas.c opt_kern_tls.h .include diff --git a/sys/modules/ccp/Makefile b/sys/modules/ccp/Makefile index 9113ad311987..c31c2a3bfe99 100644 --- a/sys/modules/ccp/Makefile +++ b/sys/modules/ccp/Makefile @@ -1,21 +1,20 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/crypto/ccp KMOD= ccp SRCS= ccp.c ccp_hardware.c ccp_lsb.c SRCS+= ccp.h ccp_hardware.h ccp_lsb.h SRCS+= opt_ddb.h SRCS+= bus_if.h SRCS+= device_if.h SRCS+= cryptodev_if.h SRCS+= pci_if.h CFLAGS+= -fms-extensions CFLAGS.clang+= -Wno-microsoft-anon-tag MFILES= kern/bus_if.m kern/device_if.m opencrypto/cryptodev_if.m \ dev/pci/pci_if.m .include diff --git a/sys/modules/cd9660/Makefile b/sys/modules/cd9660/Makefile index 5036ef04c677..d1563bcafd34 100644 --- a/sys/modules/cd9660/Makefile +++ b/sys/modules/cd9660/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/cd9660 KMOD= cd9660 SRCS= vnode_if.h \ cd9660_bmap.c cd9660_lookup.c cd9660_node.c cd9660_rrip.c \ cd9660_util.c cd9660_vfsops.c cd9660_vnops.c EXPORT_SYMS= cd9660_iconv .include diff --git a/sys/modules/cd9660_iconv/Makefile b/sys/modules/cd9660_iconv/Makefile index 54c6f912c29c..9a4f27e829a2 100644 --- a/sys/modules/cd9660_iconv/Makefile +++ b/sys/modules/cd9660_iconv/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/cd9660 KMOD= cd9660_iconv SRCS= cd9660_iconv.c .include diff --git a/sys/modules/cfi/Makefile b/sys/modules/cfi/Makefile index 6f8a8af4ab4b..c795803a08f3 100644 --- a/sys/modules/cfi/Makefile +++ b/sys/modules/cfi/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/cfi KMOD= cfi SRCS= cfi_bus_fdt.c ofw_bus_if.h cfi_core.c cfi_dev.c SRCS+= bus_if.h device_if.h opt_cfi.h opt_cfi.h: echo "#define CFI_SUPPORT_STRATAFLASH 1" > ${.TARGET} .include diff --git a/sys/modules/cfiscsi/Makefile b/sys/modules/cfiscsi/Makefile index 8dd4567c6c7a..4d6538684038 100644 --- a/sys/modules/cfiscsi/Makefile +++ b/sys/modules/cfiscsi/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/cam/ctl KMOD= cfiscsi #CFLAGS+=-DICL_KERNEL_PROXY MFILES= dev/iscsi/icl_conn_if.m SRCS= ctl_frontend_iscsi.c icl_conn_if.h .include diff --git a/sys/modules/chromebook_platform/Makefile b/sys/modules/chromebook_platform/Makefile index f21f202064f8..2f8ff9167b75 100644 --- a/sys/modules/chromebook_platform/Makefile +++ b/sys/modules/chromebook_platform/Makefile @@ -1,7 +1,6 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/chromebook_platform KMOD= chromebook_platform SRCS= chromebook_platform.c bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/chvgpio/Makefile b/sys/modules/chvgpio/Makefile index 063c6b334aa7..8c4dbcdb2830 100644 --- a/sys/modules/chvgpio/Makefile +++ b/sys/modules/chvgpio/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/gpio KMOD= chvgpio SRCS= chvgpio.c SRCS+= acpi_if.h device_if.h bus_if.h gpio_if.h opt_acpi.h opt_platform.h .include diff --git a/sys/modules/ciss/Makefile b/sys/modules/ciss/Makefile index 9ab327674d76..b2025106248e 100644 --- a/sys/modules/ciss/Makefile +++ b/sys/modules/ciss/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ KMOD = ciss .PATH: ${SRCTOP}/sys/dev/${KMOD} SRCS = ciss.c SRCS += opt_scsi.h opt_cam.h SRCS += device_if.h bus_if.h pci_if.h #CFLAGS +=-DCISS_DEBUG .include diff --git a/sys/modules/coretemp/Makefile b/sys/modules/coretemp/Makefile index 504ece3cbe6c..a77c8c956956 100644 --- a/sys/modules/coretemp/Makefile +++ b/sys/modules/coretemp/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/coretemp KMOD= coretemp SRCS= coretemp.c bus_if.h device_if.h .include diff --git a/sys/modules/cpsw/Makefile b/sys/modules/cpsw/Makefile index a3c75df0c5e1..05dc943bace9 100644 --- a/sys/modules/cpsw/Makefile +++ b/sys/modules/cpsw/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/ti/cpsw KMOD= if_cpsw SRCS= if_cpsw.c device_if.h bus_if.h ofw_bus_if.h miibus_if.h syscon_if.h opt_platform.h .include diff --git a/sys/modules/cpuctl/Makefile b/sys/modules/cpuctl/Makefile index d7f7e05b9376..4a6e302b60c7 100644 --- a/sys/modules/cpuctl/Makefile +++ b/sys/modules/cpuctl/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/cpuctl KMOD= cpuctl SRCS= cpuctl.c .include diff --git a/sys/modules/cpufreq/Makefile b/sys/modules/cpufreq/Makefile index 4198d7d66a75..6b88f1a6c02a 100644 --- a/sys/modules/cpufreq/Makefile +++ b/sys/modules/cpufreq/Makefile @@ -1,26 +1,25 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/cpufreq \ ${SRCTOP}/sys/${MACHINE_CPUARCH}/cpufreq KMOD= cpufreq SRCS= ichss.c SRCS+= bus_if.h cpufreq_if.h device_if.h pci_if.h .if ${MACHINE} == "i386" || ${MACHINE} == "amd64" .PATH: ${SRCTOP}/sys/x86/cpufreq SRCS+= acpi_if.h opt_acpi.h SRCS+= est.c hwpstate_amd.c p4tcc.c powernow.c hwpstate_intel.c .endif .if ${MACHINE} == "i386" SRCS+= smist.c .endif .if ${MACHINE} == "powerpc" .PATH: ${SRCTOP}/sys/powerpc/cpufreq SRCS+= dfs.c .endif .include diff --git a/sys/modules/crypto/Makefile b/sys/modules/crypto/Makefile index a31a266d7e6d..59f66aeff3cc 100644 --- a/sys/modules/crypto/Makefile +++ b/sys/modules/crypto/Makefile @@ -1,105 +1,104 @@ -# $FreeBSD$ LIBSODIUM=${SRCTOP}/sys/contrib/libsodium/src/libsodium .PATH: ${SRCTOP}/sys/opencrypto .PATH: ${SRCTOP}/sys/crypto .PATH: ${SRCTOP}/sys/crypto/camellia .PATH: ${SRCTOP}/sys/crypto/des .PATH: ${SRCTOP}/sys/crypto/rijndael .PATH: ${SRCTOP}/sys/crypto/sha2 .PATH: ${SRCTOP}/sys/crypto/siphash .PATH: ${SRCTOP}/sys/crypto/skein .PATH: ${SRCTOP}/sys/crypto/blake2 .PATH: ${SRCTOP}/sys/crypto/chacha20 .PATH: ${SRCTOP}/sys/contrib/libb2 .PATH: ${LIBSODIUM}/crypto_core/ed25519/ref10 .PATH: ${LIBSODIUM}/crypto_core/hchacha20 .PATH: ${LIBSODIUM}/crypto_onetimeauth/poly1305 .PATH: ${LIBSODIUM}/crypto_onetimeauth/poly1305/donna .PATH: ${LIBSODIUM}/crypto_scalarmult/curve25519 .PATH: ${LIBSODIUM}/crypto_scalarmult/curve25519/ref10 .PATH: ${LIBSODIUM}/crypto_stream/chacha20 .PATH: ${LIBSODIUM}/crypto_stream/chacha20/ref .PATH: ${LIBSODIUM}/crypto_verify/sodium .PATH: ${SRCTOP}/sys/crypto/libsodium KMOD = crypto SRCS = crypto.c cryptodev_if.c SRCS += criov.c cryptosoft.c SRCS += xform_aes_cbc.c xform_aes_icm.c xform_aes_xts.c xform_cml.c SRCS += xform_deflate.c xform_gmac.c xform_null.c xform_rmd160.c SRCS += xform_sha1.c xform_sha2.c SRCS += cryptodeflate.c rmd160.c rijndael-alg-fst.c rijndael-api.c rijndael-api-fst.c SRCS += camellia.c camellia-api.c SRCS += des_ecb.c des_enc.c des_setkey.c SRCS += sha1.c sha256c.c sha512c.c SRCS += skein.c skein_block.c # unroll the 256 and 512 loops, half unroll the 1024 CFLAGS.skein_block.c += -DSKEIN_LOOP=995 .if exists(${MACHINE_ARCH}/skein_block_asm.S) .PATH: ${SRCTOP}/sys/crypto/skein/${MACHINE_ARCH} SRCS += skein_block_asm.S CFLAGS += -DSKEIN_ASM -DSKEIN_USE_ASM=1792 # list of block functions to replace with assembly: 256+512+1024 = 1792 ACFLAGS += -DELF -Wa,--noexecstack # Fully unroll all loops in the assembly optimized version ACFLAGS += -DSKEIN_LOOP=0 # 20201002 Add explict Makefile dependency for reenabled assembly optimized # version. SKEIN_USE_ASM determines which routines should come from the assembly # vs C versions, and skein_block needs to be rebuilt if it changes. skein_block.o: Makefile .endif SRCS += siphash.c SRCS += gmac.c gfmult.c SRCS += blake2b-ref.c SRCS += blake2s-ref.c SRCS += blake2-sw.c CFLAGS.blake2b-ref.c += -I${SRCTOP}/sys/crypto/blake2 -DSUFFIX=_ref CFLAGS.blake2s-ref.c += -I${SRCTOP}/sys/crypto/blake2 -DSUFFIX=_ref CFLAGS.blake2-sw.c += -I${SRCTOP}/sys/crypto/blake2 CWARNFLAGS.blake2b-ref.c += -Wno-cast-qual -Wno-unused-function CWARNFLAGS.blake2s-ref.c += -Wno-cast-qual -Wno-unused-function SRCS += chacha.c SRCS += chacha-sw.c SRCS += chacha20_poly1305.c LIBSODIUM_INC=${LIBSODIUM}/include LIBSODIUM_COMPAT=${SRCTOP}/sys/crypto/libsodium SRCS += xform_chacha20_poly1305.c CFLAGS.xform_chacha20_poly1305.c+= -I${LIBSODIUM_INC} -I${LIBSODIUM_COMPAT} SRCS += xform_poly1305.c CFLAGS.xform_poly1305.c += -I${LIBSODIUM_INC} -I${LIBSODIUM_COMPAT} SRCS += ed25519_ref10.c CFLAGS.ed25519_ref10.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} CWARNFLAGS.ed25519_ref10.c += -Wno-unused-function SRCS += core_hchacha20.c CFLAGS.core_hchacha20.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} SRCS += onetimeauth_poly1305.c CFLAGS.onetimeauth_poly1305.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} SRCS += poly1305_donna.c CFLAGS.poly1305_donna.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} SRCS += stream_chacha20.c CFLAGS.stream_chacha20.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} SRCS += chacha20_ref.c CFLAGS.chacha20_ref.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} SRCS += scalarmult_curve25519.c CFLAGS.scalarmult_curve25519.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} SRCS += x25519_ref10.c CFLAGS.x25519_ref10.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} CWARNFLAGS.x25519_ref10.c += -Wno-unused-function SRCS += verify.c CFLAGS.verify.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} SRCS += randombytes.c CFLAGS.randombytes.c += -I${LIBSODIUM_INC} -I${LIBSODIUM_COMPAT} SRCS += utils.c CFLAGS.utils.c += -I${LIBSODIUM_INC} -I${LIBSODIUM_COMPAT} SRCS += curve25519.c CFLAGS.curve25519.c += -I${LIBSODIUM_INC} -I${LIBSODIUM_COMPAT} SRCS += opt_param.h cryptodev_if.h bus_if.h device_if.h SRCS += opt_ddb.h SRCS += cbc_mac.c SRCS += xform_cbc_mac.c .include diff --git a/sys/modules/cryptodev/Makefile b/sys/modules/cryptodev/Makefile index 08bed84125af..a6e9ef9ae822 100644 --- a/sys/modules/cryptodev/Makefile +++ b/sys/modules/cryptodev/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/opencrypto KMOD = cryptodev SRCS = cryptodev.c SRCS += bus_if.h device_if.h .include diff --git a/sys/modules/ctl/Makefile b/sys/modules/ctl/Makefile index 5ff72216b329..960cd60bfa9a 100644 --- a/sys/modules/ctl/Makefile +++ b/sys/modules/ctl/Makefile @@ -1,33 +1,32 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/cam/ctl KMOD= ctl SRCS= ctl.c SRCS+= ctl_backend.c SRCS+= ctl_backend_block.c SRCS+= ctl_backend_ramdisk.c SRCS+= ctl_cmd_table.c SRCS+= ctl_frontend.c SRCS+= ctl_frontend_cam_sim.c SRCS+= ctl_frontend_ioctl.c SRCS+= ctl_ha.c SRCS+= ctl_scsi_all.c SRCS+= ctl_tpc.c SRCS+= ctl_tpc_local.c SRCS+= ctl_error.c SRCS+= ctl_util.c SRCS+= scsi_ctl.c SRCS+= bus_if.h SRCS+= device_if.h SRCS+= vnode_if.h SRCS+= opt_cam.h #CFLAGS+=-DICL_KERNEL_PROXY MFILES= kern/bus_if.m kern/device_if.m EXPORT_SYMS= YES .include diff --git a/sys/modules/cuse/Makefile b/sys/modules/cuse/Makefile index 2775da2a7324..f7a2c9d5c0c5 100644 --- a/sys/modules/cuse/Makefile +++ b/sys/modules/cuse/Makefile @@ -1,32 +1,31 @@ -# $FreeBSD$ # # Copyright (c) 2010 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/fs/cuse KMOD= cuse SRCS= cuse.c device_if.h bus_if.h vnode_if.h .include diff --git a/sys/modules/cxgb/Makefile b/sys/modules/cxgb/Makefile index 11ea23649baf..144d8f8531db 100644 --- a/sys/modules/cxgb/Makefile +++ b/sys/modules/cxgb/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" SUBDIR= cxgb SUBDIR+= cxgb_t3fw .include diff --git a/sys/modules/cxgb/cxgb/Makefile b/sys/modules/cxgb/cxgb/Makefile index f35a0e21b374..08644a5d8058 100644 --- a/sys/modules/cxgb/cxgb/Makefile +++ b/sys/modules/cxgb/cxgb/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ CXGB = ${SRCTOP}/sys/dev/cxgb .PATH: ${CXGB} ${CXGB}/common ${CXGB}/sys KMOD= if_cxgb SRCS= cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c SRCS+= cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c cxgb_aq100x.c SRCS+= cxgb_sge.c cxgb_tn1010.c SRCS+= device_if.h bus_if.h pci_if.h SRCS+= opt_inet.h opt_inet6.h SRCS+= uipc_mvec.c CFLAGS+= -g -DDEFAULT_JUMBO -I${CXGB} .include diff --git a/sys/modules/cxgb/cxgb_t3fw/Makefile b/sys/modules/cxgb/cxgb_t3fw/Makefile index 46fd3fe3ae1c..602fae4ff2a9 100644 --- a/sys/modules/cxgb/cxgb_t3fw/Makefile +++ b/sys/modules/cxgb/cxgb_t3fw/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ CXGB = ${SRCTOP}/sys/dev/cxgb .PATH: ${CXGB} KMOD= cxgb_t3fw SRCS+= cxgb_t3fw.c CFLAGS+= -g -I${CXGB} .include diff --git a/sys/modules/cxgbe/Makefile b/sys/modules/cxgbe/Makefile index f7cba54925fc..f94d3ae07f66 100644 --- a/sys/modules/cxgbe/Makefile +++ b/sys/modules/cxgbe/Makefile @@ -1,34 +1,33 @@ # -# $FreeBSD$ # SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" SUBDIR= if_cxgbe SUBDIR+= if_cxl SUBDIR+= if_cc SUBDIR+= if_cxgbev SUBDIR+= if_cxlv SUBDIR+= if_ccv SUBDIR+= t4_firmware SUBDIR+= t5_firmware SUBDIR+= t6_firmware SUBDIR+= ${_tom} SUBDIR+= ${_iw_cxgbe} SUBDIR+= ${_cxgbei} SUBDIR+= ccr .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "aarch64" _tom= tom _cxgbei= cxgbei .if ${MK_OFED} != "no" || defined(ALL_MODULES) _iw_cxgbe= iw_cxgbe .endif .endif .if ${MACHINE_CPUARCH} == "i386" _tom= tom .endif .include diff --git a/sys/modules/cxgbe/ccr/Makefile b/sys/modules/cxgbe/ccr/Makefile index 73d34762719d..eb2171f6ea80 100644 --- a/sys/modules/cxgbe/ccr/Makefile +++ b/sys/modules/cxgbe/ccr/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ CXGBE= ${SRCTOP}/sys/dev/cxgbe .PATH: ${CXGBE}/crypto KMOD= ccr SRCS= t4_crypto.c SRCS+= bus_if.h SRCS+= device_if.h SRCS+= cryptodev_if.h SRCS+= pci_if.h CFLAGS+= -I${CXGBE} MFILES= kern/bus_if.m kern/device_if.m opencrypto/cryptodev_if.m \ dev/pci/pci_if.m .include diff --git a/sys/modules/cxgbe/cxgbei/Makefile b/sys/modules/cxgbe/cxgbei/Makefile index 7b575e320b20..6e87566b07e8 100644 --- a/sys/modules/cxgbe/cxgbei/Makefile +++ b/sys/modules/cxgbe/cxgbei/Makefile @@ -1,23 +1,22 @@ -# $FreeBSD$ CXGBE = ${SRCTOP}/sys/dev/cxgbe .PATH: ${CXGBE}/cxgbei KMOD= cxgbei SRCS= cxgbei.c SRCS+= icl_cxgbei.c SRCS+= bus_if.h SRCS+= device_if.h SRCS+= opt_inet.h SRCS+= opt_inet6.h SRCS+= opt_kern_tls.h SRCS+= pci_if.h SRCS+= opt_cam.h SRCS+= icl_conn_if.h CFLAGS+= -I${CXGBE} MFILES= kern/bus_if.m kern/device_if.m dev/iscsi/icl_conn_if.m dev/pci/pci_if.m .include diff --git a/sys/modules/cxgbe/if_cc/Makefile b/sys/modules/cxgbe/if_cc/Makefile index f7cc10d44866..76a482a98b30 100644 --- a/sys/modules/cxgbe/if_cc/Makefile +++ b/sys/modules/cxgbe/if_cc/Makefile @@ -1,11 +1,10 @@ # -# $FreeBSD$ # CXGBE= ${SRCTOP}/sys/dev/cxgbe .PATH: ${CXGBE} KMOD= if_cc SRCS= if_cc.c .include diff --git a/sys/modules/cxgbe/if_ccv/Makefile b/sys/modules/cxgbe/if_ccv/Makefile index 70700fceee5f..fc71092dd70e 100644 --- a/sys/modules/cxgbe/if_ccv/Makefile +++ b/sys/modules/cxgbe/if_ccv/Makefile @@ -1,11 +1,10 @@ # -# $FreeBSD$ # CXGBE= ${SRCTOP}/sys/dev/cxgbe .PATH: ${CXGBE} KMOD= if_ccv SRCS= if_ccv.c .include diff --git a/sys/modules/cxgbe/if_cxgbe/Makefile b/sys/modules/cxgbe/if_cxgbe/Makefile index 0a4103de17c8..981c3466c452 100644 --- a/sys/modules/cxgbe/if_cxgbe/Makefile +++ b/sys/modules/cxgbe/if_cxgbe/Makefile @@ -1,47 +1,46 @@ # -# $FreeBSD$ # .include CXGBE= ${SRCTOP}/sys/dev/cxgbe .PATH: ${CXGBE} ${CXGBE}/common ${CXGBE}/crypto ${CXGBE}/cudbg KMOD= if_cxgbe SRCS= bus_if.h SRCS+= device_if.h SRCS+= opt_ddb.h SRCS+= opt_inet.h SRCS+= opt_inet6.h SRCS+= opt_kern_tls.h SRCS+= opt_ofed.h SRCS+= opt_ratelimit.h SRCS+= opt_rss.h SRCS+= pci_if.h pci_iov_if.h SRCS+= t4_clip.c SRCS+= t4_filter.c SRCS+= t4_hw.c SRCS+= t4_if.c t4_if.h SRCS+= t4_iov.c SRCS.KERN_TLS+= t6_kern_tls.c SRCS+= t4_keyctx.c SRCS+= t4_l2t.c SRCS+= t4_main.c SRCS+= t4_mp_ring.c SRCS+= t4_netmap.c SRCS+= t4_sched.c SRCS+= t4_sge.c SRCS+= t4_smt.c SRCS+= t4_tracer.c SRCS+= cudbg_common.c SRCS+= cudbg_flash_utils.c SRCS+= cudbg_lib.c SRCS+= cudbg_wtp.c SRCS+= fastlz_api.c SRCS+= fastlz.c CFLAGS+= -I${CXGBE} EXPORT_SYMS= YES .include diff --git a/sys/modules/cxgbe/if_cxgbev/Makefile b/sys/modules/cxgbe/if_cxgbev/Makefile index 4a66572080ac..122733276535 100644 --- a/sys/modules/cxgbe/if_cxgbev/Makefile +++ b/sys/modules/cxgbe/if_cxgbev/Makefile @@ -1,21 +1,20 @@ # -# $FreeBSD$ # CXGBE= ${SRCTOP}/sys/dev/cxgbe .PATH: ${CXGBE} ${CXGBE}/common KMOD= if_cxgbev SRCS= bus_if.h SRCS+= device_if.h SRCS+= opt_inet.h SRCS+= opt_inet6.h SRCS+= opt_ofed.h SRCS+= opt_rss.h SRCS+= pci_if.h pci_iov_if.h SRCS+= t4_vf.c SRCS+= t4vf_hw.c CFLAGS+= -I${CXGBE} .include diff --git a/sys/modules/cxgbe/if_cxl/Makefile b/sys/modules/cxgbe/if_cxl/Makefile index f18cec139e13..f387de89eb33 100644 --- a/sys/modules/cxgbe/if_cxl/Makefile +++ b/sys/modules/cxgbe/if_cxl/Makefile @@ -1,11 +1,10 @@ # -# $FreeBSD$ # CXGBE= ${SRCTOP}/sys/dev/cxgbe .PATH: ${CXGBE} KMOD= if_cxl SRCS= if_cxl.c .include diff --git a/sys/modules/cxgbe/if_cxlv/Makefile b/sys/modules/cxgbe/if_cxlv/Makefile index ab69c0bc77ac..b289f673bf15 100644 --- a/sys/modules/cxgbe/if_cxlv/Makefile +++ b/sys/modules/cxgbe/if_cxlv/Makefile @@ -1,11 +1,10 @@ # -# $FreeBSD$ # CXGBE= ${SRCTOP}/sys/dev/cxgbe .PATH: ${CXGBE} KMOD= if_cxlv SRCS= if_cxlv.c .include diff --git a/sys/modules/cxgbe/iw_cxgbe/Makefile b/sys/modules/cxgbe/iw_cxgbe/Makefile index cfe06a696fcb..9416cdec5ce3 100644 --- a/sys/modules/cxgbe/iw_cxgbe/Makefile +++ b/sys/modules/cxgbe/iw_cxgbe/Makefile @@ -1,25 +1,24 @@ -# $FreeBSD$ CXGBE= ${SRCTOP}/sys/dev/cxgbe .PATH: ${CXGBE}/iw_cxgbe KMOD= iw_cxgbe SRCS+= cm.c SRCS+= cq.c SRCS+= device.c SRCS+= ev.c SRCS+= id_table.c SRCS+= mem.c SRCS+= provider.c SRCS+= qp.c SRCS+= resource.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h opt_kern_tls.h opt_ktr.h opt_ofed.h CFLAGS+= -I${CXGBE} -I${SRCTOP}/sys/ofed/include -DLINUX_TYPES_DEFINED CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM CFLAGS+= -DINET6 -DINET .include diff --git a/sys/modules/cxgbe/t4_firmware/Makefile b/sys/modules/cxgbe/t4_firmware/Makefile index 807dc6beaf35..fb8eeb0d6c8e 100644 --- a/sys/modules/cxgbe/t4_firmware/Makefile +++ b/sys/modules/cxgbe/t4_firmware/Makefile @@ -1,23 +1,22 @@ # -# $FreeBSD$ # T4FW= ${SRCTOP}/sys/dev/cxgbe/firmware .PATH: ${T4FW} KMOD= t4fw_cfg FIRMWS= ${KMOD}.txt:${KMOD}:1.0.0.0 # You can have additional configuration files in the ${T4FW} directory. # t4fw_cfg_.txt CFG_FILES != cd ${T4FW} && echo ${KMOD}_*.txt .for F in ${CFG_FILES} .if exists(${F}) FIRMWS+= ${F}:${F:C/.txt//}:1.0.0.0 .endif .endfor T4FW_VER= 1.27.4.0 FIRMWS+= t4fw-${T4FW_VER}.bin:t4fw:${T4FW_VER} .include diff --git a/sys/modules/cxgbe/t5_firmware/Makefile b/sys/modules/cxgbe/t5_firmware/Makefile index a7aae96b111f..2876d1a6b041 100644 --- a/sys/modules/cxgbe/t5_firmware/Makefile +++ b/sys/modules/cxgbe/t5_firmware/Makefile @@ -1,23 +1,22 @@ # -# $FreeBSD$ # T5FW= ${SRCTOP}/sys/dev/cxgbe/firmware .PATH: ${T5FW} KMOD= t5fw_cfg FIRMWS= ${KMOD}.txt:${KMOD}:1.0.0.0 # You can have additional configuration files in the ${T5FW} directory. # t5fw_cfg_.txt CFG_FILES != cd ${T5FW} && echo ${KMOD}_*.txt .for F in ${CFG_FILES} .if exists(${F}) FIRMWS+= ${F}:${F:C/.txt//}:1.0.0.0 .endif .endfor T5FW_VER= 1.27.4.0 FIRMWS+= t5fw-${T5FW_VER}.bin:t5fw:${T5FW_VER} .include diff --git a/sys/modules/cxgbe/t6_firmware/Makefile b/sys/modules/cxgbe/t6_firmware/Makefile index 77905f4d8861..7ac481c4bdb9 100644 --- a/sys/modules/cxgbe/t6_firmware/Makefile +++ b/sys/modules/cxgbe/t6_firmware/Makefile @@ -1,23 +1,22 @@ # -# $FreeBSD$ # T6FW= ${SRCTOP}/sys/dev/cxgbe/firmware .PATH: ${T6FW} KMOD= t6fw_cfg FIRMWS= ${KMOD}.txt:${KMOD}:1.0.0.0 # You can have additional configuration files in the ${T6FW} directory. # t6fw_cfg_.txt CFG_FILES != cd ${T6FW} && echo ${KMOD}_*.txt .for F in ${CFG_FILES} .if exists(${F}) FIRMWS+= ${F}:${F:C/.txt//}:1.0.0.0 .endif .endfor T6FW_VER= 1.27.4.0 FIRMWS+= t6fw-${T6FW_VER}.bin:t6fw:${T6FW_VER} .include diff --git a/sys/modules/cxgbe/tom/Makefile b/sys/modules/cxgbe/tom/Makefile index e64fb8a4ae13..301958ac5844 100644 --- a/sys/modules/cxgbe/tom/Makefile +++ b/sys/modules/cxgbe/tom/Makefile @@ -1,26 +1,25 @@ # -# $FreeBSD$ # CXGBE= ${SRCTOP}/sys/dev/cxgbe .PATH: ${CXGBE}/tom KMOD= t4_tom SRCS= bus_if.h SRCS+= device_if.h SRCS+= opt_inet.h SRCS+= opt_inet6.h SRCS+= opt_kern_tls.h SRCS+= opt_ratelimit.h SRCS+= pci_if.h SRCS+= t4_connect.c SRCS+= t4_cpl_io.c SRCS+= t4_ddp.c SRCS+= t4_listen.c SRCS+= t4_tls.c SRCS+= t4_tom.c SRCS+= t4_tom_l2t.c CFLAGS+= -I${CXGBE} .include diff --git a/sys/modules/dc/Makefile b/sys/modules/dc/Makefile index 298246301070..e45f76fdf917 100644 --- a/sys/modules/dc/Makefile +++ b/sys/modules/dc/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/dc KMOD= if_dc SRCS= if_dc.c dcphy.c pnphy.c device_if.h bus_if.h pci_if.h SRCS+= miibus_if.h miidevs.h opt_platform.h .include diff --git a/sys/modules/dcons/Makefile b/sys/modules/dcons/Makefile index bdc86609c16c..ce264992a657 100644 --- a/sys/modules/dcons/Makefile +++ b/sys/modules/dcons/Makefile @@ -1,22 +1,21 @@ # $Id: Makefile,v 1.6 2003/10/24 15:41:26 simokawa Exp $ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/dcons KMOD = dcons SRCS = dcons.c dcons.h dcons_os.c dcons_os.h \ opt_dcons.h opt_kdb.h opt_ddb.h opt_gdb.h .if !defined(KERNBUILDDIR) opt_kdb.h: echo "#define KDB 1" > $@ opt_ddb.h: echo "#define DDB 1" > $@ .endif CFLAGS+= -I${SRCTOP}/sys EXPORT_SYMS= YES .include diff --git a/sys/modules/dcons_crom/Makefile b/sys/modules/dcons_crom/Makefile index b5ac6048b6c1..497d957abe62 100644 --- a/sys/modules/dcons_crom/Makefile +++ b/sys/modules/dcons_crom/Makefile @@ -1,14 +1,13 @@ # $Id: Makefile,v 1.6 2003/10/24 15:43:24 simokawa Exp $ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/dcons KMOD = dcons_crom SRCS = dcons_crom.c dcons.h dcons_os.h \ bus_if.h device_if.h #KMODDEPS = firewire dcons CFLAGS+= -I${SRCTOP}/sys .include diff --git a/sys/modules/dpdk_lpm4/Makefile b/sys/modules/dpdk_lpm4/Makefile index 964c6e663826..cd9f0f415ce7 100644 --- a/sys/modules/dpdk_lpm4/Makefile +++ b/sys/modules/dpdk_lpm4/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/contrib/dpdk_rte_lpm KMOD= dpdk_lpm4 SRCS= opt_inet.h SRCS.INET=dpdk_lpm.c rte_lpm.c .include diff --git a/sys/modules/dpdk_lpm6/Makefile b/sys/modules/dpdk_lpm6/Makefile index 203703fb7116..3145c0646a90 100644 --- a/sys/modules/dpdk_lpm6/Makefile +++ b/sys/modules/dpdk_lpm6/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/contrib/dpdk_rte_lpm KMOD= dpdk_lpm6 SRCS= opt_inet6.h SRCS.INET6=dpdk_lpm6.c rte_lpm6.c .include diff --git a/sys/modules/dpms/Makefile b/sys/modules/dpms/Makefile index 0e84f8d2e164..55b0a1ef1c3f 100644 --- a/sys/modules/dpms/Makefile +++ b/sys/modules/dpms/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ KMOD= dpms SRCS= bus_if.h device_if.h pci_if.h .PATH: ${SRCTOP}/sys/dev/dpms SRCS+= dpms.c .include diff --git a/sys/modules/dtb/allwinner/Makefile b/sys/modules/dtb/allwinner/Makefile index 143df739bbfd..524636e380d6 100644 --- a/sys/modules/dtb/allwinner/Makefile +++ b/sys/modules/dtb/allwinner/Makefile @@ -1,71 +1,70 @@ -# $FreeBSD$ # All the dts files for allwinner systems we support. .if ${MACHINE_ARCH} == "armv7" DTS= \ sun4i-a10-cubieboard.dts \ sun4i-a10-olinuxino-lime.dts \ sun6i-a31s-sinovoip-bpi-m2.dts \ sun5i-a13-olinuxino.dts \ sun5i-r8-chip.dts \ sun7i-a20-bananapi.dts \ sun7i-a20-cubieboard2.dts \ sun7i-a20-lamobo-r1.dts \ sun7i-a20-olimex-som-evb.dts \ sun7i-a20-pcduino3.dts \ sun8i-a83t-bananapi-m3.dts \ sun8i-h2-plus-orangepi-r1.dts \ sun8i-h2-plus-orangepi-zero.dts \ sun8i-h3-nanopi-m1.dts \ sun8i-h3-nanopi-m1-plus.dts \ sun8i-h3-nanopi-neo.dts \ sun8i-h3-orangepi-one.dts \ sun8i-h3-orangepi-pc.dts \ sun8i-h3-orangepi-pc-plus.dts \ sun8i-h3-orangepi-plus2e.dts DTSO= sun8i-a83t-sid.dtso \ sun8i-h3-i2c0.dtso \ sun8i-h3-i2c1.dtso \ sun8i-h3-mmc0-disable.dtso \ sun8i-h3-mmc1-disable.dtso \ sun8i-h3-mmc2-disable.dtso \ sun8i-h3-spi0.dtso LINKS= \ ${DTBDIR}/sun4i-a10-cubieboard.dtb ${DTBDIR}/cubieboard.dtb \ ${DTBDIR}/sun4i-a10-olinuxino-lime.dtb ${DTBDIR}/olinuxino-lime.dtb \ ${DTBDIR}/sun6i-a31s-sinovoip-bpi-m2.dtb ${DTBDIR}/bananapim2.dtb \ ${DTBDIR}/sun7i-a20-bananapi.dtb ${DTBDIR}/bananapi.dtb \ ${DTBDIR}/sun7i-a20-cubieboard2.dtb ${DTBDIR}/cubieboard2.dtb \ ${DTBDIR}/sun7i-a20-olimex-som-evb.dtb ${DTBDIR}/olimex-a20-som-evb.dtb \ ${DTBDIR}/sun7i-a20-pcduino3.dtb ${DTBDIR}/pcduino3.dtb \ ${DTBDIR}/sun8i-a83t-bananapi-m3.dtb ${DTBDIR}/sinovoip-bpi-m3.dtb \ ${DTBDIR}/sun8i-a83t-bananapi-m3.dtb ${DTBDIR}/sun8i-a83t-sinovoip-bpi-m3.dtb .elif ${MACHINE_ARCH} == "aarch64" DTS= \ allwinner/sun50i-a64-nanopi-a64.dts \ allwinner/sun50i-a64-olinuxino.dts \ allwinner/sun50i-a64-pine64-lts.dts \ allwinner/sun50i-a64-pine64-plus.dts \ allwinner/sun50i-a64-pine64.dts \ allwinner/sun50i-a64-pinebook.dts \ allwinner/sun50i-a64-sopine-baseboard.dts \ allwinner/sun50i-h5-orangepi-pc2.dts \ allwinner/sun50i-h5-nanopi-neo2.dts \ allwinner/sun50i-h6-pine-h64.dts \ allwinner/sun50i-h6-pine-h64-model-b.dts DTSO= sun50i-a64-mmc0-disable.dtso \ sun50i-a64-mmc1-disable.dtso \ sun50i-a64-mmc2-disable.dtso \ sun50i-a64-pwm.dtso \ sun50i-a64-rpwm.dtso \ sun50i-a64-spi0-spigen.dtso \ sun50i-a64-timer.dtso \ sun50i-h5-opp.dtso \ sun50i-h5-nanopi-neo2-opp.dtso .endif .include diff --git a/sys/modules/dtb/am335x/Makefile b/sys/modules/dtb/am335x/Makefile index 31a11e171af8..9c8f007cf4e2 100644 --- a/sys/modules/dtb/am335x/Makefile +++ b/sys/modules/dtb/am335x/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ # All the dts files for am335x systems we support. DTS= \ am335x-bone.dts \ am335x-boneblack.dts \ am335x-boneblack-wireless.dts \ am335x-bonegreen.dts \ am335x-bonegreen-wireless.dts \ am335x-boneblue.dts \ am335x-pocketbeagle.dts \ ufw.dts .include diff --git a/sys/modules/dtb/freescale/Makefile b/sys/modules/dtb/freescale/Makefile index 77602c4f5ef1..871c15330fe3 100644 --- a/sys/modules/dtb/freescale/Makefile +++ b/sys/modules/dtb/freescale/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ # All the dts files for Freescale (now NXP) systems we support. DTS= freescale/fsl-ls1028a-rdb.dts \ freescale/fsl-lx2160a-clearfog-cx.dts \ freescale/fsl-lx2160a-honeycomb.dts \ freescale/fsl-lx2160a-qds.dts \ freescale/fsl-lx2160a-rdb.dts .include diff --git a/sys/modules/dtb/imx5/Makefile b/sys/modules/dtb/imx5/Makefile index c519149a7daf..ff55e4fc85a1 100644 --- a/sys/modules/dtb/imx5/Makefile +++ b/sys/modules/dtb/imx5/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ # All the dts files for imx5 systems we support. DTS= \ imx53-qsb.dts .include diff --git a/sys/modules/dtb/imx6/Makefile b/sys/modules/dtb/imx6/Makefile index 7fce6c70774c..46daa29188bc 100644 --- a/sys/modules/dtb/imx6/Makefile +++ b/sys/modules/dtb/imx6/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ # All the dts files for imx6 systems we support. DTS= \ imx6dl-cubox-i.dts \ imx6q-cubox-i.dts \ imx6dl-hummingboard.dts \ imx6q-hummingboard.dts \ imx6dl-nitrogen6x.dts \ imx6q-nitrogen6_max.dts \ imx6q-nitrogen6x.dts \ imx6qp-nitrogen6_max.dts \ imx6sx-nitrogen6sx.dts \ imx6dl-riotboard.dts \ imx6dl-wandboard.dts \ imx6dl-wandboard-revb1.dts \ imx6q-wandboard.dts \ imx6q-wandboard-revb1.dts \ .include diff --git a/sys/modules/dtb/imx8/Makefile b/sys/modules/dtb/imx8/Makefile index 7e5aab381e1b..1622cf68b6e0 100644 --- a/sys/modules/dtb/imx8/Makefile +++ b/sys/modules/dtb/imx8/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # All the dts files for imx8 systems we support. DTS= \ freescale/imx8mq-evk.dts \ freescale/imx8mq-nitrogen.dts .include diff --git a/sys/modules/dtb/mv/Makefile b/sys/modules/dtb/mv/Makefile index 6866fba671e8..3e6da07796a4 100644 --- a/sys/modules/dtb/mv/Makefile +++ b/sys/modules/dtb/mv/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ # All the dts files for Marvell systems we support. .if ${MACHINE_ARCH} == "armv7" DTS= \ armada-388-clearfog.dts \ armada-388-gp.dts .elif ${MACHINE_ARCH} == "aarch64" DTS= \ marvell/armada-3720-espressobin.dts \ marvell/armada-8040-clearfog-gt-8k.dts \ marvell/armada-8040-db \ marvell/armada-8040-mcbin.dts \ marvell/armada-8040-mcbin-singleshot.dts .endif .include diff --git a/sys/modules/dtb/nvidia/Makefile b/sys/modules/dtb/nvidia/Makefile index c2b1cf53738b..1bda4d1085af 100644 --- a/sys/modules/dtb/nvidia/Makefile +++ b/sys/modules/dtb/nvidia/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ # All the dts files for Nvidia ARM systems we support. .if ${MACHINE_ARCH} == "armv7" DTS= tegra124-jetson-tk1-fbsd.dts DTS+= tegra124-jetson-tk1.dts .elif ${MACHINE_ARCH} == "aarch64" DTS= nvidia/tegra210-p2371-2180.dts DTS+= nvidia/tegra210-p3450-0000.dts .endif .include diff --git a/sys/modules/dtb/omap4/Makefile b/sys/modules/dtb/omap4/Makefile index 036ec7fad4fa..cd545cdfd0b1 100644 --- a/sys/modules/dtb/omap4/Makefile +++ b/sys/modules/dtb/omap4/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ # All the dts files for omap4 systems we support. DTS= \ omap4-duovero-parlor.dts \ omap4-panda.dts \ omap4-panda-es.dts .include diff --git a/sys/modules/dtb/rockchip/Makefile b/sys/modules/dtb/rockchip/Makefile index 4f4a21f51a39..79ce7f2c7407 100644 --- a/sys/modules/dtb/rockchip/Makefile +++ b/sys/modules/dtb/rockchip/Makefile @@ -1,30 +1,29 @@ -# $FreeBSD$ # All the dts files for rockchip systems we support. .if ${MACHINE_ARCH} == "armv7" DTS= \ rk3288-tinker.dts \ rk3288-tinker-s.dts .elif ${MACHINE_ARCH} == "aarch64" DTS= \ rockchip/rk3399-khadas-edge-captain.dts \ rockchip/rk3399-khadas-edge.dts \ rockchip/rk3399-khadas-edge-v.dts \ rockchip/rk3399-nanopc-t4.dts \ rockchip/rk3328-nanopi-r2s.dts \ rockchip/rk3399-nanopi-r4s.dts \ rockchip/rk3399-rock-pi-4.dts \ rockchip/rk3328-rock-pi-e.dts \ rockchip/rk3328-rock64.dts \ rockchip/rk3399-firefly.dts \ rockchip/rk3399-rockpro64.dts DTSO= rk3328-analog-sound.dtso \ rk3328-i2c0.dtso \ rk3328-uart1.dtso \ rk3399-mmc0-disable.dtso \ rk3399-mmc1-disable.dtso \ rk3399-sdhci-disable.dtso .endif .include diff --git a/sys/modules/dtb/rpi/Makefile b/sys/modules/dtb/rpi/Makefile index cdc6c86777d3..57ba9ec98d09 100644 --- a/sys/modules/dtb/rpi/Makefile +++ b/sys/modules/dtb/rpi/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ # DTS files for the 32-bit and 64-bit arm-based Raspberry Pi family of devices .if ${MACHINE_CPUARCH} == "arm" DTSO= \ spigen-rpi-b.dtso \ spigen-rpi2.dtso .elif ${MACHINE_CPUARCH} == "aarch64" DTSO= \ spigen-rpi3.dtso \ spigen-rpi4.dtso .endif .include diff --git a/sys/modules/dtb/sifive/Makefile b/sys/modules/dtb/sifive/Makefile index 51522b150ad4..818ffa472ec0 100644 --- a/sys/modules/dtb/sifive/Makefile +++ b/sys/modules/dtb/sifive/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ DTS= \ sifive/hifive-unleashed-a00.dts .include diff --git a/sys/modules/dtb/zynq/Makefile b/sys/modules/dtb/zynq/Makefile index 6dfac0ac3e3f..d10c42afe24c 100644 --- a/sys/modules/dtb/zynq/Makefile +++ b/sys/modules/dtb/zynq/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # All the dts files for Zynq systems we support. DTS= \ zedboard.dts \ zybo.dts .include diff --git a/sys/modules/dtrace/Makefile b/sys/modules/dtrace/Makefile index 73bbbff80640..73c71c5bd1fb 100644 --- a/sys/modules/dtrace/Makefile +++ b/sys/modules/dtrace/Makefile @@ -1,36 +1,35 @@ -# $FreeBSD$ .include "Makefile.inc" SUBDIR= dtaudit \ dtmalloc \ dtnfscl \ dtrace \ dtraceall \ dtrace_test \ fbt \ profile \ prototype \ sdt \ systrace .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" SUBDIR+= fasttrap systrace_linux .endif .if ${MACHINE_CPUARCH} == "amd64" SUBDIR+= systrace_linux32 SUBDIR+= kinst .endif .if ${MACHINE_CPUARCH} == "riscv" || ${MACHINE_CPUARCH} == "aarch64" SUBDIR+= kinst .endif .if ${MACHINE_CPUARCH} == "powerpc" SUBDIR+= fasttrap .endif .if ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "aarch64" || \ ${MACHINE_ARCH} == "powerpc64" SUBDIR+= systrace_freebsd32 .endif .include diff --git a/sys/modules/dtrace/Makefile.inc b/sys/modules/dtrace/Makefile.inc index 3520c38d9655..fd3c99a9407a 100644 --- a/sys/modules/dtrace/Makefile.inc +++ b/sys/modules/dtrace/Makefile.inc @@ -1,25 +1,24 @@ -# $FreeBSD$ IGNORE_PRAGMA= 1 load : -kldload dtrace .if ${MACHINE_CPUARCH} == "i386" -kldload sdt -kldload fbt -kldload prototype .endif -kldload profile -kldload systrace kldstat unload : -kldunload systrace -kldunload profile .if ${MACHINE_CPUARCH} == "i386" -kldunload prototype -kldunload fbt -kldunload sdt .endif -kldunload dtrace kldstat diff --git a/sys/modules/dtrace/dtaudit/Makefile b/sys/modules/dtrace/dtaudit/Makefile index 72cdf03f4bc3..22e85a70afac 100644 --- a/sys/modules/dtrace/dtaudit/Makefile +++ b/sys/modules/dtrace/dtaudit/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/security/audit KMOD= dtaudit SRCS= audit_dtrace.c \ vnode_if.h CFLAGS+= ${OPENZFS_CFLAGS} .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/dtmalloc/Makefile b/sys/modules/dtrace/dtmalloc/Makefile index 910f8f360e80..5c1570b69e86 100644 --- a/sys/modules/dtrace/dtmalloc/Makefile +++ b/sys/modules/dtrace/dtmalloc/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/dev/dtmalloc KMOD= dtmalloc SRCS= dtmalloc.c SRCS+= vnode_if.h CFLAGS+= ${OPENZFS_CFLAGS} .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/dtnfscl/Makefile b/sys/modules/dtrace/dtnfscl/Makefile index 6184ad183fc6..24e58828a8b7 100644 --- a/sys/modules/dtrace/dtnfscl/Makefile +++ b/sys/modules/dtrace/dtnfscl/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/fs/nfsclient KMOD= dtnfscl SRCS= nfs_clkdtrace.c \ vnode_if.h CFLAGS+= ${OPENZFS_CFLAGS} .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/dtrace/Makefile b/sys/modules/dtrace/dtrace/Makefile index 04829bd1d2c4..53e5f1792ad5 100644 --- a/sys/modules/dtrace/dtrace/Makefile +++ b/sys/modules/dtrace/dtrace/Makefile @@ -1,66 +1,65 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys ARCHDIR= ${MACHINE_CPUARCH} .PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/common/dtrace .PATH: ${SYSDIR}/cddl/compat/opensolaris/kern .PATH: ${SYSDIR}/cddl/kern .PATH: ${SYSDIR}/cddl/dev/dtrace .PATH: ${SYSDIR}/cddl/dev/dtrace/${ARCHDIR} KMOD= dtrace SRCS= dtrace.c \ dtrace_xoroshiro128_plus.c \ dtrace_asm.S \ dtrace_subr.c .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" .PATH: ${SYSDIR}/cddl/dev/dtrace/x86 SRCS+= dis_tables.c \ instr_size.c CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/intel \ -I${SYSDIR}/cddl/dev/dtrace/x86 .endif .if ${MACHINE_CPUARCH} == "riscv" || ${MACHINE_CPUARCH} == "aarch64" SRCS+= instr_size.c .endif CFLAGS+= ${OPENZFS_CFLAGS} SRCS+= bus_if.h device_if.h vnode_if.h # Needed for dtrace_asm.S DPSRCS+= assym.inc # These are needed for assym.inc SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h #This is needed for dtrace.c SRCS += opensolaris_taskq.c .if ${MACHINE_CPUARCH} == "i386" SRCS+= opt_apic.h .endif CFLAGS+= -I${SYSDIR}/cddl/compat/opensolaris \ -I${SYSDIR}/cddl/dev/dtrace \ -I${SYSDIR}/cddl/dev/dtrace/${ARCHDIR} \ -I${SYSDIR}/cddl/contrib/opensolaris/uts/common \ -I${SYSDIR}/cddl/contrib/opensolaris/uts/common/dtrace \ -I${SYSDIR}/cddl/contrib/opensolaris/common/util \ -I${SYSDIR} -DDIS_MEM EXPORT_SYMS= YES dtrace_asm.o: assym.inc .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h CFLAGS.dtrace_asm.S+= -D_SYS_ERRNO_H_ -D_SYS_PARAM_H_ -DLOCORE CWARNFLAGS+= -Wno-parentheses CWARNFLAGS+= -Wno-cast-qual CWARNFLAGS+= -Wno-unused diff --git a/sys/modules/dtrace/dtrace_test/Makefile b/sys/modules/dtrace/dtrace_test/Makefile index 28ae79a268df..70f12982162c 100644 --- a/sys/modules/dtrace/dtrace_test/Makefile +++ b/sys/modules/dtrace/dtrace_test/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/dev/dtrace KMOD= dtrace_test SRCS= dtrace_test.c SRCS+= vnode_if.h CFLAGS+= -I${SYSDIR} .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/dtraceall/Makefile b/sys/modules/dtrace/dtraceall/Makefile index c331a1f53f0b..ecbb0f4a21bb 100644 --- a/sys/modules/dtrace/dtraceall/Makefile +++ b/sys/modules/dtrace/dtraceall/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys KMOD= dtraceall SRCS= dtraceall.c opt_nfs.h CFLAGS+= -I${SYSDIR} .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/fasttrap/Makefile b/sys/modules/dtrace/fasttrap/Makefile index 1be1b97736ea..271ac07cfbbb 100644 --- a/sys/modules/dtrace/fasttrap/Makefile +++ b/sys/modules/dtrace/fasttrap/Makefile @@ -1,30 +1,29 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/common/dtrace KMOD= fasttrap SRCS= fasttrap.c fasttrap_isa.c SRCS+= vnode_if.h opt_global.h CFLAGS+= -include ${.OBJDIR}/opt_global.h CFLAGS+= ${OPENZFS_CFLAGS} .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/intel .PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/intel/dtrace .elif ${MACHINE_CPUARCH} == "powerpc" CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/powerpc .PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/powerpc/dtrace .endif .PATH: ${SYSDIR}/contrib/openzfs/module/unicode SRCS+= u8_textprep.c .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h CWARNFLAGS+= -Wno-cast-qual CWARNFLAGS+= -Wno-unused diff --git a/sys/modules/dtrace/fbt/Makefile b/sys/modules/dtrace/fbt/Makefile index 288c8cafa817..370ee316098d 100644 --- a/sys/modules/dtrace/fbt/Makefile +++ b/sys/modules/dtrace/fbt/Makefile @@ -1,25 +1,24 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/dev/fbt KMOD= fbt SRCS= fbt.c fbt_isa.c SRCS+= vnode_if.h .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" CFLAGS+= -I${SYSDIR}/cddl/dev/fbt/x86 .PATH: ${SYSDIR}/cddl/dev/fbt/x86 .else CFLAGS+= -I${SYSDIR}/cddl/dev/fbt/${MACHINE_CPUARCH} .PATH: ${SYSDIR}/cddl/dev/fbt/${MACHINE_CPUARCH} .endif CFLAGS+= ${OPENZFS_CFLAGS} CFLAGS+= -I${SYSDIR}/cddl/dev/fbt .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/profile/Makefile b/sys/modules/dtrace/profile/Makefile index aa36f9a2dfba..b193ee0e3e43 100644 --- a/sys/modules/dtrace/profile/Makefile +++ b/sys/modules/dtrace/profile/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/dev/profile KMOD= profile SRCS= profile.c SRCS+= vnode_if.h CFLAGS+= ${OPENZFS_CFLAGS} .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/prototype/Makefile b/sys/modules/dtrace/prototype/Makefile index 476c567a4dc0..b622d628eacd 100644 --- a/sys/modules/dtrace/prototype/Makefile +++ b/sys/modules/dtrace/prototype/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/dev KMOD= prototype SRCS= prototype.c SRCS+= vnode_if.h CFLAGS+= ${OPENZFS_CFLAGS} .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/sdt/Makefile b/sys/modules/dtrace/sdt/Makefile index d672b3c9aab9..ee6627c5e72e 100644 --- a/sys/modules/dtrace/sdt/Makefile +++ b/sys/modules/dtrace/sdt/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/dev/sdt KMOD= sdt SRCS= sdt.c SRCS+= vnode_if.h CFLAGS+= ${OPENZFS_CFLAGS} .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/systrace/Makefile b/sys/modules/dtrace/systrace/Makefile index 3e122f70da25..ab16dd031244 100644 --- a/sys/modules/dtrace/systrace/Makefile +++ b/sys/modules/dtrace/systrace/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/dev/systrace KMOD= systrace SRCS= systrace.c SRCS+= vnode_if.h CFLAGS+= ${OPENZFS_CFLAGS} .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/systrace_freebsd32/Makefile b/sys/modules/dtrace/systrace_freebsd32/Makefile index 4661633f9a62..c9376a4b206d 100644 --- a/sys/modules/dtrace/systrace_freebsd32/Makefile +++ b/sys/modules/dtrace/systrace_freebsd32/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/dev/systrace KMOD= systrace_freebsd32 SRCS= systrace.c SRCS+= vnode_if.h CFLAGS+= ${OPENZFS_CFLAGS} CFLAGS+= -DFREEBSD32_SYSTRACE .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/systrace_linux/Makefile b/sys/modules/dtrace/systrace_linux/Makefile index 7dbd88ffb5f0..acdc7c0c967b 100644 --- a/sys/modules/dtrace/systrace_linux/Makefile +++ b/sys/modules/dtrace/systrace_linux/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/dev/systrace KMOD= systrace_linux SRCS= systrace.c SRCS+= vnode_if.h CFLAGS+= ${OPENZFS_CFLAGS} CFLAGS+= -DLINUX_SYSTRACE .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/systrace_linux32/Makefile b/sys/modules/dtrace/systrace_linux32/Makefile index 81aa1b7de9df..2970e42a58f5 100644 --- a/sys/modules/dtrace/systrace_linux32/Makefile +++ b/sys/modules/dtrace/systrace_linux32/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/dev/systrace KMOD= systrace_linux32 SRCS= systrace.c SRCS+= vnode_if.h CFLAGS+= ${OPENZFS_CFLAGS} CFLAGS+= -DLINUX32_SYSTRACE .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dummynet/Makefile b/sys/modules/dummynet/Makefile index 31ce91d085c0..6c7599eae45f 100644 --- a/sys/modules/dummynet/Makefile +++ b/sys/modules/dummynet/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/ipfw KMOD= dummynet SRCS= ip_dummynet.c SRCS+= ip_dn_glue.c ip_dn_io.c SRCS+= dn_aqm_codel.c dn_aqm_pie.c SRCS+= dn_heap.c dn_sched_fifo.c dn_sched_qfq.c dn_sched_rr.c dn_sched_wf2q.c SRCS+= dn_sched_prio.c dn_sched_fq_codel.c dn_sched_fq_pie.c SRCS+= opt_inet6.h .include diff --git a/sys/modules/e6000sw/Makefile b/sys/modules/e6000sw/Makefile index 222da155bb90..a4315ca16ddc 100644 --- a/sys/modules/e6000sw/Makefile +++ b/sys/modules/e6000sw/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/etherswitch/e6000sw KMOD= e6000sw SRCS= e6000sw.c SRCS+= bus_if.h etherswitch_if.h mdio_if.h miibus_if.h ofw_bus_if.h opt_platform.h .include diff --git a/sys/modules/efirt/Makefile b/sys/modules/efirt/Makefile index 4d6e89bc5d07..2993f5de0ef6 100644 --- a/sys/modules/efirt/Makefile +++ b/sys/modules/efirt/Makefile @@ -1,22 +1,21 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/${MACHINE}/${MACHINE} .PATH: ${SRCTOP}/sys/dev/efidev KMOD= efirt SRCS= efirt.c efirt_machdep.c efidev.c SRCS+= efirtc.c SRCS+= device_if.h bus_if.h clock_if.h .if ${MACHINE_CPUARCH} == "amd64" SRCS+= opt_hwpmc_hooks.h opt_kstack_pages.h SRCS+= efirt_support.S DPSRCS+= assym.inc efirt_support.o: efirt_support.S assym.inc ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.IMPSRC} -o ${.TARGET} .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/em/Makefile b/sys/modules/em/Makefile index d22d5a2fd7b7..bcf8d262dc45 100644 --- a/sys/modules/em/Makefile +++ b/sys/modules/em/Makefile @@ -1,27 +1,25 @@ -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/e1000 KMOD = if_em SRCS = device_if.h bus_if.h pci_if.h opt_ddb.h opt_inet.h \ opt_inet6.h opt_rss.h ifdi_if.h SRCS += $(CORE_SRC) $(LEGACY_SRC) SRCS += $(COMMON_SHARED) $(LEGACY_SHARED) $(PCIE_SHARED) CORE_SRC = if_em.c em_txrx.c e1000_osdep.c CORE_SRC += igb_txrx.c COMMON_SHARED = e1000_api.c e1000_base.c e1000_phy.c e1000_nvm.c e1000_mac.c \ e1000_manage.c e1000_vf.c e1000_mbx.c e1000_i210.c PCIE_SHARED = e1000_80003es2lan.c e1000_ich8lan.c e1000_82571.c e1000_82575.c # This is the Legacy, pre-PCIE source, it can be # undefined when using modular driver if not needed LEGACY_SHARED = e1000_82540.c e1000_82542.c e1000_82541.c e1000_82543.c CFLAGS += -I${SRCTOP}/sys/dev/e1000 # DEVICE_POLLING for a non-interrupt-driven method #CFLAGS += -DDEVICE_POLLING SYMLINKS= ${KMOD}.ko ${KMODDIR}/if_igb.ko .include diff --git a/sys/modules/ena/Makefile b/sys/modules/ena/Makefile index d619b5d7fa56..95326888cc6c 100644 --- a/sys/modules/ena/Makefile +++ b/sys/modules/ena/Makefile @@ -1,43 +1,42 @@ # # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2015-2020 Amazon.com, Inc. or its affiliates. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/ena \ ${SRCTOP}/sys/contrib/ena-com KMOD = if_ena SRCS = ena_com.c ena_eth_com.c SRCS += ena.c ena_sysctl.c ena_datapath.c ena_netmap.c ena_rss.c SRCS += device_if.h bus_if.h pci_if.h SRCS += opt_rss.h CFLAGS += -I${SRCTOP}/sys/contrib .include diff --git a/sys/modules/enetc/Makefile b/sys/modules/enetc/Makefile index 4957d96a1b5f..b54c5171616b 100644 --- a/sys/modules/enetc/Makefile +++ b/sys/modules/enetc/Makefile @@ -1,9 +1,8 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/enetc KMOD = if_enetc SRCS = if_enetc.c enetc_mdio.c SRCS += bus_if.h device_if.h ifdi_if.h miibus_if.h ofw_bus_if.h pci_if.h opt_platform.h .include diff --git a/sys/modules/epoch_test/Makefile b/sys/modules/epoch_test/Makefile index 0acbed5e2c1b..64d16faf7893 100644 --- a/sys/modules/epoch_test/Makefile +++ b/sys/modules/epoch_test/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/tests/epoch KMOD= epoch_test SRCS= epoch_test.c \ bus_if.h \ device_if.h .include diff --git a/sys/modules/et/Makefile b/sys/modules/et/Makefile index d0a15274fe00..6de777450535 100644 --- a/sys/modules/et/Makefile +++ b/sys/modules/et/Makefile @@ -1,10 +1,9 @@ # $DragonFly: src/sys/dev/netif/et/Makefile,v 1.1 2007/10/12 14:12:42 sephe Exp $ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/et KMOD= if_et SRCS= if_et.c SRCS+= bus_if.h pci_if.h device_if.h miibus_if.h opt_platform.h .include diff --git a/sys/modules/evdev/Makefile b/sys/modules/evdev/Makefile index 5888825f4773..49183bd3a8de 100644 --- a/sys/modules/evdev/Makefile +++ b/sys/modules/evdev/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/evdev KMOD= evdev SRCS= cdev.c evdev.c evdev_mt.c evdev_utils.c SRCS+= opt_evdev.h bus_if.h device_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/exca/Makefile b/sys/modules/exca/Makefile index 0d302c14dc4e..210a6eed5454 100644 --- a/sys/modules/exca/Makefile +++ b/sys/modules/exca/Makefile @@ -1,10 +1,9 @@ - # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/exca KMOD= exca SRCS= exca.c device_if.h bus_if.h power_if.h card_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/ext2fs/Makefile b/sys/modules/ext2fs/Makefile index d7e782f56410..0b0b20e29b1f 100644 --- a/sys/modules/ext2fs/Makefile +++ b/sys/modules/ext2fs/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/ext2fs KMOD= ext2fs SRCS= opt_ddb.h opt_directio.h opt_quota.h opt_suiddir.h vnode_if.h \ ext2_acl.c ext2_alloc.c ext2_balloc.c ext2_bmap.c ext2_csum.c \ ext2_extattr.c ext2_extents.c ext2_hash.c ext2_htree.c \ ext2_inode.c ext2_inode_cnv.c ext2_lookup.c ext2_subr.c \ ext2_vfsops.c ext2_vnops.c .include diff --git a/sys/modules/fdc/Makefile b/sys/modules/fdc/Makefile index 140135d43e66..1b131cc4d162 100644 --- a/sys/modules/fdc/Makefile +++ b/sys/modules/fdc/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ KMOD= fdc .PATH: ${SRCTOP}/sys/dev/fdc SRCS= fdc.c fdc_isa.c .if ${MACHINE} == "i386" || ${MACHINE} == "amd64" SRCS+= opt_acpi.h acpi_if.h fdc_acpi.c .endif SRCS+= opt_fdc.h bus_if.h device_if.h isa_if.h .include diff --git a/sys/modules/fdescfs/Makefile b/sys/modules/fdescfs/Makefile index 083ad17c6158..6745cffcfb24 100644 --- a/sys/modules/fdescfs/Makefile +++ b/sys/modules/fdescfs/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/fdescfs KMOD= fdescfs SRCS= vnode_if.h \ fdesc_vfsops.c fdesc_vnops.c .include diff --git a/sys/modules/fdt/Makefile b/sys/modules/fdt/Makefile index 8bfb0f47fcbc..bc27e25a0897 100644 --- a/sys/modules/fdt/Makefile +++ b/sys/modules/fdt/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # Build dev/fdt modules. SUBDIR = \ fdt_slicer \ .include diff --git a/sys/modules/fdt/fdt_slicer/Makefile b/sys/modules/fdt/fdt_slicer/Makefile index 5a38cd1f71ec..75de4cc58172 100644 --- a/sys/modules/fdt/fdt_slicer/Makefile +++ b/sys/modules/fdt/fdt_slicer/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/fdt KMOD= fdt_slicer SRCS= fdt_slicer.c # Generated files... SRCS+= \ bus_if.h \ device_if.h \ ofw_bus_if.h \ opt_platform.h \ .include diff --git a/sys/modules/ffec/Makefile b/sys/modules/ffec/Makefile index cf5437ba26ba..72bf600ac444 100644 --- a/sys/modules/ffec/Makefile +++ b/sys/modules/ffec/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ffec KMOD= if_ffec SRCS= if_ffec.c miibus_if.h device_if.h bus_if.h pci_if.h ofw_bus_if.h opt_global.h opt_platform.h .include diff --git a/sys/modules/fib_dxr/Makefile b/sys/modules/fib_dxr/Makefile index c1a704beb535..e620fdeb7fa8 100644 --- a/sys/modules/fib_dxr/Makefile +++ b/sys/modules/fib_dxr/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/netinet KMOD= fib_dxr SRCS= in_fib_dxr.c opt_inet.h .include diff --git a/sys/modules/filemon/Makefile b/sys/modules/filemon/Makefile index a85b1bd63dab..26c23854b984 100644 --- a/sys/modules/filemon/Makefile +++ b/sys/modules/filemon/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/filemon KMOD= filemon SRCS= ${KMOD}.c SRCS+= vnode_if.h .include diff --git a/sys/modules/filemon/Makefile.depend b/sys/modules/filemon/Makefile.depend index f80275d86ab1..11aba52f82cf 100644 --- a/sys/modules/filemon/Makefile.depend +++ b/sys/modules/filemon/Makefile.depend @@ -1,11 +1,10 @@ -# $FreeBSD$ # Autogenerated - do NOT edit! DIRDEPS = \ .include .if ${DEP_RELDIR} == ${_DEP_RELDIR} # local dependencies - needed for -jN in clean tree .endif diff --git a/sys/modules/firewire/Makefile b/sys/modules/firewire/Makefile index 379ad58ba0ea..d5254f528eea 100644 --- a/sys/modules/firewire/Makefile +++ b/sys/modules/firewire/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ SUBDIR= firewire \ fwe \ fwip \ sbp \ sbp_targ .include diff --git a/sys/modules/firewire/Makefile.inc b/sys/modules/firewire/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/firewire/Makefile.inc +++ b/sys/modules/firewire/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/firewire/firewire/Makefile b/sys/modules/firewire/firewire/Makefile index 9ce806ae96d1..7eb04113b8a5 100644 --- a/sys/modules/firewire/firewire/Makefile +++ b/sys/modules/firewire/firewire/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ # Makefile for the IEEE1394 OHCI chipset .PATH: ${SRCTOP}/sys/dev/firewire KMOD= firewire SRCS = bus_if.h device_if.h pci_if.h \ firewire.c firewire.h firewire_phy.h firewirereg.h \ fwohci.c fwohci_pci.c fwohcireg.h fwohcivar.h \ iec13213.h iec68113.h \ fwcrom.c fwdev.c fwmem.c fwmem.h fwdma.c fwdma.h EXPORT_SYMS= YES .include diff --git a/sys/modules/firewire/fwe/Makefile b/sys/modules/firewire/fwe/Makefile index 8632ab2e16c5..0e05a7d35489 100644 --- a/sys/modules/firewire/fwe/Makefile +++ b/sys/modules/firewire/fwe/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ # Makefile for the fwe(4) module (Ethernet over IEEE1394) .PATH: ${SRCTOP}/sys/dev/firewire KMOD = if_fwe SRCS = bus_if.h device_if.h \ opt_inet.h \ if_fwe.c if_fwevar.h \ firewire.h firewirereg.h #CFLAGS += -DDEVICE_POLLING .include diff --git a/sys/modules/firewire/fwip/Makefile b/sys/modules/firewire/fwip/Makefile index e79bd1486f44..063dc2f0d502 100644 --- a/sys/modules/firewire/fwip/Makefile +++ b/sys/modules/firewire/fwip/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ # Makefile for the fwip(4) module (IP over IEEE1394) .PATH: ${SRCTOP}/sys/dev/firewire ${SRCTOP}/sys/net KMOD = if_fwip SRCS = bus_if.h device_if.h \ opt_inet.h opt_inet6.h opt_ofed.h \ if_fwip.c if_fwipvar.h \ firewire.h firewirereg.h \ if_fwsubr.c #CFLAGS += -DDEVICE_POLLING .include diff --git a/sys/modules/firewire/sbp/Makefile b/sys/modules/firewire/sbp/Makefile index 7023b8df99b1..c4fb487c3093 100644 --- a/sys/modules/firewire/sbp/Makefile +++ b/sys/modules/firewire/sbp/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ # Makefile for the SBP-II (Serial Bus Protocol 2/SCSI over IEEE1394) .PATH: ${SRCTOP}/sys/dev/firewire KMOD = sbp SRCS = bus_if.h device_if.h \ opt_cam.h opt_scsi.h \ sbp.c sbp.h \ firewire.h firewirereg.h \ iec13213.h .include diff --git a/sys/modules/firewire/sbp_targ/Makefile b/sys/modules/firewire/sbp_targ/Makefile index 2be9c565eca7..ff14615bd541 100644 --- a/sys/modules/firewire/sbp_targ/Makefile +++ b/sys/modules/firewire/sbp_targ/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ # Makefile for the SBP-II Target mode .PATH: ${SRCTOP}/sys/dev/firewire KMOD = sbp_targ SRCS = bus_if.h device_if.h \ opt_cam.h opt_scsi.h \ sbp_targ.c sbp.h \ firewire.h firewirereg.h \ iec13213.h .include diff --git a/sys/modules/firmware/Makefile b/sys/modules/firmware/Makefile index 5b74a9dce24c..949bc3e6cf24 100644 --- a/sys/modules/firmware/Makefile +++ b/sys/modules/firmware/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= firmware SRCS= subr_firmware.c vnode_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/flash/Makefile b/sys/modules/flash/Makefile index be794f191b46..0a11b1242579 100644 --- a/sys/modules/flash/Makefile +++ b/sys/modules/flash/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ # Build dev/flash modules. SUBDIR = .if (${MACHINE_CPUARCH} == "aarch64") && !empty(OPT_FDT) SUBDIR+= flexspi .endif .include diff --git a/sys/modules/flash/flexspi/Makefile b/sys/modules/flash/flexspi/Makefile index d230ff3bf21f..25d937df9316 100644 --- a/sys/modules/flash/flexspi/Makefile +++ b/sys/modules/flash/flexspi/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/flash/flexspi KMOD= flexspi SRCS= flex_spi.c # Generated files... SRCS+= \ bus_if.h \ device_if.h \ ofw_bus_if.h \ opt_platform.h \ .include diff --git a/sys/modules/ftgpio/Makefile b/sys/modules/ftgpio/Makefile index bf9b5f0d762b..eb8e22b48870 100644 --- a/sys/modules/ftgpio/Makefile +++ b/sys/modules/ftgpio/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ftgpio KMOD= ftgpio SRCS= ftgpio.c SRCS+= device_if.h bus_if.h isa_if.h gpio_if.h opt_platform.h .include diff --git a/sys/modules/ftwd/Makefile b/sys/modules/ftwd/Makefile index 797e9fc43fda..56dd7c8a04f9 100644 --- a/sys/modules/ftwd/Makefile +++ b/sys/modules/ftwd/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ftwd KMOD= ftwd SRCS= ftwd.c SRCS+= device_if.h bus_if.h isa_if.h .include diff --git a/sys/modules/fusefs/Makefile b/sys/modules/fusefs/Makefile index 36605fed5d60..682505c401ba 100644 --- a/sys/modules/fusefs/Makefile +++ b/sys/modules/fusefs/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/fuse KMOD= fusefs SRCS= vnode_if.h \ fuse_node.c fuse_io.c fuse_device.c fuse_ipc.c fuse_file.c \ fuse_vfsops.c fuse_vnops.c fuse_internal.c fuse_main.c .include diff --git a/sys/modules/fxp/Makefile b/sys/modules/fxp/Makefile index a6fe85fe8252..3f8963b3f38a 100644 --- a/sys/modules/fxp/Makefile +++ b/sys/modules/fxp/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/fxp KMOD= if_fxp SRCS= device_if.h bus_if.h if_fxp.c inphy.c miibus_if.h miidevs.h pci_if.h opt_platform.h .include diff --git a/sys/modules/gem/Makefile b/sys/modules/gem/Makefile index 7c392dacdb09..820ff4f7bd53 100644 --- a/sys/modules/gem/Makefile +++ b/sys/modules/gem/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/gem KMOD= if_gem SRCS= bus_if.h device_if.h if_gem.c if_gem_pci.c miibus_if.h SRCS+= ${ofw_bus_if} pci_if.h opt_platform.h .if ${MACHINE_CPUARCH} == "powerpc" ofw_bus_if= ofw_bus_if.h .endif .include diff --git a/sys/modules/geom/Makefile b/sys/modules/geom/Makefile index f2d5c931f168..48f225d0a33e 100644 --- a/sys/modules/geom/Makefile +++ b/sys/modules/geom/Makefile @@ -1,34 +1,33 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" SUBDIR= geom_bde \ geom_cache \ geom_concat \ geom_eli \ geom_flashmap \ geom_gate \ geom_journal \ geom_label \ geom_linux_lvm \ geom_mirror \ geom_mountver \ geom_multipath \ geom_nop \ geom_part \ geom_raid \ geom_raid3 \ geom_shsec \ geom_stripe \ geom_union \ geom_uzip \ geom_vinum \ geom_virstor \ geom_zero .if ${MK_CCD} != "no" || defined(ALL_MODULES) SUBDIR+= geom_ccd .endif .include diff --git a/sys/modules/geom/Makefile.inc b/sys/modules/geom/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/geom/Makefile.inc +++ b/sys/modules/geom/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/geom/geom_bde/Makefile b/sys/modules/geom/geom_bde/Makefile index a3961c2254b2..808775a79743 100644 --- a/sys/modules/geom/geom_bde/Makefile +++ b/sys/modules/geom/geom_bde/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/bde .PATH: ${SRCTOP}/sys/crypto/rijndael .PATH: ${SRCTOP}/sys/crypto/sha2 KMOD= geom_bde SRCS= g_bde.c g_bde_crypt.c g_bde_lock.c g_bde_work.c SRCS+= rijndael-alg-fst.c rijndael-api-fst.c sha256c.c sha512c.c .include diff --git a/sys/modules/geom/geom_cache/Makefile b/sys/modules/geom/geom_cache/Makefile index 8260f9e2b776..73bb7665d745 100644 --- a/sys/modules/geom/geom_cache/Makefile +++ b/sys/modules/geom/geom_cache/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/cache KMOD= geom_cache SRCS= g_cache.c .include diff --git a/sys/modules/geom/geom_ccd/Makefile b/sys/modules/geom/geom_ccd/Makefile index 3e1c667011fa..ada4b9259c0d 100644 --- a/sys/modules/geom/geom_ccd/Makefile +++ b/sys/modules/geom/geom_ccd/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom KMOD= geom_ccd SRCS= geom_ccd.c .include diff --git a/sys/modules/geom/geom_concat/Makefile b/sys/modules/geom/geom_concat/Makefile index 5caff7117f02..603f7d81cb19 100644 --- a/sys/modules/geom/geom_concat/Makefile +++ b/sys/modules/geom/geom_concat/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/concat KMOD= geom_concat SRCS= g_concat.c .include diff --git a/sys/modules/geom/geom_eli/Makefile b/sys/modules/geom/geom_eli/Makefile index b3b2f926c595..68907218fdae 100644 --- a/sys/modules/geom/geom_eli/Makefile +++ b/sys/modules/geom/geom_eli/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/eli KMOD= geom_eli SRCS= g_eli.c SRCS+= g_eli_crypto.c SRCS+= g_eli_ctl.c SRCS+= g_eli_hmac.c SRCS+= g_eli_integrity.c SRCS+= g_eli_key.c SRCS+= g_eli_key_cache.c SRCS+= g_eli_privacy.c SRCS+= pkcs5v2.c SRCS+= vnode_if.h .include diff --git a/sys/modules/geom/geom_flashmap/Makefile b/sys/modules/geom/geom_flashmap/Makefile index 47e3d6105371..520d0ad783c6 100644 --- a/sys/modules/geom/geom_flashmap/Makefile +++ b/sys/modules/geom/geom_flashmap/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom KMOD= geom_flashmap SRCS= geom_flashmap.c EXPORT_SYMS= YES .include diff --git a/sys/modules/geom/geom_gate/Makefile b/sys/modules/geom/geom_gate/Makefile index 88705a0e9511..3d084790eb7c 100644 --- a/sys/modules/geom/geom_gate/Makefile +++ b/sys/modules/geom/geom_gate/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/gate KMOD= geom_gate SRCS= g_gate.c .include diff --git a/sys/modules/geom/geom_journal/Makefile b/sys/modules/geom/geom_journal/Makefile index 89298a8180d7..b8bd96d3b242 100644 --- a/sys/modules/geom/geom_journal/Makefile +++ b/sys/modules/geom/geom_journal/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/journal KMOD= geom_journal SRCS= g_journal.c SRCS+= g_journal_ufs.c SRCS+= vnode_if.h .include diff --git a/sys/modules/geom/geom_label/Makefile b/sys/modules/geom/geom_label/Makefile index 731ca48dcbf9..4ed9c6e5630e 100644 --- a/sys/modules/geom/geom_label/Makefile +++ b/sys/modules/geom/geom_label/Makefile @@ -1,22 +1,21 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/label KMOD= geom_label SRCS= g_label.c SRCS+= g_label_disk_ident.c SRCS+= g_label_ext2fs.c SRCS+= g_label_flashmap.c SRCS+= g_label_gpt.c SRCS+= g_label_iso9660.c SRCS+= g_label_msdosfs.c SRCS+= g_label_ntfs.c SRCS+= g_label_reiserfs.c SRCS+= g_label_ufs.c SRCS+= opt_geom.h SRCS+= vnode_if.h opt_geom.h: echo "#define GEOM_LABEL 1" > ${.TARGET} .include diff --git a/sys/modules/geom/geom_linux_lvm/Makefile b/sys/modules/geom/geom_linux_lvm/Makefile index 5d2b7a3eadd1..0d0ee72e8d87 100644 --- a/sys/modules/geom/geom_linux_lvm/Makefile +++ b/sys/modules/geom/geom_linux_lvm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/linux_lvm KMOD= geom_linux_lvm SRCS= g_linux_lvm.c .include diff --git a/sys/modules/geom/geom_map/Makefile b/sys/modules/geom/geom_map/Makefile index 4f5b773d755a..85beccbf493e 100644 --- a/sys/modules/geom/geom_map/Makefile +++ b/sys/modules/geom/geom_map/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom KMOD= geom_map SRCS= geom_map.c bus_if.h device_if.h .include diff --git a/sys/modules/geom/geom_mirror/Makefile b/sys/modules/geom/geom_mirror/Makefile index f2a11a537374..a46e0ceebf38 100644 --- a/sys/modules/geom/geom_mirror/Makefile +++ b/sys/modules/geom/geom_mirror/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/mirror KMOD= geom_mirror SRCS= g_mirror.c SRCS+= g_mirror_ctl.c .include diff --git a/sys/modules/geom/geom_mountver/Makefile b/sys/modules/geom/geom_mountver/Makefile index ff579ba3289e..f5df29d8f29a 100644 --- a/sys/modules/geom/geom_mountver/Makefile +++ b/sys/modules/geom/geom_mountver/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/mountver KMOD= geom_mountver SRCS= g_mountver.c .include diff --git a/sys/modules/geom/geom_multipath/Makefile b/sys/modules/geom/geom_multipath/Makefile index 27b6fdbf67e4..a45f5d330631 100644 --- a/sys/modules/geom/geom_multipath/Makefile +++ b/sys/modules/geom/geom_multipath/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/multipath KMOD= geom_multipath SRCS= g_multipath.c .include diff --git a/sys/modules/geom/geom_nop/Makefile b/sys/modules/geom/geom_nop/Makefile index d2294823488b..2436fc81e268 100644 --- a/sys/modules/geom/geom_nop/Makefile +++ b/sys/modules/geom/geom_nop/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/nop KMOD= geom_nop SRCS= g_nop.c .include diff --git a/sys/modules/geom/geom_part/Makefile b/sys/modules/geom/geom_part/Makefile index b020b3b599b9..f9a6076f184b 100644 --- a/sys/modules/geom/geom_part/Makefile +++ b/sys/modules/geom/geom_part/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ SUBDIR= geom_part_apm \ geom_part_bsd \ geom_part_bsd64 \ geom_part_ebr \ geom_part_gpt \ geom_part_ldm \ geom_part_mbr .include diff --git a/sys/modules/geom/geom_part/geom_part_apm/Makefile b/sys/modules/geom/geom_part/geom_part_apm/Makefile index ee7966f1f858..2922e575ac0e 100644 --- a/sys/modules/geom/geom_part/geom_part_apm/Makefile +++ b/sys/modules/geom/geom_part/geom_part_apm/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/part KMOD= geom_part_apm SRCS= g_part_apm.c SRCS+= bus_if.h device_if.h g_part_if.h .include diff --git a/sys/modules/geom/geom_part/geom_part_bsd/Makefile b/sys/modules/geom/geom_part/geom_part_bsd/Makefile index 8e8cc732a9fe..63c8a4813bd9 100644 --- a/sys/modules/geom/geom_part/geom_part_bsd/Makefile +++ b/sys/modules/geom/geom_part/geom_part_bsd/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/part ${SRCTOP}/sys/geom KMOD= geom_part_bsd SRCS= g_part_bsd.c geom_bsd_enc.c SRCS+= bus_if.h device_if.h g_part_if.h .include diff --git a/sys/modules/geom/geom_part/geom_part_bsd64/Makefile b/sys/modules/geom/geom_part/geom_part_bsd64/Makefile index 4dabbaa6fe12..c4848ffd3c00 100644 --- a/sys/modules/geom/geom_part/geom_part_bsd64/Makefile +++ b/sys/modules/geom/geom_part/geom_part_bsd64/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/part KMOD= geom_part_bsd64 SRCS= g_part_bsd64.c SRCS+= bus_if.h device_if.h g_part_if.h .include diff --git a/sys/modules/geom/geom_part/geom_part_ebr/Makefile b/sys/modules/geom/geom_part/geom_part_ebr/Makefile index 4aa8ec1c4f9f..cbc970754444 100644 --- a/sys/modules/geom/geom_part/geom_part_ebr/Makefile +++ b/sys/modules/geom/geom_part/geom_part_ebr/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/part KMOD= geom_part_ebr SRCS= g_part_ebr.c SRCS+= bus_if.h device_if.h g_part_if.h SRCS+= opt_geom.h .include diff --git a/sys/modules/geom/geom_part/geom_part_gpt/Makefile b/sys/modules/geom/geom_part/geom_part_gpt/Makefile index d0f7089ab13a..0183caa98e59 100644 --- a/sys/modules/geom/geom_part/geom_part_gpt/Makefile +++ b/sys/modules/geom/geom_part/geom_part_gpt/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/part KMOD= geom_part_gpt SRCS= g_part_gpt.c SRCS+= bus_if.h device_if.h g_part_if.h .include diff --git a/sys/modules/geom/geom_part/geom_part_ldm/Makefile b/sys/modules/geom/geom_part/geom_part_ldm/Makefile index f51049bce280..dcf3a83f4039 100644 --- a/sys/modules/geom/geom_part/geom_part_ldm/Makefile +++ b/sys/modules/geom/geom_part/geom_part_ldm/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/part KMOD= geom_part_ldm SRCS= g_part_ldm.c SRCS+= bus_if.h device_if.h g_part_if.h .include diff --git a/sys/modules/geom/geom_part/geom_part_mbr/Makefile b/sys/modules/geom/geom_part/geom_part_mbr/Makefile index 8f4e1812aa82..b0c6664a33c6 100644 --- a/sys/modules/geom/geom_part/geom_part_mbr/Makefile +++ b/sys/modules/geom/geom_part/geom_part_mbr/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/part KMOD= geom_part_mbr SRCS= g_part_mbr.c SRCS+= bus_if.h device_if.h g_part_if.h .include diff --git a/sys/modules/geom/geom_raid/Makefile b/sys/modules/geom/geom_raid/Makefile index b9c8f2ce219d..65bd41b92698 100644 --- a/sys/modules/geom/geom_raid/Makefile +++ b/sys/modules/geom/geom_raid/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/raid KMOD= geom_raid SRCS= g_raid.c SRCS+= g_raid_ctl.c SRCS+= bus_if.h device_if.h SRCS+= g_raid_md_if.h g_raid_md_if.c SRCS+= g_raid_tr_if.h g_raid_tr_if.c SRCS+= md_ddf.c md_intel.c md_jmicron.c md_nvidia.c md_promise.c md_sii.c SRCS+= tr_concat.c tr_raid0.c tr_raid1.c tr_raid1e.c tr_raid5.c .include diff --git a/sys/modules/geom/geom_raid3/Makefile b/sys/modules/geom/geom_raid3/Makefile index 5baa6c2df4ce..8581b689aacf 100644 --- a/sys/modules/geom/geom_raid3/Makefile +++ b/sys/modules/geom/geom_raid3/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/raid3 KMOD= geom_raid3 SRCS= g_raid3.c SRCS+= g_raid3_ctl.c .include diff --git a/sys/modules/geom/geom_shsec/Makefile b/sys/modules/geom/geom_shsec/Makefile index 79d29ea4b205..618dfba4387a 100644 --- a/sys/modules/geom/geom_shsec/Makefile +++ b/sys/modules/geom/geom_shsec/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/shsec KMOD= geom_shsec SRCS= g_shsec.c .include diff --git a/sys/modules/geom/geom_stripe/Makefile b/sys/modules/geom/geom_stripe/Makefile index 947b3bb7bef5..4ae94ca09bd5 100644 --- a/sys/modules/geom/geom_stripe/Makefile +++ b/sys/modules/geom/geom_stripe/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/stripe KMOD= geom_stripe SRCS= g_stripe.c .include diff --git a/sys/modules/geom/geom_union/Makefile b/sys/modules/geom/geom_union/Makefile index 9b179c41a6d5..3ca2f4ce151e 100644 --- a/sys/modules/geom/geom_union/Makefile +++ b/sys/modules/geom/geom_union/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/union KMOD= geom_union SRCS= g_union.c .include diff --git a/sys/modules/geom/geom_uzip/Makefile b/sys/modules/geom/geom_uzip/Makefile index 8cebb60b54d8..958da0c9d214 100644 --- a/sys/modules/geom/geom_uzip/Makefile +++ b/sys/modules/geom/geom_uzip/Makefile @@ -1,22 +1,21 @@ -# $FreeBSD$ .include .PATH: ${SRCTOP}/sys/geom/uzip ${SRCTOP}/sys/net KMOD= geom_uzip SRCS= g_uzip.c g_uzip_zlib.c g_uzip_lzma.c g_uzip_wrkthr.c SRCS+= g_uzip.h g_uzip_dapi.h g_uzip_lzma.h g_uzip_zlib.h g_uzip_softc.h \ g_uzip_wrkthr.h # This works for buildkernel, but will disable zstd in geom_uzip out of tree. SRCS.ZSTDIO+= g_uzip_zstd.c g_uzip_zstd.h CFLAGS.g_uzip_zstd.c+= -I${SRCTOP}/sys/contrib/zstd/lib/freebsd #CFLAGS= -g -DINVARIANT_SUPPORT -DINVARIANTS CFLAGS.g_uzip_lzma.c+= -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \ -I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz/ SRCS+= opt_geom.h opt_zstdio.h .include diff --git a/sys/modules/geom/geom_vinum/Makefile b/sys/modules/geom/geom_vinum/Makefile index 69dd8083acce..d66ac02a13d4 100644 --- a/sys/modules/geom/geom_vinum/Makefile +++ b/sys/modules/geom/geom_vinum/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/vinum KMOD= geom_vinum SRCS= geom_vinum.c geom_vinum_create.c geom_vinum_drive.c geom_vinum_plex.c \ geom_vinum_volume.c geom_vinum_subr.c geom_vinum_raid5.c \ geom_vinum_share.c geom_vinum_list.c geom_vinum_rm.c \ geom_vinum_init.c geom_vinum_state.c geom_vinum_rename.c \ geom_vinum_move.c geom_vinum_events.c .include diff --git a/sys/modules/geom/geom_virstor/Makefile b/sys/modules/geom/geom_virstor/Makefile index ea2b7debe82c..2e19affd247a 100644 --- a/sys/modules/geom/geom_virstor/Makefile +++ b/sys/modules/geom/geom_virstor/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/virstor KMOD= geom_virstor SRCS= g_virstor.c g_virstor_md.c binstream.c .include diff --git a/sys/modules/geom/geom_zero/Makefile b/sys/modules/geom/geom_zero/Makefile index bd0a3277f267..c43d896d5399 100644 --- a/sys/modules/geom/geom_zero/Makefile +++ b/sys/modules/geom/geom_zero/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/geom/zero KMOD= geom_zero SRCS= g_zero.c .include diff --git a/sys/modules/glxiic/Makefile b/sys/modules/glxiic/Makefile index beef3c429c91..09853747adb0 100644 --- a/sys/modules/glxiic/Makefile +++ b/sys/modules/glxiic/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ #CFLAGS+= -DGLXIIC_DEBUG .PATH: ${SRCTOP}/sys/dev/glxiic KMOD= glxiic SRCS= glxiic.c SRCS+= device_if.h bus_if.h pci_if.h iicbus_if.h .include diff --git a/sys/modules/glxsb/Makefile b/sys/modules/glxsb/Makefile index 649901072cae..8a138e0fea71 100644 --- a/sys/modules/glxsb/Makefile +++ b/sys/modules/glxsb/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/glxsb KMOD = glxsb SRCS = glxsb.c glxsb_hash.c glxsb.h SRCS += device_if.h pci_if.h bus_if.h SRCS += opt_bus.h cryptodev_if.h .include diff --git a/sys/modules/gpio/Makefile b/sys/modules/gpio/Makefile index 57db84b36143..ffb3581d1f01 100644 --- a/sys/modules/gpio/Makefile +++ b/sys/modules/gpio/Makefile @@ -1,34 +1,33 @@ # -# $FreeBSD$ # # Copyright (c) 2011 Adrian Chadd. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # SUBDIR = gpiobus gpioiic gpioled gpiospi gpioths .if !empty(OPT_FDT) SUBDIR += gpiokeys gpiopps .endif .include diff --git a/sys/modules/gpio/gpiobus/Makefile b/sys/modules/gpio/gpiobus/Makefile index 6dc40a2a9d65..d9345e00e2be 100644 --- a/sys/modules/gpio/gpiobus/Makefile +++ b/sys/modules/gpio/gpiobus/Makefile @@ -1,47 +1,46 @@ # # Copyright (c) 2012 Adrian Chadd, Xenion Pty Ltd # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/gpio/ KMOD= gpiobus SRCS= gpiobus.c gpioc.c SRCS+= gpio_if.c gpio_if.h gpiobus_if.c gpiobus_if.h ofw_bus_if.h SRCS+= device_if.h bus_if.h opt_platform.h .if !empty(OPT_FDT) SRCS+= ofw_gpiobus.c .endif CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ EXPORT_SYMS= YES .include diff --git a/sys/modules/gpio/gpioiic/Makefile b/sys/modules/gpio/gpioiic/Makefile index ff422f33ddaa..5dff8544cd76 100644 --- a/sys/modules/gpio/gpioiic/Makefile +++ b/sys/modules/gpio/gpioiic/Makefile @@ -1,41 +1,40 @@ # # Copyright (c) 2012 Adrian Chadd, Xenion Pty Ltd # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/gpio/ KMOD= gpioiic SRCS= gpioiic.c SRCS+= device_if.h bus_if.h gpio_if.h gpiobus_if.h iicbus_if.h iicbb_if.h SRCS+= ofw_bus_if.h opt_platform.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ .include diff --git a/sys/modules/gpio/gpiokeys/Makefile b/sys/modules/gpio/gpiokeys/Makefile index eafb5d29afec..c24e70505ccb 100644 --- a/sys/modules/gpio/gpiokeys/Makefile +++ b/sys/modules/gpio/gpiokeys/Makefile @@ -1,14 +1,13 @@ # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/gpio/ KMOD= gpiokeys SRCS= gpiokeys.c gpiokeys_codes.c SRCS+= bus_if.h device_if.h gpio_if.h ofw_bus_if.h SRCS+= opt_platform.h opt_kbd.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ .include diff --git a/sys/modules/gpio/gpioled/Makefile b/sys/modules/gpio/gpioled/Makefile index 87d8ee339c98..8b0cf7a3b4c8 100644 --- a/sys/modules/gpio/gpioled/Makefile +++ b/sys/modules/gpio/gpioled/Makefile @@ -1,44 +1,43 @@ # # Copyright (c) 2012 Adrian Chadd, Xenion Pty Ltd # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/gpio/ KMOD= gpioled .if !empty(OPT_FDT) SRCS= gpioled_fdt.c .else SRCS= gpioled.c .endif SRCS+= device_if.h bus_if.h gpio_if.h gpiobus_if.h opt_platform.h ofw_bus_if.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ .include diff --git a/sys/modules/gpio/gpiopps/Makefile b/sys/modules/gpio/gpiopps/Makefile index 7b3408fc40bf..4b101064b88f 100644 --- a/sys/modules/gpio/gpiopps/Makefile +++ b/sys/modules/gpio/gpiopps/Makefile @@ -1,40 +1,39 @@ # # Copyright (c) 2016 Ian Lepore # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/gpio/ KMOD= gpiopps SRCS= gpiopps.c SRCS+= device_if.h bus_if.h gpio_if.h gpiobus_if.h opt_platform.h ofw_bus_if.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ .include diff --git a/sys/modules/gpio/gpiospi/Makefile b/sys/modules/gpio/gpiospi/Makefile index 023714e6b2a2..e42581705e9b 100644 --- a/sys/modules/gpio/gpiospi/Makefile +++ b/sys/modules/gpio/gpiospi/Makefile @@ -1,41 +1,40 @@ # # Copyright (c) 2016 Adrian Chadd . # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/gpio/ KMOD= gpiospi SRCS= gpiospi.c SRCS+= device_if.h bus_if.h gpio_if.h gpiobus_if.h spibus_if.h SRCS+= ofw_bus_if.h opt_gpio.h opt_platform.h CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ .include diff --git a/sys/modules/gpio/gpioths/Makefile b/sys/modules/gpio/gpioths/Makefile index d1311ed60154..bcc8681baf55 100644 --- a/sys/modules/gpio/gpioths/Makefile +++ b/sys/modules/gpio/gpioths/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/gpio/ KMOD= gpioths SRCS= gpioths.c SRCS+= \ bus_if.h \ device_if.h \ gpio_if.h \ gpiobus_if.h \ ofw_bus_if.h \ opt_platform.h \ CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ .include diff --git a/sys/modules/hid/Makefile b/sys/modules/hid/Makefile index 72368487bc6c..f2331d7db728 100644 --- a/sys/modules/hid/Makefile +++ b/sys/modules/hid/Makefile @@ -1,24 +1,23 @@ -# $FreeBSD$ SUBDIR = \ hid \ hidbus \ hidmap \ hidquirk \ hidraw SUBDIR += \ bcm5974 \ hconf \ hcons \ hgame \ hkbd \ hms \ hmt \ hpen \ hsctrl \ ietp \ ps4dshock \ xb360gp .include diff --git a/sys/modules/hid/bcm5974/Makefile b/sys/modules/hid/bcm5974/Makefile index d3bb863dbba1..50b51f497d85 100644 --- a/sys/modules/hid/bcm5974/Makefile +++ b/sys/modules/hid/bcm5974/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= bcm5974 SRCS= bcm5974.c SRCS+= opt_hid.h opt_usb.h SRCS+= bus_if.h device_if.h usbdevs.h .include diff --git a/sys/modules/hid/hconf/Makefile b/sys/modules/hid/hconf/Makefile index 182d1d9fdf63..32ab19a954f6 100644 --- a/sys/modules/hid/hconf/Makefile +++ b/sys/modules/hid/hconf/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hconf SRCS= hconf.c SRCS+= opt_hid.h SRCS+= bus_if.h device_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/hid/hcons/Makefile b/sys/modules/hid/hcons/Makefile index 2c2ad16322af..d012a3f49569 100644 --- a/sys/modules/hid/hcons/Makefile +++ b/sys/modules/hid/hcons/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hcons SRCS= hcons.c SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/hid/hgame/Makefile b/sys/modules/hid/hgame/Makefile index 38016de4c326..3af829d1e971 100644 --- a/sys/modules/hid/hgame/Makefile +++ b/sys/modules/hid/hgame/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hgame SRCS= hgame.c SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/hid/hid/Makefile b/sys/modules/hid/hid/Makefile index 749df79beff2..e9104b27e377 100644 --- a/sys/modules/hid/hid/Makefile +++ b/sys/modules/hid/hid/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hid SRCS= hid.c hid_if.c SRCS+= opt_hid.h SRCS+= bus_if.h device_if.h hid_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/hid/hidbus/Makefile b/sys/modules/hid/hidbus/Makefile index c2a452e1e9f2..c3aa91acff4d 100644 --- a/sys/modules/hid/hidbus/Makefile +++ b/sys/modules/hid/hidbus/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hidbus SRCS= hidbus.c SRCS+= bus_if.h device_if.h hid_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/hid/hidmap/Makefile b/sys/modules/hid/hidmap/Makefile index e0c1c086e098..f682a39925eb 100644 --- a/sys/modules/hid/hidmap/Makefile +++ b/sys/modules/hid/hidmap/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hidmap SRCS= hidmap.c SRCS+= opt_hid.h SRCS+= bus_if.h device_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/hid/hidquirk/Makefile b/sys/modules/hid/hidquirk/Makefile index 56547fe9aaa4..dbf2fa8f8e18 100644 --- a/sys/modules/hid/hidquirk/Makefile +++ b/sys/modules/hid/hidquirk/Makefile @@ -1,34 +1,33 @@ # # Copyright (c) 2020 Vladimir Kondratyev # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/hid KMOD= hidquirk SRCS= hidquirk.c SRCS+= bus_if.h device_if.h usbdevs.h .include diff --git a/sys/modules/hid/hidraw/Makefile b/sys/modules/hid/hidraw/Makefile index fdf9c31c9f3a..6148cf9e193e 100644 --- a/sys/modules/hid/hidraw/Makefile +++ b/sys/modules/hid/hidraw/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hidraw SRCS= hidraw.c SRCS+= opt_hid.h bus_if.h device_if.h .include diff --git a/sys/modules/hid/hkbd/Makefile b/sys/modules/hid/hkbd/Makefile index 8bb1c339ac6c..5dc4040783ef 100644 --- a/sys/modules/hid/hkbd/Makefile +++ b/sys/modules/hid/hkbd/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hkbd SRCS= hkbd.c SRCS+= opt_hid.h opt_evdev.h opt_kbd.h opt_hkbd.h SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/hid/hms/Makefile b/sys/modules/hid/hms/Makefile index 29514b86385b..573757cad525 100644 --- a/sys/modules/hid/hms/Makefile +++ b/sys/modules/hid/hms/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hms SRCS= hms.c SRCS+= opt_hid.h SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/hid/hmt/Makefile b/sys/modules/hid/hmt/Makefile index 975c94fa0b88..a96fdd44b311 100644 --- a/sys/modules/hid/hmt/Makefile +++ b/sys/modules/hid/hmt/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hmt SRCS= hmt.c SRCS+= opt_hid.h SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/hid/hpen/Makefile b/sys/modules/hid/hpen/Makefile index 7c485c8fd7ce..ed008b43565e 100644 --- a/sys/modules/hid/hpen/Makefile +++ b/sys/modules/hid/hpen/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hpen SRCS= hpen.c SRCS+= bus_if.h device_if.h usbdevs.h .include diff --git a/sys/modules/hid/hsctrl/Makefile b/sys/modules/hid/hsctrl/Makefile index e0feba2657e5..4e0dd5d0c4cc 100644 --- a/sys/modules/hid/hsctrl/Makefile +++ b/sys/modules/hid/hsctrl/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= hsctrl SRCS= hsctrl.c SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/hid/ietp/Makefile b/sys/modules/hid/ietp/Makefile index 3b5aac8653e3..c3b39e7b7a58 100644 --- a/sys/modules/hid/ietp/Makefile +++ b/sys/modules/hid/ietp/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= ietp SRCS= ietp.c SRCS+= opt_hid.h SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/hid/ps4dshock/Makefile b/sys/modules/hid/ps4dshock/Makefile index ab46ba3f2363..bb12c8a16971 100644 --- a/sys/modules/hid/ps4dshock/Makefile +++ b/sys/modules/hid/ps4dshock/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= ps4dshock SRCS= ps4dshock.c SRCS+= opt_hid.h SRCS+= bus_if.h device_if.h usbdevs.h .include diff --git a/sys/modules/hid/xb360gp/Makefile b/sys/modules/hid/xb360gp/Makefile index 2b3e012f8491..1570a6cfadc9 100644 --- a/sys/modules/hid/xb360gp/Makefile +++ b/sys/modules/hid/xb360gp/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hid KMOD= xb360gp SRCS= xb360gp.c SRCS+= bus_if.h device_if.h opt_usb.h .include diff --git a/sys/modules/hifn/Makefile b/sys/modules/hifn/Makefile index 840f668d23e6..8c36def0c97d 100644 --- a/sys/modules/hifn/Makefile +++ b/sys/modules/hifn/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hifn KMOD = hifn SRCS = hifn7751.c opt_hifn.h SRCS += device_if.h bus_if.h pci_if.h SRCS += opt_bus.h cryptodev_if.h .if !defined(KERNBUILDDIR) opt_hifn.h: echo "#define HIFN_DEBUG 1" > ${.TARGET} .endif .include diff --git a/sys/modules/hpt27xx/Makefile b/sys/modules/hpt27xx/Makefile index f81652d2d55a..d8689c376322 100644 --- a/sys/modules/hpt27xx/Makefile +++ b/sys/modules/hpt27xx/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ HPT27XX= ${SRCTOP}/sys/dev/hpt27xx .PATH: ${HPT27XX} KMOD= hpt27xx SRCS= bus_if.h device_if.h pci_if.h SRCS+= opt_cam.h opt_scsi.h SRCS+= os_bsd.h hpt27xx_os_bsd.c hpt27xx_osm_bsd.c hpt27xx_config.c BLOB_OBJS+= ${HPT27XX}/$(MACHINE_ARCH)-elf.hpt27xx_lib.o .include diff --git a/sys/modules/hptiop/Makefile b/sys/modules/hptiop/Makefile index d001f9b4ed2a..ca28125f3c1a 100644 --- a/sys/modules/hptiop/Makefile +++ b/sys/modules/hptiop/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hptiop KMOD= hptiop SRCS= hptiop.c SRCS+= opt_scsi.h opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/hptmv/Makefile b/sys/modules/hptmv/Makefile index 5deca85de4de..374204891ca8 100644 --- a/sys/modules/hptmv/Makefile +++ b/sys/modules/hptmv/Makefile @@ -1,43 +1,42 @@ # # Makefile for RR182x FreeBSD driver # Copyright (c) 2004-2005 HighPoint Technologies, Inc. All rights reserved # -# $FreeBSD$ HPTMV= ${SRCTOP}/sys/dev/hptmv .PATH: ${HPTMV} KMOD= hptmv SRCS= opt_scsi.h opt_cam.h SRCS+= bus_if.h device_if.h pci_if.h SRCS+= mv.c entry.c ioctl.c hptproc.c gui_lib.c BLOB_OBJS+= ${HPTMV}/${MACHINE_CPUARCH}-elf.hptmvraid.o # # Debug Options: # # -DDEBUG: include debug code # -DDEBUG_LEVEL=x: # 0 - No debug output message # 1 - print only error messages # 2 - print error and warning # 3 - print all messages (info, warning, error) # #DEBUGOPT = -O2 .if defined(DEBUG) && $(DEBUG) == 1 DEBUGOPT += -DDEBUG .if defined(DEBUG_LEVEL) DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL) .else DEBUGOPT += -DDEBUG_LEVEL=1 .endif .endif .if defined(FOR_DEMO) && $(FOR_DEMO) == 1 DEBUGOPT += -DFOR_DEMO .endif CFLAGS = ${DEBUGOPT} .include diff --git a/sys/modules/hptnr/Makefile b/sys/modules/hptnr/Makefile index 95f106e6a44e..a69b1ec649a6 100644 --- a/sys/modules/hptnr/Makefile +++ b/sys/modules/hptnr/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ HPTNR= ${SRCTOP}/sys/dev/hptnr .PATH: ${HPTNR} KMOD= hptnr SRCS= bus_if.h device_if.h pci_if.h SRCS+= opt_cam.h opt_scsi.h SRCS+= os_bsd.h hptnr_os_bsd.c hptnr_osm_bsd.c hptnr_config.c BLOB_OBJS+= ${HPTNR}/${MACHINE_ARCH}-elf.hptnr_lib.o .include diff --git a/sys/modules/hptrr/Makefile b/sys/modules/hptrr/Makefile index dd463ea27c68..2a5f665cbd69 100644 --- a/sys/modules/hptrr/Makefile +++ b/sys/modules/hptrr/Makefile @@ -1,11 +1,10 @@ # $Id: Makefile.def,v 1.18 2007/03/22 11:20:15 gmm Exp $ -# $FreeBSD$ HPTRR= ${SRCTOP}/sys/dev/hptrr .PATH: ${HPTRR} KMOD = hptrr SRCS = opt_scsi.h opt_cam.h bus_if.h device_if.h pci_if.h os_bsd.h SRCS+= hptrr_os_bsd.c hptrr_osm_bsd.c hptrr_config.c BLOB_OBJS = ${HPTRR}/${MACHINE_CPUARCH}-elf.hptrr_lib.o .include diff --git a/sys/modules/hwpmc/Makefile b/sys/modules/hwpmc/Makefile index 5e509c5499f3..812e3fbf182c 100644 --- a/sys/modules/hwpmc/Makefile +++ b/sys/modules/hwpmc/Makefile @@ -1,42 +1,41 @@ # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/hwpmc .PATH: ${SRCTOP}/sys/arm64/arm64 KMOD= hwpmc SRCS= bus_if.h device_if.h hwpmc_mod.c hwpmc_logging.c hwpmc_soft.c SRCS+= vnode_if.h .if ${MACHINE_CPUARCH} == "aarch64" SRCS+= hwpmc_arm64.c hwpmc_arm64_md.c SRCS.DEV_ACPI= cmn600.c hwpmc_cmn600.c SRCS.DEV_ACPI+= hwpmc_dmc620.c pmu_dmc620.c .endif .if ${MACHINE_CPUARCH} == "amd64" SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c hwpmc_tsc.c SRCS+= hwpmc_x86.c hwpmc_uncore.c .endif .if ${MACHINE_CPUARCH} == "arm" SRCS+= hwpmc_arm.c .endif .if ${MACHINE_ARCH} == "armv7" SRCS+= hwpmc_armv7.c .endif .if ${MACHINE_CPUARCH} == "i386" SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c SRCS+= hwpmc_tsc.c hwpmc_x86.c hwpmc_uncore.c .endif .if ${MACHINE_CPUARCH} == "powerpc" SRCS+= hwpmc_powerpc.c hwpmc_e500.c hwpmc_mpc7xxx.c hwpmc_ppc970.c \ hwpmc_power8.c .endif .include diff --git a/sys/modules/hyperv/Makefile b/sys/modules/hyperv/Makefile index 0e9ca2495ef6..4b9c179641de 100644 --- a/sys/modules/hyperv/Makefile +++ b/sys/modules/hyperv/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ SUBDIR = vmbus netvsc storvsc utilities hvsock hid .include diff --git a/sys/modules/hyperv/hid/Makefile b/sys/modules/hyperv/hid/Makefile index 40b991065d2a..22c8c46490c7 100644 --- a/sys/modules/hyperv/hid/Makefile +++ b/sys/modules/hyperv/hid/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hyperv/input KMOD= hv_hid SRCS= hv_hid.c SRCS+= bus_if.h device_if.h hid_if.h vmbus_if.h CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \ -I${SRCTOP}/sys/dev/hyperv/vmbus .include diff --git a/sys/modules/hyperv/hvsock/Makefile b/sys/modules/hyperv/hvsock/Makefile index b619b4865bed..d00b8dd35dcb 100644 --- a/sys/modules/hyperv/hvsock/Makefile +++ b/sys/modules/hyperv/hvsock/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hyperv/hvsock KMOD= hv_sock SRCS= hv_sock.c SRCS+= hv_sock.h SRCS+= device_if.h bus_if.h CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \ -I${SRCTOP}/sys/dev/hyperv/vmbus \ -I${SRCTOP}/sys/dev/hyperv/hvsock .include diff --git a/sys/modules/hyperv/netvsc/Makefile b/sys/modules/hyperv/netvsc/Makefile index dd28d13236cc..1dad0d7b6b6c 100644 --- a/sys/modules/hyperv/netvsc/Makefile +++ b/sys/modules/hyperv/netvsc/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hyperv/netvsc \ ${SRCTOP}/sys/dev/hyperv/vmbus KMOD= hv_netvsc SRCS= hn_nvs.c hn_rndis.c if_hn.c SRCS+= bus_if.h device_if.h vmbus_if.h SRCS+= opt_hn.h opt_inet.h opt_inet6.h opt_rss.h CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/netvsc .include diff --git a/sys/modules/hyperv/pcib/Makefile b/sys/modules/hyperv/pcib/Makefile index 83e960dde069..ae785de5e093 100644 --- a/sys/modules/hyperv/pcib/Makefile +++ b/sys/modules/hyperv/pcib/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hyperv/pcib \ ${SRCTOP}/sys/dev/hyperv/vmbus KMOD= vmbus_pcib SRCS= vmbus_pcib.c SRCS+= bus_if.h device_if.h pci_if.h pcib_if.h vmbus_if.h CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/pcib .include diff --git a/sys/modules/hyperv/storvsc/Makefile b/sys/modules/hyperv/storvsc/Makefile index a755772437f6..9802a8af02c9 100644 --- a/sys/modules/hyperv/storvsc/Makefile +++ b/sys/modules/hyperv/storvsc/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hyperv/storvsc \ ${SRCTOP}/sys/dev/hyperv/vmbus \ KMOD= hv_storvsc SRCS = hv_storvsc_drv_freebsd.c \ hv_vstorage.h SRCS+= bus_if.h device_if.h opt_cam.h vmbus_if.h CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \ -I${SRCTOP}/sys/dev/hyperv/vmbus \ -I${SRCTOP}/sys/dev/hyperv/storvsc .include diff --git a/sys/modules/hyperv/utilities/Makefile b/sys/modules/hyperv/utilities/Makefile index 8626aaa8ebce..353b59af9e5e 100644 --- a/sys/modules/hyperv/utilities/Makefile +++ b/sys/modules/hyperv/utilities/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hyperv/utilities KMOD= hv_utils SRCS= vmbus_ic.c SRCS+= hv_kvp.c SRCS+= vmbus_heartbeat.c SRCS+= vmbus_shutdown.c SRCS+= vmbus_timesync.c SRCS+= bus_if.h device_if.h vmbus_if.h CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \ -I${SRCTOP}/sys/dev/hyperv/vmbus .include diff --git a/sys/modules/hyperv/vmbus/Makefile b/sys/modules/hyperv/vmbus/Makefile index cdc6bb288682..1659d5186493 100644 --- a/sys/modules/hyperv/vmbus/Makefile +++ b/sys/modules/hyperv/vmbus/Makefile @@ -1,45 +1,44 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/hyperv/vmbus \ ${SRCTOP}/sys/dev/hyperv/vmbus/${MACHINE_CPUARCH} \ ${SRCTOP}/sys/dev/hyperv/vmbus/x86 KMOD= hv_vmbus SRCS= hyperv.c \ hyperv_busdma.c \ hyperv_machdep.c \ vmbus.c \ vmbus_br.c \ vmbus_chan.c \ vmbus_if.c \ vmbus_res.c \ vmbus_xact.c .if ${MACHINE_CPUARCH} != "i386" && ${MACHINE_CPUARCH} != "aarch64" SRCS+= vmbus_vector.S .endif .if ${MACHINE_CPUARCH} != "aarch64" SRCS+= vmbus_et.c hyperv_x86.c vmbus_x86.c .else SRC+= hyperv_aarch64.c vmbus_aarch64.c .endif SRCS+= acpi_if.h bus_if.h device_if.h opt_acpi.h pci_if.h pcib_if.h vmbus_if.h # XXX: for assym.inc SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h .if ${MACHINE_CPUARCH} == "i386" SRCS+= opt_apic.h .endif DPSRCS= assym.inc vmbus_vector.o: ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.IMPSRC} -o ${.TARGET} CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \ -I${SRCTOP}/sys/dev/hyperv/vmbus EXPORT_SYMS= YES .include diff --git a/sys/modules/i2c/Makefile b/sys/modules/i2c/Makefile index d2104453f82f..b0b002b2309a 100644 --- a/sys/modules/i2c/Makefile +++ b/sys/modules/i2c/Makefile @@ -1,42 +1,41 @@ -# $FreeBSD$ SUBDIR = \ ads111x \ controllers \ cyapa \ ds1307 \ ds13rtc \ ds1672 \ ds3231 \ htu21 \ icee \ if_ic \ iic \ iicbb \ iicbus \ iicsmb \ isl \ isl12xx \ jedec_dimm \ max44009 \ mux \ nxprtc \ pcf8574 \ pcf8591 \ rtc8583 \ s35390a \ smb \ smbus \ .if !empty(OPT_FDT) SUBDIR += rx8803 \ tca64xx \ tmp461 .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" SUBDIR += iichid .endif .include diff --git a/sys/modules/i2c/Makefile.inc b/sys/modules/i2c/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/i2c/Makefile.inc +++ b/sys/modules/i2c/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/i2c/ads111x/Makefile b/sys/modules/i2c/ads111x/Makefile index a340de3b2951..05e2d1c0da0e 100644 --- a/sys/modules/i2c/ads111x/Makefile +++ b/sys/modules/i2c/ads111x/Makefile @@ -1,18 +1,17 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD= ads111x SRCS= ads111x.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ opt_platform.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/i2c/controllers/Makefile b/sys/modules/i2c/controllers/Makefile index 3bae39c3b439..ce96c9d5ac8e 100644 --- a/sys/modules/i2c/controllers/Makefile +++ b/sys/modules/i2c/controllers/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ SUBDIR = alpm amdpm amdsmb ichiic ichsmb intpm ismt nfsmb viapm lpbb pcf .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" SUBDIR += imcsmb .endif .if ${MACHINE_CPUARCH} == "riscv" SUBDIR += iicoc .endif .include diff --git a/sys/modules/i2c/controllers/Makefile.inc b/sys/modules/i2c/controllers/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/i2c/controllers/Makefile.inc +++ b/sys/modules/i2c/controllers/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/i2c/controllers/alpm/Makefile b/sys/modules/i2c/controllers/alpm/Makefile index 4c6390d1cb18..5c09fbf1db51 100644 --- a/sys/modules/i2c/controllers/alpm/Makefile +++ b/sys/modules/i2c/controllers/alpm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/alpm KMOD = alpm SRCS = device_if.h bus_if.h iicbus_if.h smbus_if.h pci_if.h \ alpm.c .include diff --git a/sys/modules/i2c/controllers/amdpm/Makefile b/sys/modules/i2c/controllers/amdpm/Makefile index 32478a8ea5d7..d04ea542cd37 100644 --- a/sys/modules/i2c/controllers/amdpm/Makefile +++ b/sys/modules/i2c/controllers/amdpm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/amdpm KMOD = amdpm SRCS = device_if.h bus_if.h pci_if.h smbus_if.h \ amdpm.c .include diff --git a/sys/modules/i2c/controllers/amdsmb/Makefile b/sys/modules/i2c/controllers/amdsmb/Makefile index d1912e89987a..2c3dd2a2e6b6 100644 --- a/sys/modules/i2c/controllers/amdsmb/Makefile +++ b/sys/modules/i2c/controllers/amdsmb/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/amdsmb KMOD= amdsmb SRCS= amdsmb.c SRCS+= device_if.h smbus_if.h pci_if.h bus_if.h .include diff --git a/sys/modules/i2c/controllers/ichiic/Makefile b/sys/modules/i2c/controllers/ichiic/Makefile index ab8c2a9ca23d..02ea3694fc89 100644 --- a/sys/modules/i2c/controllers/ichiic/Makefile +++ b/sys/modules/i2c/controllers/ichiic/Makefile @@ -1,14 +1,13 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ichiic KMOD = ig4 SRCS = acpi_if.h device_if.h bus_if.h iicbus_if.h pci_if.h \ smbus_if.h ${ig4_acpi} ig4_iic.c ig4_pci.c ig4_reg.h \ ig4_var.h opt_acpi.h .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" ig4_acpi= ig4_acpi.c .endif .include diff --git a/sys/modules/i2c/controllers/ichsmb/Makefile b/sys/modules/i2c/controllers/ichsmb/Makefile index e65f1a938d02..3601f737628c 100644 --- a/sys/modules/i2c/controllers/ichsmb/Makefile +++ b/sys/modules/i2c/controllers/ichsmb/Makefile @@ -1,8 +1,7 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ichsmb KMOD = ichsmb SRCS = device_if.h bus_if.h iicbb_if.h pci_if.h smbus_if.h \ ichsmb.c ichsmb_pci.c ichsmb_reg.h ichsmb_var.h .include diff --git a/sys/modules/i2c/controllers/imcsmb/Makefile b/sys/modules/i2c/controllers/imcsmb/Makefile index 74a458ebf58e..25fa1965f463 100644 --- a/sys/modules/i2c/controllers/imcsmb/Makefile +++ b/sys/modules/i2c/controllers/imcsmb/Makefile @@ -1,8 +1,7 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/imcsmb KMOD = imcsmb SRCS = device_if.h bus_if.h pci_if.h smbus_if.h \ imcsmb.c imcsmb_pci.c imcsmb_reg.h imcsmb_var.h .include diff --git a/sys/modules/i2c/controllers/intpm/Makefile b/sys/modules/i2c/controllers/intpm/Makefile index fbc1fa0c2154..294f7e05ecdd 100644 --- a/sys/modules/i2c/controllers/intpm/Makefile +++ b/sys/modules/i2c/controllers/intpm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/intpm KMOD = intpm SRCS = device_if.h bus_if.h iicbus_if.h smbus_if.h pci_if.h \ opt_intpm.h intpmreg.h intpm.c .include diff --git a/sys/modules/i2c/controllers/ismt/Makefile b/sys/modules/i2c/controllers/ismt/Makefile index 1e9a6a732f24..ac00cfad17bc 100644 --- a/sys/modules/i2c/controllers/ismt/Makefile +++ b/sys/modules/i2c/controllers/ismt/Makefile @@ -1,8 +1,7 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ismt KMOD = ismt SRCS = device_if.h bus_if.h iicbb_if.h pci_if.h smbus_if.h \ ismt.c .include diff --git a/sys/modules/i2c/controllers/lpbb/Makefile b/sys/modules/i2c/controllers/lpbb/Makefile index 10b7e6a9561e..20f39f4b5ad2 100644 --- a/sys/modules/i2c/controllers/lpbb/Makefile +++ b/sys/modules/i2c/controllers/lpbb/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ppbus KMOD = lpbb SRCS = device_if.h bus_if.h iicbb_if.h ppbus_if.h \ lpbb.c .include diff --git a/sys/modules/i2c/controllers/nfsmb/Makefile b/sys/modules/i2c/controllers/nfsmb/Makefile index d5cb3d1c42c9..5ad838650224 100644 --- a/sys/modules/i2c/controllers/nfsmb/Makefile +++ b/sys/modules/i2c/controllers/nfsmb/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/nfsmb KMOD= nfsmb SRCS= nfsmb.c SRCS+= device_if.h smbus_if.h pci_if.h bus_if.h .include diff --git a/sys/modules/i2c/controllers/pcf/Makefile b/sys/modules/i2c/controllers/pcf/Makefile index f213b0b3168e..fc42100b8cfd 100644 --- a/sys/modules/i2c/controllers/pcf/Makefile +++ b/sys/modules/i2c/controllers/pcf/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/pcf KMOD= pcf SRCS= pcf.c ${pcf_isa} SRCS+= bus_if.h device_if.h iicbus_if.h ${isa_if} .if ${MACHINE_CPUARCH} == "i386" isa_if= isa_if.h pcf_isa= pcf_isa.c .endif .include diff --git a/sys/modules/i2c/controllers/viapm/Makefile b/sys/modules/i2c/controllers/viapm/Makefile index ab8a3562fc6d..9a6c5bda1c16 100644 --- a/sys/modules/i2c/controllers/viapm/Makefile +++ b/sys/modules/i2c/controllers/viapm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/viapm KMOD = viapm SRCS = device_if.h bus_if.h iicbb_if.h isa_if.h pci_if.h smbus_if.h \ opt_isa.h viapm.c .include diff --git a/sys/modules/i2c/cyapa/Makefile b/sys/modules/i2c/cyapa/Makefile index 817c5ba68777..f69e270f855c 100644 --- a/sys/modules/i2c/cyapa/Makefile +++ b/sys/modules/i2c/cyapa/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/cyapa KMOD = cyapa SRCS = cyapa.c device_if.h bus_if.h iicbus_if.h vnode_if.h \ opt_evdev.h .include diff --git a/sys/modules/i2c/ds1307/Makefile b/sys/modules/i2c/ds1307/Makefile index a0b0f43dd653..9699a1057dc3 100644 --- a/sys/modules/i2c/ds1307/Makefile +++ b/sys/modules/i2c/ds1307/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = ds1307 SRCS = ds1307.c bus_if.h clock_if.h device_if.h iicbus_if.h ofw_bus_if.h opt_platform.h .include diff --git a/sys/modules/i2c/ds13rtc/Makefile b/sys/modules/i2c/ds13rtc/Makefile index a269efd57fbf..ffeab1c12dd7 100644 --- a/sys/modules/i2c/ds13rtc/Makefile +++ b/sys/modules/i2c/ds13rtc/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = ds13rtc SRCS = ds13rtc.c bus_if.h clock_if.h device_if.h iicbus_if.h ofw_bus_if.h opt_platform.h .include diff --git a/sys/modules/i2c/ds1672/Makefile b/sys/modules/i2c/ds1672/Makefile index e420dca9c9b5..1b1fd9ab038c 100644 --- a/sys/modules/i2c/ds1672/Makefile +++ b/sys/modules/i2c/ds1672/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = ds1672 SRCS = ds1672.c # Generated files... SRCS+= \ bus_if.h \ clock_if.h \ device_if.h \ iicbus_if.h \ opt_platform.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/i2c/ds3231/Makefile b/sys/modules/i2c/ds3231/Makefile index f0785245f7ee..7548f6ef8282 100644 --- a/sys/modules/i2c/ds3231/Makefile +++ b/sys/modules/i2c/ds3231/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = ds3231 SRCS = ds3231.c bus_if.h clock_if.h device_if.h iicbus_if.h ofw_bus_if.h opt_platform.h .include diff --git a/sys/modules/i2c/htu21/Makefile b/sys/modules/i2c/htu21/Makefile index 8586b0c15153..a7108d62fd0b 100644 --- a/sys/modules/i2c/htu21/Makefile +++ b/sys/modules/i2c/htu21/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD= htu21 SRCS= htu21.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ opt_platform.h .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/i2c/icee/Makefile b/sys/modules/i2c/icee/Makefile index e9d12fd9a36a..b66bb5a5f8c4 100644 --- a/sys/modules/i2c/icee/Makefile +++ b/sys/modules/i2c/icee/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD= icee SRCS= icee.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ ofw_bus_if.h \ opt_platform.h \ .include diff --git a/sys/modules/i2c/if_ic/Makefile b/sys/modules/i2c/if_ic/Makefile index f928abb4e975..4fac1ac0fef9 100644 --- a/sys/modules/i2c/if_ic/Makefile +++ b/sys/modules/i2c/if_ic/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = if_ic SRCS = device_if.h bus_if.h iicbus_if.h \ if_ic.c .include diff --git a/sys/modules/i2c/iic/Makefile b/sys/modules/i2c/iic/Makefile index 9de1b4cb4c0d..34ca739a06a8 100644 --- a/sys/modules/i2c/iic/Makefile +++ b/sys/modules/i2c/iic/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = iic SRCS = device_if.h bus_if.h iicbus_if.h \ iic.c .include diff --git a/sys/modules/i2c/iicbb/Makefile b/sys/modules/i2c/iicbb/Makefile index 7da4c6acc3b3..e0b7e4049de0 100644 --- a/sys/modules/i2c/iicbb/Makefile +++ b/sys/modules/i2c/iicbb/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = iicbb SRCS = device_if.h bus_if.h iicbus_if.h \ iicbb_if.h iicbb_if.c iicbb.c ofw_bus_if.h opt_platform.h EXPORT_SYMS= YES .include diff --git a/sys/modules/i2c/iicbus/Makefile b/sys/modules/i2c/iicbus/Makefile index 34d1941f32ac..11df1b902e7e 100644 --- a/sys/modules/i2c/iicbus/Makefile +++ b/sys/modules/i2c/iicbus/Makefile @@ -1,29 +1,28 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD= iicbus SRCS= \ bus_if.h \ device_if.h \ iic_recover_bus.c \ iicbus.c \ iicbus.h \ iicbus_if.c \ iicbus_if.h \ iiconf.c \ iiconf.h \ opt_platform.h \ .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" SRCS+= acpi_iicbus.c opt_acpi.h acpi_if.h .endif .if !empty(OPT_FDT) SRCS+= ofw_iicbus.c ofw_iicbus_if.h ofw_bus_if.h .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/i2c/iichid/Makefile b/sys/modules/i2c/iichid/Makefile index a6affe1d76fc..96c0257ca89d 100644 --- a/sys/modules/i2c/iichid/Makefile +++ b/sys/modules/i2c/iichid/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = iichid SRCS = iichid.c SRCS += acpi_if.h bus_if.h device_if.h hid_if.h iicbus_if.h SRCS += opt_acpi.h opt_hid.h .include diff --git a/sys/modules/i2c/iicsmb/Makefile b/sys/modules/i2c/iicsmb/Makefile index 0e83c864f1ce..ca70677c453d 100644 --- a/sys/modules/i2c/iicsmb/Makefile +++ b/sys/modules/i2c/iicsmb/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = iicsmb SRCS = device_if.h bus_if.h iicbus_if.h \ smbus_if.h iicsmb.c .include diff --git a/sys/modules/i2c/isl/Makefile b/sys/modules/i2c/isl/Makefile index f6ce3b313f31..320f6ed6704e 100644 --- a/sys/modules/i2c/isl/Makefile +++ b/sys/modules/i2c/isl/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/isl KMOD = isl SRCS = isl.c device_if.h bus_if.h iicbus_if.h opt_platform.h .include diff --git a/sys/modules/i2c/isl12xx/Makefile b/sys/modules/i2c/isl12xx/Makefile index 93f935bb38bd..98411b78aae6 100644 --- a/sys/modules/i2c/isl12xx/Makefile +++ b/sys/modules/i2c/isl12xx/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = isl12xx SRCS = isl12xx.c bus_if.h clock_if.h device_if.h iicbus_if.h ofw_bus_if.h opt_platform.h .include diff --git a/sys/modules/i2c/jedec_dimm/Makefile b/sys/modules/i2c/jedec_dimm/Makefile index 35e66c3e17e6..15d4034aec91 100644 --- a/sys/modules/i2c/jedec_dimm/Makefile +++ b/sys/modules/i2c/jedec_dimm/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${.CURDIR}/../../../dev/jedec_dimm KMOD = jedec_dimm SRCS = jedec_dimm.c jedec_dimm.h bus_if.h device_if.h smbus_if.h .include diff --git a/sys/modules/i2c/max44009/Makefile b/sys/modules/i2c/max44009/Makefile index 1e201c5aaba4..42c96bbbf883 100644 --- a/sys/modules/i2c/max44009/Makefile +++ b/sys/modules/i2c/max44009/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD= max44009 SRCS= max44009.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ opt_platform.h .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/i2c/mux/Makefile b/sys/modules/i2c/mux/Makefile index a972a00a3b3a..e197793e5d86 100644 --- a/sys/modules/i2c/mux/Makefile +++ b/sys/modules/i2c/mux/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ SUBDIR = \ iicmux \ ltc430x \ pca954x \ .if !empty(OPT_FDT) SUBDIR+= iic_gpiomux .endif .include diff --git a/sys/modules/i2c/mux/iic_gpiomux/Makefile b/sys/modules/i2c/mux/iic_gpiomux/Makefile index f1ec74efd4cb..7c26dd89e20e 100644 --- a/sys/modules/i2c/mux/iic_gpiomux/Makefile +++ b/sys/modules/i2c/mux/iic_gpiomux/Makefile @@ -1,20 +1,19 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus/mux KMOD= iic_gpiomux SRCS= iic_gpiomux.c SRCS+= \ bus_if.h \ device_if.h \ gpio_if.h \ iicbus_if.h \ iicmux_if.h \ opt_platform.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/i2c/mux/iicmux/Makefile b/sys/modules/i2c/mux/iicmux/Makefile index b3f52c6c926e..b8bbad587bcd 100644 --- a/sys/modules/i2c/mux/iicmux/Makefile +++ b/sys/modules/i2c/mux/iicmux/Makefile @@ -1,21 +1,20 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus/mux KMOD= iicmux SRCS= iicmux.c iicmux_if.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ iicmux_if.h \ opt_platform.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/i2c/mux/ltc430x/Makefile b/sys/modules/i2c/mux/ltc430x/Makefile index 9d04982226e4..3fd5838d5ad4 100644 --- a/sys/modules/i2c/mux/ltc430x/Makefile +++ b/sys/modules/i2c/mux/ltc430x/Makefile @@ -1,20 +1,19 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus/mux KMOD= ltc430x SRCS= ltc430x.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ iicmux_if.h \ opt_platform.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/i2c/mux/pca954x/Makefile b/sys/modules/i2c/mux/pca954x/Makefile index 622b327204c5..b70802b43bcc 100644 --- a/sys/modules/i2c/mux/pca954x/Makefile +++ b/sys/modules/i2c/mux/pca954x/Makefile @@ -1,20 +1,19 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus/mux KMOD= pca954x SRCS= pca954x.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ iicmux_if.h \ opt_platform.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/i2c/nxprtc/Makefile b/sys/modules/i2c/nxprtc/Makefile index 29cd2d05b546..23efdcfe7754 100644 --- a/sys/modules/i2c/nxprtc/Makefile +++ b/sys/modules/i2c/nxprtc/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = nxprtc SRCS = nxprtc.c bus_if.h clock_if.h device_if.h iicbus_if.h ofw_bus_if.h opt_platform.h .include diff --git a/sys/modules/i2c/pcf8574/Makefile b/sys/modules/i2c/pcf8574/Makefile index 7c4fe37297e4..53290fb8cce3 100644 --- a/sys/modules/i2c/pcf8574/Makefile +++ b/sys/modules/i2c/pcf8574/Makefile @@ -1,18 +1,17 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus/gpio/ KMOD = pcf8574 SRCS = pcf8574.c SRCS+= \ bus_if.h \ device_if.h \ gpio_if.h \ iicbus_if.h \ opt_platform.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/i2c/pcf8591/Makefile b/sys/modules/i2c/pcf8591/Makefile index 82148867a00f..c944a2c8c66d 100644 --- a/sys/modules/i2c/pcf8591/Makefile +++ b/sys/modules/i2c/pcf8591/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD= pcf8591 SRCS= pcf8591.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ opt_platform.h .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/i2c/rtc8583/Makefile b/sys/modules/i2c/rtc8583/Makefile index db8db820036f..23cb48afd33c 100644 --- a/sys/modules/i2c/rtc8583/Makefile +++ b/sys/modules/i2c/rtc8583/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = rtc8583 SRCS = rtc8583.c # Generated files... SRCS+= \ bus_if.h \ clock_if.h \ device_if.h \ iicbus_if.h \ opt_platform.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/i2c/rx8803/Makefile b/sys/modules/i2c/rx8803/Makefile index 1f8554c7e195..a2b30582cabb 100644 --- a/sys/modules/i2c/rx8803/Makefile +++ b/sys/modules/i2c/rx8803/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus/rtc/ KMOD = rx8803 SRCS = rx8803.c # Generated files... SRCS+= \ bus_if.h \ clock_if.h \ device_if.h \ iicbus_if.h \ opt_platform.h \ ofw_bus_if.h \ .include diff --git a/sys/modules/i2c/s35390a/Makefile b/sys/modules/i2c/s35390a/Makefile index 6f8e45f41478..d1091db58abc 100644 --- a/sys/modules/i2c/s35390a/Makefile +++ b/sys/modules/i2c/s35390a/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = s35390a SRCS = s35390a.c bus_if.h clock_if.h device_if.h iicbus_if.h ofw_bus_if.h opt_platform.h .include diff --git a/sys/modules/i2c/smb/Makefile b/sys/modules/i2c/smb/Makefile index b9a536d15bcf..99cf77514267 100644 --- a/sys/modules/i2c/smb/Makefile +++ b/sys/modules/i2c/smb/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/smbus KMOD = smb SRCS = device_if.h bus_if.h smbus_if.h \ smb.c .include diff --git a/sys/modules/i2c/smbus/Makefile b/sys/modules/i2c/smbus/Makefile index 0e25b78c6e4f..530d576ba805 100644 --- a/sys/modules/i2c/smbus/Makefile +++ b/sys/modules/i2c/smbus/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/smbus KMOD = smbus SRCS = device_if.h bus_if.h smbus_if.h smbus_if.c \ smbconf.h smbconf.c smbus.h smbus.c EXPORT_SYMS= YES .include diff --git a/sys/modules/i2c/tmp461/Makefile b/sys/modules/i2c/tmp461/Makefile index ed41dbfa9e0e..4cd5be59fd18 100644 --- a/sys/modules/i2c/tmp461/Makefile +++ b/sys/modules/i2c/tmp461/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus KMOD = tmp461 SRCS = tmp461.c bus_if.h device_if.h iicbus_if.h ofw_bus_if.h opt_platform.h .include diff --git a/sys/modules/iavf/Makefile b/sys/modules/iavf/Makefile index 6fbf7dde6584..d572c79d544a 100644 --- a/sys/modules/iavf/Makefile +++ b/sys/modules/iavf/Makefile @@ -1,21 +1,20 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iavf KMOD = if_iavf SRCS = device_if.h bus_if.h pci_if.h ifdi_if.h SRCS += opt_inet.h opt_inet6.h opt_rss.h opt_iflib.h SRCS += if_iavf_iflib.c iavf_lib.c iavf_osdep.c iavf_txrx_iflib.c SRCS += iavf_vc_common.c iavf_vc_iflib.c # Shared source SRCS += iavf_adminq.c iavf_common.c # Debug messages / sysctls # CFLAGS += -DIAVF_DEBUG # Enable asserts and other debugging facilities # CFLAGS += -DINVARIANTS -DINVARIANTS_SUPPORT -DWITNESS SYMLINKS= ${KMOD}.ko ${KMODDIR}/if_ixlv.ko .include diff --git a/sys/modules/ibcore/Makefile b/sys/modules/ibcore/Makefile index e4e3c7056ce5..3846a176b226 100644 --- a/sys/modules/ibcore/Makefile +++ b/sys/modules/ibcore/Makefile @@ -1,60 +1,59 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/ofed/drivers/infiniband/core KMOD= ibcore SRCS= \ ib_addr.c \ ib_agent.c \ ib_cache.c \ ib_cm.c \ ib_cma.c \ ib_core_uverbs.c \ ib_cq.c \ ib_device.c \ ib_fmr_pool.c \ ib_iwcm.c \ ib_iwpm_msg.c \ ib_iwpm_util.c \ ib_mad.c \ ib_mad_rmpp.c \ ib_multicast.c \ ib_packer.c \ ib_rdma_core.c \ ib_roce_gid_mgmt.c \ ib_sa_query.c \ ib_smi.c \ ib_sysfs.c \ ib_ucm.c \ ib_ucma.c \ ib_ud_header.c \ ib_umem.c \ ib_user_mad.c \ ib_uverbs_cmd.c \ ib_uverbs_ioctl.c \ ib_uverbs_main.c \ ib_uverbs_marshall.c \ ib_uverbs_std_types.c \ ib_uverbs_std_types_async_fd.c \ ib_uverbs_std_types_counters.c \ ib_uverbs_std_types_cq.c \ ib_uverbs_std_types_device.c \ ib_uverbs_std_types_dm.c \ ib_uverbs_std_types_flow_action.c \ ib_uverbs_std_types_mr.c \ ib_uverbs_uapi.c \ ib_verbs.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -DINET6 -DINET -DCONFIG_INFINIBAND_USER_MEM EXPORT_SYMS= YES .include CWARNFLAGS+= -Wno-cast-qual -Wno-pointer-arith CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ice/Makefile b/sys/modules/ice/Makefile index e4573c4122d8..54f824894164 100644 --- a/sys/modules/ice/Makefile +++ b/sys/modules/ice/Makefile @@ -1,29 +1,28 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ice KMOD = if_ice # Interface headers SRCS = device_if.h bus_if.h pci_if.h ifdi_if.h SRCS += irdma_di_if.h irdma_if.h # Option headers SRCS += opt_inet.h opt_inet6.h opt_rss.h opt_iflib.h # Core source SRCS += ice_lib.c ice_osdep.c ice_resmgr.c ice_strings.c SRCS += ice_iflib_recovery_txrx.c ice_iflib_txrx.c if_ice_iflib.c SRCS += ice_fw_logging.c ice_ddp_common.c # RDMA Client interface # TODO: Is this the right way to compile this? SRCS += ice_rdma.c irdma_di_if.c irdma_if.c CFLAGS.irdma_di_if.c += -I${SRCTOP}/sys/dev/ice CFLAGS.irdma_if.c += -I${SRCTOP}/sys/dev/ice # Shared source SRCS += ice_common.c ice_controlq.c ice_dcb.c ice_flex_pipe.c ice_flow.c SRCS += ice_nvm.c ice_sched.c ice_switch.c ice_vlan_mode.c ice_fwlog.c .include diff --git a/sys/modules/ice_ddp/Makefile b/sys/modules/ice_ddp/Makefile index 2735a2ba4da2..41ed4ac92888 100644 --- a/sys/modules/ice_ddp/Makefile +++ b/sys/modules/ice_ddp/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ice_ddp FIRMWS= ${SRCTOP}/sys/contrib/dev/ice/ice-1.3.30.0.pkg:ice_ddp:0x01031e00 .include diff --git a/sys/modules/ichwd/Makefile b/sys/modules/ichwd/Makefile index 2767b460fc2a..5a136c180f2a 100644 --- a/sys/modules/ichwd/Makefile +++ b/sys/modules/ichwd/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ichwd KMOD= ichwd SRCS= ichwd.c device_if.h bus_if.h pci_if.h isa_if.h .include diff --git a/sys/modules/ida/Makefile b/sys/modules/ida/Makefile index ff3391d7e17c..4e67e16a10b8 100644 --- a/sys/modules/ida/Makefile +++ b/sys/modules/ida/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ida KMOD= ida SRCS= ida.c ida_disk.c ida_pci.c \ device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/if_bridge/Makefile b/sys/modules/if_bridge/Makefile index 011872877b63..0835d1a383a8 100644 --- a/sys/modules/if_bridge/Makefile +++ b/sys/modules/if_bridge/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_bridge SRCS= if_bridge.c opt_inet.h opt_inet6.h opt_carp.h .include diff --git a/sys/modules/if_disc/Makefile b/sys/modules/if_disc/Makefile index 4b36b64f7539..53b9ab146dad 100644 --- a/sys/modules/if_disc/Makefile +++ b/sys/modules/if_disc/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_disc SRCS= if_disc.c opt_inet.h opt_inet6.h .include diff --git a/sys/modules/if_edsc/Makefile b/sys/modules/if_edsc/Makefile index b793289b494a..5a72f3951d86 100644 --- a/sys/modules/if_edsc/Makefile +++ b/sys/modules/if_edsc/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_edsc SRCS= if_edsc.c .include diff --git a/sys/modules/if_enc/Makefile b/sys/modules/if_enc/Makefile index 0431e9b84cd8..be57d3114d31 100644 --- a/sys/modules/if_enc/Makefile +++ b/sys/modules/if_enc/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/net KMOD= if_enc SRCS= if_enc.c opt_inet.h opt_inet6.h opt_ipsec.h .include diff --git a/sys/modules/if_epair/Makefile b/sys/modules/if_epair/Makefile index 8b063623f2e8..bb4be21c7126 100644 --- a/sys/modules/if_epair/Makefile +++ b/sys/modules/if_epair/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_epair SRCS= bus_if.h device_if.h if_epair.c opt_rss.h opt_inet.h opt_inet6.h .include diff --git a/sys/modules/if_gif/Makefile b/sys/modules/if_gif/Makefile index 639aed0d94a5..fb13f7af32f4 100644 --- a/sys/modules/if_gif/Makefile +++ b/sys/modules/if_gif/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/net ${SYSDIR}/netinet ${SYSDIR}/netinet6 KMOD= if_gif SRCS= if_gif.c opt_inet.h opt_inet6.h SRCS.INET=in_gif.c SRCS.INET6=in6_gif.c EXPORT_SYMS= YES .include diff --git a/sys/modules/if_gre/Makefile b/sys/modules/if_gre/Makefile index 1b81cb2ca968..44643e5f0979 100644 --- a/sys/modules/if_gre/Makefile +++ b/sys/modules/if_gre/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .PATH: ${SYSDIR}/net ${SYSDIR}/netinet ${SYSDIR}/netinet6 .include "${SYSDIR}/conf/kern.opts.mk" KMOD= if_gre SRCS= if_gre.c opt_inet.h opt_inet6.h opt_rss.h SRCS.INET= ip_gre.c SRCS.INET6= ip6_gre.c .include diff --git a/sys/modules/if_infiniband/Makefile b/sys/modules/if_infiniband/Makefile index 6593cd7d0574..ac191c143292 100644 --- a/sys/modules/if_infiniband/Makefile +++ b/sys/modules/if_infiniband/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_infiniband SRCS= if_infiniband.c \ opt_inet.h \ opt_inet6.h EXPORT_SYMS= YES .include diff --git a/sys/modules/if_lagg/Makefile b/sys/modules/if_lagg/Makefile index 897e4cb6040a..7952fa836a8e 100644 --- a/sys/modules/if_lagg/Makefile +++ b/sys/modules/if_lagg/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_lagg SRCS= if_lagg.c ieee8023ad_lacp.c opt_inet.h opt_inet6.h opt_kern_tls.h SRCS+= opt_ratelimit.h .include diff --git a/sys/modules/if_me/Makefile b/sys/modules/if_me/Makefile index 2a6a267b42b1..c9b045cf7341 100644 --- a/sys/modules/if_me/Makefile +++ b/sys/modules/if_me/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_me SRCS= if_me.c .include diff --git a/sys/modules/if_stf/Makefile b/sys/modules/if_stf/Makefile index 8ce50335169f..6cac98219a47 100644 --- a/sys/modules/if_stf/Makefile +++ b/sys/modules/if_stf/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_stf SRCS= if_stf.c .include diff --git a/sys/modules/if_tuntap/Makefile b/sys/modules/if_tuntap/Makefile index 7a4e61460619..22ca9a144c1d 100644 --- a/sys/modules/if_tuntap/Makefile +++ b/sys/modules/if_tuntap/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_tuntap SRCS= if_tuntap.c opt_inet.h opt_inet6.h .include diff --git a/sys/modules/if_vlan/Makefile b/sys/modules/if_vlan/Makefile index 36a84590be1d..a9eb44e25278 100644 --- a/sys/modules/if_vlan/Makefile +++ b/sys/modules/if_vlan/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_vlan SRCS= if_vlan.c SRCS+= opt_inet.h opt_inet6.h opt_kern_tls.h opt_vlan.h opt_ratelimit.h .include diff --git a/sys/modules/if_vxlan/Makefile b/sys/modules/if_vxlan/Makefile index 5a17a58f17bc..60d38d4d1855 100644 --- a/sys/modules/if_vxlan/Makefile +++ b/sys/modules/if_vxlan/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= if_vxlan SRCS= if_vxlan.c SRCS+= opt_inet.h opt_inet6.h .include diff --git a/sys/modules/iflib/Makefile b/sys/modules/iflib/Makefile index 2c010ac951db..5d30b5fdad91 100644 --- a/sys/modules/iflib/Makefile +++ b/sys/modules/iflib/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net KMOD= iflib SRCS= \ iflib.c \ mp_ring.c SRCS+= ifdi_if.c SRCS+= device_if.h bus_if.h pci_if.h pci_iov_if.h ifdi_if.h SRCS+= opt_acpi.h opt_inet.h opt_inet6.h opt_sched.h EXPORT_SYMS= YES .include diff --git a/sys/modules/igc/Makefile b/sys/modules/igc/Makefile index ea96c1b0a9eb..54cdbee3242e 100644 --- a/sys/modules/igc/Makefile +++ b/sys/modules/igc/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/igc KMOD = if_igc SRCS = device_if.h bus_if.h pci_if.h ifdi_if.h SRCS += opt_ddb.h opt_inet.h opt_inet6.h opt_rss.h SRCS += if_igc.c igc_api.c igc_base.c igc_i225.c igc_mac.c igc_nvm.c SRCS += igc_phy.c igc_txrx.c .include diff --git a/sys/modules/imgact_binmisc/Makefile b/sys/modules/imgact_binmisc/Makefile index e7b7155258cb..a77f79dfeaa9 100644 --- a/sys/modules/imgact_binmisc/Makefile +++ b/sys/modules/imgact_binmisc/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= imgact_binmisc SRCS= vnode_if.h imgact_binmisc.c .include diff --git a/sys/modules/imx/Makefile b/sys/modules/imx/Makefile index 096c9c3528b5..09de5774ef88 100644 --- a/sys/modules/imx/Makefile +++ b/sys/modules/imx/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ # Build modules specific to freescale/nxp imx-family SoCs. SUBDIR = \ ../ffec \ imx6_ahci \ imx6_snvs \ imx_i2c \ imx_spi \ imx_wdog \ .include diff --git a/sys/modules/imx/imx6_ahci/Makefile b/sys/modules/imx/imx6_ahci/Makefile index 48d07f4d1e99..5d7ad5c6786e 100644 --- a/sys/modules/imx/imx6_ahci/Makefile +++ b/sys/modules/imx/imx6_ahci/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/freescale/imx KMOD= imx6_ahci SRCS= imx6_ahci.c # Generated files... SRCS+= \ bus_if.h \ device_if.h \ ofw_bus_if.h \ .include diff --git a/sys/modules/imx/imx6_snvs/Makefile b/sys/modules/imx/imx6_snvs/Makefile index aa793a5ab1ab..1c0d5c1accf0 100644 --- a/sys/modules/imx/imx6_snvs/Makefile +++ b/sys/modules/imx/imx6_snvs/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/freescale/imx KMOD= imx6_snvs SRCS= imx6_snvs.c # Generated files... SRCS+= \ bus_if.h \ clock_if.h \ device_if.h \ ofw_bus_if.h \ syscon_if.h \ .include diff --git a/sys/modules/imx/imx_i2c/Makefile b/sys/modules/imx/imx_i2c/Makefile index 0223fe467f26..b089d587489f 100644 --- a/sys/modules/imx/imx_i2c/Makefile +++ b/sys/modules/imx/imx_i2c/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/freescale/imx KMOD= imx_i2c SRCS= imx_i2c.c SRCS+= \ bus_if.h \ device_if.h \ fdt_pinctrl_if.h \ gpio_if.h \ iicbus_if.h \ ofw_bus_if.h \ opt_platform.h \ .include diff --git a/sys/modules/imx/imx_spi/Makefile b/sys/modules/imx/imx_spi/Makefile index 74d1c8673c88..5dc6cd65076e 100644 --- a/sys/modules/imx/imx_spi/Makefile +++ b/sys/modules/imx/imx_spi/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/freescale/imx KMOD= imx_spi SRCS= imx_spi.c # Generated files... SRCS+= \ bus_if.h \ device_if.h \ gpio_if.h \ ofw_bus_if.h \ opt_platform.h \ spibus_if.h \ .include diff --git a/sys/modules/imx/imx_wdog/Makefile b/sys/modules/imx/imx_wdog/Makefile index 93e28c74e8ef..ef6ca0854764 100644 --- a/sys/modules/imx/imx_wdog/Makefile +++ b/sys/modules/imx/imx_wdog/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/freescale/imx KMOD= imx_wdog SRCS= imx_wdog.c # Generated files... SRCS+= \ bus_if.h \ device_if.h \ ofw_bus_if.h \ .include diff --git a/sys/modules/intelspi/Makefile b/sys/modules/intelspi/Makefile index 2220a0b87232..ec97b0a6edec 100644 --- a/sys/modules/intelspi/Makefile +++ b/sys/modules/intelspi/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/intel KMOD= intelspi SRCS= spi.c spi_acpi.c spi_pci.c SRCS+= acpi_if.h pci_if.h device_if.h bus_if.h opt_acpi.h opt_pci.h spibus_if.h .include diff --git a/sys/modules/io/Makefile b/sys/modules/io/Makefile index ae93daabf0ac..ed0f1f1643e7 100644 --- a/sys/modules/io/Makefile +++ b/sys/modules/io/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/io .PATH: ${SRCTOP}/sys/${MACHINE_CPUARCH}/${MACHINE_CPUARCH} KMOD= io SRCS= iodev.c io.c SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/ioat/Makefile b/sys/modules/ioat/Makefile index 329f9d91cb5e..432c48a3a96e 100644 --- a/sys/modules/ioat/Makefile +++ b/sys/modules/ioat/Makefile @@ -1,16 +1,15 @@ # ioat Loadable Kernel Module # -# $FreeBSD$ IOAT_SRC_PATH = ${SRCTOP}/sys .PATH: ${IOAT_SRC_PATH}/dev/ioat KMOD= ioat SRCS= ioat.c ioat_test.c SRCS+= device_if.h bus_if.h pci_if.h SRCS+= opt_ddb.h CFLAGS+= -I${IOAT_SRC_PATH} .include diff --git a/sys/modules/ip6_mroute_mod/Makefile b/sys/modules/ip6_mroute_mod/Makefile index 6a85b7c58c5b..9772c1ed0ea5 100644 --- a/sys/modules/ip6_mroute_mod/Makefile +++ b/sys/modules/ip6_mroute_mod/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet6 KMOD= ip6_mroute SRCS= ip6_mroute.c SRCS+= opt_inet6.h opt_mrouting.h .include diff --git a/sys/modules/ip_mroute_mod/Makefile b/sys/modules/ip_mroute_mod/Makefile index 082d5ed877b3..2c1364539d98 100644 --- a/sys/modules/ip_mroute_mod/Makefile +++ b/sys/modules/ip_mroute_mod/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet ${SRCTOP}/sys/netinet6 KMOD= ip_mroute SRCS= ip_mroute.c SRCS+= opt_inet.h opt_mrouting.h .include diff --git a/sys/modules/ipdivert/Makefile b/sys/modules/ipdivert/Makefile index 463513b46b9f..981d1559fcee 100644 --- a/sys/modules/ipdivert/Makefile +++ b/sys/modules/ipdivert/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet KMOD= ipdivert SRCS= ip_divert.c opt_inet.h opt_inet6.h opt_sctp.h .include diff --git a/sys/modules/ipfilter/Makefile b/sys/modules/ipfilter/Makefile index acff092f3c14..d2f32538b68b 100644 --- a/sys/modules/ipfilter/Makefile +++ b/sys/modules/ipfilter/Makefile @@ -1,33 +1,32 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/ipfilter/netinet KMOD= ipl SRCS= mlfk_ipl.c ip_nat.c ip_frag.c ip_state.c ip_proxy.c ip_auth.c \ ip_log.c ip_fil_freebsd.c fil.c ip_lookup.c ip_pool.c ip_htable.c \ ip_sync.c \ ip_nat6.c ip_rules.c ip_scan.c ip_dstlist.c radix_ipf.c SRCS+= opt_bpf.h opt_inet6.h opt_kern_tls.h CFLAGS+= -I${SRCTOP}/sys/netpfil/ipfilter CFLAGS+= -DIPFILTER=1 -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP # # If you don't want log functionality remove -DIPFILTER_LOG # .include CWARNFLAGS.fil.c= ${NO_WSELF_ASSIGN} -Wno-unused CWARNFLAGS.ip_auth.c= -Wno-unused CWARNFLAGS.ip_fil_freebsd.c= -Wno-unused CWARNFLAGS.ip_frag.c= -Wno-unused CWARNFLAGS.ip_htable.c= -Wno-unused ${NO_WTAUTOLOGICAL_POINTER_COMPARE} CWARNFLAGS.ip_dstlist.c= -Wno-unused CWARNFLAGS.ip_lookup.c= ${NO_WSELF_ASSIGN} -Wno-unused CWARNFLAGS.ip_nat.c= -Wno-unused CWARNFLAGS.ip_nat6.c= -Wno-unused CWARNFLAGS.ip_pool.c= -Wno-unused CWARNFLAGS.ip_proxy.c= ${NO_WSELF_ASSIGN} -Wno-unused CWARNFLAGS.ip_scan.c= -Wno-unused CWARNFLAGS.ip_state.c= -Wno-unused CWARNFLAGS.ip_sync.c= -Wno-unused diff --git a/sys/modules/ipfw/Makefile b/sys/modules/ipfw/Makefile index 81822a3e2b1e..35723925d121 100644 --- a/sys/modules/ipfw/Makefile +++ b/sys/modules/ipfw/Makefile @@ -1,24 +1,23 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/ipfw KMOD= ipfw SRCS= ip_fw2.c ip_fw_pfil.c ip_fw_bpf.c SRCS+= ip_fw_dynamic.c ip_fw_log.c ip_fw_eaction.c SRCS+= ip_fw_sockopt.c ip_fw_table.c ip_fw_table_algo.c ip_fw_iface.c SRCS+= ip_fw_table_value.c SRCS+= opt_inet.h opt_inet6.h opt_ipdivert.h opt_ipfw.h opt_kern_tls.h CFLAGS+= -DIPFIREWALL -I${SRCTOP}/sys/contrib/ck/include # #If you want it verbose #CFLAGS+= -DIPFIREWALL_VERBOSE #CFLAGS+= -DIPFIREWALL_VERBOSE_LIMIT=100 # #If you want it to pass all packets by default #CFLAGS+= -DIPFIREWALL_DEFAULT_TO_ACCEPT # EXPORT_SYMS= YES .include diff --git a/sys/modules/ipfw_nat/Makefile b/sys/modules/ipfw_nat/Makefile index 37e72c8f1896..0ebc25f95be0 100644 --- a/sys/modules/ipfw_nat/Makefile +++ b/sys/modules/ipfw_nat/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/ipfw KMOD= ipfw_nat SRCS= ip_fw_nat.c .include diff --git a/sys/modules/ipfw_nat64/Makefile b/sys/modules/ipfw_nat64/Makefile index aaefe5abe443..4beffc8426cc 100644 --- a/sys/modules/ipfw_nat64/Makefile +++ b/sys/modules/ipfw_nat64/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/ipfw/nat64 KMOD= ipfw_nat64 SRCS= ip_fw_nat64.c nat64_translate.c SRCS+= nat64clat.c nat64clat_control.c SRCS+= nat64lsn.c nat64lsn_control.c SRCS+= nat64stl.c nat64stl_control.c SRCS+= opt_ipstealth.h CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include .include diff --git a/sys/modules/ipfw_nptv6/Makefile b/sys/modules/ipfw_nptv6/Makefile index fb03f6eb4c17..7b49d72027e4 100644 --- a/sys/modules/ipfw_nptv6/Makefile +++ b/sys/modules/ipfw_nptv6/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/ipfw/nptv6 KMOD= ipfw_nptv6 SRCS= ip_fw_nptv6.c nptv6.c opt_ipfw.h .include diff --git a/sys/modules/ipfw_pmod/Makefile b/sys/modules/ipfw_pmod/Makefile index 5f0ab18bf2a2..d2473573ee2b 100644 --- a/sys/modules/ipfw_pmod/Makefile +++ b/sys/modules/ipfw_pmod/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/ipfw/pmod KMOD= ipfw_pmod SRCS= ip_fw_pmod.c tcpmod.c opt_inet.h opt_inet6.h .include diff --git a/sys/modules/ipmi/Makefile b/sys/modules/ipmi/Makefile index 3d0414fc3807..41c4d5285314 100644 --- a/sys/modules/ipmi/Makefile +++ b/sys/modules/ipmi/Makefile @@ -1,30 +1,29 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ipmi # XXX - ipmi_smbus and ipmi_ssif depend on smbus # XXX - ipmi_acpi depends on acpi KMOD= ipmi SRCS= ipmi.c SRCS+= bus_if.h device_if.h .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "aarch64" SRCS+= ipmi_kcs.c ipmi_smic.c ipmi_bt.c SRCS+= ipmi_acpi.c SRCS+= opt_acpi.h SRCS+= acpi_if.h .endif .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" SRCS+= ipmi_smbios.c ipmi_ssif.c SRCS+= ipmi_isa.c ipmi_pci.c ipmi_smbus.c SRCS+= isa_if.h pci_if.h smbus_if.h SUBDIR+= ipmi_linux .elif ${MACHINE_ARCH:Mpowerpc64*} != "" SRCS+= ipmi_opal.c ofw_bus_if.h .endif .include diff --git a/sys/modules/ipmi/ipmi_linux/Makefile b/sys/modules/ipmi/ipmi_linux/Makefile index 04020cb82c11..50e918db8045 100644 --- a/sys/modules/ipmi/ipmi_linux/Makefile +++ b/sys/modules/ipmi/ipmi_linux/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ipmi KMOD= ipmi_linux SRCS= ipmi_linux.c .include diff --git a/sys/modules/ipoib/Makefile b/sys/modules/ipoib/Makefile index b10a9150c04a..18a72bb02993 100644 --- a/sys/modules/ipoib/Makefile +++ b/sys/modules/ipoib/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/ofed/drivers/infiniband/ulp/ipoib KMOD= ipoib SRCS= ipoib_cm.c ipoib_ib.c ipoib_main.c \ ipoib_multicast.c ipoib_verbs.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h opt_ofed.h CFLAGS+= -I${SRCTOP}/sys/ofed/drivers/infiniband/ulp/ipoib CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} .include CFLAGS+= -Wno-cast-qual -Wno-pointer-arith diff --git a/sys/modules/ips/Makefile b/sys/modules/ips/Makefile index 045002384411..b505e7d62b65 100644 --- a/sys/modules/ips/Makefile +++ b/sys/modules/ips/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ips KMOD = ips SRCS = ips.c ips_pci.c ips.h ips_disk.c ips_disk.h ips_commands.c \ ips_ioctl.h ips_ioctl.c device_if.h bus_if.h pci_if.h .include # XXX Work around clang warning, until maintainer approves fix. CWARNFLAGS.ips.c= ${NO_WSOMETIMES_UNINITIALIZED} diff --git a/sys/modules/ipsec/Makefile b/sys/modules/ipsec/Makefile index 8bc9f47bd99a..7aaac6f79525 100644 --- a/sys/modules/ipsec/Makefile +++ b/sys/modules/ipsec/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net ${SRCTOP}/sys/netipsec KMOD= ipsec SRCS= if_ipsec.c ipsec.c ipsec_input.c ipsec_mbuf.c ipsec_mod.c \ ipsec_output.c xform_ah.c xform_esp.c xform_ipcomp.c \ opt_inet.h opt_inet6.h opt_ipsec.h opt_kern_tls.h opt_sctp.h SRCS.INET= udpencap.c .include diff --git a/sys/modules/ipw/Makefile b/sys/modules/ipw/Makefile index 521a51be41c4..b91464b894d0 100644 --- a/sys/modules/ipw/Makefile +++ b/sys/modules/ipw/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ipw KMOD = if_ipw SRCS = if_ipw.c device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/ipwfw/Makefile b/sys/modules/ipwfw/Makefile index 83f4e6770239..59ff2c4face3 100644 --- a/sys/modules/ipwfw/Makefile +++ b/sys/modules/ipwfw/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ SUBDIR= ipw_bss \ ipw_ibss \ ipw_monitor .include diff --git a/sys/modules/ipwfw/ipw_bss/Makefile b/sys/modules/ipwfw/ipw_bss/Makefile index 7ae96cd1dea3..2e7fcd9e45ad 100644 --- a/sys/modules/ipwfw/ipw_bss/Makefile +++ b/sys/modules/ipwfw/ipw_bss/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/ipw KMOD= ipw_bss FIRMWS= ipw_bss:ipw_bss:130 FIRMWARE_LICENSE= intel_ipw CLEANFILES= ipw_bss ipw_bss: ipw2100-1.3.fw.uu uudecode -p ${.ALLSRC} > ${.TARGET} .include diff --git a/sys/modules/ipwfw/ipw_ibss/Makefile b/sys/modules/ipwfw/ipw_ibss/Makefile index 3f4d48e68a12..75788b756ffa 100644 --- a/sys/modules/ipwfw/ipw_ibss/Makefile +++ b/sys/modules/ipwfw/ipw_ibss/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/ipw KMOD= ipw_ibss FIRMWS= ipw_ibss:ipw_ibss:130 FIRMWARE_LICENSE= intel_ipw CLEANFILES= ipw_ibss ipw_ibss: ipw2100-1.3-i.fw.uu uudecode -p ${.ALLSRC} > ${.TARGET} .include diff --git a/sys/modules/ipwfw/ipw_monitor/Makefile b/sys/modules/ipwfw/ipw_monitor/Makefile index 1073a7ac2b8a..39179ab231e3 100644 --- a/sys/modules/ipwfw/ipw_monitor/Makefile +++ b/sys/modules/ipwfw/ipw_monitor/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/ipw KMOD= ipw_monitor FIRMWS= ipw_monitor:ipw_monitor:130 FIRMWARE_LICENSE= intel_ipw CLEANFILES= ipw_monitor ipw_monitor: ipw2100-1.3-p.fw.uu uudecode -p ${.ALLSRC} > ${.TARGET} .include diff --git a/sys/modules/isci/Makefile b/sys/modules/isci/Makefile index 8214509e6f88..51c2b6cdd76a 100644 --- a/sys/modules/isci/Makefile +++ b/sys/modules/isci/Makefile @@ -1,92 +1,91 @@ # isci driver Makefile # -# $FreeBSD$ ISCI_SRC_PATH = ${SRCTOP}/sys .PATH: ${ISCI_SRC_PATH}/dev/isci ${ISCI_SRC_PATH}/dev/isci/scil KMOD = isci SRCS = isci.c isci_oem_parameters.c \ isci_controller.c isci_domain.c isci_io_request.c \ isci_timer.c isci_remote_device.c isci_logger.c \ isci_task_request.c isci_sysctl.c isci_interrupt.c SRCS += \ sci_base_controller.c \ sci_base_domain.c \ sci_base_iterator.c \ sci_base_library.c \ sci_base_logger.c \ sci_base_memory_descriptor_list.c \ sci_base_memory_descriptor_list_decorator.c \ sci_base_object.c \ sci_base_observer.c \ sci_base_phy.c \ sci_base_port.c \ sci_base_remote_device.c \ sci_base_request.c \ sci_base_state_machine.c \ sci_base_state_machine_logger.c \ sci_base_state_machine_observer.c \ sci_base_subject.c SRCS += \ sci_abstract_list.c \ sci_util.c SRCS += \ scic_sds_controller.c \ scic_sds_library.c scic_sds_pci.c \ scic_sds_phy.c scic_sds_port.c \ scic_sds_port_configuration_agent.c \ scic_sds_remote_device.c scic_sds_remote_node_context.c \ scic_sds_remote_node_table.c scic_sds_request.c \ scic_sds_sgpio.c scic_sds_smp_remote_device.c \ scic_sds_smp_request.c scic_sds_ssp_request.c \ scic_sds_stp_packet_request.c scic_sds_stp_remote_device.c \ scic_sds_stp_request.c scic_sds_unsolicited_frame_control.c SRCS += \ scif_sas_controller.c \ scif_sas_controller_state_handlers.c \ scif_sas_controller_states.c scif_sas_domain.c \ scif_sas_domain_state_handlers.c scif_sas_domain_states.c \ scif_sas_high_priority_request_queue.c \ scif_sas_internal_io_request.c scif_sas_io_request.c \ scif_sas_io_request_state_handlers.c \ scif_sas_io_request_states.c scif_sas_library.c \ scif_sas_remote_device.c \ scif_sas_remote_device_ready_substate_handlers.c \ scif_sas_remote_device_ready_substates.c \ scif_sas_remote_device_starting_substate_handlers.c \ scif_sas_remote_device_starting_substates.c \ scif_sas_remote_device_state_handlers.c \ scif_sas_remote_device_states.c scif_sas_request.c \ scif_sas_smp_activity_clear_affiliation.c \ scif_sas_smp_io_request.c scif_sas_smp_phy.c \ scif_sas_smp_remote_device.c scif_sas_stp_io_request.c \ scif_sas_stp_remote_device.c scif_sas_stp_task_request.c \ scif_sas_task_request.c scif_sas_task_request_state_handlers.c \ scif_sas_task_request_states.c scif_sas_timer.c SRCS += \ sati.c \ sati_abort_task_set.c sati_atapi.c \ sati_device.c sati_inquiry.c sati_log_sense.c \ sati_lun_reset.c sati_mode_pages.c sati_mode_select.c \ sati_mode_sense.c sati_mode_sense_6.c sati_mode_sense_10.c \ sati_move.c sati_passthrough.c sati_read.c sati_read_buffer.c \ sati_read_capacity.c \ sati_report_luns.c sati_request_sense.c sati_reassign_blocks.c \ sati_start_stop_unit.c sati_synchronize_cache.c \ sati_test_unit_ready.c sati_unmap.c sati_util.c \ sati_verify.c sati_write.c \ sati_write_buffer.c sati_write_long.c sati_write_and_verify.c SRCS += opt_scsi.h opt_cam.h opt_isci.h SRCS += device_if.h bus_if.h pci_if.h .include CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/iscsi/Makefile b/sys/modules/iscsi/Makefile index b7cb460102bb..c80f32d19da4 100644 --- a/sys/modules/iscsi/Makefile +++ b/sys/modules/iscsi/Makefile @@ -1,27 +1,26 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SRCTOP}/sys/dev/iscsi KMOD= iscsi SRCS= iscsi.c SRCS+= icl.c SRCS+= icl_soft.c SRCS+= icl_soft_proxy.c SRCS+= opt_cam.h SRCS+= bus_if.h SRCS+= device_if.h SRCS+= icl_conn_if.c SRCS+= icl_conn_if.h .if ${MK_OFED} != "no" || defined(ALL_MODULES) CFLAGS+=-DICL_KERNEL_PROXY .endif MFILES= kern/bus_if.m kern/device_if.m dev/iscsi/icl_conn_if.m EXPORT_SYMS= YES .include diff --git a/sys/modules/iser/Makefile b/sys/modules/iser/Makefile index 4961c95599af..d0db499e6fde 100644 --- a/sys/modules/iser/Makefile +++ b/sys/modules/iser/Makefile @@ -1,30 +1,29 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/dev/iser/ KMOD= iser SRCS= icl_iser.c SRCS+= iser_initiator.c SRCS+= iser_memory.c SRCS+= iser_verbs.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h opt_cam.h icl_conn_if.h CFLAGS+= -I${SYSDIR}/ CFLAGS+= -I${SYSDIR}/ofed/include CFLAGS+= -I${SYSDIR}/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM CFLAGS+= -DINET6 -DINET CFLAGS+= -fms-extensions CFLAGS+=-DICL_KERNEL_PROXY MFILES= kern/bus_if.m kern/device_if.m dev/iscsi/icl_conn_if.m .include diff --git a/sys/modules/isp/Makefile b/sys/modules/isp/Makefile index 89f612f35b55..d203b8f464cb 100644 --- a/sys/modules/isp/Makefile +++ b/sys/modules/isp/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/isp KMOD= isp SRCS= bus_if.h device_if.h pci_if.h \ opt_cam.h opt_ddb.h opt_isp.h \ isp.c isp_library.c isp_target.c isp_freebsd.c isp_pci.c .include diff --git a/sys/modules/ispfw/Makefile b/sys/modules/ispfw/Makefile index 6dd6661494d5..8f0634a2a638 100644 --- a/sys/modules/ispfw/Makefile +++ b/sys/modules/ispfw/Makefile @@ -1,34 +1,32 @@ #- # Copyright (c) 2006 by Matthew Jacob # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice immediately at the beginning of the file, without modification, # this list of conditions, and the following disclaimer. # 2. The name of the author may not be used to endorse or promote products # derived from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ - SUBDIR = ispfw SUBDIR += isp_2400 SUBDIR += isp_2500 .include diff --git a/sys/modules/ispfw/isp_2400/Makefile b/sys/modules/ispfw/isp_2400/Makefile index fdaf959cc720..76488bd2cf37 100644 --- a/sys/modules/ispfw/isp_2400/Makefile +++ b/sys/modules/ispfw/isp_2400/Makefile @@ -1,36 +1,34 @@ #- # Copyright (c) 2006 by Matthew Jacob # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice immediately at the beginning of the file, without modification, # this list of conditions, and the following disclaimer. # 2. The name of the author may not be used to endorse or promote products # derived from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/ispfw KMOD= isp_2400 SRCS= ispfw.c CFLAGS += -DISP_2400 -DMODULE_NAME=\"${KMOD}\" .include diff --git a/sys/modules/ispfw/isp_2500/Makefile b/sys/modules/ispfw/isp_2500/Makefile index 7067a8169a27..7264a3089fd0 100644 --- a/sys/modules/ispfw/isp_2500/Makefile +++ b/sys/modules/ispfw/isp_2500/Makefile @@ -1,36 +1,35 @@ -# $FreeBSD$ #- # Copyright (c) 2009 by Matthew Jacob # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice immediately at the beginning of the file, without modification, # this list of conditions, and the following disclaimer. # 2. The name of the author may not be used to endorse or promote products # derived from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/ispfw KMOD= isp_2500 SRCS= ispfw.c CFLAGS += -DISP_2500 -DMODULE_NAME=\"${KMOD}\" .include diff --git a/sys/modules/ispfw/ispfw/Makefile b/sys/modules/ispfw/ispfw/Makefile index 464ff85214cc..12ab881edc93 100644 --- a/sys/modules/ispfw/ispfw/Makefile +++ b/sys/modules/ispfw/ispfw/Makefile @@ -1,36 +1,34 @@ #- # Copyright (c) 2006 by Matthew Jacob # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice immediately at the beginning of the file, without modification, # this list of conditions, and the following disclaimer. # 2. The name of the author may not be used to endorse or promote products # derived from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/ispfw KMOD= ispfw SRCS= ispfw.c CFLAGS += -DISP_ALL .include diff --git a/sys/modules/itwd/Makefile b/sys/modules/itwd/Makefile index be5b5ec5a9d3..02a5959387d0 100644 --- a/sys/modules/itwd/Makefile +++ b/sys/modules/itwd/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/itwd KMOD= itwd SRCS= itwd.c SRCS+= device_if.h bus_if.h isa_if.h .include diff --git a/sys/modules/iwi/Makefile b/sys/modules/iwi/Makefile index a9c31a736a38..3994161da39c 100644 --- a/sys/modules/iwi/Makefile +++ b/sys/modules/iwi/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iwi KMOD = if_iwi SRCS = if_iwi.c device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/iwifw/Makefile b/sys/modules/iwifw/Makefile index 55434c2ce60f..6d5ab036cd34 100644 --- a/sys/modules/iwifw/Makefile +++ b/sys/modules/iwifw/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ SUBDIR= iwi_bss \ iwi_ibss \ iwi_monitor .include diff --git a/sys/modules/iwifw/iwi_bss/Makefile b/sys/modules/iwifw/iwi_bss/Makefile index 9fdcf4a607d2..6452289898fa 100644 --- a/sys/modules/iwifw/iwi_bss/Makefile +++ b/sys/modules/iwifw/iwi_bss/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/iwi KMOD= iwi_bss FIRMWS= iwi_bss:iwi_bss:300 FIRMWARE_LICENSE= intel_iwi CLEANFILES= iwi_bss iwi_bss: ipw2200-bss.fw.uu uudecode -p ${.ALLSRC} > ${.TARGET} .include diff --git a/sys/modules/iwifw/iwi_ibss/Makefile b/sys/modules/iwifw/iwi_ibss/Makefile index 3dfc5f341950..ad4e76706620 100644 --- a/sys/modules/iwifw/iwi_ibss/Makefile +++ b/sys/modules/iwifw/iwi_ibss/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/iwi KMOD= iwi_ibss FIRMWS= iwi_ibss:iwi_ibss:300 FIRMWARE_LICENSE= intel_iwi CLEANFILES= iwi_fw iwi_ibss: ipw2200-ibss.fw.uu uudecode -p ${.ALLSRC} > ${.TARGET} .include diff --git a/sys/modules/iwifw/iwi_monitor/Makefile b/sys/modules/iwifw/iwi_monitor/Makefile index 5ab5a39cdc02..91dc7f33b07f 100644 --- a/sys/modules/iwifw/iwi_monitor/Makefile +++ b/sys/modules/iwifw/iwi_monitor/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/iwi KMOD= iwi_monitor FIRMWS= iwi_monitor:iwi_monitor:300 FIRMWARE_LICENSE= intel_iwi CLEANFILES= iwi_monitor iwi_monitor: ipw2200-sniffer.fw.uu uudecode -p ${.ALLSRC} > ${.TARGET} .include diff --git a/sys/modules/iwlwifi/Makefile b/sys/modules/iwlwifi/Makefile index 831fe97847a5..9eb6f0e7c267 100644 --- a/sys/modules/iwlwifi/Makefile +++ b/sys/modules/iwlwifi/Makefile @@ -1,66 +1,65 @@ -# $FreeBSD$ DEVIWLWIFIDIR= ${SRCTOP}/sys/contrib/dev/iwlwifi .PATH: ${DEVIWLWIFIDIR} WITH_DEBUGFS= 0 KMOD= if_iwlwifi SRCS= iwl-drv.c SRCS+= iwl-dbg-tlv.c iwl-debug.c SRCS+= iwl-eeprom-parse.c iwl-eeprom-read.c SRCS+= iwl-io.c iwl-nvm-parse.c iwl-phy-db.c iwl-trans.c SRCS+= cfg/7000.c cfg/8000.c cfg/9000.c cfg/22000.c SRCS+= fw/dbg.c fw/dump.c fw/img.c fw/notif-wait.c SRCS+= fw/paging.c fw/pnvm.c fw/rs.c fw/smem.c fw/init.c #SRCS+= fw/uefi.c SRCS+= mvm/rs.c mvm/binding.c mvm/coex.c mvm/ftm-initiator.c SRCS+= mvm/ftm-responder.c mvm/fw.c mvm/mac-ctxt.c SRCS+= mvm/mac80211.c mvm/nvm.c mvm/offloading.c mvm/ops.c SRCS+= mvm/phy-ctxt.c mvm/power.c mvm/quota.c mvm/rs-fw.c mvm/rfi.c SRCS+= mvm/rx.c mvm/rxmq.c mvm/scan.c mvm/sf.c mvm/sta.c mvm/tdls.c SRCS+= mvm/time-event.c mvm/tt.c mvm/tx.c mvm/utils.c #SRCS+= mvm/led.c SRCS+= pcie/ctxt-info-gen3.c pcie/ctxt-info.c SRCS+= pcie/drv.c pcie/rx.c pcie/trans-gen2.c pcie/trans.c SRCS+= pcie/tx-gen2.c pcie/tx.c SRCS+= queue/tx.c .if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 SRCS+= fw/debugfs.c mvm/debugfs.c mvm/debugfs-vif.c CFLAGS+= -DCONFIG_IWLWIFI_DEBUGFS=${WITH_DEBUGFS} CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS} .endif SRCS+= iwl-devtrace.c # Other SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h CFLAGS+= -DKBUILD_MODNAME='"iwlwifi"' CFLAGS+= -I${DEVIWLWIFIDIR} CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -DCONFIG_IWLDVM=0 CFLAGS+= -DCONFIG_IWLMVM=1 # Helpful after fresh imports. #CFLAGS+= -ferror-limit=0 #CFLAGS+= -DCONFIG_ACPI=1 #CFLAGS+= -DCONFIG_INET=1 # Need LKPI TSO implementation. #CFLAGS+= -DCONFIG_IPV6=1 CFLAGS+= -DCONFIG_IWLWIFI_DEBUG=1 #CFLAGS+= -DCONFIG_IWLWIFI_LEDS=1 #CFLAGS+= -DCONFIG_IWLWIFI_OPMODE_MODULAR=1 CFLAGS+= -DCONFIG_IWLWIFI_DEVICE_TRACING=1 #CFLAGS+= -DCONFIG_LOCKDEP=1 #CFLAGS+= -DCONFIG_NL80211_TESTMODE=1 #CFLAGS+= -DCONFIG_PM=1 #CFLAGS+= -DCONFIG_PM_SLEEP=1 #CFLAGS+= -DCONFIG_THERMAL=1 #CFLAGS+= -DCONFIG_EFI=1 .include diff --git a/sys/modules/iwlwififw/Makefile b/sys/modules/iwlwififw/Makefile index 8af162fcfc82..aa3873880b19 100644 --- a/sys/modules/iwlwififw/Makefile +++ b/sys/modules/iwlwififw/Makefile @@ -1,29 +1,28 @@ -# $FreeBSD$ SUBDIR= \ iwlwifi-3160-fw \ iwlwifi-3168-fw \ iwlwifi-7260-fw \ iwlwifi-7265-fw \ iwlwifi-7265D-fw \ iwlwifi-8000C-fw \ iwlwifi-8265-fw \ iwlwifi-9000-pu-b0-jf-b0-fw \ iwlwifi-9260-th-b0-jf-b0-fw \ iwlwifi-Qu-b0-hr-b0-fw \ iwlwifi-Qu-b0-jf-b0-fw \ iwlwifi-Qu-c0-hr-b0-fw \ iwlwifi-Qu-c0-jf-b0-fw \ iwlwifi-QuZ-a0-hr-b0-fw \ iwlwifi-QuZ-a0-jf-b0-fw \ iwlwifi-cc-a0-fw \ iwlwifi-so-a0-gf-a0-fw \ iwlwifi-so-a0-gf4-a0-fw \ iwlwifi-so-a0-hr-b0-fw \ iwlwifi-so-a0-jf-b0-fw \ iwlwifi-ty-a0-gf-a0-fw \ iwlwifi-so-a0-gf-a0-pnvm \ iwlwifi-so-a0-gf4-a0-pnvm \ iwlwifi-ty-a0-gf-a0-pnvm .include diff --git a/sys/modules/iwlwififw/Makefile.inc b/sys/modules/iwlwififw/Makefile.inc index 1ad4bb7ea608..ea3e88783809 100644 --- a/sys/modules/iwlwififw/Makefile.inc +++ b/sys/modules/iwlwififw/Makefile.inc @@ -1,20 +1,19 @@ -# $FreeBSD$ # Common rules for building iwlwifi firmware. EXT?= ucode _NAME?= iwlwifi-${NAME}-${FWVERSION}.${EXT} IMG= ${_NAME} KMOD= ${_NAME} CLEANFILES+= ${IMG} FIRMWS= ${IMG}:${IMG}:${FWVERSION} # License ack is not needed for iwlwifi (same as iwn/iwm). #FIRMWARE_LICENSE= ${IMG}: ${SRCTOP}/sys/contrib/dev/iwlwififw/${IMG} cp ${.ALLSRC} ${.TARGET} diff --git a/sys/modules/iwlwififw/iwlwifi-3160-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-3160-fw/Makefile index 5528a9f269c9..69d537c89754 100644 --- a/sys/modules/iwlwififw/iwlwifi-3160-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-3160-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 17 NAME= 3160 .include diff --git a/sys/modules/iwlwififw/iwlwifi-3168-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-3168-fw/Makefile index 8d4a4e5c04a4..2e98c2148a79 100644 --- a/sys/modules/iwlwififw/iwlwifi-3168-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-3168-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 29 NAME= 3168 .include diff --git a/sys/modules/iwlwififw/iwlwifi-7260-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-7260-fw/Makefile index 5f43dcd6c073..befd607a269e 100644 --- a/sys/modules/iwlwififw/iwlwifi-7260-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-7260-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 17 NAME= 7260 .include diff --git a/sys/modules/iwlwififw/iwlwifi-7265-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-7265-fw/Makefile index 7893353a88c0..42d7c508dd1b 100644 --- a/sys/modules/iwlwififw/iwlwifi-7265-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-7265-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 17 NAME= 7265 .include diff --git a/sys/modules/iwlwififw/iwlwifi-7265D-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-7265D-fw/Makefile index 11bf5ae1687d..37af2799e1eb 100644 --- a/sys/modules/iwlwififw/iwlwifi-7265D-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-7265D-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 29 NAME= 7265D .include diff --git a/sys/modules/iwlwififw/iwlwifi-8000C-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-8000C-fw/Makefile index 4931a64f06cc..0b3efe221d08 100644 --- a/sys/modules/iwlwififw/iwlwifi-8000C-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-8000C-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 36 NAME= 8000C .include diff --git a/sys/modules/iwlwififw/iwlwifi-8265-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-8265-fw/Makefile index f6cfafc557eb..5f238c8aa619 100644 --- a/sys/modules/iwlwififw/iwlwifi-8265-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-8265-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 36 NAME= 8265 .include diff --git a/sys/modules/iwlwififw/iwlwifi-9000-pu-b0-jf-b0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-9000-pu-b0-jf-b0-fw/Makefile index 8aeb6a9b966c..03b5d5d142d2 100644 --- a/sys/modules/iwlwififw/iwlwifi-9000-pu-b0-jf-b0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-9000-pu-b0-jf-b0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 46 NAME= 9000-pu-b0-jf-b0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-9260-th-b0-jf-b0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-9260-th-b0-jf-b0-fw/Makefile index d727f2f305a9..37ae25a4a836 100644 --- a/sys/modules/iwlwififw/iwlwifi-9260-th-b0-jf-b0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-9260-th-b0-jf-b0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 46 NAME= 9260-th-b0-jf-b0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-Qu-b0-hr-b0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-Qu-b0-hr-b0-fw/Makefile index ead1ebbbc9af..bc41b21969dd 100644 --- a/sys/modules/iwlwififw/iwlwifi-Qu-b0-hr-b0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-Qu-b0-hr-b0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= Qu-b0-hr-b0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-Qu-b0-jf-b0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-Qu-b0-jf-b0-fw/Makefile index b29032eed8bc..125d3e969e51 100644 --- a/sys/modules/iwlwififw/iwlwifi-Qu-b0-jf-b0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-Qu-b0-jf-b0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= Qu-b0-jf-b0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-Qu-c0-hr-b0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-Qu-c0-hr-b0-fw/Makefile index d1a3494ee13f..c254768fcb68 100644 --- a/sys/modules/iwlwififw/iwlwifi-Qu-c0-hr-b0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-Qu-c0-hr-b0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= Qu-c0-hr-b0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-Qu-c0-jf-b0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-Qu-c0-jf-b0-fw/Makefile index 396c2c9042d4..af8ad15e7576 100644 --- a/sys/modules/iwlwififw/iwlwifi-Qu-c0-jf-b0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-Qu-c0-jf-b0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= Qu-c0-jf-b0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-QuZ-a0-hr-b0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-QuZ-a0-hr-b0-fw/Makefile index a1b71af69410..d89f4c878d7b 100644 --- a/sys/modules/iwlwififw/iwlwifi-QuZ-a0-hr-b0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-QuZ-a0-hr-b0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= QuZ-a0-hr-b0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-QuZ-a0-jf-b0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-QuZ-a0-jf-b0-fw/Makefile index a93b5474af37..e92608872e07 100644 --- a/sys/modules/iwlwififw/iwlwifi-QuZ-a0-jf-b0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-QuZ-a0-jf-b0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= QuZ-a0-jf-b0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-cc-a0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-cc-a0-fw/Makefile index d431a3b81a8e..0cb3830c4d57 100644 --- a/sys/modules/iwlwififw/iwlwifi-cc-a0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-cc-a0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= cc-a0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-so-a0-gf-a0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-so-a0-gf-a0-fw/Makefile index 234c50dc09d8..98e1efddd7f3 100644 --- a/sys/modules/iwlwififw/iwlwifi-so-a0-gf-a0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-so-a0-gf-a0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= so-a0-gf-a0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-so-a0-gf-a0-pnvm/Makefile b/sys/modules/iwlwififw/iwlwifi-so-a0-gf-a0-pnvm/Makefile index eea8eaea37a3..6a4085119166 100644 --- a/sys/modules/iwlwififw/iwlwifi-so-a0-gf-a0-pnvm/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-so-a0-gf-a0-pnvm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ FWVERSION= 73 NAME= so-a0-gf-a0 EXT= pnvm _NAME= iwlwifi-${NAME}.${EXT} .include diff --git a/sys/modules/iwlwififw/iwlwifi-so-a0-gf4-a0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-so-a0-gf4-a0-fw/Makefile index c2f522c4950d..44cd873e0b8e 100644 --- a/sys/modules/iwlwififw/iwlwifi-so-a0-gf4-a0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-so-a0-gf4-a0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= so-a0-gf4-a0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-so-a0-gf4-a0-pnvm/Makefile b/sys/modules/iwlwififw/iwlwifi-so-a0-gf4-a0-pnvm/Makefile index a1ec24ee17dc..5a63a147c156 100644 --- a/sys/modules/iwlwififw/iwlwifi-so-a0-gf4-a0-pnvm/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-so-a0-gf4-a0-pnvm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ FWVERSION= 73 NAME= so-a0-gf4-a0 EXT= pnvm _NAME= iwlwifi-${NAME}.${EXT} .include diff --git a/sys/modules/iwlwififw/iwlwifi-so-a0-hr-b0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-so-a0-hr-b0-fw/Makefile index ba09dbd58356..b95aba38ed80 100644 --- a/sys/modules/iwlwififw/iwlwifi-so-a0-hr-b0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-so-a0-hr-b0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= so-a0-hr-b0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-so-a0-jf-b0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-so-a0-jf-b0-fw/Makefile index af11f6870ba8..0211cf81d4e3 100644 --- a/sys/modules/iwlwififw/iwlwifi-so-a0-jf-b0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-so-a0-jf-b0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= so-a0-jf-b0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-ty-a0-gf-a0-fw/Makefile b/sys/modules/iwlwififw/iwlwifi-ty-a0-gf-a0-fw/Makefile index 32b6e382049d..62c98afb76ba 100644 --- a/sys/modules/iwlwififw/iwlwifi-ty-a0-gf-a0-fw/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-ty-a0-gf-a0-fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ FWVERSION= 73 NAME= ty-a0-gf-a0 .include diff --git a/sys/modules/iwlwififw/iwlwifi-ty-a0-gf-a0-pnvm/Makefile b/sys/modules/iwlwififw/iwlwifi-ty-a0-gf-a0-pnvm/Makefile index b130ecc425ff..f61111576131 100644 --- a/sys/modules/iwlwififw/iwlwifi-ty-a0-gf-a0-pnvm/Makefile +++ b/sys/modules/iwlwififw/iwlwifi-ty-a0-gf-a0-pnvm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ FWVERSION= 73 NAME= ty-a0-gf-a0 EXT= pnvm _NAME= iwlwifi-${NAME}.${EXT} .include diff --git a/sys/modules/iwm/Makefile b/sys/modules/iwm/Makefile index 809cb4b3e85b..a115c4a807bb 100644 --- a/sys/modules/iwm/Makefile +++ b/sys/modules/iwm/Makefile @@ -1,18 +1,17 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iwm KMOD= if_iwm # Main driver SRCS= if_iwm.c if_iwm_binding.c if_iwm_util.c if_iwm_phy_db.c SRCS+= if_iwm_mac_ctxt.c if_iwm_phy_ctxt.c if_iwm_time_event.c SRCS+= if_iwm_power.c if_iwm_scan.c if_iwm_led.c if_iwm_notif_wait.c SRCS+= if_iwm_7000.c if_iwm_8000.c if_iwm_9000.c if_iwm_fw.c if_iwm_9260.c SRCS+= if_iwm_sta.c if_iwm_sf.c # bus layer SRCS+= if_iwm_pcie_trans.c SRCS+= device_if.h bus_if.h pci_if.h opt_wlan.h opt_iwm.h CFLAGS+= -DIWM_DEBUG .include diff --git a/sys/modules/iwmfw/Makefile b/sys/modules/iwmfw/Makefile index 2ff820c03299..1ff62d2ab3bf 100644 --- a/sys/modules/iwmfw/Makefile +++ b/sys/modules/iwmfw/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ SUBDIR= iwm3160fw \ iwm3168fw \ iwm7260fw \ iwm7265fw \ iwm7265Dfw \ iwm8000Cfw \ iwm8265fw \ iwm9000fw \ iwm9260fw .include diff --git a/sys/modules/iwmfw/Makefile.inc b/sys/modules/iwmfw/Makefile.inc index 89ae353073ca..3354a001533b 100644 --- a/sys/modules/iwmfw/Makefile.inc +++ b/sys/modules/iwmfw/Makefile.inc @@ -1,18 +1,17 @@ -# $FreeBSD$ # # Common rules for building firmware. Note this gets auto-included # by the subdir Makefile's as a consequence of included bsd.kmod.mk. _FIRM= ${IMG}.fw CLEANFILES+= ${_FIRM} FIRMWS= ${_FIRM}:${KMOD} # # Note that a license ack is not needed for iwn. # #FIRMWARE_LICENSE= ${_FIRM}: ${SRCTOP}/sys/contrib/dev/iwm/${_FIRM}.uu uudecode -p ${.ALLSRC} > ${.TARGET} diff --git a/sys/modules/iwmfw/iwm3160fw/Makefile b/sys/modules/iwmfw/iwm3160fw/Makefile index 02f82f6dfbac..42701d1d58d9 100644 --- a/sys/modules/iwmfw/iwm3160fw/Makefile +++ b/sys/modules/iwmfw/iwm3160fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwm3160fw IMG= iwm-3160-17 .include diff --git a/sys/modules/iwmfw/iwm3168fw/Makefile b/sys/modules/iwmfw/iwm3168fw/Makefile index e0f1e8a9f5ed..2ee4ff4292bc 100644 --- a/sys/modules/iwmfw/iwm3168fw/Makefile +++ b/sys/modules/iwmfw/iwm3168fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwm3168fw IMG= iwm-3168-22 .include diff --git a/sys/modules/iwmfw/iwm7260fw/Makefile b/sys/modules/iwmfw/iwm7260fw/Makefile index ef35d801ea99..5d22c2343030 100644 --- a/sys/modules/iwmfw/iwm7260fw/Makefile +++ b/sys/modules/iwmfw/iwm7260fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwm7260fw IMG= iwm-7260-17 .include diff --git a/sys/modules/iwmfw/iwm7265Dfw/Makefile b/sys/modules/iwmfw/iwm7265Dfw/Makefile index 1746e386e92a..e3f8af5cbcf2 100644 --- a/sys/modules/iwmfw/iwm7265Dfw/Makefile +++ b/sys/modules/iwmfw/iwm7265Dfw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwm7265Dfw IMG= iwm-7265D-22 .include diff --git a/sys/modules/iwmfw/iwm7265fw/Makefile b/sys/modules/iwmfw/iwm7265fw/Makefile index db004434ff17..9be31560ccca 100644 --- a/sys/modules/iwmfw/iwm7265fw/Makefile +++ b/sys/modules/iwmfw/iwm7265fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwm7265fw IMG= iwm-7265-17 .include diff --git a/sys/modules/iwmfw/iwm8000Cfw/Makefile b/sys/modules/iwmfw/iwm8000Cfw/Makefile index 061470908325..3ba360d4040d 100644 --- a/sys/modules/iwmfw/iwm8000Cfw/Makefile +++ b/sys/modules/iwmfw/iwm8000Cfw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwm8000Cfw IMG= iwm-8000C-22 .include diff --git a/sys/modules/iwmfw/iwm8265fw/Makefile b/sys/modules/iwmfw/iwm8265fw/Makefile index 4e4ff4d92466..1a4930c5e774 100644 --- a/sys/modules/iwmfw/iwm8265fw/Makefile +++ b/sys/modules/iwmfw/iwm8265fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwm8265fw IMG= iwm-8265-22 .include diff --git a/sys/modules/iwmfw/iwm9000fw/Makefile b/sys/modules/iwmfw/iwm9000fw/Makefile index ddcfcb9d024e..d78dce7be8a7 100644 --- a/sys/modules/iwmfw/iwm9000fw/Makefile +++ b/sys/modules/iwmfw/iwm9000fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwm9000fw IMG= iwm-9000-34 .include diff --git a/sys/modules/iwmfw/iwm9260fw/Makefile b/sys/modules/iwmfw/iwm9260fw/Makefile index 322abb343d8b..a8693d2b6d61 100644 --- a/sys/modules/iwmfw/iwm9260fw/Makefile +++ b/sys/modules/iwmfw/iwm9260fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwm9260fw IMG= iwm-9260-34 .include diff --git a/sys/modules/iwn/Makefile b/sys/modules/iwn/Makefile index 102c64b5f166..5a219ffa5c6d 100644 --- a/sys/modules/iwn/Makefile +++ b/sys/modules/iwn/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iwn KMOD = if_iwn SRCS = if_iwn.c device_if.h bus_if.h pci_if.h opt_iwn.h opt_wlan.h .include diff --git a/sys/modules/iwnfw/Makefile b/sys/modules/iwnfw/Makefile index 9f8009c582ad..487009a027a8 100644 --- a/sys/modules/iwnfw/Makefile +++ b/sys/modules/iwnfw/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ SUBDIR= iwn100 \ iwn105 \ iwn135 \ iwn1000 \ iwn2000 \ iwn2030 \ iwn4965 \ iwn5000 \ iwn5150 \ iwn6000 \ iwn6000g2a \ iwn6000g2b \ iwn6050 .include diff --git a/sys/modules/iwnfw/Makefile.inc b/sys/modules/iwnfw/Makefile.inc index 32355f387ecf..703e5ece3a9b 100644 --- a/sys/modules/iwnfw/Makefile.inc +++ b/sys/modules/iwnfw/Makefile.inc @@ -1,18 +1,17 @@ -# $FreeBSD$ # # Common rules for building firmware. Note this gets auto-included # by the subdir Makefile's as a consequence of included bsd.kmod.mk. _FIRM= ${IMG}.fw CLEANFILES+= ${_FIRM} FIRMWS= ${_FIRM}:${KMOD} # # Note that a license ack is not needed for iwn. # #FIRMWARE_LICENSE= ${_FIRM}: ${SRCTOP}/sys/contrib/dev/iwn/${_FIRM}.uu uudecode -p ${.ALLSRC} > ${.TARGET} diff --git a/sys/modules/iwnfw/iwn100/Makefile b/sys/modules/iwnfw/iwn100/Makefile index c72533fbada9..24a3943934a6 100644 --- a/sys/modules/iwnfw/iwn100/Makefile +++ b/sys/modules/iwnfw/iwn100/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn100fw IMG= iwlwifi-100-39.31.5.1 .include diff --git a/sys/modules/iwnfw/iwn1000/Makefile b/sys/modules/iwnfw/iwn1000/Makefile index b4b043dac994..4107d5a69a28 100644 --- a/sys/modules/iwnfw/iwn1000/Makefile +++ b/sys/modules/iwnfw/iwn1000/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn1000fw IMG= iwlwifi-1000-39.31.5.1 .include diff --git a/sys/modules/iwnfw/iwn105/Makefile b/sys/modules/iwnfw/iwn105/Makefile index f1f3d8d9d4fa..71a93d240db4 100644 --- a/sys/modules/iwnfw/iwn105/Makefile +++ b/sys/modules/iwnfw/iwn105/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn105fw IMG= iwlwifi-105-6-18.168.6.1 .include diff --git a/sys/modules/iwnfw/iwn135/Makefile b/sys/modules/iwnfw/iwn135/Makefile index fd21ac40a8d3..24f6cf7cf9cf 100644 --- a/sys/modules/iwnfw/iwn135/Makefile +++ b/sys/modules/iwnfw/iwn135/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn135fw IMG= iwlwifi-135-6-18.168.6.1 .include diff --git a/sys/modules/iwnfw/iwn2000/Makefile b/sys/modules/iwnfw/iwn2000/Makefile index 920ae8def1b7..72a676886b03 100644 --- a/sys/modules/iwnfw/iwn2000/Makefile +++ b/sys/modules/iwnfw/iwn2000/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn2000fw IMG= iwlwifi-2000-18.168.6.1 .include diff --git a/sys/modules/iwnfw/iwn2030/Makefile b/sys/modules/iwnfw/iwn2030/Makefile index 0e92657048d8..c11fa66fe9c2 100644 --- a/sys/modules/iwnfw/iwn2030/Makefile +++ b/sys/modules/iwnfw/iwn2030/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn2030fw IMG= iwnwifi-2030-18.168.6.1 .include diff --git a/sys/modules/iwnfw/iwn4965/Makefile b/sys/modules/iwnfw/iwn4965/Makefile index c1cc961342e5..f3bad9ecbf2f 100644 --- a/sys/modules/iwnfw/iwn4965/Makefile +++ b/sys/modules/iwnfw/iwn4965/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn4965fw IMG= iwlwifi-4965-228.61.2.24 .include diff --git a/sys/modules/iwnfw/iwn5000/Makefile b/sys/modules/iwnfw/iwn5000/Makefile index 4abbc84a6e86..7c79e86c3f9d 100644 --- a/sys/modules/iwnfw/iwn5000/Makefile +++ b/sys/modules/iwnfw/iwn5000/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn5000fw IMG= iwlwifi-5000-8.83.5.1 .include diff --git a/sys/modules/iwnfw/iwn5150/Makefile b/sys/modules/iwnfw/iwn5150/Makefile index 5eeea79490b0..c4616797b018 100644 --- a/sys/modules/iwnfw/iwn5150/Makefile +++ b/sys/modules/iwnfw/iwn5150/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn5150fw IMG= iwlwifi-5150-8.24.2.2 .include diff --git a/sys/modules/iwnfw/iwn6000/Makefile b/sys/modules/iwnfw/iwn6000/Makefile index 81469d2daf97..76164ed97f89 100644 --- a/sys/modules/iwnfw/iwn6000/Makefile +++ b/sys/modules/iwnfw/iwn6000/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn6000fw IMG= iwlwifi-6000-9.221.4.1 .include diff --git a/sys/modules/iwnfw/iwn6000g2a/Makefile b/sys/modules/iwnfw/iwn6000g2a/Makefile index 5a7142273d32..61375d6708aa 100644 --- a/sys/modules/iwnfw/iwn6000g2a/Makefile +++ b/sys/modules/iwnfw/iwn6000g2a/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn6000g2afw IMG= iwlwifi-6000g2a-18.168.6.1 .include diff --git a/sys/modules/iwnfw/iwn6000g2b/Makefile b/sys/modules/iwnfw/iwn6000g2b/Makefile index ce767556f203..d9020b807d43 100644 --- a/sys/modules/iwnfw/iwn6000g2b/Makefile +++ b/sys/modules/iwnfw/iwn6000g2b/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn6000g2bfw IMG= iwlwifi-6000g2b-18.168.6.1 .include diff --git a/sys/modules/iwnfw/iwn6050/Makefile b/sys/modules/iwnfw/iwn6050/Makefile index c6b0f2fc19be..742a96ca65c9 100644 --- a/sys/modules/iwnfw/iwn6050/Makefile +++ b/sys/modules/iwnfw/iwn6050/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= iwn6050fw IMG= iwlwifi-6050-41.28.5.1 .include diff --git a/sys/modules/ix/Makefile b/sys/modules/ix/Makefile index 1affdeb1d024..2c71371b88f9 100644 --- a/sys/modules/ix/Makefile +++ b/sys/modules/ix/Makefile @@ -1,15 +1,14 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ixgbe KMOD = if_ix SRCS = device_if.h bus_if.h pci_if.h pci_iov_if.h ifdi_if.h SRCS += opt_inet.h opt_inet6.h opt_rss.h SRCS += if_ix.c if_bypass.c if_fdir.c if_sriov.c ix_txrx.c ixgbe_osdep.c # Shared source SRCS += ixgbe_common.c ixgbe_api.c ixgbe_phy.c ixgbe_mbx.c ixgbe_vf.c SRCS += ixgbe_dcb.c ixgbe_dcb_82598.c ixgbe_dcb_82599.c SRCS += ixgbe_82598.c ixgbe_82599.c ixgbe_x540.c ixgbe_x550.c CFLAGS+= -I${SRCTOP}/sys/dev/ixgbe .include diff --git a/sys/modules/ixl/Makefile b/sys/modules/ixl/Makefile index fb2fcf6574ac..32f000734c9a 100644 --- a/sys/modules/ixl/Makefile +++ b/sys/modules/ixl/Makefile @@ -1,27 +1,26 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ixl KMOD = if_ixl SRCS = device_if.h bus_if.h pci_if.h ifdi_if.h SRCS += opt_inet.h opt_inet6.h opt_rss.h opt_ixl.h opt_iflib.h SRCS += ixl_pf_main.c ixl_pf_qmgr.c ixl_txrx.c ixl_pf_i2c.c i40e_osdep.c SRCS += if_ixl.c ixl_pf_iflib.c SRCS.PCI_IOV += pci_iov_if.h ixl_pf_iov.c # Shared source SRCS += i40e_common.c i40e_nvm.c i40e_adminq.c i40e_lan_hmc.c i40e_hmc.c i40e_dcb.c # Debug messages / sysctls # CFLAGS += -DIXL_DEBUG # Enable asserts and other debugging facilities # CFLAGS += -DINVARIANTS -DINVARIANTS_SUPPORT -DWITNESS # Enable iWARP client interface # CFLAGS += -DIXL_IW # SRCS += ixl_iw.c EXPORT_SYMS= YES .include diff --git a/sys/modules/ixv/Makefile b/sys/modules/ixv/Makefile index db0bb9fe9b4f..e2616e2cfd5a 100644 --- a/sys/modules/ixv/Makefile +++ b/sys/modules/ixv/Makefile @@ -1,15 +1,14 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ixgbe KMOD = if_ixv SRCS = device_if.h bus_if.h pci_if.h pci_iov_if.h ifdi_if.h SRCS += opt_inet.h opt_inet6.h opt_rss.h SRCS += if_ixv.c if_fdir.c ix_txrx.c ixgbe_osdep.c # Shared source SRCS += ixgbe_common.c ixgbe_api.c ixgbe_phy.c ixgbe_mbx.c ixgbe_vf.c SRCS += ixgbe_dcb.c ixgbe_dcb_82598.c ixgbe_dcb_82599.c SRCS += ixgbe_82598.c ixgbe_82599.c ixgbe_x540.c ixgbe_x550.c CFLAGS+= -I${SRCTOP}/sys/dev/ixgbe .include diff --git a/sys/modules/jme/Makefile b/sys/modules/jme/Makefile index e17a8ebdf8c6..414b579e06d8 100644 --- a/sys/modules/jme/Makefile +++ b/sys/modules/jme/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/jme KMOD= if_jme SRCS= if_jme.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h .include diff --git a/sys/modules/kbdmux/Makefile b/sys/modules/kbdmux/Makefile index 7ae37b839347..8469d2867a70 100644 --- a/sys/modules/kbdmux/Makefile +++ b/sys/modules/kbdmux/Makefile @@ -1,15 +1,14 @@ # $Id: Makefile,v 1.1 2005/06/23 00:30:50 max Exp $ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/kbdmux KMOD= kbdmux SRCS= kbdmux.c opt_evdev.h opt_kbd.h opt_kbdmux.h bus_if.h \ device_if.h .if !defined(KERNBUILDDIR) opt_kbd.h: echo "#define KBD_INSTALL_CDEV 1" > ${.TARGET} .endif .include diff --git a/sys/modules/kgssapi/Makefile b/sys/modules/kgssapi/Makefile index a21524cb419a..2cf36246137c 100644 --- a/sys/modules/kgssapi/Makefile +++ b/sys/modules/kgssapi/Makefile @@ -1,56 +1,55 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kgssapi ${SRCTOP}/sys/rpc/rpcsec_gss KMOD= kgssapi SRCS= gss_accept_sec_context.c \ gss_add_oid_set_member.c \ gss_acquire_cred.c \ gss_canonicalize_name.c \ gss_create_empty_oid_set.c \ gss_delete_sec_context.c \ gss_display_status.c \ gss_export_name.c \ gss_get_mic.c \ gss_init_sec_context.c \ gss_impl.c \ gss_import_name.c \ gss_names.c \ gss_pname_to_uid.c \ gss_release_buffer.c \ gss_release_cred.c \ gss_release_name.c \ gss_release_oid_set.c \ gss_set_cred_option.c \ gss_test_oid_set_member.c \ gss_unwrap.c \ gss_verify_mic.c \ gss_wrap.c \ gss_wrap_size_limit.c \ gssd_prot.c SRCS+= rpcsec_gss.c \ rpcsec_gss_conf.c \ rpcsec_gss_misc.c \ rpcsec_gss_prot.c \ svc_rpcsec_gss.c SRCS+= kgss_if.h kgss_if.c SRCS+= gssd.h gssd_xdr.c gssd_clnt.c CLEANFILES= gssd.h gssd_xdr.c gssd_clnt.c S= ${SRCTOP}/sys gssd.h: $S/kgssapi/gssd.x RPCGEN_CPP=${CPP:Q} rpcgen -hM $S/kgssapi/gssd.x | grep -v pthread.h > gssd.h gssd_xdr.c: $S/kgssapi/gssd.x RPCGEN_CPP=${CPP:Q} rpcgen -c $S/kgssapi/gssd.x -o gssd_xdr.c gssd_clnt.c: $S/kgssapi/gssd.x RPCGEN_CPP=${CPP:Q} rpcgen -lM $S/kgssapi/gssd.x | grep -v string.h > gssd_clnt.c EXPORT_SYMS= YES .include diff --git a/sys/modules/kgssapi_krb5/Makefile b/sys/modules/kgssapi_krb5/Makefile index 2f4c69ae0949..a540e9a74015 100644 --- a/sys/modules/kgssapi_krb5/Makefile +++ b/sys/modules/kgssapi_krb5/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kgssapi/krb5 KMOD= kgssapi_krb5 SRCS= krb5_mech.c \ kcrypto.c \ kcrypto_aes.c \ opt_inet6.h SRCS+= kgss_if.h gssd.h CLEANFILES= gssd.h S= ${SRCTOP}/sys gssd.h: $S/kgssapi/gssd.x RPCGEN_CPP=${CPP:Q} rpcgen -hM $S/kgssapi/gssd.x | grep -v pthread.h > gssd.h .include diff --git a/sys/modules/khelp/Makefile b/sys/modules/khelp/Makefile index c01d61541062..173ba679bfcf 100644 --- a/sys/modules/khelp/Makefile +++ b/sys/modules/khelp/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ SUBDIR= # Do we have the TCP_HHOOK symbol defined? If not, there is no point in # building this modules by default. # We will default to building this module if $OPT_GLOBAL does contain # the TCP_HHOOK option. .if defined(ALL_MODULES) || ${OPT_GLOBAL:UTCP_HHOOK:MTCP_HHOOK} != "" SUBDIR+= h_ertt .endif .include diff --git a/sys/modules/khelp/h_ertt/Makefile b/sys/modules/khelp/h_ertt/Makefile index e63154ea248f..d149cf254b60 100644 --- a/sys/modules/khelp/h_ertt/Makefile +++ b/sys/modules/khelp/h_ertt/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/khelp KMOD= h_ertt SRCS= h_ertt.c opt_kern_tls.h .include diff --git a/sys/modules/krpc/Makefile b/sys/modules/krpc/Makefile index e8946f0ba4ef..168d1a3fc623 100644 --- a/sys/modules/krpc/Makefile +++ b/sys/modules/krpc/Makefile @@ -1,60 +1,59 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/rpc ${SRCTOP}/sys/rpc/rpcsec_tls KMOD= krpc SRCS= auth_none.c \ auth_unix.c \ authunix_prot.c \ clnt_bck.c \ clnt_dg.c \ clnt_rc.c \ clnt_vc.c \ getnetconfig.c \ rpc_callmsg.c \ rpc_generic.c \ rpc_prot.c \ rpcb_clnt.c \ rpcb_prot.c \ replay.c \ svc.c \ svc_auth.c \ svc_auth_unix.c \ svc_dg.c \ svc_generic.c \ svc_vc.c SRCS+= rpctls_impl.c auth_tls.c SRCS+= opt_inet6.h opt_kern_tls.h SRCS+= rpctlscd.h rpctlscd_xdr.c rpctlscd_clnt.c CLEANFILES= rpctlscd.h rpctlscd_xdr.c rpctlscd_clnt.c S= ${SRCTOP}/sys rpctlscd.h: $S/rpc/rpcsec_tls/rpctlscd.x RPCGEN_CPP=${CPP:Q} rpcgen -hM $S/rpc/rpcsec_tls/rpctlscd.x | grep -v pthread.h > rpctlscd.h rpctlscd_xdr.c: $S/rpc/rpcsec_tls/rpctlscd.x RPCGEN_CPP=${CPP:Q} rpcgen -c $S/rpc/rpcsec_tls/rpctlscd.x -o rpctlscd_xdr.c rpctlscd_clnt.c: $S/rpc/rpcsec_tls/rpctlscd.x RPCGEN_CPP=${CPP:Q} rpcgen -lM $S/rpc/rpcsec_tls/rpctlscd.x | grep -v string.h > rpctlscd_clnt.c SRCS+= rpctlssd.h rpctlssd_xdr.c rpctlssd_clnt.c CLEANFILES= rpctlssd.h rpctlssd_xdr.c rpctlssd_clnt.c S= ${SRCTOP}/sys rpctlssd.h: $S/rpc/rpcsec_tls/rpctlssd.x RPCGEN_CPP=${CPP:Q} rpcgen -hM $S/rpc/rpcsec_tls/rpctlssd.x | grep -v pthread.h > rpctlssd.h rpctlssd_xdr.c: $S/rpc/rpcsec_tls/rpctlssd.x RPCGEN_CPP=${CPP:Q} rpcgen -c $S/rpc/rpcsec_tls/rpctlssd.x -o rpctlssd_xdr.c rpctlssd_clnt.c: $S/rpc/rpcsec_tls/rpctlssd.x RPCGEN_CPP=${CPP:Q} rpcgen -lM $S/rpc/rpcsec_tls/rpctlssd.x | grep -v string.h > rpctlssd_clnt.c EXPORT_SYMS= YES .include diff --git a/sys/modules/ksyms/Makefile b/sys/modules/ksyms/Makefile index 48deeed17089..bf5f5fec89d4 100644 --- a/sys/modules/ksyms/Makefile +++ b/sys/modules/ksyms/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ksyms KMOD= ksyms SRCS= ksyms.c linker_if.h .include diff --git a/sys/modules/ktest/ktest/Makefile b/sys/modules/ktest/ktest/Makefile index 86ed957ac2b7..f72aa5d820db 100644 --- a/sys/modules/ktest/ktest/Makefile +++ b/sys/modules/ktest/ktest/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ PACKAGE= tests SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/tests KMOD= ktest SRCS= ktest.c SRCS+= opt_netlink.h .include diff --git a/sys/modules/ktest/ktest_example/Makefile b/sys/modules/ktest/ktest_example/Makefile index 3ca304a19a99..5b0c9b41f9c8 100644 --- a/sys/modules/ktest/ktest_example/Makefile +++ b/sys/modules/ktest/ktest_example/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ PACKAGE= tests SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/tests KMOD= ktest_example SRCS= ktest_example.c SRCS+= opt_netlink.h .include diff --git a/sys/modules/ktest/ktest_netlink_message_writer/Makefile b/sys/modules/ktest/ktest_netlink_message_writer/Makefile index 2d14d93897f8..cdcd1d2c190f 100644 --- a/sys/modules/ktest/ktest_netlink_message_writer/Makefile +++ b/sys/modules/ktest/ktest_netlink_message_writer/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ PACKAGE= tests SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/netlink KMOD= ktest_netlink_message_writer SRCS= ktest_netlink_message_writer.c SRCS+= opt_netlink.h .include diff --git a/sys/modules/le/Makefile b/sys/modules/le/Makefile index b77a2e69f161..4364a4fc660e 100644 --- a/sys/modules/le/Makefile +++ b/sys/modules/le/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/le KMOD= if_le SRCS= am7990.c am79900.c ${if_le_isa} if_le_pci.c lance.c SRCS+= bus_if.h device_if.h ${isa_if} pci_if.h .if ${MACHINE_CPUARCH} == "i386" if_le_isa= if_le_isa.c isa_if= isa_if.h .endif .include diff --git a/sys/modules/lge/Makefile b/sys/modules/lge/Makefile index 551b49b29f46..45869c039454 100644 --- a/sys/modules/lge/Makefile +++ b/sys/modules/lge/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/lge KMOD= if_lge SRCS= if_lge.c miibus_if.h device_if.h bus_if.h pci_if.h opt_platform.h .include diff --git a/sys/modules/libalias/Makefile b/sys/modules/libalias/Makefile index e4296e1dfa15..02fd37c62a1c 100644 --- a/sys/modules/libalias/Makefile +++ b/sys/modules/libalias/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ SUBDIR= libalias modules .include diff --git a/sys/modules/libalias/libalias/Makefile b/sys/modules/libalias/libalias/Makefile index 4da69ea972b0..e72e8e0e1290 100644 --- a/sys/modules/libalias/libalias/Makefile +++ b/sys/modules/libalias/libalias/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/libalias KMOD= libalias SRCS= alias.c alias_db.c alias_proxy.c alias_util.c alias_mod.c alias_sctp.c EXPORT_SYMS= YES .include diff --git a/sys/modules/libalias/modules/Makefile b/sys/modules/libalias/modules/Makefile index 201b3badf3b0..a2c945965ca2 100644 --- a/sys/modules/libalias/modules/Makefile +++ b/sys/modules/libalias/modules/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .include "${.CURDIR}/modules.inc" SUBDIR= ${MODULES} .include diff --git a/sys/modules/libalias/modules/Makefile.inc b/sys/modules/libalias/modules/Makefile.inc index d130288bb7b4..86228d56da8f 100644 --- a/sys/modules/libalias/modules/Makefile.inc +++ b/sys/modules/libalias/modules/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet/libalias diff --git a/sys/modules/libalias/modules/dummy/Makefile b/sys/modules/libalias/modules/dummy/Makefile index ded455a8dfe7..77f54c6e393d 100644 --- a/sys/modules/libalias/modules/dummy/Makefile +++ b/sys/modules/libalias/modules/dummy/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= alias_dummy SRCS= alias_dummy.c .include diff --git a/sys/modules/libalias/modules/ftp/Makefile b/sys/modules/libalias/modules/ftp/Makefile index 07e700b40956..b3297081b2d7 100644 --- a/sys/modules/libalias/modules/ftp/Makefile +++ b/sys/modules/libalias/modules/ftp/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= alias_ftp SRCS= alias_ftp.c .include diff --git a/sys/modules/libalias/modules/irc/Makefile b/sys/modules/libalias/modules/irc/Makefile index b6e330d9e1b8..b2bd99ca88cc 100644 --- a/sys/modules/libalias/modules/irc/Makefile +++ b/sys/modules/libalias/modules/irc/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= alias_irc SRCS= alias_irc.c .include diff --git a/sys/modules/libalias/modules/modules.inc b/sys/modules/libalias/modules/modules.inc index 0f7f68900209..20f1a020d5ff 100644 --- a/sys/modules/libalias/modules/modules.inc +++ b/sys/modules/libalias/modules/modules.inc @@ -1,10 +1,9 @@ -# $FreeBSD$ MODULES = MODULES += dummy MODULES += ftp MODULES += irc MODULES += nbt MODULES += pptp MODULES += skinny MODULES += smedia diff --git a/sys/modules/libalias/modules/nbt/Makefile b/sys/modules/libalias/modules/nbt/Makefile index 6d6dd8728b6a..3de4a9a1e0af 100644 --- a/sys/modules/libalias/modules/nbt/Makefile +++ b/sys/modules/libalias/modules/nbt/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= alias_nbt SRCS= alias_nbt.c .include diff --git a/sys/modules/libalias/modules/pptp/Makefile b/sys/modules/libalias/modules/pptp/Makefile index 748f356e9fa7..379cc180d539 100644 --- a/sys/modules/libalias/modules/pptp/Makefile +++ b/sys/modules/libalias/modules/pptp/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= alias_pptp SRCS= alias_pptp.c .include diff --git a/sys/modules/libalias/modules/skinny/Makefile b/sys/modules/libalias/modules/skinny/Makefile index 8560f5ed131f..d62ba63b2f04 100644 --- a/sys/modules/libalias/modules/skinny/Makefile +++ b/sys/modules/libalias/modules/skinny/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= alias_skinny SRCS= alias_skinny.c .include diff --git a/sys/modules/libalias/modules/smedia/Makefile b/sys/modules/libalias/modules/smedia/Makefile index 245a63e8cfec..e0a7e7747c5c 100644 --- a/sys/modules/libalias/modules/smedia/Makefile +++ b/sys/modules/libalias/modules/smedia/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= alias_smedia SRCS= alias_smedia.c .include diff --git a/sys/modules/libiconv/Makefile b/sys/modules/libiconv/Makefile index c1033b01e30e..0100bd707cfe 100644 --- a/sys/modules/libiconv/Makefile +++ b/sys/modules/libiconv/Makefile @@ -1,21 +1,20 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/libkern ${SRCTOP}/sys/sys KMOD= libiconv SRCS= iconv.c iconv_ucs.c iconv_xlat.c iconv_xlat16.c SRCS+= iconv.h SRCS+= iconv_converter_if.c iconv_converter_if.h EXPORT_SYMS= iconv_add \ iconv_open \ iconv_close \ iconv_conv \ iconv_conv_case \ iconv_convchr \ iconv_convchr_case \ iconv_convstr \ iconv_convmem \ iconv_vfs_refcount .include diff --git a/sys/modules/libmchain/Makefile b/sys/modules/libmchain/Makefile index f702c14072dd..aabaa311ac45 100644 --- a/sys/modules/libmchain/Makefile +++ b/sys/modules/libmchain/Makefile @@ -1,44 +1,43 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= libmchain SRCS= subr_mchain.c EXPORT_SYMS= mb_init \ mb_initm \ mb_done \ mb_detach \ mb_fixhdr \ mb_reserve \ mb_put_padbyte \ mb_put_uint8 \ mb_put_uint16be \ mb_put_uint16le \ mb_put_uint32be \ mb_put_uint32le \ mb_put_int64be \ mb_put_int64le \ mb_put_mem \ mb_put_mbuf \ mb_put_uio \ md_init \ md_initm \ md_done \ md_append_record \ md_next_record \ md_get_uint8 \ md_get_uint16 \ md_get_uint16le \ md_get_uint16be \ md_get_uint32 \ md_get_uint32be \ md_get_uint32le \ md_get_int64 \ md_get_int64be \ md_get_int64le \ md_get_mem \ md_get_mbuf \ md_get_uio \ .include diff --git a/sys/modules/lindebugfs/Makefile b/sys/modules/lindebugfs/Makefile index 024b945dfc6c..542a2fb7b6da 100644 --- a/sys/modules/lindebugfs/Makefile +++ b/sys/modules/lindebugfs/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/compat/lindebugfs KMOD= lindebugfs SRCS= lindebugfs.c SRCS+= ${LINUXKPI_GENSRCS} CFLAGS+= ${LINUXKPI_INCLUDES} .include diff --git a/sys/modules/linprocfs/Makefile b/sys/modules/linprocfs/Makefile index 16f9f8c703be..df282d7eef31 100644 --- a/sys/modules/linprocfs/Makefile +++ b/sys/modules/linprocfs/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/compat/linprocfs KMOD= linprocfs SRCS= vnode_if.h \ device_if.h bus_if.h opt_inet.h \ linprocfs.c .if !defined(KERNBUILDDIR) .warning Building Linuxulator outside of a kernel does not make sense .endif .include diff --git a/sys/modules/linsysfs/Makefile b/sys/modules/linsysfs/Makefile index 8ec02da435e4..a9741d13cfee 100644 --- a/sys/modules/linsysfs/Makefile +++ b/sys/modules/linsysfs/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/compat/linsysfs KMOD= linsysfs SRCS= vnode_if.h \ device_if.h bus_if.h pci_if.h \ linsysfs.c linsysfs_net.c .if !defined(KERNBUILDDIR) .warning Building Linuxulator outside of a kernel does not make sense .endif .include diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile index 42ce6607dfc2..51b434d91b00 100644 --- a/sys/modules/linux/Makefile +++ b/sys/modules/linux/Makefile @@ -1,148 +1,147 @@ -# $FreeBSD$ .if ${MACHINE_CPUARCH} == "amd64" SFX= 32 CFLAGS+=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32 .endif .PATH: ${SRCTOP}/sys/compat/linux ${SRCTOP}/sys/${MACHINE_CPUARCH}/linux${SFX} .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" .PATH: ${SRCTOP}/sys/x86/linux .endif KMOD= linux SRCS= linux${SFX}_dummy_machdep.c \ linux_elf32.c \ linux_event.c \ linux_file.c \ linux_fork.c \ linux_futex.c \ linux_getcwd.c \ linux_ioctl.c \ linux_ipc.c \ linux${SFX}_machdep.c \ linux_misc.c \ linux_rseq.c \ linux_signal.c \ linux_socket.c \ linux_stats.c \ linux${SFX}_syscalls.c \ linux_sysctl.c \ linux${SFX}_sysent.c \ linux${SFX}_sysvec.c \ linux_time.c \ linux_timer.c \ linux_uid16.c \ linux_vdso.c \ linux_xattr.c \ opt_inet6.h \ opt_ktrace.h \ opt_posix.h \ bus_if.h \ device_if.h \ vnode_if.h .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" SRCS+= linux_dummy_x86.c VDSODEPS=linux_vdso_gettc_x86.inc .endif .if ${MACHINE_CPUARCH} == "amd64" SRCS+= linux${SFX}_support.S .endif DPSRCS= assym.inc linux${SFX}_genassym.c # XXX: for assym.inc SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h .if ${MACHINE_CPUARCH} == "i386" SRCS+= opt_apic.h opt_cpu.h .endif OBJS= linux${SFX}_vdso.so .if ${MACHINE_CPUARCH} == "i386" SRCS+= imgact_linux.c \ linux.c \ linux_dummy.c \ linux_emul.c \ linux_errno.c \ linux_mib.c \ linux_mmap.c \ linux_ptrace_machdep.c \ linux_util.c \ linux_vdso_selector_x86.c \ linux_x86.c \ linux_copyout.c \ linux_netlink.c \ opt_netlink.h .endif .if ${MACHINE_CPUARCH} == "i386" EXPORT_SYMS= EXPORT_SYMS+= linux_get_osname EXPORT_SYMS+= linux_get_osrelease EXPORT_SYMS+= linux_ioctl_register_handler EXPORT_SYMS+= linux_ioctl_unregister_handler .endif CLEANFILES= linux${SFX}_assym.h linux${SFX}_genassym.o linux${SFX}_locore.o \ genassym.o linux${SFX}_vdso_gtod.o linux${SFX}_vdso.so.o linux${SFX}_assym.h: linux${SFX}_genassym.o sh ${SYSDIR}/kern/genassym.sh linux${SFX}_genassym.o > ${.TARGET} .if ${MACHINE_CPUARCH} == "amd64" VDSOFLAGS=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32 -m32 .else VDSOFLAGS=-mregparm=0 .endif linux${SFX}_locore.o: linux${SFX}_assym.h assym.inc ${CC} -c -x assembler-with-cpp -DLOCORE -fPIC -pipe -O2 -Werror \ -msoft-float \ -fno-common -nostdinc -fasynchronous-unwind-tables \ -fno-omit-frame-pointer -foptimize-sibling-calls ${VDSOFLAGS} \ -fno-stack-protector -I. -I${SYSDIR} -I${SRCTOP}/include \ ${.IMPSRC} -o ${.TARGET} linux${SFX}_vdso_gtod.o: linux_vdso_gtod.inc ${VDSODEPS} ${CC} -c -fPIC -pipe -O2 -Werror -msoft-float \ -fno-common -nostdinc -fasynchronous-unwind-tables \ -fno-omit-frame-pointer -foptimize-sibling-calls ${VDSOFLAGS} \ -fno-stack-protector -I. -I${SYSDIR} -I${SRCTOP}/include \ ${.IMPSRC} -o ${.TARGET} linux${SFX}_vdso.so.o: linux${SFX}_locore.o linux${SFX}_vdso_gtod.o ${LD} -m elf_i386 --shared --eh-frame-hdr -soname=linux-gate.so.1 \ --no-undefined --hash-style=both -warn-common -nostdlib \ --strip-debug -s --build-id=sha1 --Bsymbolic \ -T${SRCTOP}/sys/${MACHINE}/linux${SFX}/linux${SFX}_vdso.lds.s \ -o ${.TARGET} ${.ALLSRC:M*.o} .if ${MACHINE_CPUARCH} == "amd64" OBJCOPY_TARGET=--output-target elf64-x86-64-freebsd --binary-architecture i386 .elif ${MACHINE_CPUARCH} == "i386" OBJCOPY_TARGET=--output-target elf32-i386-freebsd --binary-architecture i386 .else .error ${MACHINE_CPUARCH} not yet supported by linux .endif linux${SFX}_vdso.so: linux${SFX}_vdso.so.o ${OBJCOPY} --input-target binary ${OBJCOPY_TARGET} \ linux${SFX}_vdso.so.o ${.TARGET} ${STRIPBIN} -N _binary_linux${SFX}_vdso_so_o_size ${.TARGET} .if ${MACHINE_CPUARCH} == "amd64" linux${SFX}_support.o: linux${SFX}_support.S linux${SFX}_assym.h assym.inc ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.ALLSRC:M*.S:u} -o ${.TARGET} .endif linux${SFX}_genassym.o: offset.inc ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon ${.IMPSRC} .if !defined(KERNBUILDDIR) .warning Building Linuxulator outside of a kernel does not make sense .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/linux64/Makefile b/sys/modules/linux64/Makefile index 0a133e6e79b4..05fe76ba6a51 100644 --- a/sys/modules/linux64/Makefile +++ b/sys/modules/linux64/Makefile @@ -1,113 +1,112 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/compat/linux ${SRCTOP}/sys/${MACHINE}/linux .if ${MACHINE_CPUARCH} == "amd64" .PATH: ${SRCTOP}/sys/x86/linux .endif KMOD= linux64 SRCS= linux_dummy_machdep.c \ linux_elf64.c \ linux_event.c \ linux_file.c \ linux_fork.c \ linux_futex.c \ linux_getcwd.c \ linux_ioctl.c \ linux_ipc.c \ linux_machdep.c \ linux_misc.c \ linux_ptrace.c \ linux_rseq.c \ linux_signal.c \ linux_socket.c \ linux_stats.c \ linux_syscalls.c \ linux_sysctl.c \ linux_sysent.c \ linux_sysvec.c \ linux_time.c \ linux_vdso.c \ linux_timer.c \ linux_xattr.c \ opt_ktrace.h \ opt_inet6.h \ opt_posix.h \ bus_if.h \ device_if.h \ vnode_if.h \ linux_support.S .if ${MACHINE_CPUARCH} == "amd64" SRCS+= linux_dummy_x86.c .endif DPSRCS= assym.inc linux_genassym.c # XXX: for assym.inc SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h CLEANFILES= linux_assym.h linux_genassym.o linux_locore.o \ genassym.o linux_vdso_gtod.o linux_vdso.so.o OBJS= linux_vdso.so linux_assym.h: linux_genassym.o sh ${SYSDIR}/kern/genassym.sh linux_genassym.o > ${.TARGET} .if ${MACHINE_CPUARCH} == "amd64" VDSOFLAGS=-mcmodel=small -msoft-float VDSODEPS=linux_vdso_gettc_x86.inc .elif ${MACHINE_CPUARCH} == "aarch64" # The Linux uses tiny memory model, but our ld does not know about # some of relocation types which is generated by cc VDSOFLAGS=-mgeneral-regs-only -mcmodel=small -ffixed-x18 .endif linux_locore.o: linux_assym.h assym.inc ${CC} -c -x assembler-with-cpp -DLOCORE \ -fPIC -pipe -O2 -Werror ${VDSOFLAGS} \ -nostdinc -fasynchronous-unwind-tables \ -fno-omit-frame-pointer -foptimize-sibling-calls \ -fno-stack-protector -I. -I${SYSDIR} -I${SRCTOP}/include \ ${.IMPSRC} -o ${.TARGET} linux_vdso_gtod.o: linux_vdso_gtod.inc ${VDSODEPS} ${CC} -c -fPIC -pipe -O2 -Werror ${VDSOFLAGS} \ -nostdinc -fasynchronous-unwind-tables \ -fno-omit-frame-pointer -foptimize-sibling-calls \ -fno-stack-protector -I. -I${SYSDIR} -I${SRCTOP}/include \ ${.IMPSRC} -o ${.TARGET} linux_vdso.so.o: linux_locore.o linux_vdso_gtod.o ${LD} --shared --eh-frame-hdr -soname=linux-vdso.so.1 \ --no-undefined --hash-style=both -warn-common -nostdlib \ --strip-debug -s --build-id=sha1 -Bsymbolic \ -T${SRCTOP}/sys/${MACHINE}/linux/linux_vdso.lds.s \ -o ${.TARGET} ${.ALLSRC:M*.o} .if ${MACHINE_CPUARCH} == "aarch64" OBJCOPY_TARGET=--output-target elf64-littleaarch64 --binary-architecture aarch64 .elif ${MACHINE_CPUARCH} == "amd64" OBJCOPY_TARGET=--output-target elf64-x86-64 --binary-architecture i386:x86-64 .else .error ${MACHINE_CPUARCH} not yet supported by linux64 .endif linux_vdso.so: linux_vdso.so.o ${OBJCOPY} --input-target binary ${OBJCOPY_TARGET} \ linux_vdso.so.o ${.TARGET} ${STRIPBIN} -N _binary_linux_vdso_so_o_size ${.TARGET} linux_support.o: linux_support.S assym.inc linux_assym.h ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.ALLSRC:M*.S:u} -o ${.TARGET} linux_genassym.o: offset.inc ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon ${.IMPSRC} .if !defined(KERNBUILDDIR) .warning Building Linuxulator outside of a kernel does not make sense .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/linux_common/Makefile b/sys/modules/linux_common/Makefile index 402d3ebc937e..07df4555d1ee 100644 --- a/sys/modules/linux_common/Makefile +++ b/sys/modules/linux_common/Makefile @@ -1,29 +1,28 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/compat/linux .if ${MACHINE_CPUARCH} == "amd64" .PATH: ${SRCTOP}/sys/x86/linux .endif KMOD= linux_common SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \ linux_dummy.c linux_errno.c linux_netlink.c \ linux.c device_if.h vnode_if.h bus_if.h opt_inet6.h opt_inet.h \ opt_netlink.h .if ${MACHINE_CPUARCH} == "amd64" SRCS+= linux_x86.c linux_vdso_selector_x86.c .endif EXPORT_SYMS= EXPORT_SYMS+= linux_get_osname EXPORT_SYMS+= linux_get_osrelease EXPORT_SYMS+= linux_use_real_ifname .if !defined(KERNBUILDDIR) .warning Building Linuxulator outside of a kernel does not make sense .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/linuxkpi/Makefile b/sys/modules/linuxkpi/Makefile index e297361fce79..bf40d64de9df 100644 --- a/sys/modules/linuxkpi/Makefile +++ b/sys/modules/linuxkpi/Makefile @@ -1,54 +1,53 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/compat/linuxkpi/common/src KMOD= linuxkpi SRCS= linux_compat.c \ linux_current.c \ linux_devres.c \ linux_dmi.c \ linux_domain.c \ linux_firmware.c \ linux_fpu.c \ linux_hrtimer.c \ linux_idr.c \ linux_interrupt.c \ linux_i2c.c \ linux_i2cbb.c \ linux_kmod.c \ linux_kthread.c \ linux_lock.c \ linux_netdev.c \ linux_page.c \ linux_pci.c \ linux_radix.c \ linux_rcu.c \ linux_schedule.c \ linux_seq_file.c \ linux_shmemfs.c \ linux_shrinker.c \ linux_simple_attr.c \ linux_skbuff.c \ linux_slab.c \ linux_tasklet.c \ linux_usb.c \ linux_work.c \ linux_xarray.c .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" SRCS+= opt_acpi.h acpi_if.h linux_acpi.c .endif .if ${MACHINE_CPUARCH} == "i386" SRCS+= opt_apic.h .endif SRCS+= opt_ddb.h SRCS+= ${LINUXKPI_GENSRCS} CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include EXPORT_SYMS= YES .include diff --git a/sys/modules/linuxkpi_wlan/Makefile b/sys/modules/linuxkpi_wlan/Makefile index ef86121366c3..bafeb2d5d22a 100644 --- a/sys/modules/linuxkpi_wlan/Makefile +++ b/sys/modules/linuxkpi_wlan/Makefile @@ -1,18 +1,17 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/compat/linuxkpi/common/src KMOD= linuxkpi_wlan SRCS= linux_80211.c \ linux_80211_macops.c # QCA ath11k support. SRCS+= linux_mhi.c SRCS+= opt_wlan.h SRCS+= ${LINUXKPI_GENSRCS} CFLAGS+= ${LINUXKPI_INCLUDES} EXPORT_SYMS= YES .include diff --git a/sys/modules/lio/Makefile b/sys/modules/lio/Makefile index 1484e3029d6e..3f8b5e04ec3e 100644 --- a/sys/modules/lio/Makefile +++ b/sys/modules/lio/Makefile @@ -1,26 +1,25 @@ -#$FreeBSD$ #.PATH: ${.CURDIR} .PATH: ${.CURDIR}/../../dev/liquidio .PATH: ${.CURDIR}/../../dev/liquidio/base KMOD = if_lio CFLAGS += -I${.CURDIR}/../../dev/liquidio CFLAGS += -I${.CURDIR}/../../dev/liquidio/base SRCS = device_if.h bus_if.h pci_if.h vnode_if.h opt_inet.h opt_inet6.h SRCS += vnode_if_newproto.h vnode_if_typedef.h SRCS += lio_main.c lio_sysctl.c lio_ioctl.c lio_core.c SRCS += lio_rxtx.c lio_rss.c SRCS += lio_device.c lio_ctrl.c SRCS += lio_console.c cn23xx_pf_device.c SRCS += lio_mem_ops.c lio_droq.c SRCS += lio_response_manager.c lio_request_manager.c FIRMWS = lio_23xx_nic.bin.fw:lio_23xx_nic.bin CLEANFILES+= lio_23xx_nic.bin.fw lio_23xx_nic.bin.fw: ${.CURDIR}/../../contrib/dev/liquidio/lio_23xx_nic.bin.uu uudecode -p ${.CURDIR}/../../contrib/dev/liquidio/lio_23xx_nic.bin.uu > ${.TARGET} .include diff --git a/sys/modules/lpt/Makefile b/sys/modules/lpt/Makefile index 05425bba883a..74b5a9c90faa 100644 --- a/sys/modules/lpt/Makefile +++ b/sys/modules/lpt/Makefile @@ -1,10 +1,8 @@ -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/ppbus KMOD= lpt SRCS= bus_if.h device_if.h ppbus_if.h \ opt_lpt.h \ lpt.c .include diff --git a/sys/modules/mac_biba/Makefile b/sys/modules/mac_biba/Makefile index 0093ef6dccce..21a85dc19601 100644 --- a/sys/modules/mac_biba/Makefile +++ b/sys/modules/mac_biba/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_biba KMOD= mac_biba SRCS= vnode_if.h \ mac_biba.c .include diff --git a/sys/modules/mac_bsdextended/Makefile b/sys/modules/mac_bsdextended/Makefile index 32899e9e7a34..5921ac70dcbc 100644 --- a/sys/modules/mac_bsdextended/Makefile +++ b/sys/modules/mac_bsdextended/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_bsdextended KMOD= mac_bsdextended SRCS= vnode_if.h \ mac_bsdextended.h \ mac_bsdextended.c \ ugidfw_system.c \ ugidfw_vnode.c .include diff --git a/sys/modules/mac_ifoff/Makefile b/sys/modules/mac_ifoff/Makefile index 9d79eb085524..b7f8806352b0 100644 --- a/sys/modules/mac_ifoff/Makefile +++ b/sys/modules/mac_ifoff/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_ifoff KMOD= mac_ifoff SRCS= vnode_if.h \ mac_ifoff.c .include diff --git a/sys/modules/mac_ipacl/Makefile b/sys/modules/mac_ipacl/Makefile index 3ecc7564e70c..17059e145081 100644 --- a/sys/modules/mac_ipacl/Makefile +++ b/sys/modules/mac_ipacl/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_ipacl KMOD= mac_ipacl SRCS= mac_ipacl.c SRCS+= opt_inet.h opt_inet6.h .include diff --git a/sys/modules/mac_lomac/Makefile b/sys/modules/mac_lomac/Makefile index abc79f516fc8..9172d35ddf13 100644 --- a/sys/modules/mac_lomac/Makefile +++ b/sys/modules/mac_lomac/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_lomac KMOD= mac_lomac SRCS= vnode_if.h \ mac_lomac.c .include diff --git a/sys/modules/mac_mls/Makefile b/sys/modules/mac_mls/Makefile index 39e066aa3093..7169ba304205 100644 --- a/sys/modules/mac_mls/Makefile +++ b/sys/modules/mac_mls/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_mls KMOD= mac_mls SRCS= vnode_if.h \ mac_mls.c .include diff --git a/sys/modules/mac_none/Makefile b/sys/modules/mac_none/Makefile index d86792f7a97a..9a015aaff12c 100644 --- a/sys/modules/mac_none/Makefile +++ b/sys/modules/mac_none/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_none KMOD= mac_none SRCS= vnode_if.h \ mac_none.c .include diff --git a/sys/modules/mac_ntpd/Makefile b/sys/modules/mac_ntpd/Makefile index 07a6880a54a0..edd4ff70717a 100644 --- a/sys/modules/mac_ntpd/Makefile +++ b/sys/modules/mac_ntpd/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_ntpd KMOD= mac_ntpd SRCS= mac_ntpd.c .include diff --git a/sys/modules/mac_partition/Makefile b/sys/modules/mac_partition/Makefile index be7c27e6c632..26fae45e6cdc 100644 --- a/sys/modules/mac_partition/Makefile +++ b/sys/modules/mac_partition/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_partition KMOD= mac_partition SRCS= vnode_if.h \ mac_partition.c .include diff --git a/sys/modules/mac_pimd/Makefile b/sys/modules/mac_pimd/Makefile index 3e69a4a69abc..5e2ba5188654 100644 --- a/sys/modules/mac_pimd/Makefile +++ b/sys/modules/mac_pimd/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_pimd KMOD= mac_pimd SRCS= mac_pimd.c .include diff --git a/sys/modules/mac_portacl/Makefile b/sys/modules/mac_portacl/Makefile index 7bac0729987e..e2ab1da0a2ef 100644 --- a/sys/modules/mac_portacl/Makefile +++ b/sys/modules/mac_portacl/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_portacl KMOD= mac_portacl SRCS= mac_portacl.c .include diff --git a/sys/modules/mac_seeotheruids/Makefile b/sys/modules/mac_seeotheruids/Makefile index d2f6d207dd08..adf50d946c63 100644 --- a/sys/modules/mac_seeotheruids/Makefile +++ b/sys/modules/mac_seeotheruids/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_seeotheruids KMOD= mac_seeotheruids SRCS= vnode_if.h \ mac_seeotheruids.c .include diff --git a/sys/modules/mac_stub/Makefile b/sys/modules/mac_stub/Makefile index 431218604d9a..19b9a2fbd842 100644 --- a/sys/modules/mac_stub/Makefile +++ b/sys/modules/mac_stub/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_stub KMOD= mac_stub SRCS= vnode_if.h \ mac_stub.c .include diff --git a/sys/modules/mac_test/Makefile b/sys/modules/mac_test/Makefile index 7eabaea413a8..a96aa12c08bb 100644 --- a/sys/modules/mac_test/Makefile +++ b/sys/modules/mac_test/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/security/mac_test KMOD= mac_test SRCS= vnode_if.h \ mac_test.c .include diff --git a/sys/modules/mac_veriexec/Makefile b/sys/modules/mac_veriexec/Makefile index 7ec061b07528..a165daeec043 100644 --- a/sys/modules/mac_veriexec/Makefile +++ b/sys/modules/mac_veriexec/Makefile @@ -1,40 +1,39 @@ -# $FreeBSD$ .PATH: ${.PARSEDIR:H:H}/security/mac_veriexec KMOD = mac_veriexec SRCS = \ bus_if.h \ device_if.h \ vnode_if.h SRCS += \ opt_capsicum.h \ opt_global.h \ opt_mac.h \ opt_veriexec.h SRCS += \ mac_veriexec.c \ veriexec_fingerprint.c \ veriexec_metadata.c EXPORT_SYMS+= ve_mutex \ mac_veriexec_in_state \ mac_veriexec_get_executable_flags .if defined(KERNBUILDDIR) MKDEP= -include ${KERNBUILDDIR}/opt_global.h .else CFLAGS+= -include opt_global.h MKDEP= -include opt_global.h opt_mac.h: echo "#define MAC_DEBUG 1" >> ${.TARGET} opt_global.h: echo "#define MAC 1" > ${.TARGET} .endif .ifndef WITHOUT_VERIEXEC_DEBUG CFLAGS+= -DVERIFIED_EXEC_DEBUG .endif .include diff --git a/sys/modules/mac_veriexec_sha1/Makefile b/sys/modules/mac_veriexec_sha1/Makefile index f4360de801b2..a8c16f179b8f 100644 --- a/sys/modules/mac_veriexec_sha1/Makefile +++ b/sys/modules/mac_veriexec_sha1/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${.PARSEDIR:H:H}/security/mac_veriexec .PATH: ${.PARSEDIR:H:H}/crypto KMOD= mac_veriexec_sha1 SRCS= mac_veriexec_sha1.c sha1.c .include diff --git a/sys/modules/mac_veriexec_sha256/Makefile b/sys/modules/mac_veriexec_sha256/Makefile index 74f164204172..c09b0ac29548 100644 --- a/sys/modules/mac_veriexec_sha256/Makefile +++ b/sys/modules/mac_veriexec_sha256/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${.CURDIR}/../../security/mac_veriexec .PATH: ${.CURDIR}/../../crypto/sha2 KMOD= mac_veriexec_sha256 SRCS= mac_veriexec_sha256.c sha256c.c .include diff --git a/sys/modules/mac_veriexec_sha384/Makefile b/sys/modules/mac_veriexec_sha384/Makefile index 7f622b293f12..55ecabbac735 100644 --- a/sys/modules/mac_veriexec_sha384/Makefile +++ b/sys/modules/mac_veriexec_sha384/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${.CURDIR}/../../security/mac_veriexec .PATH: ${.CURDIR}/../../crypto/sha2 KMOD= mac_veriexec_sha384 SRCS= mac_veriexec_sha384.c sha512c.c .include diff --git a/sys/modules/mac_veriexec_sha512/Makefile b/sys/modules/mac_veriexec_sha512/Makefile index e0ed6f40c4c7..f201ea696d37 100644 --- a/sys/modules/mac_veriexec_sha512/Makefile +++ b/sys/modules/mac_veriexec_sha512/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${.CURDIR}/../../security/mac_veriexec .PATH: ${.CURDIR}/../../crypto/sha2 KMOD= mac_veriexec_sha512 SRCS= mac_veriexec_sha512.c sha512c.c .include diff --git a/sys/modules/malo/Makefile b/sys/modules/malo/Makefile index 6173fc59b8b6..628d30aa0642 100644 --- a/sys/modules/malo/Makefile +++ b/sys/modules/malo/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/malo KMOD = if_malo SRCS = if_malo.c if_malohal.c if_malo_pci.c SRCS+= device_if.h bus_if.h pci_if.h opt_malo.h opt_malo.h: echo '#define MALO_DEBUG 1'> $@ .include diff --git a/sys/modules/mana/Makefile b/sys/modules/mana/Makefile index 3122c066e948..6b37c209e9c7 100644 --- a/sys/modules/mana/Makefile +++ b/sys/modules/mana/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mana KMOD = if_mana SRCS = gdma_main.c mana_sysctl.c shm_channel.c SRCS += mana_en.c gdma_util.c hw_channel.c SRCS += device_if.h bus_if.h pci_if.h CFLAGS += -I${SRCTOP}/sys/dev/mana .include diff --git a/sys/modules/md/Makefile b/sys/modules/md/Makefile index 925798be0277..2473e3715bd2 100644 --- a/sys/modules/md/Makefile +++ b/sys/modules/md/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/md KMOD= geom_md SRCS= md.c opt_md.h opt_geom.h opt_rootdevname.h vnode_if.h .include diff --git a/sys/modules/mdio/Makefile b/sys/modules/mdio/Makefile index fb388e23c03c..6decada89386 100644 --- a/sys/modules/mdio/Makefile +++ b/sys/modules/mdio/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mdio KMOD= mdio SRCS= mdio.c SRCS+= mdio_if.c mdio_if.h SRCS+= device_if.h bus_if.h .include diff --git a/sys/modules/mem/Makefile b/sys/modules/mem/Makefile index b31cb73b4e46..6ba998923d0d 100644 --- a/sys/modules/mem/Makefile +++ b/sys/modules/mem/Makefile @@ -1,20 +1,19 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mem .PATH: ${SRCTOP}/sys/${MACHINE}/${MACHINE} .PATH: ${SRCTOP}/sys/${MACHINE_CPUARCH}/${MACHINE_CPUARCH} .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" .PATH: ${SRCTOP}/sys/x86/x86 .endif KMOD= mem SRCS= mem.c memdev.c memutil.c .if ${MACHINE_CPUARCH} == "i386" SRCS+= x86_mem.c k6_mem.c .endif .if ${MACHINE_CPUARCH} == "amd64" SRCS+= x86_mem.c .endif SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/mfi/Makefile b/sys/modules/mfi/Makefile index 7a17f9b0f4fa..a7541ab85e2f 100644 --- a/sys/modules/mfi/Makefile +++ b/sys/modules/mfi/Makefile @@ -1,20 +1,19 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mfi SUBDIR= mfip .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" SUBDIR+= mfi_linux .endif KMOD= mfi SRCS= mfi.c mfi_pci.c mfi_disk.c mfi_debug.c mfi_syspd.c mfi_tbolt.c SRCS+= opt_mfi.h opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h #CFLAGS += -DMFI_DEBUG EXPORT_SYMS= YES .include diff --git a/sys/modules/mfi/mfi_linux/Makefile b/sys/modules/mfi/mfi_linux/Makefile index cbc9a97b82b9..f685ea699a3b 100644 --- a/sys/modules/mfi/mfi_linux/Makefile +++ b/sys/modules/mfi/mfi_linux/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mfi KMOD= mfi_linux SRCS= mfi_linux.c .include diff --git a/sys/modules/mfi/mfip/Makefile b/sys/modules/mfi/mfip/Makefile index 13b6b19367c9..c3f8111dd60f 100644 --- a/sys/modules/mfi/mfip/Makefile +++ b/sys/modules/mfi/mfip/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mfi KMOD= mfip SRCS= mfi_cam.c SRCS+= opt_mfi.h opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/mgb/Makefile b/sys/modules/mgb/Makefile index 74b5c058a762..e45ac034a1ab 100644 --- a/sys/modules/mgb/Makefile +++ b/sys/modules/mgb/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mgb KMOD = if_mgb SRCS = if_mgb.c SRCS += device_if.h bus_if.h pci_if.h SRCS += ifdi_if.h opt_platform.h SRCS += miibus_if.h #CFLAGS+= -DIFLIB .include diff --git a/sys/modules/mii/Makefile b/sys/modules/mii/Makefile index f53419974130..2413959cc67f 100644 --- a/sys/modules/mii/Makefile +++ b/sys/modules/mii/Makefile @@ -1,24 +1,23 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mii KMOD= miibus SRCS= acphy.c amphy.c atphy.c axphy.c bmtphy.c brgphy.c SRCS+= ciphy.c dp83822phy.c dp83867phy.c SRCS+= e1000phy.c gentbi.c icsphy.c ip1000phy.c jmphy.c lxtphy.c SRCS+= miibus_if.c mii.c mii_bitbang.c mii_physubr.c SRCS+= nsgphy.c nsphy.c nsphyter.c pnaphy.c qsphy.c SRCS+= rdcphy.c rgephy.c rlphy.c smcphy.c SRCS+= smscphy.c tdkphy.c truephy.c SRCS+= ukphy.c ukphy_subr.c SRCS+= vscphy.c xmphy.c SRCS+= bus_if.h device_if.h miibus_if.h miidevs.h opt_platform.h pci_if.h .if !empty(OPT_FDT) SRCS+= micphy.c mii_fdt.c SRCS+= ofw_bus_if.h .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/mlx/Makefile b/sys/modules/mlx/Makefile index 5d6fea3b92c8..0f19a48f7332 100644 --- a/sys/modules/mlx/Makefile +++ b/sys/modules/mlx/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlx KMOD= mlx SRCS= mlx.c mlx_pci.c mlx_disk.c device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/mlx4/Makefile b/sys/modules/mlx4/Makefile index 6cffacef5d7a..3560b8a6e872 100644 --- a/sys/modules/mlx4/Makefile +++ b/sys/modules/mlx4/Makefile @@ -1,37 +1,36 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlx4/mlx4_core KMOD= mlx4 SRCS= \ mlx4_alloc.c \ mlx4_catas.c \ mlx4_cmd.c \ mlx4_cq.c \ mlx4_eq.c \ mlx4_fw.c \ mlx4_fw_qos.c \ mlx4_icm.c \ mlx4_intf.c \ mlx4_main.c \ mlx4_mcg.c \ mlx4_mr.c \ mlx4_pd.c \ mlx4_port.c \ mlx4_profile.c \ mlx4_qp.c \ mlx4_reset.c \ mlx4_sense.c \ mlx4_srq.c \ mlx4_resource_tracker.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} EXPORT_SYMS= YES .include CFLAGS+= -Wno-cast-qual -Wno-pointer-arith diff --git a/sys/modules/mlx4en/Makefile b/sys/modules/mlx4en/Makefile index 34f24959b54b..7eef5a790861 100644 --- a/sys/modules/mlx4en/Makefile +++ b/sys/modules/mlx4en/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlx4/mlx4_en KMOD= mlx4en SRCS= \ mlx4_en_cq.c \ mlx4_en_main.c \ mlx4_en_netdev.c \ mlx4_en_port.c \ mlx4_en_resources.c \ mlx4_en_rx.c \ mlx4_en_tx.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= ${LINUXKPI_INCLUDES} .include diff --git a/sys/modules/mlx4ib/Makefile b/sys/modules/mlx4ib/Makefile index 2b0158e02544..f24a45b0586e 100644 --- a/sys/modules/mlx4ib/Makefile +++ b/sys/modules/mlx4ib/Makefile @@ -1,30 +1,29 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlx4/mlx4_ib KMOD= mlx4ib SRCS= \ mlx4_ib_alias_GUID.c \ mlx4_ib_mcg.c \ mlx4_ib_sysfs.c \ mlx4_ib_ah.c \ mlx4_ib_cq.c \ mlx4_ib_doorbell.c \ mlx4_ib_mad.c \ mlx4_ib_main.c \ mlx4_ib_mr.c \ mlx4_ib_qp.c \ mlx4_ib_srq.c \ mlx4_ib_wc.c \ mlx4_ib_cm.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM CFLAGS+= -DINET6 -DINET .include CFLAGS+= -Wno-cast-qual -Wno-pointer-arith diff --git a/sys/modules/mlx5/Makefile b/sys/modules/mlx5/Makefile index 263199f3d595..10e11d6c8594 100644 --- a/sys/modules/mlx5/Makefile +++ b/sys/modules/mlx5/Makefile @@ -1,60 +1,59 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_core \ ${SRCTOP}/sys/dev/mlx5/mlx5_lib \ ${SRCTOP}/sys/dev/mlx5/mlx5_fpga KMOD=mlx5 SRCS= \ mlx5_alloc.c \ mlx5_cmd.c \ mlx5_cq.c \ mlx5_diag_cnt.c \ mlx5_diagnostics.c \ mlx5_eq.c \ mlx5_eswitch.c \ mlx5_fs_cmd.c \ mlx5_fs_tcp.c \ mlx5_fs_tree.c \ mlx5_fw.c \ mlx5_fwdump.c \ mlx5_health.c \ mlx5_mad.c \ mlx5_main.c \ mlx5_mcg.c \ mlx5_mpfs.c \ mlx5_mr.c \ mlx5_pagealloc.c \ mlx5_pd.c \ mlx5_port.c \ mlx5_qp.c \ mlx5_rl.c \ mlx5_srq.c \ mlx5_tls.c \ mlx5_transobj.c \ mlx5_uar.c \ mlx5_vport.c \ mlx5_vsc.c \ mlx5_wq.c \ mlx5_gid.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} .if defined(CONFIG_BUILD_FPGA) SRCS+= \ mlx5fpga_cmd.c \ mlx5fpga_core.c \ mlx5fpga_sdk.c \ mlx5fpga_trans.c \ mlx5fpga_xfer.c \ mlx5fpga_ipsec.c .endif EXPORT_SYMS= YES .include CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} diff --git a/sys/modules/mlx5en/Makefile b/sys/modules/mlx5en/Makefile index ade9f75c12d8..03bf174e33b0 100644 --- a/sys/modules/mlx5en/Makefile +++ b/sys/modules/mlx5en/Makefile @@ -1,39 +1,38 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_en KMOD=mlx5en SRCS= \ mlx5_en_dim.c \ mlx5_en_ethtool.c \ mlx5_en_main.c \ mlx5_en_tx.c \ mlx5_en_flow_table.c \ mlx5_en_hw_tls.c \ mlx5_en_hw_tls_rx.c \ mlx5_en_iq.c \ mlx5_en_rx.c \ mlx5_en_rl.c \ mlx5_en_txrx.c \ mlx5_en_port_buffer.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h opt_kern_tls.h .if defined(HAVE_PER_CQ_EVENT_PACKET) CFLAGS+= -DHAVE_PER_CQ_EVENT_PACKET .endif .if defined(HAVE_TCP_LRO_RX) CFLAGS+= -DHAVE_TCP_LRO_RX .endif .if defined(CONFIG_BUILD_FPGA) CFLAGS+= -DCONFIG_MLX5_FPGA .endif CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} .include CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} diff --git a/sys/modules/mlx5fpga_tools/Makefile b/sys/modules/mlx5fpga_tools/Makefile index 0e8c29caf9de..1c85feacfe66 100644 --- a/sys/modules/mlx5fpga_tools/Makefile +++ b/sys/modules/mlx5fpga_tools/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_fpga_tools KMOD=mlx5fpga_tools SRCS= \ mlx5fpga_tools_main.c \ mlx5fpga_tools_char.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} .include CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} CFLAGS+= -DCONFIG_MLX5_FPGA -DCONFIG_MLX5_ACCEL diff --git a/sys/modules/mlx5ib/Makefile b/sys/modules/mlx5ib/Makefile index b9ed8076b54d..2175e02127a3 100644 --- a/sys/modules/mlx5ib/Makefile +++ b/sys/modules/mlx5ib/Makefile @@ -1,33 +1,32 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_ib KMOD=mlx5ib SRCS= \ mlx5_ib_ah.c \ mlx5_ib_cong.c \ mlx5_ib_cq.c \ mlx5_ib_devx.c \ mlx5_ib_doorbell.c \ mlx5_ib_gsi.c \ mlx5_ib_mad.c \ mlx5_ib_main.c \ mlx5_ib_mem.c \ mlx5_ib_mr.c \ mlx5_ib_qp.c \ mlx5_ib_srq.c \ mlx5_ib_virt.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h opt_ratelimit.h opt_rss.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM .if defined(CONFIG_BUILD_FPGA) CFLAGS+= -DCONFIG_MLX5_FPGA .endif .include CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} diff --git a/sys/modules/mlxfw/Makefile b/sys/modules/mlxfw/Makefile index 899f58df8f13..ae7bd04b1a0b 100644 --- a/sys/modules/mlxfw/Makefile +++ b/sys/modules/mlxfw/Makefile @@ -1,20 +1,19 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mlxfw KMOD=mlxfw SRCS= \ mlxfw_fsm.c \ mlxfw_mfa2.c \ mlxfw_mfa2_tlv_multi.c SRCS+= ${LINUXKPI_GENSRCS} CFLAGS+= \ -I${SRCTOP}/sys/ofed/include \ -I${SRCTOP}/sys/ofed/include/uapi \ ${LINUXKPI_INCLUDES} \ -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \ -I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz EXPORT_SYMS= YES .include diff --git a/sys/modules/mmc/Makefile b/sys/modules/mmc/Makefile index 3fee6e6393b7..b626eba0a102 100644 --- a/sys/modules/mmc/Makefile +++ b/sys/modules/mmc/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mmc KMOD= mmc SRCS= bus_if.h device_if.h mmc_subr.c mmc.c mmcbr_if.h mmcbus_if.h .include diff --git a/sys/modules/mmcnull/Makefile b/sys/modules/mmcnull/Makefile index 526c3446fee6..0aeea797444a 100644 --- a/sys/modules/mmcnull/Makefile +++ b/sys/modules/mmcnull/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${.CURDIR}/../../dev/mmcnull KMOD= mmcnull SRCS= mmcnull.c device_if.h bus_if.h .include diff --git a/sys/modules/mmcsd/Makefile b/sys/modules/mmcsd/Makefile index 4294c593b755..4fdeaf88024e 100644 --- a/sys/modules/mmcsd/Makefile +++ b/sys/modules/mmcsd/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mmc KMOD= mmcsd SRCS= bus_if.h device_if.h mmcbr_if.h mmcbus_if.h mmcsd.c .include diff --git a/sys/modules/mpi3mr/Makefile b/sys/modules/mpi3mr/Makefile index 45b641f828c0..3f1f63a94ac3 100644 --- a/sys/modules/mpi3mr/Makefile +++ b/sys/modules/mpi3mr/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mpi3mr KMOD= mpi3mr SRCS= mpi3mr_pci.c mpi3mr.c mpi3mr_cam.c mpi3mr_app.c SRCS+= opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h .include CWARNFLAGS.mpi3mr_sas.c= ${NO_WUNNEEDED_INTERNAL_DECL} CWARNFLAGS.mpi3mr_mapping.c= ${NO_WSOMETIMES_UNINITIALIZED} diff --git a/sys/modules/mpr/Makefile b/sys/modules/mpr/Makefile index 09830c41a86e..f2ca7bb7e1b3 100644 --- a/sys/modules/mpr/Makefile +++ b/sys/modules/mpr/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mpr KMOD= mpr SRCS= mpr_pci.c mpr.c mpr_sas.c mpr_table.c mpr_user.c SRCS+= mpr_config.c mpr_mapping.c mpr_sas_lsi.c SRCS+= opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h #CFLAGS += -DMPR_DEBUG .include CWARNFLAGS.mpr_sas.c= ${NO_WUNNEEDED_INTERNAL_DECL} # XXX Work around clang warning, until maintainer approves fix. CWARNFLAGS.mpr_mapping.c= ${NO_WSOMETIMES_UNINITIALIZED} diff --git a/sys/modules/mps/Makefile b/sys/modules/mps/Makefile index 85f450c1defc..af844fbe1a2b 100644 --- a/sys/modules/mps/Makefile +++ b/sys/modules/mps/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mps KMOD= mps SRCS= mps_pci.c mps.c mps_sas.c mps_table.c mps_user.c SRCS+= mps_config.c mps_mapping.c mps_sas_lsi.c SRCS+= opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h #CFLAGS += -DMPS_DEBUG .include CWARNFLAGS.mps_sas.c= ${NO_WUNNEEDED_INTERNAL_DECL} # XXX Work around clang warning, until maintainer approves fix. CWARNFLAGS.mps_mapping.c= ${NO_WSOMETIMES_UNINITIALIZED} diff --git a/sys/modules/mpt/Makefile b/sys/modules/mpt/Makefile index f07c95fe4e7e..9a6b5251ceed 100644 --- a/sys/modules/mpt/Makefile +++ b/sys/modules/mpt/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mpt KMOD= mpt SRCS= bus_if.h device_if.h pci_if.h \ opt_cam.h opt_ddb.h \ mpt.c mpt_cam.c mpt_debug.c mpt_pci.c mpt_raid.c mpt_user.c .include diff --git a/sys/modules/mqueue/Makefile b/sys/modules/mqueue/Makefile index 865a543d8c29..b929c6b84ad1 100644 --- a/sys/modules/mqueue/Makefile +++ b/sys/modules/mqueue/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= mqueuefs SRCS= uipc_mqueue.c \ vnode_if.h \ opt_posix.h opt_capsicum.h .include diff --git a/sys/modules/mrsas/Makefile b/sys/modules/mrsas/Makefile index 130a46a8ad5f..5704c3d0298f 100644 --- a/sys/modules/mrsas/Makefile +++ b/sys/modules/mrsas/Makefile @@ -1,28 +1,27 @@ # Makefile for mrsas driver -# $FreeBSD$ KMOD=mrsas .PATH: ${SRCTOP}/sys/dev/${KMOD} .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" SUBDIR+= mrsas_linux .endif SRCS=mrsas.c mrsas_cam.c mrsas_ioctl.c mrsas_fp.c SRCS+= device_if.h bus_if.h pci_if.h opt_cam.h opt_scsi.h #CFLAGS+= -MRSAS_DEBUG .include CFLAGS+= -fgnu89-inline .if ${MACHINE_ARCH} == "amd64" CFLAGS+= -DCOMPAT_FREEBSD32 .endif clean_cscope: rm -f cscope* cscope: clean_cscope /usr/local/bin/cscope -b *.[ch] cleanall: clean clean_cscope diff --git a/sys/modules/mrsas/mrsas_linux/Makefile b/sys/modules/mrsas/mrsas_linux/Makefile index 5bf79b24b7bb..5bfb4eaf9947 100644 --- a/sys/modules/mrsas/mrsas_linux/Makefile +++ b/sys/modules/mrsas/mrsas_linux/Makefile @@ -1,10 +1,9 @@ # Makefile for mrsas driver -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mrsas KMOD= mrsas_linux SRCS= mrsas_linux.c SRCS+= device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/msdosfs/Makefile b/sys/modules/msdosfs/Makefile index 3a0f478cfd57..794e7ba3d180 100644 --- a/sys/modules/msdosfs/Makefile +++ b/sys/modules/msdosfs/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/msdosfs KMOD= msdosfs SRCS= vnode_if.h \ msdosfs_conv.c msdosfs_denode.c msdosfs_fat.c \ msdosfs_lookup.c msdosfs_vfsops.c msdosfs_vnops.c EXPORT_SYMS= msdosfs_iconv .include diff --git a/sys/modules/msdosfs_iconv/Makefile b/sys/modules/msdosfs_iconv/Makefile index add92276e076..7bf6442b3122 100644 --- a/sys/modules/msdosfs_iconv/Makefile +++ b/sys/modules/msdosfs_iconv/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/msdosfs KMOD= msdosfs_iconv SRCS= msdosfs_iconv.c .include diff --git a/sys/modules/msk/Makefile b/sys/modules/msk/Makefile index f13524c91251..4e898a85b70a 100644 --- a/sys/modules/msk/Makefile +++ b/sys/modules/msk/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/msk KMOD= if_msk SRCS= if_msk.c device_if.h bus_if.h pci_if.h SRCS+= miibus_if.h opt_platform.h .include diff --git a/sys/modules/mt76/Makefile b/sys/modules/mt76/Makefile index 013219337952..3138ad3d5da1 100644 --- a/sys/modules/mt76/Makefile +++ b/sys/modules/mt76/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ SUBDIR= core SUBDIR+= mt7915 SUBDIR+= mt7921 .include diff --git a/sys/modules/mt76/Makefile.inc b/sys/modules/mt76/Makefile.inc index 5e3e05dab59c..f1aa69f1bc8e 100644 --- a/sys/modules/mt76/Makefile.inc +++ b/sys/modules/mt76/Makefile.inc @@ -1,30 +1,29 @@ -# $FreeBSD$ # Common information shared by all submodule builds. COMMONDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76 .PATH: ${COMMONDIR} WITH_CONFIG_PM= 0 WITH_DEBUGFS= 0 # Other SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_wlan.h opt_inet6.h opt_inet.h # Helpful after fresh imports. #CFLAGS+= -ferror-limit=0 .if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0 CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM} .endif .if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS} .endif CFLAGS+= -I${COMMONDIR} CFLAGS+= ${LINUXKPI_INCLUDES} # end diff --git a/sys/modules/mt76/core/Makefile b/sys/modules/mt76/core/Makefile index 52f5c1b20284..ac47d8dd8815 100644 --- a/sys/modules/mt76/core/Makefile +++ b/sys/modules/mt76/core/Makefile @@ -1,26 +1,25 @@ -# $FreeBSD$ KMOD= mt76_core # Basic stuff. SRCS= mac80211.c mmio.c util.c dma.c eeprom.c tx.c agg-rx.c mcu.c #SRCS+= trace.c # Bus stuff. SRCS+= pci.c #SRCS+= usb.c # usb_trace.c #SRCS+= sdio.c sdio_txrx.c # Connac-Lib stuff. SRCS+= mt76_connac_mac.c mt76_connac_mcu.c # MT76x02-Lib stuff (we don't need; that's for older chipsets not yet supported) .if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 SRCS+= debugfs.c .endif CFLAGS+= -DKBUILD_MODNAME='"mt76_core"' CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS} .include diff --git a/sys/modules/mt76/mt7915/Makefile b/sys/modules/mt76/mt7915/Makefile index d4bc68d53782..1cc587c163ee 100644 --- a/sys/modules/mt76/mt7915/Makefile +++ b/sys/modules/mt76/mt7915/Makefile @@ -1,24 +1,23 @@ -# $FreeBSD$ DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7915 .PATH: ${DEVDIR} KMOD= if_mt7915 # Common stuff. SRCS= init.c main.c mac.c mcu.c mmio.c eeprom.c SRCS+= pci.c dma.c # SOC+6E stuff. #SRCS+= soc.c .if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 SRCS+= debugfs.c CFLAGS+= -DCONFIG_MT7915_DEBUGFS=${WITH_DEBUGFS} .endif CFLAGS+= -DKBUILD_MODNAME='"mt7915"' CFLAGS+= -I${DEVDIR} .include diff --git a/sys/modules/mt76/mt7921/Makefile b/sys/modules/mt76/mt7921/Makefile index 25d5ef8e9da5..acf0b5a787e7 100644 --- a/sys/modules/mt76/mt7921/Makefile +++ b/sys/modules/mt76/mt7921/Makefile @@ -1,30 +1,29 @@ -# $FreeBSD$ DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7921 .PATH: ${DEVDIR} KMOD= if_mt7921 # Common stuff. SRCS= init.c main.c mac.c mcu.c #SRCS+= trace.c # PCI stuff. SRCS+= pci.c pci_mac.c pci_mcu.c dma.c # USB stuff. #SRCS+= usb.c usb_mac.c # SDIO stuff. #SRCS+= sdio.c sdio_mac.c sdio_mcu.c .if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 SRCS+= debugfs.c CFLAGS+= -DCONFIG_MT7921_DEBUGFS=${WITH_DEBUGFS} .endif CFLAGS+= -DKBUILD_MODNAME='"mt7921"' CFLAGS+= -I${DEVDIR} .include diff --git a/sys/modules/mthca/Makefile b/sys/modules/mthca/Makefile index d7807157f50c..a1996d03d30c 100644 --- a/sys/modules/mthca/Makefile +++ b/sys/modules/mthca/Makefile @@ -1,35 +1,34 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mthca KMOD= mthca SRCS= \ mthca_allocator.c \ mthca_av.c \ mthca_catas.c \ mthca_cmd.c \ mthca_cq.c \ mthca_eq.c \ mthca_mad.c \ mthca_main.c \ mthca_mcg.c \ mthca_memfree.c \ mthca_mr.c \ mthca_pd.c \ mthca_profile.c \ mthca_provider.c \ mthca_qp.c \ mthca_reset.c \ mthca_srq.c \ mthca_uar.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM CFLAGS+= -DINET6 -DINET .include CFLAGS+= -Wno-cast-qual -Wno-pointer-arith diff --git a/sys/modules/mvs/Makefile b/sys/modules/mvs/Makefile index 165d6c9edd3f..512a885a55c0 100644 --- a/sys/modules/mvs/Makefile +++ b/sys/modules/mvs/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mvs KMOD= mvs SRCS= mvs.c mvs_pci.c mvs.h mvs_if.c mvs_if.h device_if.h bus_if.h pci_if.h opt_cam.h .include diff --git a/sys/modules/mwl/Makefile b/sys/modules/mwl/Makefile index acbe75ca413c..3e00e6d49be7 100644 --- a/sys/modules/mwl/Makefile +++ b/sys/modules/mwl/Makefile @@ -1,41 +1,40 @@ # # Copyright (c) 2007-2009 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any # redistribution must be conditioned upon including a substantially # similar Disclaimer requirement for further binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/mwl KMOD= if_mwl SRCS= if_mwl.c if_mwl_pci.c mwlhal.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_mwl.h opt_wlan.h opt_mwl.h: echo '#define MWL_DEBUG 1'> $@ .include diff --git a/sys/modules/mwlfw/Makefile b/sys/modules/mwlfw/Makefile index 177ac5880d83..c4b9c046d098 100644 --- a/sys/modules/mwlfw/Makefile +++ b/sys/modules/mwlfw/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ KMOD= mw88W8363fw FIRMWS= mw88W8363.fw:mw88W8363fw mwlboot.fw:mwlboot CLEANFILES+= mw88W8363.fw mwlboot.fw mw88W8363.fw: ${SRCTOP}/sys/contrib/dev/mwl/mw88W8363.fw.uu uudecode -p ${.ALLSRC} > ${.TARGET} mwlboot.fw: ${SRCTOP}/sys/contrib/dev/mwl/mwlboot.fw.uu uudecode -p ${.ALLSRC} > ${.TARGET} .include diff --git a/sys/modules/mxge/Makefile b/sys/modules/mxge/Makefile index 45e763653e0b..358adf109d18 100644 --- a/sys/modules/mxge/Makefile +++ b/sys/modules/mxge/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ SUBDIR= mxge SUBDIR+=mxge_eth_z8e SUBDIR+=mxge_ethp_z8e SUBDIR+=mxge_rss_eth_z8e SUBDIR+=mxge_rss_ethp_z8e .include diff --git a/sys/modules/mxge/mxge/Makefile b/sys/modules/mxge/mxge/Makefile index a924aef52021..b1b079b41adc 100644 --- a/sys/modules/mxge/mxge/Makefile +++ b/sys/modules/mxge/mxge/Makefile @@ -1,8 +1,7 @@ -#$FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mxge KMOD= if_mxge SRCS= if_mxge.c device_if.h bus_if.h pci_if.h opt_inet.h opt_inet6.h .include diff --git a/sys/modules/mxge/mxge_eth_z8e/Makefile b/sys/modules/mxge/mxge_eth_z8e/Makefile index 6ee14187ab93..9870ff5f4e60 100644 --- a/sys/modules/mxge/mxge_eth_z8e/Makefile +++ b/sys/modules/mxge/mxge_eth_z8e/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mxge KMOD= mxge_eth_z8e SRCS= mxge_eth_z8e.c .include diff --git a/sys/modules/mxge/mxge_ethp_z8e/Makefile b/sys/modules/mxge/mxge_ethp_z8e/Makefile index d0f0f48bc338..28752de996f0 100644 --- a/sys/modules/mxge/mxge_ethp_z8e/Makefile +++ b/sys/modules/mxge/mxge_ethp_z8e/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mxge KMOD= mxge_ethp_z8e SRCS= mxge_ethp_z8e.c .include diff --git a/sys/modules/mxge/mxge_rss_eth_z8e/Makefile b/sys/modules/mxge/mxge_rss_eth_z8e/Makefile index 5cd4487738ab..90b88931bf0d 100644 --- a/sys/modules/mxge/mxge_rss_eth_z8e/Makefile +++ b/sys/modules/mxge/mxge_rss_eth_z8e/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mxge KMOD= mxge_rss_eth_z8e SRCS= mxge_rss_eth_z8e.c .include diff --git a/sys/modules/mxge/mxge_rss_ethp_z8e/Makefile b/sys/modules/mxge/mxge_rss_ethp_z8e/Makefile index a2a965d1d3cd..668d37273749 100644 --- a/sys/modules/mxge/mxge_rss_ethp_z8e/Makefile +++ b/sys/modules/mxge/mxge_rss_ethp_z8e/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mxge KMOD= mxge_rss_ethp_z8e SRCS= mxge_rss_ethp_z8e.c .include diff --git a/sys/modules/my/Makefile b/sys/modules/my/Makefile index 28ea8dbffc84..f3d192fbcc25 100644 --- a/sys/modules/my/Makefile +++ b/sys/modules/my/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/my KMOD= if_my SRCS= if_my.c device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/nctgpio/Makefile b/sys/modules/nctgpio/Makefile index 7ab56ee5e6d5..b48a11f1f899 100644 --- a/sys/modules/nctgpio/Makefile +++ b/sys/modules/nctgpio/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/nctgpio KMOD= nctgpio SRCS= nctgpio.c SRCS+= device_if.h bus_if.h isa_if.h gpio_if.h opt_platform.h .include diff --git a/sys/modules/ncthwm/Makefile b/sys/modules/ncthwm/Makefile index e04beccf1861..266a476b6b73 100644 --- a/sys/modules/ncthwm/Makefile +++ b/sys/modules/ncthwm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ncthwm KMOD= ncthwm SRCS= ncthwm.c SRCS+= device_if.h bus_if.h isa_if.h opt_platform.h .include diff --git a/sys/modules/neta/Makefile b/sys/modules/neta/Makefile index 3c59c55bc4dc..635b15c2d61e 100644 --- a/sys/modules/neta/Makefile +++ b/sys/modules/neta/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/neta CFLAGS+= -DFDT KMOD= if_mvneta SRCS= if_mvneta.c if_mvneta_fdt.c if_mvnetavar.h SRCS+= bus_if.h device_if.h mdio_if.h miibus_if.h ofw_bus_if.h clknode_if.h opt_platform.h .include diff --git a/sys/modules/netgraph/Makefile b/sys/modules/netgraph/Makefile index 252be4d2d8ec..94560d5c51d7 100644 --- a/sys/modules/netgraph/Makefile +++ b/sys/modules/netgraph/Makefile @@ -1,65 +1,64 @@ # $Whistle: Makefile,v 1.5 1999/01/24 06:48:37 archie Exp $ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" SUBDIR= async \ ${_bluetooth} \ bpf \ bridge \ car \ checksum \ cisco \ deflate \ device \ echo \ eiface \ etf \ ether \ ether_echo \ frame_relay \ gif \ gif_demux \ hole \ hub \ iface \ ip_input \ ipfw \ ksocket \ l2tp \ lmi \ macfilter \ ${_mppc} \ nat \ netflow \ netgraph \ one2many \ patch \ pipe \ ppp \ pppoe \ pptpgre \ pred1 \ rfc1490 \ socket \ source \ split \ tag \ tcpmss \ tee \ tty \ UI \ vjc \ vlan \ vlan_rotate .if ${MK_BLUETOOTH} != "no" || defined(ALL_MODULES) _bluetooth= bluetooth .endif .if ${MK_CRYPT} != "no" && exists(${SYSDIR}/crypto/rc4/rc4.c) _mppc= mppc .endif .include diff --git a/sys/modules/netgraph/Makefile.inc b/sys/modules/netgraph/Makefile.inc index 0a25d0f8e817..99a84c395852 100644 --- a/sys/modules/netgraph/Makefile.inc +++ b/sys/modules/netgraph/Makefile.inc @@ -1,8 +1,7 @@ -# $FreeBSD$ # $Whistle: Makefile.inc,v 1.4 1999/01/19 23:46:16 archie Exp $ .PATH: ${SRCTOP}/sys/netgraph SRCS+= opt_netgraph.h .include "../Makefile.inc" diff --git a/sys/modules/netgraph/UI/Makefile b/sys/modules/netgraph/UI/Makefile index 413308c13812..725f1ee4db6f 100644 --- a/sys/modules/netgraph/UI/Makefile +++ b/sys/modules/netgraph/UI/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ KMOD= ng_UI SRCS= ng_UI.c .include diff --git a/sys/modules/netgraph/async/Makefile b/sys/modules/netgraph/async/Makefile index 921eabcf2727..e14bae855bce 100644 --- a/sys/modules/netgraph/async/Makefile +++ b/sys/modules/netgraph/async/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ KMOD= ng_async SRCS= ng_async.c .include diff --git a/sys/modules/netgraph/bluetooth/Makefile b/sys/modules/netgraph/bluetooth/Makefile index 4d353fd94f4b..2587dac65150 100644 --- a/sys/modules/netgraph/bluetooth/Makefile +++ b/sys/modules/netgraph/bluetooth/Makefile @@ -1,12 +1,11 @@ # $Id: Makefile,v 1.2 2003/04/27 00:22:11 max Exp $ -# $FreeBSD$ SUBDIR= \ bluetooth \ hci \ l2cap \ socket \ ubt \ ubtbcmfw .include diff --git a/sys/modules/netgraph/bluetooth/Makefile.inc b/sys/modules/netgraph/bluetooth/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/netgraph/bluetooth/Makefile.inc +++ b/sys/modules/netgraph/bluetooth/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/netgraph/bluetooth/bluetooth/Makefile b/sys/modules/netgraph/bluetooth/bluetooth/Makefile index eb6c64b7ae65..b24bec15ca57 100644 --- a/sys/modules/netgraph/bluetooth/bluetooth/Makefile +++ b/sys/modules/netgraph/bluetooth/bluetooth/Makefile @@ -1,13 +1,12 @@ # $Id: Makefile,v 1.1 2002/11/24 20:39:57 max Exp $ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netgraph/bluetooth/common CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include KMOD= ng_bluetooth SRCS= ng_bluetooth.c EXPORT_SYMS= YES .include diff --git a/sys/modules/netgraph/bluetooth/hci/Makefile b/sys/modules/netgraph/bluetooth/hci/Makefile index 1e970c9a568e..7d648106a393 100644 --- a/sys/modules/netgraph/bluetooth/hci/Makefile +++ b/sys/modules/netgraph/bluetooth/hci/Makefile @@ -1,13 +1,12 @@ # $Id: Makefile,v 1.1 2002/11/24 20:40:05 max Exp $ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netgraph/bluetooth/hci CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include \ -I${SRCTOP}/sys/netgraph/bluetooth/hci KMOD= ng_hci SRCS= ng_hci_main.c ng_hci_cmds.c ng_hci_evnt.c \ ng_hci_ulpi.c ng_hci_misc.c .include diff --git a/sys/modules/netgraph/bluetooth/l2cap/Makefile b/sys/modules/netgraph/bluetooth/l2cap/Makefile index 03ee080d01ee..2008e953a108 100644 --- a/sys/modules/netgraph/bluetooth/l2cap/Makefile +++ b/sys/modules/netgraph/bluetooth/l2cap/Makefile @@ -1,13 +1,12 @@ # $Id: Makefile,v 1.1 2002/11/24 20:40:11 max Exp $ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netgraph/bluetooth/l2cap CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include \ -I${SRCTOP}/sys/netgraph/bluetooth/l2cap KMOD= ng_l2cap SRCS= ng_l2cap_main.c ng_l2cap_cmds.c ng_l2cap_evnt.c \ ng_l2cap_ulpi.c ng_l2cap_llpi.c ng_l2cap_misc.c .include diff --git a/sys/modules/netgraph/bluetooth/socket/Makefile b/sys/modules/netgraph/bluetooth/socket/Makefile index 1b0e913b1cf8..2abfdc8b9d86 100644 --- a/sys/modules/netgraph/bluetooth/socket/Makefile +++ b/sys/modules/netgraph/bluetooth/socket/Makefile @@ -1,18 +1,17 @@ # $Id: Makefile,v 1.2 2003/01/12 23:37:31 max Exp $ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netgraph/bluetooth/socket CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include KMOD= ng_btsocket SRCS= ng_btsocket.c \ ng_btsocket_hci_raw.c \ ng_btsocket_l2cap_raw.c \ ng_btsocket_l2cap.c \ ng_btsocket_rfcomm.c \ ng_btsocket_sco.c EXPORT_SYMS= YES .include diff --git a/sys/modules/netgraph/bluetooth/ubt/Makefile b/sys/modules/netgraph/bluetooth/ubt/Makefile index fb5a060a20d1..6ef7da5fbfb2 100644 --- a/sys/modules/netgraph/bluetooth/ubt/Makefile +++ b/sys/modules/netgraph/bluetooth/ubt/Makefile @@ -1,13 +1,12 @@ # $Id: Makefile,v 1.2 2003/03/22 23:44:34 max Exp $ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netgraph/bluetooth/drivers/ubt CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include \ -I${SRCTOP}/sys/netgraph/bluetooth/drivers/ubt KMOD= ng_ubt SRCS= ng_ubt.c ng_ubt_intel.c opt_bus.h opt_usb.h device_if.h \ bus_if.h usb_if.h usbdevs.h .include diff --git a/sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile b/sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile index 19a00ba504aa..1387bcc5a875 100644 --- a/sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile +++ b/sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile @@ -1,13 +1,12 @@ # $Id: Makefile,v 1.1 2003/04/27 00:22:12 max Exp $ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netgraph/bluetooth/drivers/ubtbcmfw CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include \ -I${SRCTOP}/sys/netgraph/bluetooth/drivers/ubtbcmfw KMOD= ubtbcmfw SRCS= ubtbcmfw.c opt_bus.h opt_usb.h device_if.h bus_if.h \ usb_if.h vnode_if.h usbdevs.h .include diff --git a/sys/modules/netgraph/bpf/Makefile b/sys/modules/netgraph/bpf/Makefile index 3fcc4acf4fe1..ec77a9af604e 100644 --- a/sys/modules/netgraph/bpf/Makefile +++ b/sys/modules/netgraph/bpf/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.1 1999/12/03 01:44:28 archie Exp $ .PATH: ${SRCTOP}/sys/net KMOD= ng_bpf SRCS= opt_bpf.h ng_bpf.c bpf_filter.c .include diff --git a/sys/modules/netgraph/bridge/Makefile b/sys/modules/netgraph/bridge/Makefile index 318142900c91..77ed20d85ce9 100644 --- a/sys/modules/netgraph/bridge/Makefile +++ b/sys/modules/netgraph/bridge/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_bridge SRCS= ng_bridge.c .include diff --git a/sys/modules/netgraph/car/Makefile b/sys/modules/netgraph/car/Makefile index 915a28bbdfdb..b3ca9ab9d3b4 100644 --- a/sys/modules/netgraph/car/Makefile +++ b/sys/modules/netgraph/car/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_car SRCS= ng_car.c .include diff --git a/sys/modules/netgraph/checksum/Makefile b/sys/modules/netgraph/checksum/Makefile index 4aa64c70e5c6..4b41bce3bc58 100644 --- a/sys/modules/netgraph/checksum/Makefile +++ b/sys/modules/netgraph/checksum/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" KMOD= ng_checksum SRCS= ng_checksum.c opt_inet.h opt_inet6.h .include diff --git a/sys/modules/netgraph/cisco/Makefile b/sys/modules/netgraph/cisco/Makefile index 2e3000dd3bf5..4f14df40cca0 100644 --- a/sys/modules/netgraph/cisco/Makefile +++ b/sys/modules/netgraph/cisco/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ KMOD= ng_cisco SRCS= ng_cisco.c .include diff --git a/sys/modules/netgraph/deflate/Makefile b/sys/modules/netgraph/deflate/Makefile index 607d6d3cb776..b6f505fc8b8d 100644 --- a/sys/modules/netgraph/deflate/Makefile +++ b/sys/modules/netgraph/deflate/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_deflate SRCS= ng_deflate.c .include diff --git a/sys/modules/netgraph/device/Makefile b/sys/modules/netgraph/device/Makefile index 92eaa9807ae3..23be18bd6c18 100644 --- a/sys/modules/netgraph/device/Makefile +++ b/sys/modules/netgraph/device/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ KMOD= ng_device SRCS= ng_device.c SRCS+= device_if.h vnode_if.h .include diff --git a/sys/modules/netgraph/echo/Makefile b/sys/modules/netgraph/echo/Makefile index d7cce8d461ef..f84a17d7a32b 100644 --- a/sys/modules/netgraph/echo/Makefile +++ b/sys/modules/netgraph/echo/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ KMOD= ng_echo SRCS= ng_echo.c .include diff --git a/sys/modules/netgraph/eiface/Makefile b/sys/modules/netgraph/eiface/Makefile index 6e8b800c8ec4..5c7b4fe46b34 100644 --- a/sys/modules/netgraph/eiface/Makefile +++ b/sys/modules/netgraph/eiface/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_eiface SRCS= ng_eiface.c .include diff --git a/sys/modules/netgraph/etf/Makefile b/sys/modules/netgraph/etf/Makefile index d807bc91c848..2bec0d6b2bf0 100644 --- a/sys/modules/netgraph/etf/Makefile +++ b/sys/modules/netgraph/etf/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # Ethertype filter KMOD= ng_etf SRCS= ng_etf.c .include diff --git a/sys/modules/netgraph/ether/Makefile b/sys/modules/netgraph/ether/Makefile index 7a3950edae75..7bfa7b1c0630 100644 --- a/sys/modules/netgraph/ether/Makefile +++ b/sys/modules/netgraph/ether/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_ether SRCS= ng_ether.c .include diff --git a/sys/modules/netgraph/ether_echo/Makefile b/sys/modules/netgraph/ether_echo/Makefile index 92dc665662a0..b8a2bcb555ff 100644 --- a/sys/modules/netgraph/ether_echo/Makefile +++ b/sys/modules/netgraph/ether_echo/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ KMOD= ng_ether_echo SRCS= ng_ether_echo.c .include diff --git a/sys/modules/netgraph/frame_relay/Makefile b/sys/modules/netgraph/frame_relay/Makefile index 81a2a96aeeb9..9a7e21cad64c 100644 --- a/sys/modules/netgraph/frame_relay/Makefile +++ b/sys/modules/netgraph/frame_relay/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.1 1999/01/19 19:39:21 archie Exp $ KMOD= ng_frame_relay SRCS= ng_frame_relay.c .include diff --git a/sys/modules/netgraph/gif/Makefile b/sys/modules/netgraph/gif/Makefile index ecfb7d73d089..e7897492fa2c 100644 --- a/sys/modules/netgraph/gif/Makefile +++ b/sys/modules/netgraph/gif/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_gif SRCS= ng_gif.c opt_inet.h opt_inet6.h .include diff --git a/sys/modules/netgraph/gif_demux/Makefile b/sys/modules/netgraph/gif_demux/Makefile index 56de5adf8ed0..d95bf3d2d66e 100644 --- a/sys/modules/netgraph/gif_demux/Makefile +++ b/sys/modules/netgraph/gif_demux/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_gif_demux SRCS= ng_gif_demux.c .include diff --git a/sys/modules/netgraph/hole/Makefile b/sys/modules/netgraph/hole/Makefile index c7502bfccf85..3259e37dceb7 100644 --- a/sys/modules/netgraph/hole/Makefile +++ b/sys/modules/netgraph/hole/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:21 archie Exp $ KMOD= ng_hole SRCS= ng_hole.c .include diff --git a/sys/modules/netgraph/hub/Makefile b/sys/modules/netgraph/hub/Makefile index 9ebb54de8f2c..5829c1609b32 100644 --- a/sys/modules/netgraph/hub/Makefile +++ b/sys/modules/netgraph/hub/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_hub SRCS= ng_hub.c .include diff --git a/sys/modules/netgraph/iface/Makefile b/sys/modules/netgraph/iface/Makefile index 8b50a3c4a46f..78a9e0cfcf08 100644 --- a/sys/modules/netgraph/iface/Makefile +++ b/sys/modules/netgraph/iface/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:21 archie Exp $ KMOD= ng_iface SRCS= ng_iface.c opt_inet.h opt_inet6.h .include diff --git a/sys/modules/netgraph/ip_input/Makefile b/sys/modules/netgraph/ip_input/Makefile index 7a40c45c2dc8..7aa3009ee8c7 100644 --- a/sys/modules/netgraph/ip_input/Makefile +++ b/sys/modules/netgraph/ip_input/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_ip_input SRCS= ng_ip_input.c .include diff --git a/sys/modules/netgraph/ipfw/Makefile b/sys/modules/netgraph/ipfw/Makefile index c51546bdb311..bdc23e7039ea 100644 --- a/sys/modules/netgraph/ipfw/Makefile +++ b/sys/modules/netgraph/ipfw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_ipfw SRCS= ng_ipfw.c opt_inet.h opt_inet6.h .include diff --git a/sys/modules/netgraph/ksocket/Makefile b/sys/modules/netgraph/ksocket/Makefile index f8fd73f87568..5e05eb1cc620 100644 --- a/sys/modules/netgraph/ksocket/Makefile +++ b/sys/modules/netgraph/ksocket/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_ksocket SRCS= ng_ksocket.c .include diff --git a/sys/modules/netgraph/l2tp/Makefile b/sys/modules/netgraph/l2tp/Makefile index 799437c4e70a..7ff128ef6bc7 100644 --- a/sys/modules/netgraph/l2tp/Makefile +++ b/sys/modules/netgraph/l2tp/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_l2tp SRCS= ng_l2tp.c .include diff --git a/sys/modules/netgraph/lmi/Makefile b/sys/modules/netgraph/lmi/Makefile index e1b08876d1b1..cba330b1626c 100644 --- a/sys/modules/netgraph/lmi/Makefile +++ b/sys/modules/netgraph/lmi/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.1 1999/01/19 19:39:21 archie Exp $ KMOD= ng_lmi SRCS= ng_lmi.c .include diff --git a/sys/modules/netgraph/macfilter/Makefile b/sys/modules/netgraph/macfilter/Makefile index c2b836c65157..c52a66dc0c2a 100644 --- a/sys/modules/netgraph/macfilter/Makefile +++ b/sys/modules/netgraph/macfilter/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ KMOD= ng_macfilter SRCS= ng_macfilter.c .include #CFLAGS+= -DNG_MACFILTER_DEBUG #CFLAGS+= -DNG_MACFILTER_DEBUG_RECVDATA diff --git a/sys/modules/netgraph/mppc/Makefile b/sys/modules/netgraph/mppc/Makefile index 0cd02f7df9c0..58110592aa14 100644 --- a/sys/modules/netgraph/mppc/Makefile +++ b/sys/modules/netgraph/mppc/Makefile @@ -1,31 +1,30 @@ # $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $ -# $FreeBSD$ KMOD= ng_mppc SRCS= ng_mppc.c opt_netgraph.h NETGRAPH_MPPC_COMPRESSION?= 1 NETGRAPH_MPPC_ENCRYPTION?= 1 .if ${NETGRAPH_MPPC_COMPRESSION} > 0 .PATH: ${SRCTOP}/sys/net SRCS+= mppcc.c mppcd.c .endif .if ${NETGRAPH_MPPC_ENCRYPTION} > 0 .PATH: ${SRCTOP}/sys/crypto SRCS+= sha1.c .endif .if !defined(KERNBUILDDIR) opt_netgraph.h: :> ${.TARGET} .if ${NETGRAPH_MPPC_COMPRESSION} > 0 echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET} .endif .if ${NETGRAPH_MPPC_ENCRYPTION} > 0 echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET} .endif .endif .include diff --git a/sys/modules/netgraph/nat/Makefile b/sys/modules/netgraph/nat/Makefile index f51bbe0b139f..4569cfddfbe5 100644 --- a/sys/modules/netgraph/nat/Makefile +++ b/sys/modules/netgraph/nat/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_nat SRCS= ng_nat.c .include diff --git a/sys/modules/netgraph/netflow/Makefile b/sys/modules/netgraph/netflow/Makefile index 35e8e6db7f36..c73e9ac41680 100644 --- a/sys/modules/netgraph/netflow/Makefile +++ b/sys/modules/netgraph/netflow/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ # # Author: Gleb Smirnoff # .PATH: ${SRCTOP}/sys/netgraph/netflow KMOD= ng_netflow SRCS= ng_netflow.c netflow.c netflow_v9.c opt_inet.h opt_inet6.h opt_route.h .include diff --git a/sys/modules/netgraph/netgraph/Makefile b/sys/modules/netgraph/netgraph/Makefile index 48adf319d718..7da7ce9d320a 100644 --- a/sys/modules/netgraph/netgraph/Makefile +++ b/sys/modules/netgraph/netgraph/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ KMOD= netgraph SRCS= ng_base.c ng_parse.c EXPORT_SYMS= YES .include diff --git a/sys/modules/netgraph/one2many/Makefile b/sys/modules/netgraph/one2many/Makefile index 74a0a6c6273e..07596a73114c 100644 --- a/sys/modules/netgraph/one2many/Makefile +++ b/sys/modules/netgraph/one2many/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_one2many SRCS= ng_one2many.c .include diff --git a/sys/modules/netgraph/patch/Makefile b/sys/modules/netgraph/patch/Makefile index b6c4741914db..ebbae47cf0ab 100644 --- a/sys/modules/netgraph/patch/Makefile +++ b/sys/modules/netgraph/patch/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_patch SRCS= ng_patch.c .include diff --git a/sys/modules/netgraph/pipe/Makefile b/sys/modules/netgraph/pipe/Makefile index 1e1728bd8a5d..68b5d1a7c1eb 100644 --- a/sys/modules/netgraph/pipe/Makefile +++ b/sys/modules/netgraph/pipe/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_pipe SRCS= ng_pipe.c .include diff --git a/sys/modules/netgraph/ppp/Makefile b/sys/modules/netgraph/ppp/Makefile index 6ce720ab9587..7ab2b8d90750 100644 --- a/sys/modules/netgraph/ppp/Makefile +++ b/sys/modules/netgraph/ppp/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.1 1999/01/24 02:52:12 archie Exp $ KMOD= ng_ppp SRCS= ng_ppp.c .include diff --git a/sys/modules/netgraph/pppoe/Makefile b/sys/modules/netgraph/pppoe/Makefile index 642dbdde2106..26aa4dd0fa6d 100644 --- a/sys/modules/netgraph/pppoe/Makefile +++ b/sys/modules/netgraph/pppoe/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.1 1999/01/19 19:39:21 archie Exp $ KMOD= ng_pppoe SRCS= ng_pppoe.c .include diff --git a/sys/modules/netgraph/pptpgre/Makefile b/sys/modules/netgraph/pptpgre/Makefile index 34cbbf6e2867..75931e902feb 100644 --- a/sys/modules/netgraph/pptpgre/Makefile +++ b/sys/modules/netgraph/pptpgre/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.1 1999/11/29 23:14:33 archie Exp $ KMOD= ng_pptpgre SRCS= ng_pptpgre.c .include diff --git a/sys/modules/netgraph/pred1/Makefile b/sys/modules/netgraph/pred1/Makefile index a3ecec9c6cc6..a4c95fdbb97e 100644 --- a/sys/modules/netgraph/pred1/Makefile +++ b/sys/modules/netgraph/pred1/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_pred1 SRCS= ng_pred1.c .include diff --git a/sys/modules/netgraph/rfc1490/Makefile b/sys/modules/netgraph/rfc1490/Makefile index 6ba065345129..77f22bb449bc 100644 --- a/sys/modules/netgraph/rfc1490/Makefile +++ b/sys/modules/netgraph/rfc1490/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ KMOD= ng_rfc1490 SRCS= ng_rfc1490.c .include diff --git a/sys/modules/netgraph/sample/Makefile b/sys/modules/netgraph/sample/Makefile index 701752662ed5..d675a8b84441 100644 --- a/sys/modules/netgraph/sample/Makefile +++ b/sys/modules/netgraph/sample/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_sample SRCS= ng_sample.c .include diff --git a/sys/modules/netgraph/socket/Makefile b/sys/modules/netgraph/socket/Makefile index a44ba0ff6330..9f91e9300579 100644 --- a/sys/modules/netgraph/socket/Makefile +++ b/sys/modules/netgraph/socket/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ KMOD= ng_socket SRCS= ng_socket.c .include diff --git a/sys/modules/netgraph/source/Makefile b/sys/modules/netgraph/source/Makefile index c70a6bb748f6..603a6b05bee1 100644 --- a/sys/modules/netgraph/source/Makefile +++ b/sys/modules/netgraph/source/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ KMOD= ng_source SRCS= ng_source.c # 4.x only #KMODDEPS= netgraph .include diff --git a/sys/modules/netgraph/split/Makefile b/sys/modules/netgraph/split/Makefile index 2eb4fa399b4a..9e1977d730c8 100644 --- a/sys/modules/netgraph/split/Makefile +++ b/sys/modules/netgraph/split/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # KMOD= ng_split SRCS= ng_split.c .include diff --git a/sys/modules/netgraph/tag/Makefile b/sys/modules/netgraph/tag/Makefile index 3862c18518b6..cdc19325d096 100644 --- a/sys/modules/netgraph/tag/Makefile +++ b/sys/modules/netgraph/tag/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_tag SRCS= ng_tag.c .include diff --git a/sys/modules/netgraph/tcpmss/Makefile b/sys/modules/netgraph/tcpmss/Makefile index 0379c88cec7d..3ed465b2dd2f 100644 --- a/sys/modules/netgraph/tcpmss/Makefile +++ b/sys/modules/netgraph/tcpmss/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_tcpmss SRCS= ng_tcpmss.c .include diff --git a/sys/modules/netgraph/tee/Makefile b/sys/modules/netgraph/tee/Makefile index 7d5115831a49..4d60bb9f8e4b 100644 --- a/sys/modules/netgraph/tee/Makefile +++ b/sys/modules/netgraph/tee/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ KMOD= ng_tee SRCS= ng_tee.c .include diff --git a/sys/modules/netgraph/tty/Makefile b/sys/modules/netgraph/tty/Makefile index 3f19a7cd4e41..383792a19f83 100644 --- a/sys/modules/netgraph/tty/Makefile +++ b/sys/modules/netgraph/tty/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ KMOD= ng_tty SRCS= ng_tty.c .include diff --git a/sys/modules/netgraph/vjc/Makefile b/sys/modules/netgraph/vjc/Makefile index 4e4d361c8efb..bd0bf6a0967c 100644 --- a/sys/modules/netgraph/vjc/Makefile +++ b/sys/modules/netgraph/vjc/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ # $Whistle: Makefile,v 1.1 1999/01/24 06:48:07 archie Exp $ .PATH: ${SRCTOP}/sys/net KMOD= ng_vjc SRCS= ng_vjc.c slcompress.c .include diff --git a/sys/modules/netgraph/vlan/Makefile b/sys/modules/netgraph/vlan/Makefile index e6cdf0dbbc16..2f6708de3747 100644 --- a/sys/modules/netgraph/vlan/Makefile +++ b/sys/modules/netgraph/vlan/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_vlan SRCS= ng_vlan.c .include diff --git a/sys/modules/netgraph/vlan_rotate/Makefile b/sys/modules/netgraph/vlan_rotate/Makefile index 98ff2b13863f..619b5b432ad7 100644 --- a/sys/modules/netgraph/vlan_rotate/Makefile +++ b/sys/modules/netgraph/vlan_rotate/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= ng_vlan_rotate SRCS= ng_vlan_rotate.c .include diff --git a/sys/modules/netmap/Makefile b/sys/modules/netmap/Makefile index 8d0b358115fd..17b52aec1893 100644 --- a/sys/modules/netmap/Makefile +++ b/sys/modules/netmap/Makefile @@ -1,30 +1,29 @@ -# $FreeBSD$ # # Compile netmap as a module, useful if you want a netmap bridge # or loadable drivers. .include # FreeBSD 10 and earlier # .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${.CURDIR}/../../dev/netmap .PATH.h: ${.CURDIR}/../../net CFLAGS += -I${.CURDIR}/../../ -D INET -D VIMAGE KMOD = netmap SRCS = device_if.h bus_if.h pci_if.h opt_netmap.h SRCS += netmap.c netmap.h netmap_kern.h SRCS += netmap_mem2.c netmap_mem2.h SRCS += netmap_generic.c SRCS += netmap_mbq.c netmap_mbq.h SRCS += netmap_vale.c SRCS += netmap_freebsd.c SRCS += netmap_offloadings.c SRCS += netmap_pipe.c SRCS += netmap_monitor.c SRCS += netmap_kloop.c SRCS += netmap_legacy.c SRCS += netmap_bdg.c SRCS += netmap_null.c SRCS += if_ptnet.c SRCS += opt_inet.h opt_inet6.h .include diff --git a/sys/modules/nfe/Makefile b/sys/modules/nfe/Makefile index b18dcb186cf0..c7361ac97aeb 100644 --- a/sys/modules/nfe/Makefile +++ b/sys/modules/nfe/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/nfe KMOD= if_nfe SRCS= if_nfe.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h .include diff --git a/sys/modules/nfscl/Makefile b/sys/modules/nfscl/Makefile index f75965af224f..6394d0fba753 100644 --- a/sys/modules/nfscl/Makefile +++ b/sys/modules/nfscl/Makefile @@ -1,46 +1,45 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/nfsclient ${SRCTOP}/sys/nfs KMOD= nfscl SRCS= vnode_if.h \ nfs_clrpcops.c \ nfs_clkrpc.c \ nfs_clstate.c \ nfs_clcomsubs.c \ nfs_clport.c \ nfs_clbio.c \ nfs_clnfsiod.c \ nfs_clnode.c \ nfs_clsubs.c \ nfs_clvfsops.c \ nfs_clvnops.c \ opt_bootp.h \ opt_inet.h \ opt_inet6.h \ opt_kern_tls.h \ opt_kgssapi.h \ opt_nfs.h \ opt_nfsroot.h \ opt_ufs.h .if !defined(KERNBUILDDIR) NFS_ROOT?= 1 # 0/1 - requires NFS_ROOT to be configured in kernel .if ${NFS_ROOT} > 0 opt_nfsroot.h: echo "#define NFS_ROOT 1" > ${.TARGET} .endif .else OPT_NFS_ROOT!= cat ${KERNBUILDDIR}/opt_nfsroot.h .if empty(OPT_NFS_ROOT) NFS_ROOT= 0 .else NFS_ROOT= 1 .endif .endif .if ${NFS_ROOT} > 0 SRCS+= nfs_diskless.c .endif .include diff --git a/sys/modules/nfscommon/Makefile b/sys/modules/nfscommon/Makefile index 08d6351bd89b..7f03ba5a2b4f 100644 --- a/sys/modules/nfscommon/Makefile +++ b/sys/modules/nfscommon/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/nfs KMOD= nfscommon SRCS= vnode_if.h \ nfs_commonacl.c \ nfs_commonkrpc.c \ nfs_commonport.c \ nfs_commonsubs.c \ opt_inet.h \ opt_inet6.h \ opt_kern_tls.h \ opt_kgssapi.h \ opt_nfs.h \ opt_ufs.h EXPORT_SYMS= YES .include diff --git a/sys/modules/nfsd/Makefile b/sys/modules/nfsd/Makefile index ad75bf1479b9..5ec7717e3f12 100644 --- a/sys/modules/nfsd/Makefile +++ b/sys/modules/nfsd/Makefile @@ -1,21 +1,20 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/nfsserver KMOD= nfsd SRCS= vnode_if.h \ nfs_fha_new.c \ nfs_nfsdserv.c \ nfs_nfsdcache.c \ nfs_nfsdkrpc.c \ nfs_nfsdsocket.c \ nfs_nfsdstate.c \ nfs_nfsdsubs.c \ nfs_nfsdport.c \ opt_ufs.h \ opt_nfs.h \ opt_inet.h \ opt_inet6.h \ opt_kern_tls.h \ opt_kgssapi.h .include diff --git a/sys/modules/nfslockd/Makefile b/sys/modules/nfslockd/Makefile index 1f6acaa55f29..310b9e3611bd 100644 --- a/sys/modules/nfslockd/Makefile +++ b/sys/modules/nfslockd/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/nlm ${SRCTOP}/sys/rpc KMOD= nfslockd SRCS= vnode_if.h \ nlm_advlock.c \ nlm_prot_clnt.c \ nlm_prot_impl.c \ nlm_prot_server.c \ nlm_prot_svc.c \ nlm_prot_xdr.c \ sm_inter_xdr.c SRCS+= opt_inet6.h opt_nfs.h .include diff --git a/sys/modules/nfssvc/Makefile b/sys/modules/nfssvc/Makefile index f59b63459fc2..04bbf910eea0 100644 --- a/sys/modules/nfssvc/Makefile +++ b/sys/modules/nfssvc/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/nfs KMOD= nfssvc SRCS= nfs_nfssvc.c \ opt_nfs.h EXPORT_SYMS= YES .include diff --git a/sys/modules/nge/Makefile b/sys/modules/nge/Makefile index 2c6b026f22ca..ea8d1ed2b355 100644 --- a/sys/modules/nge/Makefile +++ b/sys/modules/nge/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/nge KMOD= if_nge SRCS= if_nge.c miibus_if.h device_if.h bus_if.h pci_if.h opt_platform.h .include diff --git a/sys/modules/nlsysevent/Makefile b/sys/modules/nlsysevent/Makefile index a43e730d3aa5..be9b985409b6 100644 --- a/sys/modules/nlsysevent/Makefile +++ b/sys/modules/nlsysevent/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netlink/ KMOD= nlsysevent SRCS= netlink_sysevent.c EXPORT_SYMS= YES .include diff --git a/sys/modules/nmdm/Makefile b/sys/modules/nmdm/Makefile index 84a57a8a1efa..d9d2fc8523ef 100644 --- a/sys/modules/nmdm/Makefile +++ b/sys/modules/nmdm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/nmdm KMOD= nmdm SRCS= nmdm.c .include diff --git a/sys/modules/ntb/Makefile b/sys/modules/ntb/Makefile index 43cb241bc02c..a1374f3d0f7c 100644 --- a/sys/modules/ntb/Makefile +++ b/sys/modules/ntb/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ SUBDIR= ntb ntb_hw_amd ntb_hw_intel ntb_hw_plx ntb_transport ntb_tool if_ntb .include diff --git a/sys/modules/ntb/if_ntb/Makefile b/sys/modules/ntb/if_ntb/Makefile index acdc859bf743..fb99668e2d12 100644 --- a/sys/modules/ntb/if_ntb/Makefile +++ b/sys/modules/ntb/if_ntb/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ntb/if_ntb KMOD = if_ntb SRCS = if_ntb.c SRCS += device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/ntb/ntb/Makefile b/sys/modules/ntb/ntb/Makefile index f318ff0f88b9..97f54fff3688 100644 --- a/sys/modules/ntb/ntb/Makefile +++ b/sys/modules/ntb/ntb/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ntb KMOD = ntb SRCS = ntb.c ntb_if.c SRCS += device_if.h bus_if.h ntb_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/ntb/ntb_hw_amd/Makefile b/sys/modules/ntb/ntb_hw_amd/Makefile index 2f0545a6008b..59693dbec299 100644 --- a/sys/modules/ntb/ntb_hw_amd/Makefile +++ b/sys/modules/ntb/ntb_hw_amd/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ntb/ntb_hw KMOD = ntb_hw_amd SRCS = ntb_hw_amd.c SRCS += device_if.h bus_if.h pci_if.h ntb_if.h .include diff --git a/sys/modules/ntb/ntb_hw_intel/Makefile b/sys/modules/ntb/ntb_hw_intel/Makefile index 720cb16c5216..688eeeb17e7a 100644 --- a/sys/modules/ntb/ntb_hw_intel/Makefile +++ b/sys/modules/ntb/ntb_hw_intel/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ntb/ntb_hw KMOD = ntb_hw_intel SRCS = ntb_hw_intel.c SRCS += device_if.h bus_if.h pci_if.h ntb_if.h .include diff --git a/sys/modules/ntb/ntb_hw_plx/Makefile b/sys/modules/ntb/ntb_hw_plx/Makefile index 4852e7a30fe6..08075af35fc7 100644 --- a/sys/modules/ntb/ntb_hw_plx/Makefile +++ b/sys/modules/ntb/ntb_hw_plx/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ntb/ntb_hw KMOD = ntb_hw_plx SRCS = ntb_hw_plx.c SRCS += device_if.h bus_if.h pci_if.h ntb_if.h .include diff --git a/sys/modules/ntb/ntb_tool/Makefile b/sys/modules/ntb/ntb_tool/Makefile index ea515ab4993b..5fa4b1cfc7c8 100644 --- a/sys/modules/ntb/ntb_tool/Makefile +++ b/sys/modules/ntb/ntb_tool/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ntb/test KMOD = ntb_tool SRCS = ntb_tool.c SRCS += device_if.h bus_if.h pci_if.h ntb_if.h .include diff --git a/sys/modules/ntb/ntb_transport/Makefile b/sys/modules/ntb/ntb_transport/Makefile index f7094a29d6b4..47af0b4ff21e 100644 --- a/sys/modules/ntb/ntb_transport/Makefile +++ b/sys/modules/ntb/ntb_transport/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ntb KMOD = ntb_transport SRCS = ntb_transport.c SRCS += device_if.h bus_if.h ntb_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/nullfs/Makefile b/sys/modules/nullfs/Makefile index 5252a8f8e514..3f5d1aef3f87 100644 --- a/sys/modules/nullfs/Makefile +++ b/sys/modules/nullfs/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/nullfs KMOD= nullfs SRCS= vnode_if.h \ null_subr.c null_vfsops.c null_vnops.c .include diff --git a/sys/modules/nvd/Makefile b/sys/modules/nvd/Makefile index 950309498bd3..2a1c49024fb0 100644 --- a/sys/modules/nvd/Makefile +++ b/sys/modules/nvd/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/nvd KMOD= nvd SRCS= nvd.c opt_geom.h device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/nvdimm/Makefile b/sys/modules/nvdimm/Makefile index 14959ef82d4f..043c1d287a75 100644 --- a/sys/modules/nvdimm/Makefile +++ b/sys/modules/nvdimm/Makefile @@ -1,21 +1,20 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/nvdimm KMOD= nvdimm SRCS= nvdimm.c \ nvdimm_acpi.c \ nvdimm_e820.c \ nvdimm_nfit.c \ nvdimm_ns.c \ nvdimm_spa.c SRCS+= acpi_if.h bus_if.h device_if.h SRCS+= opt_acpi.h opt_ddb.h .include # Mute spurious Clang warning. .if ${COMPILER_TYPE} == "clang" CWARNFLAGS.nvdimm_e820.c+= -Wno-missing-braces .endif diff --git a/sys/modules/nvme/Makefile b/sys/modules/nvme/Makefile index 7aad95d55e60..9b7003bdea69 100644 --- a/sys/modules/nvme/Makefile +++ b/sys/modules/nvme/Makefile @@ -1,28 +1,27 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/nvme KMOD = nvme SRCS = nvme.c \ nvme_ahci.c \ nvme_ctrlr.c \ nvme_ctrlr_cmd.c \ nvme_ns.c \ nvme_ns_cmd.c \ nvme_pci.c \ nvme_qpair.c \ nvme_sim.c \ nvme_sysctl.c \ nvme_test.c \ nvme_util.c \ \ bus_if.h \ device_if.h \ opt_cam.h \ opt_nvme.h \ pci_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/nvram/Makefile b/sys/modules/nvram/Makefile index 09eb07de7063..5f6ab7b244b0 100644 --- a/sys/modules/nvram/Makefile +++ b/sys/modules/nvram/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/nvram KMOD= nvram SRCS= nvram.c .include diff --git a/sys/modules/oce/Makefile b/sys/modules/oce/Makefile index f5ea74b979ea..0b9cb6eaf1fe 100644 --- a/sys/modules/oce/Makefile +++ b/sys/modules/oce/Makefile @@ -1,15 +1,14 @@ # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/oce KMOD = if_oce SRCS = oce_if.c oce_hw.c oce_mbox.c oce_util.c oce_queue.c oce_sysctl.c SRCS += bus_if.h device_if.h pci_if.h opt_inet.h opt_inet6.h CFLAGS+= -I${SRCTOP}/sys/dev/oce # uncomment for lock profiling statistics #CFLAGS += -DLOCK_PROFILING .include diff --git a/sys/modules/ocs_fc/Makefile b/sys/modules/ocs_fc/Makefile index 8d546f9eabfd..24abff9eccc7 100644 --- a/sys/modules/ocs_fc/Makefile +++ b/sys/modules/ocs_fc/Makefile @@ -1,47 +1,46 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ocs_fc KMOD = ocs_fc SRCS = \ device_if.h \ bus_if.h \ pci_if.h \ opt_scsi.h \ opt_stack.h \ opt_cam.h # OS SRCS += ocs_pci.c ocs_ioctl.c ocs_os.c ocs_utils.c # hw SRCS += ocs_hw.c ocs_hw_queues.c # SLI SRCS += sli4.c ocs_sm.c # Transport SRCS += \ ocs_device.c \ ocs_xport.c \ ocs_domain.c \ ocs_sport.c \ ocs_els.c \ ocs_fabric.c \ ocs_io.c \ ocs_node.c \ ocs_scsi.c \ ocs_unsol.c \ ocs_ddump.c \ ocs_mgmt.c \ ocs_gendump.c # CAM initiator/target SRCS += ocs_cam.c CINCS = -I. CLEANFILES += ${PROG}.debug ${PROG}.symbols cscope.* .include diff --git a/sys/modules/opal_nvram/Makefile b/sys/modules/opal_nvram/Makefile index aca711070fc5..8898dbb4629c 100644 --- a/sys/modules/opal_nvram/Makefile +++ b/sys/modules/opal_nvram/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/powerpc/powernv KMOD= opal_nvram SRCS= opal_nvram.c SRCS+= bus_if.h device_if.h SRCS+= ofw_bus_if.h .include diff --git a/sys/modules/opensolaris/Makefile b/sys/modules/opensolaris/Makefile index f5d6f7f4639c..42702d0c685d 100644 --- a/sys/modules/opensolaris/Makefile +++ b/sys/modules/opensolaris/Makefile @@ -1,36 +1,35 @@ -# $FreeBSD$ SYSDIR?= ${SRCTOP}/sys .PATH: ${SYSDIR}/cddl/compat/opensolaris/kern .PATH: ${SYSDIR}/contrib/openzfs/module/os/freebsd/spl KMOD= opensolaris SRCS= vnode_if.h \ opensolaris.c \ opensolaris_proc.c \ spl_cmn_err.c \ spl_kmem.c \ spl_misc.c \ spl_sunddi.c _A=${SYSDIR}/cddl/contrib/opensolaris/common/atomic .if exists(${_A}/${MACHINE_CPUARCH}/opensolaris_atomic.S) .PATH: ${_A}/${MACHINE_CPUARCH} SRCS+= opensolaris_atomic.S .elif exists(${_A}/${MACHINE_ARCH}/opensolaris_atomic.S) .PATH: ${_A}/${MACHINE_ARCH} SRCS+= opensolaris_atomic.S .else SRCS+= opensolaris_atomic.c .endif CFLAGS+= ${OPENZFS_CFLAGS} EXPORT_SYMS= YES IGNORE_PRAGMA= 1 .include CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/ossl/Makefile b/sys/modules/ossl/Makefile index a29649b2f5c8..7f70f19db76c 100644 --- a/sys/modules/ossl/Makefile +++ b/sys/modules/ossl/Makefile @@ -1,66 +1,65 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/crypto/openssl .PATH: ${SRCTOP}/sys/crypto/openssl/${MACHINE_CPUARCH} KMOD= ossl OBJS+= ${OBJS.${MACHINE_CPUARCH}} SRCS= bus_if.h \ cryptodev_if.h \ device_if.h \ ossl.c \ ossl_aes.c \ ossl_chacha20.c \ ossl_poly1305.c \ ossl_sha1.c \ ossl_sha256.c \ ossl_sha512.c \ ${SRCS.${MACHINE_CPUARCH}} SRCS.aarch64= \ chacha-armv8.S \ poly1305-armv8.S \ sha1-armv8.S \ sha256-armv8.S \ sha512-armv8.S \ vpaes-armv8.S \ ossl_aarch64.c SRCS.amd64= \ aes-gcm-avx512.S \ aesni-x86_64.S \ aesni-gcm-x86_64.S \ chacha-x86_64.S \ ghash-x86_64.S \ poly1305-x86_64.S \ sha1-x86_64.S \ sha256-x86_64.S \ sha512-x86_64.S \ ossl_aes_gcm.c \ ossl_x86.c SRCS.i386= \ aesni-x86.S \ chacha-x86.S \ poly1305-x86.S \ sha1-586.S \ sha256-586.S \ sha512-586.S \ ossl_x86.c # For arm64, we are forced to rewrite the compiler invocation for the assembly # files, to remove -mgeneral-regs-only. ${SRCS.aarch64:M*.S:S/S/o/}: ${.TARGET:R}.S ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} ${.IMPSRC} ${CTFCONVERT_CMD} # Based on modules/armv8crypto/Makefile. # Clang doesn't recognize "aes*" instructions without -march set. aesv8-armx.o: aesv8-armx.S ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} \ -march=armv8-a+crypto ${.IMPSRC} ${CTFCONVERT_CMD} OBJS.aarch64= aesv8-armx.o .include diff --git a/sys/modules/otus/Makefile b/sys/modules/otus/Makefile index 56c37b239d48..8c0c322429b8 100644 --- a/sys/modules/otus/Makefile +++ b/sys/modules/otus/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/otus KMOD = if_otus SRCS = if_otus.c if_otusreg.h \ bus_if.h device_if.h \ opt_bus.h opt_usb.h opt_wlan.h usb_if.h usbdevs.h .include diff --git a/sys/modules/otusfw/Makefile b/sys/modules/otusfw/Makefile index 0a47f66c9cab..f55b73d06f5a 100644 --- a/sys/modules/otusfw/Makefile +++ b/sys/modules/otusfw/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ SUBDIR=otusfw_init otusfw_main .include diff --git a/sys/modules/otusfw/otusfw_init/Makefile b/sys/modules/otusfw/otusfw_init/Makefile index 3a6e571cdc4c..d3acbc16beea 100644 --- a/sys/modules/otusfw/otusfw_init/Makefile +++ b/sys/modules/otusfw/otusfw_init/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ KMOD= otusfw_init FIRMWS= otusfw_init:otusfw_init:1 CLEANFILES= otus_init otusfw_init: ${SRCTOP}/sys/contrib/dev/otus/otus-init cp ${.ALLSRC} ${.TARGET} .include diff --git a/sys/modules/otusfw/otusfw_main/Makefile b/sys/modules/otusfw/otusfw_main/Makefile index 7ef78a912255..cd563b3ed1dd 100644 --- a/sys/modules/otusfw/otusfw_main/Makefile +++ b/sys/modules/otusfw/otusfw_main/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ KMOD= otusfw_main FIRMWS= otusfw_main:otusfw_main:1 CLEANFILES= otusfw_main otusfw_main: ${SRCTOP}/sys/contrib/dev/otus/otus-main cp ${.ALLSRC} ${.TARGET} .include diff --git a/sys/modules/ow/Makefile b/sys/modules/ow/Makefile index 5cc630e65b20..498dd15a0328 100644 --- a/sys/modules/ow/Makefile +++ b/sys/modules/ow/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" SUBDIR = ow owc ow_temp .include diff --git a/sys/modules/ow/ow/Makefile b/sys/modules/ow/ow/Makefile index fdc8fe93ae2b..fbfbd1b5d58e 100644 --- a/sys/modules/ow/ow/Makefile +++ b/sys/modules/ow/ow/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ow KMOD= ow SRCS= ow.c SRCS+= own_if.c own_if.h owll_if.c owll_if.h bus_if.h device_if.h .include diff --git a/sys/modules/ow/ow_temp/Makefile b/sys/modules/ow/ow_temp/Makefile index 00f3ee5a8b66..6c6d2df47808 100644 --- a/sys/modules/ow/ow_temp/Makefile +++ b/sys/modules/ow/ow_temp/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ow KMOD= ow_temp SRCS= ow_temp.c SRCS+= own_if.h bus_if.h device_if.h .include diff --git a/sys/modules/ow/owc/Makefile b/sys/modules/ow/owc/Makefile index 78da808c82bc..5c98574c0711 100644 --- a/sys/modules/ow/owc/Makefile +++ b/sys/modules/ow/owc/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ow KMOD= owc SRCS= owc_gpiobus.c SRCS+= gpio_if.h gpiobus_if.h owll_if.h ofw_bus_if.h bus_if.h device_if.h SRCS+= opt_platform.h EXPORT_SYMS= YES .include diff --git a/sys/modules/padlock/Makefile b/sys/modules/padlock/Makefile index 7100733c1d41..167282c99ff7 100644 --- a/sys/modules/padlock/Makefile +++ b/sys/modules/padlock/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/crypto/via KMOD= padlock SRCS= padlock.c padlock_cipher.c padlock_hash.c SRCS += device_if.h bus_if.h opt_bus.h cryptodev_if.h .include diff --git a/sys/modules/padlock_rng/Makefile b/sys/modules/padlock_rng/Makefile index 2988079d2946..fe224a7c8124 100644 --- a/sys/modules/padlock_rng/Makefile +++ b/sys/modules/padlock_rng/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/random KMOD= padlock_rng SRCS= nehemiah.c SRCS+= bus_if.h device_if.h CFLAGS+= -I${SRCTOP}/sys .include diff --git a/sys/modules/pcfclock/Makefile b/sys/modules/pcfclock/Makefile index c49cf15f0569..60f71e7b217c 100644 --- a/sys/modules/pcfclock/Makefile +++ b/sys/modules/pcfclock/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ppbus KMOD= pcfclock SRCS= pcfclock.c opt_pcfclock.h SRCS+= bus_if.h device_if.h ppbus_if.h .include diff --git a/sys/modules/pchtherm/Makefile b/sys/modules/pchtherm/Makefile index 71efd2e755c1..eb69b508f86e 100644 --- a/sys/modules/pchtherm/Makefile +++ b/sys/modules/pchtherm/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/intel KMOD= pchtherm SRCS= pchtherm.c SRCS+= device_if.h bus_if.h pci_if.h opt_platform.h .include diff --git a/sys/modules/pf/Makefile b/sys/modules/pf/Makefile index e2663b9748a8..918cc78bad5e 100644 --- a/sys/modules/pf/Makefile +++ b/sys/modules/pf/Makefile @@ -1,28 +1,27 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/pf KMOD= pf SRCS= pf.c pf_if.c pf_lb.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \ pf_ruleset.c pf_nv.c pf_syncookies.c in4_cksum.c \ bus_if.h device_if.h \ opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_sctp.h opt_global.h \ opt_kern_tls.h .if !defined(KERNBUILDDIR) # pflog can be loaded as a module, have the additional checks turned on # pfsync can be loaded as a module, have the additional checks turned on opt_pf.h: echo "#define DEV_PF 1" > ${.TARGET} echo "#define DEV_PFLOG 1" >> ${.TARGET} echo "#define DEV_PFSYNC 1" >> ${.TARGET} .if defined(VIMAGE) opt_global.h: echo "#define VIMAGE 1" >> ${.TARGET} .endif .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/pflog/Makefile b/sys/modules/pflog/Makefile index 32c7d56bf331..8352a6c16cef 100644 --- a/sys/modules/pflog/Makefile +++ b/sys/modules/pflog/Makefile @@ -1,18 +1,17 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/pf KMOD= pflog SRCS= if_pflog.c \ opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_global.h SRCS+= bus_if.h device_if.h .if !defined(KERNBUILDDIR) .if defined(VIMAGE) opt_global.h: echo "#define VIMAGE 1" >> ${.TARGET} CFLAGS+= -include opt_global.h .endif .endif .include diff --git a/sys/modules/pfsync/Makefile b/sys/modules/pfsync/Makefile index aae850fa2d20..fc2cdbf4ba85 100644 --- a/sys/modules/pfsync/Makefile +++ b/sys/modules/pfsync/Makefile @@ -1,18 +1,17 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netpfil/pf KMOD= pfsync SRCS= if_pfsync.c pfsync_nv.c \ opt_pf.h opt_inet.h opt_inet6.h opt_global.h SRCS+= bus_if.h device_if.h .if !defined(KERNBUILDDIR) .if defined(VIMAGE) opt_global.h: echo "#define VIMAGE 1" >> ${.TARGET} CFLAGS+= -include opt_global.h .endif .endif .include diff --git a/sys/modules/plip/Makefile b/sys/modules/plip/Makefile index 0b214f3b3281..dab5d4c64d8d 100644 --- a/sys/modules/plip/Makefile +++ b/sys/modules/plip/Makefile @@ -1,10 +1,8 @@ -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/ppbus KMOD= plip SRCS= bus_if.h device_if.h ppbus_if.h \ opt_plip.h \ if_plip.c .include diff --git a/sys/modules/pms/Makefile b/sys/modules/pms/Makefile index 3219b3e0e4a3..8bd21fc4b502 100644 --- a/sys/modules/pms/Makefile +++ b/sys/modules/pms/Makefile @@ -1,58 +1,57 @@ -# $FreeBSD$ # 5/31/2012 #PATH shall include all directories .PATH: ${SRCTOP}/sys/dev/pms/freebsd/driver/ini/src \ ${SRCTOP}/sys/dev/pms/RefTisa/sallsdk/api \ ${SRCTOP}/sys/dev/pms/RefTisa/sallsdk/spc \ ${SRCTOP}/sys/dev/pms/RefTisa/sallsdk/hda/64k \ ${SRCTOP}/sys/dev/pms/RefTisa/discovery/api \ ${SRCTOP}/sys/dev/pms/RefTisa/discovery/dm \ ${SRCTOP}/sys/dev/pms/RefTisa/sat/api \ ${SRCTOP}/sys/dev/pms/RefTisa/sat/src \ ${SRCTOP}/sys/dev/pms/RefTisa/tisa/api \ ${SRCTOP}/sys/dev/pms/RefTisa/tisa/sassata/common \ ${SRCTOP}/sys/dev/pms/RefTisa/tisa/sassata/sas/common \ ${SRCTOP}/sys/dev/pms/RefTisa/tisa/sassata/sas/ini \ ${SRCTOP}/sys/dev/pms/RefTisa/tisa/sassata/sata/host \ ${SRCTOP}/sys/dev/pms/freebsd/driver/common CFLAGS+=-fno-builtin CFLAGS+=-fms-extensions CFLAGS+=-Wredundant-decls CFLAGS+=-Wunused-variable CFLAGS+=-Woverflow CFLAGS+=-Wmissing-prototypes CFLAGS+=-Wparentheses CFLAGS+=-w #CFLAGS+=-g #SUBDIR= tisa tisa/drivers tisa/drivers/FreeBSD tisa/drivers/FreeBSD/ini tisa/drivers/FreeBSD/ini/src #SUBDIR= Hialeah_driver Hialeah_driver/freebsd Hialeah_driver/freebsd/ini Hialeah_driver/freebsd/ini/src KMOD= pmspcv #OS files SRCS=agtiapi.c #LL files SRCS+= sadisc.c mpi.c saframe.c sahw.c sainit.c saint.c sampicmd.c sampirsp.c saphy.c saport.c SRCS+= sasata.c sasmp.c sassp.c satimer.c sautil.c saioctlcmd.c mpidebug.c #DM files SRCS+= dminit.c dmsmp.c dmdisc.c dmport.c dmtimer.c dmmisc.c #SM files SRCS+= sminit.c smmisc.c smsat.c smsatcb.c smsathw.c smtimer.c #TD files SRCS+= tdinit.c tdmisc.c tdesgl.c tdport.c tdint.c tdioctl.c tdhw.c ossacmnapi.c tddmcmnapi.c tdsmcmnapi.c SRCS+= tdtimers.c itdio.c itdcb.c itdinit.c itddisc.c sat.c ossasat.c sathw.c #header files SRCS+= agtiapi.h agtiproto.h agdef.h # SRCS+= osenv.h ostypes.h SRCS+= opt_scsi.h opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/pms/Makefile.inc b/sys/modules/pms/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/pms/Makefile.inc +++ b/sys/modules/pms/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/powermac_nvram/Makefile b/sys/modules/powermac_nvram/Makefile index fe9bbbaba41a..06e3b66e3e10 100644 --- a/sys/modules/powermac_nvram/Makefile +++ b/sys/modules/powermac_nvram/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/powermac_nvram KMOD= powermac_nvram SRCS= powermac_nvram.c powermac_nvramvar.h SRCS+= bus_if.h device_if.h SRCS+= ofw_bus_if.h .include diff --git a/sys/modules/ppbus/Makefile b/sys/modules/ppbus/Makefile index b2ebb2430936..37ce59ea9c25 100644 --- a/sys/modules/ppbus/Makefile +++ b/sys/modules/ppbus/Makefile @@ -1,25 +1,23 @@ -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/ppbus KMOD= ppbus SRCS= bus_if.h device_if.h ppbus_if.h ppbus_if.c \ opt_ppb_1284.h \ ppb_1284.c ppb_base.c ppb_msq.c ppbconf.c EXPORT_SYMS= \ ppb_request_bus \ ppb_release_bus \ ppb_get_status \ ppb_poll_bus \ ppb_reset_epp_timeout \ ppb_ecp_sync \ ppb_get_epp_protocol \ ppb_set_mode \ ppb_get_mode \ ppb_write \ ppb_lock EXPORT_SYMS= YES .include diff --git a/sys/modules/ppc/Makefile b/sys/modules/ppc/Makefile index af2057a15203..8537acae9b3f 100644 --- a/sys/modules/ppc/Makefile +++ b/sys/modules/ppc/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ppc KMOD= ppc SRCS= bus_if.h device_if.h ppbus_if.h isa_if.h pci_if.h serdev_if.h \ opt_ppc.h opt_isa.h \ ppc.c ppc_pci.c ppc_puc.c .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" SRCS+= ppc_acpi.c ppc_isa.c .endif .include diff --git a/sys/modules/ppi/Makefile b/sys/modules/ppi/Makefile index ec594a99b5b4..5875e6e57dd9 100644 --- a/sys/modules/ppi/Makefile +++ b/sys/modules/ppi/Makefile @@ -1,10 +1,8 @@ -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/ppbus KMOD= ppi SRCS= bus_if.h device_if.h ppbus_if.h \ opt_ppb_1284.h \ ppi.c ppb_1284.c .include diff --git a/sys/modules/pps/Makefile b/sys/modules/pps/Makefile index 0e55150b6c96..59979e4b11a3 100644 --- a/sys/modules/pps/Makefile +++ b/sys/modules/pps/Makefile @@ -1,9 +1,7 @@ -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/ppbus KMOD= pps SRCS= bus_if.h device_if.h ppbus_if.h \ pps.c .include diff --git a/sys/modules/procfs/Makefile b/sys/modules/procfs/Makefile index ee41bb8b116d..65708288a523 100644 --- a/sys/modules/procfs/Makefile +++ b/sys/modules/procfs/Makefile @@ -1,28 +1,27 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/procfs KMOD= procfs SRCS= SRCS+= vnode_if.h SRCS+= procfs_dbregs.c SRCS+= procfs_fpregs.c SRCS+= procfs_map.c SRCS+= procfs_mem.c SRCS+= procfs_note.c SRCS+= procfs_osrel.c SRCS+= procfs_regs.c SRCS+= procfs_rlimit.c SRCS+= procfs_status.c SRCS+= procfs_type.c SRCS+= procfs.c EXPORT_SYMS= EXPORT_SYMS+= procfs_candebug EXPORT_SYMS+= procfs_docurproc EXPORT_SYMS+= procfs_doprocfile EXPORT_SYMS+= procfs_doprocmem EXPORT_SYMS+= procfs_notsystem EXPORT_SYMS+= procfs_attr_rw .include diff --git a/sys/modules/proto/Makefile b/sys/modules/proto/Makefile index 331c2c6835d2..fd9ea1b51dd8 100644 --- a/sys/modules/proto/Makefile +++ b/sys/modules/proto/Makefile @@ -1,18 +1,17 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/proto KMOD= proto SRCS= \ proto_bus_isa.c \ proto_bus_pci.c \ proto_busdma.c \ proto_core.c SRCS+= \ bus_if.h \ device_if.h \ isa_if.h \ pci_if.h .include diff --git a/sys/modules/pseudofs/Makefile b/sys/modules/pseudofs/Makefile index eb083cd31d77..52c01d1859c9 100644 --- a/sys/modules/pseudofs/Makefile +++ b/sys/modules/pseudofs/Makefile @@ -1,31 +1,30 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/pseudofs KMOD= pseudofs SRCS= opt_pseudofs.h \ vnode_if.h \ pseudofs.c \ pseudofs_fileno.c \ pseudofs_vncache.c \ pseudofs_vnops.c EXPORT_SYMS= pfs_cmount \ pfs_mount \ pfs_unmount \ pfs_root \ pfs_statfs \ pfs_init \ pfs_uninit \ pfs_create_dir \ pfs_create_file \ pfs_create_link \ pfs_destroy .if !defined(KERNBUILDDIR) .if defined(PSEUDOFS_TRACE) CFLAGS+=-DPSEUDOFS_TRACE .endif .endif .include diff --git a/sys/modules/pst/Makefile b/sys/modules/pst/Makefile index 4b8ff3db1397..2fd5f4a356f6 100644 --- a/sys/modules/pst/Makefile +++ b/sys/modules/pst/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/pst KMOD= pst SRCS= pst-pci.c pst-iop.c pst-raid.c SRCS+= device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/pty/Makefile b/sys/modules/pty/Makefile index 73bc8cfe319b..63f8c8f50ee3 100644 --- a/sys/modules/pty/Makefile +++ b/sys/modules/pty/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/pty KMOD= pty SRCS= pty.c .include diff --git a/sys/modules/puc/Makefile b/sys/modules/puc/Makefile index a306e5d77e86..6e14ce0ed268 100644 --- a/sys/modules/puc/Makefile +++ b/sys/modules/puc/Makefile @@ -1,10 +1,8 @@ -# $FreeBSD$ - .PATH: ${SRCTOP}/sys/dev/puc KMOD= puc SRCS= puc.c puc_cfg.c puc_pci.c SRCS+= bus_if.h device_if.h serdev_if.c serdev_if.h pci_if.h .include diff --git a/sys/modules/pwm/Makefile b/sys/modules/pwm/Makefile index 2d1b07724cac..9b18a0be3908 100644 --- a/sys/modules/pwm/Makefile +++ b/sys/modules/pwm/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ # Modules for dev/pwm drivers. SUBDIR = \ pwmbus \ pwmc \ .if ${MACHINE_ARCH} == "armv7" || ${MACHINE_ARCH} == "aarch64" .if !empty(OPT_FDT) SUBDIR += pwm_backlight .endif .endif .include diff --git a/sys/modules/pwm/pwm_backlight/Makefile b/sys/modules/pwm/pwm_backlight/Makefile index c7ab67b38651..b15ba296a133 100644 --- a/sys/modules/pwm/pwm_backlight/Makefile +++ b/sys/modules/pwm/pwm_backlight/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/pwm KMOD= pwm_backlight SRCS= pwm_backlight.c SRCS+= \ backlight_if.h \ bus_if.h \ device_if.h \ opt_platform.h \ pwmbus_if.h \ regnode_if.h \ ofw_bus_if.h .include diff --git a/sys/modules/pwm/pwmbus/Makefile b/sys/modules/pwm/pwmbus/Makefile index 1b3c9f3077c3..3c0acecdf327 100644 --- a/sys/modules/pwm/pwmbus/Makefile +++ b/sys/modules/pwm/pwmbus/Makefile @@ -1,22 +1,21 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/pwm KMOD= pwmbus SRCS= pwmbus.c .if !empty(OPT_FDT) SRCS+= ofw_pwm.c ofw_pwmbus.c ofw_bus_if.h .endif # Generated files... SRCS+= \ bus_if.h \ device_if.h \ opt_platform.h \ pwmbus_if.c \ pwmbus_if.h \ EXPORT_SYMS= YES .include diff --git a/sys/modules/pwm/pwmc/Makefile b/sys/modules/pwm/pwmc/Makefile index 6e373e467a4a..3ba120f51502 100644 --- a/sys/modules/pwm/pwmc/Makefile +++ b/sys/modules/pwm/pwmc/Makefile @@ -1,18 +1,17 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/pwm KMOD= pwmc SRCS= pwmc.c # Generated files... SRCS+= \ bus_if.h \ device_if.h \ opt_platform.h \ pwmbus_if.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/qat/Makefile b/sys/modules/qat/Makefile index 52fe5623b064..e32a9495f7bc 100644 --- a/sys/modules/qat/Makefile +++ b/sys/modules/qat/Makefile @@ -1,9 +1,8 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ SUBDIR= qat_common \ qat_api \ qat_hw \ qat .include diff --git a/sys/modules/qat/qat/Makefile b/sys/modules/qat/qat/Makefile index ae9f1bda0fd8..14f3a566063f 100644 --- a/sys/modules/qat/qat/Makefile +++ b/sys/modules/qat/qat/Makefile @@ -1,29 +1,28 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/qat/qat KMOD= qat SRCS+= qat_ocf.c qat_ocf_mem_pool.c qat_ocf_utils.c SRCS+= device_if.h bus_if.h vnode_if.h pci_if.h cryptodev_if.h CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -I${SRCTOP}/sys/dev/qat/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/include/common CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include/lac CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_utils/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_direct/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/firmware/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/crypto/sym/include .include .if ${COMPILER_TYPE} == "clang" CWARNFLAGS.qat_ocf.c += -Wno-incompatible-pointer-types-discards-qualifiers CWARNFLAGS.qat_ocf_utils.c += -Wno-incompatible-pointer-types-discards-qualifiers .elif ${COMPILER_TYPE} == "gcc" CWARNFLAGS.qat_ocf.c += -Wno-discarded-qualifiers CWARNFLAGS.qat_ocf_utils.c += -Wno-discarded-qualifiers .endif diff --git a/sys/modules/qat/qat_api/Makefile b/sys/modules/qat/qat_api/Makefile index 810c67afdf6d..f30d49cd8269 100644 --- a/sys/modules/qat/qat_api/Makefile +++ b/sys/modules/qat/qat_api/Makefile @@ -1,80 +1,79 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/qat/qat_api KMOD= qat_api SRCS+= freebsd_module.c SRCS+= common/compression/dc_datapath.c SRCS+= common/compression/dc_header_footer.c SRCS+= common/compression/dc_session.c SRCS+= common/compression/dc_stats.c SRCS+= common/compression/dc_buffers.c SRCS+= common/compression/dc_dp.c SRCS+= common/compression/icp_sal_dc_err.c SRCS+= common/compression/dc_chain.c SRCS+= common/compression/dc_ns_datapath.c SRCS+= common/compression/dc_ns_header_footer.c SRCS+= common/utils/lac_buffer_desc.c SRCS+= common/utils/lac_mem.c SRCS+= common/utils/lac_mem_pools.c SRCS+= common/utils/lac_sync.c SRCS+= common/utils/sal_service_state.c SRCS+= common/utils/sal_statistics.c SRCS+= common/utils/sal_string_parse.c SRCS+= common/utils/sal_versions.c SRCS+= common/utils/sal_user_process.c SRCS+= common/ctrl/sal_list.c SRCS+= common/ctrl/sal_compression.c SRCS+= common/ctrl/sal_ctrl_services.c SRCS+= common/ctrl/sal_create_services.c SRCS+= common/ctrl/sal_crypto.c SRCS+= common/ctrl/sal_get_instances.c SRCS+= common/qat_comms/sal_qat_cmn_msg.c SRCS+= common/crypto/sym/lac_sym_api.c SRCS+= common/crypto/sym/lac_sym_cb.c SRCS+= common/crypto/sym/lac_sym_queue.c SRCS+= common/crypto/sym/lac_sym_cipher.c SRCS+= common/crypto/sym/lac_sym_alg_chain.c SRCS+= common/crypto/sym/lac_sym_auth_enc.c SRCS+= common/crypto/sym/lac_sym_hash.c SRCS+= common/crypto/sym/lac_sym_hash_sw_precomputes.c SRCS+= common/crypto/sym/lac_sym_stats.c SRCS+= common/crypto/sym/lac_sym_compile_check.c SRCS+= common/crypto/sym/lac_sym_partial.c SRCS+= common/crypto/sym/lac_sym_dp.c SRCS+= common/crypto/sym/qat/lac_sym_qat.c SRCS+= common/crypto/sym/qat/lac_sym_qat_hash.c SRCS+= common/crypto/sym/qat/lac_sym_qat_hash_defs_lookup.c SRCS+= common/crypto/sym/qat/lac_sym_qat_cipher.c SRCS+= common/crypto/sym/qat/lac_sym_qat_constants_table.c SRCS+= common/crypto/sym/qat/lac_sym_qat_key.c SRCS+= common/crypto/sym/key/lac_sym_key.c SRCS+= common/stubs/lac_stubs.c SRCS+= device/dev_info.c SRCS+= qat_kernel/src/lac_adf_interface_freebsd.c SRCS+= qat_kernel/src/qat_transport.c SRCS+= qat_kernel/src/lac_symbols.c SRCS+= qat_utils/src/QatUtilsServices.c SRCS+= qat_utils/src/QatUtilsSemaphore.c SRCS+= qat_utils/src/QatUtilsSpinLock.c SRCS+= qat_utils/src/QatUtilsAtomic.c SRCS+= qat_utils/src/QatUtilsCrypto.c SRCS+= bus_if.h cryptodev_if.h device_if.h pci_if.h vnode_if.h CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include/lac CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include/dc CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_direct/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_utils/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/compression/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/crypto/sym/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/firmware/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/include/common CFLAGS+= ${LINUXKPI_INCLUDES} .include CWARNFLAGS+= -Wno-cast-qual diff --git a/sys/modules/qat/qat_common/Makefile b/sys/modules/qat/qat_common/Makefile index e37ab2ddf006..b0f847ae9a96 100644 --- a/sys/modules/qat/qat_common/Makefile +++ b/sys/modules/qat/qat_common/Makefile @@ -1,33 +1,32 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/qat/qat_common KMOD= qat_common SRCS+= adf_accel_engine.c adf_freebsd_admin.c adf_aer.c adf_cfg.c qat_common_module.c SRCS+= adf_heartbeat.c adf_freebsd_heartbeat_dbg.c SRCS+= adf_freebsd_dev_processes.c adf_freebsd_uio.c adf_freebsd_uio_cleanup.c SRCS+= adf_ctl_drv.c adf_dev_mgr.c adf_hw_arbiter.c SRCS+= adf_init.c adf_transport.c adf_isr.c adf_fw_counters.c adf_dev_err.c SRCS+= adf_gen2_hw_data.c SRCS+= adf_gen4_hw_data.c SRCS+= qat_freebsd.c SRCS+= adf_freebsd_cfg_dev_dbg.c adf_freebsd_ver_dbg.c SRCS+= adf_cfg_device.c adf_cfg_section.c adf_cfg_instance.c adf_cfg_bundle.c adf_cfg_sysctl.c SRCS+= qat_hal.c qat_uclo.c SRCS+= adf_vf_isr.c SRCS+= adf_gen4_pfvf.c SRCS+= adf_gen4_timer.c SRCS+= adf_pfvf_utils.c adf_pfvf_vf_msg.c adf_pfvf_vf_proto.c SRCS+= adf_gen4vf_hw_csr_data.c SRCS+= adf_freebsd_transport_debug.c adf_clock.c SRCS+= adf_freebsd_cnvnr_ctrs_dbg.c SRCS+= adf_freebsd_pfvf_ctrs_dbg.c SRCS+= bus_if.h device_if.h pci_if.h vnode_if.h CFLAGS+= -I${SRCTOP}/sys/dev/qat/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/include/common CFLAGS+= ${LINUXKPI_INCLUDES} .include diff --git a/sys/modules/qat/qat_hw/Makefile b/sys/modules/qat/qat_hw/Makefile index 8816a4bee83d..2a51640bd327 100644 --- a/sys/modules/qat/qat_hw/Makefile +++ b/sys/modules/qat/qat_hw/Makefile @@ -1,29 +1,28 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/qat/qat_hw KMOD= qat_hw SRCS+= qat_c62x/adf_c62x_hw_data.c qat_c62x/adf_drv.c SRCS+= qat_200xx/adf_200xx_hw_data.c qat_200xx/adf_drv.c SRCS+= qat_4xxx/adf_4xxx_hw_data.c qat_4xxx/adf_drv.c SRCS+= qat_4xxxvf/adf_4xxxvf_hw_data.c qat_4xxxvf/adf_drv.c SRCS+= qat_c3xxx/adf_c3xxx_hw_data.c qat_c3xxx/adf_drv.c SRCS+= qat_dh895xcc/adf_dh895xcc_hw_data.c qat_dh895xcc/adf_drv.c SRCS+= qat_c4xxx/adf_c4xxx_hw_data.c qat_c4xxx/adf_drv.c qat_c4xxx/adf_c4xxx_ae_config.c qat_c4xxx/adf_c4xxx_misc_error_stats.c SRCS+= qat_c4xxx/adf_c4xxx_pke_replay_stats.c qat_c4xxx/adf_c4xxx_ras.c qat_c4xxx/adf_c4xxx_res_part.c SRCS+= qat_c4xxx/adf_c4xxx_reset.c SRCS+= device_if.h bus_if.h vnode_if.h pci_if.h cryptodev_if.h CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -I${SRCTOP}/sys/dev/qat/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/include/common CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/include/lac CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_utils/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_direct/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/firmware/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/crypto/sym/include .include diff --git a/sys/modules/qat_c2xxx/Makefile b/sys/modules/qat_c2xxx/Makefile index 88d63282d345..950566d8146b 100644 --- a/sys/modules/qat_c2xxx/Makefile +++ b/sys/modules/qat_c2xxx/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/qat_c2xxx KMOD= qat_c2xxx SRCS= qat.c \ qat_ae.c \ qat_c2xxx.c \ qat_hw15.c SRCS+= bus_if.h cryptodev_if.h device_if.h pci_if.h .include diff --git a/sys/modules/qat_c2xxxfw/Makefile b/sys/modules/qat_c2xxxfw/Makefile index bb237a1fbcaf..d8284907ce4f 100644 --- a/sys/modules/qat_c2xxxfw/Makefile +++ b/sys/modules/qat_c2xxxfw/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/qat_c2xxx KMOD= qat_c2xxxfw IMG1= mof_firmware_c2xxx IMG2= mmp_firmware_c2xxx FIRMWS= ${IMG1}.bin:${KMOD}:111 ${IMG2}.bin:${IMG2}:111 .include diff --git a/sys/modules/qatfw/Makefile b/sys/modules/qatfw/Makefile index ac7bddd18858..b135fd2d95dc 100644 --- a/sys/modules/qatfw/Makefile +++ b/sys/modules/qatfw/Makefile @@ -1,11 +1,10 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ SUBDIR= qat_c62x \ qat_200xx \ qat_c3xxx \ qat_c4xxx \ qat_dh895xcc \ qat_4xxx .include diff --git a/sys/modules/qatfw/qat_200xx/Makefile b/sys/modules/qatfw/qat_200xx/Makefile index 95810cfeb978..ce80b75f78fd 100644 --- a/sys/modules/qatfw/qat_200xx/Makefile +++ b/sys/modules/qatfw/qat_200xx/Makefile @@ -1,10 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/qat KMOD= qat_200xx_fw FIRMWS= ${SRCTOP}/sys/contrib/dev/qat/qat_200xx.bin:qat_200xx_fw:111 ${SRCTOP}/sys/contrib/dev/qat/qat_200xx_mmp.bin:qat_200xx_mmp_fw:111 .include diff --git a/sys/modules/qatfw/qat_4xxx/Makefile b/sys/modules/qatfw/qat_4xxx/Makefile index 895bb4d0cb9f..e4d3ed495f8a 100644 --- a/sys/modules/qatfw/qat_4xxx/Makefile +++ b/sys/modules/qatfw/qat_4xxx/Makefile @@ -1,10 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/qat KMOD= qat_4xxx_fw FIRMWS= ${SRCTOP}/sys/contrib/dev/qat/qat_4xxx.bin:qat_4xxx_fw:111 ${SRCTOP}/sys/contrib/dev/qat/qat_4xxx_mmp.bin:qat_4xxx_mmp_fw:111 .include diff --git a/sys/modules/qatfw/qat_c3xxx/Makefile b/sys/modules/qatfw/qat_c3xxx/Makefile index 325cb69fb5bb..e0759fe3a99b 100644 --- a/sys/modules/qatfw/qat_c3xxx/Makefile +++ b/sys/modules/qatfw/qat_c3xxx/Makefile @@ -1,10 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/qat KMOD= qat_c3xxx_fw FIRMWS= ${SRCTOP}/sys/contrib/dev/qat/qat_c3xxx.bin:qat_c3xxx_fw:111 ${SRCTOP}/sys/contrib/dev/qat/qat_c3xxx_mmp.bin:qat_c3xxx_mmp_fw:111 .include diff --git a/sys/modules/qatfw/qat_c4xxx/Makefile b/sys/modules/qatfw/qat_c4xxx/Makefile index ee9d27dd733d..7e859dcbd989 100644 --- a/sys/modules/qatfw/qat_c4xxx/Makefile +++ b/sys/modules/qatfw/qat_c4xxx/Makefile @@ -1,10 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/qat KMOD= qat_c4xxx_fw FIRMWS= ${SRCTOP}/sys/contrib/dev/qat/qat_c4xxx.bin:qat_c4xxx_fw:111 ${SRCTOP}/sys/contrib/dev/qat/qat_c4xxx_mmp.bin:qat_c4xxx_mmp_fw:111 .include diff --git a/sys/modules/qatfw/qat_c62x/Makefile b/sys/modules/qatfw/qat_c62x/Makefile index 2eb636e8bbdb..ac1636b81e56 100644 --- a/sys/modules/qatfw/qat_c62x/Makefile +++ b/sys/modules/qatfw/qat_c62x/Makefile @@ -1,10 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/qat KMOD= qat_c62x_fw FIRMWS= ${SRCTOP}/sys/contrib/dev/qat/qat_c62x.bin:qat_c62x_fw:111 ${SRCTOP}/sys/contrib/dev/qat/qat_c62x_mmp.bin:qat_c62x_mmp_fw:111 .include diff --git a/sys/modules/qatfw/qat_dh895xcc/Makefile b/sys/modules/qatfw/qat_dh895xcc/Makefile index 343398a7e113..7a377c088081 100644 --- a/sys/modules/qatfw/qat_dh895xcc/Makefile +++ b/sys/modules/qatfw/qat_dh895xcc/Makefile @@ -1,10 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2007-2022 Intel Corporation -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/qat KMOD= qat_dh895xcc_fw FIRMWS= ${SRCTOP}/sys/contrib/dev/qat/qat_895xcc.bin:qat_dh895xcc_fw:111 ${SRCTOP}/sys/contrib/dev/qat/qat_895xcc_mmp.bin:qat_dh895xcc_mmp_fw:111 .include diff --git a/sys/modules/qlnx/Makefile b/sys/modules/qlnx/Makefile index e5dbaa01ba76..2121f9d586a6 100644 --- a/sys/modules/qlnx/Makefile +++ b/sys/modules/qlnx/Makefile @@ -1,42 +1,41 @@ #/* # * Copyright (c) 2017-2018 Cavium, Inc. # * All rights reserved. # * # * Redistribution and use in source and binary forms, with or without # * modification, are permitted provided that the following conditions # * are met: # * # * 1. Redistributions of source code must retain the above copyright # * notice, this list of conditions and the following disclaimer. # * 2. Redistributions in binary form must reproduce the above copyright # * notice, this list of conditions and the following disclaimer in the # * documentation and/or other materials provided with the distribution. # * # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # * POSSIBILITY OF SUCH DAMAGE. # */ #/* # * File : Makefile # * Author : David C Somayajulu, Cavium, Inc., San Jose, CA 95131. # */ # -# $FreeBSD$ # SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" SUBDIR=qlnxe SUBDIR+=qlnxev SUBDIR+=qlnxr .include diff --git a/sys/modules/qlnx/qlnxe/Makefile b/sys/modules/qlnx/qlnxe/Makefile index 42dbfc14bdf5..3d8415cf0e57 100644 --- a/sys/modules/qlnx/qlnxe/Makefile +++ b/sys/modules/qlnx/qlnxe/Makefile @@ -1,91 +1,90 @@ #/* # * Copyright (c) 2017-2018 Cavium, Inc. # * All rights reserved. # * # * Redistribution and use in source and binary forms, with or without # * modification, are permitted provided that the following conditions # * are met: # * # * 1. Redistributions of source code must retain the above copyright # * notice, this list of conditions and the following disclaimer. # * 2. Redistributions in binary form must reproduce the above copyright # * notice, this list of conditions and the following disclaimer in the # * documentation and/or other materials provided with the distribution. # * # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # * POSSIBILITY OF SUCH DAMAGE. # */ #/* # * File : Makefile # * Author : David C Somayajulu, Cavium, Inc., San Jose, CA 95131. # */ # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/qlnx/qlnxe #.PATH: ${.CURDIR} KMOD=if_qlnxe SRCS=ecore_cxt.c ecore_dcbx.c ecore_dev.c ecore_hw.c SRCS+=ecore_init_fw_funcs.c ecore_int.c ecore_mcp.c SRCS+=ecore_sp_commands.c ecore_spq.c ecore_l2.c SRCS+=ecore_init_ops.c ecore_dbg_fw_funcs.c SRCS+=ecore_mng_tlv.c SRCS+=ecore_sriov.c SRCS+=ecore_vf.c #roce/iwarp files. Compilation can be turned off roce/iwarp are not required. # In other words if you don't need RDMA please comment out SRCS adds for # ecore_rdma.c ecore_roce.c ecore_iwarp.c ecore_ooo.c ecore_ll2.c qlnx_rdma.c SRCS+=ecore_rdma.c SRCS+=ecore_roce.c SRCS+=ecore_iwarp.c SRCS+=ecore_ooo.c SRCS+=ecore_ll2.c SRCS+=qlnx_rdma.c SRCS+=qlnx_ioctl.c SRCS+=qlnx_os.c SRCS+= ${LINUXKPI_GENSRCS} .include #CFLAGS += -DQLNX_DEBUG CFLAGS += -DCONFIG_ECORE_L2 CFLAGS += -DECORE_CONFIG_DIRECT_HWFN CFLAGS+= ${LINUXKPI_INCLUDES} #CFLAGS += -g #CFLAGS += -fno-inline #CFLAGS += -DQLNX_SOFT_LRO #CFLAGS += -DQLNX_QSORT_LRO #CFLAGS += -DQLNX_MAX_COALESCE #CFLAGS += -DQLNX_USER_LLDP CFLAGS += -DCONFIG_ECORE_SRIOV # For roce/iwarp files. Compilation can be turned off if roce/iwarp are not required. # In other words if you don't need RDMA please comment out the CFLAGS which define # CONFIG_ECORE_LL2 CONFIG_ECORE_ROCE CONFIG_ECORE_IWARP QLNX_ENABLE_IWARP CFLAGS += -DCONFIG_ECORE_LL2 CFLAGS += -DCONFIG_ECORE_ROCE CFLAGS += -DCONFIG_ECORE_IWARP CFLAGS += -DCONFIG_ECORE_RDMA CFLAGS += -DQLNX_ENABLE_IWARP diff --git a/sys/modules/qlnx/qlnxev/Makefile b/sys/modules/qlnx/qlnxev/Makefile index 89ba62cd3027..ed62f1f1dd40 100644 --- a/sys/modules/qlnx/qlnxev/Makefile +++ b/sys/modules/qlnx/qlnxev/Makefile @@ -1,76 +1,75 @@ #/* # * Copyright (c) 2017-2018 Cavium, Inc. # * All rights reserved. # * # * Redistribution and use in source and binary forms, with or without # * modification, are permitted provided that the following conditions # * are met: # * # * 1. Redistributions of source code must retain the above copyright # * notice, this list of conditions and the following disclaimer. # * 2. Redistributions in binary form must reproduce the above copyright # * notice, this list of conditions and the following disclaimer in the # * documentation and/or other materials provided with the distribution. # * # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # * POSSIBILITY OF SUCH DAMAGE. # */ # /* # * File : Makefile # * Author : David C Somayajulu, Cavium, Inc., San Jose, CA 95131. # */ # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/qlnx/qlnxe #.PATH: ${.CURDIR}/../qlnxe KMOD=if_qlnxev SRCS=ecore_cxt.c ecore_dcbx.c ecore_dev.c ecore_hw.c SRCS+=ecore_init_fw_funcs.c ecore_int.c ecore_mcp.c SRCS+=ecore_sp_commands.c ecore_spq.c ecore_l2.c SRCS+=ecore_init_ops.c ecore_dbg_fw_funcs.c SRCS+=ecore_mng_tlv.c #SRIOV related SRCS+=ecore_sriov.c SRCS+=ecore_vf.c SRCS+=qlnx_ioctl.c SRCS+=qlnx_os.c SRCS+= ${LINUXKPI_GENSRCS} .include CFLAGS += -DQLNX_DEBUG CFLAGS += -DECORE_PACKAGE CFLAGS += -DCONFIG_ECORE_L2 CFLAGS += -DECORE_CONFIG_DIRECT_HWFN CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS += -g CFLAGS += -fno-inline #CFLAGS += -DQLNX_SOFT_LRO #CFLAGS += -DQLNX_QSORT_LRO #CFLAGS += -DQLNX_MAX_COALESCE #SRIOV related CFLAGS += -DCONFIG_ECORE_SRIOV CFLAGS += -DQLNX_VF CWARNFLAGS+= -Wno-cast-qual diff --git a/sys/modules/qlnx/qlnxr/Makefile b/sys/modules/qlnx/qlnxr/Makefile index f02089588942..fe33d43f0963 100644 --- a/sys/modules/qlnx/qlnxr/Makefile +++ b/sys/modules/qlnx/qlnxr/Makefile @@ -1,88 +1,87 @@ #/* # * Copyright (c) 2017-2018 Cavium, Inc. # * All rights reserved. # * # * Redistribution and use in source and binary forms, with or without # * modification, are permitted provided that the following conditions # * are met: # * # * 1. Redistributions of source code must retain the above copyright # * notice, this list of conditions and the following disclaimer. # * 2. Redistributions in binary form must reproduce the above copyright # * notice, this list of conditions and the following disclaimer in the # * documentation and/or other materials provided with the distribution. # * # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # * POSSIBILITY OF SUCH DAMAGE. # */ #/* # * File : Makefile # * Author : David C Somayajulu, Cavium, Inc., San Jose, CA 95131. # */ # -# $FreeBSD$ # #.PATH: ${.CURDIR} #OFEDDIR= /usr/src/sys #ETHDRVR=${.CURDIR}/../qlnxe .PATH: ${SRCTOP}/sys/dev/qlnx/qlnxr OFEDDIR=${SRCTOP}/sys ETHDRVR=${SRCTOP}/sys/dev/qlnx/qlnxe KMOD= qlnxr SRCS= \ qlnxr_os.c\ qlnxr_cm.c\ qlnxr_verbs.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h .include CFLAGS+= -I${.CURDIR} CFLAGS+= -I${ETHDRVR} CFLAGS+= -I${OFEDDIR}/ofed/include CFLAGS+= -I${OFEDDIR}/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -DLINUX_TYPES_DEFINED CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM CFLAGS+= -DINET6 -DINET #CFLAGS+= -DDEFINE_NO_IP_BASED_GIDS CWARNEXTRA += -Wno-cast-qual CWARNEXTRA += -Wno-unused-function .if ${COMPILER_TYPE} == "clang" CWARNEXTRA += -Wno-gnu-variable-sized-type-not-at-end .endif CWARNEXTRA += -Wno-missing-prototypes CWARNEXTRA += ${NO_WCONSTANT_CONVERSION} CWARNEXTRA += -Wno-format CWARNEXTRA += ${NO_WSHIFT_COUNT_OVERFLOW} CWARNEXTRA += -Wno-empty-body CFLAGS += -DQLNX_DEBUG CFLAGS += -DECORE_PACKAGE CFLAGS += -DCONFIG_ECORE_L2 CFLAGS += -DCONFIG_ECORE_LL2 CFLAGS += -DCONFIG_ECORE_ROCE CFLAGS += -DCONFIG_ECORE_IWARP CFLAGS += -DCONFIG_ECORE_RDMA CFLAGS += -DECORE_CONFIG_DIRECT_HWFN CFLAGS += -g -fno-inline CFLAGS += -DQLNX_RDMA CFLAGS+= -Wno-cast-qual -Wno-pointer-arith diff --git a/sys/modules/qlxgb/Makefile b/sys/modules/qlxgb/Makefile index 49a7779d9054..053316bc2ca8 100644 --- a/sys/modules/qlxgb/Makefile +++ b/sys/modules/qlxgb/Makefile @@ -1,38 +1,37 @@ #- # Copyright (c) 2010-2011 Qlogic Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # # File : Makefile # Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/qlxgb KMOD= if_qlxgb SRCS= qla_os.c qla_dbg.c qla_hw.c qla_misc.c qla_isr.c qla_ioctl.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h .include diff --git a/sys/modules/qlxgbe/Makefile b/sys/modules/qlxgbe/Makefile index 3a83bd967082..3f49c1b1b679 100644 --- a/sys/modules/qlxgbe/Makefile +++ b/sys/modules/qlxgbe/Makefile @@ -1,56 +1,55 @@ #/* # * Copyright (c) 2011-2016 Qlogic Corporation # * All rights reserved. # * # * Redistribution and use in source and binary forms, with or without # * modification, are permitted provided that the following conditions # * are met: # * # * 1. Redistributions of source code must retain the above copyright # * notice, this list of conditions and the following disclaimer. # * 2. Redistributions in binary form must reproduce the above copyright # * notice, this list of conditions and the following disclaimer in the # * documentation and/or other materials provided with the distribution. # * # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # * POSSIBILITY OF SUCH DAMAGE. # */ #/* # * File : Makefile # * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. # */ # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/qlxgbe #.PATH: ${.CURDIR} KMOD=if_qlxgbe SRCS=ql_os.c ql_dbg.c ql_hw.c ql_misc.c ql_isr.c ql_ioctl.c SRCS+= ql_reset.c SRCS+= ql_fw.c SRCS+= ql_boot.c SRCS+= ql_minidump.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h CFLAGS += -DQLA_LOCK_NO_SLEEP=1 #CFLAGS += -DQL_DBG -g # Please turn off QL_LDFLASH_FW when you enable QL_ENABLE_ISCSI_TLV # You may comment out both QL_LDFLASH_FW and QL_ENABLE_ISCSI_TLV if you like # the firmware and boot loader compiled into the driver #CFLAGS += -DQL_ENABLE_ISCSI_TLV #CFLAGS += -DQL_LDFLASH_FW .include diff --git a/sys/modules/qlxge/Makefile b/sys/modules/qlxge/Makefile index 8956f6ed93fd..82fc52d4d211 100644 --- a/sys/modules/qlxge/Makefile +++ b/sys/modules/qlxge/Makefile @@ -1,45 +1,44 @@ #/* # * Copyright (c) 2013-2014 Qlogic Corporation # * All rights reserved. # * # * Redistribution and use in source and binary forms, with or without # * modification, are permitted provided that the following conditions # * are met: # * # * 1. Redistributions of source code must retain the above copyright # * notice, this list of conditions and the following disclaimer. # * 2. Redistributions in binary form must reproduce the above copyright # * notice, this list of conditions and the following disclaimer in the # * documentation and/or other materials provided with the distribution. # * # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # * POSSIBILITY OF SUCH DAMAGE. # */ #/* # * File : Makefile # * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. # */ # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/qlxge KMOD=if_qlxge SRCS=qls_os.c qls_dbg.c qls_hw.c qls_isr.c qls_dump.c SRCS+=qls_ioctl.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h CFLAGS += -DQL_DBG .include diff --git a/sys/modules/ral/Makefile b/sys/modules/ral/Makefile index 5c89e93aa5af..4b26a3414c78 100644 --- a/sys/modules/ral/Makefile +++ b/sys/modules/ral/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ral KMOD= if_ral SRCS= rt2560.c rt2661.c rt2860.c if_ral_pci.c SRCS+= device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/ralfw/Makefile b/sys/modules/ralfw/Makefile index 3db53add36cb..e8c74240cb1b 100644 --- a/sys/modules/ralfw/Makefile +++ b/sys/modules/ralfw/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ SUBDIR= rt2561 rt2561s rt2661 rt2860 .include diff --git a/sys/modules/ralfw/Makefile.inc b/sys/modules/ralfw/Makefile.inc index 678648a53fd3..5cf040ba5450 100644 --- a/sys/modules/ralfw/Makefile.inc +++ b/sys/modules/ralfw/Makefile.inc @@ -1,15 +1,14 @@ -# $FreeBSD$ # # Common rules for building firmware. Note this gets auto-included # by the subdir Makefile's as a consequence of included bsd.kmod.mk. # KMOD= ${IMG}fw _FIRM= ${IMG}.fw CLEANFILES+= ${_FIRM} FIRMWS= ${_FIRM}:${KMOD} ${_FIRM}: ${SRCTOP}/sys/contrib/dev/ral/${_FIRM}.uu uudecode -p ${.ALLSRC} > ${.TARGET} diff --git a/sys/modules/ralfw/rt2561/Makefile b/sys/modules/ralfw/rt2561/Makefile index 71044a60927a..3f5ba22d61b4 100644 --- a/sys/modules/ralfw/rt2561/Makefile +++ b/sys/modules/ralfw/rt2561/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ IMG= rt2561 .include diff --git a/sys/modules/ralfw/rt2561s/Makefile b/sys/modules/ralfw/rt2561s/Makefile index 40c6bc1cc94c..660d98d26ae3 100644 --- a/sys/modules/ralfw/rt2561s/Makefile +++ b/sys/modules/ralfw/rt2561s/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ IMG= rt2561s .include diff --git a/sys/modules/ralfw/rt2661/Makefile b/sys/modules/ralfw/rt2661/Makefile index b372786c1a74..576d3b6c41f6 100644 --- a/sys/modules/ralfw/rt2661/Makefile +++ b/sys/modules/ralfw/rt2661/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ IMG= rt2661 .include diff --git a/sys/modules/ralfw/rt2860/Makefile b/sys/modules/ralfw/rt2860/Makefile index b0624a4bc99c..9fee45718f8f 100644 --- a/sys/modules/ralfw/rt2860/Makefile +++ b/sys/modules/ralfw/rt2860/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ IMG= rt2860 .include diff --git a/sys/modules/random_fortuna/Makefile b/sys/modules/random_fortuna/Makefile index e1290eb32f46..854085d6452e 100644 --- a/sys/modules/random_fortuna/Makefile +++ b/sys/modules/random_fortuna/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/random KMOD = random_fortuna SRCS = randomdev.c hash.c fortuna.c SRCS += opt_param.h bus_if.h device_if.h SRCS += opt_ddb.h CFLAGS += -DRANDOM_LOADABLE .include diff --git a/sys/modules/random_other/Makefile b/sys/modules/random_other/Makefile index 14a0051efef8..2add4bfe048c 100644 --- a/sys/modules/random_other/Makefile +++ b/sys/modules/random_other/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/random KMOD = random_OTHER SRCS = randomdev.c hash.c other_algorithm.c SRCS += opt_param.h bus_if.h device_if.h SRCS += opt_ddb.h CFLAGS += -DRANDOM_LOADABLE .include diff --git a/sys/modules/rc4/Makefile b/sys/modules/rc4/Makefile index 23cf6480d56b..5643ed40cb92 100644 --- a/sys/modules/rc4/Makefile +++ b/sys/modules/rc4/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/crypto/rc4 KMOD= rc4 SRCS= rc4.c EXPORT_SYMS= YES .include diff --git a/sys/modules/rccgpio/Makefile b/sys/modules/rccgpio/Makefile index 5e7aa49db19c..47e8a7915eaf 100644 --- a/sys/modules/rccgpio/Makefile +++ b/sys/modules/rccgpio/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/rccgpio KMOD= rccgpio SRCS= rccgpio.c SRCS+= device_if.h bus_if.h isa_if.h gpio_if.h opt_platform.h .include diff --git a/sys/modules/rdma/Makefile b/sys/modules/rdma/Makefile index a24517d3142b..81ddf6e71bf5 100644 --- a/sys/modules/rdma/Makefile +++ b/sys/modules/rdma/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ SUBDIR+= krping .include diff --git a/sys/modules/rdma/krping/Makefile b/sys/modules/rdma/krping/Makefile index 7f3a4962190e..95e96b781435 100644 --- a/sys/modules/rdma/krping/Makefile +++ b/sys/modules/rdma/krping/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/rdma/krping KMOD= krping SRCS= krping.c krping_dev.c getopt.c SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_inet.h opt_inet6.h CFLAGS+= -I${SRCTOP}/sys/ofed/include CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi CFLAGS+= ${LINUXKPI_INCLUDES} .include diff --git a/sys/modules/rdrand_rng/Makefile b/sys/modules/rdrand_rng/Makefile index 3fdecd64f78f..601bfcab51eb 100644 --- a/sys/modules/rdrand_rng/Makefile +++ b/sys/modules/rdrand_rng/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/random KMOD= rdrand_rng SRCS= ivy.c SRCS+= bus_if.h device_if.h CFLAGS+= -I${SRCTOP}/sys # ld.bfd doesn't support ifuncs invoked non-PIC .if ${MACHINE_CPUARCH} == "i386" CFLAGS.gcc= -fPIC .endif .include diff --git a/sys/modules/re/Makefile b/sys/modules/re/Makefile index ae51e71d0bdc..6923d8d631c6 100644 --- a/sys/modules/re/Makefile +++ b/sys/modules/re/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/re KMOD= if_re SRCS= if_re.c device_if.h bus_if.h pci_if.h SRCS+= miibus_if.h opt_platform.h .include diff --git a/sys/modules/rl/Makefile b/sys/modules/rl/Makefile index 119968c6088a..e615ec364829 100644 --- a/sys/modules/rl/Makefile +++ b/sys/modules/rl/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/rl KMOD= if_rl SRCS= if_rl.c device_if.h bus_if.h pci_if.h SRCS+= miibus_if.h opt_platform.h .include diff --git a/sys/modules/rndtest/Makefile b/sys/modules/rndtest/Makefile index 64ad388d028f..cb0f13492644 100644 --- a/sys/modules/rndtest/Makefile +++ b/sys/modules/rndtest/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/rndtest KMOD = rndtest SRCS = rndtest.c SRCS += device_if.h bus_if.h .include diff --git a/sys/modules/rockchip/Makefile b/sys/modules/rockchip/Makefile index fbacb32c1fc6..3463f2538b19 100644 --- a/sys/modules/rockchip/Makefile +++ b/sys/modules/rockchip/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ # Build modules specific to RockChip. SUBDIR = \ rk_i2c \ rk805 \ rk808 \ rk_dwmmc \ rk_spi .include diff --git a/sys/modules/rockchip/rk805/Makefile b/sys/modules/rockchip/rk805/Makefile index d1acab423113..a5529531d14a 100644 --- a/sys/modules/rockchip/rk805/Makefile +++ b/sys/modules/rockchip/rk805/Makefile @@ -1,21 +1,20 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus/pmic/rockchip KMOD= rk805 SRCS= rk8xx.c \ rk805.c \ rk8xx_clocks.c \ rk8xx_rtc.c \ rk8xx_regulators.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ regnode_if.h \ regdev_if.h \ ofw_bus_if.h \ opt_platform.h \ .include diff --git a/sys/modules/rockchip/rk808/Makefile b/sys/modules/rockchip/rk808/Makefile index 690be056c7c2..6cf48cb40546 100644 --- a/sys/modules/rockchip/rk808/Makefile +++ b/sys/modules/rockchip/rk808/Makefile @@ -1,21 +1,20 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/iicbus/pmic/rockchip KMOD= rk808 SRCS= rk8xx.c \ rk808.c \ rk8xx_clocks.c \ rk8xx_rtc.c \ rk8xx_regulators.c SRCS+= \ bus_if.h \ device_if.h \ iicbus_if.h \ regnode_if.h \ regdev_if.h \ ofw_bus_if.h \ opt_platform.h \ .include diff --git a/sys/modules/rockchip/rk_dwmmc/Makefile b/sys/modules/rockchip/rk_dwmmc/Makefile index 0d5dd55aa345..b5641675db38 100644 --- a/sys/modules/rockchip/rk_dwmmc/Makefile +++ b/sys/modules/rockchip/rk_dwmmc/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/mmc/host/ KMOD= rk_dwmmc SRCS= dwmmc.c dwmmc_rockchip.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ ofw_bus_if.h .include diff --git a/sys/modules/rockchip/rk_i2c/Makefile b/sys/modules/rockchip/rk_i2c/Makefile index 5ee9035209d4..b90b65f1410d 100644 --- a/sys/modules/rockchip/rk_i2c/Makefile +++ b/sys/modules/rockchip/rk_i2c/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm64/rockchip KMOD= rk_i2c SRCS= rk_i2c.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ iicbus_if.h \ ofw_bus_if.h \ opt_platform.h \ .include diff --git a/sys/modules/rockchip/rk_spi/Makefile b/sys/modules/rockchip/rk_spi/Makefile index f93be8d9a6b3..614ea680ce56 100644 --- a/sys/modules/rockchip/rk_spi/Makefile +++ b/sys/modules/rockchip/rk_spi/Makefile @@ -1,15 +1,14 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm64/rockchip KMOD= rk_spi SRCS= rk_spi.c SRCS+= \ bus_if.h \ clknode_if.h \ device_if.h \ ofw_bus_if.h \ spibus_if.h \ .include diff --git a/sys/modules/rpi_ft5406/Makefile b/sys/modules/rpi_ft5406/Makefile index f5ba45e5bd43..052886cc3c2a 100644 --- a/sys/modules/rpi_ft5406/Makefile +++ b/sys/modules/rpi_ft5406/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/arm/broadcom/bcm2835/ KMOD= rpi_ft5406 SRCS= bcm2835_ft5406.c SRCS+= bus_if.h device_if.h mbox_if.h ofw_bus_if.h .include diff --git a/sys/modules/rtsx/Makefile b/sys/modules/rtsx/Makefile index 7deecf4719b4..5cf75b0c719e 100644 --- a/sys/modules/rtsx/Makefile +++ b/sys/modules/rtsx/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/rtsx KMOD= rtsx SRCS= rtsx.c SRCS+= device_if.h bus_if.h pci_if.h mmcbr_if.h opt_mmccam.h opt_cam.h mmc_sim_if.h .include diff --git a/sys/modules/rtw88/Makefile b/sys/modules/rtw88/Makefile index 2df00358821c..da4233b7c79e 100644 --- a/sys/modules/rtw88/Makefile +++ b/sys/modules/rtw88/Makefile @@ -1,43 +1,42 @@ -# $FreeBSD$ DEVRTW88DIR= ${SRCTOP}/sys/contrib/dev/rtw88 .PATH: ${DEVRTW88DIR} WITH_CONFIG_PM= 0 KMOD= if_rtw88 # Core parts. SRCS= main.c SRCS+= bf.c coex.c debug.c efuse.c fw.c mac.c mac80211.c SRCS+= phy.c ps.c regd.c SRCS+= rx.c sar.c sec.c tx.c util.c .if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0 SRCS+= wow.c CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM} .endif # PCI parts. SRCS+= pci.c SRCS+= rtw8723d.c rtw8723d_table.c rtw8723de.c # 11n SRCS+= rtw8821c.c rtw8821c_table.c rtw8821ce.c # 11ac SRCS+= rtw8822b.c rtw8822b_table.c rtw8822be.c # 11ac SRCS+= rtw8822c.c rtw8822c_table.c rtw8822ce.c # 11ac # Other SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_wlan.h opt_inet6.h opt_inet.h # Helpful after fresh imports. #CFLAGS+= -ferror-limit=0 CFLAGS+= -DKBUILD_MODNAME='"rtw88"' CFLAGS+= -I${DEVRTW88DIR} CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -DCONFIG_RTW88_DEBUG #CFLAGS+= -DCONFIG_RTW88_DEBUGFS .include diff --git a/sys/modules/rtw88fw/Makefile b/sys/modules/rtw88fw/Makefile index 9a3b82b78922..1b92f28e024e 100644 --- a/sys/modules/rtw88fw/Makefile +++ b/sys/modules/rtw88fw/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ SUBDIR= \ rtw8723d \ rtw8821c \ rtw8822b \ rtw8822c \ rtw8822c_wow .include diff --git a/sys/modules/rtw88fw/Makefile.inc b/sys/modules/rtw88fw/Makefile.inc index dfdfd17cb245..b03298a7d563 100644 --- a/sys/modules/rtw88fw/Makefile.inc +++ b/sys/modules/rtw88fw/Makefile.inc @@ -1,17 +1,16 @@ -# $FreeBSD$ # # Common rules for building firmware. Note this gets auto-included # by the subdir Makefile's as a consequence of included bsd.kmod.mk. _NAME= rtw${NAME}_fw.bin IMG= ${_NAME} KMOD= ${_NAME} CLEANFILES+= ${IMG} FIRMWS= ${IMG}:${IMG}:${VERSION} ${IMG}: ${SRCTOP}/sys/contrib/dev/rtw88fw/${IMG} cp ${.ALLSRC} ${.TARGET} diff --git a/sys/modules/rtw88fw/rtw8723d/Makefile b/sys/modules/rtw88fw/rtw8723d/Makefile index 6bc8dcecc365..50a14fce3d21 100644 --- a/sys/modules/rtw88fw/rtw8723d/Makefile +++ b/sys/modules/rtw88fw/rtw8723d/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ VERSION= 48 NAME= 8723d .include diff --git a/sys/modules/rtw88fw/rtw8821c/Makefile b/sys/modules/rtw88fw/rtw8821c/Makefile index d8a7c03e82e9..875dbb2628d6 100644 --- a/sys/modules/rtw88fw/rtw8821c/Makefile +++ b/sys/modules/rtw88fw/rtw8821c/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ VERSION= 2408 NAME= 8821c .include diff --git a/sys/modules/rtw88fw/rtw8822b/Makefile b/sys/modules/rtw88fw/rtw8822b/Makefile index 12a732d3907a..709ef82cd725 100644 --- a/sys/modules/rtw88fw/rtw8822b/Makefile +++ b/sys/modules/rtw88fw/rtw8822b/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ VERSION= 0 NAME= 8822b .include diff --git a/sys/modules/rtw88fw/rtw8822c/Makefile b/sys/modules/rtw88fw/rtw8822c/Makefile index 38313ecaf87e..5fad1210b57f 100644 --- a/sys/modules/rtw88fw/rtw8822c/Makefile +++ b/sys/modules/rtw88fw/rtw8822c/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ VERSION= 9910 NAME= 8822c .include diff --git a/sys/modules/rtw88fw/rtw8822c_wow/Makefile b/sys/modules/rtw88fw/rtw8822c_wow/Makefile index 149d9bdf378e..f1061a4aa151 100644 --- a/sys/modules/rtw88fw/rtw8822c_wow/Makefile +++ b/sys/modules/rtw88fw/rtw8822c_wow/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ VERSION= 994 NAME= 8822c_wow .include diff --git a/sys/modules/rtw89/Makefile b/sys/modules/rtw89/Makefile index 42e9d276c537..256e45fc7098 100644 --- a/sys/modules/rtw89/Makefile +++ b/sys/modules/rtw89/Makefile @@ -1,40 +1,39 @@ -# $FreeBSD$ DEVRTW89DIR= ${SRCTOP}/sys/contrib/dev/rtw89 .PATH: ${DEVRTW89DIR} WITH_CONFIG_PM= 0 KMOD= if_rtw89 SRCS= core.c SRCS+= pci.c SRCS+= chan.c mac80211.c mac.c phy.c fw.c SRCS+= rtw8852a.c rtw8852a_table.c SRCS+= rtw8852a_rfk.c rtw8852a_rfk_table.c SRCS+= rtw8852ae.c SRCS+= rtw8852c.c rtw8852c_table.c SRCS+= rtw8852c_rfk.c rtw8852c_rfk_table.c SRCS+= rtw8852ce.c SRCS+= cam.c efuse.c regd.c sar.c coex.c ps.c ser.c SRCS+= debug.c .if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0 CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM} .endif # Other SRCS+= ${LINUXKPI_GENSRCS} SRCS+= opt_wlan.h opt_inet6.h opt_inet.h CFLAGS+= -DKBUILD_MODNAME='"rtw89"' CFLAGS+= -I${DEVRTW89DIR} CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= -DCONFIG_RTW89_DEBUGMSG #CFLAGS+= -DCONFIG_RTW89_DEBUGFS #CFLAGS+= -ferror-limit=0 .include diff --git a/sys/modules/rtw89fw/Makefile b/sys/modules/rtw89fw/Makefile index 2db828c06f00..7732d9d868ff 100644 --- a/sys/modules/rtw89fw/Makefile +++ b/sys/modules/rtw89fw/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ SUBDIR= \ rtw8852a \ rtw8852c .include diff --git a/sys/modules/rtw89fw/Makefile.inc b/sys/modules/rtw89fw/Makefile.inc index 96ab73502152..349041ea5fff 100644 --- a/sys/modules/rtw89fw/Makefile.inc +++ b/sys/modules/rtw89fw/Makefile.inc @@ -1,17 +1,16 @@ -# $FreeBSD$ # # Common rules for building firmware. Note this gets auto-included # by the subdir Makefile's as a consequence of included bsd.kmod.mk. _NAME= rtw${NAME}_fw.bin IMG= ${_NAME} KMOD= ${_NAME} CLEANFILES+= ${IMG} FIRMWS= ${IMG}:${IMG}:${VERSION} ${IMG}: ${SRCTOP}/sys/contrib/dev/rtw89fw/${IMG} cp ${.ALLSRC} ${.TARGET} diff --git a/sys/modules/rtw89fw/rtw8852a/Makefile b/sys/modules/rtw89fw/rtw8852a/Makefile index 7ed7ad1f6c71..910468870e78 100644 --- a/sys/modules/rtw89fw/rtw8852a/Makefile +++ b/sys/modules/rtw89fw/rtw8852a/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ VERSION= 013360 NAME= 8852a .include diff --git a/sys/modules/rtw89fw/rtw8852c/Makefile b/sys/modules/rtw89fw/rtw8852c/Makefile index 7b871745cde4..b051945017e5 100644 --- a/sys/modules/rtw89fw/rtw8852c/Makefile +++ b/sys/modules/rtw89fw/rtw8852c/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ VERSION= 027200 NAME= 8852c .include diff --git a/sys/modules/rtwn/Makefile b/sys/modules/rtwn/Makefile index 8f72a28a1e05..07a128a9968c 100644 --- a/sys/modules/rtwn/Makefile +++ b/sys/modules/rtwn/Makefile @@ -1,52 +1,51 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/rtwn SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" KMOD = rtwn SRCS = if_rtwn.c if_rtwn_tx.c if_rtwn_rx.c if_rtwn_beacon.c \ if_rtwn_calib.c if_rtwn_cam.c if_rtwn_task.c if_rtwn_efuse.c \ if_rtwn_fw.c if_rtwn_nop.h if_rtwnreg.h if_rtwnvar.h if_rtwn_tx.h \ if_rtwn_rx.h if_rtwn_beacon.h if_rtwn_calib.h if_rtwn_cam.h \ if_rtwn_task.h if_rtwn_efuse.h if_rtwn_fw.h \ bus_if.h device_if.h \ opt_bus.h opt_rtwn.h opt_wlan.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8192c SRCS += r92c_attach.c r92c_beacon.c r92c_calib.c r92c_chan.c r92c_fw.c \ r92c_init.c r92c_llt.c r92c_rf.c r92c_rom.c r92c_rx.c r92c_tx.c \ r92c.h r92c_priv.h r92c_reg.h r92c_var.h r92c_rom_defs.h \ r92c_rom_image.h r92c_fw_cmd.h r92c_rx_desc.h r92c_tx_desc.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8188e SRCS += r88e_beacon.c r88e_calib.c r88e_chan.c r88e_fw.c r88e_init.c \ r88e_led.c r88e_rf.c r88e_rom.c r88e_rx.c r88e_tx.c r88e.h \ r88e_priv.h r88e_reg.h r88e_rom_defs.h r88e_rom_image.h \ r88e_fw_cmd.h r88e_rx_desc.h r88e_tx_desc.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8192e SRCS += r92e_chan.c r92e_fw.c r92e_init.c r92e_led.c r92e_rf.c \ r92e_rom.c r92e_rx.c r92e.h r92e_priv.h r92e_reg.h \ r92e_rom_image.h r92e_rom_defs.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8812a SRCS += r12a_beacon.c r12a_calib.c r12a_caps.c r12a_chan.c r12a_fw.c \ r12a_init.c r12a_led.c r12a_rf.c r12a_rom.c r12a_rx.c r12a_tx.c \ r12a.h r12a_priv.h r12a_reg.h r12a_var.h r12a_rom_defs.h \ r12a_rom_image.h r12a_fw_cmd.h r12a_rx_desc.h r12a_tx_desc.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8821a SRCS += r21a_beacon.c r21a_calib.c r21a_chan.c r21a_fw.c r21a_init.c \ r21a_led.c r21a_rom.c r21a_rx.c r21a.h r21a_priv.h r21a_reg.h opt_rtwn.h: @echo "#define RTWN_DEBUG 1" > ${.TARGET} .if ${MK_SOURCELESS_UCODE} == "no" @echo "#define RTWN_WITHOUT_UCODE 1" >> ${.TARGET} .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/rtwn_pci/Makefile b/sys/modules/rtwn_pci/Makefile index 2753ba42628e..2d6650238c22 100644 --- a/sys/modules/rtwn_pci/Makefile +++ b/sys/modules/rtwn_pci/Makefile @@ -1,30 +1,29 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/rtwn/pci SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" KMOD = if_rtwn_pci SRCS = rtwn_pci_attach.c rtwn_pci_reg.c rtwn_pci_rx.c rtwn_pci_tx.c \ rtwn_pci_attach.h rtwn_pci_reg.h rtwn_pci_rx.h rtwn_pci_tx.h \ rtwn_pci_var.h \ device_if.h bus_if.h pci_if.h \ opt_bus.h opt_rtwn.h opt_wlan.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8192c/pci SRCS += r92ce_attach.c r92ce_calib.c r92ce_fw.c r92ce_init.c r92ce_led.c \ r92ce_rx.c r92ce_tx.c \ r92ce.h r92ce_priv.h r92ce_reg.h r92ce_rx_desc.h r92ce_tx_desc.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8188e/pci SRCS += r88ee_attach.c r88ee_init.c r88ee_rx.c \ r88ee.h r88ee_reg.h opt_rtwn.h: @echo "#define RTWN_DEBUG 1" > ${.TARGET} .if ${MK_SOURCELESS_UCODE} == "no" @echo "#define RTWN_WITHOUT_UCODE 1" >> ${.TARGET} .endif .include diff --git a/sys/modules/rtwn_usb/Makefile b/sys/modules/rtwn_usb/Makefile index 798c3dc129a5..a599f13095e5 100644 --- a/sys/modules/rtwn_usb/Makefile +++ b/sys/modules/rtwn_usb/Makefile @@ -1,40 +1,39 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/rtwn/usb SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" KMOD = if_rtwn_usb SRCS = rtwn_usb_attach.c rtwn_usb_ep.c rtwn_usb_reg.c rtwn_usb_rx.c \ rtwn_usb_tx.c rtwn_usb_attach.h rtwn_usb_ep.h rtwn_usb_reg.h \ rtwn_usb_rx.h rtwn_usb_tx.h rtwn_usb_var.h \ bus_if.h device_if.h \ opt_bus.h opt_rtwn.h opt_usb.h opt_wlan.h usb_if.h usbdevs.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8188e/usb SRCS += r88eu_attach.c r88eu_init.c \ r88eu.h r88eu_reg.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8192c/usb SRCS += r92cu_attach.c r92cu_init.c r92cu_led.c r92cu_rx.c r92cu_tx.c \ r92cu.h r92cu_priv.h r92cu_reg.h r92cu_tx_desc.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8192e/usb SRCS += r92eu_attach.c r92eu_init.c r92eu.h r92eu_reg.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8812a/usb SRCS += r12au_attach.c r12au_init.c r12au_rx.c r12au_tx.c \ r12au.h r12au_reg.h r12au_tx_desc.h .PATH: ${SRCTOP}/sys/dev/rtwn/rtl8821a/usb SRCS += r21au_attach.c r21au_init.c r21au_dfs.c \ r21au.h r21au_reg.h opt_rtwn.h: @echo "#define RTWN_DEBUG 1" > ${.TARGET} .if ${MK_SOURCELESS_UCODE} == "no" @echo "#define RTWN_WITHOUT_UCODE 1" >> ${.TARGET} .endif .include diff --git a/sys/modules/rtwnfw/Makefile b/sys/modules/rtwnfw/Makefile index be6eb0df6e03..f747612c7526 100644 --- a/sys/modules/rtwnfw/Makefile +++ b/sys/modules/rtwnfw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ SUBDIR= rtwnrtl8188eu rtwnrtl8192cT rtwnrtl8192cU rtwnrtl8192eu rtwnrtl8812au \ rtwnrtl8821au rtwnrtl8192cE rtwnrtl8192cEB rtwnrtl8188ee .include diff --git a/sys/modules/rtwnfw/Makefile.inc b/sys/modules/rtwnfw/Makefile.inc index f38e5e41fcd4..7ee2183a23db 100644 --- a/sys/modules/rtwnfw/Makefile.inc +++ b/sys/modules/rtwnfw/Makefile.inc @@ -1,15 +1,14 @@ -# $FreeBSD$ # # Common rules for building firmware. Note this gets auto-included # by the subdir Makefile's as a consequence of included bsd.kmod.mk. _FIRM= ${IMG}.fw CLEANFILES+= ${_FIRM} FIRMWS= ${_FIRM}:${KMOD}:111 # FIRMWARE_LICENSE= realtek ${_FIRM}: ${SRCTOP}/sys/contrib/dev/rtwn/${_FIRM}.uu uudecode -p ${.ALLSRC} > ${.TARGET} diff --git a/sys/modules/rtwnfw/rtwnrtl8188ee/Makefile b/sys/modules/rtwnfw/rtwnrtl8188ee/Makefile index 8464ab39fdf7..4d3ed50d557d 100644 --- a/sys/modules/rtwnfw/rtwnrtl8188ee/Makefile +++ b/sys/modules/rtwnfw/rtwnrtl8188ee/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= rtwn-rtl8188eefw IMG= rtwn-rtl8188eefw .include diff --git a/sys/modules/rtwnfw/rtwnrtl8188eu/Makefile b/sys/modules/rtwnfw/rtwnrtl8188eu/Makefile index 2ec128e651da..df896ca7dcc6 100644 --- a/sys/modules/rtwnfw/rtwnrtl8188eu/Makefile +++ b/sys/modules/rtwnfw/rtwnrtl8188eu/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= rtwn-rtl8188eufw IMG= rtwn-rtl8188eufw .include diff --git a/sys/modules/rtwnfw/rtwnrtl8192cE/Makefile b/sys/modules/rtwnfw/rtwnrtl8192cE/Makefile index 095d782b2897..8b6ddb2a119d 100644 --- a/sys/modules/rtwnfw/rtwnrtl8192cE/Makefile +++ b/sys/modules/rtwnfw/rtwnrtl8192cE/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= rtwn-rtl8192cfwE IMG= rtwn-rtl8192cfwE .include diff --git a/sys/modules/rtwnfw/rtwnrtl8192cEB/Makefile b/sys/modules/rtwnfw/rtwnrtl8192cEB/Makefile index c27f48c92db2..15412322d527 100644 --- a/sys/modules/rtwnfw/rtwnrtl8192cEB/Makefile +++ b/sys/modules/rtwnfw/rtwnrtl8192cEB/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= rtwn-rtl8192cfwE_B IMG= rtwn-rtl8192cfwE_B .include diff --git a/sys/modules/rtwnfw/rtwnrtl8192cT/Makefile b/sys/modules/rtwnfw/rtwnrtl8192cT/Makefile index cca32eaf311e..98349e9b7ca6 100644 --- a/sys/modules/rtwnfw/rtwnrtl8192cT/Makefile +++ b/sys/modules/rtwnfw/rtwnrtl8192cT/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= rtwn-rtl8192cfwT IMG= rtwn-rtl8192cfwT .include diff --git a/sys/modules/rtwnfw/rtwnrtl8192cU/Makefile b/sys/modules/rtwnfw/rtwnrtl8192cU/Makefile index 643a30f5c95f..84a2e1c69c68 100644 --- a/sys/modules/rtwnfw/rtwnrtl8192cU/Makefile +++ b/sys/modules/rtwnfw/rtwnrtl8192cU/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= rtwn-rtl8192cfwU IMG= rtwn-rtl8192cfwU .include diff --git a/sys/modules/rtwnfw/rtwnrtl8192eu/Makefile b/sys/modules/rtwnfw/rtwnrtl8192eu/Makefile index bb32ac87703b..30cfd185c763 100644 --- a/sys/modules/rtwnfw/rtwnrtl8192eu/Makefile +++ b/sys/modules/rtwnfw/rtwnrtl8192eu/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= rtwn-rtl8192eufw IMG= rtwn-rtl8192eufw .include diff --git a/sys/modules/rtwnfw/rtwnrtl8812au/Makefile b/sys/modules/rtwnfw/rtwnrtl8812au/Makefile index 66a83277dc55..cb69e8a17850 100644 --- a/sys/modules/rtwnfw/rtwnrtl8812au/Makefile +++ b/sys/modules/rtwnfw/rtwnrtl8812au/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= rtwn-rtl8812aufw IMG= rtwn-rtl8812aufw .include diff --git a/sys/modules/rtwnfw/rtwnrtl8821au/Makefile b/sys/modules/rtwnfw/rtwnrtl8821au/Makefile index c0d8060697f8..c874a7b93568 100644 --- a/sys/modules/rtwnfw/rtwnrtl8821au/Makefile +++ b/sys/modules/rtwnfw/rtwnrtl8821au/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= rtwn-rtl8821aufw IMG= rtwn-rtl8821aufw .include diff --git a/sys/modules/s3/Makefile b/sys/modules/s3/Makefile index 84755770b53a..153b41332aa3 100644 --- a/sys/modules/s3/Makefile +++ b/sys/modules/s3/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/fb KMOD= s3 SRCS= device_if.h bus_if.h isa_if.h pci_if.h \ s3_pci.c .include diff --git a/sys/modules/safe/Makefile b/sys/modules/safe/Makefile index 21e3454431db..5e79ddfe203f 100644 --- a/sys/modules/safe/Makefile +++ b/sys/modules/safe/Makefile @@ -1,40 +1,39 @@ #- # Copyright (c) 2003 Sam Leffler, Errno Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/dev/safe KMOD = safe SRCS = safe.c opt_safe.h SRCS += device_if.h bus_if.h pci_if.h SRCS += opt_bus.h cryptodev_if.h .if !defined(KERNBUILDDIR) opt_safe.h: echo "#define SAFE_DEBUG 1" > ${.TARGET} .endif .include diff --git a/sys/modules/safexcel/Makefile b/sys/modules/safexcel/Makefile index 985a3f40c282..ce1d1ba6fa56 100644 --- a/sys/modules/safexcel/Makefile +++ b/sys/modules/safexcel/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/safexcel KMOD= safexcel SRCS= safexcel.c SRCS+= bus_if.h cryptodev_if.h device_if.h ofw_bus_if.h .include diff --git a/sys/modules/sbni/Makefile b/sys/modules/sbni/Makefile index 270b592447ec..5f43f4ed289a 100644 --- a/sys/modules/sbni/Makefile +++ b/sys/modules/sbni/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sbni KMOD= if_sbni SRCS= if_sbni.c if_sbni_isa.c if_sbni_pci.c SRCS+= bus_if.h device_if.h isa_if.h pci_if.h .include diff --git a/sys/modules/scc/Makefile b/sys/modules/scc/Makefile index 7d5efd33d515..cd9e5b774224 100644 --- a/sys/modules/scc/Makefile +++ b/sys/modules/scc/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/scc .if ${MACHINE_CPUARCH} == "powerpc" scc_bfe= scc_bfe_macio.c scc_bfe_quicc.c scc_dev_quicc.c .endif KMOD= scc SRCS= ${scc_bfe} scc_core.c scc_if.c scc_if.h \ scc_dev_z8530.c SRCS+= bus_if.h device_if.h ofw_bus_if.h serdev_if.c serdev_if.h .include diff --git a/sys/modules/sctp/Makefile b/sys/modules/sctp/Makefile index 925f6ef5fdfb..4e91d7572ab0 100644 --- a/sys/modules/sctp/Makefile +++ b/sys/modules/sctp/Makefile @@ -1,31 +1,30 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet .PATH: ${SRCTOP}/sys/netinet6 KMOD= sctp SRCS= sctp_asconf.c \ sctp_auth.c \ sctp_bsd_addr.c \ sctp_cc_functions.c \ sctp_crc32.c \ sctp_indata.c \ sctp_input.c \ sctp_kdtrace.c \ sctp_module.c \ sctp_output.c \ sctp_pcb.c \ sctp_peeloff.c \ sctp_ss_functions.c \ sctp_syscalls.c \ sctp_sysctl.c \ sctp_timer.c \ sctp_usrreq.c \ sctp6_usrreq.c \ sctputil.c SRCS+= device_if.h bus_if.h vnode_if.h SRCS+= opt_capsicum.h opt_ktrace.h opt_inet.h opt_inet6.h opt_kern_tls.h \ opt_sctp.h .include diff --git a/sys/modules/sdhci/Makefile b/sys/modules/sdhci/Makefile index 9d8269d86109..cbd58d891a6e 100644 --- a/sys/modules/sdhci/Makefile +++ b/sys/modules/sdhci/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sdhci KMOD= sdhci SRCS= sdhci.c sdhci.h sdhci_if.c sdhci_if.h device_if.h bus_if.h mmcbr_if.h opt_mmccam.h opt_cam.h EXPORT_SYMS= YES .include diff --git a/sys/modules/sdhci_acpi/Makefile b/sys/modules/sdhci_acpi/Makefile index 6b197a98c43a..597471eccefe 100644 --- a/sys/modules/sdhci_acpi/Makefile +++ b/sys/modules/sdhci_acpi/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sdhci KMOD= sdhci_acpi SRCS= sdhci_acpi.c sdhci.h sdhci_if.h SRCS+= acpi_if.h device_if.h bus_if.h pci_if.h mmcbr_if.h SRCS+= opt_acpi.h opt_mmccam.h .include diff --git a/sys/modules/sdhci_pci/Makefile b/sys/modules/sdhci_pci/Makefile index 79d1fd5c171f..b06299193056 100644 --- a/sys/modules/sdhci_pci/Makefile +++ b/sys/modules/sdhci_pci/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sdhci KMOD= sdhci_pci SRCS= sdhci_pci.c sdhci.h sdhci_if.h device_if.h bus_if.h pci_if.h mmcbr_if.h SRCS+= opt_mmccam.h .include diff --git a/sys/modules/sdio/Makefile b/sys/modules/sdio/Makefile index 4ee0e2d5223b..7f5bcb78a845 100644 --- a/sys/modules/sdio/Makefile +++ b/sys/modules/sdio/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${.CURDIR}/../../dev/sdio KMOD= sdio SRCS= sdiob.c sdio_subr.c SRCS+= sdio_if.c SRCS+= device_if.h bus_if.h sdio_if.h opt_cam.h .include diff --git a/sys/modules/sem/Makefile b/sys/modules/sem/Makefile index 5a541a00cb4c..1d3a88e09ebc 100644 --- a/sys/modules/sem/Makefile +++ b/sys/modules/sem/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= sem SRCS= uipc_sem.c opt_posix.h vnode_if.h .include diff --git a/sys/modules/send/Makefile b/sys/modules/send/Makefile index bcf5345cdeee..d90affc7b9fd 100644 --- a/sys/modules/send/Makefile +++ b/sys/modules/send/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet6 KMOD= send SRCS= send.c .include diff --git a/sys/modules/sfxge/Makefile b/sys/modules/sfxge/Makefile index c2f567f5c4b3..e4d2a44d827e 100644 --- a/sys/modules/sfxge/Makefile +++ b/sys/modules/sfxge/Makefile @@ -1,51 +1,50 @@ -# $FreeBSD$ KMOD= sfxge SFXGE= ${SRCTOP}/sys/dev/sfxge SRCS= device_if.h bus_if.h pci_if.h SRCS+= opt_inet.h opt_inet6.h opt_rss.h .PATH: ${SRCTOP}/sys/dev/sfxge SRCS+= sfxge.c sfxge_dma.c sfxge_ev.c SRCS+= sfxge_intr.c sfxge_mcdi.c sfxge_nvram.c SRCS+= sfxge_port.c sfxge_rx.c sfxge_tx.c SRCS+= sfxge.h sfxge_rx.h sfxge_tx.h sfxge_version.h .PATH: ${SRCTOP}/sys/dev/sfxge/common SRCS+= efx_bootcfg.c efx_crc32.c efx_ev.c efx_intr.c efx_lic.c efx_mac.c SRCS+= efx_mcdi.c efx_mon.c efx_nic.c SRCS+= efx_nvram.c efx_phy.c efx_port.c efx_rx.c efx_sram.c efx_tunnel.c SRCS+= efx_tx.c efx_vpd.c efx_filter.c efx_hash.c SRCS+= efsys.h SRCS+= efx.h efx_annote.h efx_check.h efx_impl.h efx_mcdi.h SRCS+= efx_regs.h efx_regs_ef10.h SRCS+= efx_regs_mcdi.h efx_regs_mcdi_aoe.h efx_regs_mcdi_strs.h SRCS+= efx_regs_pci.h efx_types.h SRCS+= efx_phy_ids.h SRCS+= ef10_tlv_layout.h SRCS+= mcdi_mon.c mcdi_mon.h SRCS+= siena_mac.c siena_mcdi.c siena_nic.c siena_nvram.c siena_phy.c SRCS+= siena_sram.c siena_vpd.c SRCS+= siena_flash.h siena_impl.h SRCS+= ef10_ev.c ef10_filter.c ef10_image.c ef10_intr.c ef10_mac.c ef10_mcdi.c SRCS+= ef10_nic.c ef10_nvram.c ef10_phy.c ef10_rx.c ef10_tx.c ef10_vpd.c SRCS+= ef10_impl.h ef10_signed_image_layout.h SRCS+= hunt_nic.c SRCS+= hunt_impl.h SRCS+= medford_nic.c SRCS+= medford_impl.h SRCS+= medford2_nic.c SRCS+= medford2_impl.h # Extra debug checks #CFLAGS += -DDEBUG=1 .include diff --git a/sys/modules/sge/Makefile b/sys/modules/sge/Makefile index bd741161b8f5..d4032dfab29b 100644 --- a/sys/modules/sge/Makefile +++ b/sys/modules/sge/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sge KMOD= if_sge SRCS= if_sge.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h .include diff --git a/sys/modules/sgx/Makefile b/sys/modules/sgx/Makefile index 7e2a2f87b33a..504fa6d2e299 100644 --- a/sys/modules/sgx/Makefile +++ b/sys/modules/sgx/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/amd64/sgx KMOD= sgx SRCS= sgx.c sgxvar.h sgx_support.S SRCS+= opt_hwpmc_hooks.h opt_kstack_pages.h DPSRCS= assym.inc sgx_support.o: assym.inc ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.IMPSRC} -o ${.TARGET} .include diff --git a/sys/modules/sgx_linux/Makefile b/sys/modules/sgx_linux/Makefile index 0076c08d795a..366918d3ab56 100644 --- a/sys/modules/sgx_linux/Makefile +++ b/sys/modules/sgx_linux/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/amd64/sgx KMOD= sgx_linux SRCS= sgx_linux.c .include diff --git a/sys/modules/siftr/Makefile b/sys/modules/siftr/Makefile index eac884ae6bab..5bb038bf542f 100644 --- a/sys/modules/siftr/Makefile +++ b/sys/modules/siftr/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet KMOD= siftr SRCS= siftr.c opt_kern_tls.h # Uncomment to add IPv6 support #CFLAGS+=-DSIFTR_IPV6 .include diff --git a/sys/modules/siis/Makefile b/sys/modules/siis/Makefile index 5c85b948c128..0027fbaa3734 100644 --- a/sys/modules/siis/Makefile +++ b/sys/modules/siis/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/siis KMOD= siis SRCS= siis.c siis.h device_if.h bus_if.h pci_if.h opt_cam.h .include diff --git a/sys/modules/sis/Makefile b/sys/modules/sis/Makefile index 47a679fe2a24..3ef619d9999d 100644 --- a/sys/modules/sis/Makefile +++ b/sys/modules/sis/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sis KMOD= if_sis SRCS= if_sis.c device_if.h bus_if.h pci_if.h SRCS+= miibus_if.h opt_platform.h .include diff --git a/sys/modules/sk/Makefile b/sys/modules/sk/Makefile index 779428d397f2..1f7b477d9b68 100644 --- a/sys/modules/sk/Makefile +++ b/sys/modules/sk/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sk KMOD= if_sk SRCS= if_sk.c device_if.h bus_if.h pci_if.h SRCS+= miibus_if.h opt_platform.h .include diff --git a/sys/modules/smartpqi/Makefile b/sys/modules/smartpqi/Makefile index af353a3c8e60..3666698eef73 100644 --- a/sys/modules/smartpqi/Makefile +++ b/sys/modules/smartpqi/Makefile @@ -1,12 +1,11 @@ # 5/10/2017 -# $FreeBSD$ KMOD = smartpqi .PATH: ${SRCTOP}/sys/dev/${KMOD} SRCS=smartpqi_mem.c smartpqi_intr.c smartpqi_main.c smartpqi_cam.c smartpqi_ioctl.c smartpqi_misc.c smartpqi_sis.c smartpqi_init.c smartpqi_queue.c smartpqi_tag.c smartpqi_cmd.c smartpqi_request.c smartpqi_response.c smartpqi_event.c smartpqi_helper.c smartpqi_discovery.c SRCS+= device_if.h bus_if.h pci_if.h opt_scsi.h opt_cam.h .include diff --git a/sys/modules/smbfs/Makefile b/sys/modules/smbfs/Makefile index 850650efccb7..703343eb1b41 100644 --- a/sys/modules/smbfs/Makefile +++ b/sys/modules/smbfs/Makefile @@ -1,35 +1,34 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/crypto/des \ ${SRCTOP}/sys/crypto/des/arch/${MACHINE_CPUARCH} \ ${SRCTOP}/sys/kern \ ${SRCTOP}/sys/libkern \ ${SRCTOP}/sys/netsmb \ ${SRCTOP}/sys/fs/smbfs KMOD= smbfs SRCS= vnode_if.h \ opt_inet.h opt_netsmb.h \ iconv_converter_if.h \ md4c.c \ smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \ smb_usr.c smb_crypt.c smb_iod.c \ smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \ smbfs_subr.c smbfs_smb.c # NETSMBCRYPTO SRCS+= des_ecb.c des_setkey.c .if ${MACHINE_CPUARCH} == "i386" SRCS+= des_enc.S .else SRCS+= des_enc.c .endif CFLAGS+= ${KDEBUG} .if defined(VNPRINT) CFLAGS+= -DVNPRINT .endif .include diff --git a/sys/modules/snp/Makefile b/sys/modules/snp/Makefile index 10ae7b42b8ee..d963b8e10e6f 100644 --- a/sys/modules/snp/Makefile +++ b/sys/modules/snp/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/snp KMOD= snp SRCS= snp.c .include diff --git a/sys/modules/sound/Makefile b/sys/modules/sound/Makefile index d6867331eb67..41314d322c9d 100644 --- a/sys/modules/sound/Makefile +++ b/sys/modules/sound/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ SUBDIR = SUBDIR += sound SUBDIR += driver .include diff --git a/sys/modules/sound/Makefile.inc b/sys/modules/sound/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/sound/Makefile.inc +++ b/sys/modules/sound/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/sound/driver/Makefile b/sys/modules/sound/driver/Makefile index 94fdd23d3154..af5e3259aa00 100644 --- a/sys/modules/sound/driver/Makefile +++ b/sys/modules/sound/driver/Makefile @@ -1,27 +1,26 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" # Modules that include binary-only blobs of microcode should be selectable by # MK_SOURCELESS_UCODE option (see below). SUBDIR= als4000 atiixp cs4281 ${_csa} emu10k1 emu10kx SUBDIR+= envy24 envy24ht es137x fm801 hda hdspe ich SUBDIR+= ${_maestro3} neomagic solo spicds t4dwave via8233 SUBDIR+= via82c686 vibes driver uaudio .if ${MK_SOURCELESS_UCODE} != "no" _csa= csa _maestro3= maestro3 .endif .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" SUBDIR+= cmi .endif .if ${MACHINE_CPUARCH} == "powerpc" SUBDIR+= ai2s davbus .endif .include diff --git a/sys/modules/sound/driver/Makefile.inc b/sys/modules/sound/driver/Makefile.inc index 63bf7601dc36..980084ed099d 100644 --- a/sys/modules/sound/driver/Makefile.inc +++ b/sys/modules/sound/driver/Makefile.inc @@ -1,5 +1,4 @@ -# $FreeBSD$ SRCS+= ac97_if.h channel_if.h feeder_if.h mixer_if.h .include "../Makefile.inc" diff --git a/sys/modules/sound/driver/ai2s/Makefile b/sys/modules/sound/driver/ai2s/Makefile index 4a5267a42da3..76c00494bd80 100644 --- a/sys/modules/sound/driver/ai2s/Makefile +++ b/sys/modules/sound/driver/ai2s/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/macio KMOD= snd_ai2s SRCS= device_if.h bus_if.h ofw_bus_if.h SRCS+= channel_if.h feeder_if.h mixer_if.h SRCS+= onyx.c snapper.c tumbler.c aoa.c i2s.c .include diff --git a/sys/modules/sound/driver/als4000/Makefile b/sys/modules/sound/driver/als4000/Makefile index ab18b650a44d..a81692cb1838 100644 --- a/sys/modules/sound/driver/als4000/Makefile +++ b/sys/modules/sound/driver/als4000/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_als4000 SRCS= device_if.h bus_if.h pci_if.h SRCS+= als4000.c .include diff --git a/sys/modules/sound/driver/atiixp/Makefile b/sys/modules/sound/driver/atiixp/Makefile index 00b4c78ec42c..7a500dd7e05d 100644 --- a/sys/modules/sound/driver/atiixp/Makefile +++ b/sys/modules/sound/driver/atiixp/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_atiixp SRCS= device_if.h bus_if.h pci_if.h SRCS+= atiixp.c .include diff --git a/sys/modules/sound/driver/cmi/Makefile b/sys/modules/sound/driver/cmi/Makefile index 4c7af371ce58..ece46bf80fe9 100644 --- a/sys/modules/sound/driver/cmi/Makefile +++ b/sys/modules/sound/driver/cmi/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_cmi SRCS= device_if.h bus_if.h pci_if.h SRCS+= mpufoi_if.h SRCS+= cmi.c .include diff --git a/sys/modules/sound/driver/cs4281/Makefile b/sys/modules/sound/driver/cs4281/Makefile index da5161cc2a2a..d521d3240ff5 100644 --- a/sys/modules/sound/driver/cs4281/Makefile +++ b/sys/modules/sound/driver/cs4281/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_cs4281 SRCS= device_if.h bus_if.h pci_if.h SRCS+= cs4281.c .include diff --git a/sys/modules/sound/driver/csa/Makefile b/sys/modules/sound/driver/csa/Makefile index b1a3f1fb9df4..0cc2a3da16a6 100644 --- a/sys/modules/sound/driver/csa/Makefile +++ b/sys/modules/sound/driver/csa/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_csa SRCS= device_if.h bus_if.h mpufoi_if.h pci_if.h SRCS+= csa.c csamidi.c csapcm.c .include diff --git a/sys/modules/sound/driver/davbus/Makefile b/sys/modules/sound/driver/davbus/Makefile index 5ea77b3032fc..12df61b69d0c 100644 --- a/sys/modules/sound/driver/davbus/Makefile +++ b/sys/modules/sound/driver/davbus/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/macio KMOD= snd_davbus SRCS= device_if.h bus_if.h ofw_bus_if.h SRCS+= channel_if.h feeder_if.h mixer_if.h SRCS+= aoa.c davbus.c .include diff --git a/sys/modules/sound/driver/driver/Makefile b/sys/modules/sound/driver/driver/Makefile index 8aea6ff00acf..ce35900039c2 100644 --- a/sys/modules/sound/driver/driver/Makefile +++ b/sys/modules/sound/driver/driver/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound KMOD= snd_driver SRCS= device_if.h bus_if.h SRCS+= driver.c .include diff --git a/sys/modules/sound/driver/emu10k1/Makefile b/sys/modules/sound/driver/emu10k1/Makefile index 2180fe8c366a..4ab78cee3bb3 100644 --- a/sys/modules/sound/driver/emu10k1/Makefile +++ b/sys/modules/sound/driver/emu10k1/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_emu10k1 SRCS= device_if.h bus_if.h pci_if.h SRCS+= mpufoi_if.h SRCS+= emu10k1.c .include diff --git a/sys/modules/sound/driver/emu10kx/Makefile b/sys/modules/sound/driver/emu10kx/Makefile index 51394a055b57..096ce2bdb6e1 100644 --- a/sys/modules/sound/driver/emu10kx/Makefile +++ b/sys/modules/sound/driver/emu10kx/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_emu10kx SRCS= device_if.h bus_if.h pci_if.h SRCS+= isa_if.h channel_if.h ac97_if.h mixer_if.h mpufoi_if.h SRCS+= vnode_if.h # Master, PCM and MIDI devices SRCS+= emu10kx.c SRCS+= emu10kx-pcm.c SRCS+= emu10kx-midi.c .include diff --git a/sys/modules/sound/driver/envy24/Makefile b/sys/modules/sound/driver/envy24/Makefile index 28c37ec41b30..c2c0e171a47d 100644 --- a/sys/modules/sound/driver/envy24/Makefile +++ b/sys/modules/sound/driver/envy24/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_envy24 SRCS= device_if.h bus_if.h pci_if.h SRCS+= envy24.c .include diff --git a/sys/modules/sound/driver/envy24ht/Makefile b/sys/modules/sound/driver/envy24ht/Makefile index d71295826037..179352c39ae2 100644 --- a/sys/modules/sound/driver/envy24ht/Makefile +++ b/sys/modules/sound/driver/envy24ht/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_envy24ht SRCS= device_if.h bus_if.h pci_if.h SRCS+= envy24ht.c .include diff --git a/sys/modules/sound/driver/es137x/Makefile b/sys/modules/sound/driver/es137x/Makefile index 3989c6656981..5f08e6d3566b 100644 --- a/sys/modules/sound/driver/es137x/Makefile +++ b/sys/modules/sound/driver/es137x/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_es137x SRCS= device_if.h bus_if.h pci_if.h SRCS+= es137x.c .include diff --git a/sys/modules/sound/driver/fm801/Makefile b/sys/modules/sound/driver/fm801/Makefile index 864033d75e4a..826eaf9522b3 100644 --- a/sys/modules/sound/driver/fm801/Makefile +++ b/sys/modules/sound/driver/fm801/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_fm801 SRCS= device_if.h bus_if.h pci_if.h SRCS+= fm801.c .include diff --git a/sys/modules/sound/driver/hda/Makefile b/sys/modules/sound/driver/hda/Makefile index 5646724efd94..f1dbe405410a 100644 --- a/sys/modules/sound/driver/hda/Makefile +++ b/sys/modules/sound/driver/hda/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci/hda KMOD= snd_hda SRCS= device_if.h bus_if.h pci_if.h channel_if.h mixer_if.h hdac_if.h SRCS+= hdaa.c hdaa.h hdaa_patches.c hdac.c hdac_if.h hdac_if.c SRCS+= hdacc.c hdac_private.h hdac_reg.h hda_reg.h hdac.h .include diff --git a/sys/modules/sound/driver/hdspe/Makefile b/sys/modules/sound/driver/hdspe/Makefile index 9ee5abba1ca2..c7be05fce737 100644 --- a/sys/modules/sound/driver/hdspe/Makefile +++ b/sys/modules/sound/driver/hdspe/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_hdspe SRCS= device_if.h bus_if.h pci_if.h SRCS+= hdspe.c hdspe-pcm.c hdspe.h .include diff --git a/sys/modules/sound/driver/ich/Makefile b/sys/modules/sound/driver/ich/Makefile index def838a320cb..b68e872cbf6e 100644 --- a/sys/modules/sound/driver/ich/Makefile +++ b/sys/modules/sound/driver/ich/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD = snd_ich SRCS = device_if.h bus_if.h pci_if.h SRCS += ich.c .include diff --git a/sys/modules/sound/driver/maestro3/Makefile b/sys/modules/sound/driver/maestro3/Makefile index 332f01eef9cc..db6c21035ff0 100644 --- a/sys/modules/sound/driver/maestro3/Makefile +++ b/sys/modules/sound/driver/maestro3/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_maestro3 SRCS= device_if.h bus_if.h pci_if.h SRCS+= maestro3.c CFLAGS+= -Wall -DM3_DEBUG_LEVEL=-1 .include diff --git a/sys/modules/sound/driver/neomagic/Makefile b/sys/modules/sound/driver/neomagic/Makefile index 17d0c4c29471..7a8befaba6f1 100644 --- a/sys/modules/sound/driver/neomagic/Makefile +++ b/sys/modules/sound/driver/neomagic/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_neomagic SRCS= device_if.h bus_if.h pci_if.h SRCS+= neomagic.c .include diff --git a/sys/modules/sound/driver/solo/Makefile b/sys/modules/sound/driver/solo/Makefile index cdd79723087d..a429db8d29e2 100644 --- a/sys/modules/sound/driver/solo/Makefile +++ b/sys/modules/sound/driver/solo/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_solo SRCS= device_if.h bus_if.h pci_if.h SRCS+= solo.c .include diff --git a/sys/modules/sound/driver/spicds/Makefile b/sys/modules/sound/driver/spicds/Makefile index f271dae20b2e..bf9bc86dc106 100644 --- a/sys/modules/sound/driver/spicds/Makefile +++ b/sys/modules/sound/driver/spicds/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_spicds SRCS= device_if.h bus_if.h isa_if.h pci_if.h SRCS+= spicds.c EXPORT_SYMS= YES .include diff --git a/sys/modules/sound/driver/t4dwave/Makefile b/sys/modules/sound/driver/t4dwave/Makefile index 1deff4a84efe..4aaf1bd1d903 100644 --- a/sys/modules/sound/driver/t4dwave/Makefile +++ b/sys/modules/sound/driver/t4dwave/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_t4dwave SRCS= device_if.h bus_if.h pci_if.h SRCS+= t4dwave.c .include diff --git a/sys/modules/sound/driver/uaudio/Makefile b/sys/modules/sound/driver/uaudio/Makefile index e725436adb34..a246f23afffb 100644 --- a/sys/modules/sound/driver/uaudio/Makefile +++ b/sys/modules/sound/driver/uaudio/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/usb KMOD= snd_uaudio SRCS= bus_if.h device_if.h usb_if.h vnode_if.h SRCS+= opt_usb.h opt_bus.h feeder_if.h channel_if.h usbdevs.h SRCS+= uaudio_pcm.c uaudio.c .include diff --git a/sys/modules/sound/driver/via8233/Makefile b/sys/modules/sound/driver/via8233/Makefile index 18840d808b8e..07832592c83a 100644 --- a/sys/modules/sound/driver/via8233/Makefile +++ b/sys/modules/sound/driver/via8233/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_via8233 SRCS= device_if.h bus_if.h pci_if.h SRCS+= via8233.c .include diff --git a/sys/modules/sound/driver/via82c686/Makefile b/sys/modules/sound/driver/via82c686/Makefile index 0abb86b76ca1..acf83ce7814c 100644 --- a/sys/modules/sound/driver/via82c686/Makefile +++ b/sys/modules/sound/driver/via82c686/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_via82c686 SRCS= device_if.h bus_if.h pci_if.h SRCS+= via82c686.c .include diff --git a/sys/modules/sound/driver/vibes/Makefile b/sys/modules/sound/driver/vibes/Makefile index a81720803e6d..53d1763d0cd5 100644 --- a/sys/modules/sound/driver/vibes/Makefile +++ b/sys/modules/sound/driver/vibes/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sound/pci KMOD= snd_vibes SRCS= device_if.h bus_if.h pci_if.h SRCS+= vibes.c .include diff --git a/sys/modules/sound/sound/Makefile b/sys/modules/sound/sound/Makefile index 647b9f324f9f..5dd628d9f342 100644 --- a/sys/modules/sound/sound/Makefile +++ b/sys/modules/sound/sound/Makefile @@ -1,37 +1,36 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .PATH: ${SYSDIR}/dev/sound .PATH: ${SYSDIR}/dev/sound/pcm .PATH: ${SYSDIR}/dev/sound/midi .PATH: ${SYSDIR}/dev/sound/isa KMOD= sound SRCS= device_if.h bus_if.h isa_if.h pci_if.h opt_isa.h SRCS+= ac97_if.h channel_if.h feeder_if.h mixer_if.h SRCS+= ac97_if.c channel_if.c feeder_if.c mixer_if.c SRCS+= feeder.c feeder_rate.c feeder_volume.c SRCS+= feeder_chain.c feeder_eq.c feeder_format.c SRCS+= feeder_matrix.c feeder_mixer.c SRCS+= feeder_eq_gen.h feeder_rate_gen.h snd_fxdiv_gen.h SRCS+= mpu_if.h mpufoi_if.h synth_if.h SRCS+= mpu_if.c mpufoi_if.c synth_if.c SRCS+= ac97.c ac97_patch.c buffer.c channel.c clone.c dsp.c SRCS+= mixer.c sndstat.c sound.c unit.c vchan.c SRCS+= midi.c mpu401.c sequencer.c feeder_eq_gen.h: ${SYSDIR}/tools/sound/feeder_eq_mkfilter.awk ${AWK} -f ${SYSDIR}/tools/sound/feeder_eq_mkfilter.awk -- ${FEEDER_EQ_PRESETS} > ${.TARGET} feeder_rate_gen.h: ${SYSDIR}/tools/sound/feeder_rate_mkfilter.awk ${AWK} -f ${SYSDIR}/tools/sound/feeder_rate_mkfilter.awk -- ${FEEDER_RATE_PRESETS} > ${.TARGET} snd_fxdiv_gen.h: ${SYSDIR}/tools/sound/snd_fxdiv_gen.awk ${AWK} -f ${SYSDIR}/tools/sound/snd_fxdiv_gen.awk -- > ${.TARGET} CLEANFILES+= feeder_eq_gen.h feeder_rate_gen.h snd_fxdiv_gen.h EXPORT_SYMS= YES # XXX evaluate .include diff --git a/sys/modules/speaker/Makefile b/sys/modules/speaker/Makefile index 9dcb5d964530..91b3312c2301 100644 --- a/sys/modules/speaker/Makefile +++ b/sys/modules/speaker/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/speaker KMOD= speaker SRCS= spkr.c SRCS+= bus_if.h device_if.h isa_if.h .include diff --git a/sys/modules/spi/Makefile b/sys/modules/spi/Makefile index 5aa6120806ca..9872a3a8899c 100644 --- a/sys/modules/spi/Makefile +++ b/sys/modules/spi/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ SUBDIR = \ ../spigen \ at45d \ mx25l \ spibus \ .include diff --git a/sys/modules/spi/at45d/Makefile b/sys/modules/spi/at45d/Makefile index 1fa3d2890137..a6e27b79a339 100644 --- a/sys/modules/spi/at45d/Makefile +++ b/sys/modules/spi/at45d/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/flash KMOD= at45d SRCS= at45d.c # Generated files... SRCS+= \ bus_if.h \ device_if.h \ opt_platform.h \ spibus_if.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/spi/mx25l/Makefile b/sys/modules/spi/mx25l/Makefile index d75b93040871..0c52f1f760c0 100644 --- a/sys/modules/spi/mx25l/Makefile +++ b/sys/modules/spi/mx25l/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/flash KMOD= mx25l SRCS= mx25l.c # Generated files... SRCS+= \ bus_if.h \ device_if.h \ opt_platform.h \ spibus_if.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif .include diff --git a/sys/modules/spi/spibus/Makefile b/sys/modules/spi/spibus/Makefile index 7ba80d50e0ff..834fbdb2717b 100644 --- a/sys/modules/spi/spibus/Makefile +++ b/sys/modules/spi/spibus/Makefile @@ -1,27 +1,26 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/spibus KMOD= spibus SRCS= spibus.c .if !empty(OPT_FDT) SRCS+= ofw_spibus.c ofw_bus_if.h .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" SRCS+= acpi_spibus.c opt_acpi.h acpi_if.h .endif # Generated files... SRCS+= \ bus_if.h \ device_if.h \ opt_platform.h \ spibus_if.c \ spibus_if.h \ EXPORT_SYMS= YES .include diff --git a/sys/modules/spigen/Makefile b/sys/modules/spigen/Makefile index 5ff4805399b3..e23d7dd214bf 100644 --- a/sys/modules/spigen/Makefile +++ b/sys/modules/spigen/Makefile @@ -1,21 +1,20 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/spibus KMOD= spigen SRCS= spigen.c # Generated files... SRCS+= \ bus_if.h \ device_if.h \ opt_platform.h \ opt_spi.h \ spibus_if.h \ .if !empty(OPT_FDT) SRCS+= ofw_bus_if.h .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/splash/Makefile b/sys/modules/splash/Makefile index 3b21d86f9e5e..8af6313e578f 100644 --- a/sys/modules/splash/Makefile +++ b/sys/modules/splash/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ SUBDIR= bmp pcx txt .include diff --git a/sys/modules/splash/Makefile.inc b/sys/modules/splash/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/splash/Makefile.inc +++ b/sys/modules/splash/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/splash/bmp/Makefile b/sys/modules/splash/bmp/Makefile index 83a3fae29f77..8bb4e09590e5 100644 --- a/sys/modules/splash/bmp/Makefile +++ b/sys/modules/splash/bmp/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/fb KMOD= splash_bmp SRCS= splash_bmp.c .include diff --git a/sys/modules/splash/pcx/Makefile b/sys/modules/splash/pcx/Makefile index 4317972cc059..e29d24ab69a4 100644 --- a/sys/modules/splash/pcx/Makefile +++ b/sys/modules/splash/pcx/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/fb KMOD= splash_pcx SRCS= splash_pcx.c .include diff --git a/sys/modules/splash/txt/Makefile b/sys/modules/splash/txt/Makefile index d99143369aef..e55632edab1c 100644 --- a/sys/modules/splash/txt/Makefile +++ b/sys/modules/splash/txt/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/fb KMOD= splash_txt SRCS= splash_txt.c .include diff --git a/sys/modules/ste/Makefile b/sys/modules/ste/Makefile index 143ccc988db4..552d84f2c91e 100644 --- a/sys/modules/ste/Makefile +++ b/sys/modules/ste/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/ste KMOD= if_ste SRCS= if_ste.c device_if.h bus_if.h pci_if.h SRCS+= miibus_if.h opt_platform.h .include diff --git a/sys/modules/stge/Makefile b/sys/modules/stge/Makefile index dea48430b0db..31bdb03fde2e 100644 --- a/sys/modules/stge/Makefile +++ b/sys/modules/stge/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/stge KMOD= if_stge SRCS= if_stge.c device_if.h bus_if.h pci_if.h SRCS+= miibus_if.h opt_platform.h .include diff --git a/sys/modules/sume/Makefile b/sys/modules/sume/Makefile index 35f3abd6ca65..f10e26a71532 100644 --- a/sys/modules/sume/Makefile +++ b/sys/modules/sume/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sume KMOD= if_sume SRCS= if_sume.c SRCS+= device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/superio/Makefile b/sys/modules/superio/Makefile index 064c39863566..1936c86395ba 100644 --- a/sys/modules/superio/Makefile +++ b/sys/modules/superio/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${.CURDIR}/../../dev/superio KMOD= superio SRCS= superio.c SRCS+= device_if.h bus_if.h isa_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/sym/Makefile b/sys/modules/sym/Makefile index 3701b1451872..a3ca47eee715 100644 --- a/sys/modules/sym/Makefile +++ b/sys/modules/sym/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/sym KMOD= sym SRCS= sym_hipd.c opt_sym.h opt_cam.h opt_scsi.h SRCS+= device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/syscons/Makefile b/sys/modules/syscons/Makefile index 746c19686768..83c2e34bfcb7 100644 --- a/sys/modules/syscons/Makefile +++ b/sys/modules/syscons/Makefile @@ -1,17 +1,16 @@ -# $FreeBSD$ SUBDIR= beastie \ blank \ daemon \ dragon \ fade \ fire \ green \ logo \ plasma \ rain \ snake \ star \ warp .include diff --git a/sys/modules/syscons/Makefile.inc b/sys/modules/syscons/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/syscons/Makefile.inc +++ b/sys/modules/syscons/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/syscons/beastie/Makefile b/sys/modules/syscons/beastie/Makefile index 03fe93f1c4f5..263f2940f69b 100644 --- a/sys/modules/syscons/beastie/Makefile +++ b/sys/modules/syscons/beastie/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/logo KMOD= beastie_saver SRCS= beastie.c logo_saver.c CFLAGS+=-DBEASTIE_LOGO .include diff --git a/sys/modules/syscons/blank/Makefile b/sys/modules/syscons/blank/Makefile index 29ec9fc73e57..763d895cb32b 100644 --- a/sys/modules/syscons/blank/Makefile +++ b/sys/modules/syscons/blank/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/blank KMOD= blank_saver SRCS= blank_saver.c .include diff --git a/sys/modules/syscons/daemon/Makefile b/sys/modules/syscons/daemon/Makefile index cdbe0116ac81..296fc734513a 100644 --- a/sys/modules/syscons/daemon/Makefile +++ b/sys/modules/syscons/daemon/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/daemon KMOD= daemon_saver SRCS= daemon_saver.c .include diff --git a/sys/modules/syscons/dragon/Makefile b/sys/modules/syscons/dragon/Makefile index f72d534fec21..6f2b2fbac27f 100644 --- a/sys/modules/syscons/dragon/Makefile +++ b/sys/modules/syscons/dragon/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/dragon KMOD= dragon_saver SRCS= dragon_saver.c .include diff --git a/sys/modules/syscons/fade/Makefile b/sys/modules/syscons/fade/Makefile index 2121debb3ffe..e04df9da9fe7 100644 --- a/sys/modules/syscons/fade/Makefile +++ b/sys/modules/syscons/fade/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/fade KMOD= fade_saver SRCS= fade_saver.c .include diff --git a/sys/modules/syscons/fire/Makefile b/sys/modules/syscons/fire/Makefile index 86c589e7de9e..83c5cd60a04d 100644 --- a/sys/modules/syscons/fire/Makefile +++ b/sys/modules/syscons/fire/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/fire KMOD= fire_saver SRCS= fire_saver.c .include diff --git a/sys/modules/syscons/green/Makefile b/sys/modules/syscons/green/Makefile index 5ae5ca94a062..be5db35f864a 100644 --- a/sys/modules/syscons/green/Makefile +++ b/sys/modules/syscons/green/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/green KMOD= green_saver SRCS= green_saver.c .include diff --git a/sys/modules/syscons/logo/Makefile b/sys/modules/syscons/logo/Makefile index b32f48240fe3..0a3e9c6c2af7 100644 --- a/sys/modules/syscons/logo/Makefile +++ b/sys/modules/syscons/logo/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/logo KMOD= logo_saver SRCS= logo_saver.c logo.c .include diff --git a/sys/modules/syscons/plasma/Makefile b/sys/modules/syscons/plasma/Makefile index 6864a5e4ecb2..dd47c7e1e214 100644 --- a/sys/modules/syscons/plasma/Makefile +++ b/sys/modules/syscons/plasma/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/plasma KMOD= plasma_saver SRCS= fp16.c plasma_saver.c .include diff --git a/sys/modules/syscons/rain/Makefile b/sys/modules/syscons/rain/Makefile index d0964b8b730d..8041246c1260 100644 --- a/sys/modules/syscons/rain/Makefile +++ b/sys/modules/syscons/rain/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/rain KMOD= rain_saver SRCS= rain_saver.c .include diff --git a/sys/modules/syscons/snake/Makefile b/sys/modules/syscons/snake/Makefile index ab04b750cd4a..23bd60b6b626 100644 --- a/sys/modules/syscons/snake/Makefile +++ b/sys/modules/syscons/snake/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/snake KMOD= snake_saver SRCS= snake_saver.c .include diff --git a/sys/modules/syscons/star/Makefile b/sys/modules/syscons/star/Makefile index 771d46459b71..25ece2cb02fe 100644 --- a/sys/modules/syscons/star/Makefile +++ b/sys/modules/syscons/star/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/star KMOD= star_saver SRCS= star_saver.c .include diff --git a/sys/modules/syscons/warp/Makefile b/sys/modules/syscons/warp/Makefile index 5fa2ab6ccbc1..e3970032de25 100644 --- a/sys/modules/syscons/warp/Makefile +++ b/sys/modules/syscons/warp/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/syscons/warp KMOD= warp_saver SRCS= warp_saver.c .include diff --git a/sys/modules/sysvipc/Makefile b/sys/modules/sysvipc/Makefile index 6c65857836d2..fc9e27c81732 100644 --- a/sys/modules/sysvipc/Makefile +++ b/sys/modules/sysvipc/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ SUBDIR= sysvmsg sysvsem sysvshm .include diff --git a/sys/modules/sysvipc/Makefile.inc b/sys/modules/sysvipc/Makefile.inc index 265f86d1ed55..d3b5cbd3a79b 100644 --- a/sys/modules/sysvipc/Makefile.inc +++ b/sys/modules/sysvipc/Makefile.inc @@ -1,3 +1,2 @@ -# $FreeBSD$ .include "../Makefile.inc" diff --git a/sys/modules/sysvipc/sysvmsg/Makefile b/sys/modules/sysvipc/sysvmsg/Makefile index 84cbc70cde48..c31e69524722 100644 --- a/sys/modules/sysvipc/sysvmsg/Makefile +++ b/sys/modules/sysvipc/sysvmsg/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= sysvmsg SRCS= sysv_msg.c opt_sysvipc.h EXPORT_SYMS= YES .include diff --git a/sys/modules/sysvipc/sysvsem/Makefile b/sys/modules/sysvipc/sysvsem/Makefile index 89509341c2e5..516d275f41e5 100644 --- a/sys/modules/sysvipc/sysvsem/Makefile +++ b/sys/modules/sysvipc/sysvsem/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= sysvsem SRCS= sysv_sem.c opt_sysvipc.h EXPORT_SYMS= YES .include diff --git a/sys/modules/sysvipc/sysvshm/Makefile b/sys/modules/sysvipc/sysvshm/Makefile index 654d22aeda55..6add9050736a 100644 --- a/sys/modules/sysvipc/sysvshm/Makefile +++ b/sys/modules/sysvipc/sysvshm/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/kern KMOD= sysvshm SRCS= sysv_shm.c opt_sysvipc.h EXPORT_SYMS= YES .include diff --git a/sys/modules/tarfs/Makefile b/sys/modules/tarfs/Makefile index 369f17b3f643..1510d2ea58b5 100644 --- a/sys/modules/tarfs/Makefile +++ b/sys/modules/tarfs/Makefile @@ -1,23 +1,22 @@ -# $FreeBSD$ .PATH: ${.CURDIR:H:H}/fs/tarfs KMOD= tarfs SRCS= opt_tarfs.h \ vnode_if.h \ tarfs_io.c \ tarfs_subr.c \ tarfs_vnops.c \ tarfs_vfsops.c .if !defined(KERNBUILDDIR) CFLAGS+= -DZSTDIO .ifdef TARFS_DEBUG CFLAGS+= -DTARFS_DEBUG .endif .endif SRCS+= opt_zstdio.h CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/lib/freebsd .include diff --git a/sys/modules/tcp/Makefile b/sys/modules/tcp/Makefile index 3def63255fd9..8f89977b5b69 100644 --- a/sys/modules/tcp/Makefile +++ b/sys/modules/tcp/Makefile @@ -1,24 +1,23 @@ # -# $FreeBSD$ # .include SUBDIR= \ ${_tcp_bbr} \ ${_tcp_rack} \ ${_tcpmd5} \ .if ${MK_EXTRA_TCP_STACKS} != "no" || defined(ALL_MODULES) _tcp_bbr= bbr _tcp_rack= rack .endif .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ defined(ALL_MODULES) .if ${KERN_OPTS:MIPSEC_SUPPORT} && !${KERN_OPTS:MTCP_SIGNATURE} _tcpmd5= tcpmd5 .endif .endif .include diff --git a/sys/modules/tcp/bbr/Makefile b/sys/modules/tcp/bbr/Makefile index 72c44f22efec..e18b8f007289 100644 --- a/sys/modules/tcp/bbr/Makefile +++ b/sys/modules/tcp/bbr/Makefile @@ -1,23 +1,22 @@ # -# $FreeBSD$ # .PATH: ${.CURDIR}/../../../netinet/tcp_stacks STACKNAME= bbr KMOD= tcp_${STACKNAME} SRCS= bbr.c sack_filter.c rack_bbr_common.c SRCS+= opt_inet.h opt_inet6.h opt_ipsec.h SRCS+= opt_kern_tls.h SRCS+= opt_ratelimit.h # # Enable full debugging # #CFLAGS += -g CFLAGS+= -DMODNAME=${KMOD} CFLAGS+= -DSTACKNAME=${STACKNAME} .include diff --git a/sys/modules/tcp/rack/Makefile b/sys/modules/tcp/rack/Makefile index b80f34ba7ed4..c5bb20602337 100644 --- a/sys/modules/tcp/rack/Makefile +++ b/sys/modules/tcp/rack/Makefile @@ -1,23 +1,22 @@ # -# $FreeBSD$ # .PATH: ${.CURDIR}/../../../netinet/tcp_stacks STACKNAME= rack KMOD= tcp_${STACKNAME} SRCS= rack.c sack_filter.c rack_bbr_common.c tailq_hash.c SRCS+= opt_inet.h opt_inet6.h opt_ipsec.h SRCS+= opt_kern_tls.h SRCS+= opt_ratelimit.h # # Enable full debugging # #CFLAGS += -g CFLAGS+= -DMODNAME=${KMOD} CFLAGS+= -DSTACKNAME=${STACKNAME} .include diff --git a/sys/modules/tcp/tcpmd5/Makefile b/sys/modules/tcp/tcpmd5/Makefile index 0a10caea6845..15a71e9fe25c 100644 --- a/sys/modules/tcp/tcpmd5/Makefile +++ b/sys/modules/tcp/tcpmd5/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netipsec KMOD= tcpmd5 SRCS= xform_tcp.c opt_inet.h opt_inet6.h opt_ipsec.h opt_kern_tls.h .include diff --git a/sys/modules/tests/Makefile b/sys/modules/tests/Makefile index 8b5bf36f63fc..abc077ffa2df 100644 --- a/sys/modules/tests/Makefile +++ b/sys/modules/tests/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ SUBDIR+= framework SUBDIR+= .WAIT SUBDIR+= callout_test SUBDIR_PARALLEL= .include diff --git a/sys/modules/tests/callout_test/Makefile b/sys/modules/tests/callout_test/Makefile index f0a5c2f1daa2..7cab464b8fc4 100644 --- a/sys/modules/tests/callout_test/Makefile +++ b/sys/modules/tests/callout_test/Makefile @@ -1,15 +1,14 @@ # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/tests/callout_test KMOD= callout_test SRCS= callout_test.c # # Enable full debugging # #CFLAGS += -g .include diff --git a/sys/modules/tests/fib_lookup/Makefile b/sys/modules/tests/fib_lookup/Makefile index 06404ff928e6..8ad6340acdf3 100644 --- a/sys/modules/tests/fib_lookup/Makefile +++ b/sys/modules/tests/fib_lookup/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" .PATH: ${SYSDIR}/tests/fib_lookup KMOD= test_lookup SRCS= opt_inet.h opt_inet6.h fib_lookup.c .include diff --git a/sys/modules/tests/framework/Makefile b/sys/modules/tests/framework/Makefile index 8623e01a3ea9..587c5a36fb24 100644 --- a/sys/modules/tests/framework/Makefile +++ b/sys/modules/tests/framework/Makefile @@ -1,16 +1,15 @@ # -# $FreeBSD$ # .PATH: ${SRCTOP}/sys/tests/framework KMOD= kern_testfrwk SRCS= kern_testfrwk.c SRCS+= bus_if.h device_if.h # # Enable full debugging # #CFLAGS += -g .include diff --git a/sys/modules/ti/Makefile b/sys/modules/ti/Makefile index 82e2a697df6b..2f60b2225d28 100644 --- a/sys/modules/ti/Makefile +++ b/sys/modules/ti/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ # Module for Alteon Networks Tigon PCI gigabit ethernet driver for FreeBSD. # Modules for Texas Instruments ARM SoCs are located in sys/modules/arm_ti. .PATH: ${SRCTOP}/sys/dev/ti KMOD= if_ti SRCS= if_ti.c device_if.h bus_if.h pci_if.h opt_ti.h .include diff --git a/sys/modules/tmpfs/Makefile b/sys/modules/tmpfs/Makefile index de4921408805..7a778c487cf5 100644 --- a/sys/modules/tmpfs/Makefile +++ b/sys/modules/tmpfs/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/tmpfs KMOD= tmpfs SRCS= vnode_if.h \ tmpfs_vnops.c tmpfs_fifoops.c tmpfs_vfsops.c tmpfs_subr.c \ opt_tmpfs.h opt_ddb.h .include diff --git a/sys/modules/toecore/Makefile b/sys/modules/toecore/Makefile index bae549fdad10..90cb4103c759 100644 --- a/sys/modules/toecore/Makefile +++ b/sys/modules/toecore/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/netinet KMOD= toecore SRCS= toecore.c SRCS+= opt_ofed.h opt_inet.h opt_inet6.h opt_kern_tls.h EXPORT_SYMS= YES .include diff --git a/sys/modules/tpm/Makefile b/sys/modules/tpm/Makefile index 79c737b653e0..5c43f9a28209 100644 --- a/sys/modules/tpm/Makefile +++ b/sys/modules/tpm/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/tpm KMOD= tpm SRCS= tpm.c bus_if.h device_if.h #Bus specific stuff. SRCS+= tpm_isa.c tpm_acpi.c isa_if.h opt_acpi.h acpi_if.h #TPM 2.0 SRCS+= tpm20.c tpm_crb.c tpm_tis.c opt_tpm.h .include diff --git a/sys/modules/tsec/Makefile b/sys/modules/tsec/Makefile index 24a96d8354da..56cd28e1dbfb 100644 --- a/sys/modules/tsec/Makefile +++ b/sys/modules/tsec/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .PATH: ${SYSDIR}/dev/tsec KMOD= if_tsec SRCS= if_tsec.c if_tsec_fdt.c SRCS+= bus_if.h device_if.h miibus_if.h miidevs.h ofw_bus_if.h opt_platform.h .include diff --git a/sys/modules/tws/Makefile b/sys/modules/tws/Makefile index 899f1106892a..cce9037144ed 100644 --- a/sys/modules/tws/Makefile +++ b/sys/modules/tws/Makefile @@ -1,10 +1,9 @@ # Makefile for tws (LSI 3ware 9750 SAS2/SATA-II RAID PCIe) driver -# $FreeBSD$ KMOD= tws .PATH: ${SRCTOP}/sys/dev/${KMOD} SRCS= tws.c tws_services.c tws_cam.c tws_hdm.c tws_user.c SRCS+= device_if.h bus_if.h pci_if.h opt_cam.h opt_scsi.h .include diff --git a/sys/modules/uart/Makefile b/sys/modules/uart/Makefile index 29d6e0897b56..38ffc2d49dd1 100644 --- a/sys/modules/uart/Makefile +++ b/sys/modules/uart/Makefile @@ -1,44 +1,43 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/uart .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" uart_bus_acpi=uart_bus_acpi.c uart_cpu_acpi=uart_cpu_acpi.c .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "riscv" ofw_bus_if= ofw_bus_if.h .endif .if ${MACHINE} == "i386" || ${MACHINE} == "amd64" _uart_cpu=uart_cpu_x86.c .else _uart_cpu=uart_cpu_${MACHINE}.c .endif .if exists(${.CURDIR:H:H}/dev/uart/${_uart_cpu}) uart_cpu_machine= ${_uart_cpu} .endif .if ${MACHINE} == "arm64" uart_dev_mvebu=uart_dev_mvebu.c .if !empty(OPT_FDT) uart_dev_mu=uart_dev_mu.c .endif .endif KMOD= uart SRCS= ${uart_bus_acpi} uart_bus_isa.c \ uart_bus_pci.c uart_bus_puc.c uart_bus_scc.c \ uart_core.c ${uart_cpu_acpi} ${uart_cpu_machine} uart_dbg.c \ ${uart_dev_mvebu} uart_dev_ns8250.c ${uart_dev_mu} \ uart_dev_quicc.c uart_dev_z8530.c \ uart_if.c uart_if.h uart_subr.c uart_tty.c SRCS+= acpi_if.h bus_if.h device_if.h isa_if.h ${ofw_bus_if} pci_if.h \ serdev_if.h SRCS+= opt_acpi.h opt_platform.h opt_uart.h .include diff --git a/sys/modules/ubser/Makefile b/sys/modules/ubser/Makefile index 39414cc95fca..2543659e4a05 100644 --- a/sys/modules/ubser/Makefile +++ b/sys/modules/ubser/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= ubser SRCS= ubser.c opt_usb.h device_if.h bus_if.h usbdevs.h .include diff --git a/sys/modules/uchcom/Makefile b/sys/modules/uchcom/Makefile index 2921cf97fbb8..d8d7e7b417c6 100644 --- a/sys/modules/uchcom/Makefile +++ b/sys/modules/uchcom/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= uchcom SRCS= uchcom.c opt_usb.h device_if.h bus_if.h usbdevs.h .include diff --git a/sys/modules/ucycom/Makefile b/sys/modules/ucycom/Makefile index 465b352177f3..490c84368c10 100644 --- a/sys/modules/ucycom/Makefile +++ b/sys/modules/ucycom/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= ucycom SRCS= ucycom.c opt_usb.h device_if.h bus_if.h usbdevs.h .include diff --git a/sys/modules/udf/Makefile b/sys/modules/udf/Makefile index 2f97e9155df3..45e7c6cca186 100644 --- a/sys/modules/udf/Makefile +++ b/sys/modules/udf/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/udf KMOD= udf SRCS= udf_vfsops.c udf_vnops.c osta.c SRCS+= vnode_if.h EXPORT_SYMS= udf_iconv .include diff --git a/sys/modules/udf_iconv/Makefile b/sys/modules/udf_iconv/Makefile index 21d31bb8c225..13dd047c0ba6 100644 --- a/sys/modules/udf_iconv/Makefile +++ b/sys/modules/udf_iconv/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/udf KMOD= udf_iconv SRCS= udf_iconv.c CFLAGS+= -I${SRCTOP}/sys/ .include diff --git a/sys/modules/ufs/Makefile b/sys/modules/ufs/Makefile index 9e4a0148111a..225f6b09ac68 100644 --- a/sys/modules/ufs/Makefile +++ b/sys/modules/ufs/Makefile @@ -1,19 +1,18 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/ufs/ufs ${SRCTOP}/sys/ufs/ffs KMOD= ufs SRCS= opt_ddb.h opt_directio.h opt_ffs.h opt_quota.h opt_suiddir.h opt_ufs.h \ vnode_if.h ufs_acl.c ufs_bmap.c ufs_dirhash.c ufs_extattr.c \ ufs_gjournal.c ufs_inode.c ufs_lookup.c ufs_quota.c ufs_vfsops.c \ ufs_vnops.c ffs_alloc.c ffs_balloc.c ffs_inode.c ffs_rawread.c \ ffs_snapshot.c ffs_softdep.c ffs_subr.c ffs_suspend.c ffs_tables.c \ ffs_vfsops.c ffs_vnops.c .if !defined(KERNBUILDDIR) CFLAGS+= -DSOFTUPDATES -DUFS_DIRHASH .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/uinput/Makefile b/sys/modules/uinput/Makefile index c1ecb52f29d8..623151c580a3 100644 --- a/sys/modules/uinput/Makefile +++ b/sys/modules/uinput/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/evdev KMOD= uinput SRCS= uinput.c SRCS+= opt_evdev.h .include diff --git a/sys/modules/unionfs/Makefile b/sys/modules/unionfs/Makefile index 88c698465d4d..b3edfe7f5dd2 100644 --- a/sys/modules/unionfs/Makefile +++ b/sys/modules/unionfs/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/fs/unionfs KMOD= unionfs SRCS= vnode_if.h \ union_subr.c union_vfsops.c union_vnops.c .include diff --git a/sys/modules/usb/Makefile b/sys/modules/usb/Makefile index b4c663551d62..2c593495b9a4 100644 --- a/sys/modules/usb/Makefile +++ b/sys/modules/usb/Makefile @@ -1,107 +1,106 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" # # Check for common USB debug flags to pass when building the USB # modules in this directory: # .if defined(USB_DEBUG) MAKE+=" DEBUG_FLAGS+=-DUSB_DEBUG" .endif .if defined(USB_DEBUG) && defined(USB_REQ_DEBUG) MAKE+=" DEBUG_FLAGS+=-DUSB_REQ_DEBUG" .endif # Modules that include binary-only blobs of microcode should be selectable by # MK_SOURCELESS_UCODE option (see below). SUBDIR = usb SUBDIR += ${_dwc_otg} ehci ${_musb} ohci uhci xhci ${_uss820dci} \ ${_atmegadci} ${_avr32dci} ${_rsu} ${_rsufw} SUBDIR += ${_rum} ${_run} ${_runfw} ${_uath} upgt usie ural ${_zyd} ${_urtw} SUBDIR += atp cfumass uhid uhid_snes ukbd ums udbp uep wmt wsp ugold uled \ usbhid SUBDIR += ucom u3g uark ubsa ubser uchcom ucycom ufoma uftdi ugensa uipaq ulpt \ umct umcs umodem umoscom uplcom uslcom uvisor uvscom SUBDIR += cp2112 SUBDIR += udl SUBDIR += uether aue axe axge cdce cdceem cue ${_kue} mos rue smsc udav uhso \ ipheth SUBDIR += muge SUBDIR += ure urndis SUBDIR += usfs umass urio SUBDIR += ${_uacpi} SUBDIR += quirk template SUBDIR += ${_g_audio} ${_g_keyboard} ${_g_modem} ${_g_mouse} .if ${MK_USB_GADGET_EXAMPLES} == "yes" _g_audio= g_audio _g_keyboard= g_keyboard _g_modem= g_modem _g_mouse= g_mouse .endif .if ${MK_SOURCELESS_UCODE} != "no" _rum= rum _uath= uath _zyd= zyd _kue= kue _run= run _rsu= rsu _rsufw= rsufw _runfw= runfw .endif .if ${MACHINE_CPUARCH} == "amd64" _urtw= urtw .endif .if ${MACHINE_CPUARCH} == "arm" _atmegadci= atmegadci _dwc_otg= dwc_otg _musb= musb _uss820dci= uss820dci .endif .if ${MACHINE_CPUARCH} == "i386" _urtw= urtw .endif .if ${MACHINE_CPUARCH} == "avr32" _avr32dci= avr32dci .endif .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ ${MACHINE_CPUARCH} == "i386" _uacpi= uacpi .endif .include diff --git a/sys/modules/usb/atmegadci/Makefile b/sys/modules/usb/atmegadci/Makefile index 481de3c00d0a..1cbd4965d1cf 100644 --- a/sys/modules/usb/atmegadci/Makefile +++ b/sys/modules/usb/atmegadci/Makefile @@ -1,42 +1,41 @@ # -# $FreeBSD$ # # Copyright (c) 2009 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/controller KMOD= atmegadci SRCS= bus_if.h device_if.h usb_if.h \ opt_bus.h opt_usb.h \ atmegadci.c \ pci_if.h .if defined(HAS_ATMELARM) SRCS+= atmegadci_atmelarm.c .endif .include diff --git a/sys/modules/usb/atp/Makefile b/sys/modules/usb/atp/Makefile index 21ff164a31cc..ae7bccda3ae2 100644 --- a/sys/modules/usb/atp/Makefile +++ b/sys/modules/usb/atp/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ S= ${SRCTOP}/sys .PATH: $S/dev/usb/input KMOD= atp SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h usbdevs.h \ atp.c .include diff --git a/sys/modules/usb/aue/Makefile b/sys/modules/usb/aue/Makefile index 8ffef49deae2..4ce5ab41d4f4 100644 --- a/sys/modules/usb/aue/Makefile +++ b/sys/modules/usb/aue/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_aue SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ if_aue.c opt_platform.h .include diff --git a/sys/modules/usb/avr32dci/Makefile b/sys/modules/usb/avr32dci/Makefile index 095cf517c4c9..9aa5cb22904f 100644 --- a/sys/modules/usb/avr32dci/Makefile +++ b/sys/modules/usb/avr32dci/Makefile @@ -1,38 +1,37 @@ # -# $FreeBSD$ # # Copyright (c) 2011 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/controller KMOD= avr32dci SRCS= bus_if.h device_if.h usb_if.h \ opt_bus.h opt_usb.h \ avr32dci.c \ pci_if.h .include diff --git a/sys/modules/usb/axe/Makefile b/sys/modules/usb/axe/Makefile index 5b0b83d38c23..b71c561f8236 100644 --- a/sys/modules/usb/axe/Makefile +++ b/sys/modules/usb/axe/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_axe SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ if_axe.c opt_platform.h .include diff --git a/sys/modules/usb/axge/Makefile b/sys/modules/usb/axge/Makefile index 5807d61abf97..cc1ad19068c7 100644 --- a/sys/modules/usb/axge/Makefile +++ b/sys/modules/usb/axge/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/usb/net KMOD= if_axge SRCS+= if_axge.c usbdevs.h SRCS+= bus_if.h device_if.h miibus_if.h usb_if.h \ opt_bus.h opt_inet.h opt_usb.h opt_platform.h .include diff --git a/sys/modules/usb/cdce/Makefile b/sys/modules/usb/cdce/Makefile index 0f3e853f49fd..d74fb605ef99 100644 --- a/sys/modules/usb/cdce/Makefile +++ b/sys/modules/usb/cdce/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_cdce SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ if_cdce.c opt_platform.h .include diff --git a/sys/modules/usb/cdceem/Makefile b/sys/modules/usb/cdceem/Makefile index 7cdaadf99673..692035bae850 100644 --- a/sys/modules/usb/cdceem/Makefile +++ b/sys/modules/usb/cdceem/Makefile @@ -1,12 +1,10 @@ # -# $FreeBSD$ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/usb/net KMOD= if_cdceem SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ if_cdceem.c opt_platform.h .include diff --git a/sys/modules/usb/cfumass/Makefile b/sys/modules/usb/cfumass/Makefile index 584783ddffe2..72b882efadbe 100644 --- a/sys/modules/usb/cfumass/Makefile +++ b/sys/modules/usb/cfumass/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/usb/storage KMOD= cfumass SRCS= bus_if.h device_if.h opt_bus.h opt_usb.h usb_if.h usbdevs.h \ cfumass.c .include diff --git a/sys/modules/usb/cp2112/Makefile b/sys/modules/usb/cp2112/Makefile index eb9652f87975..28d855ba38a2 100644 --- a/sys/modules/usb/cp2112/Makefile +++ b/sys/modules/usb/cp2112/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) Andriy Gapon # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/misc KMOD= cp2112 SRCS= cp2112.c SRCS+= opt_bus.h opt_platform.h opt_usb.h SRCS+= device_if.h bus_if.h gpio_if.h iicbus_if.h usb_if.h usbdevs.h .include diff --git a/sys/modules/usb/cue/Makefile b/sys/modules/usb/cue/Makefile index ef48b9490c23..d51d68635188 100644 --- a/sys/modules/usb/cue/Makefile +++ b/sys/modules/usb/cue/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_cue SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ if_cue.c opt_platform.h .include diff --git a/sys/modules/usb/dwc_otg/Makefile b/sys/modules/usb/dwc_otg/Makefile index 07d08d103d6a..5cb98293f6a9 100644 --- a/sys/modules/usb/dwc_otg/Makefile +++ b/sys/modules/usb/dwc_otg/Makefile @@ -1,38 +1,37 @@ # -# $FreeBSD$ # # Copyright (c) 2012 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/controller KMOD= dwc_otg SRCS= bus_if.h device_if.h usb_if.h \ opt_bus.h opt_usb.h ofw_bus_if.h \ dwc_otg.c dwc_otg_fdt.c \ pci_if.h .include diff --git a/sys/modules/usb/ehci/Makefile b/sys/modules/usb/ehci/Makefile index bc79da0ecd9b..8c896103c055 100644 --- a/sys/modules/usb/ehci/Makefile +++ b/sys/modules/usb/ehci/Makefile @@ -1,38 +1,37 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/controller KMOD= ehci SRCS= bus_if.h device_if.h usb_if.h \ opt_bus.h opt_usb.h \ ehci_pci.c ehci.c ehci.h \ pci_if.h .include diff --git a/sys/modules/usb/g_audio/Makefile b/sys/modules/usb/g_audio/Makefile index efeae06252c1..741ef0305d4c 100644 --- a/sys/modules/usb/g_audio/Makefile +++ b/sys/modules/usb/g_audio/Makefile @@ -1,35 +1,34 @@ # -# $FreeBSD$ # # Copyright (c) 2010 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/usb/gadget KMOD= g_audio SRCS= bus_if.h usb_if.h device_if.h vnode_if.h \ card_if.h opt_usb.h pci_if.h g_audio.c .include diff --git a/sys/modules/usb/g_keyboard/Makefile b/sys/modules/usb/g_keyboard/Makefile index 9caeca2550b7..0a6fbbbe6579 100644 --- a/sys/modules/usb/g_keyboard/Makefile +++ b/sys/modules/usb/g_keyboard/Makefile @@ -1,35 +1,34 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/usb/gadget KMOD= g_keyboard SRCS= bus_if.h usb_if.h device_if.h vnode_if.h \ opt_usb.h g_keyboard.c .include diff --git a/sys/modules/usb/g_modem/Makefile b/sys/modules/usb/g_modem/Makefile index abc425f07c91..963095b2df08 100644 --- a/sys/modules/usb/g_modem/Makefile +++ b/sys/modules/usb/g_modem/Makefile @@ -1,35 +1,34 @@ # -# $FreeBSD$ # # Copyright (c) 2010 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/usb/gadget KMOD= g_modem SRCS= bus_if.h usb_if.h device_if.h vnode_if.h \ card_if.h opt_usb.h pci_if.h g_modem.c .include diff --git a/sys/modules/usb/g_mouse/Makefile b/sys/modules/usb/g_mouse/Makefile index e69232684732..2079debdc181 100644 --- a/sys/modules/usb/g_mouse/Makefile +++ b/sys/modules/usb/g_mouse/Makefile @@ -1,35 +1,34 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/usb/gadget KMOD= g_mouse SRCS= bus_if.h usb_if.h device_if.h vnode_if.h \ opt_usb.h g_mouse.c .include diff --git a/sys/modules/usb/ipheth/Makefile b/sys/modules/usb/ipheth/Makefile index 59d0c61971ee..c77182fd2135 100644 --- a/sys/modules/usb/ipheth/Makefile +++ b/sys/modules/usb/ipheth/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2010 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_ipheth SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ if_ipheth.c opt_platform.h .include diff --git a/sys/modules/usb/kue/Makefile b/sys/modules/usb/kue/Makefile index 923d6eb0c00b..fb611072c699 100644 --- a/sys/modules/usb/kue/Makefile +++ b/sys/modules/usb/kue/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_kue SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ if_kue.c opt_platform.h .include diff --git a/sys/modules/usb/mos/Makefile b/sys/modules/usb/mos/Makefile index 4873051f6a25..6c5ae20a4ce3 100644 --- a/sys/modules/usb/mos/Makefile +++ b/sys/modules/usb/mos/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2011 Rick van der Zwet # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_mos SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ if_mos.c opt_platform.h .include diff --git a/sys/modules/usb/muge/Makefile b/sys/modules/usb/muge/Makefile index 3e16f19a9506..7985ea81663d 100644 --- a/sys/modules/usb/muge/Makefile +++ b/sys/modules/usb/muge/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_muge SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h miidevs.h opt_inet.h opt_platform.h ofw_bus_if.h \ if_muge.c SRCS+= .include diff --git a/sys/modules/usb/musb/Makefile b/sys/modules/usb/musb/Makefile index 5002c30d3016..aae6220df3dc 100644 --- a/sys/modules/usb/musb/Makefile +++ b/sys/modules/usb/musb/Makefile @@ -1,42 +1,41 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/controller KMOD= musb SRCS= bus_if.h device_if.h usb_if.h \ opt_bus.h opt_usb.h \ musb_otg.c \ pci_if.h .if defined(HAS_ATMELARM) SRCS+= musb_otg_atmelarm.c .endif .include diff --git a/sys/modules/usb/ohci/Makefile b/sys/modules/usb/ohci/Makefile index b04117a01a59..262d655eff07 100644 --- a/sys/modules/usb/ohci/Makefile +++ b/sys/modules/usb/ohci/Makefile @@ -1,38 +1,37 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/controller KMOD= ohci SRCS= bus_if.h device_if.h usb_if.h \ opt_bus.h opt_usb.h \ ohci_pci.c ohci.c ohci.h \ pci_if.h .include diff --git a/sys/modules/usb/quirk/Makefile b/sys/modules/usb/quirk/Makefile index 15b85d9687e7..5700cf634210 100644 --- a/sys/modules/usb/quirk/Makefile +++ b/sys/modules/usb/quirk/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/quirk KMOD= usb_quirk SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ usb_quirk.c .include diff --git a/sys/modules/usb/rsu/Makefile b/sys/modules/usb/rsu/Makefile index c3c8fcbf60cd..d9258591a2a7 100644 --- a/sys/modules/usb/rsu/Makefile +++ b/sys/modules/usb/rsu/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/usb/wlan KMOD = if_rsu SRCS = if_rsu.c if_rsureg.h \ bus_if.h device_if.h \ opt_bus.h opt_usb.h opt_wlan.h usb_if.h usbdevs.h .include diff --git a/sys/modules/usb/rsufw/Makefile b/sys/modules/usb/rsufw/Makefile index 3076e6914c58..ae154d51f979 100644 --- a/sys/modules/usb/rsufw/Makefile +++ b/sys/modules/usb/rsufw/Makefile @@ -1,5 +1,4 @@ -# $FreeBSD$ SUBDIR= rsurtl8712fw .include diff --git a/sys/modules/usb/rsufw/Makefile.inc b/sys/modules/usb/rsufw/Makefile.inc index 1b15e66fd17d..582c34aa8ebd 100644 --- a/sys/modules/usb/rsufw/Makefile.inc +++ b/sys/modules/usb/rsufw/Makefile.inc @@ -1,15 +1,14 @@ -# $FreeBSD$ # # Common rules for building firmware. Note this gets auto-included # by the subdir Makefile's as a consequence of included bsd.kmod.mk. _FIRM= ${IMG}.fw CLEANFILES+= ${_FIRM} FIRMWS= ${_FIRM}:${KMOD}:120 # FIRMWARE_LICENSE= realtek ${_FIRM}: ${SRCTOP}/sys/contrib/dev/rsu/${_FIRM}.uu uudecode -p ${.ALLSRC} > ${.TARGET} diff --git a/sys/modules/usb/rsufw/rsurtl8712fw/Makefile b/sys/modules/usb/rsufw/rsurtl8712fw/Makefile index 30132d76cdcb..cdeeb8f73333 100644 --- a/sys/modules/usb/rsufw/rsurtl8712fw/Makefile +++ b/sys/modules/usb/rsufw/rsurtl8712fw/Makefile @@ -1,6 +1,5 @@ -# $FreeBSD$ KMOD= rsu-rtl8712fw IMG= rsu-rtl8712fw .include diff --git a/sys/modules/usb/rue/Makefile b/sys/modules/usb/rue/Makefile index f4f1cf755777..1c06189f3c62 100644 --- a/sys/modules/usb/rue/Makefile +++ b/sys/modules/usb/rue/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_rue SRCS= bus_if.h device_if.h miibus_if.h miidevs.h if_rue.c opt_bus.h SRCS+= opt_inet.h opt_usb.h ruephy.c usb_if.h usbdevs.h opt_platform.h .include diff --git a/sys/modules/usb/rum/Makefile b/sys/modules/usb/rum/Makefile index e468ff81ed59..58a168ced263 100644 --- a/sys/modules/usb/rum/Makefile +++ b/sys/modules/usb/rum/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/wlan KMOD= if_rum SRCS= opt_bus.h opt_usb.h opt_wlan.h device_if.h bus_if.h usb_if.h \ usbdevs.h if_rum.c .include diff --git a/sys/modules/usb/run/Makefile b/sys/modules/usb/run/Makefile index 980d061cc400..ec3ebe22671f 100644 --- a/sys/modules/usb/run/Makefile +++ b/sys/modules/usb/run/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2010 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/wlan KMOD= if_run SRCS= opt_bus.h opt_usb.h opt_wlan.h device_if.h bus_if.h usb_if.h \ usbdevs.h if_run.c .include diff --git a/sys/modules/usb/runfw/Makefile b/sys/modules/usb/runfw/Makefile index b60b26c3e134..6369337268be 100644 --- a/sys/modules/usb/runfw/Makefile +++ b/sys/modules/usb/runfw/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ KMOD= runfw FIRMWS= run.fw:runfw:1 CLEANFILES= run.fw run.fw: ${SRCTOP}/sys/contrib/dev/run/rt2870.fw.uu uudecode -p ${.ALLSRC} > ${.TARGET} .include diff --git a/sys/modules/usb/smsc/Makefile b/sys/modules/usb/smsc/Makefile index c7fe271e28f7..5aeec81d8cb1 100644 --- a/sys/modules/usb/smsc/Makefile +++ b/sys/modules/usb/smsc/Makefile @@ -1,38 +1,37 @@ # -# $FreeBSD$ # # Copyright (c) 2011 Ben Gray. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_smsc SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h opt_platform.h \ if_smsc.c SRCS+= ofw_bus_if.h .include diff --git a/sys/modules/usb/template/Makefile b/sys/modules/usb/template/Makefile index e6179d69e087..5b951ec9530e 100644 --- a/sys/modules/usb/template/Makefile +++ b/sys/modules/usb/template/Makefile @@ -1,53 +1,52 @@ # -# $FreeBSD$ # # Copyright (c) 2008-2020 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/template KMOD= usb_template SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h usbdevs.h \ usb_template.c \ usb_template_audio.c \ usb_template_cdce.c \ usb_template_kbd.c \ usb_template_modem.c \ usb_template_mouse.c \ usb_template_msc.c \ usb_template_mtp.c \ usb_template_phone.c \ usb_template_serialnet.c \ usb_template_midi.c \ usb_template_multi.c \ usb_template_cdceem.c # # NOTE: # Keep source list above in sync with stand/usb/usbcore.mk # .include diff --git a/sys/modules/usb/u3g/Makefile b/sys/modules/usb/u3g/Makefile index 3e254330d139..62be87d15c6a 100644 --- a/sys/modules/usb/u3g/Makefile +++ b/sys/modules/usb/u3g/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= u3g SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ u3g.c .include diff --git a/sys/modules/usb/uacpi/Makefile b/sys/modules/usb/uacpi/Makefile index b4f89cde488f..ebb9524565b0 100644 --- a/sys/modules/usb/uacpi/Makefile +++ b/sys/modules/usb/uacpi/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2019 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/usb KMOD= uacpi SRCS= bus_if.h device_if.h usb_if.h usb_if.c vnode_if.h \ opt_usb.h opt_bus.h opt_ddb.h \ opt_acpi.h acpi_if.h \ usb_hub_acpi.c .include diff --git a/sys/modules/usb/uark/Makefile b/sys/modules/usb/uark/Makefile index b681f33cfa75..a597e360085d 100644 --- a/sys/modules/usb/uark/Makefile +++ b/sys/modules/usb/uark/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= uark SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ uark.c .include diff --git a/sys/modules/usb/uath/Makefile b/sys/modules/usb/uath/Makefile index b6f3308f1a06..04d167486fb2 100644 --- a/sys/modules/usb/uath/Makefile +++ b/sys/modules/usb/uath/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/usb/wlan KMOD = if_uath SRCS = if_uath.c if_uathvar.h if_uathreg.h \ bus_if.h device_if.h \ opt_bus.h opt_usb.h opt_wlan.h usb_if.h usbdevs.h .include diff --git a/sys/modules/usb/ubsa/Makefile b/sys/modules/usb/ubsa/Makefile index 9ac95dc82363..a9e5e373f9d4 100644 --- a/sys/modules/usb/ubsa/Makefile +++ b/sys/modules/usb/ubsa/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= ubsa SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ ubsa.c .include diff --git a/sys/modules/usb/ubser/Makefile b/sys/modules/usb/ubser/Makefile index efa030bd4b46..837da796ae35 100644 --- a/sys/modules/usb/ubser/Makefile +++ b/sys/modules/usb/ubser/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= ubser SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ ubser.c .include diff --git a/sys/modules/usb/uchcom/Makefile b/sys/modules/usb/uchcom/Makefile index bf1184d41dfa..cb4e97f75019 100644 --- a/sys/modules/usb/uchcom/Makefile +++ b/sys/modules/usb/uchcom/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= uchcom SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ uchcom.c .include diff --git a/sys/modules/usb/ucom/Makefile b/sys/modules/usb/ucom/Makefile index 82200bcf49f4..1cd0b63b09d3 100644 --- a/sys/modules/usb/ucom/Makefile +++ b/sys/modules/usb/ucom/Makefile @@ -1,38 +1,37 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= ucom SRCS= opt_bus.h opt_usb.h opt_gdb.h device_if.h bus_if.h usb_if.h usbdevs.h \ usb_serial.c EXPORT_SYMS= YES .include diff --git a/sys/modules/usb/ucycom/Makefile b/sys/modules/usb/ucycom/Makefile index 17ceba268f81..7df84803035e 100644 --- a/sys/modules/usb/ucycom/Makefile +++ b/sys/modules/usb/ucycom/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= ucycom SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ ucycom.c .include diff --git a/sys/modules/usb/udav/Makefile b/sys/modules/usb/udav/Makefile index 283b15582ada..2e0e1e96ae2b 100644 --- a/sys/modules/usb/udav/Makefile +++ b/sys/modules/usb/udav/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_udav SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ if_udav.c opt_platform.h .include diff --git a/sys/modules/usb/udbp/Makefile b/sys/modules/usb/udbp/Makefile index ecebf18b79e2..1b09c3171fb0 100644 --- a/sys/modules/usb/udbp/Makefile +++ b/sys/modules/usb/udbp/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/misc KMOD= udbp SRCS= opt_bus.h opt_usb.h opt_netgraph.h \ device_if.h bus_if.h usb_if.h usbdevs.h \ udbp.c .include diff --git a/sys/modules/usb/udl/Makefile b/sys/modules/usb/udl/Makefile index 5a14280b950f..6bc0a99f2509 100644 --- a/sys/modules/usb/udl/Makefile +++ b/sys/modules/usb/udl/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ S= ${SRCTOP}/sys .PATH: $S/dev/usb/video KMOD= udl SRCS= opt_bus.h opt_usb.h fb_if.h device_if.h \ bus_if.h usb_if.h vnode_if.h usbdevs.h \ udl.c .include diff --git a/sys/modules/usb/uep/Makefile b/sys/modules/usb/uep/Makefile index 84982d236aa6..e7fb87517b34 100644 --- a/sys/modules/usb/uep/Makefile +++ b/sys/modules/usb/uep/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ S= ${SRCTOP}/sys .PATH: $S/dev/usb/input KMOD= uep SRCS= opt_bus.h opt_evdev.h opt_usb.h device_if.h bus_if.h usb_if.h \ vnode_if.h usbdevs.h uep.c .include diff --git a/sys/modules/usb/uether/Makefile b/sys/modules/usb/uether/Makefile index c6b87d7d2e2a..93cf756370b6 100644 --- a/sys/modules/usb/uether/Makefile +++ b/sys/modules/usb/uether/Makefile @@ -1,39 +1,38 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= uether SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ usb_ethernet.c opt_platform.h EXPORT_SYMS= YES .include diff --git a/sys/modules/usb/ufoma/Makefile b/sys/modules/usb/ufoma/Makefile index 96062f2998da..9dfcc9b1b27c 100644 --- a/sys/modules/usb/ufoma/Makefile +++ b/sys/modules/usb/ufoma/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= ufoma SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ ufoma.c .include diff --git a/sys/modules/usb/uftdi/Makefile b/sys/modules/usb/uftdi/Makefile index 7a697985957a..408b93d01a40 100644 --- a/sys/modules/usb/uftdi/Makefile +++ b/sys/modules/usb/uftdi/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= uftdi SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ uftdi.c .include diff --git a/sys/modules/usb/ugensa/Makefile b/sys/modules/usb/ugensa/Makefile index 9fc20ca92c5c..b72c33475f63 100644 --- a/sys/modules/usb/ugensa/Makefile +++ b/sys/modules/usb/ugensa/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= ugensa SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ ugensa.c .include diff --git a/sys/modules/usb/ugold/Makefile b/sys/modules/usb/ugold/Makefile index a6361ca6467d..bb9276996a27 100644 --- a/sys/modules/usb/ugold/Makefile +++ b/sys/modules/usb/ugold/Makefile @@ -1,13 +1,12 @@ # -# $FreeBSD$ # S= ${SRCTOP}/sys .PATH: $S/dev/usb/misc KMOD= ugold SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h \ usbdevs.h ugold.c .include diff --git a/sys/modules/usb/uhci/Makefile b/sys/modules/usb/uhci/Makefile index 23d4b3ca363d..fb97602a4ce9 100644 --- a/sys/modules/usb/uhci/Makefile +++ b/sys/modules/usb/uhci/Makefile @@ -1,38 +1,37 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/controller KMOD= uhci SRCS= bus_if.h device_if.h usb_if.h \ opt_bus.h opt_usb.h \ uhci_pci.c uhci.c uhci.h \ pci_if.h .include diff --git a/sys/modules/usb/uhid/Makefile b/sys/modules/usb/uhid/Makefile index 2ab5dcfbdebc..be9eae25eb73 100644 --- a/sys/modules/usb/uhid/Makefile +++ b/sys/modules/usb/uhid/Makefile @@ -1,38 +1,37 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/input KMOD= uhid SRCS= opt_bus.h opt_hid.h opt_usb.h device_if.h bus_if.h usb_if.h \ vnode_if.h usbdevs.h uhid.c EXPORT_SYMS= YES .include diff --git a/sys/modules/usb/uhid_snes/Makefile b/sys/modules/usb/uhid_snes/Makefile index 8007cfb4fd20..36d6c2ba51ca 100644 --- a/sys/modules/usb/uhid_snes/Makefile +++ b/sys/modules/usb/uhid_snes/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2018 Johannes Lundberg. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/input KMOD= uhid_snes SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h usbdevs.h \ uhid_snes.c .include diff --git a/sys/modules/usb/uhso/Makefile b/sys/modules/usb/uhso/Makefile index fb29a7f33546..4553806e63fb 100644 --- a/sys/modules/usb/uhso/Makefile +++ b/sys/modules/usb/uhso/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2010 Andrew Thompson. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= uhso SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ opt_inet.h \ uhso.c .include diff --git a/sys/modules/usb/uipaq/Makefile b/sys/modules/usb/uipaq/Makefile index ccb19d88940d..4b4e66ad8bdc 100644 --- a/sys/modules/usb/uipaq/Makefile +++ b/sys/modules/usb/uipaq/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= uipaq SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ uipaq.c .include diff --git a/sys/modules/usb/ukbd/Makefile b/sys/modules/usb/ukbd/Makefile index e9c4c80d68fb..b723b225aec0 100644 --- a/sys/modules/usb/ukbd/Makefile +++ b/sys/modules/usb/ukbd/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/input KMOD= ukbd SRCS= opt_bus.h opt_evdev.h opt_kbd.h opt_ukbd.h opt_usb.h \ device_if.h bus_if.h usb_if.h usbdevs.h \ ukbd.c .include diff --git a/sys/modules/usb/uled/Makefile b/sys/modules/usb/uled/Makefile index 2cd3ada8375b..952ea1b06cbb 100644 --- a/sys/modules/usb/uled/Makefile +++ b/sys/modules/usb/uled/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2014 Kevin Lo. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/misc KMOD= uled SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h usbdevs.h \ uled.c .include diff --git a/sys/modules/usb/ulpt/Makefile b/sys/modules/usb/ulpt/Makefile index 37c585ad5147..41b336ae8afa 100644 --- a/sys/modules/usb/ulpt/Makefile +++ b/sys/modules/usb/ulpt/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= ulpt SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h vnode_if.h usbdevs.h \ ulpt.c .include diff --git a/sys/modules/usb/umass/Makefile b/sys/modules/usb/umass/Makefile index bc3382019294..93d59d494685 100644 --- a/sys/modules/usb/umass/Makefile +++ b/sys/modules/usb/umass/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/storage KMOD= umass SRCS= bus_if.h device_if.h opt_bus.h opt_cam.h opt_usb.h umass.c usb_if.h \ usbdevs.h vnode_if.h .include diff --git a/sys/modules/usb/umcs/Makefile b/sys/modules/usb/umcs/Makefile index 58b7838bef8a..155aaccbdcbe 100644 --- a/sys/modules/usb/umcs/Makefile +++ b/sys/modules/usb/umcs/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2011 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= umcs SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ umcs.c .include diff --git a/sys/modules/usb/umct/Makefile b/sys/modules/usb/umct/Makefile index 2b154c8c1842..de611de2f3fe 100644 --- a/sys/modules/usb/umct/Makefile +++ b/sys/modules/usb/umct/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= umct SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ umct.c .include diff --git a/sys/modules/usb/umodem/Makefile b/sys/modules/usb/umodem/Makefile index 05b2683205b4..690c6b6839b7 100644 --- a/sys/modules/usb/umodem/Makefile +++ b/sys/modules/usb/umodem/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= umodem SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ umodem.c .include diff --git a/sys/modules/usb/umoscom/Makefile b/sys/modules/usb/umoscom/Makefile index 4b857896e030..6f64b03f1aee 100644 --- a/sys/modules/usb/umoscom/Makefile +++ b/sys/modules/usb/umoscom/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= umoscom SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ umoscom.c .include diff --git a/sys/modules/usb/ums/Makefile b/sys/modules/usb/ums/Makefile index 17826e569e06..afb30c11d85d 100644 --- a/sys/modules/usb/ums/Makefile +++ b/sys/modules/usb/ums/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/input KMOD= ums SRCS= opt_bus.h opt_evdev.h opt_usb.h device_if.h bus_if.h usb_if.h \ vnode_if.h usbdevs.h ums.c .include diff --git a/sys/modules/usb/upgt/Makefile b/sys/modules/usb/upgt/Makefile index 7da5dd2fde0b..4db4b167915e 100644 --- a/sys/modules/usb/upgt/Makefile +++ b/sys/modules/usb/upgt/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/usb/wlan KMOD = if_upgt SRCS = if_upgt.c if_upgtvar.h \ bus_if.h device_if.h \ opt_bus.h opt_usb.h opt_wlan.h usb_if.h usbdevs.h .include diff --git a/sys/modules/usb/uplcom/Makefile b/sys/modules/usb/uplcom/Makefile index 54cf7abf97aa..961b66b639ad 100644 --- a/sys/modules/usb/uplcom/Makefile +++ b/sys/modules/usb/uplcom/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= uplcom SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ uplcom.c .include diff --git a/sys/modules/usb/ural/Makefile b/sys/modules/usb/ural/Makefile index 01ab503dc740..fe02b26e8a6d 100644 --- a/sys/modules/usb/ural/Makefile +++ b/sys/modules/usb/ural/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/wlan KMOD= if_ural SRCS= opt_bus.h opt_usb.h opt_wlan.h device_if.h bus_if.h usb_if.h \ usbdevs.h if_ural.c .include diff --git a/sys/modules/usb/ure/Makefile b/sys/modules/usb/ure/Makefile index 3ede59a5639e..0ff0fce8a435 100644 --- a/sys/modules/usb/ure/Makefile +++ b/sys/modules/usb/ure/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/usb/net KMOD= if_ure SRCS+= if_ure.c usbdevs.h SRCS+= bus_if.h device_if.h miibus_if.h usb_if.h \ opt_bus.h opt_inet.h opt_inet6.h opt_usb.h opt_platform.h .include diff --git a/sys/modules/usb/urio/Makefile b/sys/modules/usb/urio/Makefile index 267f7c38a66d..62fe58ec68d8 100644 --- a/sys/modules/usb/urio/Makefile +++ b/sys/modules/usb/urio/Makefile @@ -1,35 +1,34 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/storage KMOD= urio SRCS= bus_if.h device_if.h opt_bus.h opt_usb.h usb_if.h usbdevs.h urio.c .include diff --git a/sys/modules/usb/urndis/Makefile b/sys/modules/usb/urndis/Makefile index e4e70fc2a647..bdbb485bfe05 100644 --- a/sys/modules/usb/urndis/Makefile +++ b/sys/modules/usb/urndis/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Copyright (c) 2014 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/net KMOD= if_urndis SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ miibus_if.h opt_inet.h \ if_urndis.c opt_platform.h .include diff --git a/sys/modules/usb/urtw/Makefile b/sys/modules/usb/urtw/Makefile index 25cbb40b02d9..89c1baf9cdea 100644 --- a/sys/modules/usb/urtw/Makefile +++ b/sys/modules/usb/urtw/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/usb/wlan KMOD = if_urtw SRCS = if_urtw.c if_urtwreg.h if_urtwvar.h \ bus_if.h device_if.h \ opt_bus.h opt_usb.h opt_wlan.h usb_if.h usbdevs.h .include diff --git a/sys/modules/usb/usb/Makefile b/sys/modules/usb/usb/Makefile index 24a17f75a47f..225b210c6857 100644 --- a/sys/modules/usb/usb/Makefile +++ b/sys/modules/usb/usb/Makefile @@ -1,46 +1,45 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/usb ${SRCTOP}/sys/dev/usb/controller KMOD= usb SRCS= bus_if.h device_if.h usb_if.h usb_if.c vnode_if.h \ opt_usb.h opt_bus.h opt_ddb.h \ usb_pf.h usbdevs.h usbdevs_data.h \ usb_busdma.c usb_controller.c usb_core.c usb_debug.c \ usb_dev.c usb_device.c usb_dynamic.c usb_error.c usb_generic.c \ usb_handle_request.c usb_hid.c usb_hub.c usb_lookup.c usb_mbuf.c \ usb_msctest.c usb_parse.c usb_pf.c usb_process.c usb_request.c \ usb_transfer.c usb_util.c .if !empty(OPT_FDT) SRCS+= usb_fdt_support.c ofw_bus_if.h .endif EXPORT_SYMS= YES .include diff --git a/sys/modules/usb/usbhid/Makefile b/sys/modules/usb/usbhid/Makefile index 7ad96555a7dc..910385d1314b 100644 --- a/sys/modules/usb/usbhid/Makefile +++ b/sys/modules/usb/usbhid/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ S= ${SRCTOP}/sys .PATH: $S/dev/usb/input KMOD= usbhid SRCS= opt_usb.h bus_if.h device_if.h hid_if.h usb_if.h usbhid.c .include diff --git a/sys/modules/usb/usfs/Makefile b/sys/modules/usb/usfs/Makefile index 92e2dec433fd..a8e2ae6a0da7 100644 --- a/sys/modules/usb/usfs/Makefile +++ b/sys/modules/usb/usfs/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/storage KMOD= usfs SRCS= bus_if.h device_if.h opt_bus.h opt_usb.h usb_if.h usbdevs.h \ ustorage_fs.c .include diff --git a/sys/modules/usb/usie/Makefile b/sys/modules/usb/usie/Makefile index 7b43e2c88444..6a5f79248ff8 100644 --- a/sys/modules/usb/usie/Makefile +++ b/sys/modules/usb/usie/Makefile @@ -1,35 +1,34 @@ # -# $FreeBSD$ # # Copyright (c) 2011 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/usb/net KMOD = usie SRCS = if_usie.c SRCS += opt_bus.h opt_usb.h device_if.h bus_if.h \ usb_if.h usbdevs.h opt_inet.h .include diff --git a/sys/modules/usb/uslcom/Makefile b/sys/modules/usb/uslcom/Makefile index 9ef28d55f3ce..9efeb8dcc621 100644 --- a/sys/modules/usb/uslcom/Makefile +++ b/sys/modules/usb/uslcom/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= uslcom SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ uslcom.c .include diff --git a/sys/modules/usb/uss820dci/Makefile b/sys/modules/usb/uss820dci/Makefile index b91e8279bed5..74e6c329c3d2 100644 --- a/sys/modules/usb/uss820dci/Makefile +++ b/sys/modules/usb/uss820dci/Makefile @@ -1,42 +1,41 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/controller KMOD= uss820dci SRCS= bus_if.h device_if.h usb_if.h \ opt_bus.h opt_usb.h \ uss820dci.c \ pci_if.h .if defined(HAS_ATMELARM) SRCS+= uss820dci_atmelarm.c .endif .include diff --git a/sys/modules/usb/uvisor/Makefile b/sys/modules/usb/uvisor/Makefile index 6a732d211cb4..e83f0dadb364 100644 --- a/sys/modules/usb/uvisor/Makefile +++ b/sys/modules/usb/uvisor/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= uvisor SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ uvisor.c .include diff --git a/sys/modules/usb/uvscom/Makefile b/sys/modules/usb/uvscom/Makefile index de860bc7d2c6..69cc293743e2 100644 --- a/sys/modules/usb/uvscom/Makefile +++ b/sys/modules/usb/uvscom/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/serial KMOD= uvscom SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ uvscom.c .include diff --git a/sys/modules/usb/wmt/Makefile b/sys/modules/usb/wmt/Makefile index e7f8065fa1af..b20fa8f14297 100644 --- a/sys/modules/usb/wmt/Makefile +++ b/sys/modules/usb/wmt/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ S= ${SRCTOP}/sys .PATH: $S/dev/usb/input KMOD= wmt SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h wmt.c .include diff --git a/sys/modules/usb/wsp/Makefile b/sys/modules/usb/wsp/Makefile index 73a289a09544..98f6f21f2bef 100644 --- a/sys/modules/usb/wsp/Makefile +++ b/sys/modules/usb/wsp/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2012 Huang Wen Hui. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/input KMOD= wsp SRCS= opt_bus.h opt_evdev.h opt_usb.h device_if.h bus_if.h usb_if.h \ vnode_if.h usbdevs.h wsp.c .include diff --git a/sys/modules/usb/xhci/Makefile b/sys/modules/usb/xhci/Makefile index f1330861b226..1badf66ce5bc 100644 --- a/sys/modules/usb/xhci/Makefile +++ b/sys/modules/usb/xhci/Makefile @@ -1,38 +1,37 @@ # -# $FreeBSD$ # # Copyright (c) 2010 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/controller KMOD= xhci SRCS= bus_if.h device_if.h usb_if.h \ opt_bus.h opt_usb.h \ xhci_pci.c xhci.c \ pci_if.h .include diff --git a/sys/modules/usb/zyd/Makefile b/sys/modules/usb/zyd/Makefile index 40909459034f..21b492a2a27e 100644 --- a/sys/modules/usb/zyd/Makefile +++ b/sys/modules/usb/zyd/Makefile @@ -1,36 +1,35 @@ # -# $FreeBSD$ # # Copyright (c) 2008 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/usb/wlan KMOD= if_zyd SRCS= opt_bus.h opt_usb.h opt_wlan.h device_if.h bus_if.h usb_if.h \ usbdevs.h if_zyd.c if_zydreg.h if_zydfw.h .include diff --git a/sys/modules/veriexec/Makefile b/sys/modules/veriexec/Makefile index cf82f5d1b3a1..453177fe199c 100644 --- a/sys/modules/veriexec/Makefile +++ b/sys/modules/veriexec/Makefile @@ -1,12 +1,11 @@ -# $FreeBSD$ .PATH: ${.PARSEDIR:H:H}/dev/veriexec .include KMOD= veriexec SRCS= verified_exec.c SRCS+= bus_if.h device_if.h vnode_if.h .include diff --git a/sys/modules/vesa/Makefile b/sys/modules/vesa/Makefile index 610226f4e02c..9f539d20a138 100644 --- a/sys/modules/vesa/Makefile +++ b/sys/modules/vesa/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ KMOD= vesa SRCS= opt_vga.h opt_vesa.h SRCS+= bus_if.h device_if.h pci_if.h .PATH: ${SRCTOP}/sys/dev/fb SRCS+= vesa.c .PATH: ${SRCTOP}/sys/dev/syscons SRCS+= scvesactl.c .include diff --git a/sys/modules/vge/Makefile b/sys/modules/vge/Makefile index e2c39ac3862f..f6b3655366ee 100644 --- a/sys/modules/vge/Makefile +++ b/sys/modules/vge/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/vge KMOD= if_vge SRCS= if_vge.c miibus_if.h device_if.h bus_if.h pci_if.h opt_platform.h .include diff --git a/sys/modules/viawd/Makefile b/sys/modules/viawd/Makefile index c075977b88ef..fb8efb69ca14 100644 --- a/sys/modules/viawd/Makefile +++ b/sys/modules/viawd/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/viawd KMOD= viawd SRCS= viawd.c device_if.h bus_if.h pci_if.h isa_if.h .include diff --git a/sys/modules/videomode/Makefile b/sys/modules/videomode/Makefile index 80f7aeec00d7..729297a03a96 100644 --- a/sys/modules/videomode/Makefile +++ b/sys/modules/videomode/Makefile @@ -1,40 +1,39 @@ # -# $FreeBSD$ # # Copyright (c) 2015 Hans Petter Selasky. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # S= ${SRCTOP}/sys .PATH: $S/dev/videomode KMOD= videomode SRCS= bus_if.h device_if.h vnode_if.h \ opt_bus.h opt_ddb.h opt_videomode.h \ videomode.c \ edid.c \ pickmode.c \ vesagtf.c .include diff --git a/sys/modules/virtio/Makefile b/sys/modules/virtio/Makefile index 4a823d63c339..7622e58c0c93 100644 --- a/sys/modules/virtio/Makefile +++ b/sys/modules/virtio/Makefile @@ -1,28 +1,27 @@ # -# $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # SUBDIR= virtio pci network block balloon scsi random console .include diff --git a/sys/modules/virtio/balloon/Makefile b/sys/modules/virtio/balloon/Makefile index 59359a0dec66..fd0e4a085da5 100644 --- a/sys/modules/virtio/balloon/Makefile +++ b/sys/modules/virtio/balloon/Makefile @@ -1,33 +1,32 @@ # -# $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/virtio/balloon KMOD= virtio_balloon SRCS= virtio_balloon.c SRCS+= virtio_bus_if.h virtio_if.h SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/virtio/block/Makefile b/sys/modules/virtio/block/Makefile index 8afaf7d72c8a..d802f35a2fab 100644 --- a/sys/modules/virtio/block/Makefile +++ b/sys/modules/virtio/block/Makefile @@ -1,33 +1,32 @@ # -# $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/virtio/block KMOD= virtio_blk SRCS= virtio_blk.c SRCS+= virtio_bus_if.h virtio_if.h SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/virtio/console/Makefile b/sys/modules/virtio/console/Makefile index d4da9fcc73ae..1664d443c9e8 100644 --- a/sys/modules/virtio/console/Makefile +++ b/sys/modules/virtio/console/Makefile @@ -1,33 +1,32 @@ # -# $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/virtio/console KMOD= virtio_console SRCS= virtio_console.c SRCS+= virtio_bus_if.h virtio_if.h SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/virtio/network/Makefile b/sys/modules/virtio/network/Makefile index beeddc7ca092..5025034daa45 100644 --- a/sys/modules/virtio/network/Makefile +++ b/sys/modules/virtio/network/Makefile @@ -1,34 +1,33 @@ # -# $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/virtio/network KMOD= if_vtnet SRCS= if_vtnet.c SRCS+= virtio_bus_if.h virtio_if.h SRCS+= bus_if.h device_if.h SRCS+= opt_inet.h opt_inet6.h .include diff --git a/sys/modules/virtio/pci/Makefile b/sys/modules/virtio/pci/Makefile index 022d5ccf167c..d1361059ceba 100644 --- a/sys/modules/virtio/pci/Makefile +++ b/sys/modules/virtio/pci/Makefile @@ -1,34 +1,33 @@ # -# $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/virtio/pci KMOD= virtio_pci SRCS= virtio_pci.c virtio_pci_legacy.c virtio_pci_modern.c SRCS+= virtio_pci_if.c virtio_pci_if.h SRCS+= virtio_bus_if.h virtio_if.h SRCS+= bus_if.h device_if.h pci_if.h .include diff --git a/sys/modules/virtio/random/Makefile b/sys/modules/virtio/random/Makefile index 3421480d9585..effae07c5659 100644 --- a/sys/modules/virtio/random/Makefile +++ b/sys/modules/virtio/random/Makefile @@ -1,33 +1,32 @@ # -# $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/virtio/random KMOD= virtio_random SRCS= virtio_random.c SRCS+= virtio_bus_if.h virtio_if.h SRCS+= bus_if.h device_if.h .include diff --git a/sys/modules/virtio/scsi/Makefile b/sys/modules/virtio/scsi/Makefile index 83c6505f9880..0c14314112ff 100644 --- a/sys/modules/virtio/scsi/Makefile +++ b/sys/modules/virtio/scsi/Makefile @@ -1,33 +1,32 @@ # -# $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/virtio/scsi KMOD= virtio_scsi SRCS= virtio_scsi.c SRCS+= virtio_bus_if.h virtio_if.h SRCS+= bus_if.h device_if.h opt_scsi.h opt_cam.h .include diff --git a/sys/modules/virtio/virtio/Makefile b/sys/modules/virtio/virtio/Makefile index f60c1a4a4bc0..04cbcd0e44f1 100644 --- a/sys/modules/virtio/virtio/Makefile +++ b/sys/modules/virtio/virtio/Makefile @@ -1,37 +1,36 @@ # -# $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/virtio KMOD= virtio SRCS= virtio.c virtqueue.c SRCS+= virtio_bus_if.c virtio_bus_if.h SRCS+= virtio_if.c virtio_if.h SRCS+= bus_if.h device_if.h EXPORT_SYMS= YES .include diff --git a/sys/modules/vkbd/Makefile b/sys/modules/vkbd/Makefile index 00654c1136eb..299fea441210 100644 --- a/sys/modules/vkbd/Makefile +++ b/sys/modules/vkbd/Makefile @@ -1,14 +1,13 @@ # $Id: Makefile,v 1.1 2004/08/13 18:30:24 max Exp $ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/vkbd KMOD= vkbd SRCS= vkbd.c opt_kbd.h .if !defined(KERNBUILDDIR) opt_kbd.h: echo "#define KBD_INSTALL_CDEV 1" > ${.TARGET} .endif .include diff --git a/sys/modules/vmd/Makefile b/sys/modules/vmd/Makefile index 96523fa93806..c9f2f40730ec 100644 --- a/sys/modules/vmd/Makefile +++ b/sys/modules/vmd/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/vmd KMOD= vmd SRCS= \ vmd.c \ bus_if.h \ device_if.h \ pci_if.h \ pcib_if.h \ .include diff --git a/sys/modules/vmm/Makefile b/sys/modules/vmm/Makefile index 412342967eec..6bb78d055580 100644 --- a/sys/modules/vmm/Makefile +++ b/sys/modules/vmm/Makefile @@ -1,91 +1,90 @@ -# $FreeBSD$ .include KMOD= vmm SRCS= opt_acpi.h opt_bhyve_snapshot.h opt_ddb.h SRCS+= device_if.h bus_if.h pci_if.h pcib_if.h acpi_if.h vnode_if.h DPSRCS+= vmx_assym.h svm_assym.h DPSRCS+= vmx_genassym.c svm_genassym.c offset.inc CFLAGS+= -DVMM_KEEP_STATS CFLAGS+= -I${SRCTOP}/sys/amd64/vmm CFLAGS+= -I${SRCTOP}/sys/amd64/vmm/io CFLAGS+= -I${SRCTOP}/sys/amd64/vmm/intel CFLAGS+= -I${SRCTOP}/sys/amd64/vmm/amd # generic vmm support .PATH: ${SRCTOP}/sys/amd64/vmm SRCS+= vmm.c \ vmm_dev.c \ vmm_host.c \ vmm_instruction_emul.c \ vmm_ioport.c \ vmm_lapic.c \ vmm_mem.c \ vmm_stat.c \ vmm_util.c \ x86.c .PATH: ${SRCTOP}/sys/amd64/vmm/io SRCS+= iommu.c \ ppt.c \ vatpic.c \ vatpit.c \ vhpet.c \ vioapic.c \ vlapic.c \ vpmtmr.c \ vrtc.c # intel-specific files .PATH: ${SRCTOP}/sys/amd64/vmm/intel SRCS+= ept.c \ vmcs.c \ vmx_msr.c \ vmx_support.S \ vmx.c \ vtd.c # amd-specific files .PATH: ${SRCTOP}/sys/amd64/vmm/amd SRCS+= vmcb.c \ amdiommu.c \ ivhd_if.c \ ivhd_if.h \ svm.c \ svm_support.S \ npt.c \ ivrs_drv.c \ amdvi_hw.c \ svm_msr.c SRCS.BHYVE_SNAPSHOT= vmm_snapshot.c CLEANFILES= vmx_assym.h vmx_genassym.o svm_assym.h svm_genassym.o OBJS_DEPEND_GUESS.vmx_support.o+= vmx_assym.h OBJS_DEPEND_GUESS.svm_support.o+= svm_assym.h vmx_assym.h: vmx_genassym.o sh ${SYSDIR}/kern/genassym.sh vmx_genassym.o > ${.TARGET} svm_assym.h: svm_genassym.o sh ${SYSDIR}/kern/genassym.sh svm_genassym.o > ${.TARGET} vmx_support.o: ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.IMPSRC} -o ${.TARGET} svm_support.o: ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.IMPSRC} -o ${.TARGET} vmx_genassym.o: offset.inc ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon ${.IMPSRC} svm_genassym.o: offset.inc ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon ${.IMPSRC} .include diff --git a/sys/modules/vmware/Makefile b/sys/modules/vmware/Makefile index a7902a1b0880..3d75f1a59c5c 100644 --- a/sys/modules/vmware/Makefile +++ b/sys/modules/vmware/Makefile @@ -1,30 +1,29 @@ # -# $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # SUBDIR= pvscsi vmxnet3 .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" SUBDIR+= vmci .endif .include diff --git a/sys/modules/vmware/pvscsi/Makefile b/sys/modules/vmware/pvscsi/Makefile index 6a4e8af952e1..60951e886ce5 100644 --- a/sys/modules/vmware/pvscsi/Makefile +++ b/sys/modules/vmware/pvscsi/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/vmware/pvscsi KMOD= pvscsi SRCS= pvscsi.c SRCS+= device_if.h bus_if.h pci_if.h SRCS+= opt_cam.h .include diff --git a/sys/modules/vmware/vmci/Makefile b/sys/modules/vmware/vmci/Makefile index 09b6aadf6892..45accc068cc8 100644 --- a/sys/modules/vmware/vmci/Makefile +++ b/sys/modules/vmware/vmci/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/vmware/vmci KMOD= vmci SRCS= vmci.c vmci_datagram.c vmci_doorbell.c vmci_driver.c vmci_event.c SRCS+= vmci_hashtable.c vmci_kernel_if.c vmci_qpair.c vmci_queue_pair.c SRCS+= vmci_resource.c SRCS+= device_if.h bus_if.h pci_if.h .include diff --git a/sys/modules/vmware/vmxnet3/Makefile b/sys/modules/vmware/vmxnet3/Makefile index 073c9fd077d0..8e0e9ba68f95 100644 --- a/sys/modules/vmware/vmxnet3/Makefile +++ b/sys/modules/vmware/vmxnet3/Makefile @@ -1,33 +1,32 @@ # -# $FreeBSD$ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .PATH: ${SRCTOP}/sys/dev/vmware/vmxnet3 KMOD= if_vmx SRCS= if_vmx.c SRCS+= bus_if.h device_if.h pci_if.h ifdi_if.h SRCS+= opt_inet.h opt_inet6.h opt_rss.h .include diff --git a/sys/modules/vnic/Makefile b/sys/modules/vnic/Makefile index d1e0a8e2d915..79e206c8ef08 100644 --- a/sys/modules/vnic/Makefile +++ b/sys/modules/vnic/Makefile @@ -1,10 +1,9 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" CFLAGS+= -DFDT SUBDIR = mrmlbus thunder_mdio thunder_bgx vnicpf vnicvf .include diff --git a/sys/modules/vnic/mrmlbus/Makefile b/sys/modules/vnic/mrmlbus/Makefile index e3d3b2806823..e7397f8d8402 100644 --- a/sys/modules/vnic/mrmlbus/Makefile +++ b/sys/modules/vnic/mrmlbus/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" S= ${SRCTOP}/sys .PATH: $S/dev/vnic KMOD= mrmlbus SRCS= device_if.h bus_if.h opt_platform.h pci_if.h ofw_bus_if.h miibus_if.h lmac_if.h SRCS+= mrml_bridge.c CFLAGS+= -DFDT .include diff --git a/sys/modules/vnic/thunder_bgx/Makefile b/sys/modules/vnic/thunder_bgx/Makefile index d1284382d222..b51fe40a3b15 100644 --- a/sys/modules/vnic/thunder_bgx/Makefile +++ b/sys/modules/vnic/thunder_bgx/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" S= ${SRCTOP}/sys .PATH: $S/dev/vnic KMOD= thunder_bgx SRCS= thunder_bgx.c thunder_bgx_fdt.c SRCS+= opt_platform.h device_if.h bus_if.h pci_if.h lmac_if.h ofw_bus_if.h CFLAGS+= -DFDT .include diff --git a/sys/modules/vnic/thunder_mdio/Makefile b/sys/modules/vnic/thunder_mdio/Makefile index 33c3b9c9e1f4..899a9dfb5789 100644 --- a/sys/modules/vnic/thunder_mdio/Makefile +++ b/sys/modules/vnic/thunder_mdio/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" S= ${SRCTOP}/sys .PATH: $S/dev/vnic KMOD= thunder_mdio SRCS= opt_platform.h device_if.h bus_if.h pci_if.h ofw_bus_if.h miibus_if.h lmac_if.h SRCS+= thunder_mdio.c thunder_mdio_fdt.c CFLAGS+= -DFDT .include diff --git a/sys/modules/vnic/vnicpf/Makefile b/sys/modules/vnic/vnicpf/Makefile index 111de738686b..8ba2cd029854 100644 --- a/sys/modules/vnic/vnicpf/Makefile +++ b/sys/modules/vnic/vnicpf/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" S= ${SRCTOP}/sys .PATH: $S/dev/vnic KMOD= vnicpf SRCS= pci_iov_if.h opt_platform.h device_if.h bus_if.h pci_if.h ofw_bus_if.h miibus_if.h lmac_if.h SRCS+= nic_main.c CFLAGS+= -DFDT -DPCI_IOV .include diff --git a/sys/modules/vnic/vnicvf/Makefile b/sys/modules/vnic/vnicvf/Makefile index 52a3c232420c..3f81ba16cff2 100644 --- a/sys/modules/vnic/vnicvf/Makefile +++ b/sys/modules/vnic/vnicvf/Makefile @@ -1,16 +1,15 @@ -# $FreeBSD$ SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" S= ${SRCTOP}/sys .PATH: $S/dev/vnic KMOD= vnicvf SRCS= nicvf_main.c nicvf_queues.c SRCS+= opt_platform.h ofw_bus_if.h lmac_if.h miibus_if.h pci_if.h bus_if.h device_if.h opt_inet.h opt_inet6.h CFLAGS+= -DFDT -DPCI_IOV .include diff --git a/sys/modules/vr/Makefile b/sys/modules/vr/Makefile index 5a37480c9ffc..980243faea4e 100644 --- a/sys/modules/vr/Makefile +++ b/sys/modules/vr/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/vr KMOD= if_vr SRCS= if_vr.c device_if.h bus_if.h pci_if.h SRCS+= miibus_if.h opt_platform.h .include diff --git a/sys/modules/vte/Makefile b/sys/modules/vte/Makefile index b6b7b7ba66e9..3dc09ebf829e 100644 --- a/sys/modules/vte/Makefile +++ b/sys/modules/vte/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/vte KMOD= if_vte SRCS= if_vte.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h .include diff --git a/sys/modules/wbwd/Makefile b/sys/modules/wbwd/Makefile index 28fa9514846b..053d4a7aa9e6 100644 --- a/sys/modules/wbwd/Makefile +++ b/sys/modules/wbwd/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/wbwd KMOD= wbwd SRCS= wbwd.c SRCS+= bus_if.h device_if.h isa_if.h .include diff --git a/sys/modules/wdatwd/Makefile b/sys/modules/wdatwd/Makefile index 6283a4168d09..d9f578c8ad01 100644 --- a/sys/modules/wdatwd/Makefile +++ b/sys/modules/wdatwd/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/wdatwd KMOD= wdatwd SRCS= wdatwd.c SRCS+= opt_acpi.h acpi_if.h device_if.h bus_if.h .include diff --git a/sys/modules/wlan/Makefile b/sys/modules/wlan/Makefile index 2a31e11492b0..1233e8216b4e 100644 --- a/sys/modules/wlan/Makefile +++ b/sys/modules/wlan/Makefile @@ -1,27 +1,26 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net80211 KMOD= wlan SRCS= ieee80211.c ieee80211_action.c ieee80211_ageq.c \ ieee80211_crypto.c ieee80211_crypto_none.c ieee80211_dfs.c \ ieee80211_freebsd.c ieee80211_input.c ieee80211_ioctl.c \ ieee80211_mesh.c ieee80211_node.c ieee80211_output.c ieee80211_phy.c \ ieee80211_power.c ieee80211_proto.c ieee80211_scan.c ieee80211_scan_sw.c \ ieee80211_scan_sta.c ieee80211_radiotap.c ieee80211_ratectl.c \ ieee80211_ratectl_none.c ieee80211_regdomain.c \ ieee80211_ht.c ieee80211_hwmp.c ieee80211_adhoc.c ieee80211_hostap.c \ ieee80211_monitor.c ieee80211_sta.c ieee80211_wds.c ieee80211_ddb.c \ ieee80211_tdma.c ieee80211_superg.c ieee80211_vht.c SRCS+= bus_if.h device_if.h opt_ddb.h opt_inet.h opt_inet6.h \ opt_tdma.h opt_wlan.h EXPORT_SYMS= YES .include CWARNFLAGS.ieee80211_adhoc.c= -Wno-unused-function CWARNFLAGS.ieee80211_crypto.c= -Wno-unused-function CWARNFLAGS.ieee80211_hostap.c= -Wno-unused-function CWARNFLAGS.ieee80211_mesh.c= -Wno-unused-function CWARNFLAGS.ieee80211_sta.c= -Wno-unused-function diff --git a/sys/modules/wlan_acl/Makefile b/sys/modules/wlan_acl/Makefile index 13d7ec2adceb..168966aa0d81 100644 --- a/sys/modules/wlan_acl/Makefile +++ b/sys/modules/wlan_acl/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net80211 KMOD= wlan_acl SRCS= ieee80211_acl.c SRCS+= opt_wlan.h .include diff --git a/sys/modules/wlan_amrr/Makefile b/sys/modules/wlan_amrr/Makefile index 226111f3ec58..13503fff695d 100644 --- a/sys/modules/wlan_amrr/Makefile +++ b/sys/modules/wlan_amrr/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net80211 KMOD= wlan_amrr SRCS= ieee80211_amrr.c SRCS+= opt_wlan.h .include diff --git a/sys/modules/wlan_ccmp/Makefile b/sys/modules/wlan_ccmp/Makefile index 21978232a73f..a00d61b5f23d 100644 --- a/sys/modules/wlan_ccmp/Makefile +++ b/sys/modules/wlan_ccmp/Makefile @@ -1,11 +1,10 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net80211 .PATH: ${SRCTOP}/sys/crypto/rijndael KMOD= wlan_ccmp SRCS= ieee80211_crypto_ccmp.c SRCS+= rijndael-alg-fst.c rijndael-api.c SRCS+= opt_wlan.h .include diff --git a/sys/modules/wlan_rssadapt/Makefile b/sys/modules/wlan_rssadapt/Makefile index 5a446a7fd93c..df3f86611d94 100644 --- a/sys/modules/wlan_rssadapt/Makefile +++ b/sys/modules/wlan_rssadapt/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net80211 KMOD= wlan_rssadapt SRCS= ieee80211_rssadapt.c SRCS+= opt_wlan.h .include diff --git a/sys/modules/wlan_tkip/Makefile b/sys/modules/wlan_tkip/Makefile index d451b0517803..2888597dde8d 100644 --- a/sys/modules/wlan_tkip/Makefile +++ b/sys/modules/wlan_tkip/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net80211 KMOD= wlan_tkip SRCS= ieee80211_crypto_tkip.c SRCS+= opt_wlan.h .include diff --git a/sys/modules/wlan_wep/Makefile b/sys/modules/wlan_wep/Makefile index 2a446b78b110..4d3e75803282 100644 --- a/sys/modules/wlan_wep/Makefile +++ b/sys/modules/wlan_wep/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net80211 KMOD= wlan_wep SRCS= ieee80211_crypto_wep.c SRCS+= opt_wlan.h .include diff --git a/sys/modules/wlan_xauth/Makefile b/sys/modules/wlan_xauth/Makefile index afe3c1728fde..6d5cb21147fc 100644 --- a/sys/modules/wlan_xauth/Makefile +++ b/sys/modules/wlan_xauth/Makefile @@ -1,9 +1,8 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/net80211 KMOD= wlan_xauth SRCS= ieee80211_xauth.c SRCS+= opt_wlan.h .include diff --git a/sys/modules/wpi/Makefile b/sys/modules/wpi/Makefile index a4bb0d5a6beb..d292618f5fcc 100644 --- a/sys/modules/wpi/Makefile +++ b/sys/modules/wpi/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/wpi KMOD = if_wpi SRCS = if_wpi.c device_if.h bus_if.h pci_if.h opt_wpi.h opt_wlan.h .include diff --git a/sys/modules/wpifw/Makefile b/sys/modules/wpifw/Makefile index bb23f3c89cf0..60638d514db0 100644 --- a/sys/modules/wpifw/Makefile +++ b/sys/modules/wpifw/Makefile @@ -1,13 +1,12 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/contrib/dev/wpi KMOD= wpifw FIRMWS= iwlwifi-3945-15.32.2.9.fw:wpifw:153229 CLEANFILES= iwlwifi-3945-15.32.2.9.fw iwlwifi-3945-15.32.2.9.fw: iwlwifi-3945-15.32.2.9.fw.uu uudecode -p ${.ALLSRC} > ${.TARGET} .include diff --git a/sys/modules/wtap/Makefile b/sys/modules/wtap/Makefile index d8ec70a2d3f0..0ad01b627b15 100644 --- a/sys/modules/wtap/Makefile +++ b/sys/modules/wtap/Makefile @@ -1,24 +1,23 @@ -# $FreeBSD$ KMOD= wtap .PATH: ${SRCTOP}/sys/dev/wtap SRCS= if_wtap_module.c if_wtap.c if_medium.c .PATH: ${SRCTOP}/sys/dev/wtap/wtap_hal SRCS+= hal.c .PATH: ${SRCTOP}/sys/dev/wtap/plugins SRCS+= visibility.c SRCS+= opt_wlan.h opt_global.h .if !defined(KERNBUILDDIR) .if defined(VIMAGE) opt_global.h: echo "#define VIMAGE 1" >> ${.TARGET} CFLAGS+= -include opt_global.h .endif .endif .include diff --git a/sys/modules/x86bios/Makefile b/sys/modules/x86bios/Makefile index 5d5885673dd9..c3708b277504 100644 --- a/sys/modules/x86bios/Makefile +++ b/sys/modules/x86bios/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ KMOD= x86bios SRCS= opt_x86bios.h SRCS+= bus_if.h device_if.h pci_if.h .PATH: ${SRCTOP}/sys/contrib/x86emu .PATH: ${SRCTOP}/sys/compat/x86bios SRCS+= x86bios.c .if ${MACHINE_ARCH} != "i386" SRCS+= x86emu.c .endif .include diff --git a/sys/modules/xdr/Makefile b/sys/modules/xdr/Makefile index e59ca185b510..44274237aac9 100644 --- a/sys/modules/xdr/Makefile +++ b/sys/modules/xdr/Makefile @@ -1,14 +1,13 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/xdr KMOD= xdr SRCS= xdr.c \ xdr_array.c \ xdr_mbuf.c \ xdr_mem.c \ xdr_reference.c \ xdr_sizeof.c EXPORT_SYMS= YES .include diff --git a/sys/modules/xl/Makefile b/sys/modules/xl/Makefile index c6f6124feeb3..74f82c998d7d 100644 --- a/sys/modules/xl/Makefile +++ b/sys/modules/xl/Makefile @@ -1,8 +1,7 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/xl KMOD= if_xl SRCS= bus_if.h device_if.h if_xl.c miibus_if.h miidevs.h pci_if.h xlphy.c opt_platform.h .include diff --git a/sys/modules/xz/Makefile b/sys/modules/xz/Makefile index 45d2a991b2e1..fae30d8ad885 100644 --- a/sys/modules/xz/Makefile +++ b/sys/modules/xz/Makefile @@ -1,24 +1,23 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/xz .PATH: ${SRCTOP}/sys/contrib/xz-embedded/freebsd .PATH: ${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz KMOD= xz SRCS= \ xz_crc32.c \ xz_crc64.c \ xz_dec_bcj.c \ xz_dec_lzma2.c \ xz_dec_stream.c \ xz_mod.c CFLAGS+= \ -DXZ_USE_CRC64 \ -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \ -I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz \ -I${SRCTOP}/sys/contrib/xz-embedded/linux/include/linux EXPORT_SYMS= YES .include diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile index 8964e461cdd2..056e6a015971 100644 --- a/sys/modules/zfs/Makefile +++ b/sys/modules/zfs/Makefile @@ -1,528 +1,527 @@ -# $FreeBSD$ SRCDIR=${SRCTOP}/sys/contrib/openzfs/module INCDIR=${SRCTOP}/sys/contrib/openzfs/include KMOD= zfs .PATH: ${SRCDIR}/avl \ ${SRCDIR}/lua \ ${SRCDIR}/nvpair \ ${SRCDIR}/icp/algs/blake3 \ ${SRCDIR}/icp/algs/edonr \ ${SRCDIR}/icp/algs/sha2 \ ${SRCDIR}/icp/asm-aarch64/blake3 \ ${SRCDIR}/icp/asm-aarch64/sha2 \ ${SRCDIR}/icp/asm-arm/sha2 \ ${SRCDIR}/icp/asm-ppc64/sha2 \ ${SRCDIR}/icp/asm-ppc64/blake3 \ ${SRCDIR}/icp/asm-x86_64/blake3 \ ${SRCDIR}/icp/asm-x86_64/sha2 \ ${SRCDIR}/os/freebsd/spl \ ${SRCDIR}/os/freebsd/zfs \ ${SRCDIR}/unicode \ ${SRCDIR}/zcommon \ ${SRCDIR}/zfs \ ${SRCDIR}/zstd \ ${SRCDIR}/zstd/lib/common \ ${SRCDIR}/zstd/lib/compress \ ${SRCDIR}/zstd/lib/decompress CFLAGS+= -I${INCDIR} CFLAGS+= -I${SRCDIR}/icp/include CFLAGS+= -I${INCDIR}/os/freebsd CFLAGS+= -I${INCDIR}/os/freebsd/spl CFLAGS+= -I${INCDIR}/os/freebsd/zfs CFLAGS+= -I${SRCDIR}/zstd/include CFLAGS+= -I${.CURDIR} CFLAGS+= -D__KERNEL__ -DFREEBSD_NAMECACHE -DBUILDING_ZFS \ -DHAVE_UIO_ZEROCOPY -DWITHOUT_NETDUMP -D__KERNEL -D_SYS_CONDVAR_H_ \ -D_SYS_VMEM_H_ .if ${MACHINE_ARCH} == "amd64" CFLAGS+= -D__x86_64 -DHAVE_SSE2 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 \ -DHAVE_AVX -DHAVE_AVX2 -DHAVE_AVX512F -DHAVE_AVX512VL -DHAVE_AVX512BW .endif .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \ ${MACHINE_ARCH} == "powerpcspe" || ${MACHINE_ARCH} == "arm" CFLAGS+= -DBITS_PER_LONG=32 .else CFLAGS+= -DBITS_PER_LONG=64 .endif SRCS= vnode_if.h device_if.h bus_if.h # avl SRCS+= avl.c # icp SRCS+= edonr.c #icp/algs/blake3 SRCS+= blake3.c \ blake3_generic.c \ blake3_impl.c .if ${MACHINE_ARCH} == "aarch64" #icp/asm-aarch64/blake3 SRCS+= b3_aarch64_sse2.S \ b3_aarch64_sse41.S .endif .if ${MACHINE_ARCH} == "powerpc64le" #icp/asm-ppc64/blake3 SRCS+= b3_ppc64le_sse2.S \ b3_ppc64le_sse41.S .endif .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" #icp/asm-x86_64/blake3 SRCS+= blake3_avx2.S \ blake3_avx512.S \ blake3_sse2.S \ blake3_sse41.S .endif #icp/algs/sha2 SRCS+= sha2_generic.c \ sha256_impl.c \ sha512_impl.c .if ${MACHINE_ARCH} == "armv7" #icp/asm-arm/sha2 SRCS+= sha256-armv7.S \ sha512-armv7.S .endif .if ${MACHINE_ARCH} == "aarch64" #icp/asm-aarch64/sha2 OBJS+= zfs-sha256-armv8.o \ zfs-sha512-armv8.o .endif .if ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc64le" #icp/asm-ppc64/sha2 SRCS+= sha256-p8.S \ sha512-p8.S \ sha256-ppc.S \ sha512-ppc.S .endif .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" #icp/asm-x86_64/sha2 OBJS+= zfs-sha256-x86_64.o \ zfs-sha512-x86_64.o .endif #lua SRCS+= lapi.c \ lauxlib.c \ lbaselib.c \ lcode.c \ lcompat.c \ lcorolib.c \ lctype.c \ ldebug.c \ ldo.c \ lfunc.c \ lgc.c \ llex.c \ lmem.c \ lobject.c \ lopcodes.c \ lparser.c \ lstate.c \ lstring.c \ lstrlib.c \ ltable.c \ ltablib.c \ ltm.c \ lvm.c \ lzio.c #nvpair SRCS+= nvpair.c \ fnvpair.c \ nvpair_alloc_spl.c \ nvpair_alloc_fixed.c #os/freebsd/spl SRCS+= acl_common.c \ callb.c \ list.c \ spl_acl.c \ spl_cmn_err.c \ spl_dtrace.c \ spl_kmem.c \ spl_kstat.c \ spl_misc.c \ spl_policy.c \ spl_procfs_list.c \ spl_string.c \ spl_sunddi.c \ spl_sysevent.c \ spl_taskq.c \ spl_uio.c \ spl_vfs.c \ spl_vm.c \ spl_zlib.c \ spl_zone.c .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \ ${MACHINE_ARCH} == "powerpcspe" || ${MACHINE_ARCH} == "arm" SRCS+= spl_atomic.c .endif #os/freebsd/zfs SRCS+= abd_os.c \ arc_os.c \ crypto_os.c \ dmu_os.c \ event_os.c \ hkdf.c \ kmod_core.c \ spa_os.c \ sysctl_os.c \ vdev_file.c \ vdev_geom.c \ vdev_label_os.c \ zfs_acl.c \ zfs_ctldir.c \ zfs_debug.c \ zfs_dir.c \ zfs_ioctl_compat.c \ zfs_ioctl_os.c \ zfs_racct.c \ zfs_vfsops.c \ zfs_vnops_os.c \ zfs_znode.c \ zio_crypt.c \ zvol_os.c #unicode SRCS+= uconv.c \ u8_textprep.c #zcommon SRCS+= zfeature_common.c \ zfs_comutil.c \ zfs_deleg.c \ zfs_fletcher.c \ zfs_fletcher_avx512.c \ zfs_fletcher_intel.c \ zfs_fletcher_sse.c \ zfs_fletcher_superscalar.c \ zfs_fletcher_superscalar4.c \ zfs_namecheck.c \ zfs_prop.c \ zpool_prop.c \ zprop_common.c #zfs SRCS+= abd.c \ aggsum.c \ arc.c \ blake3_zfs.c \ blkptr.c \ bplist.c \ bpobj.c \ brt.c \ btree.c \ cityhash.c \ dbuf.c \ dbuf_stats.c \ bptree.c \ bqueue.c \ dataset_kstats.c \ ddt.c \ ddt_zap.c \ dmu.c \ dmu_diff.c \ dmu_object.c \ dmu_objset.c \ dmu_recv.c \ dmu_redact.c \ dmu_send.c \ dmu_traverse.c \ dmu_tx.c \ dmu_zfetch.c \ dnode.c \ dnode_sync.c \ dsl_dataset.c \ dsl_deadlist.c \ dsl_deleg.c \ dsl_bookmark.c \ dsl_dir.c \ dsl_crypt.c \ dsl_destroy.c \ dsl_pool.c \ dsl_prop.c \ dsl_scan.c \ dsl_synctask.c \ dsl_userhold.c \ edonr_zfs.c \ fm.c \ gzip.c \ lzjb.c \ lz4.c \ lz4_zfs.c \ metaslab.c \ mmp.c \ multilist.c \ objlist.c \ pathname.c \ range_tree.c \ refcount.c \ rrwlock.c \ sa.c \ sha2_zfs.c \ skein_zfs.c \ spa.c \ spa_checkpoint.c \ spa_config.c \ spa_errlog.c \ spa_history.c \ spa_log_spacemap.c \ spa_misc.c \ spa_stats.c \ space_map.c \ space_reftree.c \ txg.c \ uberblock.c \ unique.c \ vdev.c \ vdev_draid.c \ vdev_draid_rand.c \ vdev_indirect.c \ vdev_indirect_births.c \ vdev_indirect_mapping.c \ vdev_initialize.c \ vdev_label.c \ vdev_mirror.c \ vdev_missing.c \ vdev_queue.c \ vdev_raidz.c \ vdev_raidz_math.c \ vdev_raidz_math_scalar.c \ vdev_raidz_math_avx2.c \ vdev_raidz_math_avx512bw.c \ vdev_raidz_math_avx512f.c \ vdev_raidz_math_sse2.c \ vdev_raidz_math_ssse3.c \ vdev_rebuild.c \ vdev_removal.c \ vdev_root.c \ vdev_trim.c \ zap.c \ zap_leaf.c \ zap_micro.c \ zcp.c \ zcp_get.c \ zcp_global.c \ zcp_iter.c \ zcp_set.c \ zcp_synctask.c \ zfeature.c \ zfs_byteswap.c \ zfs_chksum.c \ zfs_file_os.c \ zfs_fm.c \ zfs_fuid.c \ zfs_impl.c \ zfs_ioctl.c \ zfs_log.c \ zfs_onexit.c \ zfs_quota.c \ zfs_ratelimit.c \ zfs_replay.c \ zfs_rlock.c \ zfs_sa.c \ zfs_vnops.c \ zil.c \ zio.c \ zio_checksum.c \ zio_compress.c \ zio_inject.c \ zle.c \ zrlock.c \ zthr.c \ zvol.c #zstd SRCS+= zfs_zstd.c \ entropy_common.c \ error_private.c \ fse_compress.c \ fse_decompress.c \ hist.c \ huf_compress.c \ huf_decompress.c \ pool.c \ xxhash.c \ zstd_common.c \ zstd_compress.c \ zstd_compress_literals.c \ zstd_compress_sequences.c \ zstd_compress_superblock.c \ zstd_ddict.c \ zstd_decompress.c \ zstd_decompress_block.c \ zstd_double_fast.c \ zstd_fast.c \ zstd_lazy.c \ zstd_ldm.c \ zstd_opt.c .include CFLAGS+= -include ${SRCTOP}/sys/cddl/compat/opensolaris/sys/debug_compat.h CFLAGS+= -include ${INCDIR}/os/freebsd/spl/sys/ccompile.h CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/static_ccompile.h CFLAGS.sysctl_os.c= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h CFLAGS.xxhash.c+= -include ${SRCTOP}/sys/sys/_null.h CFLAGS.gcc+= -Wno-pointer-to-int-cast CFLAGS.abd.c= -Wno-cast-qual CFLAGS.ddt.c= -Wno-cast-qual CFLAGS.dmu.c= -Wno-cast-qual CFLAGS.dmu_traverse.c= -Wno-cast-qual CFLAGS.dnode.c= ${NO_WUNUSED_BUT_SET_VARIABLE} CFLAGS.dsl_deadlist.c= -Wno-cast-qual CFLAGS.dsl_dir.c= -Wno-cast-qual CFLAGS.dsl_prop.c= -Wno-cast-qual CFLAGS.edonr.c= -Wno-cast-qual CFLAGS.fm.c= -Wno-cast-qual CFLAGS.hist.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.lapi.c= -Wno-cast-qual CFLAGS.lcompat.c= -Wno-cast-qual CFLAGS.ldo.c= ${NO_WINFINITE_RECURSION} CFLAGS.lobject.c= -Wno-cast-qual CFLAGS.ltable.c= -Wno-cast-qual CFLAGS.lvm.c= -Wno-cast-qual CFLAGS.lz4.c= -Wno-cast-qual CFLAGS.lz4_zfs.c= -Wno-cast-qual CFLAGS.nvpair.c= -Wno-cast-qual -DHAVE_RPC_TYPES ${NO_WSTRINGOP_OVERREAD} CFLAGS.pool.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.pool.c= -U__BMI__ -fno-tree-vectorize CFLAGS.spa.c= -Wno-cast-qual CFLAGS.spa_misc.c= -Wno-cast-qual CFLAGS.spl_string.c= -Wno-cast-qual CFLAGS.spl_vm.c= -Wno-cast-qual CFLAGS.spl_zlib.c= -Wno-cast-qual CFLAGS.u8_textprep.c= -Wno-cast-qual CFLAGS.vdev_draid.c= -Wno-cast-qual CFLAGS.vdev_raidz.c= -Wno-cast-qual CFLAGS.vdev_raidz_math.c= -Wno-cast-qual CFLAGS.vdev_raidz_math_avx2.c= -Wno-cast-qual -Wno-duplicate-decl-specifier CFLAGS.vdev_raidz_math_avx512f.c= -Wno-cast-qual -Wno-duplicate-decl-specifier CFLAGS.vdev_raidz_math_scalar.c= -Wno-cast-qual CFLAGS.vdev_raidz_math_sse2.c= -Wno-cast-qual -Wno-duplicate-decl-specifier CFLAGS.zap_leaf.c= -Wno-cast-qual CFLAGS.zap_micro.c= -Wno-cast-qual CFLAGS.zcp.c= -Wno-cast-qual CFLAGS.zfs_fletcher.c= -Wno-cast-qual -Wno-pointer-arith CFLAGS.zfs_fletcher_avx512.c= -Wno-cast-qual -Wno-pointer-arith CFLAGS.zfs_fletcher_intel.c= -Wno-cast-qual -Wno-pointer-arith CFLAGS.zfs_fletcher_sse.c= -Wno-cast-qual -Wno-pointer-arith CFLAGS.zfs_fm.c= -Wno-cast-qual ${NO_WUNUSED_BUT_SET_VARIABLE} CFLAGS.zfs_ioctl.c= -Wno-cast-qual CFLAGS.zfs_log.c= -Wno-cast-qual CFLAGS.zfs_vnops_os.c= -Wno-pointer-arith CFLAGS.zfs_zstd.c= -Wno-cast-qual -Wno-pointer-arith CFLAGS.zil.c= -Wno-cast-qual CFLAGS.zio.c= -Wno-cast-qual CFLAGS.zprop_common.c= -Wno-cast-qual CFLAGS.zrlock.c= -Wno-cast-qual #zstd CFLAGS.entropy_common.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.error_private.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.fse_compress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} ${NO_WUNUSED_BUT_SET_VARIABLE} CFLAGS.fse_decompress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.huf_compress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.huf_decompress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.xxhash.c+= -U__BMI__ -fno-tree-vectorize CFLAGS.xxhash.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_common.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_compress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_compress_literals.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_compress_sequences.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_compress_superblock.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} ${NO_WUNUSED_BUT_SET_VARIABLE} CFLAGS.zstd_ddict.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_decompress.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_decompress_block.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_double_fast.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_fast.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_lazy.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_ldm.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_opt.c= -U__BMI__ -fno-tree-vectorize ${NO_WBITWISE_INSTEAD_OF_LOGICAL} .if ${MACHINE_ARCH} == "aarch64" __ZFS_ZSTD_AARCH64_FLAGS= -include ${SRCDIR}/zstd/include/aarch64_compat.h CFLAGS.zstd.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.entropy_common.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.error_private.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.fse_compress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.fse_decompress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.hist.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.huf_compress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.huf_decompress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.pool.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.xxhash.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_common.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_compress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_compress_literals.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_compress_sequences.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_compress_superblock.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_ddict.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_decompress.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_decompress_block.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_double_fast.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_fast.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_lazy.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_ldm.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_opt.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} b3_aarch64_sse2.o: b3_aarch64_sse2.S ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC} \ -o ${.TARGET} ${CTFCONVERT_CMD} b3_aarch64_sse41.o: b3_aarch64_sse41.S ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC} \ -o ${.TARGET} ${CTFCONVERT_CMD} zfs-sha256-armv8.o: sha256-armv8.S ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} \ ${SRCDIR}/icp/asm-aarch64/sha2/sha256-armv8.S \ -o ${.TARGET} ${CTFCONVERT_CMD} zfs-sha512-armv8.o: sha512-armv8.S ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} \ ${SRCDIR}/icp/asm-aarch64/sha2/sha512-armv8.S \ -o ${.TARGET} ${CTFCONVERT_CMD} .endif .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" zfs-sha256-x86_64.o: sha256-x86_64.S ${CC} -c ${CFLAGS} ${WERROR} \ ${SRCDIR}/icp/asm-x86_64/sha2/sha256-x86_64.S \ -o ${.TARGET} ${CTFCONVERT_CMD} zfs-sha512-x86_64.o: sha512-x86_64.S ${CC} -c ${CFLAGS} ${WERROR} \ ${SRCDIR}/icp/asm-x86_64/sha2/sha512-x86_64.S \ -o ${.TARGET} ${CTFCONVERT_CMD} .endif diff --git a/sys/modules/zlib/Makefile b/sys/modules/zlib/Makefile index b5a55b9812bb..7f4f76fa2112 100644 --- a/sys/modules/zlib/Makefile +++ b/sys/modules/zlib/Makefile @@ -1,30 +1,29 @@ -# $FreeBSD$ .PATH: ${SRCTOP}/sys/libkern .PATH: ${SRCTOP}/sys/dev/zlib .PATH: ${SRCTOP}/sys/contrib/zlib KMOD= zlib SRCS+= zcalloc.c SRCS+= zlib_mod.c SRCS+= adler32.c SRCS+= compress.c SRCS+= crc32.c SRCS+= deflate.c SRCS+= inffast.c SRCS+= inflate.c SRCS+= inftrees.c SRCS+= trees.c SRCS+= uncompr.c SRCS+= zutil.c CWARNFLAGS.compress.c+=-Wno-cast-qual # compress:49 CWARNFLAGS.deflate.c+=-Wno-cast-qual # deflate.c:415 CWARNFLAGS.uncompr.c+=-Wno-cast-qual # uncompr:49 CWARNFLAGS.crc32.c+=${NO_WSTRICT_PROTOTYPES} # crc32.c:586 CWARNFLAGS.trees.c+=${NO_WSTRICT_PROTOTYPES} # trees.c:232 CWARNFLAGS.zutil.c+=${NO_WSTRICT_PROTOTYPES} # zutil.c:27,32 .include CWARNFLAGS+=${NO_WDEPRECATED_NON_PROTOTYPE} # https://github.com/madler/zlib/issues/633 diff --git a/sys/net/ifdi_if.m b/sys/net/ifdi_if.m index f07a79624e86..a9c285c4dd31 100644 --- a/sys/net/ifdi_if.m +++ b/sys/net/ifdi_if.m @@ -1,367 +1,366 @@ # # Copyright (c) 2014, Matthew Macy (mmacy@mattmacy.io) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # # 2. Neither the name of Matthew Macy nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include #include #include #include #include #include #include #include #include INTERFACE ifdi; CODE { static void null_void_op(if_ctx_t _ctx __unused) { } static void null_timer_op(if_ctx_t _ctx __unused, uint16_t _qsidx __unused) { } static int null_int_op(if_ctx_t _ctx __unused) { return (0); } static int null_queue_intr_enable(if_ctx_t _ctx __unused, uint16_t _qid __unused) { return (ENOTSUP); } static void null_led_func(if_ctx_t _ctx __unused, int _onoff __unused) { } static void null_vlan_register_op(if_ctx_t _ctx __unused, uint16_t vtag __unused) { } static int null_q_setup(if_ctx_t _ctx __unused, uint32_t _qid __unused) { return (0); } static int null_i2c_req(if_ctx_t _sctx __unused, struct ifi2creq *_i2c __unused) { return (ENOTSUP); } static int null_sysctl_int_delay(if_ctx_t _sctx __unused, if_int_delay_info_t _iidi __unused) { return (0); } static int null_iov_init(if_ctx_t _ctx __unused, uint16_t num_vfs __unused, const nvlist_t *params __unused) { return (ENOTSUP); } static int null_vf_add(if_ctx_t _ctx __unused, uint16_t num_vfs __unused, const nvlist_t *params __unused) { return (ENOTSUP); } static int null_priv_ioctl(if_ctx_t _ctx __unused, u_long command, caddr_t *data __unused) { return (ENOTSUP); } static bool null_needs_restart(if_ctx_t _ctx __unused, enum iflib_restart_event _event __unused) { return (true); } }; # # bus interfaces # METHOD int attach_pre { if_ctx_t _ctx; }; METHOD int attach_post { if_ctx_t _ctx; }; METHOD int reinit_pre { if_ctx_t _ctx; }; METHOD int reinit_post { if_ctx_t _ctx; }; METHOD int detach { if_ctx_t _ctx; }; METHOD int suspend { if_ctx_t _ctx; } DEFAULT null_int_op; METHOD int shutdown { if_ctx_t _ctx; } DEFAULT null_int_op; METHOD int resume { if_ctx_t _ctx; } DEFAULT null_int_op; # # downcall to driver to allocate its # own queue state and tie it to the parent # METHOD int tx_queues_alloc { if_ctx_t _ctx; caddr_t *_vaddrs; uint64_t *_paddrs; int ntxqs; int ntxqsets; }; METHOD int rx_queues_alloc { if_ctx_t _ctx; caddr_t *_vaddrs; uint64_t *_paddrs; int nrxqs; int nrxqsets; }; METHOD void queues_free { if_ctx_t _ctx; }; # # interface reset / stop # METHOD void init { if_ctx_t _ctx; }; METHOD void stop { if_ctx_t _ctx; }; # # interrupt setup and manipulation # METHOD int msix_intr_assign { if_ctx_t _sctx; int msix; }; METHOD void intr_enable { if_ctx_t _ctx; }; METHOD void intr_disable { if_ctx_t _ctx; }; METHOD int rx_queue_intr_enable { if_ctx_t _ctx; uint16_t _qid; } DEFAULT null_queue_intr_enable; METHOD int tx_queue_intr_enable { if_ctx_t _ctx; uint16_t _qid; } DEFAULT null_queue_intr_enable; METHOD void link_intr_enable { if_ctx_t _ctx; } DEFAULT null_void_op; METHOD void admin_completion_handle { if_ctx_t _ctx; } DEFAULT null_void_op; # # interface configuration # METHOD void multi_set { if_ctx_t _ctx; }; METHOD int mtu_set { if_ctx_t _ctx; uint32_t _mtu; }; METHOD void media_set{ if_ctx_t _ctx; } DEFAULT null_void_op; METHOD int promisc_set { if_ctx_t _ctx; int _flags; }; METHOD void crcstrip_set { if_ctx_t _ctx; int _onoff; int _strip; }; # # IOV handling # METHOD void vflr_handle { if_ctx_t _ctx; } DEFAULT null_void_op; METHOD int iov_init { if_ctx_t _ctx; uint16_t num_vfs; const nvlist_t * params; } DEFAULT null_iov_init; METHOD void iov_uninit { if_ctx_t _ctx; } DEFAULT null_void_op; METHOD int iov_vf_add { if_ctx_t _ctx; uint16_t num_vfs; const nvlist_t * params; } DEFAULT null_vf_add; # # Device status # METHOD void update_admin_status { if_ctx_t _ctx; }; METHOD void media_status { if_ctx_t _ctx; struct ifmediareq *_ifm; }; METHOD int media_change { if_ctx_t _ctx; }; METHOD uint64_t get_counter { if_ctx_t _ctx; ift_counter cnt; }; METHOD int priv_ioctl { if_ctx_t _ctx; u_long _cmd; caddr_t _data; } DEFAULT null_priv_ioctl; # # optional methods # METHOD int i2c_req { if_ctx_t _ctx; struct ifi2creq *_req; } DEFAULT null_i2c_req; METHOD int txq_setup { if_ctx_t _ctx; uint32_t _txqid; } DEFAULT null_q_setup; METHOD int rxq_setup { if_ctx_t _ctx; uint32_t _txqid; } DEFAULT null_q_setup; METHOD void timer { if_ctx_t _ctx; uint16_t _txqid; } DEFAULT null_timer_op; METHOD void watchdog_reset { if_ctx_t _ctx; } DEFAULT null_void_op; METHOD void led_func { if_ctx_t _ctx; int _onoff; } DEFAULT null_led_func; METHOD void vlan_register { if_ctx_t _ctx; uint16_t _vtag; } DEFAULT null_vlan_register_op; METHOD void vlan_unregister { if_ctx_t _ctx; uint16_t _vtag; } DEFAULT null_vlan_register_op; METHOD int sysctl_int_delay { if_ctx_t _sctx; if_int_delay_info_t _iidi; } DEFAULT null_sysctl_int_delay; METHOD void debug { if_ctx_t _ctx; } DEFAULT null_void_op; METHOD bool needs_restart { if_ctx_t _ctx; enum iflib_restart_event _event; } DEFAULT null_needs_restart; diff --git a/sys/netpfil/ipfw/dummynet.txt b/sys/netpfil/ipfw/dummynet.txt index 68cce1ad0594..db7844a56b9b 100644 --- a/sys/netpfil/ipfw/dummynet.txt +++ b/sys/netpfil/ipfw/dummynet.txt @@ -1,860 +1,859 @@ # -# $FreeBSD$ # Notes on the internal structure of dummynet (2010 version) by Riccardo Panicucci and Luigi Rizzo Work supported by the EC project ONELAB2 ********* * INDEX * ********* Implementation of new dummynet Internal structure Files Packet arrival The reconfiguration routine dummynet_task() Configuration Add a pipe Add a scheduler Add a flowset Listing object Delete of object Delete a pipe Delete a flowset Delete a scheduler Compatibility with FreeBSD7.2 and FreeBSD 8 ipfw binary ip_dummynet_glue.c ip_fw_glue.c How to configure dummynet How to implement a new scheduler OPEN ISSUES ------------------------------ 20100131 deleting RR causes infinite loop presumably in the rr_free_queue() call -- seems to hang forever when deleting a live flow ------------------------------ Dummynet is a traffic shaper and network emulator. Packets are selected by an external filter such as ipfw, and passed to the emulator with a tag such as "pipe 10" or "queue 5" which tells what to do with the packet. As an example ipfw add queue 5 icmp from 10.0.0.2 to all All packets with the same tag belong to a "flowset", or a set of flows which can be further partitioned according to a mask. Flowsets are then passed to a scheduler for processing. The association of flowsets and schedulers is configurable e.g. ipfw queue 5 config sched 10 weight 3 flow_mask xxxx ipfw queue 8 config sched 10 weight 1 ... ipfw queue 3 config sched 20 weight 1 ... "sched 10" represents one or more scheduler instances, selected through a mask on the 5-tuple itself. ipfw sched 20 config type FIFO sched_mask yyy ... There are in fact two masks applied to each packet: + the "sched_mask" sends packets arriving to a scheduler_id to one of many instances. + the "flow_mask" together with the flowset_id is used to collect packets into independent flows on each scheduler. As an example, we can have ipfw queue 5 config sched 10 flow_mask src-ip 0x000000ff ipfw sched 10 config type WF2Q+ sched_mask src-ip 0xffffff00 means that sched 10 will have one instance per /24 source subnet, and within that, each individual source will be a flow. Internal structure ----------------- Dummynet-related data is split into several data structures, part of them constituting the userland-kernel API, and others specific to the kernel. NOTE: for up-to-date details please look at the relevant source headers (ip_dummynet.h, ip_dn_private.h, dn_sched.h) USERLAND-KERNEL API (ip_dummynet.h) struct dn_link: contains data about the physical link such as bandwidth, delay, burst size; struct dn_fs: describes a flowset, i.e. a template for queues. Main parameters are the scheduler we attach to, a flow_mask, buckets, queue size, plr, weight, and other scheduler-specific parameters. struct dn_flow contains information on a flow, including masks and statistics struct dn_sch: defines a scheduler (and a link attached to it). Parameters include scheduler type, sched_mask, number of buckets, and possibly other scheduler-specific parameters, struct dn_profile: fields to simulate a delay profile KERNEL REPRESENTATION (ip_dn_private.h) struct mq a queue of mbufs with head and tail. struct dn_queue individual queue of packets, created by a flowset using flow_mask and attached to a scheduler instance selected through sched_mask. A dn_queue has a pointer to the dn_fsk (which in turn counts how many queues point to it), a pointer to the dn_sch_inst it attaches to, and is in a hash table in the flowset. scheduler instances also should store queues in their own containers used for scheduling (lists, trees, etc.) CREATE: done on packet arrivals when a flow matches a flowset. DELETE: done only when deleting the parent dn_sch_inst or draining memory. struct dn_fsk includes a dn_fs; a pointer to the dn_schk; a link field for the list of dn_fsk attached to the same scheduler, or for the unlinked list; a refcount for the number of queues pointing to it; The dn_fsk is in a hash table, fshash. CREATE: done on configuration commands. DELETE: on configuration commands. struct dn_sch_inst a scheduler instance, created from a dn_schk applying sched_mask. Contains a delay line, a reference to the parent, and scheduler- specific info. Both dn_sch_inst and its delay line can be in the evheap if they have events to be processed. CREATE: created from a dn_schk applying sched_mask DELETE: configuration command delete a scheduler which in turn sweeps the hash table of instances deleting them struct dn_schk includes dn_sch, dn_link, a pointer to dn_profile, a hash table of dn_sch_inst, a list of dn_fsk attached to it. CREATE: configuration command. If there are flowsets that refer to this number, they are attached and moved to the hash table DELETE: manual, see dn_sch_inst fshash schedhash +---------------+ sched +--------------+ | sched-------------------->| NEW_SCHK| -<----*sch_chain |<-----------------*fsk_list | |NEW_FSK |<----. | [dn_link] | +---------------+ | +--------------+ |qht (hash) | | | siht(hash) | | [dn_queue] | | | [dn_si] | | [dn_queue] | | | [dn_si] | | ... | | | ... | | +--------+ | | | +---------+ | | |dn_queue| | | | |dn_si | | | | fs *----------' | | | | | | si *---------------------->| | | | +---------+ | | +---------+ | +---------------+ +--------------+ The following global data structures contain all schedulers and flowsets. - schedhash[x]: contains all scheduler templates in the system. Looked up only on manual configurations, where flowsets are attached to matching schedulers. We have one entry per 'sched X config' command (plus one for each 'pipe X config'). - fshash[x]: contains all flowsets. We do a lookup on this for each packet. We have one entry for each 'queue X config' (plus one for each 'pipe X config'). Additionally, a list that contains all unlinked flowset: - fsu: contains flowset that are not linked with any scheduler. Flowset are put in this list when they refer to a non existing scheduler. We don't need an efficient data structure as we never search here on a packet arrivals. Scheduler instances and the delay lines associated with each scheduler instance need to be woken up at certain times. Because we have many such objects, we keep them in a priority heap (system_heap). Almost all objects in this implementation are preceded by a structure (struct dn_id) which makes it easier to identify them. Files ----- The dummynet code is split in several files. All kernel code is in sys/netpfil/ipfw except ip_dummynet.h All userland code is in sbin/ipfw. Files are - sys/netpfil/ip_dummynet.h defines the kernel-userland API - ip_dn_private.h contains the kernel-specific APIs and data structures - dn_sched.h defines the scheduler API - ip_dummynet.c cointains module glue and sockopt handlers, with all functions to configure and list objects. - ip_dn_io.c contains the functions directly related to packet processing, and run in the critical path. It also contains some functions exported to the schedulers. - dn_heap.[ch] implement a binary heap and a generic hash table - dn_sched_* implement the various scheduler modules - dummynet.c is the file used to implement the user side of dummynet. It contains the function to parsing command line, and functions to show the output of dummynet objects. Moreover, there are two new file (ip_dummynet_glue.c and ip_fw_glue.c) that are used to allow compatibility with the "ipfw" binary from FreeBSD 7.2 and FreeBSD 8. LOCKING ======= At the moment the entire processing occurs under a single lock which is expected to be acquired in exclusive mode DN_BH_WLOCK() / DN_BH_WUNLOCK(). In perspective we aim at the following: - the 'busy' flag, 'pending' list and all structures modified by packet arrivals and departures are protected by the BH_WLOCK. This is normally acquired in exclusive mode by the packet processing functions for short sections of code (exception -- the timer). If 'busy' is not set, we can do regular packet processing. If 'busy' is set, no pieces can be accessed. We must enqueue the packet on 'pending' and return immediately. - the 'busy' flag is set/cleared by long sections of code as follows: UH_WLOCK(); KASSERT(busy == 0); BH_WLOCK(); busy=1; BH_WUNLOCK(); ... do processing ... BH_WLOCK(); busy=0; drain_queue(pending); BH_WUNLOCK(); UH_WUNLOCK(); this normally happens when the upper half has something heavy to do. The prologue and epilogue are not in the critical path. - the main containers (fshash, schedhash, ...) are protected by UH_WLOCK. Packet processing ================= A packet enters dummynet through dummynet_io(). We first lookup the flowset number in fshash using dn_ht_find(), then find the scheduler instance using ipdn_si_find(), then possibly identify the correct queue with ipdn_q_find(). If successful, we call the scheduler's enqueue function(), and if needed start I/O on the link calling serve_sched(). If the packet can be returned immediately, this is done by leaving *m0 set. Otherwise, the packet is absorbed by dummynet and we simply return, possibly with some appropriate error code. Reconfiguration --------------- Reconfiguration is the complex part of the system because we need to keep track of the various objects and containers. At the moment we do not use reference counts for objects so all processing must be done under a lock. The main entry points for configuration is the ip_dn_ctl() handler for the IP_DUMMYNET3 sockopt (others are provided only for backward compatibility). Modifications to the configuration call do_config(). The argument is a sequence of blocks each starting with a struct dn_id which specifies its content. The first dn_id must contain as obj.id the DN_API_VERSION The obj.type is DN_CMD_CONFIG (followed by actual objects), DN_CMD_DELETE (with the correct subtype and list of objects), or DN_CMD_FLUSH. DN_CMD_CONFIG is followed by objects to add/reconfigure. In general, if an object already exists it is reconfigured, otherwise it is created in a way that keeps the structure consistent. We have the following objects in the system, normally numbered with an identifier N between 1 and 65535. For certain objects we have "shadow" copies numbered I+NMAX and I+ 2*NMAX which are used to implement certain backward compatibility features. In general we have the following linking TRADITIONAL DUMMYNET QUEUES "queue N config ... pipe M ..." corresponds to a dn_fs object numbered N TRADITIONAL DUMMYNET PIPES "pipe N config ..." dn_fs N+2*NMAX --> dn_sch N+NMAX type FIFO --> dn_link N+NMAX GENERIC SCHEDULER "sched N config ... " [dn_fs N+NMAX] --> dn_sch N --> dn_link N The flowset N+NMAX is created only if the scheduler is not of type MULTIQUEUE. DELAY PROFILE "pipe N config profile ..." it is always attached to an existing dn_link N Because traditional dummynet pipes actually configure both a 'standalone' instance and one that can be used by queues, we do the following: "pipe N config ..." configures: dn_sched N type WF2Q+ dn_sched N+NMAX type FIFO dn_fs N+2NMAX attached to dn_sched N+NMAX dn_pipe N dn_pipe N+NMAX "queue N config" configures dn_fs N "sched N config" configures dn_sched N type as desired dn_fs N+NMAX attached to dn_sched N dummynet_task() =============== The dummynet_task() function is the main dummynet processing function and is called every tick. This function first calculate the new current time, then it checks if it is the time to wake up object from the system_heap comparing the current time and the key of the heap. Two types of object (really the heap contains pointer to objects) are in the system_heap: - scheduler instance: if a scheduler instance is waked up, the dequeue() function is called until it has credit. If the dequeue() returns packets, the scheduler instance is inserted in the heap with a new key depending of the data that will be send out. If the scheduler instance remains with some credit, it means that is hasn't other packet to send and so the instance is no longer inserted in the heap. If the scheduler instance extracted from the heap has the DELETE flag set, the dequeue() is not called and the instance is destroyed now. - delay line: when extracting a delay line, the function transmit_event() is called to send out packet from delay line. If the scheduler instance associated with this delay line doesn't exists, the delay line will be delete now. Configuration ============= To create a pipe, queue or scheduler, the user should type commands like: "ipfw pipe x config" "ipfw queue y config pipe x" "ipfw pipe x config sched " The userland side of dummynet will prepare a buffer contains data to pass to kernel side. The buffer contains all struct needed to configure an object. In more detail, to configure a pipe all three structs (dn_link, dn_sch, dn_fs) are needed, plus the delay profile struct if the pipe has a delay profile. If configuring a scheduler only the struct dn_sch is wrote in the buffer, while if configuring a flowset only the dn_fs struct is wrote. The first struct in the buffer contains the type of command request, that is if it is configuring a pipe, a queue, or a scheduler. Then there are structs need to configure the object, and finally there is the struct that mark the end of the buffer. To support the insertion of pipe and queue using the old syntax, when adding a pipe it's necessary to create a FIFO flowset and a FIFO scheduler, which have a number x + DN_PIPEOFFSET. Add a pipe ---------- A pipe is only a template for a link. If the pipe already exists, parameters are updated. If a delay profile exists it is deleted and a new one is created. If the pipe doesn't exist a new one is created. After the creation, the flowset unlinked list is scanned to see if there are some flowset that would be linked with this pipe. If so, these flowset will be of wf2q+ type (for compatibility) and a new wf2q+ scheduler is created now. Add a scheduler --------------- If the scheduler already exists, and the type and the mask are the same, the scheduler is simply reconfigured calling the config_scheduler() scheduler function with the RECONFIGURE flag active. If the type or the mask differ, it is necessary to delete the old scheduler and create a new one. If the scheduler doesn't exists, a new one is created. If the scheduler has a mask, the hash table is created to store pointers to scheduler instances. When a new scheduler is created, it is necessary to scan the unlinked flowset list to search eventually flowset that would be linked with this scheduler number. If some are found, flowsets became of the type of this scheduler and they are configured properly. Add a flowset ------------- Flowset pointers are store in the system in two list. The unlinked flowset list contains all flowset that aren't linked with a scheduler, the flowset list contains flowset linked to a scheduler, and so they have a type. When adding a new flowset, first it is checked if the flowset exists (that is, it is in the flowset list) and if it doesn't exists a new flowset is created and added to unlinked flowset list if the scheduler which the flowset would be linked doesn't exists, or added in the flowset list and configured properly if the scheduler exists. If the flowset (before to be created) was in the unlinked flowset list, it is removed and deleted, and then recreated. If the flowset exists, to allow reconfiguration of this flowset, the scheduler number and types must match with the one in memory. If this isn't so, the flowset is deleted and a new one will be created. Really, the flowset it isn't deleted now, but it is removed from flowset list and it will be deleted later because there could be some queues that are using it. Listing of object ================= The user can request a list of object present in dummynet through the command "ipfw [-v] pipe|queue [x] list|show" The kernel side of dummynet send a buffer to user side that contains all pipe, all scheduler, all flowset, plus all scheduler instances and all queues. The dummynet user land will format the output and show only the relevant information. The buffer sent start with all pipe from the system. The entire struct dn_link is passed, except the delay_profile struct that is useless in user space. After pipes, all flowset are wrote in the buffer. The struct contains scheduler flowset specific data is linked with the flowset writing the 'obj' id of the extension into the 'alg_fs' pointer. Then schedulers are wrote. If a scheduler has one or more scheduler instance, these are linked to the parent scheduler writing the id of the parent in the 'ptr_sched' pointer. If a scheduler instance has queues, there are wrote in the buffer and linked thorugh the 'obj' and 'sched_inst' pointer. Finally, flowsets in the unlinked flowset list are write in the buffer, and then a struct gen in saved in the buffer to mark the last struct in the buffer. Delete of object ================ An object is usually removed by user through a command like "ipfw pipe|queue x delete". XXX sched? ipfw pass to the kernel a struct gen that contains the type and the number of the object to remove Delete of pipe x ---------------- A pipe can be deleted by the user through the command 'ipfw pipe x delete'. To delete a pipe, the pipe is removed from the pipe list, and then deleted. Also the scheduler associated with this pipe should be deleted. For compatibility with old dummynet syntax, the associated FIFO scheduler and FIFO flowset must be deleted. Delete of flowset x ------------------- To remove a flowset, we must be sure that is no longer referenced by any object. If the flowset to remove is in the unlinked flowset list, there is not any issue, the flowset can be safely removed calling a free() (the flowset extension is not yet created if the flowset is in this list). If the flowset is in the flowset list, first we remove from it so new packet are discarded when arrive. Next, the flowset is marked as delete. Now we must check if some queue is using this flowset. To do this, a counter (active_f) is provided. This counter indicate how many queues exist using this flowset. The active_f counter is automatically incremented when a queue is created and decremented when a queue is deleted. If the counter is 0, the flowset can be safely deleted, and the delete_alg_fs() scheduler function is called before deallocate memory. If the counter is not 0, the flowset remain in memory until the counter become zero. When a queue is delete (by dn_delete_queue() function) it is checked if the linked flowset is deleting and if so the counter is decrementing. If the counter reaches 0, the flowset is deleted. The deletion of a queue can be done only by the scheduler, or when the scheduler is destroyed. Delete of scheduler x --------------------- To delete a scheduler we must be sure that any scheduler instance of this type are in the system_heap. To do so, a counter (inst_counter) is provided. This counter is managed by the system: it is incremented every time it is inserted in the system_heap, and decremented every time it is extracted from it. To delete the scheduler, first we remove it from the scheduler list, so new packet are discarded when they arrive, and mark the scheduler as deleting. If the counter is 0, we can remove the scheduler safely calling the really_deletescheduler() function. This function will scan all scheduler instances and call the delete_scheduler_instance() function that will delete the instance. When all instance are deleted, the scheduler template is deleted calling the delete_scheduler_template(). If the delay line associate with the scheduler is empty, it is deleted now, else it will be deleted when it will became empy. If the counter was not 0, we wait for it. Every time the dummynet_task() function extract a scheduler from the system_heap, the counter is decremented. If the scheduler has the delete flag enabled the dequeue() is not called and delete_scheduler_instance() is called to delete the instance. Obviously this scheduler instance is no longer inserted in the system_heap. If the counter reaches 0, the delete_scheduler_template() function is called all memory is released. NOTE: Flowsets that belong to this scheduler are not deleted, so if a new scheduler with the same number is inserted will use these flowsets. To do so, the best approach would be insert these flowset in the unlinked flowset list, but doing this now will be very expensive. So flowsets will remain in memory and linked with a scheduler that no longer exists until a packet belonging to this flowset arrives. When this packet arrives, the reconfigure() function is called because the generation number mismatch with one contains in the flowset and so the flowset will be moved into the flowset unlinked list, or will be linked with the new scheduler if a new one was created. COMPATIBILITY WITH FREEBSD 7.2 AND FREEBSD 8 'IPFW' BINARY ========================================================== Dummynet is not compatible with old ipfw binary because internal structs are changed. Moreover, the old ipfw binary is not compatible with new kernels because the struct that represents a firewall rule has changed. So, if a user install a new kernel on a FreeBSD 7.2, the ipfw (and possibly many other commands) will not work. New dummynet uses a new socket option: IP_DUMMYNET3, used for both set and get. The old option can be used to allow compatibility with the 'ipfw' binary of older version (tested with 7.2 and 8.0) of FreeBSD. Two file are provided for this purpose: - ip_dummynet_glue.c translates old dummynet requests to the new ones, - ip_fw_glue.c converts the rule format between 7.2 and 8 versions. Let see in detail these two files. IP_DUMMYNET_GLUE.C ------------------ The internal structs of new dummynet are very different from the original. Because of there are some difference from between dummynet in FreeBSD 7.2 and dummynet in FreeBSD 8 (the FreeBSD 8 version includes support to pipe delay profile and burst option), I have to include both header files. I copied the revision 191715 (for version 7.2) and the revision 196045 (for version 8) and I appended a number to each struct to mark them. The main function of this file is ip_dummynet_compat() that is called by ip_dn_ctl() when it receive a request of old socket option. A global variabile ('is7') store the version of 'ipfw' that FreeBSD is using. This variable is set every time a request of configuration is done, because with this request we receive a buffer of which size depending of ipfw version. Because of in general the first action is a configuration, this variable is usually set accordly. If the first action is a request of listing of pipes or queues, the system cannot know the version of ipfw, and we suppose that version 7.2 is used. If version is wrong, the output can be senseless, but the application should not crash. There are four request for old dummynet: - IP_DUMMYNET_FLUSH: the flush options have no parameter, so simply the dummynet_flush() function is called; - IP_DUMMYNET_DEL: the delete option need to be translate. It is only necessary to extract the number and the type of the object (pipe or queue) to delete from the buffer received and build a new struct gen contains the right parameters, then call the delete_object() function; - IP_DUMMYNET_CONFIGURE: the configure command receive a buffer depending of the ipfw version. After the properly extraction of all data, that depends by the ipfw version used, new structures are filled and then the dummynet config_link() function is properly called. Note that the 7.2 version does not support some parameter as burst or delay profile. - IP_DUMMYNET_GET: The get command should send to the ipfw the correct buffer depending of its version. There are two function that build the corrected buffer, ip_dummynet_get7() and ip_dummynet_get8(). These functions reproduce the buffer exactly as 'ipfw' expect. The only difference is that the weight parameter for a queue is no longer sent by dummynet and so it is set to 0. Moreover, because of the internal structure has changed, the bucket size of a queue could not be correct, because now all flowset share the hash table. If the version of ipfw is wrong, the output could be senseless or truncated, but the application should not crash. IP_FW_GLUE.C ------------ The ipfw binary also is used to add rules to FreeBSD firewall. Because of the struct ip_fw is changed from FreeBsd 7.2 to FreeBSD 8, it is necessary to write some glue code to allow use ipfw from FreeBSD 7.2 with the kernel provided with FreeBSD 8. This file contains two functions to convert a rule from FreeBSD 7.2 format to FreeBSD 8 format, and viceversa. The conversion should be done when a rule passes from userspace to kernel space and viceversa. I have to modify the ip_fw2.c file to manage these two case, and added a variable (is7) to store the ipfw version used, using an approach like the previous file: - when a new rule is added (option IP_FW_ADD) the is7 variable is set if the size of the rule received correspond to FreeBSD 7.2 ipfw version. If so, the rule is converted to version 8 calling the function convert_rule_to_8(). Moreover, after the insertion of the rule, the rule is now reconverted to version 7 because the ipfw binary will print it. - when the user request a list of rules (option IP_FW_GET) the is7 variable should be set correctly because we suppose that a configure command was done, else we suppose that the FreeBSD version is 8. The function ipfw_getrules() in ip_fw2.c file return all rules, eventually converted to version 7 (if the is7 is set) to the ipfw binary. The conversion of a rule is quite simple. The only difference between the two structures (struct ip_fw) is that in the new there is a new field (uint32_t id). So, I copy the entire rule in a buffer and the copy the rule in the right position in the new (or old) struct. The size of commands are not changed, and the copy is done into a cicle. How to configure dummynet ========================= It is possible to configure dummynet through two main commands: 'ipfw pipe' and 'ipfw queue'. To allow compatibility with old version, it is possible configure dummynet using the old command syntax. Doing so, obviously, it is only possible to configure a FIFO scheduler or a wf2q+ scheduler. A new command, 'ipfw pipe x config sched ' is supported to add a new scheduler to the system. - ipfw pipe x config ... create a new pipe with the link parameters create a new scheduler fifo (x + offset) create a new flowset fifo (x + offset) the mask is eventually stored in the FIFO scheduler - ipfw queue y config pipe x ... create a new flowset y linked to sched x. The type of flowset depends by the specified scheduler. If the scheduler does not exist, this flowset is inserted in a special list and will be not active. If pipe x exists and sched does not exist, a new wf2q+ scheduler is created and the flowset will be linked to this new scheduler (this is done for compatibility with old syntax). - ipfw pipe x config sched ... create a new scheduler x of type . Search into the flowset unlinked list if there are some flowset that should be linked with this new scheduler. - ipfw pipe x delete delete the pipe x delete the scheduler fifo (x + offset) delete the scheduler x delete the flowset fifo (x + offset) - ipfw queue x delete delete the flowset x - ipfw sched x delete ///XXX delete the scheduler x Follow now some examples to how configure dummynet: - Ex1: ipfw pipe 10 config bw 1M delay 15 // create a pipe with band and delay A FIFO flowset and scheduler is also created ipfw queue 5 config pipe 10 weight 56 // create a flowset. This flowset will be of wf2q+ because a pipe 10 exists. Moreover, the wf2q+ scheduler is created now. - Ex2: ipfw queue 5 config pipe 10 weight 56 // Create a flowset. Scheduler 10 does not exist, so this flowset is inserted in the unlinked flowset list. ipfw pipe 10 config bw... // Create a pipe, a FIFO flowset and scheduler. Because of a flowset with 'pipe 10' exists, a wf2q+ scheduler is created now and that flowset is linked with this sceduler. - Ex3: ipfw pipe 10 config bw... // Create a pipe, a FIFO flowset and scheduler. ipfw pipe 10 config sched rr // Create a scheduler of type RR, linked to pipe 10 ipfw queue 5 config pipe 10 weight 56 // Create a flowset 5. This flowset will belong to scheduler 10 and it is of type RR - Ex4: ipfw pipe 10 config sched rr // Create a scheduler of type RR, linked to pipe 10 (not exist yet) ipfw pipe 10 config bw... // Create a pipe, a FIFO flowset and scheduler. ipfw queue 5 config pipe 10 weight 56 // Create a flowset 5.This flowset will belong to scheduler 10 and it is of type RR ipfw pipe 10 config sched wf2q+ // Modify the type of scheduler 10. It becomes a wf2q+ scheduler. When a new packet of flowset 5 arrives, the flowset 5 becomes to wf2q+ type. How to implement a new scheduler ================================ In dummynet, a scheduler algorithm is represented by two main structs, some functions and other minor structs. - A struct dn_sch_xyz (where xyz is the 'type' of scheduler algorithm implemented) contains data relative to scheduler, as global parameter that are common to all instances of the scheduler - A struct dn_sch_inst_xyz contains data relative to a single scheduler instance, as local status variable depending for example by flows that are linked with the scheduler, and so on. To add a scheduler to dummynet, the user should type a command like: 'ipfw pipe x config sched [mask ... ...]' This command creates a new struct dn_sch_xyz of type , and store the optional parameter in that struct. The parameter mask determines how many scheduler instance of this scheduler may exist. For example, it is possible to divide traffic depending on the source port (or destination, or ip address...), so that every scheduler instance act as an independent scheduler. If the mask is not set, all traffic goes to the same instance. When a packet arrives to a scheduler, the system search the corrected scheduler instance, and if it does not exist it is created now (the struct dn_sch_inst_xyz is allocated by the system, and the scheduler fills the field correctly). It is a task of the scheduler to create the struct that contains all queues for a scheduler instance. Dummynet provides some function to create an hash table to store queues, but the schedule algorithm can choice the own struct. To link a flow to a scheduler, the user should type a command like: 'ipfw queue z config pipe x [mask... ...]' This command creates a new 'dn_fs' struct that will be inserted in the system. If the scheduler x exists, this flowset will be linked to that scheduler and the flowset type become the same as the scheduler type. At this point, the function create_alg_fs_xyz() is called to allow store eventually parameter for the flowset that depend by scheduler (for example the 'weight' parameter for a wf2q+ scheduler, or some priority...). A parameter mask can be used for a flowset. If the mask parameter is set, the scheduler instance can separate packet according to its flow id (src and dst ip, ports...) and assign it to a separate queue. This is done by the scheduler, so it can ignore the mask if it wants. See now the two main structs: struct dn_sch_xyz { struct gen g; /* important the name g */ /* global params */ }; struct dn_sch_inst_xyz { struct gen g; /* important the name g */ /* params of the instance */ }; It is important to embed the struct gen as first parameter. The struct gen contains some values that the scheduler instance must fill (the 'type' of scheduler, the 'len' of the struct...) The function create_scheduler_xyz() should be implemented to initialize global parameters in the first struct, and if memory allocation is done it is mandatory to implement the delete_scheduler_template() function to free that memory. The function create_scheduler_instance_xyz() must be implemented even if the scheduler instance does not use extra parameters. In this function the struct gen fields must be filled with corrected infos. The delete_scheduler_instance_xyz() function must bu implemented if the instance has allocated some memory in the previous function. To store data belonging to a flowset the follow struct is used: struct alg_fs_xyz { struct gen g; /* fill correctly the gen struct g.subtype = DN_XYZ; g.len = sizeof(struct alg_fs_xyz) ... */ /* params for the flow */ }; The create_alg_fs_xyz() function is mandatory, because it must fill the struct gen, but the delete_alg_fs_xyz() is mandatory only if the previous function has allocated some memory. A struct dn_queue contains packets belonging to a queue and some statistical data. The scheduler could have to store data in this struct, so it must define a dn_queue_xyz struct: struct dn_queue_xyz { struct dn_queue q; /* parameter for a queue */ } All structures are allocated by the system. To do so, the scheduler must set the size of its structs in the scheduler descriptor: scheduler_size: sizeof(dn_sch_xyz) scheduler_i_size: sizeof(dn_sch_inst_xyz) flowset_size: sizeof(alg_fs_xyz) queue_size: sizeof(dn_queue_xyz); The scheduler_size could be 0, but other struct must have at least a struct gen. After the definition of structs, it is necessary to implement the scheduler functions. - int (*config_scheduler)(char *command, void *sch, int reconfigure); Configure a scheduler, or reconfigure if 'reconfigure' == 1. This function performs additional allocation and initialization of global parameter for this scheduler. If memory is allocated here, the delete_scheduler_template() function should be implemented to remove this memory. - int (*delete_scheduler_template)(void* sch); Delete a scheduler template. This function is mandatory if the scheduler uses extra data respect the struct dn_sch. - int (*create_scheduler_instance)(void *s); Create a new scheduler instance. The system allocate the necessary memory and the schedulet can access it using the 's' pointer. The scheduler instance stores all queues, and to do this can use the hash table provided by the system. - int (*delete_scheduler_instance)(void *s); Delete a scheduler instance. It is important to free memory allocated by create_scheduler_instance() function. The memory allocated by system is freed by the system itself. The struct contains all queue also has to be deleted. - int (*enqueue)(void *s, struct gen *f, struct mbuf *m, struct ipfw_flow_id *id); Called when a packet arrives. The packet 'm' belongs to the scheduler instance 's', has a flowset 'f' and the flowid 'id' has already been masked. The enqueue() must call dn_queue_packet(q, m) function to really enqueue packet in the queue q. The queue 'q' is chosen by the scheduler and if it does not exist should be created calling the dn_create_queue() function. If the schedule want to drop the packet, it must call the dn_drop_packet() function and then return 1. - struct mbuf * (*dequeue)(void *s); Called when the timer expires (or when a packet arrives and the scheduler instance is idle). This function is called when at least a packet can be send out. The scheduler choices the packet and returns it; if no packet are in the schedulerinstance, the function must return NULL. Before return a packet, it is important to call the function dn_return_packet() to update some statistic of the queue and update the queue counters. - int (*drain_queue)(void *s, int flag); The system request to scheduler to delete all queues that is not using to free memory. The flag parameter indicate if a queue must be deleted even if it is active. - int (*create_alg_fs)(char *command, struct gen *g, int reconfigure); It is called when a flowset is linked with a scheduler. This is done when the scheduler is defined, so we can know the type of flowset. The function initialize the flowset paramenter parsing the command line. The parameter will be stored in the g struct that have the right size allocated by the system. If the reconfigure flag is set, it means that the flowset is reconfiguring - int (*delete_alg_fs)(struct gen *f); It is called when a flowset is deleting. Must remove the memory allocate by the create_alg_fs() function. - int (*create_queue_alg)(struct dn_queue *q, struct gen *f); Called when a queue is created. The function should link the queue to the struct used by the scheduler instance to store all queues. - int (*delete_queue_alg)(struct dn_queue *q); Called when a queue is deleting. The function should remove extra data and update the struct contains all queues in the scheduler instance. The struct scheduler represent the scheduler descriptor that is passed to dummynet when a scheduler module is loaded. This struct contains the type of scheduler, the length of all structs and all function pointers. If a function is not implemented should be initialize to NULL. Some functions are mandatory, other are mandatory if some memory should be freed. Mandatory functions: - create_scheduler_instance() - enqueue() - dequeue() - create_alg_fs() - drain_queue() Optional functions: - config_scheduler() - create_queue_alg() Mandatory functions if the corresponding create...() has allocated memory: - delete_scheduler_template() - delete_scheduler_instance() - delete_alg_fs() - delete_queue_alg() diff --git a/sys/netpfil/ipfw/test/Makefile b/sys/netpfil/ipfw/test/Makefile index f76e636932ba..d9d63894ce6d 100644 --- a/sys/netpfil/ipfw/test/Makefile +++ b/sys/netpfil/ipfw/test/Makefile @@ -1,51 +1,50 @@ # -# $FreeBSD$ # # Makefile for building userland tests # this is written in a form compatible with gmake SCHED_SRCS = test_dn_sched.c SCHED_SRCS += dn_sched_fifo.c SCHED_SRCS += dn_sched_prio.c SCHED_SRCS += dn_sched_qfq.c SCHED_SRCS += dn_sched_rr.c SCHED_SRCS += dn_sched_wf2q.c SCHED_SRCS += dn_heap.c SCHED_SRCS += main.c SCHED_OBJS=$(SCHED_SRCS:.c=.o) HEAP_SRCS = dn_heap.c test_dn_heap.c HEAP_OBJS=$(HEAP_SRCS:.c=.o) VPATH= .:.. CFLAGS = -I.. -I. -Wall -Werror -O3 -Wextra TARGETS= test_sched # no test_heap by default all: $(TARGETS) test_heap : $(HEAP_OBJS) $(CC) -o $@ $(HEAP_OBJS) test_sched : $(SCHED_OBJS) $(CC) -o $@ $(SCHED_OBJS) $(SCHED_OBJS): dn_test.h main.o: mylist.h clean: - rm *.o $(TARGETS) *.core ALLSRCS = $(SCHED_SRCS) dn_test.h mylist.h \ dn_sched.h dn_heap.h ip_dn_private.h Makefile TMPBASE = /tmp/testXYZ TMPDIR = $(TMPBASE)/test tgz: -rm -rf $(TMPDIR) mkdir -p $(TMPDIR) -cp -p $(ALLSRCS) $(TMPDIR) -(cd ..; cp -p $(ALLSRCS) $(TMPDIR)) ls -la $(TMPDIR) (cd $(TMPBASE); tar cvzf /tmp/test.tgz test) diff --git a/sys/opencrypto/cryptodev_if.m b/sys/opencrypto/cryptodev_if.m index acbf93161de4..150b37b1286f 100644 --- a/sys/opencrypto/cryptodev_if.m +++ b/sys/opencrypto/cryptodev_if.m @@ -1,147 +1,146 @@ #- # Copyright (c) 2006, Sam Leffler # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include INTERFACE cryptodev; CODE { static int null_freesession(device_t dev, crypto_session_t crypto_session) { return 0; } }; /** * @brief Probe to see if a crypto driver supports a session. * * The crypto framework invokes this method on each crypto driver when * creating a session for symmetric crypto operations to determine if * the driver supports the algorithms and mode requested by the * session. * * If the driver does not support a session with the requested * parameters, this function should fail with an error. * * If the driver does support a session with the requested parameters, * this function should return a negative value indicating the * priority of this driver. These negative values should be derived * from one of the CRYPTODEV_PROBE_* constants in * . * * This function's return value is similar to that used by * DEVICE_PROBE(9). However, a return value of zero is not supported * and should not be used. * * @param dev the crypto driver device * @param csp crypto session parameters * * @retval negative if the driver supports this session - the * least negative value is used to select the * driver for the session * @retval EINVAL if the driver does not support the session * @retval positive if some other error occurs */ METHOD int probesession { device_t dev; const struct crypto_session_params *csp; }; /** * @brief Initialize a new crypto session object * * Invoked by the crypto framework to initialize driver-specific data * for a crypto session. The framework allocates and zeroes the * driver's per-session memory object prior to invoking this method. * The driver is able to access it's per-session memory object via * crypto_get_driver_session(). * * @param dev the crypto driver device * @param crypto_session session being initialized * @param csp crypto session parameters * * @retval 0 success * @retval non-zero if some kind of error occurred */ METHOD int newsession { device_t dev; crypto_session_t crypto_session; const struct crypto_session_params *csp; }; /** * @brief Destroy a crypto session object * * The crypto framework invokes this method when tearing down a crypto * session. After this callback returns, the framework will explicitly * zero and free the drvier's per-session memory object. If the * driver requires additional actions to destroy a session, it should * perform those in this method. If the driver does not require * additional actions it does not need to provide an implementation of * this method. * * @param dev the crypto driver device * @param crypto_session session being destroyed */ METHOD void freesession { device_t dev; crypto_session_t crypto_session; } DEFAULT null_freesession; /** * @brief Perform a crypto operation * * The crypto framework invokes this method for each crypto * operation performed on a session. A reference to the containing * session is stored as a member of 'struct cryptop'. This routine * should not block, but queue the operation if necessary. * * This method may return ERESTART to indicate that any internal * queues are full so the operation should be queued in the crypto * framework and retried in the future. * * To report errors with a crypto operation, 'crp_etype' should be set * and the operation completed by calling 'crypto_done'. This method * should then return zero. * * @param dev the crypto driver device * @param op crypto operation to perform * @param flags set to CRYPTO_HINT_MORE if additional symmetric * crypto operations are queued for this driver; * otherwise set to zero. * * @retval 0 success * @retval ERESTART internal queue is full */ METHOD int process { device_t dev; struct cryptop *op; int flags; }; diff --git a/sys/powerpc/conf/DEFAULTS b/sys/powerpc/conf/DEFAULTS index b9ce3e41c123..166aeeac054d 100644 --- a/sys/powerpc/conf/DEFAULTS +++ b/sys/powerpc/conf/DEFAULTS @@ -1,20 +1,19 @@ # # DEFAULTS -- Default kernel configuration file for FreeBSD/powerpc # -# $FreeBSD$ # Pseudo devices. device mem # Memory and kernel memory devices # UART chips on this platform device uart_ns8250 options GEOM_PART_BSD options GEOM_PART_MBR # Default congestion control algorithm options CC_CUBIC # include CUBIC congestion control options NEW_PCIB options NETLINK # netlink(4) support diff --git a/sys/powerpc/conf/GENERIC b/sys/powerpc/conf/GENERIC index 52961b1d102e..b01a88d34138 100644 --- a/sys/powerpc/conf/GENERIC +++ b/sys/powerpc/conf/GENERIC @@ -1,245 +1,244 @@ # # GENERIC -- Generic kernel configuration file for FreeBSD/powerpc # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ cpu AIM ident GENERIC machine powerpc powerpc makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Platform support options POWERMAC # NewWorld Apple PowerMacs options PSIM # GDB PSIM ppc simulator options MAMBO # IBM Mambo Full System Simulator options PSERIES # PAPR-compliant systems options FDT options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options VIMAGE # Subsystem virtualization, e.g. VNET options INET # InterNETworking options INET6 # IPv6 communications protocols options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 options TCP_HHOOK # hhook(9) framework for TCP options TCP_RFC7413 # TCP Fast Open options SCTP_SUPPORT # Allow kldload of SCTP options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options QUOTA # Enable disk quotas for UFS options MD_ROOT # MD is a potential root device options NFSCL # Network Filesystem Client options NFSD # Network Filesystem Server options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as root device options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options TMPFS # Efficient memory filesystem options GEOM_PART_APM # Apple Partition Maps. options GEOM_PART_GPT # GUID Partition Tables. options GEOM_LABEL # Provides labelization options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options COMPAT_FREEBSD9 # Compatible with FreeBSD9 options COMPAT_FREEBSD10 # Compatible with FreeBSD10 options COMPAT_FREEBSD11 # Compatible with FreeBSD11 options COMPAT_FREEBSD12 # Compatible with FreeBSD12 options COMPAT_FREEBSD13 # Compatible with FreeBSD13 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) syscall trace support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # Posix P1003_1B real-time extensions options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options AUDIT # Security event auditing options CAPABILITY_MODE # Capsicum capability mode options CAPABILITIES # Capsicum capabilities options MAC # TrustedBSD MAC Framework options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options INCLUDE_CONFIG_FILE # Include this file in kernel options RACCT # Resource accounting framework options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default options RCTL # Resource limits # Debugging support. Always need this: options KDB # Enable kernel debugger support. options KDB_TRACE # Print a stack trace for a panic. # For full debugger support use (turn off in stable branch): options DDB # Support DDB #options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default # Kernel dump features. options EKCD # Support for encrypted kernel dumps options GZIO # gzip-compressed kernel and user dumps options ZSTDIO # zstd-compressed kernel and user dumps options DEBUGNET # debugnet networking options NETDUMP # netdump(4) client support # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor Kernel # CPU frequency control device cpufreq # Standard busses device pci options PCI_HP # PCI-Express native HotPlug device agp # ATA controllers device ahci # AHCI-compatible SATA controllers device ata # Legacy ATA/SATA controllers device mvs # Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA device siis # SiliconImage SiI3124/SiI3132/SiI3531 SATA # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices options AHC_ALLOW_MEMIO # Attempt to use memory mapped I/O device isp # Qlogic family device ispfw # Firmware module for Qlogic host adapters device mpt # LSI-Logic MPT-Fusion device sym # NCR/Symbios/LSI Logic 53C8XX/53C1010/53C1510D # ATA/SCSI peripherals device scbus # SCSI bus (required for ATA/SCSI) device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct ATA/SCSI access) # vt is the default console driver, resembling an SCO console device vt # Generic console driver (pulls in OF FB) device kbdmux # Serial (COM) ports device scc device uart device uart_z8530 # FireWire support device firewire # FireWire bus code device sbp # SCSI over FireWire (Requires scbus and da) device fwe # Ethernet over FireWire (non-standard!) # PCI Ethernet NICs that use the common MII bus controller code. device miibus # MII bus support device bge # Broadcom BCM570xx Gigabit Ethernet device gem # Sun GEM/Sun ERI/Apple GMAC device dc # DEC/Intel 21143 and various workalikes device fxp # Intel EtherExpress PRO/100B (82557, 82558) # Pseudo devices. device crypto # core crypto support device loop # Network loopback device ether # Ethernet support device vlan # 802.1Q VLAN support device tuntap # Packet tunnel. device md # Memory "disks" device ofwd # Open Firmware disks device gif # IPv6 and IPv4 tunneling device firmware # firmware assist module # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # USB support options USB_DEBUG # enable debug msgs device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci # EHCI PCI->USB interface device usb # USB Bus (required) device uhid # "Human Interface Devices" device ukbd # Keyboard options KBD_INSTALL_CDEV # install a CDEV entry in /dev device ulpt # Printer device umass # Disks/Mass storage - Requires scbus and da0 device ums # Mouse device atp # Apple USB touchpad device urio # Diamond Rio 500 MP3 player # USB Ethernet device aue # ADMtek USB Ethernet device axe # ASIX Electronics USB Ethernet device cdce # Generic USB over Ethernet device cue # CATC USB Ethernet device kue # Kawasaki LSI USB Ethernet # Wireless NIC cards options IEEE80211_SUPPORT_MESH # Misc device iicbus # I2C bus code device kiic # Keywest I2C device ad7417 # PowerMac7,2 temperature sensor device adt746x # PowerBook5,8 temperature sensor device ds1631 # PowerMac11,2 temperature sensor device ds1775 # PowerMac7,2 temperature sensor device fcu # Apple Fan Control Unit device max6690 # PowerMac7,2 temperature sensor device powermac_nvram # Open Firmware configuration NVRAM device smu # Apple System Management Unit device adm1030 # Apple G4 MDD fan controller device atibl # ATI-based backlight driver for PowerBooks/iBooks device nvbl # nVidia-based backlight driver for PowerBooks/iBooks device pswitch # Macio programmer's switch # ADB support device adb device cuda device pmu # Sound support device sound # Generic sound driver (required) device snd_ai2s # Apple I2S audio device snd_davbus # Apple DAVBUS audio device snd_uaudio # USB Audio # evdev interface options EVDEV_SUPPORT # evdev support in legacy drivers device evdev # input event device support device uinput # install /dev/uinput cdev # VirtIO support device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI device device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device # HID support options HID_DEBUG # enable debug msgs device hid # Generic HID support diff --git a/sys/powerpc/conf/GENERIC-NODEBUG b/sys/powerpc/conf/GENERIC-NODEBUG index f1ef692f907a..9d069a41acc1 100644 --- a/sys/powerpc/conf/GENERIC-NODEBUG +++ b/sys/powerpc/conf/GENERIC-NODEBUG @@ -1,32 +1,31 @@ # # GENERIC-NODEBUG -- WITNESS and INVARIANTS free kernel configuration file # for FreeBSD/powerpc # # This configuration file removes several debugging options, including # WITNESS and INVARIANTS checking, which are known to have significant # performance impact on running systems. When benchmarking new features # this kernel should be used instead of the standard GENERIC. # This kernel configuration should never appear outside of the HEAD # of the FreeBSD tree. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ include GENERIC include "../../conf/std.nodebug" ident GENERIC-NODEBUG diff --git a/sys/powerpc/conf/GENERIC.hints b/sys/powerpc/conf/GENERIC.hints index e8c0da7a1d7e..e69de29bb2d1 100644 --- a/sys/powerpc/conf/GENERIC.hints +++ b/sys/powerpc/conf/GENERIC.hints @@ -1 +0,0 @@ -# $FreeBSD$ diff --git a/sys/powerpc/conf/GENERIC64 b/sys/powerpc/conf/GENERIC64 index dc7edadd78d0..45897555791a 100644 --- a/sys/powerpc/conf/GENERIC64 +++ b/sys/powerpc/conf/GENERIC64 @@ -1,298 +1,297 @@ # # GENERIC64 -- Generic kernel configuration file for FreeBSD/powerpc64 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ cpu AIM ident GENERIC machine powerpc powerpc64 makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Platform support options POWERMAC # NewWorld Apple PowerMacs options PS3 # Sony Playstation 3 options MAMBO # IBM Mambo Full System Simulator options QEMU # QEMU processor emulator options PSERIES # PAPR-compliant systems (e.g. IBM p) options POWERNV # Non-virtualized OpenPOWER systems options FDT # Flattened Device Tree options SCHED_ULE # ULE scheduler options NUMA # Non-Uniform Memory Architecture support options PREEMPTION # Enable kernel thread preemption options VIMAGE # Subsystem virtualization, e.g. VNET options INET # InterNETworking options INET6 # IPv6 communications protocols options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 options ROUTE_MPATH # Multipath routing support options TCP_OFFLOAD # TCP offload options TCP_BLACKBOX # Enhanced TCP event logging options TCP_HHOOK # hhook(9) framework for TCP options TCP_RFC7413 # TCP Fast Open options SCTP_SUPPORT # Allow kldload of SCTP options KERN_TLS # TLS transmit & receive offload options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options QUOTA # Enable disk quotas for UFS options MD_ROOT # MD is a potential root device options MD_ROOT_MEM # Enable use of initrd as MD root options NFSCL # Network Filesystem Client options NFSD # Network Filesystem Server options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as root device options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options TMPFS # Efficient memory filesystem options GEOM_PART_APM # Apple Partition Maps. options GEOM_PART_GPT # GUID Partition Tables. options GEOM_LABEL # Provides labelization options COMPAT_FREEBSD32 # Compatible with FreeBSD/powerpc binaries options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options COMPAT_FREEBSD9 # Compatible with FreeBSD9 options COMPAT_FREEBSD10 # Compatible with FreeBSD10 options COMPAT_FREEBSD11 # Compatible with FreeBSD11 options COMPAT_FREEBSD12 # Compatible with FreeBSD12 options COMPAT_FREEBSD13 # Compatible with FreeBSD13 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) syscall trace support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # Posix P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options AUDIT # Security event auditing options CAPABILITY_MODE # Capsicum capability mode options CAPABILITIES # Capsicum capabilities options MAC # TrustedBSD MAC Framework options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options INCLUDE_CONFIG_FILE # Include this file in kernel options RACCT # Resource accounting framework options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default options RCTL # Resource limits # Debugging support. Always need this: options KDB # Enable kernel debugger support. options KDB_TRACE # Print a stack trace for a panic. # For full debugger support use (turn off in stable branch): options DDB # Support DDB #options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default # Kernel dump features. options EKCD # Support for encrypted kernel dumps options GZIO # gzip-compressed kernel and user dumps options ZSTDIO # zstd-compressed kernel and user dumps options DEBUGNET # debugnet networking options NETDUMP # netdump(4) client support # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor Kernel # CPU frequency control device cpufreq # Standard busses device pci options PCI_HP # PCI-Express native HotPlug device agp options COMPAT_LINUXKPI # ATA controllers device ahci # AHCI-compatible SATA controllers device ata # Legacy ATA/SATA controllers device mvs # Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA device siis # SiliconImage SiI3124/SiI3132/SiI3531 SATA # NVM Express (NVMe) support device nvme # base NVMe driver options NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver device nvd # expose NVMe namespaces as disks, depends on nvme # SCSI Controllers device aacraid # Adaptec by PMC RAID device ahc # AHA2940 and onboard AIC7xxx devices options AHC_ALLOW_MEMIO # Attempt to use memory mapped I/O device isp # Qlogic family device ispfw # Firmware module for Qlogic host adapters device mrsas # LSI/Avago MegaRAID SAS/SATA, 6Gb/s and 12Gb/s device mpt # LSI-Logic MPT-Fusion device mps # LSI-Logic MPT-Fusion 2 device mpr # LSI SAS3008 MPT-Fusion SAS-3 device sym # NCR/Symbios/LSI Logic 53C8XX/53C1010/53C1510D # ATA/SCSI peripherals device scbus # SCSI bus (required for ATA/SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct ATA/SCSI access) device ses # Enclosure Service (SES and SAF-TE) # vt is the default console driver, resembling an SCO console device vt # Core console driver device kbdmux # Serial (COM) ports device scc device uart device uart_z8530 device iflib # Ethernet hardware device em # Intel PRO/1000 Gigabit Ethernet Family device ix # Intel PRO/10GbE PCIE PF Ethernet Family device ixl # Intel 700 Series Physical Function device ixv # Intel PRO/10GbE PCIE VF Ethernet Family device glc # Sony Playstation 3 Ethernet device llan # IBM pSeries Virtual Ethernet device cxgbe # Chelsio 10/25G NIC # PCI Ethernet NICs that use the common MII bus controller code. device miibus # MII bus support device bge # Broadcom BCM570xx Gigabit Ethernet device gem # Sun GEM/Sun ERI/Apple GMAC device dc # DEC/Intel 21143 and various workalikes device fxp # Intel EtherExpress PRO/100B (82557, 82558) device re # RealTek 8139C+/8169/8169S/8110S device rl # RealTek 8129/8139 # Nvidia/Mellanox Connect-X 4 and later, Ethernet only # mlx5ib requires ibcore infra and is not included by default device mlx5 # Base driver device mlxfw # Firmware update device mlx5en # Ethernet driver # Pseudo devices. device crypto # core crypto support device loop # Network loopback device ether # Ethernet support device vlan # 802.1Q VLAN support device tuntap # Packet tunnel. device md # Memory "disks" device ofwd # Open Firmware disks device gif # IPv6 and IPv4 tunneling device firmware # firmware assist module device xz # lzma decompression # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # USB support options USB_DEBUG # enable debug msgs device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci # EHCI PCI->USB interface device xhci # XHCI PCI->USB interface device usb # USB Bus (required) device uhid # "Human Interface Devices" device ukbd # Keyboard options KBD_INSTALL_CDEV # install a CDEV entry in /dev device umass # Disks/Mass storage - Requires scbus and da0 device ums # Mouse # USB Ethernet device aue # ADMtek USB Ethernet device axe # ASIX Electronics USB Ethernet device cdce # Generic USB over Ethernet device cue # CATC USB Ethernet device kue # Kawasaki LSI USB Ethernet # Wireless NIC cards device wlan # 802.11 support options IEEE80211_SUPPORT_MESH # enable 802.11s draft support options IEEE80211_DEBUG # enable debug msgs device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm device ath # Atheros CardBus/PCI NICs device ath_hal # Atheros CardBus/PCI chip support options AH_AR5416_INTERRUPT_MITIGATION # AR5416 interrupt mitigation options ATH_ENABLE_11N # Enable 802.11n support for AR5416 and later device ath_rate_sample # SampleRate tx rate control for ath # FireWire support device firewire # FireWire bus code device sbp # SCSI over FireWire (Requires scbus and da) device fwe # Ethernet over FireWire (non-standard!) # Misc device iicbus # I2C bus code device iic device kiic # Keywest I2C device ad7417 # PowerMac7,2 temperature sensor device ds1631 # PowerMac11,2 temperature sensor device ds1775 # PowerMac7,2 temperature sensor device fcu # Apple Fan Control Unit device max6690 # PowerMac7,2 temperature sensor device powermac_nvram # Open Firmware configuration NVRAM device smu # Apple System Management Unit device atibl # ATI-based backlight driver for PowerBooks/iBooks device nvbl # nVidia-based backlight driver for PowerBooks/iBooks device opalflash # PowerNV embedded flash memory # ADB support device adb device pmu # Sound support device sound # Generic sound driver (required) device snd_ai2s # Apple I2S audio device snd_hda # Intel High Definition Audio device snd_uaudio # USB Audio # Netmap provides direct access to TX/RX rings on supported NICs device netmap # netmap(4) support # evdev interface options EVDEV_SUPPORT # evdev support in legacy drivers device evdev # input event device support device uinput # install /dev/uinput cdev # VirtIO support device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI device device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device # HID support options HID_DEBUG # enable debug msgs device hid # Generic HID support diff --git a/sys/powerpc/conf/GENERIC64-NODEBUG b/sys/powerpc/conf/GENERIC64-NODEBUG index 0320837c01b1..2659899940ef 100644 --- a/sys/powerpc/conf/GENERIC64-NODEBUG +++ b/sys/powerpc/conf/GENERIC64-NODEBUG @@ -1,32 +1,31 @@ # # GENERIC64-NODEBUG -- WITNESS and INVARIANTS free kernel configuration file # for FreeBSD/powerpc # # This configuration file removes several debugging options, including # WITNESS and INVARIANTS checking, which are known to have significant # performance impact on running systems. When benchmarking new features # this kernel should be used instead of the standard GENERIC64. # This kernel configuration should never appear outside of the HEAD # of the FreeBSD tree. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ include GENERIC64 include "../../conf/std.nodebug" ident GENERIC64-NODEBUG diff --git a/sys/powerpc/conf/GENERIC64LE b/sys/powerpc/conf/GENERIC64LE index b6e402ab77a1..2cd53b860126 100644 --- a/sys/powerpc/conf/GENERIC64LE +++ b/sys/powerpc/conf/GENERIC64LE @@ -1,279 +1,278 @@ # # GENERIC64LE -- Generic kernel configuration file for FreeBSD/powerpc64le # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ cpu AIM ident GENERIC machine powerpc powerpc64le makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Platform support options MAMBO # IBM Mambo Full System Simulator options QEMU # QEMU processor emulator options PSERIES # PAPR-compliant systems (e.g. IBM p) options POWERNV # Non-virtualized OpenPOWER systems options ISA_206_ATOMICS # PowerISA v2.06 optimized subword atomics options FDT # Flattened Device Tree options SCHED_ULE # ULE scheduler options NUMA # Non-Uniform Memory Architecture support options PREEMPTION # Enable kernel thread preemption options VIMAGE # Subsystem virtualization, e.g. VNET options INET # InterNETworking options INET6 # IPv6 communications protocols options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 options TCP_OFFLOAD # TCP offload options TCP_BLACKBOX # Enhanced TCP event logging options TCP_HHOOK # hhook(9) framework for TCP options TCP_RFC7413 # TCP Fast Open options SCTP_SUPPORT # Allow kldload of SCTP options KERN_TLS # TLS transmit & receive offload options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options QUOTA # Enable disk quotas for UFS options MD_ROOT # MD is a potential root device options MD_ROOT_MEM # Enable use of initrd as MD root options NFSCL # Network Filesystem Client options NFSD # Network Filesystem Server options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as root device options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options TMPFS # Efficient memory filesystem options GEOM_PART_APM # Apple Partition Maps. options GEOM_PART_GPT # GUID Partition Tables. options GEOM_LABEL # Provides labelization # ports lang/rust (1.57.0) and lang/go (1.17.5) depends on older kernel interfaces options COMPAT_FREEBSD11 # Compatible with FreeBSD11 (required by ports) options COMPAT_FREEBSD12 # Compatible with FreeBSD12 (required by ports) options COMPAT_FREEBSD13 # Compatible with FreeBSD13 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) syscall trace support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # Posix P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options AUDIT # Security event auditing options CAPABILITY_MODE # Capsicum capability mode options CAPABILITIES # Capsicum capabilities options MAC # TrustedBSD MAC Framework options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options INCLUDE_CONFIG_FILE # Include this file in kernel options RACCT # Resource accounting framework options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default options RCTL # Resource limits # Debugging support. Always need this: options KDB # Enable kernel debugger support. options KDB_TRACE # Print a stack trace for a panic. # For full debugger support use (turn off in stable branch): options DDB # Support DDB #options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default # Kernel dump features. options EKCD # Support for encrypted kernel dumps options GZIO # gzip-compressed kernel and user dumps options ZSTDIO # zstd-compressed kernel and user dumps options DEBUGNET # debugnet networking options NETDUMP # netdump(4) client support # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor Kernel # CPU frequency control device cpufreq # Standard busses device pci options PCI_HP # PCI-Express native HotPlug device agp options COMPAT_LINUXKPI # ATA controllers device ahci # AHCI-compatible SATA controllers device ata # Legacy ATA/SATA controllers device mvs # Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA device siis # SiliconImage SiI3124/SiI3132/SiI3531 SATA # NVM Express (NVMe) support device nvme # base NVMe driver options NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver device nvd # expose NVMe namespaces as disks, depends on nvme # SCSI Controllers device aacraid # Adaptec by PMC RAID device ahc # AHA2940 and onboard AIC7xxx devices options AHC_ALLOW_MEMIO # Attempt to use memory mapped I/O device isp # Qlogic family device ispfw # Firmware module for Qlogic host adapters device mrsas # LSI/Avago MegaRAID SAS/SATA, 6Gb/s and 12Gb/s device mpt # LSI-Logic MPT-Fusion device mps # LSI-Logic MPT-Fusion 2 device mpr # LSI SAS3008 MPT-Fusion SAS-3 device sym # NCR/Symbios/LSI Logic 53C8XX/53C1010/53C1510D # ATA/SCSI peripherals device scbus # SCSI bus (required for ATA/SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct ATA/SCSI access) device ses # Enclosure Service (SES and SAF-TE) # vt is the default console driver, resembling an SCO console device vt # Core console driver device kbdmux # Serial (COM) ports device scc device uart device uart_z8530 device iflib # Ethernet hardware device em # Intel PRO/1000 Gigabit Ethernet Family device ix # Intel PRO/10GbE PCIE PF Ethernet Family device ixl # Intel 700 Series Physical Function device ixv # Intel PRO/10GbE PCIE VF Ethernet Family device ice # Intel 800 Series Physical Function device llan # IBM pSeries Virtual Ethernet device cxgbe # Chelsio 10/25G NIC # PCI Ethernet NICs that use the common MII bus controller code. device miibus # MII bus support device bge # Broadcom BCM570xx Gigabit Ethernet device gem # Sun GEM/Sun ERI/Apple GMAC device dc # DEC/Intel 21143 and various workalikes device fxp # Intel EtherExpress PRO/100B (82557, 82558) device re # RealTek 8139C+/8169/8169S/8110S device rl # RealTek 8129/8139 # Nvidia/Mellanox Connect-X 4 and later, Ethernet only # mlx5ib requires ibcore infra and is not included by default device mlx5 # Base driver device mlxfw # Firmware update device mlx5en # Ethernet driver # Pseudo devices. device crypto # core crypto support device loop # Network loopback device ether # Ethernet support device vlan # 802.1Q VLAN support device tuntap # Packet tunnel. device md # Memory "disks" device ofwd # Open Firmware disks device gif # IPv6 and IPv4 tunneling device firmware # firmware assist module device xz # lzma decompression # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # USB support options USB_DEBUG # enable debug msgs device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci # EHCI PCI->USB interface device xhci # XHCI PCI->USB interface device usb # USB Bus (required) device uhid # "Human Interface Devices" device ukbd # Keyboard options KBD_INSTALL_CDEV # install a CDEV entry in /dev device umass # Disks/Mass storage - Requires scbus and da0 device ums # Mouse # USB Ethernet device aue # ADMtek USB Ethernet device axe # ASIX Electronics USB Ethernet device cdce # Generic USB over Ethernet device cue # CATC USB Ethernet device kue # Kawasaki LSI USB Ethernet # Wireless NIC cards device wlan # 802.11 support options IEEE80211_SUPPORT_MESH # enable 802.11s draft support options IEEE80211_DEBUG # enable debug msgs device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm device ath # Atheros CardBus/PCI NICs device ath_hal # Atheros CardBus/PCI chip support options AH_AR5416_INTERRUPT_MITIGATION # AR5416 interrupt mitigation options ATH_ENABLE_11N # Enable 802.11n support for AR5416 and later device ath_rate_sample # SampleRate tx rate control for ath # FireWire support device firewire # FireWire bus code device sbp # SCSI over FireWire (Requires scbus and da) device fwe # Ethernet over FireWire (non-standard!) # Misc device iicbus # I2C bus code device iic device opalflash # PowerNV embedded flash memory # Sound support device sound # Generic sound driver (required) device snd_hda # Intel High Definition Audio device snd_uaudio # USB Audio # Netmap provides direct access to TX/RX rings on supported NICs device netmap # netmap(4) support # evdev interface options EVDEV_SUPPORT # evdev support in legacy drivers device evdev # input event device support device uinput # install /dev/uinput cdev # VirtIO support device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI device device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device # HID support options HID_DEBUG # enable debug msgs device hid # Generic HID support diff --git a/sys/powerpc/conf/GENERIC64LE-NODEBUG b/sys/powerpc/conf/GENERIC64LE-NODEBUG index c612ce2757aa..ab48bf7a0547 100644 --- a/sys/powerpc/conf/GENERIC64LE-NODEBUG +++ b/sys/powerpc/conf/GENERIC64LE-NODEBUG @@ -1,32 +1,31 @@ # # GENERIC64LE-NODEBUG -- WITNESS and INVARIANTS free kernel configuration file # for FreeBSD/powerpc # # This configuration file removes several debugging options, including # WITNESS and INVARIANTS checking, which are known to have significant # performance impact on running systems. When benchmarking new features # this kernel should be used instead of the standard GENERIC64LE. # This kernel configuration should never appear outside of the HEAD # of the FreeBSD tree. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ include GENERIC64LE include "../../conf/std.nodebug" ident GENERIC64LE-NODEBUG diff --git a/sys/powerpc/conf/LINT b/sys/powerpc/conf/LINT index 49cb4483a0f0..4795f83ef131 100644 --- a/sys/powerpc/conf/LINT +++ b/sys/powerpc/conf/LINT @@ -1,9 +1,8 @@ -# $FreeBSD$ include "../../conf/NOTES" include NOTES machine powerpc powerpc nodevice mlx5 nodevice mlx5en nodevice mlx5ib nooptions RATELIMIT diff --git a/sys/powerpc/conf/LINT64 b/sys/powerpc/conf/LINT64 index 58e8a55f2199..3441e0528894 100644 --- a/sys/powerpc/conf/LINT64 +++ b/sys/powerpc/conf/LINT64 @@ -1,5 +1,4 @@ -# $FreeBSD$ include "../../conf/NOTES" include NOTES machine powerpc powerpc64 diff --git a/sys/powerpc/conf/LINT64LE b/sys/powerpc/conf/LINT64LE index 9c9a417dd9d7..57413a3de999 100644 --- a/sys/powerpc/conf/LINT64LE +++ b/sys/powerpc/conf/LINT64LE @@ -1,5 +1,4 @@ -# $FreeBSD$ include "../../conf/NOTES" include NOTES machine powerpc powerpc64le diff --git a/sys/powerpc/conf/MPC85XX b/sys/powerpc/conf/MPC85XX index e1978ba3e831..e44a35377355 100644 --- a/sys/powerpc/conf/MPC85XX +++ b/sys/powerpc/conf/MPC85XX @@ -1,126 +1,125 @@ # # Custom kernel for Freescale MPC85XX development boards like the CDS etc. # -# $FreeBSD$ # cpu BOOKE cpu BOOKE_E500 ident MPC85XX machine powerpc powerpc include "dpaa/config.dpaa" makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 options FPU_EMU options MAXCPU=32 options _KPOSIX_PRIORITY_SCHEDULING options ALT_BREAK_TO_DEBUGGER options BREAK_TO_DEBUGGER options BOOTP options BOOTP_NFSROOT #options BOOTP_NFSV3 options CD9660 options COMPAT_43 options DDB #options DEADLKRES options DEVICE_POLLING #options DIAGNOSTIC options FDT #makeoptions FDT_DTS_FILE=mpc8555cds.dts options FFS options GDB options GEOM_PART_GPT options GEOM_LABEL # Provides labelization options INET options INET6 options TCP_HHOOK # hhook(9) framework for TCP options INVARIANTS options INVARIANT_SUPPORT options KDB options KTRACE options MD_ROOT options MPC85XX options MSDOSFS options NFS_ROOT options NFSCL options NFSLOCKD options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options PROCFS options PSEUDOFS options SCHED_ULE options CAPABILITIES options CAPABILITY_MODE options SMP options SYSVMSG options SYSVSEM options SYSVSHM options WITNESS options WITNESS_SKIPSPIN options COMPAT_FREEBSD10 options COMPAT_FREEBSD11 options COMPAT_FREEBSD12 options COMPAT_FREEBSD13 options HWPMC_HOOKS options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data device ata device bpf device cfi device cpufreq device crypto device cryptodev device da device ds1307 device ds1553 device iflib device em device alc device ether device fxp device gpio device gpiopower device iic device iicbus #device isa device loop device md device miibus device mmc device mmcsd device pass device pci device quicc #device rl device scbus device scc device sdhci device sec device spibus device spigen device tsec device dpaa device tuntap device uart options USB_DEBUG # enable debug msgs #device uhci device ehci device ukbd device ums device umass device usb device vlan # P1022 DIU device diu device videomode device vt device fbd # HID support options HID_DEBUG # enable debug msgs device hid # Generic HID support diff --git a/sys/powerpc/conf/MPC85XXSPE b/sys/powerpc/conf/MPC85XXSPE index 1d7ef9ac9742..3665da656ed1 100644 --- a/sys/powerpc/conf/MPC85XXSPE +++ b/sys/powerpc/conf/MPC85XXSPE @@ -1,141 +1,140 @@ # # Custom kernel for Freescale MPC85XX development boards like the CDS etc. # -# $FreeBSD$ # cpu BOOKE cpu BOOKE_E500 ident MPC85XXSPE machine powerpc powerpcspe include "dpaa/config.dpaa" makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 options FPU_EMU options MAXCPU=2 options _KPOSIX_PRIORITY_SCHEDULING options ALT_BREAK_TO_DEBUGGER options BREAK_TO_DEBUGGER options BOOTP options BOOTP_NFSROOT #options BOOTP_NFSV3 options CD9660 options COMPAT_43 options DDB #options DEADLKRES options DEVICE_POLLING #options DIAGNOSTIC options FDT #makeoptions FDT_DTS_FILE=mpc8555cds.dts options FFS options GDB options GEOM_PART_GPT options GEOM_LABEL # Provides labelization options INET options INET6 options TCP_HHOOK # hhook(9) framework for TCP options INVARIANTS options INVARIANT_SUPPORT options KDB options KTRACE options MD_ROOT options MPC85XX options MSDOSFS options NFS_ROOT options NFSCL options NFSLOCKD options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options PROCFS options PSEUDOFS options SCHED_ULE options CAPABILITIES options CAPABILITY_MODE options SMP options SYSVMSG options SYSVSEM options SYSVSHM options WITNESS options WITNESS_SKIPSPIN # The powerpcspe target arch can run non Altivec/VMX powerpc binaries # Keep COMPAT options in sync with powerpc target arch. options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options COMPAT_FREEBSD9 # Compatible with FreeBSD9 options COMPAT_FREEBSD10 # Compatible with FreeBSD10 options COMPAT_FREEBSD11 # Compatible with FreeBSD11 options COMPAT_FREEBSD12 # Compatible with FreeBSD12 options COMPAT_FREEBSD13 # Compatible with FreeBSD13 options HWPMC_HOOKS options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data device ata device bpf device cfi device cpufreq device crypto device cryptodev device da device ds1307 device ds1553 device iflib device em device alc device ether device fxp device gpio device gpiopower device iic device iicbus #device isa device loop device md device miibus device mmc device mmcsd device pass device pci device quicc #device rl device scbus device scc device sdhci device sec device spibus device spigen device tsec device dpaa device tuntap device uart options USB_DEBUG # enable debug msgs #device uhci device ehci device ukbd device ums device umass device usb device vlan # VirtIO support device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI device device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device # P1022 DIU device diu device videomode device vt device fbd # HID support options HID_DEBUG # enable debug msgs device hid # Generic HID support diff --git a/sys/powerpc/conf/NOTES b/sys/powerpc/conf/NOTES index b7c7921f6a68..fa509e6ad137 100644 --- a/sys/powerpc/conf/NOTES +++ b/sys/powerpc/conf/NOTES @@ -1,95 +1,94 @@ -# $FreeBSD$ # # This file contains machine dependent kernel configuration notes. For # machine independent notes, look in /sys/conf/NOTES. # # Enable the kernel DTrace hooks which are required to load the DTrace # kernel modules. # options KDTRACE_HOOKS # DTrace core # NOTE: introduces CDDL-licensed components into the kernel #device dtrace # DTrace modules #device dtrace_profile #device dtrace_sdt #device dtrace_fbt #device dtrace_systrace #device dtrace_prototype #device dtnfscl #device dtmalloc # Alternatively include all the DTrace modules #device dtraceall ##################################################################### # CPU OPTIONS # You must specify a machine directive to choose powerpc or powerpc64 #machine powerpc powerpc[64] # # You must specify at least one CPU (the one you intend to run on). cpu AIM #cpu BOOKE_E500 options FPU_EMU #options MPC85XX options POWERMAC #NewWorld Apple PowerMacs #options PS3 #Sony Playstation 3 options PSIM #GDB PSIM ppc simulator options MAMBO #IBM Mambo Full System Simulator options QEMU #QEMU processor emulator # The cpufreq(4) driver provides support for CPU frequency control device cpufreq # Standard busses device agp device glc # Sony Playstation 3 Ethernet device kiic # Apple Keywest I2C Controller device ofwd # Open Firmware disks device adb # Apple Desktop Bus device cuda # VIA-CUDA ADB interface device ad7417 # PowerMac7,2 temperature sensor device ds1631 # PowerMac11,2 temperature sensor device ds1775 # PowerMac7,2 temperature sensor device fcu # Apple Fan Control Unit device max6690 # PowerMac7,2 temperature sensor device pmu # Apple Power Management Unit device smu # Apple System Management Unit device snd_ai2s # Apple I2S Audio device snd_davbus # Apple Davbus Audio device adm1030 # Apple G4 MDD fan controller # Backlight subsystem device backlight ##################################################################### # Devices we don't want to deal with nodevice ccr nodevice cxgbe # XXX: builds on powerpc64 only. nodevice cxgbev nodevice mpr # no 64-bit atomics nodevice mps # no 64-bit atomics nodevice ppc # sound nodevice snd_cmi # wants gdb_cur nodevice dcons nodevice dcons_crom ##################################################################### # Options we don't want to deal with nooption PPC_DEBUG nooption PPC_PROBE_CHIPSET # uses inb/outb diff --git a/sys/powerpc/conf/QORIQ64 b/sys/powerpc/conf/QORIQ64 index e1ef972d88eb..369e83179c59 100644 --- a/sys/powerpc/conf/QORIQ64 +++ b/sys/powerpc/conf/QORIQ64 @@ -1,127 +1,126 @@ # # Custom kernel for Freescale QorIQ (P5xxx, Txxxx) based boards, like # AmigaOne X5000 # -# $FreeBSD$ # cpu BOOKE cpu BOOKE_E500 ident QORIQ64 machine powerpc powerpc64 include "dpaa/config.dpaa" makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 #makeoptions WERROR="-Werror -Wno-format" options FPU_EMU options MAXCPU=32 options _KPOSIX_PRIORITY_SCHEDULING options ALT_BREAK_TO_DEBUGGER options BREAK_TO_DEBUGGER options BOOTP options BOOTP_NFSROOT #options BOOTP_NFSV3 options CD9660 #options COMPAT_43 options COMPAT_FREEBSD32 #Compatible with FreeBSD/powerpc binaries options DDB #options DEADLKRES options DEVICE_POLLING #options DIAGNOSTIC options FDT #makeoptions FDT_DTS_FILE=mpc8555cds.dts options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories options UFS_GJOURNAL #Enable gjournal-based UFS journaling options QUOTA #Enable disk quotas for UFS options GDB options GEOM_PART_GPT options GEOM_LABEL #Provides labelization options INET options INET6 options TCP_HHOOK # hhook(9) framework for TCP options INVARIANTS options INVARIANT_SUPPORT options KDB options KDB_TRACE # Print a stack trace for a panic. options KTRACE options MD_ROOT options MPC85XX options MSDOSFS options NFS_ROOT options NFSCL options NFSLOCKD options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options PROCFS options PSEUDOFS options SCHED_ULE options CAPABILITIES options CAPABILITY_MODE options SMP options STACK #stack(9) support options SYSVMSG options SYSVSEM options SYSVSHM options WITNESS options WITNESS_SKIPSPIN options HWPMC_HOOKS options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data device ata device bpf device cfi device crypto device cryptodev device da device ds1307 device ds1553 device iflib device em device alc device dpaa device ether device fxp device gpio device gpiopower device iic device iicbus #device isa device loop device md device miibus device mmc device mmcsd device pass device pci #device rl device scbus device scc device sdhci device spibus device spigen device tuntap device uart options USB_DEBUG # enable debug msgs #device uhci device ehci device umass device usb device vlan # Desktop related device vt device fbd options KBD_INSTALL_CDEV device ukbd device ums # HID support options HID_DEBUG # enable debug msgs device hid # Generic HID support diff --git a/sys/powerpc/conf/dpaa/DPAA b/sys/powerpc/conf/dpaa/DPAA index 4032c2ddd446..742fdc9da325 100644 --- a/sys/powerpc/conf/dpaa/DPAA +++ b/sys/powerpc/conf/dpaa/DPAA @@ -1,101 +1,100 @@ # # Common kernel config for Freescale QorIQ DPAA development boards like the # P2041RDB, P3041DS and P5020DS. # # This is not standalone kernel config. Use it only for including # purposes. # -# $FreeBSD$ cpu BOOKE cpu BOOKE_E500 machine powerpc powerpc #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols #makeoptions WERROR="-Werror -Wno-format" makeoptions NO_MODULES=yes # Platform support options MPC85XX #Freescale SoC family options SMP #Symmetric Multi Processing #options SCHED_4BSD #4BSD scheduler options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options NFSCL #New Network Filesystem Client options SOFTUPDATES #Enable FFS soft updates support options PROCFS #Process filesystem (requires PSEUDOFS) options PSEUDOFS #Pseudo-filesystem framework options GEOM_PART_GPT #GUID Partition Tables. options GEOM_LABEL options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options NO_SWAPPING options KDB #Enable the kernel debugger options DDB #Support DDB options GDB options ALT_BREAK_TO_DEBUGGER options BREAK_TO_DEBUGGER options DIAGNOSTIC options INVARIANTS #Enable calls of extra sanity checking options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS options KTR options KTR_COMPILE=0xffffffff options KTR_MASK=KTR_PMAP options KTR_ENTRIES=8192 options WITNESS #Enable checks to detect deadlocks and cycles #options WITNESS_KDB # RamFS Root #options GEOM_UZIP #options MD_ROOT #options MD_ROOT_SIZE=10240 # Netbooting options BOOTP options BOOTP_NFSROOT options BOOTP_NFSV3 options BOOTP_WIRED_TO=dtsec3 options NFS_ROOT # Block devices device mmc device mmcsd device sdhci # Network devices device miibus # MII bus support device iflib device em # I2C support device iicbus device iic device uart device ehci device usb device scbus device da device umass device pty device cfi device pci # Pseudo devices device ether # Ethernet support device loop # Network loopback device bpf # Berkeley packet filter device md # Memory "disks" diff --git a/sys/powerpc/conf/dpaa/config.dpaa b/sys/powerpc/conf/dpaa/config.dpaa index 6161eb7db4a6..6a923baed894 100644 --- a/sys/powerpc/conf/dpaa/config.dpaa +++ b/sys/powerpc/conf/dpaa/config.dpaa @@ -1,25 +1,24 @@ -# $FreeBSD$ files "dpaa/files.dpaa" makeoptions DPAA_COMPILE_CMD="${LINUXKPI_C} ${DPAAWARNFLAGS} \ -Wno-cast-qual -Wno-unused-function -Wno-init-self -fms-extensions \ -include $S/contrib/ncsw/build/dflags.h \ -Wno-error=missing-prototypes \ -I$S/contrib/ncsw/build/ \ -I$S/contrib/ncsw/inc \ -I$S/contrib/ncsw/inc/cores \ -I$S/contrib/ncsw/inc/etc \ -I$S/contrib/ncsw/inc/Peripherals \ -I$S/contrib/ncsw/etc \ -I$S/contrib/ncsw/Peripherals/BM \ -I$S/contrib/ncsw/Peripherals/FM \ -I$S/contrib/ncsw/Peripherals/FM/HC \ -I$S/contrib/ncsw/Peripherals/FM/inc \ -I$S/contrib/ncsw/Peripherals/FM/MAC \ -I$S/contrib/ncsw/Peripherals/FM/Pcd \ -I$S/contrib/ncsw/Peripherals/FM/Port \ -I$S/contrib/ncsw/Peripherals/FM/Rtc \ -I$S/contrib/ncsw/Peripherals/QM \ -I$S/contrib/ncsw/inc/flib \ -I$S/contrib/ncsw/inc/integrations" diff --git a/sys/powerpc/conf/dpaa/files.dpaa b/sys/powerpc/conf/dpaa/files.dpaa index ecad2690c5f6..4af0f896d883 100644 --- a/sys/powerpc/conf/dpaa/files.dpaa +++ b/sys/powerpc/conf/dpaa/files.dpaa @@ -1,123 +1,122 @@ -# $FreeBSD$ # NetCommSw drivers contrib/ncsw/etc/error.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/etc/ncsw_list.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/etc/memcpy.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/etc/mm.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/etc/ncsw_mem.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/etc/sprint.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/BM/bm.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/BM/bman_low.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/BM/bm_pool.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/BM/bm_portal.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/SP/fm_sp.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Rtc/fm_rtc.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Rtc/fman_rtc.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Port/fman_port.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Port/fm_port.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Port/fm_port_im.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Pcd/fm_cc.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Pcd/fm_kg.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Pcd/fman_kg.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Pcd/fm_manip.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Pcd/fm_pcd.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Pcd/fm_plcr.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Pcd/fm_prs.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/Pcd/fman_prs.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/MAC/dtsec.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/MAC/dtsec_mii_acc.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/MAC/fman_dtsec.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/MAC/fman_dtsec_mii_acc.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/MAC/fm_mac.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/MAC/fman_dtsec.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/MAC/tgec.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/MAC/tgec_mii_acc.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/MAC/fman_tgec.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/HC/hc.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/fm_muram.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/fm_ncsw.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/fman_ncsw.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD} ${NO_WMISLEADING_INDENTATION}" contrib/ncsw/Peripherals/QM/qm.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/QM/qm_portal_fqr.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/user/env/stdlib.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/user/env/xx.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/user/env/core.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" # FreeBSD Wrappers dev/dpaa/portals_common.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/bman_portals.c optional dpaa fdt \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/bman.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/bman_fdt.c optional dpaa fdt \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/qman_portals.c optional dpaa fdt \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/qman.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/qman_fdt.c optional dpaa fdt \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/fman.c optional dpaa fdt \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/fman_mdio.c optional dpaa fdt \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/fman_fdt.c optional dpaa fdt \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/if_dtsec.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/if_dtsec_im.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/if_dtsec_rm.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/if_dtsec_fdt.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" # Examples dev/dpaa/bman-example.c optional bman_example dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" dev/dpaa/qman-example.c optional qman_example dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" diff --git a/sys/powerpc/powerpc/iommu_if.m b/sys/powerpc/powerpc/iommu_if.m index d37155ee41a8..c3a19fc135af 100644 --- a/sys/powerpc/powerpc/iommu_if.m +++ b/sys/powerpc/powerpc/iommu_if.m @@ -1,54 +1,53 @@ #- # Copyright (c) 2010 Nathan Whitehorn # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # from: src/sys/kern/bus_if.m,v 1.21 2002/04/21 11:16:10 markm Exp -# $FreeBSD$ # #include #include #include INTERFACE iommu; METHOD int map { device_t iommu; bus_dma_segment_t *segs; int *nsegs; bus_addr_t lowaddr; bus_addr_t highaddr; bus_size_t alignment; bus_addr_t boundary; void *cookie; }; METHOD int unmap { device_t iommu; bus_dma_segment_t *segs; int nsegs; void *cookie; }; diff --git a/sys/powerpc/powerpc/pic_if.m b/sys/powerpc/powerpc/pic_if.m index edbbc3376a7a..59187be9d935 100644 --- a/sys/powerpc/powerpc/pic_if.m +++ b/sys/powerpc/powerpc/pic_if.m @@ -1,103 +1,102 @@ #- # Copyright (c) 1998 Doug Rabson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # from: src/sys/kern/bus_if.m,v 1.21 2002/04/21 11:16:10 markm Exp -# $FreeBSD$ # #include #include #include INTERFACE pic; CODE { static pic_translate_code_t pic_translate_code_default; static void pic_translate_code_default(device_t dev, u_int irq, int code, enum intr_trigger *trig, enum intr_polarity *pol) { *trig = INTR_TRIGGER_CONFORM; *pol = INTR_POLARITY_CONFORM; } }; METHOD void bind { device_t dev; u_int irq; cpuset_t cpumask; void **priv; }; METHOD void translate_code { device_t dev; u_int irq; int code; enum intr_trigger *trig; enum intr_polarity *pol; } DEFAULT pic_translate_code_default; METHOD void config { device_t dev; u_int irq; enum intr_trigger trig; enum intr_polarity pol; }; METHOD void dispatch { device_t dev; struct trapframe *tf; }; METHOD void enable { device_t dev; u_int irq; u_int vector; void **priv; }; METHOD void eoi { device_t dev; u_int irq; void *priv; }; METHOD void ipi { device_t dev; u_int cpu; }; METHOD void mask { device_t dev; u_int irq; void *priv; }; METHOD void unmask { device_t dev; u_int irq; void *priv; }; diff --git a/sys/powerpc/powerpc/platform_if.m b/sys/powerpc/powerpc/platform_if.m index 381dd0f4133e..1b16362fc876 100644 --- a/sys/powerpc/powerpc/platform_if.m +++ b/sys/powerpc/powerpc/platform_if.m @@ -1,272 +1,271 @@ #- # Copyright (c) 2009 Nathan Whitehorn # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include #include #include #include #include #include #include #include /** * @defgroup PLATFORM platform - KObj methods for PowerPC platform * implementations * @brief A set of methods required by all platform implementations. * These are used to bring up secondary CPUs, supply the physical memory * map, etc. *@{ */ INTERFACE platform; # # Default implementations # CODE { static void platform_null_attach(platform_t plat) { return; } static int platform_null_smp_first_cpu(platform_t plat, struct cpuref *cpuref) { cpuref->cr_hwref = -1; cpuref->cr_cpuid = 0; return (0); } static int platform_null_smp_next_cpu(platform_t plat, struct cpuref *_cpuref) { return (ENOENT); } static struct cpu_group *platform_null_smp_topo(platform_t plat) { #ifdef SMP return (smp_topo_none()); #else return (NULL); #endif } static vm_offset_t platform_null_real_maxaddr(platform_t plat) { return (VM_MAX_ADDRESS); } static void platform_null_smp_ap_init(platform_t plat) { return; } static void platform_null_smp_probe_threads(void) { return; } static int platform_null_node_numa_domain(platform_t plat, phandle_t node) { return (0); } }; /** * @brief Probe for whether we are on this platform, returning the standard * newbus probe codes. If we have Open Firmware or a flattened device tree, * it is guaranteed to be available at this point. */ METHOD int probe { platform_t _plat; }; /** * @brief Attach this platform module. This happens before the MMU is online, * so the platform module can install its own high-priority MMU module at * this point. */ METHOD int attach { platform_t _plat; } DEFAULT platform_null_attach; /** * @brief Return the system's physical memory map. * * It shall provide the total and the available regions of RAM. * The available regions need not take the kernel into account. * * @param _memp Array of physical memory chunks * @param _memsz Number of physical memory chunks * @param _availp Array of available physical memory chunks * @param _availsz Number of available physical memory chunks */ METHOD void mem_regions { platform_t _plat; struct mem_region *_memp; int *_memsz; struct mem_region *_availp; int *_availsz; }; /** * @brief Return the system's physical memory map. * * It shall provide the total RAM with the corresponding domains. * * @param _memp Array of physical memory chunks * @param _memsz Number of physical memory chunks */ METHOD void numa_mem_regions { platform_t _plat; struct numa_mem_region *_memp; int *_memsz; }; /** * @brief Return the maximum address accessible in real mode * (for use with hypervisors) */ METHOD vm_offset_t real_maxaddr { platform_t _plat; } DEFAULT platform_null_real_maxaddr; /** * @brief Get the CPU's timebase frequency, in ticks per second. * * @param _cpu CPU whose timebase to query */ METHOD u_long timebase_freq { platform_t _plat; struct cpuref *_cpu; }; # SMP bits /** * @brief Fill the first CPU's cpuref * * @param _cpuref CPU */ METHOD int smp_first_cpu { platform_t _plat; struct cpuref *_cpuref; } DEFAULT platform_null_smp_first_cpu; /** * @brief Fill the next CPU's cpuref * * @param _cpuref CPU */ METHOD int smp_next_cpu { platform_t _plat; struct cpuref *_cpuref; } DEFAULT platform_null_smp_next_cpu; /** * @brief Find the boot processor * * @param _cpuref CPU */ METHOD int smp_get_bsp { platform_t _plat; struct cpuref *_cpuref; } DEFAULT platform_null_smp_first_cpu; /** * @brief Start a CPU * * @param _cpuref CPU */ METHOD int smp_start_cpu { platform_t _plat; struct pcpu *_cpu; }; /** * @brief Start a CPU * */ METHOD void smp_ap_init { platform_t _plat; } DEFAULT platform_null_smp_ap_init; /** * @brief Probe mp_ncores and smp_threads_per_core for early MI code */ METHOD void smp_probe_threads { platform_t _plat; } DEFAULT platform_null_smp_probe_threads; /** * @brief Return SMP topology */ METHOD cpu_group_t smp_topo { platform_t _plat; } DEFAULT platform_null_smp_topo; /** * @brief Reset system */ METHOD void reset { platform_t _plat; }; /** * @brief Suspend the CPU */ METHOD void sleep { platform_t _plat; }; /** * @brief Attempt to synchronize timebase of current CPU with others. * Entered (approximately) simultaneously on all CPUs, including the BSP. * Passed the timebase value on the BSP as of shortly before the call. */ METHOD void smp_timebase_sync { platform_t _plat; u_long _tb; int _ap; }; /** * @brief Return the NUMA domain for the given device tree node. Always returns * a valid domain. * */ METHOD int node_numa_domain { platform_t _plat; phandle_t _node; } DEFAULT platform_null_node_numa_domain; diff --git a/sys/powerpc/ps3/ps3-hv-asm.awk b/sys/powerpc/ps3/ps3-hv-asm.awk index 21241a82773e..91e114ba8e79 100644 --- a/sys/powerpc/ps3/ps3-hv-asm.awk +++ b/sys/powerpc/ps3/ps3-hv-asm.awk @@ -1,52 +1,50 @@ # This script generates the PS3 hypervisor call stubs from an HV # interface definition file. The PS3 HV calling convention is very # similar to the PAPR one, except that the function token is passed in # r11 instead of r3. # # Invoke like so: awk -f ps3-hv-asm.awk < ps3-hvcall.master > ps3-hvcall.S # -# $FreeBSD$ - BEGIN { printf("#include \n\n"); printf("#define hc .long 0x44000022\n\n"); } /HVCALL.*/ { code = $2; ins = split($4, a, ",") outs = split($5, a, ",") printf("ASENTRY(%s)\n",$3); printf("\tmflr %%r0\n"); printf("\tstd %%r0,16(%%r1)\n"); printf("\tstdu %%r1,-%d(%%r1)\n", 48+8*outs); if ($4 == "UNUSED") ins = 0 # Save output reg addresses to the stack for (i = 0; i < outs; i++) { if (ins+i >= 8) { printf("\tld %%r11,%d(%%r1)\n", 48+8*outs + 48 + 8*(i+ins)); printf("\tstd %%r11,%d(%%r1)\n", 48+8*i); } else { printf("\tstd %%r%d,%d(%%r1)\n", 3+ins+i, 48+8*i); } } printf("\tli %%r11,%d\n", code); printf("\thc\n"); printf("\textsw %%r3,%%r3\n"); for (i = 0; i < outs; i++) { printf("\tld %%r11,%d(%%r1)\n", 48+8*i); printf("\tstd %%r%d,0(%%r11)\n", 4+i); } printf("\tld %%r1,0(%%r1)\n"); printf("\tld %%r0,16(%%r1)\n"); printf("\tmtlr %%r0\n"); printf("\tblr\n\n"); } diff --git a/sys/powerpc/ps3/ps3-hv-header.awk b/sys/powerpc/ps3/ps3-hv-header.awk index d00571a62b4c..d7de9ed665ac 100644 --- a/sys/powerpc/ps3/ps3-hv-header.awk +++ b/sys/powerpc/ps3/ps3-hv-header.awk @@ -1,42 +1,40 @@ # This script generates the PS3 hypervisor call header from a hypervisor # interface definition file. All lines that do not begin with HVCALL # or a bare # for comments are copied to the output header so that # enums, constant, C comments and the like can be passed through into the # header. # # Invoke like so: awk -f ps3-hv-header.awk < ps3-hvcall.master > ps3-hv.h # -# $FreeBSD$ - !/HVCALL.*/ && (!/#.*/ || /#define.*/ || /#include.*/) { print($0); } /HVCALL.*/ { split($5, outs, ",") if ($4 == "UNUSED") split("", ins, ",") else split($4, ins, ",") printf("int %s(",$3); for (i = 1; i <= length(ins); i++) { printf("uint64_t %s", ins[i]); if (i < length(ins)) printf(", "); } if (length(outs) > 0 && length(ins) > 0) printf(", "); for (i = 1; i <= length(outs); i++) { printf("uint64_t *%s", outs[i]); if (i < length(outs)) printf(", "); } if (length(outs) == 0 && length(ins) == 0) printf("void"); printf(");\n"); } diff --git a/sys/powerpc/psim/psim-tree b/sys/powerpc/psim/psim-tree index 62391c5ed950..3d7474a4daa5 100644 --- a/sys/powerpc/psim/psim-tree +++ b/sys/powerpc/psim/psim-tree @@ -1,90 +1,89 @@ -# $FreeBSD$ # # Simple psim h/w description # # The .gdbinit should contain something like: # # target sim -e chirp -r 33554432 -f psim-tree # load # # (The -r option is the amount of physical RAM the simulator has) # /#address-cells 1 /openprom/options/use-stdio? false #/openprom/options/strict-alignment? true /options ./output-device "psim-stdout # # Define the disk device alias so ofwd can identify it # /aliases ./ofwdisk "/phb@0x70000000/ide@1/disk@0 # # CPU definition. The phandle property is to help nexus.c locate the # interrupt controller. # /cpus/cpu@0 # # disk file, done via phb. maybe there's a simpler way. # /phb@0x70000000 ./device_type "pci ./name "pci ./#address-cells 3 ./#size-cells 2 ./ranges ni0,0,0,0 0xc0000000 0x10000 /phb@0x70000000/ide@1 ./device_type "ide ./name "ide ./assigned-addresses \ ni0,0,10,1f0 8 \ ni0,0,14,3f8 8 \ ni0,0,18,170 8 \ ni0,0,1c,378 8 \ ni0,0,20,200 8 ./reg \ 1 0 \ i0,0,10,0 8 \ i0,0,18,0 8 \ i0,0,14,6 1 \ i0,0,1c,6 1 \ i0,0,20,0 8 ./ready-delay 1000 /phb@0x70000000/ide@1/disk@0/file "../image.iso # # I/O Bus # /iobus@0x90000000 ./name psim-iobus ./reg 0x90000000 0x20000000 # # OpenPIC # /iobus@0x90000000/opic@0x90000000 ./name interrupt-controller ./device_type open-pic ./compatible psim,open-pic ./reg 0x90000000 0x40000 ./interrupt-ranges 0 256 /iobus/opic > intr0 int /cpus/cpu@0x0 # # IDE1 # #/iobus@0x90000000/ide@0x90052000 # ./name ata-4 # ./ioport 1 # ./device_type ata # ./interrupt 12 # ./reg 0x90052000 8 0x90052010 8 0x90052020 8 0x90052030 1 0x90052040 1 0x90052050 8 #/iobus@0x90000000/ide@0x90052000 > a irq12 /iobus/opic diff --git a/sys/riscv/allwinner/files.allwinner b/sys/riscv/allwinner/files.allwinner index fb8c35a0b355..ee7ad9be1e70 100644 --- a/sys/riscv/allwinner/files.allwinner +++ b/sys/riscv/allwinner/files.allwinner @@ -1,3 +1,2 @@ -# $FreeBSD$ arm/allwinner/aw_wdog.c optional aw_wdog diff --git a/sys/riscv/conf/DEFAULTS b/sys/riscv/conf/DEFAULTS index dbf94f9e0335..f4aea50b49ef 100644 --- a/sys/riscv/conf/DEFAULTS +++ b/sys/riscv/conf/DEFAULTS @@ -1,22 +1,21 @@ # # DEFAULTS -- Default kernel configuration file for FreeBSD/RISC-V # -# $FreeBSD$ machine riscv riscv64 # Pseudo devices. device mem # Memory and kernel memory devices # Default partitioning schemes options GEOM_PART_BSD options GEOM_PART_MBR options GEOM_PART_GPT # Default congestion control algorithm options CC_CUBIC # include CUBIC congestion control options NEW_PCIB options INTRNG options NETLINK # netlink(4) support diff --git a/sys/riscv/conf/GENERIC b/sys/riscv/conf/GENERIC index 9465b2712b2e..60b96c52f661 100644 --- a/sys/riscv/conf/GENERIC +++ b/sys/riscv/conf/GENERIC @@ -1,226 +1,225 @@ # # GENERIC -- Generic kernel configuration file for FreeBSD/RISC-V # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ cpu RISCV ident GENERIC makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options VIMAGE # Subsystem virtualization, e.g. VNET options INET # InterNETworking options INET6 # IPv6 communications protocols options TCP_HHOOK # hhook(9) framework for TCP options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 options ROUTE_MPATH # Multipath routing support options TCP_OFFLOAD # TCP offload options TCP_BLACKBOX # Enhanced TCP event logging options TCP_RFC7413 # TCP Fast Open options SCTP_SUPPORT # Allow kldload of SCTP options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options QUOTA # Enable disk quotas for UFS options NFSCL # Network Filesystem Client options NFSD # Network Filesystem Server options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as /, requires NFSCL options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options TMPFS # Efficient memory filesystem options GEOM_RAID # Soft RAID functionality. options GEOM_LABEL # Provides labelization options COMPAT_FREEBSD12 # Compatible with FreeBSD12 options COMPAT_FREEBSD13 # Compatible with FreeBSD13 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KBD_INSTALL_CDEV # install a CDEV entry in /dev # options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options AUDIT # Security event auditing options CAPABILITY_MODE # Capsicum capability mode options CAPABILITIES # Capsicum capabilities options MAC # TrustedBSD MAC Framework options KDTRACE_FRAME # Ensure frames are compiled in options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options RACCT # Resource accounting framework options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default options RCTL # Resource limits options SMP # RISC-V SBI console device rcons # pseudo devices device clk device hwreset device syscon device syscon_power device riscv_syscon # Bus drivers device pci # Block devices device scbus device da # VirtIO support device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI device device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_mmio # VirtIO MMIO bus # ATA/SCSI peripherals device pass # Passthrough device (direct ATA/SCSI access) # NVM Express (NVMe) support device nvme # base NVMe driver options NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver device nvd # expose NVMe namespaces as disks, depends on nvme # USB support options USB_DEBUG # enable debug msgs device ohci # OHCI USB interface device uhci # UHCI USB interface device ehci # EHCI USB interface (USB 2.0) device xhci # XHCI USB interface (USB 3.0) device usb # USB Bus (required) device ukbd # Keyboard device umass # Disks/Mass storage - Requires scbus and da # HID support options HID_DEBUG # enable debug msgs device hid # Generic HID support # DTrace support # device dtrace # device dtrace_profile # device dtrace_sdt # device dtrace_fbt # device dtrace_systrace # device dtrace_prototype # device dtraceall # Serial (COM) ports device uart # Generic UART driver device uart_lowrisc # lowRISC UART driver device uart_ns8250 # ns8250-type UART driver # Console device vt device kbdmux # RTC device da9063_rtc # Dialog Semiconductor DA9063 RTC device goldfish_rtc # QEMU RTC # Ethernet drivers device cgem # Cadence GEM Gigabit Ethernet device device miibus # MII bus support device xae # Xilinx AXI Ethernet MAC # DMA support device xdma # DMA interface device axidma # Xilinx AXI DMA Controller # GPIO device gpio # SPI device spibus device spigen # Power management controllers device da9063_pmic # Dialog Semiconductor DA9063 PMIC # Uncomment for memory disk # options MD_ROOT # options MD_ROOT_SIZE=32768 # 32MB ram disk # makeoptions MFS_IMAGE=/path/to/img # options ROOTDEVNAME=\"ufs:/dev/md0\" # Uncomment for virtio block device # options ROOTDEVNAME=\"ufs:/dev/vtbd0\" # Debugging support. Always need this: options KDB # Enable kernel debugger support. options KDB_TRACE # Print a stack trace for a panic. # For full debugger support use (turn off in stable branch): options DDB # Support DDB. options GDB # Support remote GDB. options DEADLKRES # Enable the deadlock resolver options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones options ALT_BREAK_TO_DEBUGGER # Enter debugger on keyboard escape sequence # options EARLY_PRINTF options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default # Kernel dump features. options ZSTDIO # zstd-compressed kernel and user dumps # Pseudo devices. device crypto # core crypto support device loop # Network loopback device ether # Ethernet support device vlan # 802.1Q VLAN support device tuntap # Packet tunnel. device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device firmware # firmware assist module # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # Flattened Device Tree options FDT makeoptions MODULES_EXTRA+="dtb/sifive" # I2C support device iicbus # Bus support, required for iicoc below. device iicoc # OpenCores I2C controller support # Allwinner device drivers device aw_wdog # Allwinner Watchdog files "../allwinner/files.allwinner" # SiFive device drivers device fu740_pci_dw device sifive_gpio device sifive_spi include "../sifive/std.sifive" diff --git a/sys/riscv/conf/GENERIC-NODEBUG b/sys/riscv/conf/GENERIC-NODEBUG index 09155b59f46f..ca4d07fbd2da 100644 --- a/sys/riscv/conf/GENERIC-NODEBUG +++ b/sys/riscv/conf/GENERIC-NODEBUG @@ -1,32 +1,31 @@ # # GENERIC-NODEBUG -- WITNESS and INVARIANTS free kernel configuration file # for FreeBSD/riscv # # This configuration file removes several debugging options, including # WITNESS and INVARIANTS checking, which are known to have significant # performance impact on running systems. When benchmarking new features # this kernel should be used instead of the standard GENERIC. # This kernel configuration should never appear outside of the HEAD # of the FreeBSD tree. # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD$ include GENERIC include "../../conf/std.nodebug" ident GENERIC-NODEBUG diff --git a/sys/riscv/conf/LINT b/sys/riscv/conf/LINT index aaba324bf49a..0b2d27ccec8a 100644 --- a/sys/riscv/conf/LINT +++ b/sys/riscv/conf/LINT @@ -1,4 +1,3 @@ -# $FreeBSD$ include "../../conf/NOTES" include NOTES diff --git a/sys/riscv/conf/NOTES b/sys/riscv/conf/NOTES index d3ff441a95d6..52720f6d83d1 100644 --- a/sys/riscv/conf/NOTES +++ b/sys/riscv/conf/NOTES @@ -1,107 +1,106 @@ # # NOTES -- Lines that can be cut/pasted into kernel and hints configs. # # This file contains machine dependent kernel configuration notes. For # machine independent notes, look in /sys/conf/NOTES. # -# $FreeBSD$ # cpu RISCV makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KDTRACE_FRAME # Ensure frames are compiled in options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # Kernel ELF linker loads CTF data options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default # RISC-V SBI console device rcons # pseudo devices device clk device hwreset device phy device regulator device syscon device syscon_power device riscv_syscon # Backlight subsystem device backlight # VirtIO support device virtio # Generic VirtIO bus (required) device virtio_pci # VirtIO PCI device device vtnet # VirtIO Ethernet device device virtio_blk # VirtIO Block device device virtio_mmio # VirtIO MMIO bus device virtio_random # VirtIO Entropy device # NVM Express (NVMe) support device nvme # base NVMe driver options NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver device nvd # expose NVMe namespaces as disks, depends on nvme # NOTE: dtrace introduces CDDL-licensed components into the kernel device dtrace # dtrace core device dtraceall # include all dtrace modules # Serial (COM) ports device uart_lowrisc # lowRISC UART driver device uart_ns8250 # ns8250-type UART driver # RTC device da9063_rtc # Dialog Semiconductor DA9063 RTC device goldfish_rtc # QEMU RTC # Ethernet drivers device xae # Xilinx AXI Ethernet MAC # DMA support device xdma # DMA interface device axidma # Xilinx AXI DMA Controller # SPI device xilinx_spi # Xilinx AXI Quad-SPI Controller # Power management controllers device da9063_pmic # Dialog Semiconductor DA9063 PMIC # SiFive device drivers device fe310aon device fu740_pci_dw device sifive_gpio device sifive_spi files "../sifive/files.sifive" # Flattened Device Tree options FDT makeoptions MODULES_EXTRA+="dtb/sifive" # FreeBSD/riscv didn't exist for these releases nooptions COMPAT_FREEBSD4 nooptions COMPAT_FREEBSD5 nooptions COMPAT_FREEBSD6 nooptions COMPAT_FREEBSD7 nooptions COMPAT_FREEBSD9 nooptions COMPAT_FREEBSD10 nooptions COMPAT_FREEBSD11 # riscv doesn't support inb/outb, so disable chipset probing which needs it nooptions PPC_PROBE_CHIPSET # Makes assumptions about bus tags that aren't true on riscv nodevice snd_cmi # Don't yet have hwpmc(4) nodevice hwpmc nooptions HWPMC_HOOKS # riscv doesn't yet have atomic_testandset_int and atomic_testandclear_int. nodevice ccr nodevice cxgbe nodevice cxgbev diff --git a/sys/riscv/conf/QEMU b/sys/riscv/conf/QEMU index 34a52e41c3ee..b72107aee690 100644 --- a/sys/riscv/conf/QEMU +++ b/sys/riscv/conf/QEMU @@ -1,10 +1,9 @@ -# $FreeBSD$ #NO_UNIVERSE include "GENERIC" ident QEMU options HZ=100 options ROOTDEVNAME=\"ufs:/dev/vtbd0\" diff --git a/sys/riscv/sifive/files.sifive b/sys/riscv/sifive/files.sifive index f38bacb48e3b..4f11aaad0701 100644 --- a/sys/riscv/sifive/files.sifive +++ b/sys/riscv/sifive/files.sifive @@ -1,8 +1,7 @@ -# $FreeBSD$ riscv/sifive/fe310_aon.c optional fe310aon riscv/sifive/fu740_pci_dw.c optional fu740_pci_dw pci fdt riscv/sifive/sifive_gpio.c optional sifive_gpio gpio riscv/sifive/sifive_prci.c standard riscv/sifive/sifive_spi.c optional sifive_spi spibus riscv/sifive/sifive_uart.c standard diff --git a/sys/riscv/sifive/std.sifive b/sys/riscv/sifive/std.sifive index f1e513873425..261085d98cff 100644 --- a/sys/riscv/sifive/std.sifive +++ b/sys/riscv/sifive/std.sifive @@ -1,3 +1,2 @@ -# $FreeBSD$ files "../sifive/files.sifive" diff --git a/sys/teken/demo/Makefile b/sys/teken/demo/Makefile index e39c5742bc96..b547e423e147 100644 --- a/sys/teken/demo/Makefile +++ b/sys/teken/demo/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ PROG= teken_demo LDADD= -lncursesw -lteken -lutil MAN= .include diff --git a/sys/teken/gensequences b/sys/teken/gensequences index 49cd771ed064..a7562891f6d5 100644 --- a/sys/teken/gensequences +++ b/sys/teken/gensequences @@ -1,167 +1,166 @@ #!/usr/bin/awk -f #- # Copyright (c) 2008-2009 Ed Schouten # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ function die(msg) { print msg; exit 1; } function cchar(str) { if (str == "^[") return "\\x1B"; if (str == "SP") return " "; return str; } function csequence(str) { if (str == "SP") return " "; return str; } BEGIN { FS = "\t+" while (getline > 0) { if (NF == 0 || $1 ~ /^#/) continue; if (NF != 3 && NF != 4) die("Invalid line layout: " NF " columns"); split($3, sequence, " +"); nsequences = 0; for (s in sequence) nsequences++; prefix = ""; l_prefix_name[""] = "teken_state_init"; for (i = 1; i < nsequences; i++) { n = prefix csequence(sequence[i]); l_prefix_parent[n] = prefix; l_prefix_suffix[n] = sequence[i]; if (!l_prefix_name[n]) l_prefix_name[n] = "teken_state_" ++npr; prefix = n; } suffix = sequence[nsequences]; cmd = prefix suffix; # Fill lists if (l_cmd_name[cmd] != "") die(cmd " already exists"); l_cmd_prefix[cmd] = prefix; l_cmd_suffix[cmd] = suffix; l_cmd_args[cmd] = $4; l_cmd_abbr[cmd] = $1; l_cmd_name[cmd] = $2; l_cmd_c_name[cmd] = "teken_subr_" tolower($2); gsub(" ", "_", l_cmd_c_name[cmd]); if ($4 != "") l_prefix_numbercmds[prefix]++; } print "/* Generated file. Do not edit. */"; print ""; for (p in l_prefix_name) { if (l_prefix_name[p] != "teken_state_init") print "static teken_state_t " l_prefix_name[p] ";"; } for (p in l_prefix_name) { print ""; print "/* '" p "' */"; print "static void"; print l_prefix_name[p] "(teken_t *t, teken_char_t c)"; print "{"; if (l_prefix_numbercmds[p] > 0) { print ""; print "\tif (teken_state_numbers(t, c))"; print "\t\treturn;"; } print ""; print "\tswitch (c) {"; for (c in l_cmd_prefix) { if (l_cmd_prefix[c] != p) continue; print "\tcase '" cchar(l_cmd_suffix[c]) "': /* " l_cmd_abbr[c] ": " l_cmd_name[c] " */"; if (l_cmd_args[c] == "v") { print "\t\t" l_cmd_c_name[c] "(t, t->t_curnum, t->t_nums);"; } else { printf "\t\t%s(t", l_cmd_c_name[c]; split(l_cmd_args[c], args, " "); for (a = 1; args[a] != ""; a++) { if (args[a] == "n") printf ", (t->t_curnum < %d || t->t_nums[%d] == 0) ? 1 : t->t_nums[%d]", a, (a - 1), (a - 1); else if (args[a] == "r") printf ", t->t_curnum < %d ? 0 : t->t_nums[%d]", a, (a - 1); else die("Invalid argument type: " args[a]); } print ");"; } print "\t\tbreak;"; } for (pc in l_prefix_parent) { if (l_prefix_parent[pc] != p) continue; print "\tcase '" cchar(l_prefix_suffix[pc]) "':"; print "\t\tteken_state_switch(t, " l_prefix_name[pc] ");"; print "\t\treturn;"; } print "\tdefault:"; if (l_prefix_name[p] == "teken_state_init") { print "\t\tteken_subr_regular_character(t, c);"; } else { print "\t\tteken_printf(\"Unsupported sequence in " l_prefix_name[p] ": %u\\n\", (unsigned int)c);"; } print "\t\tbreak;"; print "\t}"; if (l_prefix_name[p] != "teken_state_init") { print ""; print "\tt->t_last = 0;"; print "\tteken_state_switch(t, teken_state_init);"; } print "}"; } } diff --git a/sys/teken/libteken/Makefile b/sys/teken/libteken/Makefile index 20ec0aff0faa..55ffc7d92a63 100644 --- a/sys/teken/libteken/Makefile +++ b/sys/teken/libteken/Makefile @@ -1,38 +1,37 @@ -# $FreeBSD$ LIB= teken SHLIB_MAJOR= 0 CFLAGS+=-I. SRCDIR= ${.CURDIR}/.. .PATH: ${SRCDIR} SRCS= teken.c teken_state.h INCS= teken.h CLEANFILES=teken_state.h MAN= teken.3 MLINKS= teken.3 teken_256to8.3 \ teken.3 teken_get_curattr.3 \ teken.3 teken_get_cursor.3 \ teken.3 teken_get_defattr.3 \ teken.3 teken_get_defattr_cons25.3 \ teken.3 teken_get_sequence.3 \ teken.3 teken_get_winsize.3 \ teken.3 teken_init.3 \ teken.3 teken_input.3 \ teken.3 teken_set_8bit.3 \ teken.3 teken_set_cons25.3 \ teken.3 teken_set_curattr.3 \ teken.3 teken_set_cursor.3 \ teken.3 teken_set_defattr.3 \ teken.3 teken_set_winsize.3 teken_state.h: ${SRCDIR}/gensequences ${SRCDIR}/sequences awk -f ${SRCDIR}/gensequences ${SRCDIR}/sequences > ${.TARGET} VERSION_DEF= ${.CURDIR}/../../../lib/libc/Versions.def SYMBOL_MAPS= ${.CURDIR}/Symbol.map .include diff --git a/sys/teken/sequences b/sys/teken/sequences index 921dcce56692..55434848ec58 100644 --- a/sys/teken/sequences +++ b/sys/teken/sequences @@ -1,119 +1,118 @@ #- # Copyright (c) 2008-2009 Ed Schouten # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # File format is as follows: # Abbr Abbreviation of sequence name # Name Sequence name (will be converted to C function name) # Sequence Bytes that form the sequence # Args Standard value of arguments passed to this sequence # - `n' non-zero number (0 gets converted to 1) # - `r' regular numeric argument # - `v' means a variable number of arguments # Abbr Name Sequence Args CBT Cursor Backward Tabulation ^[ [ Z n CHT Cursor Forward Tabulation ^[ [ I n CNL Cursor Next Line ^[ [ E n CPL Cursor Previous Line ^[ [ F n CPR Cursor Position Report ^[ [ n r CUB Cursor Backward ^[ [ D n CUD Cursor Down ^[ [ B n CUD Cursor Down ^[ [ e n CUF Cursor Forward ^[ [ C n CUF Cursor Forward ^[ [ a n CUP Cursor Position ^[ [ H n n CUP Cursor Position ^[ [ f n n CUU Cursor Up ^[ [ A n DA1 Primary Device Attributes ^[ [ c r DA2 Secondary Device Attributes ^[ [ > c r DC Delete character ^[ [ P n DCS Device Control String ^[ P DECALN Alignment test ^[ # 8 DECDHL Double Height Double Width Line Top ^[ # 3 DECDHL Double Height Double Width Line Bottom ^[ # 4 DECDWL Single Height Double Width Line ^[ # 6 DECKPAM Keypad application mode ^[ = DECKPNM Keypad numeric mode ^[ > DECRC Restore cursor ^[ 8 DECRC Restore cursor ^[ [ u DECRM Reset DEC mode ^[ [ ? l r DECSC Save cursor ^[ 7 DECSC Save cursor ^[ [ s DECSCUSR Set Cursor Style ^[ [ SP q r DECSM Set DEC mode ^[ [ ? h r DECSTBM Set top and bottom margins ^[ [ r r r DECSWL Single Height Single Width Line ^[ # 5 DL Delete line ^[ [ M n DSR Device Status Report ^[ [ ? n r ECH Erase character ^[ [ X n ED Erase display ^[ [ J r EL Erase line ^[ [ K r G0SCS0 G0 SCS Special Graphics ^[ ( 0 G0SCS1 G0 SCS US ASCII ^[ ( 1 G0SCS2 G0 SCS Special Graphics ^[ ( 2 G0SCSA G0 SCS UK National ^[ ( A G0SCSB G0 SCS US ASCII ^[ ( B G1SCS0 G1 SCS Special Graphics ^[ ) 0 G1SCS1 G1 SCS US ASCII ^[ ) 1 G1SCS2 G1 SCS Special Graphics ^[ ) 2 G1SCSA G1 SCS UK National ^[ ) A G1SCSB G1 SCS US ASCII ^[ ) B HPA Horizontal Position Absolute ^[ [ G n HPA Horizontal Position Absolute ^[ [ ` n HTS Horizontal Tab Set ^[ H ICH Insert character ^[ [ @ n IL Insert line ^[ [ L n IND Index ^[ D NEL Next line ^[ E OSC Operating System Command ^[ ] RI Reverse index ^[ M RIS Reset to Initial State ^[ c RM Reset Mode ^[ [ l r SD Pan Up ^[ [ T n SGR Set Graphic Rendition ^[ [ m v SM Set Mode ^[ [ h r ST String Terminator ^[ \\ SU Pan Down ^[ [ S n TBC Tab Clear ^[ [ g r VPA Vertical Position Absolute ^[ [ d n # Cons25 compatibility sequences C25BLPD Cons25 set bell pitch duration ^[ [ = B r r C25BORD Cons25 set border ^[ [ = A r C25DBG Cons25 set default background ^[ [ = G r C25DFG Cons25 set default foreground ^[ [ = F r C25GCS Cons25 set global cursor shape ^[ [ = C v C25LCT Cons25 set local cursor type ^[ [ = S r C25MODE Cons25 set terminal mode ^[ [ = T r C25SGR Cons25 set graphic rendition ^[ [ x r r C25VTSW Cons25 switch virtual terminal ^[ [ z r # VT52 compatibility #DECID VT52 DECID ^[ Z # ECMA-48 REP Repeat last graphic char ^[ [ b n diff --git a/sys/teken/stress/Makefile b/sys/teken/stress/Makefile index 9a0257f02760..6f4785d35856 100644 --- a/sys/teken/stress/Makefile +++ b/sys/teken/stress/Makefile @@ -1,7 +1,6 @@ -# $FreeBSD$ PROG= teken_stress LDADD= -lteken MAN= .include diff --git a/sys/tests/runtest/Makefile b/sys/tests/runtest/Makefile index d75dbfb063a3..ecf9affcc673 100644 --- a/sys/tests/runtest/Makefile +++ b/sys/tests/runtest/Makefile @@ -1,8 +1,7 @@ # -# $FreeBSD$ # PROG= runtest MAN= SRCS= runtest.c .include diff --git a/sys/tools/acpi_quirks2h.awk b/sys/tools/acpi_quirks2h.awk index eba42dc06e2a..b705ac477402 100644 --- a/sys/tools/acpi_quirks2h.awk +++ b/sys/tools/acpi_quirks2h.awk @@ -1,189 +1,188 @@ #!/usr/bin/awk -f # -# $FreeBSD$ #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2004 Mark Santcroos # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # BEGIN { OUTPUT="acpi_quirks.h" } # Print header and id NR == 1 { VERSION = $0; gsub("\^# ", "", VERSION) gsub("\\$", "", VERSION) printf("/*\n") > OUTPUT; printf(" * THIS FILE IS AUTOMAGICALLY GENERATED. DO NOT EDIT.\n") \ > OUTPUT; printf(" *\n") > OUTPUT; printf(" * Generated from:\n") > OUTPUT; printf(" * %s\n", VERSION) > OUTPUT; printf(" */\n\n") > OUTPUT; } # Ignore comments and empty lines /^#/, NF == 0 { } # # NAME field: this is the first line of every entry # $1 == "name:" { ENTRY_NAME = $2; printf("const struct acpi_q_rule %s[] = {\n", ENTRY_NAME) > OUTPUT; } # # OEM field # $1 == "oem:" { LENGTH = length(); # Parse table type to match TABLE = $2; # Parse OEM ID M = match ($0, /\"[^\"]*\"/); OEM_ID = substr($0, M, RLENGTH); # Parse OEM Table ID ANCHOR = LENGTH - (M + RLENGTH - 1); REMAINDER = substr($0, M + RLENGTH, ANCHOR); M = match (REMAINDER, /\"[^\"]*\"/); OEM_TABLE_ID = substr(REMAINDER, M, RLENGTH); printf("\t{ \"%s\", OEM, {%s}, {%s} },\n", TABLE, OEM_ID, OEM_TABLE_ID) > OUTPUT; } # # CREATOR field # $1 == "creator:" { # Parse table type to match TABLE = $2; M = match ($0, /\"[^\"]*\"/); CREATOR = substr($0, M, RLENGTH); printf("\t{ \"%s\", CREATOR, {%s} },\n", TABLE, CREATOR) > OUTPUT; } # # OEM REVISION field # $1 == "oem_rev:" { TABLE = $2; SIGN = $3; VALUE = $4; # Parse operand OPERAND = trans_sign(SIGN); printf("\t{ \"%s\", OEM_REV, {.op = %s}, {.rev = %s} },\n", TABLE, OPERAND, VALUE) > OUTPUT; } # # CREATOR REVISION field # $1 == "creator_rev:" { TABLE = $2; SIGN = $3; VALUE = $4; # Parse operand OPERAND = trans_sign(SIGN); printf("\t{ \"%s\", CREATOR_REV, {.op = %s}, {.rev = %s} },\n", TABLE, OPERAND, VALUE) > OUTPUT; } # # QUIRKS field: This is the last line of every entry # $1 == "quirks:" { printf("\t{ \"\" }\n};\n\n") > OUTPUT; QUIRKS = $0; sub(/^quirks:[ ]*/ , "", QUIRKS); QUIRK_COUNT++; QUIRK_LIST[QUIRK_COUNT] = QUIRKS; QUIRK_NAME[QUIRK_COUNT] = ENTRY_NAME; } # # All information is gathered, now create acpi_quirks_table # END { # Header printf("const struct acpi_q_entry acpi_quirks_table[] = {\n") \ > OUTPUT; # Array of all quirks for (i = 1; i <= QUIRK_COUNT; i++) { printf("\t{ %s, %s },\n", QUIRK_NAME[i], QUIRK_LIST[i]) \ > OUTPUT; } # Footer printf("\t{ NULL, 0 }\n") > OUTPUT; printf("};\n") > OUTPUT; exit(0); } # # Translate math SIGN into verbal OPERAND # function trans_sign(TMP_SIGN) { if (TMP_SIGN == "=") TMP_OPERAND = "OP_EQL"; else if (TMP_SIGN == "!=") TMP_OPERAND = "OP_NEQ"; else if (TMP_SIGN == "<=") TMP_OPERAND = "OP_LEQ"; else if (TMP_SIGN == ">=") TMP_OPERAND = "OP_GEQ"; else if (TMP_SIGN == ">") TMP_OPERAND = "OP_GTR"; else if (TMP_SIGN == "<") TMP_OPERAND = "OP_LES"; else { printf("error: unknown sign: " TMP_SIGN "\n"); exit(1); } return (TMP_OPERAND); } diff --git a/sys/tools/arm_kernel_boothdr.awk b/sys/tools/arm_kernel_boothdr.awk index 33081365b5d1..dcc65ab40b66 100644 --- a/sys/tools/arm_kernel_boothdr.awk +++ b/sys/tools/arm_kernel_boothdr.awk @@ -1,190 +1,189 @@ #!/usr/bin/awk -f #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright 2019 Ian Lepore # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ BEGIN { # Init global vars. gBytesOut = 0; # How many output bytes we've written so far gKernbase = 0; # Address of first byte of loaded kernel image gStart = 0; # Address of _start symbol gStartOff = 0; # Offset of _start symbol from start of image gEnd = 0; # Address of _end symbol gEndOff = 0; # Offset of _end symbol from start of image # The type of header we're writing is set using -v hdrtype= on # the command line, ensure we got a valid value for it. if (hdrtype != "v7jump" && hdrtype != "v8jump" && hdrtype != "v8booti") { print "arm_kernel_boothdr.awk: " \ "missing or invalid '-v hdrtype=' argument" >"/dev/stderr" gHdrType = "error_reported" exit 1 } gHdrType = hdrtype } function addr_to_offset(addr) { # Turn an address into an offset from the start of the loaded image. return addr % gKernbase } function hexstr_to_num(str) { # Prepend a 0x onto the string, then coerce it to a number by doing # arithmetic with it, which makes awk run it through strtod(), # which handles hex numbers that have a 0x prefix. return 0 + ("0x" str) } function write_le32(num) { for (i = 0; i < 4; i++) { printf("%c", num % 256); num /= 256 } gBytesOut += 4 } function write_le64(num) { for (i = 0; i < 8; i++) { printf("%c", num % 256); num /= 256 } gBytesOut += 8 } function write_padding() { # Write enough padding bytes so that the header fills all the # remaining space before the _start symbol. while (gBytesOut++ < gStartOff) { printf("%c", 0); } } function write_v7jump() { # Write the machine code for "b _start"... # 0xea is armv7 "branch always" and the low 24 bits is the signed # offset from the current PC, in words. We know the gStart offset # is in the first 2mb, so it'll fit in 24 bits. write_le32(hexstr_to_num("ea000000") + (gStartOff / 4) - 2) } function write_v8jump() { # Write the machine code for "b _start"... # 0x14 is armv8 "branch always" and the low 26 bits is the signed # offset from the current PC, in words. We know the gStart offset # is in the first 2mb, so it'll fit in 26 bits. write_le32(hexstr_to_num("14000000") + (gStartOff / 4)) } function write_v8booti() { # We are writing this struct... # # struct Image_header { # uint32_t code0; /* Executable code */ # uint32_t code1; /* Executable code */ # uint64_t text_offset; /* Image load offset, LE */ # uint64_t image_size; /* Effective Image size, LE */ # uint64_t flags; /* Kernel flags, LE */ # uint64_t res1[3]; /* reserved */ # uint32_t magic; /* Magic number */ # uint32_t res2; # }; # # We write 'b _start' into code0. The image size is everything from # the start of the loaded image to the offset given by the _end symbol. write_v8jump() # code0 write_le32(0) # code1 write_le64(0) # text_offset write_le64(gEndOff) # image_size write_le64(hexstr_to_num("8")) # flags write_le64(0) # res1[0] write_le64(0) # res1[1] write_le64(0) # res1[2] write_le32(hexstr_to_num("644d5241")) # magic (LE "ARMd" (d is 0x64)) write_le32(0) # res2 } /kernbase/ { # If the symbol name is exactly "kernbase" save its address. if ($3 == "kernbase") { gKernbase = hexstr_to_num($1) } } /_start/ { # If the symbol name is exactly "_start" save its address. if ($3 == "_start") { gStart = hexstr_to_num($1) } } /_end/ { # If the symbol name is exactly "_end" remember its value. if ($3 == "_end") { gEnd = hexstr_to_num($1) } } END { # Note that this function runs even if BEGIN calls exit(1)! if (gHdrType == "error_reported") { exit 1 } # Make sure we got all three required symbols. if (gKernbase == 0 || gStart == 0 || gEnd == 0) { print "arm_kernel_boothdr.awk: " \ "missing kernbase/_start/_end symbol(s)" >"/dev/stderr" exit 1 } gStartOff = addr_to_offset(gStart) gEndOff = addr_to_offset(gEnd) if (gHdrType == "v7jump") { write_v7jump() } else if (gHdrType == "v8jump") { write_v8jump() } else if (gHdrType == "v8booti") { write_v8booti() } write_padding() } diff --git a/sys/tools/bus_macro.sh b/sys/tools/bus_macro.sh index 3f7660376d8d..62f348b0422d 100644 --- a/sys/tools/bus_macro.sh +++ b/sys/tools/bus_macro.sh @@ -1,71 +1,70 @@ #!/bin/sh # # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2004-2005 Poul-Henning Kamp. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # # Generate the convenience macros at the bottom of sys/bus.h # macro () { n=${1} shift echo -n "#define bus_${n}(r" for i do echo -n ", ${i}" done echo ") \\" echo -n " bus_space_${n}((r)->r_bustag, (r)->r_bushandle" for i do echo -n ", (${i})" done echo ")" } macro barrier o l f for w in 1 2 4 8 do # macro copy_region_$w so dh do c # macro copy_region_stream_$w ? macro poke_$w o v macro peek_$w o vp for s in "" stream_ do macro read_$s$w o macro read_multi_$s$w o d c macro read_region_$s$w o d c macro set_multi_$s$w o v c macro set_region_$s$w o v c macro write_$s$w o v macro write_multi_$s$w o d c macro write_region_$s$w o d c done done diff --git a/sys/tools/embed_mfs.sh b/sys/tools/embed_mfs.sh index 105abeb89cd6..9bf5e52202b1 100644 --- a/sys/tools/embed_mfs.sh +++ b/sys/tools/embed_mfs.sh @@ -1,94 +1,93 @@ #!/bin/sh # # SPDX-License-Identifier: BSD-2-Clause # # Copyright (C) 2008 The FreeBSD Project. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # # Embed an MFS image into the kernel body or the loader body (expects space # reserved via MD_ROOT_SIZE (kernel) or MD_IMAGE_SIZE (loader)) # # $1: kernel or loader filename # $2: MFS image filename # if [ $# -ne 2 ]; then echo "usage: $(basename $0) target mfs_image" exit 0 fi if [ ! -w "$1" ]; then echo $1 not writable exit 1 fi mfs_size=`stat -f '%z' $2 2> /dev/null` # If we can't determine MFS image size - bail. if [ -z ${mfs_size} ]; then echo "Can't determine MFS image size" exit 1 fi err_no_mfs="Can't locate mfs section within " if file -b $1 | grep -q '^ELF ..-bit .SB executable'; then sec_info=`elfdump -c $1 2> /dev/null | grep -A 5 -E "sh_name: oldmfs$"` # If we can't find the mfs section within the given kernel - bail. if [ -z "${sec_info}" ]; then echo "${err_no_mfs} $1" exit 1 fi sec_size=`echo "${sec_info}" | awk '/sh_size/ {print $2}' 2>/dev/null` sec_start=`echo "${sec_info}" | \ awk '/sh_offset/ {print $2}' 2>/dev/null` else #try to find start byte of MFS start flag otherwise - bail. sec_start=`strings -at d $1 | grep "MFS Filesystem goes here"` || \ { echo "${err_no_mfs} $1"; exit 1; } sec_start=`echo ${sec_start} | awk '{print $1}'` #try to find start byte of MFS end flag otherwise - bail. sec_end=`strings -at d $1 | \ grep "MFS Filesystem had better STOP here"` || \ { echo "${err_no_mfs} $1"; exit 1; } sec_end=`echo ${sec_end} | awk '{print $1}'` #calculate MFS section size sec_size=`expr ${sec_end} - ${sec_start}` fi # If the mfs section size is smaller than the mfs image - bail. if [ ${sec_size} -lt ${mfs_size} ]; then echo "MFS image too large" exit 1 fi # Dump the mfs image into the mfs section dd if=$2 ibs=8192 of=$1 obs=${sec_start} oseek=1 conv=notrunc 2> /dev/null && \ echo "MFS image embedded into $1" && exit 0 diff --git a/sys/tools/fdt/embed_dtb.sh b/sys/tools/fdt/embed_dtb.sh index edcaf3f29244..b15b26404aa7 100755 --- a/sys/tools/fdt/embed_dtb.sh +++ b/sys/tools/fdt/embed_dtb.sh @@ -1,45 +1,44 @@ #!/bin/sh # # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2010 The FreeBSD Foundation # # This software was developed by Semihalf under sponsorship from # the FreeBSD Foundation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # $1: kernel filename # $2: device tree blob filename dtbsize=`ls -l $2 | awk '{print $5}'` obs=`strings -at d $1 | grep "Device Tree Blob STARTS here" | awk '{print $1}'` eol=`strings -at d $1 | grep "Device Tree Blob STOPS here" | awk '{print $1}'` sz=$((eol - obs)); if [ $sz -lt $dtbsize ] then echo "Selected blob is too big to reembed. Please rebuild the kernel." exit fi dd if=$2 ibs=${dtbsize} of=$1 obs=${obs} oseek=1 conv=notrunc 2> /dev/null diff --git a/sys/tools/fdt/make_dtb.sh b/sys/tools/fdt/make_dtb.sh index 728faa02b904..8cefb6c5704b 100755 --- a/sys/tools/fdt/make_dtb.sh +++ b/sys/tools/fdt/make_dtb.sh @@ -1,27 +1,26 @@ #!/bin/sh # -# $FreeBSD$ # Script generates dtb file ($3) from dts source ($2) in build tree S ($1) S=$1 dts="$2" dtb_path=$3 if [ -z "$dts" ]; then echo "No DTS specified" exit 1 fi if [ -z "${MACHINE}" ]; then MACHINE=$(uname -m) fi : "${DTC:=dtc}" : "${ECHO:=echo}" : "${CPP:=cpp}" for d in ${dts}; do dtb="${dtb_path}/$(basename "$d" .dts).dtb" ${CPP} -P -x assembler-with-cpp -I "$S/dts/include" -I "$S/contrib/device-tree/include" -I "$S/dts/${MACHINE}" -I "$S/contrib/device-tree/src/${MACHINE}" -I "$S/contrib/device-tree/src/" -include "$d" -include "$S/dts/freebsd-compatible.dts" /dev/null | ${DTC} -@ -O dtb -o "$dtb" -b 0 -p 1024 -i "$S/dts/${MACHINE}" -i "$S/contrib/device-tree/src/${MACHINE}" -i "$S/contrib/device-tree/src/" done diff --git a/sys/tools/fdt/make_dtbh.sh b/sys/tools/fdt/make_dtbh.sh index c2d41b6b36d1..300d93f7a07b 100755 --- a/sys/tools/fdt/make_dtbh.sh +++ b/sys/tools/fdt/make_dtbh.sh @@ -1,8 +1,7 @@ #!/bin/sh # -# $FreeBSD$ # Script generates a $2/fdt_static_dtb.h file. dtb_base_name=`basename $1 .dts` echo '#define FDT_DTB_FILE "'${dtb_base_name}.dtb'"' > $2/fdt_static_dtb.h diff --git a/sys/tools/fdt/make_dtbo.sh b/sys/tools/fdt/make_dtbo.sh index 46066019751f..b733afb8e166 100755 --- a/sys/tools/fdt/make_dtbo.sh +++ b/sys/tools/fdt/make_dtbo.sh @@ -1,27 +1,26 @@ #!/bin/sh # -# $FreeBSD$ # Script generates dtbo file ($3) from dtso source ($2) in build tree S ($1) S=$1 dtso="$2" dtbo_path=$3 if [ -z "$dtso" ]; then echo "No DTS overlays specified" exit 1 fi if [ -z "${MACHINE}" ]; then MACHINE=$(uname -m) fi : "${DTC:=dtc}" : "${ECHO:=echo}" : "${CPP:=cpp}" for d in ${dtso}; do dtb="${dtbo_path}/$(basename "$d" .dtso).dtbo" ${CPP} -P -x assembler-with-cpp -I "$S/contrib/device-tree/include" -I "$S/dts/${MACHINE}" -I "$S/contrib/device-tree/src/${MACHINE}" -include "$d" /dev/null | ${DTC} -@ -O dtb -o "$dtb" -i "$S/dts/${MACHINE}" -i "$S/contrib/device-tree/src/${MACHINE}" done diff --git a/sys/tools/fw_stub.awk b/sys/tools/fw_stub.awk index 7e4c482a3a37..f4f1bf22ac73 100644 --- a/sys/tools/fw_stub.awk +++ b/sys/tools/fw_stub.awk @@ -1,239 +1,238 @@ #!/usr/bin/awk -f #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2006 Max Laier. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS `AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # # Script to generate module .c file from a list of firmware images # function usage () { print "usage: fw_stub * [-l name] [-m modname] [-c outfile]"; exit 1; } # These are just for convenience ... function printc(s) { if (opt_c) print s > ctmpfilename; else print s > "/dev/stdout"; } BEGIN { # # Process the command line. # num_files = 0; for (i = 1; i < ARGC; i++) { if (ARGV[i] ~ /^-/) { # # awk doesn't have getopt(), so we have to do it ourselves. # This is a bit clumsy, but it works. # for (j = 2; j <= length(ARGV[i]); j++) { o = substr(ARGV[i], j, 1); if (o == "c") { if (length(ARGV[i]) > j) { opt_c = substr(ARGV[i], j + 1); break; } else { if (++i < ARGC) opt_c = ARGV[i]; else usage(); } } else if (o == "m") { if (length(ARGV[i]) > j) { opt_m = substr(ARGV[i], j + 1); break; } else { if (++i < ARGC) opt_m = ARGV[i]; else usage(); } } else if (o == "l") { if (length(ARGV[i]) > j) { opt_l = substr(ARGV[i], j + 1); break; } else { if (++i < ARGC) opt_l = ARGV[i]; else usage(); } } else usage(); } } else { split(ARGV[i], curr, ":"); filenames[num_files] = curr[1]; if (length(curr[2]) > 0) shortnames[num_files] = curr[2]; else shortnames[num_files] = curr[1]; if (length(curr[3]) > 0) versions[num_files] = int(curr[3]); else versions[num_files] = 0; num_files++; } } if (!num_files || !opt_m) usage(); cfilename = opt_c; ctmpfilename = cfilename ".tmp"; modname = opt_m; gsub(/[-\.]/, "_", modname); # Avoid a literal generated file tag here. generated = "@" "generated"; printc("/*\ * Automatically " generated "\ */"); printc("#include "); printc("#include "); printc("#include "); printc("#include "); printc("#include "); printc("#include "); printc("#include \n"); if (opt_l) { printc("static long " opt_l "_license_ack = 0;"); } for (file_i = 0; file_i < num_files; file_i++) { symb = filenames[file_i]; # '-', '.', '/', and '@' are converted to '_' gsub(/-|\.|\/|@/, "_", symb); printc("extern char _binary_" symb "_start[], _binary_" symb "_end[];"); } printc("\nstatic int\n"\ modname "_fw_modevent(module_t mod, int type, void *unused)\ {\ const struct firmware *fp;"); if (num_files > 1) printc("\tconst struct firmware *parent;"); printc("\tint error;\ switch (type) {\ case MOD_LOAD:\n"); if (opt_l) { printc("\ TUNABLE_LONG_FETCH(\"legal." opt_l ".license_ack\", &" opt_l "_license_ack);\ if (!" opt_l "_license_ack) {\ printf(\"" opt_m ": You need to read the LICENSE file in /usr/share/doc/legal/" opt_l ".LICENSE.\\n\");\ printf(\"" opt_m ": If you agree with the license, set legal." opt_l ".license_ack=1 in /boot/loader.conf.\\n\");\ return(EPERM);\ }\n"); } for (file_i = 0; file_i < num_files; file_i++) { short = shortnames[file_i]; symb = filenames[file_i]; version = versions[file_i]; # '-', '.', '/', and '@' are converted to '_' gsub(/-|\.|\/|@/, "_", symb); reg = "\t\tfp = "; reg = reg "firmware_register(\"" short "\", _binary_" symb "_start , "; reg = reg "(size_t)(_binary_" symb "_end - _binary_" symb "_start), "; reg = reg version ", "; if (file_i == 0) reg = reg "NULL);"; else reg = reg "parent);"; printc(reg); printc("\t\tif (fp == NULL)"); printc("\t\t\tgoto fail_" file_i ";"); if (file_i == 0 && num_files > 1) printc("\t\tparent = fp;"); } printc("\t\treturn (0);"); for (file_i = num_files - 1; file_i > 0; file_i--) { printc("fail_" file_i ":") printc("\t\t(void)firmware_unregister(\"" shortnames[file_i - 1] "\");"); } printc("\tfail_0:"); printc("\t\treturn (ENXIO);"); printc("\tcase MOD_UNLOAD:"); for (file_i = 1; file_i < num_files; file_i++) { printc("\t\terror = firmware_unregister(\"" shortnames[file_i] "\");"); printc("\t\tif (error)"); printc("\t\t\treturn (error);"); } printc("\t\terror = firmware_unregister(\"" shortnames[0] "\");"); printc("\t\treturn (error);\ }\ return (EINVAL);\ }\ \ static moduledata_t " modname "_fw_mod = {\ \"" modname "_fw\",\ " modname "_fw_modevent,\ 0\ };\ DECLARE_MODULE(" modname "_fw, " modname "_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);\ MODULE_VERSION(" modname "_fw, 1);\ MODULE_DEPEND(" modname "_fw, firmware, 1, 1, 1);\ "); if (opt_c) if ((rc = system("mv -f " ctmpfilename " " cfilename))) { print "'mv -f " ctmpfilename " " cfilename "' failed: " rc \ > "/dev/stderr"; exit 1; } exit 0; } diff --git a/sys/tools/makeobjops.awk b/sys/tools/makeobjops.awk index 4d764064d6b1..ea0bef3404b8 100644 --- a/sys/tools/makeobjops.awk +++ b/sys/tools/makeobjops.awk @@ -1,535 +1,534 @@ #!/usr/bin/awk -f #- # SPDX-License-Identifier: BSD-3-Clause # # Copyright (c) 1992, 1993 # The Regents of the University of California. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. Neither the name of the University nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # From @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93 # From @(#)makedevops.sh 1.1 1998/06/14 13:53:12 dfr Exp $ # From @(#)makedevops.sh ?.? 1998/10/05 # From src/sys/kern/makedevops.pl,v 1.12 1999/11/22 14:40:04 n_hibma Exp # From src/sys/kern/makeobjops.pl,v 1.8 2001/11/16 02:02:42 joe Exp # -# $FreeBSD$ # # Script to produce kobj front-end sugar. # function usage () { print "usage: makeobjops.awk [-d] [-p] [-l ] [-c|-h]"; print "where -c produce only .c files"; print " -h produce only .h files"; print " -p use the path component in the source file for destination dir"; print " -l set line width for output files [80]"; print " -d switch on debugging"; exit 1; } function warn (msg) { print "makeobjops.awk:", msg > "/dev/stderr"; } function warnsrc (msg) { warn(src ":" lineno ": " msg); } function debug (msg) { if (opt_d) warn(msg); } function die (msg) { warn(msg); exit 1; } # These are just for convenience ... function printc(s) {if (opt_c) print s > ctmpfilename;} function printh(s) {if (opt_h) print s > htmpfilename;} # # If a line exceeds maxlength, split it into multiple # lines at commas. Subsequent lines are indented by # the specified number of spaces. # # In other words: Lines are split by replacing ", " # by ",\n" plus indent spaces. # function format_line (line, maxlength, indent) { rline = ""; while (length(line) > maxlength) { # # Find the rightmost ", " so that the part # to the left of it is just within maxlength. # If there is none, give up and leave it as-is. # if (!match(substr(line, 1, maxlength + 1), /^.*, /)) break; rline = rline substr(line, 1, RLENGTH - 1) "\n"; line = sprintf("%*s", indent, "") substr(line, RLENGTH + 1); } return rline line; } # # Join an array into a string. # function join (separator, array, num) { _result = "" if (num) { while (num > 1) _result = separator array[num--] _result; _result = array[1] _result; } return _result; } # # Execute a system command and report if it failed. # function system_check (cmd) { if ((rc = system(cmd))) warn(cmd " failed (" rc ")"); } # # Handle "INTERFACE" line. # function handle_interface () { intname = $2; sub(/;$/, "", intname); if (intname !~ /^[a-z_][a-z0-9_]*$/) { debug($0); warnsrc("Invalid interface name '" intname "', use [a-z_][a-z0-9_]*"); error = 1; return; } if (!/;[ ]*$/) warnsrc("Semicolon missing at end of line, no problem"); debug("Interface " intname); printh("#ifndef _" intname "_if_h_"); printh("#define _" intname "_if_h_\n"); printc("#include \"" intname "_if.h\"\n"); } # # Pass doc comments through to the C file # function handle_doc () { doc = "" while (!/\*\//) { doc = doc $0 "\n"; getline < src; lineno++; } doc = doc $0 "\n"; return doc; } # # Handle "CODE" and "HEADER" sections. # Returns the code as-is. # function handle_code () { code = "\n"; getline < src; indent = $0; sub(/[^ ].*$/, "", indent); # find the indent used while (!/^}/) { sub("^" indent, ""); # remove the indent code = code $0 "\n"; getline < src; lineno++;; } return code; } # # Handle "METHOD" and "STATICMETHOD" sections. # function handle_method (static, doc) { # # Get the return type and function name and delete that from # the line. What is left is the possibly first function argument # if it is on the same line. # if (!intname) { warnsrc("No interface name defined"); error = 1; return; } sub(/^[^ ]+[ ]+/, ""); ret = $0; sub(/[ ]*\{.*$/, "", ret); name = ret; sub(/^.*[ ]/, "", name); # last element is name of method sub(/[ ]+[^ ]+$/, "", ret); # return type debug("Method: name=" name " return type=" ret); sub(/^[^\{]*\{[ ]*/, ""); if (!name || !ret) { debug($0); warnsrc("Invalid method specification"); error = 1; return; } if (name !~ /^[a-z_][a-z_0-9]*$/) { warnsrc("Invalid method name '" name "', use [a-z_][a-z0-9_]*"); error = 1; return; } if (methods[name]) { warnsrc("Duplicate method name"); error = 1; return; } methods[name] = name; line = $0; while (line !~ /\}/ && (getline < src) > 0) { line = line " " $0; lineno++ } default_function = ""; if (!match(line, /\};?/)) { warnsrc("Premature end of file"); error = 1; return; } extra = substr(line, RSTART + RLENGTH); if (extra ~ /[ ]*DEFAULT[ ]*[a-zA-Z_][a-zA-Z_0-9]*[ ]*;/) { default_function = extra; sub(/.*DEFAULT[ ]*/, "", default_function); sub(/[; ]+.*$/, "", default_function); } else if (extra && opt_d) { # Warn about garbage at end of line. warnsrc("Ignored '" extra "'"); } sub(/\};?.*$/, "", line); # # Create a list of variables without the types prepended. # sub(/^[ ]+/, "", line); # remove leading ... sub(/[ ]+$/, "", line); # ... and trailing whitespace gsub(/[ ]+/, " ", line); # remove double spaces num_arguments = split(line, arguments, / *; */) - 1; delete varnames; # list of varnames num_varnames = 0; for (i = 1; i <= num_arguments; i++) { if (!arguments[i]) continue; # skip argument if argument is empty num_ar = split(arguments[i], ar, /[* ]+/); if (num_ar < 2) { # only 1 word in argument? warnsrc("no type for '" arguments[i] "'"); error = 1; return; } # Last element is name of variable. varnames[++num_varnames] = ar[num_ar]; } argument_list = join(", ", arguments, num_arguments); varname_list = join(", ", varnames, num_varnames); if (opt_d) { warn("Arguments: " argument_list); warn("Varnames: " varname_list); } mname = intname "_" name; # method name umname = toupper(mname); # uppercase method name firstvar = varnames[1]; if (default_function == "") default_function = "kobj_error_method"; # the method description printh("/** @brief Unique descriptor for the " umname "() method */"); printh("extern struct kobjop_desc " mname "_desc;"); # the method typedef printh("/** @brief A function implementing the " umname "() method */"); prototype = "typedef " ret " " mname "_t("; printh(format_line(prototype argument_list ");", line_width, length(prototype))); # Print out the method desc printc("struct kobjop_desc " mname "_desc = {"); printc("\t0, { &" mname "_desc, (kobjop_t)" default_function " }"); printc("};\n"); # Print out the method itself printh(doc); if (0) { # haven't chosen the format yet printh("static __inline " ret " " umname "(" varname_list ")"); printh("\t" join(";\n\t", arguments, num_arguments) ";"); } else { prototype = "static __inline " ret " " umname "("; printh(format_line(prototype argument_list ")", line_width, length(prototype))); } printh("{"); printh("\tkobjop_t _m;"); if (ret != "void") printh("\t" ret " rc;"); if (!static) firstvar = "((kobj_t)" firstvar ")"; if (prolog != "") printh(prolog); printh("\tKOBJOPLOOKUP(" firstvar "->ops," mname ");"); rceq = (ret != "void") ? "rc = " : ""; printh("\t" rceq "((" mname "_t *) _m)(" varname_list ");"); if (epilog != "") printh(epilog); if (ret != "void") printh("\treturn (rc);"); printh("}\n"); } # # Begin of the main program. # BEGIN { line_width = 80; gerror = 0; # # Process the command line. # num_files = 0; for (i = 1; i < ARGC; i++) { if (ARGV[i] ~ /^-/) { # # awk doesn't have getopt(), so we have to do it ourselves. # This is a bit clumsy, but it works. # for (j = 2; j <= length(ARGV[i]); j++) { o = substr(ARGV[i], j, 1); if (o == "c") opt_c = 1; else if (o == "h") opt_h = 1; else if (o == "p") opt_p = 1; else if (o == "d") opt_d = 1; else if (o == "l") { if (length(ARGV[i]) > j) { opt_l = substr(ARGV[i], j + 1); break; } else { if (++i < ARGC) opt_l = ARGV[i]; else usage(); } } else usage(); } } else if (ARGV[i] ~ /\.m$/) filenames[num_files++] = ARGV[i]; else usage(); } if (!num_files || !(opt_c || opt_h)) usage(); if (opt_p) debug("Will produce files in original not in current directory"); if (opt_l) { if (opt_l !~ /^[0-9]+$/ || opt_l < 1) die("Invalid line width '" opt_l "'"); line_width = opt_l; debug("Line width set to " line_width); } for (i = 0; i < num_files; i++) debug("Filename: " filenames[i]); for (file_i = 0; file_i < num_files; file_i++) { src = filenames[file_i]; cfilename = hfilename = src; sub(/\.m$/, ".c", cfilename); sub(/\.m$/, ".h", hfilename); if (!opt_p) { sub(/^.*\//, "", cfilename); sub(/^.*\//, "", hfilename); } debug("Processing from " src " to " cfilename " / " hfilename); ctmpfilename = cfilename ".tmp"; htmpfilename = hfilename ".tmp"; # Avoid a literal generated file tag here. generated = "@" "generated"; common_head = \ "/*\n" \ " * This file is " generated " automatically.\n" \ " * Do not modify anything in here by hand.\n" \ " *\n" \ " * Created from source file\n" \ " * " src "\n" \ " * with\n" \ " * makeobjops.awk\n" \ " *\n" \ " * See the source file for legal information\n" \ " */\n"; printc(common_head "\n" \ "#include \n" \ "#include \n" \ "#include \n" \ "#include "); printh(common_head); delete methods; # clear list of methods intname = ""; lineno = 0; error = 0; # to signal clean up and gerror setting lastdoc = ""; prolog = ""; epilog = ""; while (!error && (getline < src) > 0) { lineno++; # # Take special notice of include directives. # if (/^#[ ]*include[ ]+["<][^">]+[">]/) { incld = $0; sub(/^#[ ]*include[ ]+/, "", incld); debug("Included file: " incld); printc("#include " incld); } else if (/^#[ ]*if/ || /^#[ ]*else/ || /^#[ ]*elif/ || /^#[ ]*endif/) { printh($0); printc($0); } sub(/#.*/, ""); # remove comments sub(/^[ ]+/, ""); # remove leading ... sub(/[ ]+$/, ""); # ... and trailing whitespace if (/^$/) { # skip empty lines } else if (/^\/\*\*/) lastdoc = handle_doc(); else if (/^INTERFACE[ ]+[^ ;]*[ ]*;?[ ]*$/) { printh(lastdoc); lastdoc = ""; handle_interface(); } else if (/^CODE[ ]*{$/) printc(handle_code()); else if (/^HEADER[ ]*{$/) printh(handle_code()); else if (/^METHOD/) { handle_method(0, lastdoc); lastdoc = ""; prolog = ""; epilog = ""; } else if (/^STATICMETHOD/) { handle_method(1, lastdoc); lastdoc = ""; prolog = ""; epilog = ""; } else if (/^PROLOG[ ]*{$/) prolog = handle_code(); else if (/^EPILOG[ ]*{$/) epilog = handle_code(); else { debug($0); warnsrc("Invalid line encountered"); error = 1; } } # # Print the final '#endif' in the header file. # printh("#endif /* _" intname "_if_h_ */"); close (ctmpfilename); close (htmpfilename); if (error) { warn("Output skipped"); system_check("rm -f " ctmpfilename " " htmpfilename); gerror = 1; } else { if (opt_c) system_check("mv -f " ctmpfilename " " cfilename); if (opt_h) system_check("mv -f " htmpfilename " " hfilename); } } exit gerror; } diff --git a/sys/tools/miidevs2h.awk b/sys/tools/miidevs2h.awk index fba5049460d2..862af450bbe2 100644 --- a/sys/tools/miidevs2h.awk +++ b/sys/tools/miidevs2h.awk @@ -1,136 +1,135 @@ #! /usr/bin/awk -f # $NetBSD: devlist2h.awk,v 1.2 1998/09/05 14:42:06 christos Exp $ #- # SPDX-License-Identifier: BSD-2-Clause AND BSD-4-Clause # # Copyright (c) 1998 The NetBSD Foundation, Inc. # All rights reserved. # # This code is derived from software contributed to The NetBSD Foundation # by Christos Zoulas. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # # Copyright (c) 1995, 1996 Christopher G. Demetriou # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This model includes software developed by Christopher G. Demetriou. # This model includes software developed by Christos Zoulas # 4. The name of the author(s) may not be used to endorse or promote models # derived from this software without specific prior written permission # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ # function collectline(f, line) { oparen = 0 line = "" while (f <= NF) { if ($f == "#") { line = line "(" oparen = 1 f++ continue } if (oparen) { line = line $f if (f < NF) line = line " " f++ continue } line = line $f if (f < NF) line = line " " f++ } if (oparen) line = line ")" return line } BEGIN { nmodels = nouis = 0 hfile="miidevs.h" } NR == 1 { printf("/*\n") > hfile printf(" * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \ > hfile printf(" */\n") > hfile next } $1 == "oui" { nuios++ ouiindex[$2] = nouis; # record index for this name, for later. ouis[nouis, 1] = $2; # name ouis[nouis, 2] = $3; # id printf("#define\tMII_OUI_%s\t%s\t", ouis[nouis, 1], ouis[nouis, 2]) > hfile ouis[nouis, 3] = collectline(4, line) printf("/* %s */\n", ouis[nouis, 3]) > hfile next } $1 == "model" { nmodels++ models[nmodels, 1] = $2; # oui name models[nmodels, 2] = $3; # model id models[nmodels, 3] = $4; # id printf("#define\tMII_MODEL_%s_%s\t%s\n", models[nmodels, 1], models[nmodels, 2], models[nmodels, 3]) > hfile models[nmodels, 4] = collectline(5, line) printf("#define\tMII_STR_%s_%s\t\"%s\"\n", models[nmodels, 1], models[nmodels, 2], models[nmodels, 4]) > hfile next } { print $0 > hfile } diff --git a/sys/tools/pccarddevs2h.awk b/sys/tools/pccarddevs2h.awk index 923e63dbca83..f6b54addd7f5 100644 --- a/sys/tools/pccarddevs2h.awk +++ b/sys/tools/pccarddevs2h.awk @@ -1,174 +1,173 @@ #! /usr/bin/awk -f # $NetBSD: devlist2h.awk,v 1.3 1998/09/05 14:42:06 christos Exp $ -# $FreeBSD$ #- # SPDX-License-Identifier: BSD-2-Clause AND BSD-4-Clause # # Copyright (c) 1998 The NetBSD Foundation, Inc. # All rights reserved. # # This code is derived from software contributed to The NetBSD Foundation # by Christos Zoulas. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # # Copyright (c) 1995, 1996 Christopher G. Demetriou # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by Christopher G. Demetriou. # This product includes software developed by Christos Zoulas # 4. The name of the author(s) may not be used to endorse or promote products # derived from this software without specific prior written permission # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # function collectline(f, line) { oparen = 0 line = "" while (f <= NF) { if ($f == "#") { line = line "(" oparen = 1 f++ continue } if (oparen) { line = line $f if (f < NF) line = line " " f++ continue } line = line $f if (f < NF) line = line " " f++ } if (oparen) line = line ")" return line } BEGIN { nproducts = nvendors = 0 hfile="pccarddevs.h" } NR == 1 { VERSION = $0 gsub("\\$", "", VERSION) printf("/*\t\$FreeBSD\$\t*/\n\n") > hfile printf("/*\n") > hfile printf(" * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \ > hfile printf(" *\n") > hfile printf(" * generated from:\n") > hfile printf(" *\t%s\n", VERSION) > hfile printf(" */\n") > hfile next } $1 == "vendor" { nvendors++ vendorindex[$2] = nvendors; # record index for this name, for later. vendors[nvendors, 1] = $2; # name if ($3 == "-1") $3 = "0xffffffff"; vendors[nvendors, 2] = $3; # id printf("#define\tPCMCIA_VENDOR_%s\t%s\t", vendors[nvendors, 1], vendors[nvendors, 2]) > hfile vendors[nvendors, 3] = collectline(4, line) printf("/* %s */\n", vendors[nvendors, 3]) > hfile next } $1 == "product" { nproducts++ products[nproducts, 1] = $2; # vendor name if ($3 == "-1") $3 = "0xffffffff"; products[nproducts, 2] = $3; # product id products[nproducts, 3] = $4; # id f = 5; if ($4 == "{") { products[nproducts, 3] = "0xffffffff"; z = "{ " for (i = 0; i < 4; i++) { if (f <= NF) { gsub("&sp", " ", $f) gsub("&tab", "\t", $f) gsub("&nl", "\n", $f) z = z $f " " f++ } else { if (i == 3) z = z "NULL " else z = z "NULL, " } } products[nproducts, 4] = z $f f++ } else { products[nproducts, 4] = "{ NULL, NULL, NULL, NULL }" } printf("#define\tPCMCIA_CIS_%s_%s\t%s\n", products[nproducts, 1], products[nproducts, 2], products[nproducts, 4]) > hfile printf("#define\tPCMCIA_PRODUCT_%s_%s\t%s\n", products[nproducts, 1], products[nproducts, 2], products[nproducts, 3]) > hfile products[nproducts, 5] = collectline(f, line) printf("#define\tPCMCIA_STR_%s_%s\t\"%s\"\n", products[nproducts, 1], products[nproducts, 2], products[nproducts, 5]) > hfile next } { print $0 > hfile } diff --git a/sys/tools/sdiodevs2h.awk b/sys/tools/sdiodevs2h.awk index 873846aca722..1cddd6c1f5d0 100644 --- a/sys/tools/sdiodevs2h.awk +++ b/sys/tools/sdiodevs2h.awk @@ -1,265 +1,264 @@ #! /usr/bin/awk -f #- # $NetBSD: usb/devlist2h.awk,v 1.9 2001/01/18 20:28:22 jdolecek Exp $ -# $FreeBSD$ # # SPDX-License-Identifier: BSD-4-Clause # # Copyright (c) 1995, 1996 Christopher G. Demetriou # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by Christopher G. Demetriou. # 4. The name of the author may not be used to endorse or promote products # derived from this software without specific prior written permission # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # function usage() { print "usage: sdiodevs2h.awk [-d|-h]"; exit 1; } function header(file) { printf("/*\n") > file printf(" * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \ > file printf(" *\n") > file printf(" * generated from:\n") > file printf(" *\t%s\n", VERSION) > file printf(" */\n") > file } function vendor(hfile) { nvendors++ vendorindex[$2] = nvendors; # record index for this name, for later. vendors[nvendors, 1] = $2; # name vendors[nvendors, 2] = $3; # id if (hfile) printf("#define\tSDIO_VENDOR_%s\t%s\t", vendors[nvendors, 1], vendors[nvendors, 2]) > hfile i = 3; f = 4; # comments ocomment = oparen = 0 if (f <= NF) { if (hfile) printf("\t/* ") > hfile ocomment = 1; } while (f <= NF) { if ($f == "#") { if (hfile) printf("(") > hfile oparen = 1 f++ continue } if (oparen) { if (hfile) printf("%s", $f) > hfile if (f < NF && hfile) printf(" ") > hfile f++ continue } vendors[nvendors, i] = $f if (hfile) printf("%s", vendors[nvendors, i]) > hfile if (f < NF && hfile) printf(" ") > hfile i++; f++; } if (oparen && hfile) printf(")") > hfile if (ocomment && hfile) printf(" */") > hfile if (hfile) printf("\n") > hfile } function product(hfile) { nproducts++ products[nproducts, 1] = $2; # vendor name products[nproducts, 2] = $3; # product id products[nproducts, 3] = $4; # id if (hfile) printf("#define\tSDIO_PRODUCT_%s_%s\t%s\t", \ products[nproducts, 1], products[nproducts, 2], \ products[nproducts, 3]) > hfile i=4; f = 5; # comments ocomment = oparen = 0 if (f <= NF) { if (hfile) printf("\t/* ") > hfile ocomment = 1; } while (f <= NF) { if ($f == "#") { if (hfile) printf("(") > hfile oparen = 1 f++ continue } if (oparen) { if (hfile) printf("%s", $f) > hfile if (f < NF && hfile) printf(" ") > hfile f++ continue } products[nproducts, i] = $f if (hfile) printf("%s", products[nproducts, i]) > hfile if (f < NF && hfile) printf(" ") > hfile i++; f++; } if (oparen && hfile) printf(")") > hfile if (ocomment && hfile) printf(" */") > hfile if (hfile) printf("\n") > hfile } function dump_dfile(dfile) { printf("\n") > dfile printf("const struct sdio_knowndev sdio_knowndevs[] = {\n") > dfile for (i = 1; i <= nproducts; i++) { printf("\t{\n") > dfile printf("\t SDIO_VENDOR_%s, SDIO_PRODUCT_%s_%s,\n", products[i, 1], products[i, 1], products[i, 2]) > dfile printf("\t ") > dfile printf("0") > dfile printf(",\n") > dfile vendi = vendorindex[products[i, 1]]; printf("\t \"") > dfile j = 3; needspace = 0; while (vendors[vendi, j] != "") { if (needspace) printf(" ") > dfile printf("%s", vendors[vendi, j]) > dfile needspace = 1 j++ } printf("\",\n") > dfile printf("\t \"") > dfile j = 4; needspace = 0; while (products[i, j] != "") { if (needspace) printf(" ") > dfile printf("%s", products[i, j]) > dfile needspace = 1 j++ } printf("\",\n") > dfile printf("\t},\n") > dfile } for (i = 1; i <= nvendors; i++) { printf("\t{\n") > dfile printf("\t SDIO_VENDOR_%s, 0,\n", vendors[i, 1]) > dfile printf("\t SDIO_KNOWNDEV_NOPROD,\n") > dfile printf("\t \"") > dfile j = 3; needspace = 0; while (vendors[i, j] != "") { if (needspace) printf(" ") > dfile printf("%s", vendors[i, j]) > dfile needspace = 1 j++ } printf("\",\n") > dfile printf("\t NULL,\n") > dfile printf("\t},\n") > dfile } printf("\t{ 0, 0, 0, NULL, NULL, }\n") > dfile printf("};\n") > dfile } BEGIN { nproducts = nvendors = 0 # Process the command line for (i = 1; i < ARGC; i++) { arg = ARGV[i]; if (arg !~ /^-[dh]+$/ && arg !~ /devs$/) usage(); if (arg ~ /^-.*d/) dfile="sdiodevs_data.h" if (arg ~ /^-.*h/) hfile="sdiodevs.h" if (arg ~ /devs$/) srcfile = arg; } ARGC = 1; line=0; while ((getline < srcfile) > 0) { line++; if (line == 1) { VERSION = $0 gsub("\\$", "", VERSION) if (dfile) header(dfile) if (hfile) header(hfile) continue; } if ($1 == "vendor") { vendor(hfile) continue } if ($1 == "product") { product(hfile) continue } if ($0 == "") blanklines++ if (hfile) print $0 > hfile if (blanklines < 2 && dfile) print $0 > dfile } # print out the match tables if (dfile) dump_dfile(dfile) } diff --git a/sys/tools/sound/emu10k1-mkalsa.sh b/sys/tools/sound/emu10k1-mkalsa.sh index 2e78f5bd0499..c6a2ba462560 100644 --- a/sys/tools/sound/emu10k1-mkalsa.sh +++ b/sys/tools/sound/emu10k1-mkalsa.sh @@ -1,21 +1,20 @@ -# $FreeBSD$ GREP=${GREP:-grep} CC=${CC:-cc} AWK=${AWK:-awk} MV=${MV:=mv} RM=${RM:=rm} IN=$1 OUT=$2 trap "${RM} -f $OUT.tmp" EXIT $GREP -v '#include' $IN | \ $CC -E -D__KERNEL__ -dM - | \ $AWK -F"[ (]" ' /define/ { print "#ifndef " $2; print; print "#endif"; }' > $OUT.tmp ${MV} -f $OUT.tmp $OUT diff --git a/sys/tools/sound/feeder_eq_mkfilter.awk b/sys/tools/sound/feeder_eq_mkfilter.awk index 575e6cfe3926..21efe798644a 100644 --- a/sys/tools/sound/feeder_eq_mkfilter.awk +++ b/sys/tools/sound/feeder_eq_mkfilter.awk @@ -1,468 +1,467 @@ #!/usr/bin/awk -f # # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2008-2009 Ariff Abdullah # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # # # Biquad coefficients generator for Parametric Software Equalizer. Not as ugly # as 'feeder_rate_mkfilter.awk' # # Based on: # # "Cookbook formulae for audio EQ biquad filter coefficients" # by Robert Bristow-Johnson # # - http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt # # # Some basic Math functions. # function abs(x) { return (((x < 0) ? -x : x) + 0); } function fabs(x) { return (((x < 0.0) ? -x : x) + 0.0); } function floor(x, r) { r = int(x); if (r > x) r--; return (r + 0); } function pow(x, y) { return (exp(1.0 * y * log(1.0 * x))); } # # What the hell... # function shl(x, y) { while (y > 0) { x *= 2; y--; } return (x); } function feedeq_w0(fc, rate) { return ((2.0 * M_PI * fc) / (1.0 * rate)); } function feedeq_A(gain, A) { if (FEEDEQ_TYPE == FEEDEQ_TYPE_PEQ || FEEDEQ_TYPE == FEEDEQ_TYPE_SHELF) A = pow(10, gain / 40.0); else A = sqrt(pow(10, gain / 20.0)); return (A); } function feedeq_alpha(w0, A, QS) { if (FEEDEQ_TYPE == FEEDEQ_TYPE_PEQ) alpha = sin(w0) / (2.0 * QS); else if (FEEDEQ_TYPE == FEEDEQ_TYPE_SHELF) alpha = sin(w0) * 0.5 * sqrt(A + ((1.0 / A) * \ ((1.0 / QS) - 1.0)) + 2.0); else alpha = 0.0; return (alpha); } function feedeq_fx_floor(v, r) { if (fabs(v) < fabs(smallest)) smallest = v; if (fabs(v) > fabs(largest)) largest = v; r = floor((v * FEEDEQ_COEFF_ONE) + 0.5); if (r < INT32_MIN || r > INT32_MAX) printf("\n#error overflow v=%f, " \ "please reduce FEEDEQ_COEFF_SHIFT\n", v); return (r); } function feedeq_gen_biquad_coeffs(coeffs, rate, gain, \ w0, A, alpha, a0, a1, a2, b0, b1, b2) { w0 = feedeq_w0(FEEDEQ_TREBLE_SFREQ, 1.0 * rate); A = feedeq_A(1.0 * gain); alpha = feedeq_alpha(w0, A, FEEDEQ_TREBLE_SLOPE); if (FEEDEQ_TYPE == FEEDEQ_TYPE_PEQ) { b0 = 1.0 + (alpha * A); b1 = -2.0 * cos(w0); b2 = 1.0 - (alpha * A); a0 = 1.0 + (alpha / A); a1 = -2.0 * cos(w0); a2 = 1.0 - (alpha / A); } else if (FEEDEQ_TYPE == FEEDEQ_TYPE_SHELF) { b0 = A*((A+1.0)+((A-1.0)*cos(w0))+(2.0*sqrt(A)*alpha)); b1 = -2.0*A*((A-1.0)+((A+1.0)*cos(w0)) ); b2 = A*((A+1.0)+((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha)); a0 = (A+1.0)-((A-1.0)*cos(w0))+(2.0*sqrt(A)*alpha ); a1 = 2.0 * ((A-1.0)-((A+1.0)*cos(w0)) ); a2 = (A+1.0)-((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha ); } else b0 = b1 = b2 = a0 = a1 = a2 = 0.0; b0 /= a0; b1 /= a0; b2 /= a0; a1 /= a0; a2 /= a0; coeffs["treble", gain, 0] = feedeq_fx_floor(a0); coeffs["treble", gain, 1] = feedeq_fx_floor(a1); coeffs["treble", gain, 2] = feedeq_fx_floor(a2); coeffs["treble", gain, 3] = feedeq_fx_floor(b0); coeffs["treble", gain, 4] = feedeq_fx_floor(b1); coeffs["treble", gain, 5] = feedeq_fx_floor(b2); w0 = feedeq_w0(FEEDEQ_BASS_SFREQ, 1.0 * rate); A = feedeq_A(1.0 * gain); alpha = feedeq_alpha(w0, A, FEEDEQ_BASS_SLOPE); if (FEEDEQ_TYPE == FEEDEQ_TYPE_PEQ) { b0 = 1.0 + (alpha * A); b1 = -2.0 * cos(w0); b2 = 1.0 - (alpha * A); a0 = 1.0 + (alpha / A); a1 = -2.0 * cos(w0); a2 = 1.0 - (alpha / A); } else if (FEEDEQ_TYPE == FEEDEQ_TYPE_SHELF) { b0 = A*((A+1.0)-((A-1.0)*cos(w0))+(2.0*sqrt(A)*alpha)); b1 = 2.0*A*((A-1.0)-((A+1.0)*cos(w0)) ); b2 = A*((A+1.0)-((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha)); a0 = (A+1.0)+((A-1.0)*cos(w0))+(2.0*sqrt(A)*alpha ); a1 = -2.0 * ((A-1.0)+((A+1.0)*cos(w0)) ); a2 = (A+1.0)+((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha ); } else b0 = b1 = b2 = a0 = a1 = a2 = 0.0; b0 /= a0; b1 /= a0; b2 /= a0; a1 /= a0; a2 /= a0; coeffs["bass", gain, 0] = feedeq_fx_floor(a0); coeffs["bass", gain, 1] = feedeq_fx_floor(a1); coeffs["bass", gain, 2] = feedeq_fx_floor(a2); coeffs["bass", gain, 3] = feedeq_fx_floor(b0); coeffs["bass", gain, 4] = feedeq_fx_floor(b1); coeffs["bass", gain, 5] = feedeq_fx_floor(b2); } function feedeq_gen_freq_coeffs(frq, g, i, v) { coeffs[0] = 0; for (g = (FEEDEQ_GAIN_MIN * FEEDEQ_GAIN_DIV); \ g <= (FEEDEQ_GAIN_MAX * FEEDEQ_GAIN_DIV); \ g += FEEDEQ_GAIN_STEP) { feedeq_gen_biquad_coeffs(coeffs, frq, \ g * FEEDEQ_GAIN_RECIPROCAL); } printf("\nstatic struct feed_eq_coeff eq_%d[%d] " \ "= {\n", frq, FEEDEQ_LEVELS); for (g = (FEEDEQ_GAIN_MIN * FEEDEQ_GAIN_DIV); \ g <= (FEEDEQ_GAIN_MAX * FEEDEQ_GAIN_DIV); \ g += FEEDEQ_GAIN_STEP) { printf(" {{ "); for (i = 1; i < 6; i++) { v = coeffs["treble", g * FEEDEQ_GAIN_RECIPROCAL, i]; printf("%s0x%08x%s", \ (v < 0) ? "-" : " ", abs(v), \ (i == 5) ? " " : ", "); } printf("},\n { "); for (i = 1; i < 6; i++) { v = coeffs["bass", g * FEEDEQ_GAIN_RECIPROCAL, i]; printf("%s0x%08x%s", \ (v < 0) ? "-" : " ", abs(v), \ (i == 5) ? " " : ", "); } printf("}}%s\n", \ (g < (FEEDEQ_GAIN_MAX * FEEDEQ_GAIN_DIV)) ? "," : ""); } printf("};\n"); } function feedeq_calc_preamp(norm, gain, shift, mul, bit, attn) { shift = FEEDEQ_PREAMP_SHIFT; if (floor(FEEDEQ_PREAMP_BITDB) == 6 && \ (1.0 * floor(gain)) == gain && (floor(gain) % 6) == 0) { mul = 1; shift = floor(floor(gain) / 6); } else { bit = 32.0 - ((1.0 * gain) / (1.0 * FEEDEQ_PREAMP_BITDB)); attn = pow(2.0, bit) / pow(2.0, 32.0); mul = floor((attn * FEEDEQ_PREAMP_ONE) + 0.5); } while ((mul % 2) == 0 && shift > 0) { mul = floor(mul / 2); shift--; } norm["mul"] = mul; norm["shift"] = shift; } BEGIN { M_PI = atan2(0.0, -1.0); INT32_MAX = 1 + ((shl(1, 30) - 1) * 2); INT32_MIN = -1 - INT32_MAX; FEEDEQ_TYPE_PEQ = 0; FEEDEQ_TYPE_SHELF = 1; FEEDEQ_TYPE = FEEDEQ_TYPE_PEQ; FEEDEQ_COEFF_SHIFT = 24; FEEDEQ_COEFF_ONE = shl(1, FEEDEQ_COEFF_SHIFT); FEEDEQ_PREAMP_SHIFT = 31; FEEDEQ_PREAMP_ONE = shl(1, FEEDEQ_PREAMP_SHIFT); FEEDEQ_PREAMP_BITDB = 6; # 20.0 * (log(2.0) / log(10.0)); FEEDEQ_GAIN_DIV = 10; i = 0; j = 1; while (j < FEEDEQ_GAIN_DIV) { j *= 2; i++; } FEEDEQ_GAIN_SHIFT = i; FEEDEQ_GAIN_FMASK = shl(1, FEEDEQ_GAIN_SHIFT) - 1; FEEDEQ_GAIN_RECIPROCAL = 1.0 / FEEDEQ_GAIN_DIV; if (ARGC == 2) { i = 1; split(ARGV[1], arg, ":"); while (match(arg[i], "^[^0-9]*$")) { if (arg[i] == "PEQ") { FEEDEQ_TYPE = FEEDEQ_TYPE_PEQ; } else if (arg[i] == "SHELF") { FEEDEQ_TYPE = FEEDEQ_TYPE_SHELF; } i++; } split(arg[i++], subarg, ","); FEEDEQ_TREBLE_SFREQ = 1.0 * subarg[1]; FEEDEQ_TREBLE_SLOPE = 1.0 * subarg[2]; FEEDEQ_BASS_SFREQ = 1.0 * subarg[3]; FEEDEQ_BASS_SLOPE = 1.0 * subarg[4]; split(arg[i++], subarg, ","); FEEDEQ_GAIN_MIN = floor(1.0 * subarg[1]); FEEDEQ_GAIN_MAX = floor(1.0 * subarg[2]); if (length(subarg) > 2) { j = floor(1.0 * FEEDEQ_GAIN_DIV * subarg[3]); if (j < 2) j = 1; else if (j < 5) j = 2; else if (j < 10) j = 5; else j = 10; if (j > FEEDEQ_GAIN_DIV || (FEEDEQ_GAIN_DIV % j) != 0) j = FEEDEQ_GAIN_DIV; FEEDEQ_GAIN_STEP = j; } else FEEDEQ_GAIN_STEP = FEEDEQ_GAIN_DIV; split(arg[i], subarg, ","); for (i = 1; i <= length(subarg); i++) allfreq[i - 1] = floor(1.0 * subarg[i]); } else { FEEDEQ_TREBLE_SFREQ = 16000.0; FEEDEQ_TREBLE_SLOPE = 0.25; FEEDEQ_BASS_SFREQ = 62.0; FEEDEQ_BASS_SLOPE = 0.25; FEEDEQ_GAIN_MIN = -9; FEEDEQ_GAIN_MAX = 9; FEEDEQ_GAIN_STEP = FEEDEQ_GAIN_DIV; allfreq[0] = 44100; allfreq[1] = 48000; allfreq[2] = 88200; allfreq[3] = 96000; allfreq[4] = 176400; allfreq[5] = 192000; } FEEDEQ_LEVELS = ((FEEDEQ_GAIN_MAX - FEEDEQ_GAIN_MIN) * \ floor(FEEDEQ_GAIN_DIV / FEEDEQ_GAIN_STEP)) + 1; FEEDEQ_ERR_CLIP = 0; smallest = 10.000000; largest = 0.000010; printf("#ifndef _FEEDER_EQ_GEN_H_\n"); printf("#define _FEEDER_EQ_GEN_H_\n\n"); printf("/*\n"); printf(" * Generated using feeder_eq_mkfilter.awk, heaven, wind and awesome.\n"); printf(" *\n"); printf(" * DO NOT EDIT!\n"); printf(" */\n\n"); printf("/*\n"); printf(" * EQ: %s\n", (FEEDEQ_TYPE == FEEDEQ_TYPE_SHELF) ? \ "Shelving" : "Peaking EQ"); printf(" */\n"); printf("#define FEEDER_EQ_PRESETS\t\""); printf("%s:%d,%.4f,%d,%.4f:%d,%d,%.1f:", \ (FEEDEQ_TYPE == FEEDEQ_TYPE_SHELF) ? "SHELF" : "PEQ", \ FEEDEQ_TREBLE_SFREQ, FEEDEQ_TREBLE_SLOPE, \ FEEDEQ_BASS_SFREQ, FEEDEQ_BASS_SLOPE, \ FEEDEQ_GAIN_MIN, FEEDEQ_GAIN_MAX, \ FEEDEQ_GAIN_STEP * FEEDEQ_GAIN_RECIPROCAL); for (i = 0; i < length(allfreq); i++) { if (i != 0) printf(","); printf("%d", allfreq[i]); } printf("\"\n\n"); printf("struct feed_eq_coeff_tone {\n"); printf("\tint32_t a1, a2;\n"); printf("\tint32_t b0, b1, b2;\n"); printf("};\n\n"); printf("struct feed_eq_coeff {\n"); #printf("\tstruct {\n"); #printf("\t\tint32_t a1, a2;\n"); #printf("\t\tint32_t b0, b1, b2;\n"); #printf("\t} treble, bass;\n"); printf("\tstruct feed_eq_coeff_tone treble;\n"); printf("\tstruct feed_eq_coeff_tone bass;\n"); #printf("\tstruct {\n"); #printf("\t\tint32_t a1, a2;\n"); #printf("\t\tint32_t b0, b1, b2;\n"); #printf("\t} bass;\n"); printf("};\n"); for (i = 0; i < length(allfreq); i++) feedeq_gen_freq_coeffs(allfreq[i]); printf("\n"); printf("static const struct {\n"); printf("\tuint32_t rate;\n"); printf("\tstruct feed_eq_coeff *coeff;\n"); printf("} feed_eq_tab[] = {\n"); for (i = 0; i < length(allfreq); i++) { printf("\t{ %6d, eq_%-6d },\n", allfreq[i], allfreq[i]); } printf("};\n"); printf("\n#define FEEDEQ_RATE_MIN\t\t%d\n", allfreq[0]); printf("#define FEEDEQ_RATE_MAX\t\t%d\n", allfreq[length(allfreq) - 1]); printf("\n#define FEEDEQ_TAB_SIZE\t\t\t\t\t\t\t\\\n"); printf("\t((int32_t)(sizeof(feed_eq_tab) / sizeof(feed_eq_tab[0])))\n"); printf("\nstatic const struct {\n"); printf("\tint32_t mul, shift;\n"); printf("} feed_eq_preamp[] = {\n"); for (i = (FEEDEQ_GAIN_MAX * 2 * FEEDEQ_GAIN_DIV); i >= 0; \ i -= FEEDEQ_GAIN_STEP) { feedeq_calc_preamp(norm, i * FEEDEQ_GAIN_RECIPROCAL); dbgain = ((FEEDEQ_GAIN_MAX * FEEDEQ_GAIN_DIV) - i) * \ FEEDEQ_GAIN_RECIPROCAL; printf("\t{ 0x%08x, 0x%08x },\t/* %+5.1f dB */\n", \ norm["mul"], norm["shift"], dbgain); } printf("};\n"); printf("\n#define FEEDEQ_GAIN_MIN\t\t%d", FEEDEQ_GAIN_MIN); printf("\n#define FEEDEQ_GAIN_MAX\t\t%d\n", FEEDEQ_GAIN_MAX); printf("\n#define FEEDEQ_GAIN_SHIFT\t%d\n", FEEDEQ_GAIN_SHIFT); printf("#define FEEDEQ_GAIN_DIV\t\t%d\n", FEEDEQ_GAIN_DIV); printf("#define FEEDEQ_GAIN_FMASK\t0x%08x\n", FEEDEQ_GAIN_FMASK); printf("#define FEEDEQ_GAIN_STEP\t%d\n", FEEDEQ_GAIN_STEP); #printf("\n#define FEEDEQ_PREAMP_MIN\t-%d\n", \ # shl(FEEDEQ_GAIN_MAX, FEEDEQ_GAIN_SHIFT)); #printf("#define FEEDEQ_PREAMP_MAX\t%d\n", \ # shl(FEEDEQ_GAIN_MAX, FEEDEQ_GAIN_SHIFT)); printf("\n#define FEEDEQ_COEFF_SHIFT\t%d\n", FEEDEQ_COEFF_SHIFT); #feedeq_calc_preamp(norm, FEEDEQ_GAIN_MAX); #printf("#define FEEDEQ_COEFF_NORM(v)\t("); #if (norm["mul"] == 1) # printf("(v) >> %d", norm["shift"]); #else # printf("(0x%xLL * (v)) >> %d", norm["mul"], norm["shift"]); #printf(")\n"); #printf("\n#define FEEDEQ_LEVELS\t\t%d\n", FEEDEQ_LEVELS); if (FEEDEQ_ERR_CLIP != 0) printf("\n#define FEEDEQ_ERR_CLIP\t\t%d\n", FEEDEQ_ERR_CLIP); printf("\n/*\n"); printf(" * volume level mapping (0 - 100):\n"); printf(" *\n"); for (i = 0; i <= 100; i++) { ind = floor((i * FEEDEQ_LEVELS) / 100); if (ind >= FEEDEQ_LEVELS) ind = FEEDEQ_LEVELS - 1; printf(" *\t%3d -> %3d (%+5.1f dB)\n", \ i, ind, FEEDEQ_GAIN_MIN + \ (ind * (FEEDEQ_GAIN_RECIPROCAL * FEEDEQ_GAIN_STEP))); } printf(" */\n"); printf("\n/*\n * smallest: %.32f\n * largest: %.32f\n */\n", \ smallest, largest); printf("\n#endif\t/* !_FEEDER_EQ_GEN_H_ */\n"); } diff --git a/sys/tools/sound/feeder_rate_mkfilter.awk b/sys/tools/sound/feeder_rate_mkfilter.awk index a713a814d340..453721538f5f 100644 --- a/sys/tools/sound/feeder_rate_mkfilter.awk +++ b/sys/tools/sound/feeder_rate_mkfilter.awk @@ -1,901 +1,900 @@ #!/usr/bin/awk -f # # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2007-2009 Ariff Abdullah # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # # # FIR filter design by windowing method. This might become one of the # funniest joke I've ever written due to too many tricks being applied to # ensure maximum precision (well, in fact this is already have the same # precision granularity compared to its C counterpart). Nevertheless, it's # working, precise, dynamically tunable based on "presets". # # XXX EXPECT TOTAL REWRITE! DON'T ARGUE! # # TODO: Using ultraspherical window might be a good idea. # # Based on: # # "Digital Audio Resampling" by Julius O. Smith III # # - http://ccrma.stanford.edu/~jos/resample/ # # # Some basic Math functions. # function abs(x) { return (((x < 0) ? -x : x) + 0); } function fabs(x) { return (((x < 0.0) ? -x : x) + 0.0); } function ceil(x, r) { r = int(x); if (r < x) r++; return (r + 0); } function floor(x, r) { r = int(x); if (r > x) r--; return (r + 0); } function pow(x, y) { return (exp(1.0 * y * log(1.0 * x))); } # # What the hell... # function shl(x, y) { while (y > 0) { x *= 2; y--; } return (x); } function shr(x, y) { while (y > 0 && x != 0) { x = floor(x / 2); y--; } return (x); } function fx_floor(v, o, r) { if (fabs(v) < fabs(smallest)) smallest = v; if (fabs(v) > fabs(largest)) largest = v; r = floor((v * o) + 0.5); if (r < INT32_MIN || r > INT32_MAX) printf("\n#error overflow v=%f, please reduce %d\n", v, o); return (r); } # # Kaiser linear piecewise functions. # function kaiserAttn2Beta(attn, beta) { if (attn < 0.0) return (Z_KAISER_BETA_DEFAULT); if (attn > 50.0) beta = 0.1102 * ((1.0 * attn) - 8.7); else if (attn > 21.0) beta = (0.5842 * pow((1.0 * attn) - 21.0, 0.4)) + \ (0.07886 * ((1.0 * attn) - 21.0)); else beta = 0.0; return (beta); } function kaiserBeta2Attn(beta, x, y, i, attn, xbeta) { if (beta < Z_WINDOW_KAISER) return (Z_KAISER_ATTN_DEFAULT); if (beta > kaiserAttn2Beta(50.0)) attn = ((1.0 * beta) / 0.1102) + 8.7; else { x = 21.0; y = 50.0; attn = 0.5 * (x + y); for (i = 0; i < 128; i++) { xbeta = kaiserAttn2Beta(attn) if (beta == xbeta || \ (i > 63 && \ fabs(beta - xbeta) < Z_KAISER_EPSILON)) break; if (beta > xbeta) x = attn; else y = attn; attn = 0.5 * (x + y); } } return (attn); } function kaiserRolloff(len, attn) { return (1.0 - (((1.0 * attn) - 7.95) / (((1.0 * len) - 1.0) * 14.36))); } # # 0th order modified Bessel function of the first kind. # function I0(x, s, u, n, h, t) { s = n = u = 1.0; h = x * 0.5; do { t = h / n; n += 1.0; t *= t; u *= t; s += u; } while (u >= (I0_EPSILON * s)); return (s); } function wname(beta) { if (beta >= Z_WINDOW_KAISER) return ("Kaiser"); else if (beta == Z_WINDOW_BLACKMAN_NUTTALL) return ("Blackman - Nuttall"); else if (beta == Z_WINDOW_NUTTALL) return ("Nuttall"); else if (beta == Z_WINDOW_BLACKMAN_HARRIS) return ("Blackman - Harris"); else if (beta == Z_WINDOW_BLACKMAN) return ("Blackman"); else if (beta == Z_WINDOW_HAMMING) return ("Hamming"); else if (beta == Z_WINDOW_HANN) return ("Hann"); else return ("What The Hell !?!?"); } function rolloff_round(x) { if (x < 0.67) x = 0.67; else if (x > 1.0) x = 1.0; return (x); } function tap_round(x, y) { y = floor(x + 3); y -= y % 4; return (y); } function lpf(imp, n, rolloff, beta, num, i, j, x, nm, ibeta, w) { rolloff = rolloff_round(rolloff + (Z_NYQUIST_HOVER * (1.0 - rolloff))); imp[0] = rolloff; # # Generate ideal sinc impulses, locate the last zero-crossing and pad # the remaining with 0. # # Note that there are other (faster) ways of calculating this without # the misery of traversing the entire sinc given the fact that the # distance between each zero crossings is actually the bandwidth of # the impulses, but it seems having 0.0001% chances of failure due to # limited precision. # j = n; for (i = 1; i < n; i++) { x = (M_PI * i) / (1.0 * num); imp[i] = sin(x * rolloff) / x; if (i != 1 && (imp[i] * imp[i - 1]) <= 0.0) j = i; } for (i = j; i < n; i++) imp[i] = 0.0; nm = 1.0 * (j - 1); if (beta >= Z_WINDOW_KAISER) ibeta = I0(beta); for (i = 1; i < j; i++) { if (beta >= Z_WINDOW_KAISER) { # Kaiser window... x = (1.0 * i) / nm; w = I0(beta * sqrt(1.0 - (x * x))) / ibeta; } else { # Cosined windows... x = (M_PI * i) / nm; if (beta == Z_WINDOW_BLACKMAN_NUTTALL) { # Blackman - Nuttall w = 0.36335819 + (0.4891775 * cos(x)) + \ (0.1365995 * cos(2 * x)) + \ (0.0106411 * cos(3 * x)); } else if (beta == Z_WINDOW_NUTTALL) { # Nuttall w = 0.355768 + (0.487396 * cos(x)) + \ (0.144232 * cos(2 * x)) + \ (0.012604 * cos(3 * x)); } else if (beta == Z_WINDOW_BLACKMAN_HARRIS) { # Blackman - Harris w = 0.422323 + (0.49755 * cos(x)) + \ (0.07922 * cos(2 * x)); } else if (beta == Z_WINDOW_BLACKMAN) { # Blackman w = 0.42 + (0.50 * cos(x)) + \ (0.08 * cos(2 * x)); } else if (beta == Z_WINDOW_HAMMING) { # Hamming w = 0.54 + (0.46 * cos(x)); } else if (beta == Z_WINDOW_HANN) { # Hann w = 0.50 + (0.50 * cos(x)); } else { # What The Hell !?!? w = 0.0; } } imp[i] *= w; } imp["impulse_length"] = j; imp["rolloff"] = rolloff; } function mkfilter(imp, nmult, rolloff, beta, num, \ nwing, mwing, nrolloff, i, dcgain, v, quality) { nwing = floor((nmult * num) / 2) + 1; lpf(imp, nwing, rolloff, beta, num); mwing = imp["impulse_length"]; nrolloff = imp["rolloff"]; quality = imp["quality"]; dcgain = 0.0; for (i = num; i < mwing; i += num) dcgain += imp[i]; dcgain *= 2.0; dcgain += imp[0]; for (i = 0; i < nwing; i++) imp[i] /= dcgain; if (quality > 2) printf("\n"); printf("/*\n"); printf(" * quality = %d\n", quality); printf(" * window = %s\n", wname(beta)); if (beta >= Z_WINDOW_KAISER) { printf(" * beta: %.2f\n", beta); printf(" * stop: -%.2f dB\n", \ kaiserBeta2Attn(beta)); } printf(" * length = %d\n", nmult); printf(" * bandwidth = %.2f%%", rolloff * 100.0); if (rolloff != nrolloff) { printf(" + %.2f%% = %.2f%% (nyquist hover: %.2f%%)", \ (nrolloff - rolloff) * 100.0, nrolloff * 100.0, \ Z_NYQUIST_HOVER * 100.0); } printf("\n"); printf(" * drift = %d\n", num); printf(" * width = %d\n", mwing); printf(" */\n"); printf("static int32_t z_coeff_q%d[%d] = {", \ quality, nwing + (Z_COEFF_OFFSET * 2)); for (i = 0; i < (nwing + (Z_COEFF_OFFSET * 2)); i++) { if ((i % 5) == 0) printf("\n "); if (i < Z_COEFF_OFFSET) v = fx_floor(imp[Z_COEFF_OFFSET - i], Z_COEFF_ONE); else if ((i - Z_COEFF_OFFSET) >= nwing) v = fx_floor( \ imp[nwing + nwing - i + Z_COEFF_OFFSET - 1],\ Z_COEFF_ONE); else v = fx_floor(imp[i - Z_COEFF_OFFSET], Z_COEFF_ONE); printf(" %s0x%08x,", (v < 0) ? "-" : " ", abs(v)); } printf("\n};\n\n"); printf("/*\n"); printf(" * interpolated q%d differences.\n", quality); printf(" */\n"); printf("static int32_t z_dcoeff_q%d[%d] = {", quality, nwing); for (i = 1; i <= nwing; i++) { if ((i % 5) == 1) printf("\n "); v = -imp[i - 1]; if (i != nwing) v += imp[i]; v = fx_floor(v, Z_INTERP_COEFF_ONE); if (abs(v) > abs(largest_interp)) largest_interp = v; printf(" %s0x%08x,", (v < 0) ? "-" : " ", abs(v)); } printf("\n};\n"); return (nwing); } function filter_parse(s, a, i, attn, alen) { split(s, a, ":"); alen = length(a); if (alen > 0 && a[1] == "OVERSAMPLING_FACTOR") { if (alen != 2) return (-1); init_drift(floor(a[2])); return (-1); } if (alen > 0 && a[1] == "COEFFICIENT_BIT") { if (alen != 2) return (-1); init_coeff_bit(floor(a[2])); return (-1); } if (alen > 0 && a[1] == "ACCUMULATOR_BIT") { if (alen != 2) return (-1); init_accum_bit(floor(a[2])); return (-1); } if (alen > 0 && a[1] == "INTERPOLATOR") { if (alen != 2) return (-1); init_coeff_interpolator(toupper(a[2])); return (-1); } if (alen == 1 || alen == 2) { if (a[1] == "NYQUIST_HOVER") { i = 1.0 * a[2]; Z_NYQUIST_HOVER = (i > 0.0 && i < 1.0) ? i : 0.0; return (-1); } i = 1; if (alen == 1) { attn = Z_KAISER_ATTN_DEFAULT; Popts["beta"] = Z_KAISER_BETA_DEFAULT; } else if (Z_WINDOWS[a[1]] < Z_WINDOW_KAISER) { Popts["beta"] = Z_WINDOWS[a[1]]; i = tap_round(a[2]); Popts["nmult"] = i; if (i < 28) i = 28; i = 1.0 - (6.44 / i); Popts["rolloff"] = rolloff_round(i); return (0); } else { attn = 1.0 * a[i++]; Popts["beta"] = kaiserAttn2Beta(attn); } i = tap_round(a[i]); Popts["nmult"] = i; if (i > 7 && i < 28) i = 27; i = kaiserRolloff(i, attn); Popts["rolloff"] = rolloff_round(i); return (0); } if (!(alen == 3 || alen == 4)) return (-1); i = 2; if (a[1] == "kaiser") { if (alen > 2) Popts["beta"] = 1.0 * a[i++]; else Popts["beta"] = Z_KAISER_BETA_DEFAULT; } else if (Z_WINDOWS[a[1]] < Z_WINDOW_KAISER) Popts["beta"] = Z_WINDOWS[a[1]]; else if (1.0 * a[1] < Z_WINDOW_KAISER) return (-1); else Popts["beta"] = kaiserAttn2Beta(1.0 * a[1]); Popts["nmult"] = tap_round(a[i++]); if (a[1] == "kaiser" && alen == 3) i = kaiserRolloff(Popts["nmult"], \ kaiserBeta2Attn(Popts["beta"])); else i = 1.0 * a[i]; Popts["rolloff"] = rolloff_round(i); return (0); } function genscale(bit, s1, s2, scale) { if ((bit + Z_COEFF_SHIFT) > Z_ACCUMULATOR_BIT) s1 = Z_COEFF_SHIFT - \ (32 - (Z_ACCUMULATOR_BIT - Z_COEFF_SHIFT)); else s1 = Z_COEFF_SHIFT - (32 - bit); s2 = Z_SHIFT + (32 - bit); if (s1 == 0) scale = "v"; else if (s1 < 0) scale = sprintf("(v) << %d", abs(s1)); else scale = sprintf("(v) >> %d", s1); scale = sprintf("(%s) * Z_SCALE_CAST(s)", scale); if (s2 != 0) scale = sprintf("(%s) >> %d", scale, s2); printf("#define Z_SCALE_%d(v, s)\t%s(%s)\n", \ bit, (bit < 10) ? "\t" : "", scale); } function genlerp(bit, use64, lerp) { if ((bit + Z_LINEAR_SHIFT) <= 32) { lerp = sprintf("(((y) - (x)) * (z)) >> %d", Z_LINEAR_SHIFT); } else if (use64 != 0) { if ((bit + Z_LINEAR_SHIFT) <= 64) { lerp = sprintf( \ "(((int64_t)(y) - (x)) * (z)) " \ ">> %d", \ Z_LINEAR_SHIFT); } else { lerp = sprintf( \ "((int64_t)((y) >> %d) - ((x) >> %d)) * ", \ "(z)" \ bit + Z_LINEAR_SHIFT - 64, \ bit + Z_LINEAR_SHIFT - 64); if ((64 - bit) != 0) lerp = sprintf("(%s) >> %d", lerp, 64 - bit); } } else { lerp = sprintf( \ "(((y) >> %d) - ((x) >> %d)) * (z)", \ bit + Z_LINEAR_SHIFT - 32, \ bit + Z_LINEAR_SHIFT - 32); if ((32 - bit) != 0) lerp = sprintf("(%s) >> %d", lerp, 32 - bit); } printf("#define Z_LINEAR_INTERPOLATE_%d(z, x, y)" \ "\t\t\t\t%s\\\n\t((x) + (%s))\n", \ bit, (bit < 10) ? "\t" : "", lerp); } function init_drift(drift, xdrift) { xdrift = floor(drift); if (Z_DRIFT_SHIFT != -1) { if (xdrift != Z_DRIFT_SHIFT) printf("#error Z_DRIFT_SHIFT reinitialize!\n"); return; } # # Initialize filter oversampling factor, or in other word # Z_DRIFT_SHIFT. # if (xdrift < 0) xdrift = 1; else if (xdrift > 31) xdrift = 31; Z_DRIFT_SHIFT = xdrift; Z_DRIFT_ONE = shl(1, Z_DRIFT_SHIFT); Z_SHIFT = Z_FULL_SHIFT - Z_DRIFT_SHIFT; Z_ONE = shl(1, Z_SHIFT); Z_MASK = Z_ONE - 1; } function init_coeff_bit(cbit, xcbit) { xcbit = floor(cbit); if (Z_COEFF_SHIFT != 0) { if (xcbit != Z_COEFF_SHIFT) printf("#error Z_COEFF_SHIFT reinitialize!\n"); return; } # # Initialize dynamic range of coefficients. # if (xcbit < 1) xcbit = 1; else if (xcbit > 30) xcbit = 30; Z_COEFF_SHIFT = xcbit; Z_COEFF_ONE = shl(1, Z_COEFF_SHIFT); } function init_accum_bit(accbit, xaccbit) { xaccbit = floor(accbit); if (Z_ACCUMULATOR_BIT != 0) { if (xaccbit != Z_ACCUMULATOR_BIT) printf("#error Z_ACCUMULATOR_BIT reinitialize!\n"); return; } # # Initialize dynamic range of accumulator. # if (xaccbit > 64) xaccbit = 64; else if (xaccbit < 32) xaccbit = 32; Z_ACCUMULATOR_BIT = xaccbit; } function init_coeff_interpolator(interp) { # # Validate interpolator type. # if (interp == "ZOH" || interp == "LINEAR" || \ interp == "QUADRATIC" || interp == "HERMITE" || \ interp == "BSPLINE" || interp == "OPT32X" || \ interp == "OPT16X" || interp == "OPT8X" || \ interp == "OPT4X" || interp == "OPT2X") Z_COEFF_INTERPOLATOR = interp; } BEGIN { I0_EPSILON = 1e-21; M_PI = atan2(0.0, -1.0); INT32_MAX = 1 + ((shl(1, 30) - 1) * 2); INT32_MIN = -1 - INT32_MAX; Z_COEFF_OFFSET = 5; Z_ACCUMULATOR_BIT_DEFAULT = 58; Z_ACCUMULATOR_BIT = 0; Z_FULL_SHIFT = 30; Z_FULL_ONE = shl(1, Z_FULL_SHIFT); Z_COEFF_SHIFT_DEFAULT = 30; Z_COEFF_SHIFT = 0; Z_COEFF_ONE = 0; Z_COEFF_INTERPOLATOR = 0; Z_INTERP_COEFF_SHIFT = 24; Z_INTERP_COEFF_ONE = shl(1, Z_INTERP_COEFF_SHIFT); Z_LINEAR_FULL_SHIFT = Z_FULL_SHIFT; Z_LINEAR_FULL_ONE = shl(1, Z_LINEAR_FULL_SHIFT); Z_LINEAR_SHIFT = 8; Z_LINEAR_UNSHIFT = Z_LINEAR_FULL_SHIFT - Z_LINEAR_SHIFT; Z_LINEAR_ONE = shl(1, Z_LINEAR_SHIFT) Z_DRIFT_SHIFT_DEFAULT = 5; Z_DRIFT_SHIFT = -1; # meehhhh... let it overflow... #Z_SCALE_SHIFT = 31; #Z_SCALE_ONE = shl(1, Z_SCALE_SHIFT); Z_WINDOW_KAISER = 0.0; Z_WINDOW_BLACKMAN_NUTTALL = -1.0; Z_WINDOW_NUTTALL = -2.0; Z_WINDOW_BLACKMAN_HARRIS = -3.0; Z_WINDOW_BLACKMAN = -4.0; Z_WINDOW_HAMMING = -5.0; Z_WINDOW_HANN = -6.0; Z_WINDOWS["blackman_nuttall"] = Z_WINDOW_BLACKMAN_NUTTALL; Z_WINDOWS["nuttall"] = Z_WINDOW_NUTTALL; Z_WINDOWS["blackman_harris"] = Z_WINDOW_BLACKMAN_HARRIS; Z_WINDOWS["blackman"] = Z_WINDOW_BLACKMAN; Z_WINDOWS["hamming"] = Z_WINDOW_HAMMING; Z_WINDOWS["hann"] = Z_WINDOW_HANN; Z_KAISER_2_BLACKMAN_BETA = 8.568611; Z_KAISER_2_BLACKMAN_NUTTALL_BETA = 11.98; Z_KAISER_ATTN_DEFAULT = 100; Z_KAISER_BETA_DEFAULT = kaiserAttn2Beta(Z_KAISER_ATTN_DEFAULT); Z_KAISER_EPSILON = 1e-21; # # This is practically a joke. # Z_NYQUIST_HOVER = 0.0; smallest = 10.000000; largest = 0.000010; largest_interp = 0; if (ARGC < 2) { ARGC = 1; ARGV[ARGC++] = "100:8:0.85"; ARGV[ARGC++] = "100:36:0.92"; ARGV[ARGC++] = "100:164:0.97"; #ARGV[ARGC++] = "100:8"; #ARGV[ARGC++] = "100:16"; #ARGV[ARGC++] = "100:32:0.7929"; #ARGV[ARGC++] = "100:64:0.8990"; #ARGV[ARGC++] = "100:128:0.9499"; } printf("#ifndef _FEEDER_RATE_GEN_H_\n"); printf("#define _FEEDER_RATE_GEN_H_\n\n"); printf("/*\n"); printf(" * Generated using feeder_rate_mkfilter.awk, heaven, wind and awesome.\n"); printf(" *\n"); printf(" * DO NOT EDIT!\n"); printf(" */\n\n"); printf("#define FEEDER_RATE_PRESETS\t\""); for (i = 1; i < ARGC; i++) printf("%s%s", (i == 1) ? "" : " ", ARGV[i]); printf("\"\n\n"); imp["quality"] = 2; for (i = 1; i < ARGC; i++) { if (filter_parse(ARGV[i]) == 0) { beta = Popts["beta"]; nmult = Popts["nmult"]; rolloff = Popts["rolloff"]; if (Z_DRIFT_SHIFT == -1) init_drift(Z_DRIFT_SHIFT_DEFAULT); if (Z_COEFF_SHIFT == 0) init_coeff_bit(Z_COEFF_SHIFT_DEFAULT); if (Z_ACCUMULATOR_BIT == 0) init_accum_bit(Z_ACCUMULATOR_BIT_DEFAULT); ztab[imp["quality"] - 2] = \ mkfilter(imp, nmult, rolloff, beta, Z_DRIFT_ONE); imp["quality"]++; } } printf("\n"); # # XXX # #if (length(ztab) > 0) { # j = 0; # for (i = 0; i < length(ztab); i++) { # if (ztab[i] > j) # j = ztab[i]; # } # printf("static int32_t z_coeff_zero[%d] = {", j); # for (i = 0; i < j; i++) { # if ((i % 19) == 0) # printf("\n"); # printf(" 0,"); # } # printf("\n};\n\n"); #} # # XXX # printf("static const struct {\n"); printf("\tint32_t len;\n"); printf("\tint32_t *coeff;\n"); printf("\tint32_t *dcoeff;\n"); printf("} z_coeff_tab[] = {\n"); if (length(ztab) > 0) { j = 0; for (i = 0; i < length(ztab); i++) { if (ztab[i] > j) j = ztab[i]; } j = length(sprintf("%d", j)); lfmt = sprintf("%%%dd", j); j = length(sprintf("z_coeff_q%d", length(ztab) + 1)); zcfmt = sprintf("%%-%ds", j); zdcfmt = sprintf("%%-%ds", j + 1); for (i = 0; i < length(ztab); i++) { l = sprintf(lfmt, ztab[i]); zc = sprintf("z_coeff_q%d", i + 2); zc = sprintf(zcfmt, zc); zdc = sprintf("z_dcoeff_q%d", i + 2); zdc = sprintf(zdcfmt, zdc); printf("\t{ %s, %s, %s },\n", l, zc, zdc); } } else printf("\t{ 0, NULL, NULL }\n"); printf("};\n\n"); #Z_UNSHIFT = 0; #v = shr(Z_ONE - 1, Z_UNSHIFT) * abs(largest_interp); #while (v < 0 || v > INT32_MAX) { # Z_UNSHIFT += 1; # v = shr(Z_ONE - 1, Z_UNSHIFT) * abs(largest_interp); #} v = ((Z_ONE - 1) * abs(largest_interp)) / INT32_MAX; Z_UNSHIFT = ceil(log(v) / log(2.0)); Z_INTERP_SHIFT = Z_SHIFT - Z_UNSHIFT + Z_INTERP_COEFF_SHIFT; Z_INTERP_UNSHIFT = (Z_SHIFT - Z_UNSHIFT) + Z_INTERP_COEFF_SHIFT \ - Z_COEFF_SHIFT; printf("#define Z_COEFF_TAB_SIZE\t\t\t\t\t\t\\\n"); printf("\t((int32_t)(sizeof(z_coeff_tab) /"); printf(" sizeof(z_coeff_tab[0])))\n\n"); printf("#define Z_COEFF_OFFSET\t\t%d\n\n", Z_COEFF_OFFSET); printf("#define Z_RSHIFT(x, y)\t\t(((x) + " \ "(1 << ((y) - 1))) >> (y))\n"); printf("#define Z_RSHIFT_L(x, y)\t(((x) + " \ "(1LL << ((y) - 1))) >> (y))\n\n"); printf("#define Z_FULL_SHIFT\t\t%d\n", Z_FULL_SHIFT); printf("#define Z_FULL_ONE\t\t0x%08x%s\n", Z_FULL_ONE, \ (Z_FULL_ONE > INT32_MAX) ? "U" : ""); printf("\n"); printf("#define Z_DRIFT_SHIFT\t\t%d\n", Z_DRIFT_SHIFT); #printf("#define Z_DRIFT_ONE\t\t0x%08x\n", Z_DRIFT_ONE); printf("\n"); printf("#define Z_SHIFT\t\t\t%d\n", Z_SHIFT); printf("#define Z_ONE\t\t\t0x%08x\n", Z_ONE); printf("#define Z_MASK\t\t\t0x%08x\n", Z_MASK); printf("\n"); printf("#define Z_COEFF_SHIFT\t\t%d\n", Z_COEFF_SHIFT); zinterphp = "(z) * (d)"; zinterpunshift = Z_SHIFT + Z_INTERP_COEFF_SHIFT - Z_COEFF_SHIFT; if (zinterpunshift > 0) { v = (Z_ONE - 1) * abs(largest_interp); if (v < INT32_MIN || v > INT32_MAX) zinterphp = sprintf("(int64_t)%s", zinterphp); zinterphp = sprintf("(%s) >> %d", zinterphp, zinterpunshift); } else if (zinterpunshift < 0) zinterphp = sprintf("(%s) << %d", zinterphp, \ abs(zinterpunshift)); if (Z_UNSHIFT == 0) zinterp = "z"; else zinterp = sprintf("(z) >> %d", Z_UNSHIFT); zinterp = sprintf("(%s) * (d)", zinterp); if (Z_INTERP_UNSHIFT < 0) zinterp = sprintf("(%s) << %d", zinterp, \ abs(Z_INTERP_UNSHIFT)); else if (Z_INTERP_UNSHIFT > 0) zinterp = sprintf("(%s) >> %d", zinterp, Z_INTERP_UNSHIFT); if (zinterphp != zinterp) { printf("\n#ifdef SND_FEEDER_RATE_HP\n"); printf("#define Z_COEFF_INTERPOLATE(z, c, d)" \ "\t\t\t\t\t\\\n\t((c) + (%s))\n", zinterphp); printf("#else\n"); printf("#define Z_COEFF_INTERPOLATE(z, c, d)" \ "\t\t\t\t\t\\\n\t((c) + (%s))\n", zinterp); printf("#endif\n"); } else printf("#define Z_COEFF_INTERPOLATE(z, c, d)" \ "\t\t\t\t\t\\\n\t((c) + (%s))\n", zinterp); #printf("\n"); #printf("#define Z_SCALE_SHIFT\t\t%d\n", Z_SCALE_SHIFT); #printf("#define Z_SCALE_ONE\t\t0x%08x%s\n", Z_SCALE_ONE, \ # (Z_SCALE_ONE > INT32_MAX) ? "U" : ""); printf("\n"); printf("#define Z_SCALE_CAST(s)\t\t((uint32_t)(s))\n"); genscale(8); genscale(16); genscale(24); genscale(32); printf("\n"); printf("#define Z_ACCUMULATOR_BIT\t%d\n\n", Z_ACCUMULATOR_BIT) for (i = 8; i <= 32; i += 8) { gbit = ((i + Z_COEFF_SHIFT) > Z_ACCUMULATOR_BIT) ? \ (i - (Z_ACCUMULATOR_BIT - Z_COEFF_SHIFT)) : 0; printf("#define Z_GUARD_BIT_%d\t\t%d\n", i, gbit); if (gbit == 0) printf("#define Z_NORM_%d(v)\t\t(v)\n\n", i); else printf("#define Z_NORM_%d(v)\t\t" \ "((v) >> Z_GUARD_BIT_%d)\n\n", i, i); } printf("\n"); printf("#define Z_LINEAR_FULL_ONE\t0x%08xU\n", Z_LINEAR_FULL_ONE); printf("#define Z_LINEAR_SHIFT\t\t%d\n", Z_LINEAR_SHIFT); printf("#define Z_LINEAR_UNSHIFT\t%d\n", Z_LINEAR_UNSHIFT); printf("#define Z_LINEAR_ONE\t\t0x%08x\n", Z_LINEAR_ONE); printf("\n"); printf("#ifdef SND_PCM_64\n"); genlerp(8, 1); genlerp(16, 1); genlerp(24, 1); genlerp(32, 1); printf("#else\t/* !SND_PCM_64 */\n"); genlerp(8, 0); genlerp(16, 0); genlerp(24, 0); genlerp(32, 0); printf("#endif\t/* SND_PCM_64 */\n"); printf("\n"); printf("#define Z_QUALITY_ZOH\t\t0\n"); printf("#define Z_QUALITY_LINEAR\t1\n"); printf("#define Z_QUALITY_SINC\t\t%d\n", \ floor((length(ztab) - 1) / 2) + 2); printf("\n"); printf("#define Z_QUALITY_MIN\t\t0\n"); printf("#define Z_QUALITY_MAX\t\t%d\n", length(ztab) + 1); if (Z_COEFF_INTERPOLATOR != 0) printf("\n#define Z_COEFF_INTERP_%s\t1\n", \ Z_COEFF_INTERPOLATOR); printf("\n/*\n * smallest: %.32f\n * largest: %.32f\n *\n", \ smallest, largest); printf(" * z_unshift=%d, z_interp_shift=%d\n *\n", \ Z_UNSHIFT, Z_INTERP_SHIFT); v = shr(Z_ONE - 1, Z_UNSHIFT) * abs(largest_interp); printf(" * largest interpolation multiplication: %d\n */\n", v); if (v < INT32_MIN || v > INT32_MAX) { printf("\n#ifndef SND_FEEDER_RATE_HP\n"); printf("#error interpolation overflow, please reduce" \ " Z_INTERP_SHIFT\n"); printf("#endif\n"); } printf("\n#endif /* !_FEEDER_RATE_GEN_H_ */\n"); } diff --git a/sys/tools/sound/snd_fxdiv_gen.awk b/sys/tools/sound/snd_fxdiv_gen.awk index 65ae1aab7cea..2f06b36faa38 100644 --- a/sys/tools/sound/snd_fxdiv_gen.awk +++ b/sys/tools/sound/snd_fxdiv_gen.awk @@ -1,147 +1,146 @@ #!/usr/bin/awk -f # # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2008-2009 Ariff Abdullah # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # function floor(x, r) { r = int(x); if (r > x) r--; return (r + 0); } function shl(x, y) { while (y > 0) { x *= 2; y--; } return (x); } function shr(x, y) { while (y > 0 && x != 0) { x = floor(x / 2); y--; } return (x); } function calcdiv(r, x, y, z) { y = floor(FXONE / x); z = FXSHIFT; while (shr((y * x), z) < 1) y++; while ((y % 2) == 0 && z > 0) { y = floor(y / 2); z--; } r["mul"] = y; r["shift"] = z; } BEGIN { FXSHIFT = 16; FXONE = shl(1, FXSHIFT); SND_CHN_MAX = 127; PCM_8_BPS = 1; PCM_16_BPS = 2; PCM_24_BPS = 3; PCM_32_BPS = 4; SND_MAX_ALIGN = SND_CHN_MAX * PCM_32_BPS; for (i = 1; i <= SND_CHN_MAX; i++) { aligns[PCM_8_BPS * i] = 1; aligns[PCM_16_BPS * i] = 1; aligns[PCM_24_BPS * i] = 1; aligns[PCM_32_BPS * i] = 1; } printf("#ifndef _SND_FXDIV_GEN_H_\n"); printf("#define _SND_FXDIV_GEN_H_\n\n"); printf("/*\n"); printf(" * Generated using snd_fxdiv_gen.awk, heaven, wind and awesome.\n"); printf(" *\n"); printf(" * DO NOT EDIT!\n"); printf(" */\n\n"); printf("#ifdef SND_USE_FXDIV\n\n"); printf("/*\n"); printf(" * Fast unsigned 32bit integer division and rounding, accurate for\n"); printf(" * x = 1 - %d. This table should be enough to handle possible\n", FXONE); printf(" * division for 1 - 508 (more can be generated though..).\n"); printf(" *\n"); printf(" * 508 = SND_CHN_MAX * PCM_32_BPS, which is why....\n"); printf(" */\n\n"); printf("extern const uint32_t snd_fxdiv_table[%d][2];\n\n", SND_MAX_ALIGN + 1); printf("#ifdef SND_DECLARE_FXDIV\n"); printf("const uint32_t snd_fxdiv_table[%d][2] = {\n", SND_MAX_ALIGN + 1); for (i = 1; i <= SND_MAX_ALIGN; i++) { if (aligns[i] != 1) continue; calcdiv(r, i); printf("\t[0x%02x] = { 0x%04x, 0x%02x },", \ i, r["mul"], r["shift"]); printf("\t/* x / %-2d = (x * %-5d) >> %-2d */\n", \ i, r["mul"], r["shift"]); } printf("};\n#endif\n\n"); printf("#define SND_FXDIV_MAX\t\t0x%08x\n", FXONE); printf("#define SND_FXDIV(x, y)\t\t(((uint32_t)(x) *\t\t\t\\\n"); printf("\t\t\t\t snd_fxdiv_table[y][0]) >>\t\t\\\n"); printf("\t\t\t\t snd_fxdiv_table[y][1])\n"); printf("#define SND_FXROUND(x, y)\t(SND_FXDIV(x, y) * (y))\n"); printf("#define SND_FXMOD(x, y)\t\t((x) - SND_FXROUND(x, y))\n\n"); printf("#else\t/* !SND_USE_FXDIV */\n\n"); printf("#define SND_FXDIV_MAX\t\t0x%08x\n", 131072); printf("#define SND_FXDIV(x, y)\t\t((x) / (y))\n"); printf("#define SND_FXROUND(x, y)\t((x) - ((x) %% (y)))\n"); printf("#define SND_FXMOD(x, y)\t\t((x) %% (y))\n\n"); printf("#endif\t/* SND_USE_FXDIV */\n\n"); printf("#endif\t/* !_SND_FXDIV_GEN_H_ */\n"); } diff --git a/sys/tools/usbdevs2h.awk b/sys/tools/usbdevs2h.awk index 25c29c798b3e..e4cb4650eb2d 100644 --- a/sys/tools/usbdevs2h.awk +++ b/sys/tools/usbdevs2h.awk @@ -1,260 +1,259 @@ #! /usr/bin/awk -f #- # $NetBSD: usb/devlist2h.awk,v 1.9 2001/01/18 20:28:22 jdolecek Exp $ -# $FreeBSD$ # # SPDX-License-Identifier: BSD-4-Clause # # Copyright (c) 1995, 1996 Christopher G. Demetriou # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by Christopher G. Demetriou. # 4. The name of the author may not be used to endorse or promote products # derived from this software without specific prior written permission # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # function usage() { print "usage: usbdevs2h.awk [-d|-h]"; exit 1; } function header(file) { printf("/*\n") > file printf(" * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \ > file printf(" */\n") > file } function vendor(hfile) { nvendors++ vendorindex[$2] = nvendors; # record index for this name, for later. vendors[nvendors, 1] = $2; # name vendors[nvendors, 2] = $3; # id if (hfile) printf("#define\tUSB_VENDOR_%s\t%s\t", vendors[nvendors, 1], vendors[nvendors, 2]) > hfile i = 3; f = 4; # comments ocomment = oparen = 0 if (f <= NF) { if (hfile) printf("\t/* ") > hfile ocomment = 1; } while (f <= NF) { if ($f == "#") { if (hfile) printf("(") > hfile oparen = 1 f++ continue } if (oparen) { if (hfile) printf("%s", $f) > hfile if (f < NF && hfile) printf(" ") > hfile f++ continue } vendors[nvendors, i] = $f if (hfile) printf("%s", vendors[nvendors, i]) > hfile if (f < NF && hfile) printf(" ") > hfile i++; f++; } if (oparen && hfile) printf(")") > hfile if (ocomment && hfile) printf(" */") > hfile if (hfile) printf("\n") > hfile } function product(hfile) { nproducts++ products[nproducts, 1] = $2; # vendor name products[nproducts, 2] = $3; # product id products[nproducts, 3] = $4; # id if (hfile) printf("#define\tUSB_PRODUCT_%s_%s\t%s\t", \ products[nproducts, 1], products[nproducts, 2], \ products[nproducts, 3]) > hfile i=4; f = 5; # comments ocomment = oparen = 0 if (f <= NF) { if (hfile) printf("\t/* ") > hfile ocomment = 1; } while (f <= NF) { if ($f == "#") { if (hfile) printf("(") > hfile oparen = 1 f++ continue } if (oparen) { if (hfile) printf("%s", $f) > hfile if (f < NF && hfile) printf(" ") > hfile f++ continue } products[nproducts, i] = $f if (hfile) printf("%s", products[nproducts, i]) > hfile if (f < NF && hfile) printf(" ") > hfile i++; f++; } if (oparen && hfile) printf(")") > hfile if (ocomment && hfile) printf(" */") > hfile if (hfile) printf("\n") > hfile } function dump_dfile(dfile) { printf("\n") > dfile printf("const struct usb_knowndev usb_knowndevs[] = {\n") > dfile for (i = 1; i <= nproducts; i++) { printf("\t{\n") > dfile printf("\t USB_VENDOR_%s, USB_PRODUCT_%s_%s,\n", products[i, 1], products[i, 1], products[i, 2]) > dfile printf("\t ") > dfile printf("0") > dfile printf(",\n") > dfile vendi = vendorindex[products[i, 1]]; printf("\t \"") > dfile j = 3; needspace = 0; while (vendors[vendi, j] != "") { if (needspace) printf(" ") > dfile printf("%s", vendors[vendi, j]) > dfile needspace = 1 j++ } printf("\",\n") > dfile printf("\t \"") > dfile j = 4; needspace = 0; while (products[i, j] != "") { if (needspace) printf(" ") > dfile printf("%s", products[i, j]) > dfile needspace = 1 j++ } printf("\",\n") > dfile printf("\t},\n") > dfile } for (i = 1; i <= nvendors; i++) { printf("\t{\n") > dfile printf("\t USB_VENDOR_%s, 0,\n", vendors[i, 1]) > dfile printf("\t USB_KNOWNDEV_NOPROD,\n") > dfile printf("\t \"") > dfile j = 3; needspace = 0; while (vendors[i, j] != "") { if (needspace) printf(" ") > dfile printf("%s", vendors[i, j]) > dfile needspace = 1 j++ } printf("\",\n") > dfile printf("\t NULL,\n") > dfile printf("\t},\n") > dfile } printf("\t{ 0, 0, 0, NULL, NULL, }\n") > dfile printf("};\n") > dfile } BEGIN { nproducts = nvendors = 0 # Process the command line for (i = 1; i < ARGC; i++) { arg = ARGV[i]; if (arg !~ /^-[dh]+$/ && arg !~ /devs$/) usage(); if (arg ~ /^-.*d/) dfile="usbdevs_data.h" if (arg ~ /^-.*h/) hfile="usbdevs.h" if (arg ~ /devs$/) srcfile = arg; } ARGC = 1; line=0; while ((getline < srcfile) > 0) { line++; if (line == 1) { if (dfile) header(dfile) if (hfile) header(hfile) continue; } if ($1 == "vendor") { vendor(hfile) continue } if ($1 == "product") { product(hfile) continue } if ($0 == "") blanklines++ if (hfile) print $0 > hfile if (blanklines < 2 && dfile) print $0 > dfile } # print out the match tables if (dfile) dump_dfile(dfile) } diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk index f27fc0486f36..0fff9a831756 100644 --- a/sys/tools/vnode_if.awk +++ b/sys/tools/vnode_if.awk @@ -1,519 +1,518 @@ #!/usr/bin/awk -f #- # SPDX-License-Identifier: BSD-3-Clause # # Copyright (c) 1992, 1993 # The Regents of the University of California. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. Neither the name of the University nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93 -# $FreeBSD$ # # Script to produce VFS front-end sugar. # # usage: vnode_if.awk [-c | -h | -p | -q] # (where is currently /sys/kern/vnode_if.src) # The source file must have a .src extension # function usage() { print "usage: vnode_if.awk [-c|-h|-p|-q]"; exit 1; } function die(msg, what) { printf srcfile "(" fnr "): " > "/dev/stderr"; printf msg "\n", what > "/dev/stderr"; exit 1; } function t_spc(type) { # Append a space if the type is not a pointer return (type ~ /\*$/) ? type : type " "; } # These are just for convenience ... function printc(s) {print s > cfile;} function printh(s) {print s > hfile;} function printp(s) {print s > pfile;} function printq(s) {print s > qfile;} function add_debug_code(name, arg, pos, ind) { if (arg == "vpp") star = "*"; else star = ""; if (lockdata[name, arg, pos] && (lockdata[name, arg, pos] != "-")) { printc(ind"ASSERT_VI_UNLOCKED("star"a->a_"arg", \""uname" "pos" ("arg")\");"); # Add assertions for locking if (lockdata[name, arg, pos] == "L") printc(ind"ASSERT_VOP_LOCKED(" star "a->a_"arg", \""uname" "pos" ("arg")\");"); else if (lockdata[name, arg, pos] == "U") printc(ind"ASSERT_VOP_UNLOCKED(" star "a->a_"arg", \""uname" "pos" ("arg")\");"); else if (lockdata[name, arg, pos] == "E") printc(ind"ASSERT_VOP_ELOCKED(" star "a->a_"arg", \""uname" "pos" ("arg")\");"); else if (0) { # XXX More checks! } } } function add_debugpre(name) { if (lockdata[name, "debugpre"]) { printc("#ifdef DEBUG_VFS_LOCKS"); printc("\t"lockdata[name, "debugpre"]"(a);"); printc("#endif"); } } function add_debugpost(name) { if (lockdata[name, "debugpost"]) { printc("#ifdef DEBUG_VFS_LOCKS"); printc("\t"lockdata[name, "debugpost"]"(a, rc);"); printc("#endif"); } } function add_pre(name) { if (lockdata[name, "pre"]) { printc("\t"lockdata[name, "pre"]"(a);"); } } function add_post(name) { if (lockdata[name, "post"]) { printc("\t"lockdata[name, "post"]"(a, rc);"); } } function can_inline(name) { if (lockdata[name, "pre"]) return 0; if (lockdata[name, "post"]) return 0; return 1; } function find_arg_with_type (type) { for (jj = 0; jj < numargs; jj++) { if (types[jj] == type) { return "VOPARG_OFFSETOF(struct " \ name "_args,a_" args[jj] ")"; } } return "VDESC_NO_OFFSET"; } BEGIN{ # Process the command line for (i = 1; i < ARGC; i++) { arg = ARGV[i]; if (arg !~ /^-[chpq]+$/ && arg !~ /\.src$/) usage(); if (arg ~ /^-.*c/) cfile = "vnode_if.c"; if (arg ~ /^-.*h/) hfile = "vnode_if.h"; if (arg ~ /^-.*p/) pfile = "vnode_if_newproto.h"; if (arg ~ /^-.*q/) qfile = "vnode_if_typedef.h"; if (arg ~ /\.src$/) srcfile = arg; } ARGC = 1; if (!cfile && !hfile && !pfile && !qfile) exit 0; if (!srcfile) usage(); # Avoid a literal generated file tag here. generated = "@" "generated"; common_head = \ "/*\n" \ " * This file is " generated " automatically.\n" \ " * Do not modify anything in here by hand.\n" \ " */\n" \ "\n"; if (pfile) { printp(common_head) printp("struct vop_vector {") printp("\tstruct vop_vector\t*vop_default;") printp("\tvop_bypass_t\t*vop_bypass;") } if (qfile) { printq(common_head) } if (hfile) { printh(common_head "extern struct vnodeop_desc vop_default_desc;"); printh("#include \"vnode_if_typedef.h\"") printh("#include \"vnode_if_newproto.h\"") } if (cfile) { printc(common_head \ "#include \n" \ "#include \n" \ "#include \n" \ "#include \n" \ "#include \n" \ "#include \n" \ "#include \n" \ "#include \n" \ "\n" \ "SDT_PROVIDER_DECLARE(vfs);\n" \ "\n" \ "struct vnodeop_desc vop_default_desc = {\n" \ " \"default\",\n" \ " 0,\n" \ " 0,\n" \ " (vop_bypass_t *)vop_panic,\n" \ " NULL,\n" \ " VDESC_NO_OFFSET,\n" \ " VDESC_NO_OFFSET,\n" \ " VDESC_NO_OFFSET,\n" \ " VDESC_NO_OFFSET,\n" \ "};\n"); } while ((getline < srcfile) > 0) { fnr++; if (NF == 0) continue; if ($1 ~ /^%%/) { if (NF != 6 || $2 !~ /^[a-z_]+$/ || $3 !~ /^[a-z]+$/ || $4 !~ /^.$/ || $5 !~ /^.$/ || $6 !~ /^.$/) { die("Invalid %s construction", "%%"); continue; } lockdata["vop_" $2, $3, "Entry"] = $4; lockdata["vop_" $2, $3, "OK"] = $5; lockdata["vop_" $2, $3, "Error"] = $6; continue; } if ($1 ~ /^%!/) { if (NF != 4 || ($3 != "pre" && $3 != "post" && $3 != "debugpre" && $3 != "debugpost")) { die("Invalid %s construction", "%!"); continue; } lockdata["vop_" $2, $3] = $4; continue; } if ($1 ~ /^#/) continue; # Get the function name. name = $1; uname = toupper(name); # Get the function arguments. for (numargs = 0; ; ++numargs) { if ((getline < srcfile) <= 0) { die("Unable to read through the arguments for \"%s\"", name); } fnr++; if ($1 ~ /^\};/) break; # Delete comments, if any. gsub (/\/\*.*\*\//, ""); # Condense whitespace and delete leading/trailing space. gsub(/[[:space:]]+/, " "); sub(/^ /, ""); sub(/ $/, ""); # Pick off direction. if ($1 != "INOUT" && $1 != "IN" && $1 != "OUT") die("No IN/OUT direction for \"%s\".", $0); dirs[numargs] = $1; sub(/^[A-Z]* /, ""); if ((reles[numargs] = $1) == "WILLRELE") sub(/^[A-Z]* /, ""); else reles[numargs] = "WONTRELE"; # kill trailing ; if (sub(/;$/, "") < 1) die("Missing end-of-line ; in \"%s\".", $0); # pick off variable name if ((argp = match($0, /[A-Za-z0-9_]+$/)) < 1) die("Missing var name \"a_foo\" in \"%s\".", $0); args[numargs] = substr($0, argp); $0 = substr($0, 1, argp - 1); # what is left must be type # remove trailing space (if any) sub(/ $/, ""); types[numargs] = $0; } if (numargs > 4) ctrargs = 4; else ctrargs = numargs; ctrstr = ctrargs "(KTR_VOP, \"VOP\", \"" uname "\", (uintptr_t)a,\n\t "; ctrstr = ctrstr "\"" args[0] ":0x%jX\", (uintptr_t)a->a_" args[0]; for (i = 1; i < ctrargs; ++i) ctrstr = ctrstr ", \"" args[i] ":0x%jX\", a->a_" args[i]; ctrstr = ctrstr ");"; if (pfile) { printp("\t"name"_t\t*"name";") } if (qfile) { printq("struct "name"_args;") printq("typedef int "name"_t(struct "name"_args *);\n") } if (hfile) { # Print out the vop_F_args structure. printh("struct "name"_args {\n\tstruct vop_generic_args a_gen;"); for (i = 0; i < numargs; ++i) printh("\t" t_spc(types[i]) "a_" args[i] ";"); printh("};"); printh(""); # Print out extern declaration. printh("extern struct vnodeop_desc " name "_desc;"); printh(""); # Print out function prototypes. printh("int " uname "_AP(struct " name "_args *);"); printh("int " uname "_APV(struct vop_vector *vop, struct " name "_args *);"); printh(""); printh("static __inline int " uname "("); for (i = 0; i < numargs; ++i) { printh("\t" t_spc(types[i]) args[i] \ (i < numargs - 1 ? "," : ")")); } printh("{"); printh("\tstruct " name "_args a;"); printh(""); printh("\ta.a_gen.a_desc = &" name "_desc;"); for (i = 0; i < numargs; ++i) printh("\ta.a_" args[i] " = " args[i] ";"); if (can_inline(name)) { printh("\n#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)"); printh("\tif (!SDT_PROBES_ENABLED())"); printh("\t\treturn (" args[0]"->v_op->"name"(&a));"); printh("\telse"); printh("\t\treturn (" uname "_APV("args[0]"->v_op, &a));"); printh("#else"); } printh("\treturn (" uname "_APV("args[0]"->v_op, &a));"); if (can_inline(name)) printh("#endif"); printh("}"); printh(""); } if (cfile) { funcarr[name] = 1; # Print out the vop_F_vp_offsets structure. This all depends # on naming conventions and nothing else. printc("static int " name "_vp_offsets[] = {"); # as a side effect, figure out the releflags releflags = ""; vpnum = 0; for (i = 0; i < numargs; i++) { if (types[i] == "struct vnode *") { printc("\tVOPARG_OFFSETOF(struct " name \ "_args,a_" args[i] "),"); if (reles[i] == "WILLRELE") { releflags = releflags \ "|VDESC_VP" vpnum "_WILLRELE"; } vpnum++; } } sub(/^\|/, "", releflags); printc("\tVDESC_NO_OFFSET"); printc("};"); printc("\n"); printc("SDT_PROBE_DEFINE2(vfs, vop, " name ", entry, \"struct vnode *\", \"struct " name "_args *\");\n"); printc("SDT_PROBE_DEFINE3(vfs, vop, " name ", return, \"struct vnode *\", \"struct " name "_args *\", \"int\");\n"); # Print out function. printc("\nint\n" uname "_AP(struct " name "_args *a)"); printc("{"); printc(""); printc("\treturn(" uname "_APV(a->a_" args[0] "->v_op, a));"); printc("}"); printc("\nint\n" uname "_APV(struct vop_vector *vop, struct " name "_args *a)"); printc("{"); printc("\tint rc;"); printc(""); printc("\tVNASSERT(a->a_gen.a_desc == &" name "_desc, a->a_" args[0]","); printc("\t (\"Wrong a_desc in " name "(%p, %p)\", a->a_" args[0]", a));"); printc("\tVNASSERT(vop != NULL, a->a_" args[0]", (\"No "name"(%p, %p)\", a->a_" args[0]", a));") printc("\tKTR_START" ctrstr); add_debugpre(name); add_pre(name); for (i = 0; i < numargs; ++i) add_debug_code(name, args[i], "Entry", "\t"); printc("\tif (!SDT_PROBES_ENABLED()) {"); printc("\t\trc = vop->"name"(a);") printc("\t} else {") printc("\t\tSDT_PROBE2(vfs, vop, " name ", entry, a->a_" args[0] ", a);"); printc("\t\trc = vop->"name"(a);") printc("\t\tSDT_PROBE3(vfs, vop, " name ", return, a->a_" args[0] ", a, rc);"); printc("\t}") printc("\tif (rc == 0) {"); for (i = 0; i < numargs; ++i) add_debug_code(name, args[i], "OK", "\t\t"); printc("\t} else {"); for (i = 0; i < numargs; ++i) add_debug_code(name, args[i], "Error", "\t\t"); printc("\t}"); add_post(name); add_debugpost(name); printc("\tKTR_STOP" ctrstr); printc("\treturn (rc);"); printc("}\n"); # Print out the vnodeop_desc structure. printc("struct vnodeop_desc " name "_desc = {"); # printable name printc("\t\"" name "\","); # flags vppwillrele = ""; for (i = 0; i < numargs; i++) { if (types[i] == "struct vnode **" && \ reles[i] == "WILLRELE") { vppwillrele = "|VDESC_VPP_WILLRELE"; } } if (!releflags) releflags = "0"; printc("\t" releflags vppwillrele ","); # index in struct vop_vector printc("\t__offsetof(struct vop_vector, " name "),"); # function to call printc("\t(vop_bypass_t *)" uname "_AP,"); # vp offsets printc("\t" name "_vp_offsets,"); # vpp (if any) printc("\t" find_arg_with_type("struct vnode **") ","); # cred (if any) printc("\t" find_arg_with_type("struct ucred *") ","); # thread (if any) printc("\t" find_arg_with_type("struct thread *") ","); # componentname printc("\t" find_arg_with_type("struct componentname *") ","); # transport layer information printc("};\n"); } } if (cfile) { printc("void"); printc("vfs_vector_op_register(struct vop_vector *orig_vop)"); printc("{"); printc("\tstruct vop_vector *vop;"); printc(""); printc("\tif (orig_vop->registered)"); printc("\t\tpanic(\"%s: vop_vector %p already registered\",") printc("\t\t __func__, orig_vop);"); printc(""); printc("\tcache_vop_vector_register(orig_vop);"); printc(""); for (name in funcarr) { printc("\tvop = orig_vop;"); printc("\twhile (vop != NULL && \\"); printc("\t vop->"name" == NULL && vop->vop_bypass == NULL)") printc("\t\tvop = vop->vop_default;") printc("\tif (vop != NULL)"); printc("\t\torig_vop->"name" = vop->"name";"); printc(""); } printc("\tvop = orig_vop;"); printc("\twhile (vop != NULL && vop->vop_bypass == NULL)") printc("\t\tvop = vop->vop_default;") printc("\tif (vop != NULL)"); printc("\t\torig_vop->vop_bypass = vop->vop_bypass;"); printc(""); for (name in funcarr) { printc("\tif (orig_vop->"name" == NULL)"); printc("\t\torig_vop->"name" = (void *)orig_vop->vop_bypass;"); } printc(""); printc("\torig_vop->registered = true;"); printc("}") } if (hfile) { printh("void vfs_vector_op_register(struct vop_vector *orig_vop);"); } if (pfile) { printp("\tbool\tregistered;") printp("};") } if (hfile) close(hfile); if (cfile) close(cfile); if (pfile) close(pfile); close(srcfile); exit 0; } diff --git a/sys/x86/conf/NOTES b/sys/x86/conf/NOTES index ad38de1a95fd..58586005f7ad 100644 --- a/sys/x86/conf/NOTES +++ b/sys/x86/conf/NOTES @@ -1,105 +1,104 @@ -# $FreeBSD$ # # Common NOTES between i386 and amd64 ##################################################################### # COMPATIBILITY OPTIONS # Implement system calls compatible with 4.3BSD and FreeBSD 1.x, # and 2.x a.out binaries. Not needed for ELF binaries, or newer # a.out binaries. options COMPAT_43 ##################################################################### # HARDWARE DEVICE CONFIGURATION # The syscons console driver (SCO color console compatible). device sc envvar hint.sc.0.at="isa" options MAXCONS=16 # number of virtual consoles options SC_ALT_MOUSE_IMAGE # simplified mouse cursor in text mode options SC_DFLT_FONT # compile font in makeoptions SC_DFLT_FONT=cp850 options SC_DFLT_TERM=\"sc\" # default terminal emulator options SC_DISABLE_KDBKEY # disable `debug' key options SC_DISABLE_REBOOT # disable reboot key sequence options SC_HISTORY_SIZE=200 # number of history buffer lines options SC_MOUSE_CHAR=0x3 # char code for text mode mouse cursor options SC_PIXEL_MODE # add support for the raster text mode # The following options will let you change the default colors of syscons. options SC_NORM_ATTR=(FG_GREEN|BG_BLACK) options SC_NORM_REV_ATTR=(FG_YELLOW|BG_GREEN) options SC_KERNEL_CONS_ATTR=(FG_RED|BG_BLACK) options SC_KERNEL_CONS_ATTRS=\"\x0c\x0d\x0e\x0f\x02\x09\x0a\x0b\" options SC_KERNEL_CONS_REV_ATTR=(FG_BLACK|BG_RED) # The following options will let you change the default behavior of # cut-n-paste feature options SC_CUT_SPACES2TABS # convert leading spaces into tabs options SC_CUT_SEPCHARS=\"x09\" # set of characters that delimit words # (default is single space - \"x20\") # If you have a two button mouse, you may want to add the following option # to use the right button of the mouse to paste text. options SC_TWOBUTTON_MOUSE # You can selectively disable features in syscons. options SC_NO_CUTPASTE options SC_NO_FONT_LOADING options SC_NO_HISTORY options SC_NO_MODE_CHANGE options SC_NO_SYSMOUSE options SC_NO_SUSPEND_VTYSWITCH #!options SC_NO_TERM_DUMB #!options SC_NO_TERM_SC #!options SC_NO_TERM_SCTEKEN # `flags' for sc # 0x80 Put the video card in the VESA 800x600 dots, 16 color mode # 0x100 Probe for a keyboard device periodically if one is not present # Splash screen and screen saver support device splash # Various screen savers. device blank_saver device daemon_saver device dragon_saver device fade_saver device fire_saver device green_saver device logo_saver device rain_saver device snake_saver device star_saver device warp_saver # # Standard floppy disk controllers and floppy tapes, supports # the Y-E DATA External FDD (PC Card) # device fdc envvar hint.fdc.0.at="isa" envvar hint.fdc.0.port="0x3F0" envvar hint.fdc.0.irq="6" envvar hint.fdc.0.drq="2" # # FDC_DEBUG enables floppy debugging. Since the debug output is huge, you # gotta turn it actually on by setting the variable fd_debug with DDB, # however. options FDC_DEBUG # # Activate this line if you happen to have an Insight floppy tape. # Probing them proved to be dangerous for people with floppy disks only, # so it's "hidden" behind a flag: #hint.fdc.0.flags="1" # Specify floppy devices envvar hint.fd.0.at="fdc0" envvar hint.fd.0.drive="0" envvar hint.fd.1.at="fdc0" envvar hint.fd.1.drive="1" diff --git a/sys/xen/xenbus/xenbus_if.m b/sys/xen/xenbus/xenbus_if.m index fd9ae51ce1cf..a6928b5e95a3 100644 --- a/sys/xen/xenbus/xenbus_if.m +++ b/sys/xen/xenbus/xenbus_if.m @@ -1,64 +1,63 @@ #- # Copyright (c) 2008 Doug Rabson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include #include #include #include #include INTERFACE xenbus; /** * \brief Callback triggered when the state of the otherend * of a split device changes. * * \param _dev NewBus device_t for this XenBus device whose otherend's * state has changed.. * \param _newstate The new state of the otherend device. */ METHOD void otherend_changed { device_t _dev; enum xenbus_state _newstate; }; /** * \brief Callback triggered when the XenStore tree of the local end * of a split device changes. * * \param _dev NewBus device_t for this XenBus device whose otherend's * state has changed.. * \param _path The tree relative sub-path to the modified node. The empty * string indicates the root of the tree was destroyed. */ METHOD void localend_changed { device_t _dev; const char * _path; } DEFAULT xenbus_localend_changed; diff --git a/sys/xen/xenbus/xenbusb_if.m b/sys/xen/xenbus/xenbusb_if.m index c49f333dc11f..edb512e2284f 100644 --- a/sys/xen/xenbus/xenbusb_if.m +++ b/sys/xen/xenbus/xenbusb_if.m @@ -1,111 +1,110 @@ #- # Copyright (c) 2010 Spectra Logic Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions, and the following disclaimer, # without modification. # 2. Redistributions in binary form must reproduce at minimum a disclaimer # substantially similar to the "NO WARRANTY" disclaimer below # ("Disclaimer") and any redistribution must be conditioned upon # including a substantially similar Disclaimer requirement for further # binary redistribution. # # NO WARRANTY # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGES. # -# $FreeBSD$ # #include #include #include #include #include #include INTERFACE xenbusb; /** * \brief Enumerate all devices of the given type on this bus. * * \param _dev NewBus device_t for this XenBus (front/back) bus instance. * \param _type String indicating the device sub-tree (e.g. "vfb", "vif") * to enumerate. * * \return On success, 0. Otherwise an errno value indicating the * type of failure. * * Devices that are found should be entered into the NewBus hierarchy via * xenbusb_add_device(). xenbusb_add_device() ignores duplicate detects * and ignores duplicate devices, so it can be called unconditionally * for any device found in the XenStore. */ METHOD int enumerate_type { device_t _dev; const char *_type; }; /** * \brief Determine and store the XenStore path for the other end of * a split device whose local end is represented by ivars. * * If successful, the xd_otherend_path field of the child's instance * variables must be updated. * * \param _dev NewBus device_t for this XenBus (front/back) bus instance. * \param _ivars Instance variables from the XenBus child device for * which to perform this function. * * \return On success, 0. Otherwise an errno value indicating the * type of failure. */ METHOD int get_otherend_node { device_t _dev; struct xenbus_device_ivars *_ivars; } /** * \brief Handle a XenStore change detected in the peer tree of a child * device of the bus. * * \param _bus NewBus device_t for this XenBus (front/back) bus instance. * \param _child NewBus device_t for the child device whose peer XenStore * tree has changed. * \param _state The current state of the peer. */ METHOD void otherend_changed { device_t _bus; device_t _child; enum xenbus_state _state; } DEFAULT xenbusb_otherend_changed; /** * \brief Handle a XenStore change detected in the local tree of a child * device of the bus. * * \param _bus NewBus device_t for this XenBus (front/back) bus instance. * \param _child NewBus device_t for the child device whose peer XenStore * tree has changed. * \param _path The tree relative sub-path to the modified node. The empty * string indicates the root of the tree was destroyed. */ METHOD void localend_changed { device_t _bus; device_t _child; const char * _path; } DEFAULT xenbusb_localend_changed; diff --git a/sys/xen/xenmem/xenmem_if.m b/sys/xen/xenmem/xenmem_if.m index 5cc2171c3c2c..df20565de35d 100644 --- a/sys/xen/xenmem/xenmem_if.m +++ b/sys/xen/xenmem/xenmem_if.m @@ -1,95 +1,94 @@ #- # Copyright (c) 2015 Roger Pau Monné # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD$ # #include INTERFACE xenmem; # # Default implementations of some methods. # CODE { static struct resource * xenmem_generic_alloc(device_t dev, device_t child, int *res_id, size_t size) { device_t parent; parent = device_get_parent(dev); if (parent == NULL) return (NULL); return (XENMEM_ALLOC(parent, child, res_id, size)); } static int xenmem_generic_free(device_t dev, device_t child, int res_id, struct resource *res) { device_t parent; parent = device_get_parent(dev); if (parent == NULL) return (ENXIO); return (XENMEM_FREE(parent, child, res_id, res)); } }; /** * @brief Request for unused physical memory regions. * * @param _dev the device whose child was being probed. * @param _child the child device which failed to probe. * @param _res_id a pointer to the resource identifier. * @param _size size of the required memory region. * * @returns the resource which was allocated or @c NULL if no * resource could be allocated. */ METHOD struct resource * alloc { device_t _dev; device_t _child; int *_res_id; size_t _size; } DEFAULT xenmem_generic_alloc; /** * @brief Free physical memory regions. * * @param _dev the device whose child was being probed. * @param _child the child device which failed to probe. * @param _res_id the resource identifier. * @param _res the resource. * * @returns 0 on success, otherwise an error code. */ METHOD int free { device_t _dev; device_t _child; int _res_id; struct resource *_res; } DEFAULT xenmem_generic_free;