diff options
Diffstat (limited to 'sys/modules')
1081 files changed, 19156 insertions, 0 deletions
diff --git a/sys/modules/3dfx/Makefile b/sys/modules/3dfx/Makefile new file mode 100644 index 000000000000..f5ff7c61e0eb --- /dev/null +++ b/sys/modules/3dfx/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/3dfx_linux/Makefile b/sys/modules/3dfx_linux/Makefile new file mode 100644 index 000000000000..841faf19f9e2 --- /dev/null +++ b/sys/modules/3dfx_linux/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/tdfx + +KMOD= 3dfx_linux +SRCS= tdfx_linux.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/Makefile b/sys/modules/Makefile new file mode 100644 index 000000000000..feb9778c23da --- /dev/null +++ b/sys/modules/Makefile @@ -0,0 +1,964 @@ +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 \ + accf_tls \ + acl_nfs4 \ + acl_posix1e \ + ${_acpi} \ + ae \ + ${_aesni} \ + age \ + ${_agp} \ + ahci \ + aic7xxx \ + alc \ + ale \ + alq \ + ${_amd_ecc_inject} \ + ${_amdgpio} \ + ${_amdsmu} \ + ${_amdsbwd} \ + ${_amdsmn} \ + ${_amdtemp} \ + ${_aout} \ + ${_arcmsr} \ + ${_allwinner} \ + ${_armv8crypto} \ + ${_armv8_rng} \ + ${_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} \ + dummymbuf \ + dummynet \ + ${_dwwdt} \ + e6000sw \ + ${_efirt} \ + ${_em} \ + ${_ena} \ + ${_enic} \ + ${_enetc} \ + ${_et} \ + etherswitch \ + 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 \ + ${_hwt} \ + ${_hyperv} \ + i2c \ + ${_iavf} \ + ${_ibcore} \ + ${_ichwd} \ + ${_ice} \ + ${_ice_ddp} \ + ${_irdma} \ + ${_ida} \ + if_bridge \ + ${_if_cgem} \ + if_disc \ + if_edsc \ + ${_if_enc} \ + if_epair \ + ${_genet} \ + ${_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} \ + ${_iwm} \ + ${_iwn} \ + ${_iwnfw} \ + ${_iwx} \ + ${_ix} \ + ${_ixv} \ + ${_ixl} \ + jme \ + kbdmux \ + kgssapi \ + kgssapi_krb5 \ + khelp \ + krpc \ + ksyms \ + le \ + lge \ + libalias \ + libiconv \ + libmchain \ + lindebugfs \ + linuxkpi \ + linuxkpi_hdmi \ + linuxkpi_video \ + linuxkpi_wlan \ + ${_lio} \ + lpt \ + ${_mac_biba} \ + ${_mac_bsdextended} \ + ${_mac_ddb} \ + ${_mac_do} \ + ${_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 \ + miiproxy \ + 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 \ + nvmf \ + ${_nvram} \ + oce \ + ${_ocs_fc} \ + ${_ossl} \ + otus \ + ${_otusfw} \ + ow \ + p9fs \ + ${_padlock} \ + ${_padlock_rng} \ + ${_pchtherm} \ + ${_pcfclock} \ + ${_pf} \ + ${_pflog} \ + ${_pflow} \ + ${_pfsync} \ + plip \ + ${_pms} \ + ppbus \ + ppc \ + ppi \ + pps \ + procfs \ + proto \ + pseudofs \ + ${_pst} \ + ${_pt} \ + 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} \ + ${_rtw89} \ + rtwn \ + rtwn_pci \ + rtwn_usb \ + ${_rtwnfw} \ + ${_s3} \ + ${_safe} \ + safexcel \ + ${_sbni} \ + scc \ + ${_sctp} \ + sdhci \ + ${_sdhci_acpi} \ + ${_sdhci_fdt} \ + sdhci_pci \ + sdio \ + ${_sff} \ + 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 \ + ${_thunderbolt} \ + ${_ti} \ + tmpfs \ + ${_toecore} \ + tpm \ + tws \ + uart \ + udf \ + udf_iconv \ + ufs \ + ${_ufshci} \ + uinput \ + unionfs \ + usb \ + ${_vesa} \ + ${_vf_i2c} \ + virtio \ + vge \ + ${_viawd} \ + videomode \ + vkbd \ + ${_vmd} \ + ${_vmm} \ + ${_vmware} \ + vr \ + vte \ + ${_wbwd} \ + ${_wdatwd} \ + wlan \ + wlan_acl \ + wlan_amrr \ + wlan_ccmp \ + wlan_gcmp \ + wlan_rssadapt \ + wlan_tkip \ + wlan_wep \ + wlan_xauth \ + ${_wpi} \ + ${_wpifw} \ + ${_wtap} \ + ${_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 + +.if !${MACHINE_ABI:Mlong32} +_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 (${KERN_OPTS:MINET} && ${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} && ${KERN_OPTS:MINET} +_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 +# gcc13 and earlier lack __builtin_bitcountg used by linux emulation +.if !(${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} < 140000) +_iwlwifi= iwlwifi +.endif +_rtw88= rtw88 +_rtw89= rtw89 +_vmware= vmware +.endif + +.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ + ${MACHINE_CPUARCH} == "i386" || ${MACHINE_ARCH} == "armv7" || \ + ${MACHINE_ARCH:Mpowerpc64*} != "" +_ossl= ossl +.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_do= mac_do +_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 +_pflow= pflow +.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 + +# Specific to the Raspberry Pi. +.if ${MACHINE_CPUARCH} == "aarch64" +_genet= genet +.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 +_armv8_rng= armv8_rng +_dpaa2= dpaa2 +_sff= sff +_em= em +_hyperv= hyperv +_vf_i2c= vf_i2c + +.if !empty(OPT_FDT) +_allwinner= allwinner +_dwwdt= dwwdt +_enetc= enetc +_felix= felix +_rockchip= rockchip +.endif +.endif + +.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ + ${MACHINE_CPUARCH} == "riscv" +.if !empty(OPT_FDT) +_sdhci_fdt= sdhci_fdt +.endif +_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 +_amdsmu= amdsmu +_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 +_iwnfw= iwnfw +.endif +_nfe= nfe +_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 +_vesa= vesa +_viawd= viawd +_vmd= vmd +_wpi= wpi +.if ${MK_SOURCELESS_UCODE} != "no" +_wpifw= wpifw +.endif +.if ${KERN_OPTS:MVIMAGE} +_wtap= wtap +.endif +_x86bios= x86bios +.endif + +.if ${MACHINE_CPUARCH} == "amd64" +_amdgpio= amdgpio +_ccp= ccp +_enic= enic +_iavf= iavf +_ioat= ioat +_iwx= iwx +_ixl= ixl +_nvdimm= nvdimm +_pms= pms +_pt= pt +_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 +.endif + +.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" +_hwt= hwt +.endif + +.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ + ${MACHINE_CPUARCH} == "riscv" +.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 +.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 ${MACHINE_CPUARCH} == "amd64" +_thunderbolt= thunderbolt +.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 + +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "aarch64" +_ufshci=ufshci +.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 + ${KLDXREF_CMD} ${DESTDIR}${KMODDIR} +.if defined(NO_ROOT) && defined(METALOG) + echo ".${DISTBASE}${KMODDIR}/linker.hints type=file mode=0644 uname=root gname=wheel" | \ + cat -l >> ${METALOG} +.endif +.endif + +SUBDIR:= ${SUBDIR:u:O} + +.include <bsd.subdir.mk> diff --git a/sys/modules/Makefile.inc b/sys/modules/Makefile.inc new file mode 100644 index 000000000000..9491a25bfa1b --- /dev/null +++ b/sys/modules/Makefile.inc @@ -0,0 +1 @@ +SUBDIR_PARALLEL= yes diff --git a/sys/modules/aac/Makefile b/sys/modules/aac/Makefile new file mode 100644 index 000000000000..5d5f00ae0298 --- /dev/null +++ b/sys/modules/aac/Makefile @@ -0,0 +1,16 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/aac/Makefile.inc b/sys/modules/aac/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/aac/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/aac/aac_linux/Makefile b/sys/modules/aac/aac_linux/Makefile new file mode 100644 index 000000000000..96cc7cb0ec79 --- /dev/null +++ b/sys/modules/aac/aac_linux/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/aac + +KMOD= aac_linux +SRCS= aac_linux.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/aacraid/Makefile b/sys/modules/aacraid/Makefile new file mode 100644 index 000000000000..1d174573e7b0 --- /dev/null +++ b/sys/modules/aacraid/Makefile @@ -0,0 +1,19 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/aacraid/Makefile.inc b/sys/modules/aacraid/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/aacraid/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/aacraid/aacraid_linux/Makefile b/sys/modules/aacraid/aacraid_linux/Makefile new file mode 100644 index 000000000000..c0046292cace --- /dev/null +++ b/sys/modules/aacraid/aacraid_linux/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/aacraid + +KMOD= aacraid_linux +SRCS= aacraid_linux.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/accf_data/Makefile b/sys/modules/accf_data/Makefile new file mode 100644 index 000000000000..6c0d216c1367 --- /dev/null +++ b/sys/modules/accf_data/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/netinet + +KMOD= accf_data +SRCS= accf_data.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/accf_dns/Makefile b/sys/modules/accf_dns/Makefile new file mode 100644 index 000000000000..7fcefcc69565 --- /dev/null +++ b/sys/modules/accf_dns/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/netinet + +KMOD= accf_dns +SRCS= accf_dns.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/accf_http/Makefile b/sys/modules/accf_http/Makefile new file mode 100644 index 000000000000..2c5988b585aa --- /dev/null +++ b/sys/modules/accf_http/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/netinet + +KMOD= accf_http +SRCS= accf_http.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/accf_tls/Makefile b/sys/modules/accf_tls/Makefile new file mode 100644 index 000000000000..07fa15319b67 --- /dev/null +++ b/sys/modules/accf_tls/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/netinet + +KMOD= accf_tls +SRCS= accf_tls.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/acl_nfs4/Makefile b/sys/modules/acl_nfs4/Makefile new file mode 100644 index 000000000000..1ddb8c1558fb --- /dev/null +++ b/sys/modules/acl_nfs4/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/kern +KMOD= acl_nfs4 +SRCS= vnode_if.h subr_acl_nfs4.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/acl_posix1e/Makefile b/sys/modules/acl_posix1e/Makefile new file mode 100644 index 000000000000..397832f9b89b --- /dev/null +++ b/sys/modules/acl_posix1e/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/kern +KMOD= acl_posix1e +SRCS= vnode_if.h subr_acl_posix1e.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/Makefile b/sys/modules/acpi/Makefile new file mode 100644 index 000000000000..f646589c9fa4 --- /dev/null +++ b/sys/modules/acpi/Makefile @@ -0,0 +1,5 @@ +SUBDIR= acpi_asus acpi_asus_wmi acpi_dock acpi_fujitsu acpi_hp \ + acpi_ged acpi_ibm acpi_panasonic acpi_sbl_wmi acpi_sony \ + acpi_toshiba acpi_video acpi_wmi aibs + +.include <bsd.subdir.mk> diff --git a/sys/modules/acpi/Makefile.inc b/sys/modules/acpi/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/acpi/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/acpi/acpi_asus/Makefile b/sys/modules/acpi/acpi_asus/Makefile new file mode 100644 index 000000000000..15a560c36d15 --- /dev/null +++ b/sys/modules/acpi/acpi_asus/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_asus_wmi/Makefile b/sys/modules/acpi/acpi_asus_wmi/Makefile new file mode 100644 index 000000000000..3067bec099f5 --- /dev/null +++ b/sys/modules/acpi/acpi_asus_wmi/Makefile @@ -0,0 +1,8 @@ +.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 +SRCS+= opt_evdev.h backlight_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_dock/Makefile b/sys/modules/acpi/acpi_dock/Makefile new file mode 100644 index 000000000000..81ab3b98bd00 --- /dev/null +++ b/sys/modules/acpi/acpi_dock/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_fujitsu/Makefile b/sys/modules/acpi/acpi_fujitsu/Makefile new file mode 100644 index 000000000000..e154efb69d13 --- /dev/null +++ b/sys/modules/acpi/acpi_fujitsu/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_ged/Makefile b/sys/modules/acpi/acpi_ged/Makefile new file mode 100644 index 000000000000..c435fab4a173 --- /dev/null +++ b/sys/modules/acpi/acpi_ged/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_hp/Makefile b/sys/modules/acpi/acpi_hp/Makefile new file mode 100644 index 000000000000..9ab3dadf24a1 --- /dev/null +++ b/sys/modules/acpi/acpi_hp/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_ibm/Makefile b/sys/modules/acpi/acpi_ibm/Makefile new file mode 100644 index 000000000000..40ef83d6e78c --- /dev/null +++ b/sys/modules/acpi/acpi_ibm/Makefile @@ -0,0 +1,6 @@ +.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 opt_evdev.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_panasonic/Makefile b/sys/modules/acpi/acpi_panasonic/Makefile new file mode 100644 index 000000000000..9062374b25f4 --- /dev/null +++ b/sys/modules/acpi/acpi_panasonic/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_rapidstart/Makefile b/sys/modules/acpi/acpi_rapidstart/Makefile new file mode 100644 index 000000000000..088b265d7842 --- /dev/null +++ b/sys/modules/acpi/acpi_rapidstart/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_sbl_wmi/Makefile b/sys/modules/acpi/acpi_sbl_wmi/Makefile new file mode 100644 index 000000000000..66fa87da3547 --- /dev/null +++ b/sys/modules/acpi/acpi_sbl_wmi/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/acpi_support + +KMOD= acpi_sbl_wmi +CFLAGS+=-I${SRCTOP}/sys/dev/acpi_support +SRCS= acpi_sbl_wmi.c opt_acpi.h acpi_if.h acpi_wmi_if.h device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_sony/Makefile b/sys/modules/acpi/acpi_sony/Makefile new file mode 100644 index 000000000000..b30738cb0ca7 --- /dev/null +++ b/sys/modules/acpi/acpi_sony/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_toshiba/Makefile b/sys/modules/acpi/acpi_toshiba/Makefile new file mode 100644 index 000000000000..f60ff2e55d6c --- /dev/null +++ b/sys/modules/acpi/acpi_toshiba/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_video/Makefile b/sys/modules/acpi/acpi_video/Makefile new file mode 100644 index 000000000000..a553612c245a --- /dev/null +++ b/sys/modules/acpi/acpi_video/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/acpi/acpi_wmi/Makefile b/sys/modules/acpi/acpi_wmi/Makefile new file mode 100644 index 000000000000..55ba2f844b4f --- /dev/null +++ b/sys/modules/acpi/acpi_wmi/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/acpi/aibs/Makefile b/sys/modules/acpi/aibs/Makefile new file mode 100644 index 000000000000..346fb491adc7 --- /dev/null +++ b/sys/modules/acpi/aibs/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/adlink/Makefile b/sys/modules/adlink/Makefile new file mode 100644 index 000000000000..94e9393279ee --- /dev/null +++ b/sys/modules/adlink/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/adlink + +KMOD= adlink +SRCS= adlink.c \ + device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ae/Makefile b/sys/modules/ae/Makefile new file mode 100644 index 000000000000..49024ff58e65 --- /dev/null +++ b/sys/modules/ae/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/aesni/Makefile b/sys/modules/aesni/Makefile new file mode 100644 index 000000000000..4219182f03fe --- /dev/null +++ b/sys/modules/aesni/Makefile @@ -0,0 +1,47 @@ +.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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..7a78e5de92f0 --- /dev/null +++ b/sys/modules/age/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/agp/Makefile b/sys/modules/agp/Makefile new file mode 100644 index 000000000000..d27a78b7e437 --- /dev/null +++ b/sys/modules/agp/Makefile @@ -0,0 +1,45 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ahci/Makefile b/sys/modules/ahci/Makefile new file mode 100644 index 000000000000..d79c18397dc8 --- /dev/null +++ b/sys/modules/ahci/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/Makefile b/sys/modules/aic7xxx/Makefile new file mode 100644 index 000000000000..6e69a6db2238 --- /dev/null +++ b/sys/modules/aic7xxx/Makefile @@ -0,0 +1,19 @@ +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 <bsd.subdir.mk> diff --git a/sys/modules/aic7xxx/Makefile.inc b/sys/modules/aic7xxx/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/aic7xxx/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/aic7xxx/ahc/Makefile b/sys/modules/aic7xxx/ahc/Makefile new file mode 100644 index 000000000000..3741d4fb666f --- /dev/null +++ b/sys/modules/aic7xxx/ahc/Makefile @@ -0,0 +1,54 @@ +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 "<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 <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahc/Makefile.inc b/sys/modules/aic7xxx/ahc/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/aic7xxx/ahc/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/aic7xxx/ahc/ahc_isa/Makefile b/sys/modules/aic7xxx/ahc/ahc_isa/Makefile new file mode 100644 index 000000000000..875d26878512 --- /dev/null +++ b/sys/modules/aic7xxx/ahc/ahc_isa/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahc/ahc_pci/Makefile b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile new file mode 100644 index 000000000000..dd5da761dd66 --- /dev/null +++ b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> + +CWARNFLAGS.ahc_pci.c= ${NO_WCONSTANT_CONVERSION} diff --git a/sys/modules/aic7xxx/ahd/Makefile b/sys/modules/aic7xxx/ahd/Makefile new file mode 100644 index 000000000000..c62b69eff9c9 --- /dev/null +++ b/sys/modules/aic7xxx/ahd/Makefile @@ -0,0 +1,43 @@ +.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/aicasm ${INCLUDES} -I${SRCTOP}/sys/cam/scsi \ + -I${SRCTOP}/sys/dev/aic7xxx \ + -o aic79xx_seq.h -r aic79xx_reg.h \ + ${REG_PRINT_OPT} \ + -i "<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 <bsd.kmod.mk> + +CWARNFLAGS.ahd_pci.c= ${NO_WCONSTANT_CONVERSION} diff --git a/sys/modules/aic7xxx/aicasm/Makefile b/sys/modules/aic7xxx/aicasm/Makefile new file mode 100644 index 000000000000..77b815421e1d --- /dev/null +++ b/sys/modules/aic7xxx/aicasm/Makefile @@ -0,0 +1,7 @@ +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 new file mode 100644 index 000000000000..d89d3ea4d30f --- /dev/null +++ b/sys/modules/alc/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ale/Makefile b/sys/modules/ale/Makefile new file mode 100644 index 000000000000..0a9853ec7048 --- /dev/null +++ b/sys/modules/ale/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/allwinner/Makefile b/sys/modules/allwinner/Makefile new file mode 100644 index 000000000000..c74d772224db --- /dev/null +++ b/sys/modules/allwinner/Makefile @@ -0,0 +1,14 @@ +# Build modules specific to Allwinner. + +SUBDIR = \ + aw_mmc \ + aw_pwm \ + aw_rtc \ + aw_rsb \ + aw_sid \ + aw_spi \ + aw_thermal \ + axp81x \ + if_awg + +.include <bsd.subdir.mk> diff --git a/sys/modules/allwinner/aw_mmc/Makefile b/sys/modules/allwinner/aw_mmc/Makefile new file mode 100644 index 000000000000..25a2a69cfac1 --- /dev/null +++ b/sys/modules/allwinner/aw_mmc/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/allwinner/aw_pwm/Makefile b/sys/modules/allwinner/aw_pwm/Makefile new file mode 100644 index 000000000000..dca08d5d7c63 --- /dev/null +++ b/sys/modules/allwinner/aw_pwm/Makefile @@ -0,0 +1,13 @@ +.PATH: ${SRCTOP}/sys/dev/pwm/controller/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 <bsd.kmod.mk> diff --git a/sys/modules/allwinner/aw_rsb/Makefile b/sys/modules/allwinner/aw_rsb/Makefile new file mode 100644 index 000000000000..325dc839dce3 --- /dev/null +++ b/sys/modules/allwinner/aw_rsb/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/allwinner/aw_rtc/Makefile b/sys/modules/allwinner/aw_rtc/Makefile new file mode 100644 index 000000000000..ea41747339e0 --- /dev/null +++ b/sys/modules/allwinner/aw_rtc/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/allwinner/aw_sid/Makefile b/sys/modules/allwinner/aw_sid/Makefile new file mode 100644 index 000000000000..7d3dad68acb9 --- /dev/null +++ b/sys/modules/allwinner/aw_sid/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/allwinner/aw_spi/Makefile b/sys/modules/allwinner/aw_spi/Makefile new file mode 100644 index 000000000000..412880ce4b63 --- /dev/null +++ b/sys/modules/allwinner/aw_spi/Makefile @@ -0,0 +1,13 @@ +.PATH: ${SRCTOP}/sys/dev/spibus/controller/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 <bsd.kmod.mk> diff --git a/sys/modules/allwinner/aw_thermal/Makefile b/sys/modules/allwinner/aw_thermal/Makefile new file mode 100644 index 000000000000..911e6406d947 --- /dev/null +++ b/sys/modules/allwinner/aw_thermal/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/allwinner/axp81x/Makefile b/sys/modules/allwinner/axp81x/Makefile new file mode 100644 index 000000000000..7a07d48cc20a --- /dev/null +++ b/sys/modules/allwinner/axp81x/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/allwinner/if_awg/Makefile b/sys/modules/allwinner/if_awg/Makefile new file mode 100644 index 000000000000..b0b0abbd8e44 --- /dev/null +++ b/sys/modules/allwinner/if_awg/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/alq/Makefile b/sys/modules/alq/Makefile new file mode 100644 index 000000000000..28b7b71ac1f6 --- /dev/null +++ b/sys/modules/alq/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/kern +KMOD= alq +SRCS= opt_mac.h vnode_if.h kern_alq.c + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/am335x_dmtpps/Makefile b/sys/modules/am335x_dmtpps/Makefile new file mode 100644 index 000000000000..35cffe0934f7 --- /dev/null +++ b/sys/modules/am335x_dmtpps/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/amd_ecc_inject/Makefile b/sys/modules/amd_ecc_inject/Makefile new file mode 100644 index 000000000000..89b528f1cac0 --- /dev/null +++ b/sys/modules/amd_ecc_inject/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/amdgpio/Makefile b/sys/modules/amdgpio/Makefile new file mode 100644 index 000000000000..1ac18e65c513 --- /dev/null +++ b/sys/modules/amdgpio/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/amdsbwd/Makefile b/sys/modules/amdsbwd/Makefile new file mode 100644 index 000000000000..29857e6a6a9c --- /dev/null +++ b/sys/modules/amdsbwd/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/amdsmb/Makefile b/sys/modules/amdsmb/Makefile new file mode 100644 index 000000000000..54bc51fe7fd7 --- /dev/null +++ b/sys/modules/amdsmb/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/amdsmb + +KMOD= amdsmb +SRCS= amdsmb.c bus_if.h device_if.h pci_if.h smbus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/amdsmn/Makefile b/sys/modules/amdsmn/Makefile new file mode 100644 index 000000000000..869474580106 --- /dev/null +++ b/sys/modules/amdsmn/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/amdsmn + +KMOD= amdsmn +SRCS= amdsmn.c bus_if.h device_if.h pci_if.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/amdsmu/Makefile b/sys/modules/amdsmu/Makefile new file mode 100644 index 000000000000..752f57173d61 --- /dev/null +++ b/sys/modules/amdsmu/Makefile @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 The FreeBSD Foundation +# +# This software was developed by Aymeric Wibo <obiwac@freebsd.org> +# under sponsorship from the FreeBSD Foundation. + +.PATH: ${SRCTOP}/sys/dev/amdsmu + +KMOD= amdsmu +SRCS= amdsmu.c +SRCS+= bus_if.h device_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/amdtemp/Makefile b/sys/modules/amdtemp/Makefile new file mode 100644 index 000000000000..726e758f5d19 --- /dev/null +++ b/sys/modules/amdtemp/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/amdtemp + +KMOD= amdtemp +SRCS= amdtemp.c bus_if.h device_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/aout/Makefile b/sys/modules/aout/Makefile new file mode 100644 index 000000000000..e88d47bad683 --- /dev/null +++ b/sys/modules/aout/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/kern + +KMOD= aout +SRCS= imgact_aout.c \ + vnode_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/arcmsr/Makefile b/sys/modules/arcmsr/Makefile new file mode 100644 index 000000000000..0231cda28977 --- /dev/null +++ b/sys/modules/arcmsr/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/arm_ti/Makefile b/sys/modules/arm_ti/Makefile new file mode 100644 index 000000000000..a90d4aee3a60 --- /dev/null +++ b/sys/modules/arm_ti/Makefile @@ -0,0 +1,8 @@ +# Build modules specific to Texas Instruments ARM SoCs. + +SUBDIR = \ + ../am335x_dmtpps \ + am335x_ehrpwm \ + ti_i2c \ + +.include <bsd.subdir.mk> diff --git a/sys/modules/arm_ti/am335x_ehrpwm/Makefile b/sys/modules/arm_ti/am335x_ehrpwm/Makefile new file mode 100644 index 000000000000..af66edc69658 --- /dev/null +++ b/sys/modules/arm_ti/am335x_ehrpwm/Makefile @@ -0,0 +1,14 @@ +.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 <bsd.kmod.mk> + diff --git a/sys/modules/arm_ti/ti_i2c/Makefile b/sys/modules/arm_ti/ti_i2c/Makefile new file mode 100644 index 000000000000..dc6dfb133de5 --- /dev/null +++ b/sys/modules/arm_ti/ti_i2c/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/armv8_rng/Makefile b/sys/modules/armv8_rng/Makefile new file mode 100644 index 000000000000..29d2907aed06 --- /dev/null +++ b/sys/modules/armv8_rng/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.PATH: ${SRCTOP}/sys/dev/random + +KMOD= armv8_rng +SRCS= armv8rng.c +SRCS+= bus_if.h device_if.h + +CFLAGS+= -I${SRCTOP}/sys + +.include <bsd.kmod.mk> diff --git a/sys/modules/armv8crypto/Makefile b/sys/modules/armv8crypto/Makefile new file mode 100644 index 000000000000..74ea77fbb761 --- /dev/null +++ b/sys/modules/armv8crypto/Makefile @@ -0,0 +1,36 @@ +.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 + +CFLAGS+=-I${SRCTOP}/sys/crypto/openssl + +# 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 <bsd.kmod.mk> diff --git a/sys/modules/asmc/Makefile b/sys/modules/asmc/Makefile new file mode 100644 index 000000000000..f1b4a981ad24 --- /dev/null +++ b/sys/modules/asmc/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/asmc + +KMOD= asmc +SRCS= asmc.c opt_acpi.h acpi_if.h bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ata/Makefile b/sys/modules/ata/Makefile new file mode 100644 index 000000000000..70a4f8e29b74 --- /dev/null +++ b/sys/modules/ata/Makefile @@ -0,0 +1,5 @@ +SUBDIR = atacore +SUBDIR += ataisa +SUBDIR += atapci + +.include <bsd.subdir.mk> diff --git a/sys/modules/ata/Makefile.inc b/sys/modules/ata/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/ata/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/ata/atacore/Makefile b/sys/modules/ata/atacore/Makefile new file mode 100644 index 000000000000..85964afa1f58 --- /dev/null +++ b/sys/modules/ata/atacore/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/ataisa/Makefile b/sys/modules/ata/ataisa/Makefile new file mode 100644 index 000000000000..b15dad0a6498 --- /dev/null +++ b/sys/modules/ata/ataisa/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/Makefile b/sys/modules/ata/atapci/Makefile new file mode 100644 index 000000000000..c9d8920023f4 --- /dev/null +++ b/sys/modules/ata/atapci/Makefile @@ -0,0 +1,11 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/Makefile.inc b/sys/modules/ata/atapci/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/ata/atapci/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/ata/atapci/chipsets/Makefile b/sys/modules/ata/atapci/chipsets/Makefile new file mode 100644 index 000000000000..e34f1163bb2d --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/Makefile @@ -0,0 +1,3 @@ +SUBDIR += ataacard ataacerlabs ataamd ataati atacenatek atacypress atacyrix atahighpoint ataintel ataite atajmicron atamarvell atamicron atanational atanetcell atanvidia atapromise ataserverworks atasiliconimage atasis atavia + +.include <bsd.subdir.mk> diff --git a/sys/modules/ata/atapci/chipsets/Makefile.inc b/sys/modules/ata/atapci/chipsets/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/ata/atapci/chipsets/ataacard/Makefile b/sys/modules/ata/atapci/chipsets/ataacard/Makefile new file mode 100644 index 000000000000..0ad0650d0ae8 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/ataacard/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/ataacerlabs/Makefile b/sys/modules/ata/atapci/chipsets/ataacerlabs/Makefile new file mode 100644 index 000000000000..eeb2e1f7eb82 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/ataacerlabs/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/ataamd/Makefile b/sys/modules/ata/atapci/chipsets/ataamd/Makefile new file mode 100644 index 000000000000..58b4e6ee7975 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/ataamd/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/ataati/Makefile b/sys/modules/ata/atapci/chipsets/ataati/Makefile new file mode 100644 index 000000000000..ffc779cf3fa3 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/ataati/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atacenatek/Makefile b/sys/modules/ata/atapci/chipsets/atacenatek/Makefile new file mode 100644 index 000000000000..1c8753479fab --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atacenatek/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atacypress/Makefile b/sys/modules/ata/atapci/chipsets/atacypress/Makefile new file mode 100644 index 000000000000..edb5c20f5856 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atacypress/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atacyrix/Makefile b/sys/modules/ata/atapci/chipsets/atacyrix/Makefile new file mode 100644 index 000000000000..225318e3b466 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atacyrix/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atahighpoint/Makefile b/sys/modules/ata/atapci/chipsets/atahighpoint/Makefile new file mode 100644 index 000000000000..e889527bd877 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atahighpoint/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/ataintel/Makefile b/sys/modules/ata/atapci/chipsets/ataintel/Makefile new file mode 100644 index 000000000000..12a86fc1d9af --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/ataintel/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/ataite/Makefile b/sys/modules/ata/atapci/chipsets/ataite/Makefile new file mode 100644 index 000000000000..2f434ddb80ba --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/ataite/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atajmicron/Makefile b/sys/modules/ata/atapci/chipsets/atajmicron/Makefile new file mode 100644 index 000000000000..6b9f4c0a5435 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atajmicron/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atamarvell/Makefile b/sys/modules/ata/atapci/chipsets/atamarvell/Makefile new file mode 100644 index 000000000000..df98955ff4b6 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atamarvell/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atamicron/Makefile b/sys/modules/ata/atapci/chipsets/atamicron/Makefile new file mode 100644 index 000000000000..56c339e2607f --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atamicron/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atanational/Makefile b/sys/modules/ata/atapci/chipsets/atanational/Makefile new file mode 100644 index 000000000000..ed599f1afbd9 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atanational/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atanetcell/Makefile b/sys/modules/ata/atapci/chipsets/atanetcell/Makefile new file mode 100644 index 000000000000..7d6e1cb5d681 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atanetcell/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atanvidia/Makefile b/sys/modules/ata/atapci/chipsets/atanvidia/Makefile new file mode 100644 index 000000000000..1ee823eb6958 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atanvidia/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atapromise/Makefile b/sys/modules/ata/atapci/chipsets/atapromise/Makefile new file mode 100644 index 000000000000..b96d0e3e80f3 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atapromise/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/ataserverworks/Makefile b/sys/modules/ata/atapci/chipsets/ataserverworks/Makefile new file mode 100644 index 000000000000..1da7e531583c --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/ataserverworks/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile b/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile new file mode 100644 index 000000000000..858d8afb54d8 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atasis/Makefile b/sys/modules/ata/atapci/chipsets/atasis/Makefile new file mode 100644 index 000000000000..ba9efca9b32c --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atasis/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ata/atapci/chipsets/atavia/Makefile b/sys/modules/ata/atapci/chipsets/atavia/Makefile new file mode 100644 index 000000000000..1827dca23d76 --- /dev/null +++ b/sys/modules/ata/atapci/chipsets/atavia/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ath/Makefile b/sys/modules/ath/Makefile new file mode 100644 index 000000000000..7a6b38438032 --- /dev/null +++ b/sys/modules/ath/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> + +CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath10k/Makefile b/sys/modules/ath10k/Makefile new file mode 100644 index 000000000000..eb02bda1699f --- /dev/null +++ b/sys/modules/ath10k/Makefile @@ -0,0 +1,48 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/ath11k/Makefile b/sys/modules/ath11k/Makefile new file mode 100644 index 000000000000..fb610117dfa5 --- /dev/null +++ b/sys/modules/ath11k/Makefile @@ -0,0 +1,48 @@ +DEVATH11KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath11k + +.PATH: ${DEVATH11KDIR} + +WITH_DEBUGFS= 0 # Does not yet compile +WITH_CONFIG_PM= 0 + +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 + +SRCS+= mhi.c pci.c pcic.c + +.if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0 +CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM} +SRCS+= wow.c +.endif + +# 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 <bsd.kmod.mk> diff --git a/sys/modules/ath12k/Makefile b/sys/modules/ath12k/Makefile new file mode 100644 index 000000000000..674a68e12813 --- /dev/null +++ b/sys/modules/ath12k/Makefile @@ -0,0 +1,35 @@ +DEVATH12KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath12k + +.PATH: ${DEVATH12KDIR} + +WITH_CONFIG_ATH12K_TRACING= 0 + +KMOD= if_ath12k + +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 dp_mon.c debug.c +SRCS+= ce.c peer.c dbring.c hw.c + +SRCS+= mhi.c pci.c + +.if defined(WITH_CONFIG_ATH12K_TRACING) && ${WITH_CONFIG_ATH12K_TRACING} > 0 +CFLAGS+= -DCONFIG_ATH12K_TRACING=${WITH_CONFIG_ATH12K_TRACING} +SRCS+= trace.c +.endif + +# Other +SRCS+= ${LINUXKPI_GENSRCS} +SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h + +CFLAGS+= -DKBUILD_MODNAME='"ath12k"' + +CFLAGS+= -I${DEVATH12KDIR} +CFLAGS+= -I${DEVATH12KDIR}/.. +CFLAGS+= ${LINUXKPI_INCLUDES} +# Helpful after fresh imports. +#CFLAGS+= -ferror-limit=0 + +CFLAGS+= -DCONFIG_ATH12K_DEBUG + +.include <bsd.kmod.mk> diff --git a/sys/modules/ath_dfs/Makefile b/sys/modules/ath_dfs/Makefile new file mode 100644 index 000000000000..4e0243178cca --- /dev/null +++ b/sys/modules/ath_dfs/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> + +CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_hal/Makefile b/sys/modules/ath_hal/Makefile new file mode 100644 index 000000000000..15a124dcbf04 --- /dev/null +++ b/sys/modules/ath_hal/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..6a73cef89ad9 --- /dev/null +++ b/sys/modules/ath_hal_ar5210/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> + +CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_hal_ar5211/Makefile b/sys/modules/ath_hal_ar5211/Makefile new file mode 100644 index 000000000000..5c2e6b40741f --- /dev/null +++ b/sys/modules/ath_hal_ar5211/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> + +CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_hal_ar5212/Makefile b/sys/modules/ath_hal_ar5212/Makefile new file mode 100644 index 000000000000..9c6eac976fa6 --- /dev/null +++ b/sys/modules/ath_hal_ar5212/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> + +CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_hal_ar5416/Makefile b/sys/modules/ath_hal_ar5416/Makefile new file mode 100644 index 000000000000..b0885b55b1c0 --- /dev/null +++ b/sys/modules/ath_hal_ar5416/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> + +CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/ath_hal_ar9300/Makefile b/sys/modules/ath_hal_ar9300/Makefile new file mode 100644 index 000000000000..57e566f5bac9 --- /dev/null +++ b/sys/modules/ath_hal_ar9300/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> + +# 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 new file mode 100644 index 000000000000..5b479ce67a48 --- /dev/null +++ b/sys/modules/ath_main/Makefile @@ -0,0 +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. +# +# + +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 <bsd.kmod.mk> + +# 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 new file mode 100644 index 000000000000..537f59ef3eef --- /dev/null +++ b/sys/modules/ath_rate/Makefile @@ -0,0 +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. +# +# + +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 <bsd.kmod.mk> + +CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/athk_common/Makefile b/sys/modules/athk_common/Makefile new file mode 100644 index 000000000000..5400cfa7723d --- /dev/null +++ b/sys/modules/athk_common/Makefile @@ -0,0 +1,35 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/autofs/Makefile b/sys/modules/autofs/Makefile new file mode 100644 index 000000000000..92ab40a92595 --- /dev/null +++ b/sys/modules/autofs/Makefile @@ -0,0 +1,9 @@ +.PATH: ${SRCTOP}/sys/fs/autofs + +KMOD= autofs +SRCS= vnode_if.h \ + autofs.c \ + autofs_vnops.c \ + autofs_vfsops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/axgbe/Makefile b/sys/modules/axgbe/Makefile new file mode 100644 index 000000000000..f28e50572a2d --- /dev/null +++ b/sys/modules/axgbe/Makefile @@ -0,0 +1,7 @@ +.if ${MACHINE_CPUARCH} == "aarch64" +SUBDIR= if_axa +.elif ${MACHINE_CPUARCH} == "amd64" +SUBDIR= if_axp +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/axgbe/if_axa/Makefile b/sys/modules/axgbe/if_axa/Makefile new file mode 100644 index 000000000000..2a096ccb0b03 --- /dev/null +++ b/sys/modules/axgbe/if_axa/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/axgbe/if_axp/Makefile b/sys/modules/axgbe/if_axp/Makefile new file mode 100644 index 000000000000..c042fe026b98 --- /dev/null +++ b/sys/modules/axgbe/if_axp/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/backlight/Makefile b/sys/modules/backlight/Makefile new file mode 100644 index 000000000000..905203f1aa91 --- /dev/null +++ b/sys/modules/backlight/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bce/Makefile b/sys/modules/bce/Makefile new file mode 100644 index 000000000000..6e6756f5fbc2 --- /dev/null +++ b/sys/modules/bce/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bcm283x_clkman/Makefile b/sys/modules/bcm283x_clkman/Makefile new file mode 100644 index 000000000000..6c245a2b7dc8 --- /dev/null +++ b/sys/modules/bcm283x_clkman/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bcm283x_pwm/Makefile b/sys/modules/bcm283x_pwm/Makefile new file mode 100644 index 000000000000..4aa615d81454 --- /dev/null +++ b/sys/modules/bcm283x_pwm/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bfe/Makefile b/sys/modules/bfe/Makefile new file mode 100644 index 000000000000..2f3b820de23a --- /dev/null +++ b/sys/modules/bfe/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bge/Makefile b/sys/modules/bge/Makefile new file mode 100644 index 000000000000..49e6c455c381 --- /dev/null +++ b/sys/modules/bge/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bhnd/Makefile b/sys/modules/bhnd/Makefile new file mode 100644 index 000000000000..f07379a2a047 --- /dev/null +++ b/sys/modules/bhnd/Makefile @@ -0,0 +1,75 @@ +.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 <bsd.kmod.mk> +.include <bsd.subdir.mk> diff --git a/sys/modules/bhnd/bcma/Makefile b/sys/modules/bhnd/bcma/Makefile new file mode 100644 index 000000000000..351424441e55 --- /dev/null +++ b/sys/modules/bhnd/bcma/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bhnd/bcma_bhndb/Makefile b/sys/modules/bhnd/bcma_bhndb/Makefile new file mode 100644 index 000000000000..19fd6a89a16b --- /dev/null +++ b/sys/modules/bhnd/bcma_bhndb/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bhnd/bhndb/Makefile b/sys/modules/bhnd/bhndb/Makefile new file mode 100644 index 000000000000..9a0d68519a98 --- /dev/null +++ b/sys/modules/bhnd/bhndb/Makefile @@ -0,0 +1,18 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bhnd/bhndb_pci/Makefile b/sys/modules/bhnd/bhndb_pci/Makefile new file mode 100644 index 000000000000..29fa7cd61cd7 --- /dev/null +++ b/sys/modules/bhnd/bhndb_pci/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bhnd/cores/Makefile b/sys/modules/bhnd/cores/Makefile new file mode 100644 index 000000000000..ba7b711b3bc0 --- /dev/null +++ b/sys/modules/bhnd/cores/Makefile @@ -0,0 +1,5 @@ +SUBDIR= bhnd_pci \ + bhnd_pci_hostb \ + bhnd_pcib + +.include <bsd.subdir.mk> diff --git a/sys/modules/bhnd/cores/bhnd_pci/Makefile b/sys/modules/bhnd/cores/bhnd_pci/Makefile new file mode 100644 index 000000000000..962743c07671 --- /dev/null +++ b/sys/modules/bhnd/cores/bhnd_pci/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bhnd/cores/bhnd_pci_hostb/Makefile b/sys/modules/bhnd/cores/bhnd_pci_hostb/Makefile new file mode 100644 index 000000000000..350ac6721c9b --- /dev/null +++ b/sys/modules/bhnd/cores/bhnd_pci_hostb/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bhnd/cores/bhnd_pcib/Makefile b/sys/modules/bhnd/cores/bhnd_pcib/Makefile new file mode 100644 index 000000000000..9c7f86eca22c --- /dev/null +++ b/sys/modules/bhnd/cores/bhnd_pcib/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bhnd/siba/Makefile b/sys/modules/bhnd/siba/Makefile new file mode 100644 index 000000000000..aa933129a9f6 --- /dev/null +++ b/sys/modules/bhnd/siba/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bhnd/siba_bhndb/Makefile b/sys/modules/bhnd/siba_bhndb/Makefile new file mode 100644 index 000000000000..eaaa62e49e42 --- /dev/null +++ b/sys/modules/bhnd/siba_bhndb/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bios/Makefile b/sys/modules/bios/Makefile new file mode 100644 index 000000000000..1fe7e1e1bba3 --- /dev/null +++ b/sys/modules/bios/Makefile @@ -0,0 +1,9 @@ +# + +SUBDIR= smbios vpd + +.if ${MACHINE_ARCH} == "i386" +SUBDIR+= smapi +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/bios/smapi/Makefile b/sys/modules/bios/smapi/Makefile new file mode 100644 index 000000000000..1b5df8d12957 --- /dev/null +++ b/sys/modules/bios/smapi/Makefile @@ -0,0 +1,9 @@ +# + +.PATH: ${SRCTOP}/sys/i386/bios + +KMOD= smapi +SRCS= smapi.c smapi_bios.S \ + bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/bios/smbios/Makefile b/sys/modules/bios/smbios/Makefile new file mode 100644 index 000000000000..ca1e4b04815d --- /dev/null +++ b/sys/modules/bios/smbios/Makefile @@ -0,0 +1,9 @@ +# + +.PATH: ${SRCTOP}/sys/dev/smbios + +KMOD= smbios +SRCS= smbios.c \ + bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/bios/vpd/Makefile b/sys/modules/bios/vpd/Makefile new file mode 100644 index 000000000000..bab4e7286098 --- /dev/null +++ b/sys/modules/bios/vpd/Makefile @@ -0,0 +1,9 @@ +# + +.PATH: ${SRCTOP}/sys/x86/bios + +KMOD= vpd +SRCS= vpd.c \ + bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/blake2/Makefile b/sys/modules/blake2/Makefile new file mode 100644 index 000000000000..85d4bff8dede --- /dev/null +++ b/sys/modules/blake2/Makefile @@ -0,0 +1,89 @@ +.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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..32aec4806a2c --- /dev/null +++ b/sys/modules/bnxt/Makefile @@ -0,0 +1,4 @@ +SUBDIR= bnxt_en \ + bnxt_re + +.include <bsd.subdir.mk> diff --git a/sys/modules/bnxt/bnxt_en/Makefile b/sys/modules/bnxt/bnxt_en/Makefile new file mode 100644 index 000000000000..d90f3b91d860 --- /dev/null +++ b/sys/modules/bnxt/bnxt_en/Makefile @@ -0,0 +1,19 @@ +.PATH: ${SRCTOP}/sys/dev/bnxt/bnxt_en + +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 +SRCS += bnxt_dcb.c bnxt_dcb.h +SRCS += bnxt_auxbus_compat.c bnxt_auxbus_compat.h +SRCS += bnxt_ulp.c bnxt_ulp.h +SRCS += ${LINUXKPI_GENSRCS} + +CFLAGS+= -DIFLIB +CFLAGS+= -I${SRCTOP}/sys/ofed/include +CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include + +.include <bsd.kmod.mk> diff --git a/sys/modules/bnxt/bnxt_re/Makefile b/sys/modules/bnxt/bnxt_re/Makefile new file mode 100644 index 000000000000..d6aa701dbae6 --- /dev/null +++ b/sys/modules/bnxt/bnxt_re/Makefile @@ -0,0 +1,22 @@ +.PATH: ${SRCTOP}/sys/dev/bnxt/bnxt_re + +KMOD=bnxt_re +SRCS += ib_verbs.c ib_verbs.h +SRCS += qplib_fp.c qplib_fp.h +SRCS += qplib_sp.c qplib_sp.h +SRCS += qplib_res.c qplib_res.h +SRCS += qplib_rcfw.c qplib_rcfw.h +SRCS += stats.c stats.h +SRCS += main.c bnxt_re.h +SRCS += opt_inet.h opt_inet6.h opt_ratelimit.h +SRCS += ${LINUXKPI_GENSRCS} + +CFLAGS+= -I${SRCTOP}/sys/dev/bnxt/bnxt_en +CFLAGS+= -I${SRCTOP}/sys/ofed/include +CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi +CFLAGS+= ${LINUXKPI_INCLUDES} +CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM + +.include <bsd.kmod.mk> + +CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} diff --git a/sys/modules/bridgestp/Makefile b/sys/modules/bridgestp/Makefile new file mode 100644 index 000000000000..71e383510189 --- /dev/null +++ b/sys/modules/bridgestp/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/net + +KMOD= bridgestp +SRCS= bridgestp.c + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/bwi/Makefile b/sys/modules/bwi/Makefile new file mode 100644 index 000000000000..425009276488 --- /dev/null +++ b/sys/modules/bwi/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bwn/Makefile b/sys/modules/bwn/Makefile new file mode 100644 index 000000000000..37c7b35db7e9 --- /dev/null +++ b/sys/modules/bwn/Makefile @@ -0,0 +1,38 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/bxe/Makefile b/sys/modules/bxe/Makefile new file mode 100644 index 000000000000..7e6d73a63fa9 --- /dev/null +++ b/sys/modules/bxe/Makefile @@ -0,0 +1,20 @@ +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 <bsd.kmod.mk> +CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/bytgpio/Makefile b/sys/modules/bytgpio/Makefile new file mode 100644 index 000000000000..6b5c3fa79d87 --- /dev/null +++ b/sys/modules/bytgpio/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/cam/Makefile b/sys/modules/cam/Makefile new file mode 100644 index 000000000000..41783c54e8a9 --- /dev/null +++ b/sys/modules/cam/Makefile @@ -0,0 +1,54 @@ +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+= bus_if.h +SRCS+= device_if.h +SRCS+= vnode_if.h +SRCS+= ata_all.c +SRCS+= ata_da.c +SRCS+= ata_pmp.c +SRCS+= ata_xpt.c +SRCS+= cam.c +SRCS+= cam_compat.c +SRCS+= cam_iosched.c +SRCS+= cam_periph.c +SRCS+= cam_queue.c +SRCS+= cam_sim.c +SRCS+= cam_xpt.c +SRCS+= nvme_all.c +SRCS+= nvme_da.c +SRCS+= nvme_util.c +SRCS+= nvme_xpt.c +SRCS+= scsi_all.c +SRCS+= scsi_cd.c +SRCS+= scsi_ch.c +SRCS+= scsi_da.c +SRCS+= scsi_enc.c +SRCS+= scsi_enc_safte.c +SRCS+= scsi_enc_ses.c +SRCS+= scsi_pass.c +SRCS+= scsi_pt.c +SRCS+= scsi_sa.c +SRCS+= scsi_sg.c +SRCS+= scsi_targ_bh.c +SRCS+= scsi_target.c +SRCS+= scsi_xpt.c +SRCS+= smp_all.c + +EXPORT_SYMS= YES # XXX evaluate + +.include <bsd.kmod.mk> diff --git a/sys/modules/cardbus/Makefile b/sys/modules/cardbus/Makefile new file mode 100644 index 000000000000..873a2f0cb89c --- /dev/null +++ b/sys/modules/cardbus/Makefile @@ -0,0 +1,7 @@ +.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 + +.include <bsd.kmod.mk> diff --git a/sys/modules/carp/Makefile b/sys/modules/carp/Makefile new file mode 100644 index 000000000000..385c42f12bd6 --- /dev/null +++ b/sys/modules/carp/Makefile @@ -0,0 +1,9 @@ +.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 + +.include <bsd.kmod.mk> diff --git a/sys/modules/cas/Makefile b/sys/modules/cas/Makefile new file mode 100644 index 000000000000..6e0098414ef4 --- /dev/null +++ b/sys/modules/cas/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/cbb/Makefile b/sys/modules/cbb/Makefile new file mode 100644 index 000000000000..22954fc1a221 --- /dev/null +++ b/sys/modules/cbb/Makefile @@ -0,0 +1,7 @@ +.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 + +.include <bsd.kmod.mk> diff --git a/sys/modules/cc/Makefile b/sys/modules/cc/Makefile new file mode 100644 index 000000000000..2ec1c49621c1 --- /dev/null +++ b/sys/modules/cc/Makefile @@ -0,0 +1,19 @@ +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 <bsd.subdir.mk> diff --git a/sys/modules/cc/cc_cdg/Makefile b/sys/modules/cc/cc_cdg/Makefile new file mode 100644 index 000000000000..828f309dcc00 --- /dev/null +++ b/sys/modules/cc/cc_cdg/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/netinet/cc +KMOD= cc_cdg +SRCS= cc_cdg.c opt_kern_tls.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cc/cc_chd/Makefile b/sys/modules/cc/cc_chd/Makefile new file mode 100644 index 000000000000..b8e6304da9c1 --- /dev/null +++ b/sys/modules/cc/cc_chd/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/netinet/cc +KMOD= cc_chd +SRCS= cc_chd.c opt_kern_tls.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cc/cc_cubic/Makefile b/sys/modules/cc/cc_cubic/Makefile new file mode 100644 index 000000000000..28d662c6d1f8 --- /dev/null +++ b/sys/modules/cc/cc_cubic/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/netinet/cc +KMOD= cc_cubic +SRCS= cc_cubic.c opt_kern_tls.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cc/cc_dctcp/Makefile b/sys/modules/cc/cc_dctcp/Makefile new file mode 100644 index 000000000000..7ef327b50293 --- /dev/null +++ b/sys/modules/cc/cc_dctcp/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/netinet/cc +KMOD= cc_dctcp +SRCS= cc_dctcp.c opt_kern_tls.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cc/cc_hd/Makefile b/sys/modules/cc/cc_hd/Makefile new file mode 100644 index 000000000000..d1df7f60761f --- /dev/null +++ b/sys/modules/cc/cc_hd/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/netinet/cc +KMOD= cc_hd +SRCS= cc_hd.c opt_kern_tls.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cc/cc_htcp/Makefile b/sys/modules/cc/cc_htcp/Makefile new file mode 100644 index 000000000000..12506b20a719 --- /dev/null +++ b/sys/modules/cc/cc_htcp/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/netinet/cc +KMOD= cc_htcp +SRCS= cc_htcp.c opt_kern_tls.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cc/cc_newreno/Makefile b/sys/modules/cc/cc_newreno/Makefile new file mode 100644 index 000000000000..7b1ee5a1a8ce --- /dev/null +++ b/sys/modules/cc/cc_newreno/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/netinet/cc +KMOD= cc_newreno +SRCS= cc_newreno.c opt_kern_tls.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cc/cc_vegas/Makefile b/sys/modules/cc/cc_vegas/Makefile new file mode 100644 index 000000000000..6929ea55bc8b --- /dev/null +++ b/sys/modules/cc/cc_vegas/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/netinet/cc +KMOD= cc_vegas +SRCS= cc_vegas.c opt_kern_tls.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ccp/Makefile b/sys/modules/ccp/Makefile new file mode 100644 index 000000000000..d268f0b58a91 --- /dev/null +++ b/sys/modules/ccp/Makefile @@ -0,0 +1,19 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/cd9660/Makefile b/sys/modules/cd9660/Makefile new file mode 100644 index 000000000000..e39e859b933f --- /dev/null +++ b/sys/modules/cd9660/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/cd9660_iconv/Makefile b/sys/modules/cd9660_iconv/Makefile new file mode 100644 index 000000000000..1e6f97cf8ce2 --- /dev/null +++ b/sys/modules/cd9660_iconv/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/fs/cd9660 +KMOD= cd9660_iconv +SRCS= cd9660_iconv.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/cfi/Makefile b/sys/modules/cfi/Makefile new file mode 100644 index 000000000000..d71d2ba0cc84 --- /dev/null +++ b/sys/modules/cfi/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/cfiscsi/Makefile b/sys/modules/cfiscsi/Makefile new file mode 100644 index 000000000000..f896e27c09f2 --- /dev/null +++ b/sys/modules/cfiscsi/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/chromebook_platform/Makefile b/sys/modules/chromebook_platform/Makefile new file mode 100644 index 000000000000..287db3565c0d --- /dev/null +++ b/sys/modules/chromebook_platform/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/chromebook_platform +KMOD= chromebook_platform +SRCS= chromebook_platform.c bus_if.h device_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/chvgpio/Makefile b/sys/modules/chvgpio/Makefile new file mode 100644 index 000000000000..6983da86bd9e --- /dev/null +++ b/sys/modules/chvgpio/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ciss/Makefile b/sys/modules/ciss/Makefile new file mode 100644 index 000000000000..81b50a7111d1 --- /dev/null +++ b/sys/modules/ciss/Makefile @@ -0,0 +1,9 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/coretemp/Makefile b/sys/modules/coretemp/Makefile new file mode 100644 index 000000000000..3873009ada49 --- /dev/null +++ b/sys/modules/coretemp/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/coretemp + +KMOD= coretemp +SRCS= coretemp.c bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cpsw/Makefile b/sys/modules/cpsw/Makefile new file mode 100644 index 000000000000..3b083a326150 --- /dev/null +++ b/sys/modules/cpsw/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/cpuctl/Makefile b/sys/modules/cpuctl/Makefile new file mode 100644 index 000000000000..35823e959159 --- /dev/null +++ b/sys/modules/cpuctl/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/cpuctl + +KMOD= cpuctl +SRCS= cpuctl.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/cpufreq/Makefile b/sys/modules/cpufreq/Makefile new file mode 100644 index 000000000000..9a417f72fc27 --- /dev/null +++ b/sys/modules/cpufreq/Makefile @@ -0,0 +1,24 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/crypto/Makefile b/sys/modules/crypto/Makefile new file mode 100644 index 000000000000..95700b23c72f --- /dev/null +++ b/sys/modules/crypto/Makefile @@ -0,0 +1,103 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/cryptodev/Makefile b/sys/modules/cryptodev/Makefile new file mode 100644 index 000000000000..9a2f30d094a4 --- /dev/null +++ b/sys/modules/cryptodev/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/opencrypto +KMOD = cryptodev +SRCS = cryptodev.c +SRCS += bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ctl/Makefile b/sys/modules/ctl/Makefile new file mode 100644 index 000000000000..86fd89feb4b2 --- /dev/null +++ b/sys/modules/ctl/Makefile @@ -0,0 +1,33 @@ +.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_nvme_all.c +SRCS+= ctl_nvme_cmd_table.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 <bsd.kmod.mk> diff --git a/sys/modules/cuse/Makefile b/sys/modules/cuse/Makefile new file mode 100644 index 000000000000..f7a2c9d5c0c5 --- /dev/null +++ b/sys/modules/cuse/Makefile @@ -0,0 +1,31 @@ +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/cxgb/Makefile b/sys/modules/cxgb/Makefile new file mode 100644 index 000000000000..2989ad580b97 --- /dev/null +++ b/sys/modules/cxgb/Makefile @@ -0,0 +1,7 @@ +SYSDIR?=${SRCTOP}/sys +.include "${SYSDIR}/conf/kern.opts.mk" + +SUBDIR= cxgb +SUBDIR+= cxgb_t3fw + +.include <bsd.subdir.mk> diff --git a/sys/modules/cxgb/cxgb/Makefile b/sys/modules/cxgb/cxgb/Makefile new file mode 100644 index 000000000000..736bd75e3f2d --- /dev/null +++ b/sys/modules/cxgb/cxgb/Makefile @@ -0,0 +1,14 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/cxgb/cxgb_t3fw/Makefile b/sys/modules/cxgb/cxgb_t3fw/Makefile new file mode 100644 index 000000000000..b97e3179c6c4 --- /dev/null +++ b/sys/modules/cxgb/cxgb_t3fw/Makefile @@ -0,0 +1,8 @@ +CXGB = ${SRCTOP}/sys/dev/cxgb +.PATH: ${CXGB} + +KMOD= cxgb_t3fw +SRCS+= cxgb_t3fw.c +CFLAGS+= -g -I${CXGB} + +.include <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/Makefile b/sys/modules/cxgbe/Makefile new file mode 100644 index 000000000000..c2ee71465789 --- /dev/null +++ b/sys/modules/cxgbe/Makefile @@ -0,0 +1,31 @@ +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+= t7_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 <bsd.subdir.mk> diff --git a/sys/modules/cxgbe/ccr/Makefile b/sys/modules/cxgbe/ccr/Makefile new file mode 100644 index 000000000000..dade268baea2 --- /dev/null +++ b/sys/modules/cxgbe/ccr/Makefile @@ -0,0 +1,17 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/cxgbei/Makefile b/sys/modules/cxgbe/cxgbei/Makefile new file mode 100644 index 000000000000..7238ec6b423a --- /dev/null +++ b/sys/modules/cxgbe/cxgbei/Makefile @@ -0,0 +1,21 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/if_cc/Makefile b/sys/modules/cxgbe/if_cc/Makefile new file mode 100644 index 000000000000..76a482a98b30 --- /dev/null +++ b/sys/modules/cxgbe/if_cc/Makefile @@ -0,0 +1,10 @@ +# +# + +CXGBE= ${SRCTOP}/sys/dev/cxgbe +.PATH: ${CXGBE} + +KMOD= if_cc +SRCS= if_cc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/if_ccv/Makefile b/sys/modules/cxgbe/if_ccv/Makefile new file mode 100644 index 000000000000..fc71092dd70e --- /dev/null +++ b/sys/modules/cxgbe/if_ccv/Makefile @@ -0,0 +1,10 @@ +# +# + +CXGBE= ${SRCTOP}/sys/dev/cxgbe +.PATH: ${CXGBE} + +KMOD= if_ccv +SRCS= if_ccv.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/if_cxgbe/Makefile b/sys/modules/cxgbe/if_cxgbe/Makefile new file mode 100644 index 000000000000..33383c84837f --- /dev/null +++ b/sys/modules/cxgbe/if_cxgbe/Makefile @@ -0,0 +1,48 @@ +# +# + +.include <kmod.opts.mk> + +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.KERN_TLS+= t7_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_tpt.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 <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/if_cxgbev/Makefile b/sys/modules/cxgbe/if_cxgbev/Makefile new file mode 100644 index 000000000000..122733276535 --- /dev/null +++ b/sys/modules/cxgbe/if_cxgbev/Makefile @@ -0,0 +1,20 @@ +# +# + +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 <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/if_cxl/Makefile b/sys/modules/cxgbe/if_cxl/Makefile new file mode 100644 index 000000000000..f387de89eb33 --- /dev/null +++ b/sys/modules/cxgbe/if_cxl/Makefile @@ -0,0 +1,10 @@ +# +# + +CXGBE= ${SRCTOP}/sys/dev/cxgbe +.PATH: ${CXGBE} + +KMOD= if_cxl +SRCS= if_cxl.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/if_cxlv/Makefile b/sys/modules/cxgbe/if_cxlv/Makefile new file mode 100644 index 000000000000..b289f673bf15 --- /dev/null +++ b/sys/modules/cxgbe/if_cxlv/Makefile @@ -0,0 +1,10 @@ +# +# + +CXGBE= ${SRCTOP}/sys/dev/cxgbe +.PATH: ${CXGBE} + +KMOD= if_cxlv +SRCS= if_cxlv.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/iw_cxgbe/Makefile b/sys/modules/cxgbe/iw_cxgbe/Makefile new file mode 100644 index 000000000000..83a861bf9d45 --- /dev/null +++ b/sys/modules/cxgbe/iw_cxgbe/Makefile @@ -0,0 +1,23 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/t4_firmware/Makefile b/sys/modules/cxgbe/t4_firmware/Makefile new file mode 100644 index 000000000000..15928bdb0207 --- /dev/null +++ b/sys/modules/cxgbe/t4_firmware/Makefile @@ -0,0 +1,22 @@ +# +# + +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_<name>.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.5.0 +FIRMWS+= t4fw-${T4FW_VER}.bin:t4fw:${T4FW_VER} + +.include <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/t5_firmware/Makefile b/sys/modules/cxgbe/t5_firmware/Makefile new file mode 100644 index 000000000000..cf2c3e9006bd --- /dev/null +++ b/sys/modules/cxgbe/t5_firmware/Makefile @@ -0,0 +1,22 @@ +# +# + +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_<name>.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.5.0 +FIRMWS+= t5fw-${T5FW_VER}.bin:t5fw:${T5FW_VER} + +.include <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/t6_firmware/Makefile b/sys/modules/cxgbe/t6_firmware/Makefile new file mode 100644 index 000000000000..5bc7c8e8e0b6 --- /dev/null +++ b/sys/modules/cxgbe/t6_firmware/Makefile @@ -0,0 +1,22 @@ +# +# + +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_<name>.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.5.0 +FIRMWS+= t6fw-${T6FW_VER}.bin:t6fw:${T6FW_VER} + +.include <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/t7_firmware/Makefile b/sys/modules/cxgbe/t7_firmware/Makefile new file mode 100644 index 000000000000..afce06487f22 --- /dev/null +++ b/sys/modules/cxgbe/t7_firmware/Makefile @@ -0,0 +1,23 @@ +# +# $FreeBSD$ +# + +T7FW= ${SRCTOP}/sys/dev/cxgbe/firmware +.PATH: ${T7FW} + +KMOD= t7fw_cfg +FIRMWS= ${KMOD}.txt:${KMOD}:1.0.0.0 + +# You can have additional configuration files in the ${T7FW} directory. +# t7fw_cfg_<name>.txt +CFG_FILES != cd ${T7FW} && echo ${KMOD}_*.txt +.for F in ${CFG_FILES} +.if exists(${F}) +FIRMWS+= ${F}:${F:C/.txt//}:1.0.0.0 +.endif +.endfor + +#T7FW_VER= 1.27.0.71 +#FIRMWS+= t7fw-${T7FW_VER}.bin:t7fw:${T7FW_VER} + +.include <bsd.kmod.mk> diff --git a/sys/modules/cxgbe/tom/Makefile b/sys/modules/cxgbe/tom/Makefile new file mode 100644 index 000000000000..301958ac5844 --- /dev/null +++ b/sys/modules/cxgbe/tom/Makefile @@ -0,0 +1,25 @@ +# +# + +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 <bsd.kmod.mk> diff --git a/sys/modules/dc/Makefile b/sys/modules/dc/Makefile new file mode 100644 index 000000000000..3ca6edff82a2 --- /dev/null +++ b/sys/modules/dc/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/dcons/Makefile b/sys/modules/dcons/Makefile new file mode 100644 index 000000000000..ce264992a657 --- /dev/null +++ b/sys/modules/dcons/Makefile @@ -0,0 +1,21 @@ +# $Id: Makefile,v 1.6 2003/10/24 15:41:26 simokawa Exp $ + +.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 <bsd.kmod.mk> diff --git a/sys/modules/dcons_crom/Makefile b/sys/modules/dcons_crom/Makefile new file mode 100644 index 000000000000..497d957abe62 --- /dev/null +++ b/sys/modules/dcons_crom/Makefile @@ -0,0 +1,13 @@ +# $Id: Makefile,v 1.6 2003/10/24 15:43:24 simokawa Exp $ + +.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 <bsd.kmod.mk> diff --git a/sys/modules/dpaa2/Makefile b/sys/modules/dpaa2/Makefile new file mode 100644 index 000000000000..816d6fa5cf4a --- /dev/null +++ b/sys/modules/dpaa2/Makefile @@ -0,0 +1,48 @@ +.PATH: ${SRCTOP}/sys/dev/dpaa2 + +KMOD= dpaa2 + +SRCS= dpaa2_mc.c +SRCS+= dpaa2_rc.c +SRCS+= dpaa2_io.c +SRCS+= dpaa2_bp.c +SRCS+= dpaa2_ni.c +SRCS+= dpaa2_mcp.c +SRCS+= dpaa2_swp.c +SRCS+= dpaa2_mac.c +SRCS+= dpaa2_con.c +SRCS+= dpaa2_buf.c +SRCS+= dpaa2_channel.c +SRCS+= dpaa2_types.c + +SRCS+= dpaa2_cmd_if.c dpaa2_cmd_if.h +SRCS+= dpaa2_swp_if.c dpaa2_swp_if.h +SRCS+= dpaa2_mc_if.c dpaa2_mc_if.h +SRCS+= memac_mdio_common.c memac_mdio_if.c memac_mdio_if.h + +SRCS+= dpaa2_console.c + +SRCS+= bus_if.h device_if.h miibus_if.h +SRCS+= pcib_if.h pci_if.h + +SRCS+= opt_acpi.h +SRCS+= opt_platform.h +SRCS+= opt_rss.h + +SRCS.DEV_ACPI= dpaa2_mc_acpi.c \ + memac_mdio_acpi.c \ + acpi_if.h \ + acpi_bus_if.h + +.if !empty(OPT_FDT) +SRCS+= dpaa2_mc_fdt.c \ + memac_mdio_fdt.c \ + ofw_bus_if.h +.endif + +MFILES= dev/dpaa2/dpaa2_cmd_if.m \ + dev/dpaa2/dpaa2_swp_if.m \ + dev/dpaa2/dpaa2_mc_if.m \ + dev/dpaa2/memac_mdio_if.m + +.include <bsd.kmod.mk> diff --git a/sys/modules/dpdk_lpm4/Makefile b/sys/modules/dpdk_lpm4/Makefile new file mode 100644 index 000000000000..ff68fac78915 --- /dev/null +++ b/sys/modules/dpdk_lpm4/Makefile @@ -0,0 +1,10 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/dpdk_lpm6/Makefile b/sys/modules/dpdk_lpm6/Makefile new file mode 100644 index 000000000000..f2248e5d1c1c --- /dev/null +++ b/sys/modules/dpdk_lpm6/Makefile @@ -0,0 +1,10 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/dpms/Makefile b/sys/modules/dpms/Makefile new file mode 100644 index 000000000000..de15963f1084 --- /dev/null +++ b/sys/modules/dpms/Makefile @@ -0,0 +1,7 @@ +KMOD= dpms +SRCS= bus_if.h device_if.h pci_if.h + +.PATH: ${SRCTOP}/sys/dev/dpms +SRCS+= dpms.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/dtb/allwinner/Makefile b/sys/modules/dtb/allwinner/Makefile new file mode 100644 index 000000000000..242ee5d974ad --- /dev/null +++ b/sys/modules/dtb/allwinner/Makefile @@ -0,0 +1,71 @@ +# All the dts files for allwinner systems we support. + +.if ${MACHINE_ARCH} == "armv7" +DTS= \ + allwinner/sun4i-a10-cubieboard.dts \ + allwinner/sun4i-a10-olinuxino-lime.dts \ + allwinner/sun6i-a31s-sinovoip-bpi-m2.dts \ + allwinner/sun5i-a13-olinuxino.dts \ + allwinner/sun5i-r8-chip.dts \ + allwinner/sun7i-a20-bananapi.dts \ + allwinner/sun7i-a20-cubieboard2.dts \ + allwinner/sun7i-a20-lamobo-r1.dts \ + allwinner/sun7i-a20-olimex-som-evb.dts \ + allwinner/sun7i-a20-pcduino3.dts \ + allwinner/sun8i-a83t-bananapi-m3.dts \ + allwinner/sun8i-h2-plus-orangepi-zero.dts \ + allwinner/sun8i-h3-nanopi-m1.dts \ + allwinner/sun8i-h3-nanopi-m1-plus.dts \ + allwinner/sun8i-h3-nanopi-neo.dts \ + allwinner/sun8i-h3-orangepi-one.dts \ + allwinner/sun8i-h3-orangepi-pc.dts \ + allwinner/sun8i-h3-orangepi-pc-plus.dts \ + allwinner/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 \ + sun8i-h3-usb1.dtso \ + sun8i-h3-usb2.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 <bsd.dtb.mk> diff --git a/sys/modules/dtb/am335x/Makefile b/sys/modules/dtb/am335x/Makefile new file mode 100644 index 000000000000..9c8f007cf4e2 --- /dev/null +++ b/sys/modules/dtb/am335x/Makefile @@ -0,0 +1,12 @@ +# 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 <bsd.dtb.mk> diff --git a/sys/modules/dtb/freescale/Makefile b/sys/modules/dtb/freescale/Makefile new file mode 100644 index 000000000000..871c15330fe3 --- /dev/null +++ b/sys/modules/dtb/freescale/Makefile @@ -0,0 +1,8 @@ +# 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 <bsd.dtb.mk> diff --git a/sys/modules/dtb/imx5/Makefile b/sys/modules/dtb/imx5/Makefile new file mode 100644 index 000000000000..ff55e4fc85a1 --- /dev/null +++ b/sys/modules/dtb/imx5/Makefile @@ -0,0 +1,5 @@ +# All the dts files for imx5 systems we support. +DTS= \ + imx53-qsb.dts + +.include <bsd.dtb.mk> diff --git a/sys/modules/dtb/imx6/Makefile b/sys/modules/dtb/imx6/Makefile new file mode 100644 index 000000000000..7d210e8109a6 --- /dev/null +++ b/sys/modules/dtb/imx6/Makefile @@ -0,0 +1,18 @@ +# All the dts files for imx6 systems we support. +DTS= \ + nxp/imx/imx6dl-cubox-i.dts \ + nxp/imx/imx6q-cubox-i.dts \ + nxp/imx/imx6dl-hummingboard.dts \ + nxp/imx/imx6q-hummingboard.dts \ + nxp/imx/imx6dl-nitrogen6x.dts \ + nxp/imx/imx6q-nitrogen6_max.dts \ + nxp/imx/imx6q-nitrogen6x.dts \ + nxp/imx/imx6qp-nitrogen6_max.dts \ + nxp/imx/imx6sx-nitrogen6sx.dts \ + nxp/imx/imx6dl-riotboard.dts \ + nxp/imx/imx6dl-wandboard.dts \ + nxp/imx/imx6dl-wandboard-revb1.dts \ + nxp/imx/imx6q-wandboard.dts \ + nxp/imx/imx6q-wandboard-revb1.dts \ + +.include <bsd.dtb.mk> diff --git a/sys/modules/dtb/imx8/Makefile b/sys/modules/dtb/imx8/Makefile new file mode 100644 index 000000000000..1622cf68b6e0 --- /dev/null +++ b/sys/modules/dtb/imx8/Makefile @@ -0,0 +1,6 @@ +# All the dts files for imx8 systems we support. +DTS= \ + freescale/imx8mq-evk.dts \ + freescale/imx8mq-nitrogen.dts + +.include <bsd.dtb.mk> diff --git a/sys/modules/dtb/mv/Makefile b/sys/modules/dtb/mv/Makefile new file mode 100644 index 000000000000..0c78527b1fcc --- /dev/null +++ b/sys/modules/dtb/mv/Makefile @@ -0,0 +1,16 @@ +# All the dts files for Marvell systems we support. + +.if ${MACHINE_ARCH} == "armv7" +DTS= \ + marvell/armada-388-clearfog.dts \ + marvell/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 <bsd.dtb.mk> diff --git a/sys/modules/dtb/nvidia/Makefile b/sys/modules/dtb/nvidia/Makefile new file mode 100644 index 000000000000..c032ee7c563c --- /dev/null +++ b/sys/modules/dtb/nvidia/Makefile @@ -0,0 +1,9 @@ +# All the dts files for Nvidia ARM systems we support. +.if ${MACHINE_ARCH} == "armv7" +DTS= tegra124-jetson-tk1-fbsd.dts +DTS+= nvidia/tegra124-jetson-tk1.dts +.elif ${MACHINE_ARCH} == "aarch64" +DTS= nvidia/tegra210-p2371-2180.dts +DTS+= nvidia/tegra210-p3450-0000.dts +.endif +.include <bsd.dtb.mk> diff --git a/sys/modules/dtb/qcom/Makefile b/sys/modules/dtb/qcom/Makefile new file mode 100644 index 000000000000..7a70e823a2e1 --- /dev/null +++ b/sys/modules/dtb/qcom/Makefile @@ -0,0 +1,4 @@ +.if ${MACHINE_ARCH} == "aarch64" +DTS= qcom/x1e78100-lenovo-thinkpad-t14s.dts +.endif +.include <bsd.dtb.mk> diff --git a/sys/modules/dtb/rockchip/Makefile b/sys/modules/dtb/rockchip/Makefile new file mode 100644 index 000000000000..9c8ca1acc837 --- /dev/null +++ b/sys/modules/dtb/rockchip/Makefile @@ -0,0 +1,35 @@ +# All the dts files for rockchip systems we support. + +.if ${MACHINE_ARCH} == "armv7" +DTS= \ + rockchip/rk3288-tinker.dts \ + rockchip/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-4c-plus.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 \ + rockchip/rk3566-quartz64-a.dts \ + rockchip/rk3568-nanopi-r5s.dts \ + rockchip/rk3566-radxa-zero-3e.dts \ + rockchip/rk3566-radxa-zero-3w.dts \ + rockchip/rk3568-bpi-r2-pro.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 <bsd.dtb.mk> diff --git a/sys/modules/dtb/rpi/Makefile b/sys/modules/dtb/rpi/Makefile new file mode 100644 index 000000000000..57ba9ec98d09 --- /dev/null +++ b/sys/modules/dtb/rpi/Makefile @@ -0,0 +1,12 @@ +# 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 <bsd.dtb.mk> diff --git a/sys/modules/dtb/sifive/Makefile b/sys/modules/dtb/sifive/Makefile new file mode 100644 index 000000000000..7a823735e17a --- /dev/null +++ b/sys/modules/dtb/sifive/Makefile @@ -0,0 +1,5 @@ +DTS= \ + sifive/hifive-unleashed-a00.dts \ + sifive/hifive-unmatched-a00.dts + +.include <bsd.dtb.mk> diff --git a/sys/modules/dtb/zynq/Makefile b/sys/modules/dtb/zynq/Makefile new file mode 100644 index 000000000000..d10c42afe24c --- /dev/null +++ b/sys/modules/dtb/zynq/Makefile @@ -0,0 +1,6 @@ +# All the dts files for Zynq systems we support. +DTS= \ + zedboard.dts \ + zybo.dts + +.include <bsd.dtb.mk> diff --git a/sys/modules/dtrace/Makefile b/sys/modules/dtrace/Makefile new file mode 100644 index 000000000000..3a3769b8b4b5 --- /dev/null +++ b/sys/modules/dtrace/Makefile @@ -0,0 +1,38 @@ +.include "Makefile.inc" + +SUBDIR= dtaudit \ + dtmalloc \ + dtnfscl \ + dtrace \ + dtraceall \ + dtrace_test \ + fbt \ + profile \ + prototype \ + 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" +.if !empty(COMPAT_FREEBSD32_ENABLED) +SUBDIR+= systrace_freebsd32 +.endif +.endif +.if ${MACHINE_CPUARCH} != "powerpc" || ${MACHINE_ARCH} == "powerpc64" +SUBDIR+= sdt +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/dtrace/Makefile.inc b/sys/modules/dtrace/Makefile.inc new file mode 100644 index 000000000000..c23cf4c476ce --- /dev/null +++ b/sys/modules/dtrace/Makefile.inc @@ -0,0 +1,23 @@ +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 new file mode 100644 index 000000000000..205c4ef08795 --- /dev/null +++ b/sys/modules/dtrace/dtaudit/Makefile @@ -0,0 +1,13 @@ +SYSDIR?= ${SRCTOP}/sys + +.PATH: ${SYSDIR}/security/audit + +KMOD= dtaudit +SRCS= audit_dtrace.c \ + vnode_if.h + +CFLAGS+= ${OPENZFS_CFLAGS} + +.include <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/dtmalloc/Makefile b/sys/modules/dtrace/dtmalloc/Makefile new file mode 100644 index 000000000000..6b58ac097378 --- /dev/null +++ b/sys/modules/dtrace/dtmalloc/Makefile @@ -0,0 +1,13 @@ +SYSDIR?= ${SRCTOP}/sys + +.PATH: ${SYSDIR}/cddl/dev/dtmalloc + +KMOD= dtmalloc +SRCS= dtmalloc.c +SRCS+= vnode_if.h + +CFLAGS+= ${OPENZFS_CFLAGS} + +.include <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/dtnfscl/Makefile b/sys/modules/dtrace/dtnfscl/Makefile new file mode 100644 index 000000000000..11b254c3d7bd --- /dev/null +++ b/sys/modules/dtrace/dtnfscl/Makefile @@ -0,0 +1,13 @@ +SYSDIR?= ${SRCTOP}/sys + +.PATH: ${SYSDIR}/fs/nfsclient + +KMOD= dtnfscl +SRCS= nfs_clkdtrace.c \ + vnode_if.h + +CFLAGS+= ${OPENZFS_CFLAGS} + +.include <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/dtrace/Makefile b/sys/modules/dtrace/dtrace/Makefile new file mode 100644 index 000000000000..472de0ff944b --- /dev/null +++ b/sys/modules/dtrace/dtrace/Makefile @@ -0,0 +1,65 @@ +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_isa.c \ + 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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..dacb44710fb4 --- /dev/null +++ b/sys/modules/dtrace/dtrace_test/Makefile @@ -0,0 +1,14 @@ +SYSDIR?= ${SRCTOP}/sys + +.PATH: ${SYSDIR}/cddl/dev/dtrace + +KMOD= dtrace_test +SRCS= dtrace_test.c + +SRCS+= vnode_if.h + +CFLAGS+= -I${SYSDIR} + +.include <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/dtraceall/Makefile b/sys/modules/dtrace/dtraceall/Makefile new file mode 100644 index 000000000000..8228a0f0c98f --- /dev/null +++ b/sys/modules/dtrace/dtraceall/Makefile @@ -0,0 +1,10 @@ +SYSDIR?= ${SRCTOP}/sys + +KMOD= dtraceall +SRCS= dtraceall.c opt_nfs.h + +CFLAGS+= -I${SYSDIR} + +.include <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/dtraceall/dtraceall.c b/sys/modules/dtrace/dtraceall/dtraceall.c new file mode 100644 index 000000000000..1978b9ead362 --- /dev/null +++ b/sys/modules/dtrace/dtraceall/dtraceall.c @@ -0,0 +1,88 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (C) 2008 John Birrell <jb@freebsd.org> + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that 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. + */ + +#include <sys/param.h> +#include <sys/systm.h> +#include <sys/conf.h> +#include <sys/kernel.h> +#include <sys/module.h> +#include <sys/errno.h> +#include "opt_nfs.h" + +static int +dtraceall_modevent(module_t mod __unused, int type, void *data __unused) +{ + int error = 0; + + switch (type) { + case MOD_LOAD: + break; + + case MOD_UNLOAD: + break; + + case MOD_SHUTDOWN: + break; + + default: + error = EOPNOTSUPP; + break; + + } + + return (error); +} + +DEV_MODULE(dtraceall, dtraceall_modevent, NULL); +MODULE_VERSION(dtraceall, 1); + +/* All the DTrace modules should be dependencies here: */ +MODULE_DEPEND(dtraceall, opensolaris, 1, 1, 1); +MODULE_DEPEND(dtraceall, dtrace, 1, 1, 1); +#if defined(AUDIT) +MODULE_DEPEND(dtraceall, dtaudit, 1, 1, 1); +#endif +MODULE_DEPEND(dtraceall, dtmalloc, 1, 1, 1); +#if defined(NFSCL) +MODULE_DEPEND(dtraceall, dtnfscl, 1, 1, 1); +#endif +#if defined(__aarch64__) || defined(__amd64__) || defined(__arm__) || \ + defined(__i386__) || defined(__powerpc__) || defined(__riscv) +MODULE_DEPEND(dtraceall, fbt, 1, 1, 1); +#endif +#if defined(__amd64__) || defined(__aarch64__) || defined(__riscv) +MODULE_DEPEND(dtraceall, kinst, 1, 1, 1); +#endif +#if defined(__amd64__) || defined(__i386__) || defined(__powerpc__) +MODULE_DEPEND(dtraceall, fasttrap, 1, 1, 1); +#endif +MODULE_DEPEND(dtraceall, sdt, 1, 1, 1); +MODULE_DEPEND(dtraceall, systrace, 1, 1, 1); +#if defined(COMPAT_FREEBSD32) +MODULE_DEPEND(dtraceall, systrace_freebsd32, 1, 1, 1); +#endif +MODULE_DEPEND(dtraceall, profile, 1, 1, 1); diff --git a/sys/modules/dtrace/fasttrap/Makefile b/sys/modules/dtrace/fasttrap/Makefile new file mode 100644 index 000000000000..af0cace6c5a9 --- /dev/null +++ b/sys/modules/dtrace/fasttrap/Makefile @@ -0,0 +1,28 @@ +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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..97898091fcec --- /dev/null +++ b/sys/modules/dtrace/fbt/Makefile @@ -0,0 +1,23 @@ +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 <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/kinst/Makefile b/sys/modules/dtrace/kinst/Makefile new file mode 100644 index 000000000000..1cbfe5e72ff1 --- /dev/null +++ b/sys/modules/dtrace/kinst/Makefile @@ -0,0 +1,23 @@ +SYSDIR?= ${SRCTOP}/sys + +KMOD= kinst +SRCS= kinst.c kinst_isa.c trampoline.c + +CFLAGS+= ${OPENZFS_CFLAGS} \ + -I${SYSDIR}/cddl/dev/kinst \ + -I${SYSDIR}/cddl/dev/kinst/${MACHINE_CPUARCH} + +.PATH: ${SYSDIR}/cddl/dev/kinst \ + ${SYSDIR}/cddl/dev/kinst/${MACHINE_CPUARCH} + +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" +CFLAGS+= -I${SYSDIR}/cddl/dev/dtrace/x86 +.PATH: ${SYSDIR}/cddl/dev/dtrace/x86 +.else +CFLAGS+= -I${SYSDIR}/cddl/dev/dtrace/${MACHINE_CPUARCH} +.PATH: ${SYSDIR}/cddl/dev/dtrace/${MACHINE_CPUARCH} +.endif + +.include <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/profile/Makefile b/sys/modules/dtrace/profile/Makefile new file mode 100644 index 000000000000..7cb53c4c788e --- /dev/null +++ b/sys/modules/dtrace/profile/Makefile @@ -0,0 +1,13 @@ +SYSDIR?= ${SRCTOP}/sys + +.PATH: ${SYSDIR}/cddl/dev/profile + +KMOD= profile +SRCS= profile.c +SRCS+= vnode_if.h + +CFLAGS+= ${OPENZFS_CFLAGS} + +.include <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/prototype/Makefile b/sys/modules/dtrace/prototype/Makefile new file mode 100644 index 000000000000..d4e8b57aac67 --- /dev/null +++ b/sys/modules/dtrace/prototype/Makefile @@ -0,0 +1,13 @@ +SYSDIR?= ${SRCTOP}/sys + +.PATH: ${SYSDIR}/cddl/dev + +KMOD= prototype +SRCS= prototype.c +SRCS+= vnode_if.h + +CFLAGS+= ${OPENZFS_CFLAGS} + +.include <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/sdt/Makefile b/sys/modules/dtrace/sdt/Makefile new file mode 100644 index 000000000000..e8db8a77f353 --- /dev/null +++ b/sys/modules/dtrace/sdt/Makefile @@ -0,0 +1,13 @@ +SYSDIR?= ${SRCTOP}/sys + +.PATH: ${SYSDIR}/cddl/dev/sdt + +KMOD= sdt +SRCS= sdt.c +SRCS+= vnode_if.h + +CFLAGS+= ${OPENZFS_CFLAGS} + +.include <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dtrace/systrace/Makefile b/sys/modules/dtrace/systrace/Makefile new file mode 100644 index 000000000000..dff3ca03db8a --- /dev/null +++ b/sys/modules/dtrace/systrace/Makefile @@ -0,0 +1,13 @@ +SYSDIR?= ${SRCTOP}/sys + +.PATH: ${SYSDIR}/cddl/dev/systrace + +KMOD= systrace +SRCS= systrace.c +SRCS+= vnode_if.h + +CFLAGS+= ${OPENZFS_CFLAGS} + +.include <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..06023e79dea2 --- /dev/null +++ b/sys/modules/dtrace/systrace_freebsd32/Makefile @@ -0,0 +1,14 @@ +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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..204b40ab674c --- /dev/null +++ b/sys/modules/dtrace/systrace_linux/Makefile @@ -0,0 +1,15 @@ +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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..82b6482a7ad2 --- /dev/null +++ b/sys/modules/dtrace/systrace_linux32/Makefile @@ -0,0 +1,15 @@ +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 <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/dummymbuf/Makefile b/sys/modules/dummymbuf/Makefile new file mode 100644 index 000000000000..aefede45dbd3 --- /dev/null +++ b/sys/modules/dummymbuf/Makefile @@ -0,0 +1,9 @@ +.PATH: ${SRCTOP}/sys/net + +KMOD= dummymbuf +SRCS= dummymbuf.c +SRCS+= opt_inet.h opt_inet6.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/dummynet/Makefile b/sys/modules/dummynet/Makefile new file mode 100644 index 000000000000..4ff023e6bca5 --- /dev/null +++ b/sys/modules/dummynet/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/dwwdt/Makefile b/sys/modules/dwwdt/Makefile new file mode 100644 index 000000000000..e486705998d5 --- /dev/null +++ b/sys/modules/dwwdt/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/dwwdt + +KMOD = dwwdt +SRCS = dwwdt.c \ + device_if.h bus_if.h ofw_bus_if.h + +.include<bsd.kmod.mk> diff --git a/sys/modules/e6000sw/Makefile b/sys/modules/e6000sw/Makefile new file mode 100644 index 000000000000..73cbaea801f0 --- /dev/null +++ b/sys/modules/e6000sw/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/etherswitch/e6000sw + +KMOD= e6000sw +SRCS= e6000sw.c + +SRCS+= bus_if.h device_if.h etherswitch_if.h mdio_if.h miibus_if.h ofw_bus_if.h opt_platform.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/efirt/Makefile b/sys/modules/efirt/Makefile new file mode 100644 index 000000000000..c46484465b68 --- /dev/null +++ b/sys/modules/efirt/Makefile @@ -0,0 +1,21 @@ +.PATH: ${SRCTOP}/sys/${MACHINE}/${MACHINE} +.PATH: ${SRCTOP}/sys/dev/efidev + +KMOD= efirt +SRCS= efirt.c efirt_machdep.c efidev.c +SRCS+= efirtc.c +SRCS+= efirt_support.S +SRCS+= device_if.h bus_if.h clock_if.h +DPSRCS+= assym.inc + +.if ${MACHINE_CPUARCH} == "amd64" +SRCS+= opt_acpi.h opt_hwpmc_hooks.h opt_kstack_pages.h +.endif + +efirt_support.o: efirt_support.S assym.inc + ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ + ${.IMPSRC} -o ${.TARGET} + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/em/Makefile b/sys/modules/em/Makefile new file mode 100644 index 000000000000..aad7cb07a31f --- /dev/null +++ b/sys/modules/em/Makefile @@ -0,0 +1,24 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ena/Makefile b/sys/modules/ena/Makefile new file mode 100644 index 000000000000..bfa4cf6da430 --- /dev/null +++ b/sys/modules/ena/Makefile @@ -0,0 +1,42 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2015-2024 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. +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/enetc/Makefile b/sys/modules/enetc/Makefile new file mode 100644 index 000000000000..e4259b692925 --- /dev/null +++ b/sys/modules/enetc/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/enic/Makefile b/sys/modules/enic/Makefile new file mode 100644 index 000000000000..420942c44ead --- /dev/null +++ b/sys/modules/enic/Makefile @@ -0,0 +1,10 @@ +.PATH: ${SRCTOP}/sys/dev/enic + +KMOD = if_enic +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_enic.c enic_txrx.c enic_res.c +SRCS += vnic_cq.c vnic_dev.c vnic_intr.c vnic_rq.c vnic_wq.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/epoch_test/Makefile b/sys/modules/epoch_test/Makefile new file mode 100644 index 000000000000..c0d16756e86d --- /dev/null +++ b/sys/modules/epoch_test/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/tests/epoch +KMOD= epoch_test +SRCS= epoch_test.c \ + bus_if.h \ + device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/et/Makefile b/sys/modules/et/Makefile new file mode 100644 index 000000000000..6de777450535 --- /dev/null +++ b/sys/modules/et/Makefile @@ -0,0 +1,9 @@ +# $DragonFly: src/sys/dev/netif/et/Makefile,v 1.1 2007/10/12 14:12:42 sephe Exp $ + +.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 <bsd.kmod.mk> diff --git a/sys/modules/etherswitch/Makefile b/sys/modules/etherswitch/Makefile new file mode 100644 index 000000000000..0b16a19e5117 --- /dev/null +++ b/sys/modules/etherswitch/Makefile @@ -0,0 +1,9 @@ +.PATH: ${SRCTOP}/sys/dev/etherswitch + +KMOD = etherswitch + +SRCS= etherswitch.c +SRCS+= bus_if.h device_if.h mdio_if.h miibus_if.h etherswitch_if.h etherswitch_if.c +CFLAGS+= -I${SRCTOP}/sys/dev/etherswitch + +.include <bsd.kmod.mk> diff --git a/sys/modules/evdev/Makefile b/sys/modules/evdev/Makefile new file mode 100644 index 000000000000..20813b73f6dd --- /dev/null +++ b/sys/modules/evdev/Makefile @@ -0,0 +1,9 @@ +.PATH: ${SRCTOP}/sys/dev/evdev + +KMOD= evdev +SRCS= cdev.c evdev.c evdev_mt.c evdev_utils.c +SRCS+= opt_evdev.h opt_kbd.h bus_if.h device_if.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/exca/Makefile b/sys/modules/exca/Makefile new file mode 100644 index 000000000000..b8c67212d744 --- /dev/null +++ b/sys/modules/exca/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ext2fs/Makefile b/sys/modules/ext2fs/Makefile new file mode 100644 index 000000000000..1e831c898443 --- /dev/null +++ b/sys/modules/ext2fs/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/fdc/Makefile b/sys/modules/fdc/Makefile new file mode 100644 index 000000000000..716e935cdc46 --- /dev/null +++ b/sys/modules/fdc/Makefile @@ -0,0 +1,11 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/fdescfs/Makefile b/sys/modules/fdescfs/Makefile new file mode 100644 index 000000000000..29536b25c195 --- /dev/null +++ b/sys/modules/fdescfs/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/fs/fdescfs + +KMOD= fdescfs +SRCS= vnode_if.h \ + fdesc_vfsops.c fdesc_vnops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/fdt/Makefile b/sys/modules/fdt/Makefile new file mode 100644 index 000000000000..bc27e25a0897 --- /dev/null +++ b/sys/modules/fdt/Makefile @@ -0,0 +1,6 @@ +# Build dev/fdt modules. + +SUBDIR = \ + fdt_slicer \ + +.include <bsd.subdir.mk> diff --git a/sys/modules/fdt/fdt_slicer/Makefile b/sys/modules/fdt/fdt_slicer/Makefile new file mode 100644 index 000000000000..7dbbef513db0 --- /dev/null +++ b/sys/modules/fdt/fdt_slicer/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/felix/Makefile b/sys/modules/felix/Makefile new file mode 100644 index 000000000000..0e7369ac08c1 --- /dev/null +++ b/sys/modules/felix/Makefile @@ -0,0 +1,36 @@ +#- +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2021 Alstom Group. +# Copyright (c) 2021 Semihalf. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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/etherswitch/felix +.PATH: ${SRCTOP}/sys/dev/enetc + +KMOD = felix +SRCS = felix.c enetc_mdio.c +SRCS += bus_if.h device_if.h etherswitch_if.h miibus_if.h ofw_bus_if.h pci_if.h opt_platform.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ffec/Makefile b/sys/modules/ffec/Makefile new file mode 100644 index 000000000000..6cea0ced85a4 --- /dev/null +++ b/sys/modules/ffec/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/fib_dxr/Makefile b/sys/modules/fib_dxr/Makefile new file mode 100644 index 000000000000..7d1996ba510f --- /dev/null +++ b/sys/modules/fib_dxr/Makefile @@ -0,0 +1,9 @@ +SYSDIR?=${SRCTOP}/sys +.include "${SYSDIR}/conf/kern.opts.mk" + +.PATH: ${SYSDIR}/netinet + +KMOD= fib_dxr +SRCS= in_fib_dxr.c opt_inet.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/filemon/Makefile b/sys/modules/filemon/Makefile new file mode 100644 index 000000000000..97d24e044de1 --- /dev/null +++ b/sys/modules/filemon/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/filemon + +KMOD= filemon +SRCS= ${KMOD}.c +SRCS+= vnode_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/filemon/Makefile.depend b/sys/modules/filemon/Makefile.depend new file mode 100644 index 000000000000..11aba52f82cf --- /dev/null +++ b/sys/modules/filemon/Makefile.depend @@ -0,0 +1,10 @@ +# Autogenerated - do NOT edit! + +DIRDEPS = \ + + +.include <dirdeps.mk> + +.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 new file mode 100644 index 000000000000..492a59a71e33 --- /dev/null +++ b/sys/modules/firewire/Makefile @@ -0,0 +1,7 @@ +SUBDIR= firewire \ + fwe \ + fwip \ + sbp \ + sbp_targ + +.include <bsd.subdir.mk> diff --git a/sys/modules/firewire/Makefile.inc b/sys/modules/firewire/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/firewire/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/firewire/firewire/Makefile b/sys/modules/firewire/firewire/Makefile new file mode 100644 index 000000000000..153e6f05c334 --- /dev/null +++ b/sys/modules/firewire/firewire/Makefile @@ -0,0 +1,14 @@ +# 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 <bsd.kmod.mk> diff --git a/sys/modules/firewire/fwe/Makefile b/sys/modules/firewire/fwe/Makefile new file mode 100644 index 000000000000..1b911050d293 --- /dev/null +++ b/sys/modules/firewire/fwe/Makefile @@ -0,0 +1,12 @@ +# 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 <bsd.kmod.mk> diff --git a/sys/modules/firewire/fwip/Makefile b/sys/modules/firewire/fwip/Makefile new file mode 100644 index 000000000000..b56bdb8d1c70 --- /dev/null +++ b/sys/modules/firewire/fwip/Makefile @@ -0,0 +1,14 @@ +# 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 <bsd.kmod.mk> diff --git a/sys/modules/firewire/sbp/Makefile b/sys/modules/firewire/sbp/Makefile new file mode 100644 index 000000000000..f27d37d9f68a --- /dev/null +++ b/sys/modules/firewire/sbp/Makefile @@ -0,0 +1,12 @@ +# 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 <bsd.kmod.mk> diff --git a/sys/modules/firewire/sbp_targ/Makefile b/sys/modules/firewire/sbp_targ/Makefile new file mode 100644 index 000000000000..ab85d97f025f --- /dev/null +++ b/sys/modules/firewire/sbp_targ/Makefile @@ -0,0 +1,12 @@ +# 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 <bsd.kmod.mk> diff --git a/sys/modules/firmware/Makefile b/sys/modules/firmware/Makefile new file mode 100644 index 000000000000..71fe5064c8f4 --- /dev/null +++ b/sys/modules/firmware/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/kern + +KMOD= firmware +SRCS= subr_firmware.c vnode_if.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/flash/Makefile b/sys/modules/flash/Makefile new file mode 100644 index 000000000000..0a11b1242579 --- /dev/null +++ b/sys/modules/flash/Makefile @@ -0,0 +1,9 @@ +# Build dev/flash modules. + +SUBDIR = + +.if (${MACHINE_CPUARCH} == "aarch64") && !empty(OPT_FDT) +SUBDIR+= flexspi +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/flash/flexspi/Makefile b/sys/modules/flash/flexspi/Makefile new file mode 100644 index 000000000000..94e365844844 --- /dev/null +++ b/sys/modules/flash/flexspi/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ftgpio/Makefile b/sys/modules/ftgpio/Makefile new file mode 100644 index 000000000000..33f329dee9f8 --- /dev/null +++ b/sys/modules/ftgpio/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ftwd/Makefile b/sys/modules/ftwd/Makefile new file mode 100644 index 000000000000..f4220616baf5 --- /dev/null +++ b/sys/modules/ftwd/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/ftwd + +KMOD= ftwd +SRCS= ftwd.c +SRCS+= device_if.h bus_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/fusefs/Makefile b/sys/modules/fusefs/Makefile new file mode 100644 index 000000000000..3c852cf7a3f0 --- /dev/null +++ b/sys/modules/fusefs/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/fxp/Makefile b/sys/modules/fxp/Makefile new file mode 100644 index 000000000000..43dd4be031c7 --- /dev/null +++ b/sys/modules/fxp/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/gem/Makefile b/sys/modules/gem/Makefile new file mode 100644 index 000000000000..00bae15d6f60 --- /dev/null +++ b/sys/modules/gem/Makefile @@ -0,0 +1,11 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/genet/Makefile b/sys/modules/genet/Makefile new file mode 100644 index 000000000000..fa7e8f94425a --- /dev/null +++ b/sys/modules/genet/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/arm64/broadcom/genet + +KMOD= if_genet +SRCS= if_genet.c +SRCS+= bus_if.h device_if.h gpio_if.h miibus_if.h ofw_bus_if.h syscon_if.h +SRCS+= opt_device_polling.h opt_platform.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/Makefile b/sys/modules/geom/Makefile new file mode 100644 index 000000000000..7169c639e6bd --- /dev/null +++ b/sys/modules/geom/Makefile @@ -0,0 +1,30 @@ +SYSDIR?=${SRCTOP}/sys +.include "${SYSDIR}/conf/kern.opts.mk" + +SUBDIR= 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_virstor \ + geom_zero + +.if ${MK_CCD} != "no" || defined(ALL_MODULES) +SUBDIR+= geom_ccd +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/geom/Makefile.inc b/sys/modules/geom/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/geom/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/geom/geom_cache/Makefile b/sys/modules/geom/geom_cache/Makefile new file mode 100644 index 000000000000..a8b20fdb2102 --- /dev/null +++ b/sys/modules/geom/geom_cache/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/cache + +KMOD= geom_cache +SRCS= g_cache.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_ccd/Makefile b/sys/modules/geom/geom_ccd/Makefile new file mode 100644 index 000000000000..4e8af6f58571 --- /dev/null +++ b/sys/modules/geom/geom_ccd/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom + +KMOD= geom_ccd +SRCS= geom_ccd.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_concat/Makefile b/sys/modules/geom/geom_concat/Makefile new file mode 100644 index 000000000000..e322da86f67f --- /dev/null +++ b/sys/modules/geom/geom_concat/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/concat + +KMOD= geom_concat +SRCS= g_concat.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_eli/Makefile b/sys/modules/geom/geom_eli/Makefile new file mode 100644 index 000000000000..88f13bbde33d --- /dev/null +++ b/sys/modules/geom/geom_eli/Makefile @@ -0,0 +1,15 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_flashmap/Makefile b/sys/modules/geom/geom_flashmap/Makefile new file mode 100644 index 000000000000..189102a547d0 --- /dev/null +++ b/sys/modules/geom/geom_flashmap/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/geom + +KMOD= geom_flashmap +SRCS= geom_flashmap.c + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_gate/Makefile b/sys/modules/geom/geom_gate/Makefile new file mode 100644 index 000000000000..3946e8554879 --- /dev/null +++ b/sys/modules/geom/geom_gate/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/gate + +KMOD= geom_gate +SRCS= g_gate.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_journal/Makefile b/sys/modules/geom/geom_journal/Makefile new file mode 100644 index 000000000000..69c76dbf9115 --- /dev/null +++ b/sys/modules/geom/geom_journal/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/geom/journal + +KMOD= geom_journal +SRCS= g_journal.c +SRCS+= g_journal_ufs.c +SRCS+= vnode_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_label/Makefile b/sys/modules/geom/geom_label/Makefile new file mode 100644 index 000000000000..e867d6ae0b93 --- /dev/null +++ b/sys/modules/geom/geom_label/Makefile @@ -0,0 +1,20 @@ +.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_ufs.c +SRCS+= g_label_swaplinux.c +SRCS+= opt_geom.h +SRCS+= vnode_if.h + +opt_geom.h: + echo "#define GEOM_LABEL 1" > ${.TARGET} + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_linux_lvm/Makefile b/sys/modules/geom/geom_linux_lvm/Makefile new file mode 100644 index 000000000000..66661692a901 --- /dev/null +++ b/sys/modules/geom/geom_linux_lvm/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/linux_lvm + +KMOD= geom_linux_lvm +SRCS= g_linux_lvm.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_mirror/Makefile b/sys/modules/geom/geom_mirror/Makefile new file mode 100644 index 000000000000..fcf8dc7d697d --- /dev/null +++ b/sys/modules/geom/geom_mirror/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/geom/mirror + +KMOD= geom_mirror +SRCS= g_mirror.c +SRCS+= g_mirror_ctl.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_mountver/Makefile b/sys/modules/geom/geom_mountver/Makefile new file mode 100644 index 000000000000..c1fb3fcfb3b4 --- /dev/null +++ b/sys/modules/geom/geom_mountver/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/mountver + +KMOD= geom_mountver +SRCS= g_mountver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_multipath/Makefile b/sys/modules/geom/geom_multipath/Makefile new file mode 100644 index 000000000000..a6dd25191d45 --- /dev/null +++ b/sys/modules/geom/geom_multipath/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/multipath + +KMOD= geom_multipath +SRCS= g_multipath.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_nop/Makefile b/sys/modules/geom/geom_nop/Makefile new file mode 100644 index 000000000000..ebc2f9e8b7eb --- /dev/null +++ b/sys/modules/geom/geom_nop/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/nop + +KMOD= geom_nop +SRCS= g_nop.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_part/Makefile b/sys/modules/geom/geom_part/Makefile new file mode 100644 index 000000000000..80802c500c10 --- /dev/null +++ b/sys/modules/geom/geom_part/Makefile @@ -0,0 +1,9 @@ +SUBDIR= geom_part_apm \ + geom_part_bsd \ + geom_part_bsd64 \ + geom_part_ebr \ + geom_part_gpt \ + geom_part_ldm \ + geom_part_mbr + +.include <bsd.subdir.mk> diff --git a/sys/modules/geom/geom_part/geom_part_apm/Makefile b/sys/modules/geom/geom_part/geom_part_apm/Makefile new file mode 100644 index 000000000000..1df21acd5f75 --- /dev/null +++ b/sys/modules/geom/geom_part/geom_part_apm/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_part/geom_part_bsd/Makefile b/sys/modules/geom/geom_part/geom_part_bsd/Makefile new file mode 100644 index 000000000000..558056d2a994 --- /dev/null +++ b/sys/modules/geom/geom_part/geom_part_bsd/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_part/geom_part_bsd64/Makefile b/sys/modules/geom/geom_part/geom_part_bsd64/Makefile new file mode 100644 index 000000000000..f316c3eec031 --- /dev/null +++ b/sys/modules/geom/geom_part/geom_part_bsd64/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_part/geom_part_ebr/Makefile b/sys/modules/geom/geom_part/geom_part_ebr/Makefile new file mode 100644 index 000000000000..947eca3b2036 --- /dev/null +++ b/sys/modules/geom/geom_part/geom_part_ebr/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_part/geom_part_gpt/Makefile b/sys/modules/geom/geom_part/geom_part_gpt/Makefile new file mode 100644 index 000000000000..bdc4a9ab18c2 --- /dev/null +++ b/sys/modules/geom/geom_part/geom_part_gpt/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_part/geom_part_ldm/Makefile b/sys/modules/geom/geom_part/geom_part_ldm/Makefile new file mode 100644 index 000000000000..a9bab9fd5fd5 --- /dev/null +++ b/sys/modules/geom/geom_part/geom_part_ldm/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_part/geom_part_mbr/Makefile b/sys/modules/geom/geom_part/geom_part_mbr/Makefile new file mode 100644 index 000000000000..1c71b0b6a224 --- /dev/null +++ b/sys/modules/geom/geom_part/geom_part_mbr/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_raid/Makefile b/sys/modules/geom/geom_raid/Makefile new file mode 100644 index 000000000000..9ef0fbce93fe --- /dev/null +++ b/sys/modules/geom/geom_raid/Makefile @@ -0,0 +1,14 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_raid3/Makefile b/sys/modules/geom/geom_raid3/Makefile new file mode 100644 index 000000000000..11f1e3ac9727 --- /dev/null +++ b/sys/modules/geom/geom_raid3/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/geom/raid3 + +KMOD= geom_raid3 +SRCS= g_raid3.c +SRCS+= g_raid3_ctl.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_shsec/Makefile b/sys/modules/geom/geom_shsec/Makefile new file mode 100644 index 000000000000..bb22968aae0d --- /dev/null +++ b/sys/modules/geom/geom_shsec/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/shsec + +KMOD= geom_shsec +SRCS= g_shsec.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_stripe/Makefile b/sys/modules/geom/geom_stripe/Makefile new file mode 100644 index 000000000000..d7be4d8a6452 --- /dev/null +++ b/sys/modules/geom/geom_stripe/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/stripe + +KMOD= geom_stripe +SRCS= g_stripe.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_union/Makefile b/sys/modules/geom/geom_union/Makefile new file mode 100644 index 000000000000..3dfde4a9fc8d --- /dev/null +++ b/sys/modules/geom/geom_union/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/union + +KMOD= geom_union +SRCS= g_union.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_uzip/Makefile b/sys/modules/geom/geom_uzip/Makefile new file mode 100644 index 000000000000..953436484d32 --- /dev/null +++ b/sys/modules/geom/geom_uzip/Makefile @@ -0,0 +1,20 @@ +.include <kmod.opts.mk> + +.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 <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_virstor/Makefile b/sys/modules/geom/geom_virstor/Makefile new file mode 100644 index 000000000000..8ffcf4493cc1 --- /dev/null +++ b/sys/modules/geom/geom_virstor/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/virstor + +KMOD= geom_virstor +SRCS= g_virstor.c g_virstor_md.c binstream.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/geom/geom_zero/Makefile b/sys/modules/geom/geom_zero/Makefile new file mode 100644 index 000000000000..06c23835f72c --- /dev/null +++ b/sys/modules/geom/geom_zero/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/geom/zero + +KMOD= geom_zero +SRCS= g_zero.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/glxiic/Makefile b/sys/modules/glxiic/Makefile new file mode 100644 index 000000000000..c2a21e6d9aea --- /dev/null +++ b/sys/modules/glxiic/Makefile @@ -0,0 +1,8 @@ +#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 <bsd.kmod.mk> diff --git a/sys/modules/glxsb/Makefile b/sys/modules/glxsb/Makefile new file mode 100644 index 000000000000..395916b2c645 --- /dev/null +++ b/sys/modules/glxsb/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/gpio/Makefile b/sys/modules/gpio/Makefile new file mode 100644 index 000000000000..66090b1393bf --- /dev/null +++ b/sys/modules/gpio/Makefile @@ -0,0 +1,37 @@ +# +# +# 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 + +.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" +SUBDIR += gpioaei +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/gpio/gpioaei/Makefile b/sys/modules/gpio/gpioaei/Makefile new file mode 100644 index 000000000000..1f0f1d0e53a6 --- /dev/null +++ b/sys/modules/gpio/gpioaei/Makefile @@ -0,0 +1,17 @@ +.PATH: ${SRCTOP}/sys/dev/gpio/ + +KMOD= gpioaei +SRCS= gpioaei.c + +SRCS+= \ + acpi_if.h \ + bus_if.h \ + device_if.h \ + gpio_if.h \ + gpiobus_if.h + +SRCS+= opt_acpi.h opt_platform.h + +CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ + +.include <bsd.kmod.mk> diff --git a/sys/modules/gpio/gpiobus/Makefile b/sys/modules/gpio/gpiobus/Makefile new file mode 100644 index 000000000000..baaf7faf69e8 --- /dev/null +++ b/sys/modules/gpio/gpiobus/Makefile @@ -0,0 +1,49 @@ +# +# 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. +# +# + +.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 +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "aarch64" +SRCS+= acpi_gpiobus.c opt_acpi.h acpi_if.h +.endif + +CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/gpio/gpioiic/Makefile b/sys/modules/gpio/gpioiic/Makefile new file mode 100644 index 000000000000..5dff8544cd76 --- /dev/null +++ b/sys/modules/gpio/gpioiic/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/gpio/gpiokeys/Makefile b/sys/modules/gpio/gpiokeys/Makefile new file mode 100644 index 000000000000..c24e70505ccb --- /dev/null +++ b/sys/modules/gpio/gpiokeys/Makefile @@ -0,0 +1,13 @@ +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/gpio/gpioled/Makefile b/sys/modules/gpio/gpioled/Makefile new file mode 100644 index 000000000000..8b0cf7a3b4c8 --- /dev/null +++ b/sys/modules/gpio/gpioled/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/gpio/gpiopps/Makefile b/sys/modules/gpio/gpiopps/Makefile new file mode 100644 index 000000000000..4b101064b88f --- /dev/null +++ b/sys/modules/gpio/gpiopps/Makefile @@ -0,0 +1,39 @@ +# +# Copyright (c) 2016 Ian Lepore <ian@FreeBSD.org> +# 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. +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/gpio/gpiospi/Makefile b/sys/modules/gpio/gpiospi/Makefile new file mode 100644 index 000000000000..e42581705e9b --- /dev/null +++ b/sys/modules/gpio/gpiospi/Makefile @@ -0,0 +1,40 @@ +# +# Copyright (c) 2016 Adrian Chadd <adrian@FreeBSD.org>. +# 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. +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/gpio/gpioths/Makefile b/sys/modules/gpio/gpioths/Makefile new file mode 100644 index 000000000000..bcc8681baf55 --- /dev/null +++ b/sys/modules/gpio/gpioths/Makefile @@ -0,0 +1,18 @@ +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/gve/Makefile b/sys/modules/gve/Makefile new file mode 100644 index 000000000000..ece275485df7 --- /dev/null +++ b/sys/modules/gve/Makefile @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: BSD-3-Clause +# +# Copyright (c) 2023-2024 Google LLC +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that 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 copyright holder 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 HOLDER 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/gve + +KMOD= if_gve +SRCS= gve_main.c \ + gve_adminq.c \ + gve_utils.c \ + gve_qpl.c \ + gve_rx.c \ + gve_rx_dqo.c \ + gve_tx.c \ + gve_tx_dqo.c \ + gve_sysctl.c +SRCS+= device_if.h bus_if.h pci_if.h +SRCS+= opt_inet6.h +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/Makefile b/sys/modules/hid/Makefile new file mode 100644 index 000000000000..10720570deb7 --- /dev/null +++ b/sys/modules/hid/Makefile @@ -0,0 +1,23 @@ +SUBDIR = \ + hid \ + hidbus \ + hidmap \ + hidquirk \ + hidraw + +SUBDIR += \ + bcm5974 \ + hconf \ + hcons \ + hgame \ + hkbd \ + hms \ + hmt \ + hpen \ + hsctrl \ + ietp \ + ps4dshock \ + u2f \ + xb360gp + +.include <bsd.subdir.mk> diff --git a/sys/modules/hid/bcm5974/Makefile b/sys/modules/hid/bcm5974/Makefile new file mode 100644 index 000000000000..5fdf39fb9649 --- /dev/null +++ b/sys/modules/hid/bcm5974/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= bcm5974 +SRCS= bcm5974.c +SRCS+= opt_hid.h opt_kbd.h opt_usb.h +SRCS+= bus_if.h device_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/hconf/Makefile b/sys/modules/hid/hconf/Makefile new file mode 100644 index 000000000000..86475e06ad25 --- /dev/null +++ b/sys/modules/hid/hconf/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/hid/hcons/Makefile b/sys/modules/hid/hcons/Makefile new file mode 100644 index 000000000000..56edefb9fe9c --- /dev/null +++ b/sys/modules/hid/hcons/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= hcons +SRCS= hcons.c +SRCS+= opt_kbd.h +SRCS+= bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/hgame/Makefile b/sys/modules/hid/hgame/Makefile new file mode 100644 index 000000000000..7cf7cd858340 --- /dev/null +++ b/sys/modules/hid/hgame/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= hgame +SRCS= hgame.c +SRCS+= opt_kbd.h +SRCS+= bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/hid/Makefile b/sys/modules/hid/hid/Makefile new file mode 100644 index 000000000000..26f98d7eb575 --- /dev/null +++ b/sys/modules/hid/hid/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/hid/hidbus/Makefile b/sys/modules/hid/hidbus/Makefile new file mode 100644 index 000000000000..f92f17deb5c3 --- /dev/null +++ b/sys/modules/hid/hidbus/Makefile @@ -0,0 +1,9 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= hidbus +SRCS= hidbus.c +SRCS+= bus_if.h device_if.h hid_if.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/hidmap/Makefile b/sys/modules/hid/hidmap/Makefile new file mode 100644 index 000000000000..07e817a19197 --- /dev/null +++ b/sys/modules/hid/hidmap/Makefile @@ -0,0 +1,10 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= hidmap +SRCS= hidmap.c +SRCS+= opt_hid.h opt_kbd.h +SRCS+= bus_if.h device_if.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/hidquirk/Makefile b/sys/modules/hid/hidquirk/Makefile new file mode 100644 index 000000000000..dbf2fa8f8e18 --- /dev/null +++ b/sys/modules/hid/hidquirk/Makefile @@ -0,0 +1,33 @@ +# +# Copyright (c) 2020 Vladimir Kondratyev <wulf@FreeBSD.org> +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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/hid + +KMOD= hidquirk +SRCS= hidquirk.c +SRCS+= bus_if.h device_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/hidraw/Makefile b/sys/modules/hid/hidraw/Makefile new file mode 100644 index 000000000000..996b8770e53f --- /dev/null +++ b/sys/modules/hid/hidraw/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= hidraw +SRCS= hidraw.c +SRCS+= opt_hid.h bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/hkbd/Makefile b/sys/modules/hid/hkbd/Makefile new file mode 100644 index 000000000000..42b5d69dda9e --- /dev/null +++ b/sys/modules/hid/hkbd/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/hid/hms/Makefile b/sys/modules/hid/hms/Makefile new file mode 100644 index 000000000000..014ecd7048bd --- /dev/null +++ b/sys/modules/hid/hms/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= hms +SRCS= hms.c +SRCS+= opt_hid.h opt_kbd.h +SRCS+= bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/hmt/Makefile b/sys/modules/hid/hmt/Makefile new file mode 100644 index 000000000000..36d9068bc7a7 --- /dev/null +++ b/sys/modules/hid/hmt/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= hmt +SRCS= hmt.c +SRCS+= opt_hid.h opt_kbd.h +SRCS+= bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/hpen/Makefile b/sys/modules/hid/hpen/Makefile new file mode 100644 index 000000000000..a693f36d5d79 --- /dev/null +++ b/sys/modules/hid/hpen/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= hpen +SRCS= hpen.c +SRCS+= opt_kbd.h +SRCS+= bus_if.h device_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/hsctrl/Makefile b/sys/modules/hid/hsctrl/Makefile new file mode 100644 index 000000000000..f2ec2d99c881 --- /dev/null +++ b/sys/modules/hid/hsctrl/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= hsctrl +SRCS= hsctrl.c +SRCS+= opt_kbd.h +SRCS+= bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/ietp/Makefile b/sys/modules/hid/ietp/Makefile new file mode 100644 index 000000000000..5270701e480a --- /dev/null +++ b/sys/modules/hid/ietp/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= ietp +SRCS= ietp.c +SRCS+= opt_hid.h opt_kbd.h +SRCS+= bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/ps4dshock/Makefile b/sys/modules/hid/ps4dshock/Makefile new file mode 100644 index 000000000000..0ecf31c3bc42 --- /dev/null +++ b/sys/modules/hid/ps4dshock/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= ps4dshock +SRCS= ps4dshock.c +SRCS+= opt_hid.h opt_kbd.h +SRCS+= bus_if.h device_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/u2f/Makefile b/sys/modules/hid/u2f/Makefile new file mode 100644 index 000000000000..227e7154035b --- /dev/null +++ b/sys/modules/hid/u2f/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= u2f +SRCS= u2f.c +SRCS+= opt_hid.h opt_usb.h +SRCS+= bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hid/xb360gp/Makefile b/sys/modules/hid/xb360gp/Makefile new file mode 100644 index 000000000000..f5a9df8baa9d --- /dev/null +++ b/sys/modules/hid/xb360gp/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/hid + +KMOD= xb360gp +SRCS= xb360gp.c +SRCS+= opt_kbd.h +SRCS+= bus_if.h device_if.h opt_usb.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/hifn/Makefile b/sys/modules/hifn/Makefile new file mode 100644 index 000000000000..a425cc39768a --- /dev/null +++ b/sys/modules/hifn/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/hpt27xx/Makefile b/sys/modules/hpt27xx/Makefile new file mode 100644 index 000000000000..d8689c376322 --- /dev/null +++ b/sys/modules/hpt27xx/Makefile @@ -0,0 +1,10 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/hptiop/Makefile b/sys/modules/hptiop/Makefile new file mode 100644 index 000000000000..09249b24a2b6 --- /dev/null +++ b/sys/modules/hptiop/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/hptmv/Makefile b/sys/modules/hptmv/Makefile new file mode 100644 index 000000000000..374204891ca8 --- /dev/null +++ b/sys/modules/hptmv/Makefile @@ -0,0 +1,42 @@ +# +# Makefile for RR182x FreeBSD driver +# Copyright (c) 2004-2005 HighPoint Technologies, Inc. All rights reserved +# + +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 <bsd.kmod.mk> diff --git a/sys/modules/hptnr/Makefile b/sys/modules/hptnr/Makefile new file mode 100644 index 000000000000..a69b1ec649a6 --- /dev/null +++ b/sys/modules/hptnr/Makefile @@ -0,0 +1,10 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/hptrr/Makefile b/sys/modules/hptrr/Makefile new file mode 100644 index 000000000000..2a5f665cbd69 --- /dev/null +++ b/sys/modules/hptrr/Makefile @@ -0,0 +1,10 @@ +# $Id: Makefile.def,v 1.18 2007/03/22 11:20:15 gmm Exp $ + +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 <bsd.kmod.mk> diff --git a/sys/modules/hwpmc/Makefile b/sys/modules/hwpmc/Makefile new file mode 100644 index 000000000000..812e3fbf182c --- /dev/null +++ b/sys/modules/hwpmc/Makefile @@ -0,0 +1,41 @@ +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/hwt/Makefile b/sys/modules/hwt/Makefile new file mode 100644 index 000000000000..6704e22422d1 --- /dev/null +++ b/sys/modules/hwt/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +.PATH: ${SRCTOP}/sys/dev/hwt + +KMOD = hwt +SRCS = \ + hwt.c \ + hwt_backend.c \ + hwt_config.c \ + hwt_context.c \ + hwt_contexthash.c \ + hwt_cpu.c \ + hwt_hook.c \ + hwt_ioctl.c \ + hwt_owner.c \ + hwt_ownerhash.c \ + hwt_record.c \ + hwt_thread.c \ + hwt_vm.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/hyperv/Makefile b/sys/modules/hyperv/Makefile new file mode 100644 index 000000000000..170564a730ac --- /dev/null +++ b/sys/modules/hyperv/Makefile @@ -0,0 +1,3 @@ +SUBDIR = vmbus netvsc storvsc utilities hvsock hid + +.include <bsd.subdir.mk> diff --git a/sys/modules/hyperv/hid/Makefile b/sys/modules/hyperv/hid/Makefile new file mode 100644 index 000000000000..f714ec3756af --- /dev/null +++ b/sys/modules/hyperv/hid/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/hyperv/hvsock/Makefile b/sys/modules/hyperv/hvsock/Makefile new file mode 100644 index 000000000000..b168a044775e --- /dev/null +++ b/sys/modules/hyperv/hvsock/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/hyperv/netvsc/Makefile b/sys/modules/hyperv/netvsc/Makefile new file mode 100644 index 000000000000..37b398de1f4f --- /dev/null +++ b/sys/modules/hyperv/netvsc/Makefile @@ -0,0 +1,11 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/hyperv/pcib/Makefile b/sys/modules/hyperv/pcib/Makefile new file mode 100644 index 000000000000..be0a905aab80 --- /dev/null +++ b/sys/modules/hyperv/pcib/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/hyperv/storvsc/Makefile b/sys/modules/hyperv/storvsc/Makefile new file mode 100644 index 000000000000..3c96db8e3d62 --- /dev/null +++ b/sys/modules/hyperv/storvsc/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/hyperv/utilities/Makefile b/sys/modules/hyperv/utilities/Makefile new file mode 100644 index 000000000000..42b314e1f156 --- /dev/null +++ b/sys/modules/hyperv/utilities/Makefile @@ -0,0 +1,14 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/hyperv/vmbus/Makefile b/sys/modules/hyperv/vmbus/Makefile new file mode 100644 index 000000000000..5cd9535585d3 --- /dev/null +++ b/sys/modules/hyperv/vmbus/Makefile @@ -0,0 +1,43 @@ +.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} == "amd64" +SRCS+= vmbus_vector.S hyperv_mmu.c +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/Makefile b/sys/modules/i2c/Makefile new file mode 100644 index 000000000000..6561327abfca --- /dev/null +++ b/sys/modules/i2c/Makefile @@ -0,0 +1,42 @@ +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 += hym8563 \ + rv3032 \ + rx8803 \ + tca64xx \ + tmp461 +.endif + +.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ + ${MACHINE_CPUARCH} == "i386" +SUBDIR += iichid +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/i2c/Makefile.inc b/sys/modules/i2c/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/i2c/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/i2c/ads111x/Makefile b/sys/modules/i2c/ads111x/Makefile new file mode 100644 index 000000000000..bcc7c52ef087 --- /dev/null +++ b/sys/modules/i2c/ads111x/Makefile @@ -0,0 +1,16 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/adc + +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/Makefile b/sys/modules/i2c/controllers/Makefile new file mode 100644 index 000000000000..0d58e305ffef --- /dev/null +++ b/sys/modules/i2c/controllers/Makefile @@ -0,0 +1,13 @@ +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 +.if ${MACHINE_CPUARCH} == "aarch64" +SUBDIR += geni_iic +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/i2c/controllers/Makefile.inc b/sys/modules/i2c/controllers/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/i2c/controllers/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/i2c/controllers/alpm/Makefile b/sys/modules/i2c/controllers/alpm/Makefile new file mode 100644 index 000000000000..6afa48d70a69 --- /dev/null +++ b/sys/modules/i2c/controllers/alpm/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/amdpm/Makefile b/sys/modules/i2c/controllers/amdpm/Makefile new file mode 100644 index 000000000000..ef1bccf91aea --- /dev/null +++ b/sys/modules/i2c/controllers/amdpm/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/amdpm +KMOD = amdpm +SRCS = device_if.h bus_if.h pci_if.h smbus_if.h \ + amdpm.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/amdsmb/Makefile b/sys/modules/i2c/controllers/amdsmb/Makefile new file mode 100644 index 000000000000..db68b51286a9 --- /dev/null +++ b/sys/modules/i2c/controllers/amdsmb/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/amdsmb + +KMOD= amdsmb +SRCS= amdsmb.c +SRCS+= device_if.h smbus_if.h pci_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/geni_iic/Makefile b/sys/modules/i2c/controllers/geni_iic/Makefile new file mode 100644 index 000000000000..c2f4a7cc7b11 --- /dev/null +++ b/sys/modules/i2c/controllers/geni_iic/Makefile @@ -0,0 +1,10 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/controller/qcom + +KMOD= geni_iic + +SRCS= geni_iic.c geni_iic_var.h +SRCS+= geni_iic_acpi.c acpi_if.h +SRCS+= device_if.h bus_if.h iicbus_if.h +SRCS+= opt_acpi.h opt_platform.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/ichiic/Makefile b/sys/modules/i2c/controllers/ichiic/Makefile new file mode 100644 index 000000000000..735a222bea8d --- /dev/null +++ b/sys/modules/i2c/controllers/ichiic/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/ichsmb/Makefile b/sys/modules/i2c/controllers/ichsmb/Makefile new file mode 100644 index 000000000000..7141216d5879 --- /dev/null +++ b/sys/modules/i2c/controllers/ichsmb/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/iicoc/Makefile b/sys/modules/i2c/controllers/iicoc/Makefile new file mode 100644 index 000000000000..f86a6513ad22 --- /dev/null +++ b/sys/modules/i2c/controllers/iicoc/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/controller/opencores + +KMOD = iicoc +SRCS = device_if.h bus_if.h iicbus_if.h \ + iicoc.c iicoc_fdt.c iicoc_pci.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/imcsmb/Makefile b/sys/modules/i2c/controllers/imcsmb/Makefile new file mode 100644 index 000000000000..d51628546e9c --- /dev/null +++ b/sys/modules/i2c/controllers/imcsmb/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/intpm/Makefile b/sys/modules/i2c/controllers/intpm/Makefile new file mode 100644 index 000000000000..f9f25569cc6a --- /dev/null +++ b/sys/modules/i2c/controllers/intpm/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/ismt/Makefile b/sys/modules/i2c/controllers/ismt/Makefile new file mode 100644 index 000000000000..6daeb9e0ef80 --- /dev/null +++ b/sys/modules/i2c/controllers/ismt/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/lpbb/Makefile b/sys/modules/i2c/controllers/lpbb/Makefile new file mode 100644 index 000000000000..b74bc2d55f38 --- /dev/null +++ b/sys/modules/i2c/controllers/lpbb/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/ppbus +KMOD = lpbb +SRCS = device_if.h bus_if.h iicbb_if.h ppbus_if.h \ + lpbb.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/nfsmb/Makefile b/sys/modules/i2c/controllers/nfsmb/Makefile new file mode 100644 index 000000000000..658c980faa1d --- /dev/null +++ b/sys/modules/i2c/controllers/nfsmb/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/nfsmb + +KMOD= nfsmb +SRCS= nfsmb.c +SRCS+= device_if.h smbus_if.h pci_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/pcf/Makefile b/sys/modules/i2c/controllers/pcf/Makefile new file mode 100644 index 000000000000..e4599dea9d54 --- /dev/null +++ b/sys/modules/i2c/controllers/pcf/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/controllers/viapm/Makefile b/sys/modules/i2c/controllers/viapm/Makefile new file mode 100644 index 000000000000..910edf720d87 --- /dev/null +++ b/sys/modules/i2c/controllers/viapm/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/cyapa/Makefile b/sys/modules/i2c/cyapa/Makefile new file mode 100644 index 000000000000..e14a9359b69e --- /dev/null +++ b/sys/modules/i2c/cyapa/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/ds1307/Makefile b/sys/modules/i2c/ds1307/Makefile new file mode 100644 index 000000000000..7ca283e72473 --- /dev/null +++ b/sys/modules/i2c/ds1307/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/rtc +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/ds13rtc/Makefile b/sys/modules/i2c/ds13rtc/Makefile new file mode 100644 index 000000000000..daa19a0842aa --- /dev/null +++ b/sys/modules/i2c/ds13rtc/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/rtc +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/ds1672/Makefile b/sys/modules/i2c/ds1672/Makefile new file mode 100644 index 000000000000..25ccce37a75f --- /dev/null +++ b/sys/modules/i2c/ds1672/Makefile @@ -0,0 +1,17 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/rtc +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/ds3231/Makefile b/sys/modules/i2c/ds3231/Makefile new file mode 100644 index 000000000000..7365ef4edf1a --- /dev/null +++ b/sys/modules/i2c/ds3231/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/rtc +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/htu21/Makefile b/sys/modules/i2c/htu21/Makefile new file mode 100644 index 000000000000..1c2ded0389ec --- /dev/null +++ b/sys/modules/i2c/htu21/Makefile @@ -0,0 +1,15 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/sensor +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/hym8563/Makefile b/sys/modules/i2c/hym8563/Makefile new file mode 100644 index 000000000000..e0377ccd6c7f --- /dev/null +++ b/sys/modules/i2c/hym8563/Makefile @@ -0,0 +1,12 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/rtc +KMOD= hym8563 +SRCS= hym8563.c + +SRCS+= bus_if.h \ + clock_if.h \ + device_if.h \ + iicbus_if.h \ + opt_platform.h \ + ofw_bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/icee/Makefile b/sys/modules/i2c/icee/Makefile new file mode 100644 index 000000000000..bf6c539abef1 --- /dev/null +++ b/sys/modules/i2c/icee/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/if_ic/Makefile b/sys/modules/i2c/if_ic/Makefile new file mode 100644 index 000000000000..b96b631902f8 --- /dev/null +++ b/sys/modules/i2c/if_ic/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus +KMOD = if_ic +SRCS = device_if.h bus_if.h iicbus_if.h \ + if_ic.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/iic/Makefile b/sys/modules/i2c/iic/Makefile new file mode 100644 index 000000000000..788d106064f1 --- /dev/null +++ b/sys/modules/i2c/iic/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus +KMOD = iic +SRCS = device_if.h bus_if.h iicbus_if.h \ + iic.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/iicbb/Makefile b/sys/modules/i2c/iicbb/Makefile new file mode 100644 index 000000000000..71c120253cee --- /dev/null +++ b/sys/modules/i2c/iicbb/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/iicbus/Makefile b/sys/modules/i2c/iicbus/Makefile new file mode 100644 index 000000000000..13a637642716 --- /dev/null +++ b/sys/modules/i2c/iicbus/Makefile @@ -0,0 +1,27 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/iichid/Makefile b/sys/modules/i2c/iichid/Makefile new file mode 100644 index 000000000000..cf0d8006a79e --- /dev/null +++ b/sys/modules/i2c/iichid/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/iicsmb/Makefile b/sys/modules/i2c/iicsmb/Makefile new file mode 100644 index 000000000000..06a8a5664b90 --- /dev/null +++ b/sys/modules/i2c/iicsmb/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus +KMOD = iicsmb +SRCS = device_if.h bus_if.h iicbus_if.h \ + smbus_if.h iicsmb.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/isl/Makefile b/sys/modules/i2c/isl/Makefile new file mode 100644 index 000000000000..60a9c218cbeb --- /dev/null +++ b/sys/modules/i2c/isl/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/isl +KMOD = isl +SRCS = isl.c device_if.h bus_if.h iicbus_if.h opt_platform.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/isl12xx/Makefile b/sys/modules/i2c/isl12xx/Makefile new file mode 100644 index 000000000000..8ce41388dc28 --- /dev/null +++ b/sys/modules/i2c/isl12xx/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/rtc +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/jedec_dimm/Makefile b/sys/modules/i2c/jedec_dimm/Makefile new file mode 100644 index 000000000000..6df941e4798c --- /dev/null +++ b/sys/modules/i2c/jedec_dimm/Makefile @@ -0,0 +1,5 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/max44009/Makefile b/sys/modules/i2c/max44009/Makefile new file mode 100644 index 000000000000..adef7594eaa8 --- /dev/null +++ b/sys/modules/i2c/max44009/Makefile @@ -0,0 +1,15 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/sensor +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/mux/Makefile b/sys/modules/i2c/mux/Makefile new file mode 100644 index 000000000000..e06b96e43898 --- /dev/null +++ b/sys/modules/i2c/mux/Makefile @@ -0,0 +1,10 @@ +SUBDIR = \ + iicmux \ + ltc430x \ + pca954x \ + +.if !empty(OPT_FDT) +SUBDIR+= iic_gpiomux +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/i2c/mux/iic_gpiomux/Makefile b/sys/modules/i2c/mux/iic_gpiomux/Makefile new file mode 100644 index 000000000000..be886cb3d38b --- /dev/null +++ b/sys/modules/i2c/mux/iic_gpiomux/Makefile @@ -0,0 +1,18 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/mux/iicmux/Makefile b/sys/modules/i2c/mux/iicmux/Makefile new file mode 100644 index 000000000000..7bd267797b52 --- /dev/null +++ b/sys/modules/i2c/mux/iicmux/Makefile @@ -0,0 +1,19 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/mux/ltc430x/Makefile b/sys/modules/i2c/mux/ltc430x/Makefile new file mode 100644 index 000000000000..bcfbcd594981 --- /dev/null +++ b/sys/modules/i2c/mux/ltc430x/Makefile @@ -0,0 +1,18 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/mux/pca954x/Makefile b/sys/modules/i2c/mux/pca954x/Makefile new file mode 100644 index 000000000000..58d620312b3e --- /dev/null +++ b/sys/modules/i2c/mux/pca954x/Makefile @@ -0,0 +1,18 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/nxprtc/Makefile b/sys/modules/i2c/nxprtc/Makefile new file mode 100644 index 000000000000..d7f7dc04fdc4 --- /dev/null +++ b/sys/modules/i2c/nxprtc/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/rtc +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/pcf8574/Makefile b/sys/modules/i2c/pcf8574/Makefile new file mode 100644 index 000000000000..b3b357d6b33c --- /dev/null +++ b/sys/modules/i2c/pcf8574/Makefile @@ -0,0 +1,16 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/pcf8591/Makefile b/sys/modules/i2c/pcf8591/Makefile new file mode 100644 index 000000000000..ee2e788272c5 --- /dev/null +++ b/sys/modules/i2c/pcf8591/Makefile @@ -0,0 +1,15 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/adc +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/rtc8583/Makefile b/sys/modules/i2c/rtc8583/Makefile new file mode 100644 index 000000000000..035d6de652e0 --- /dev/null +++ b/sys/modules/i2c/rtc8583/Makefile @@ -0,0 +1,17 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/rtc +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/rv3032/Makefile b/sys/modules/i2c/rv3032/Makefile new file mode 100644 index 000000000000..32ff79c9e03e --- /dev/null +++ b/sys/modules/i2c/rv3032/Makefile @@ -0,0 +1,12 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/rtc +KMOD= rv3032 +SRCS= rv3032.c + +SRCS+= bus_if.h \ + clock_if.h \ + device_if.h \ + iicbus_if.h \ + opt_platform.h \ + ofw_bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/rx8803/Makefile b/sys/modules/i2c/rx8803/Makefile new file mode 100644 index 000000000000..b630fd17c1f9 --- /dev/null +++ b/sys/modules/i2c/rx8803/Makefile @@ -0,0 +1,14 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/s35390a/Makefile b/sys/modules/i2c/s35390a/Makefile new file mode 100644 index 000000000000..9fd63d731a35 --- /dev/null +++ b/sys/modules/i2c/s35390a/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/rtc +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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/smb/Makefile b/sys/modules/i2c/smb/Makefile new file mode 100644 index 000000000000..57b6a3ba55e1 --- /dev/null +++ b/sys/modules/i2c/smb/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/smbus +KMOD = smb +SRCS = device_if.h bus_if.h smbus_if.h \ + smb.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/smbus/Makefile b/sys/modules/i2c/smbus/Makefile new file mode 100644 index 000000000000..e22d607eaaad --- /dev/null +++ b/sys/modules/i2c/smbus/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/i2c/tca6416/Makefile b/sys/modules/i2c/tca6416/Makefile new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/sys/modules/i2c/tca6416/Makefile diff --git a/sys/modules/i2c/tca64xx/Makefile b/sys/modules/i2c/tca64xx/Makefile new file mode 100644 index 000000000000..68162234de36 --- /dev/null +++ b/sys/modules/i2c/tca64xx/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/gpio/ +KMOD = tca64xx +SRCS = tca64xx.c opt_platform.h gpio_if.h device_if.h bus_if.h ofw_bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/i2c/tmp461/Makefile b/sys/modules/i2c/tmp461/Makefile new file mode 100644 index 000000000000..381a68f0dd5a --- /dev/null +++ b/sys/modules/i2c/tmp461/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/sensor +KMOD = tmp461 +SRCS = tmp461.c bus_if.h device_if.h iicbus_if.h ofw_bus_if.h opt_platform.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/iavf/Makefile b/sys/modules/iavf/Makefile new file mode 100644 index 000000000000..92e929b9048d --- /dev/null +++ b/sys/modules/iavf/Makefile @@ -0,0 +1,19 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ibcore/Makefile b/sys/modules/ibcore/Makefile new file mode 100644 index 000000000000..3846a176b226 --- /dev/null +++ b/sys/modules/ibcore/Makefile @@ -0,0 +1,59 @@ +.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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..9f9c9f602cda --- /dev/null +++ b/sys/modules/ice/Makefile @@ -0,0 +1,28 @@ +.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 +SRCS.PCI_IOV += pci_iov_if.h ice_iov.c ice_vf_mbx.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 <bsd.kmod.mk> diff --git a/sys/modules/ice_ddp/Makefile b/sys/modules/ice_ddp/Makefile new file mode 100644 index 000000000000..52cc1c4a2360 --- /dev/null +++ b/sys/modules/ice_ddp/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/contrib/dev/ice + +KMOD= ice_ddp +FIRMWS= ice-1.3.41.0.pkg:ice_ddp:0x01032900 + +.include <bsd.kmod.mk> diff --git a/sys/modules/ichwd/Makefile b/sys/modules/ichwd/Makefile new file mode 100644 index 000000000000..27b4c38437ff --- /dev/null +++ b/sys/modules/ichwd/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/ichwd + +KMOD= ichwd +SRCS= i6300esbwd.c ichwd.c device_if.h bus_if.h pci_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ida/Makefile b/sys/modules/ida/Makefile new file mode 100644 index 000000000000..fee7a2fbab7f --- /dev/null +++ b/sys/modules/ida/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/if_bridge/Makefile b/sys/modules/if_bridge/Makefile new file mode 100644 index 000000000000..6fb47110c33f --- /dev/null +++ b/sys/modules/if_bridge/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/net +KMOD= if_bridge +SRCS= if_bridge.c opt_inet.h opt_inet6.h opt_carp.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_cgem/Makefile b/sys/modules/if_cgem/Makefile new file mode 100644 index 000000000000..d1b792e8c720 --- /dev/null +++ b/sys/modules/if_cgem/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/cadence + +KMOD= if_cgem +SRCS= if_cgem.c +SRCS+= bus_if.h device_if.h miibus_if.h ofw_bus_if.h opt_platform.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_disc/Makefile b/sys/modules/if_disc/Makefile new file mode 100644 index 000000000000..8879be2e5912 --- /dev/null +++ b/sys/modules/if_disc/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/net + +KMOD= if_disc +SRCS= if_disc.c opt_inet.h opt_inet6.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_edsc/Makefile b/sys/modules/if_edsc/Makefile new file mode 100644 index 000000000000..32f1b6dedc05 --- /dev/null +++ b/sys/modules/if_edsc/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/net + +KMOD= if_edsc +SRCS= if_edsc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_enc/Makefile b/sys/modules/if_enc/Makefile new file mode 100644 index 000000000000..449d869d6a21 --- /dev/null +++ b/sys/modules/if_enc/Makefile @@ -0,0 +1,9 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/if_epair/Makefile b/sys/modules/if_epair/Makefile new file mode 100644 index 000000000000..86b8c849a1e8 --- /dev/null +++ b/sys/modules/if_epair/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/if_gif/Makefile b/sys/modules/if_gif/Makefile new file mode 100644 index 000000000000..efcd6952a8ac --- /dev/null +++ b/sys/modules/if_gif/Makefile @@ -0,0 +1,13 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/if_gre/Makefile b/sys/modules/if_gre/Makefile new file mode 100644 index 000000000000..9f50708a14d7 --- /dev/null +++ b/sys/modules/if_gre/Makefile @@ -0,0 +1,10 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/if_infiniband/Makefile b/sys/modules/if_infiniband/Makefile new file mode 100644 index 000000000000..7ec343999da1 --- /dev/null +++ b/sys/modules/if_infiniband/Makefile @@ -0,0 +1,11 @@ +.PATH: ${SRCTOP}/sys/net + +KMOD= if_infiniband +SRCS= if_infiniband.c \ + opt_inet.h \ + opt_inet6.h \ + opt_kbd.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_lagg/Makefile b/sys/modules/if_lagg/Makefile new file mode 100644 index 000000000000..6a570f3b0c64 --- /dev/null +++ b/sys/modules/if_lagg/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/if_me/Makefile b/sys/modules/if_me/Makefile new file mode 100644 index 000000000000..21fdbd2b7664 --- /dev/null +++ b/sys/modules/if_me/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/net + +KMOD= if_me +SRCS= if_me.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_ovpn/Makefile b/sys/modules/if_ovpn/Makefile new file mode 100644 index 000000000000..976ff7369c5a --- /dev/null +++ b/sys/modules/if_ovpn/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/net + +KMOD= if_ovpn +SRCS= if_ovpn.c opt_inet.h opt_inet6.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_stf/Makefile b/sys/modules/if_stf/Makefile new file mode 100644 index 000000000000..7545f8507fa6 --- /dev/null +++ b/sys/modules/if_stf/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/net + +KMOD= if_stf +SRCS= if_stf.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_tuntap/Makefile b/sys/modules/if_tuntap/Makefile new file mode 100644 index 000000000000..8a23a4bbed8f --- /dev/null +++ b/sys/modules/if_tuntap/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/net + +KMOD= if_tuntap +SRCS= if_tuntap.c opt_inet.h opt_inet6.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_vlan/Makefile b/sys/modules/if_vlan/Makefile new file mode 100644 index 000000000000..0cdab3f7653a --- /dev/null +++ b/sys/modules/if_vlan/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/net + +KMOD= if_vlan +SRCS= if_vlan.c +SRCS+= opt_inet.h opt_inet6.h opt_ipsec.h opt_kern_tls.h opt_vlan.h opt_ratelimit.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_vxlan/Makefile b/sys/modules/if_vxlan/Makefile new file mode 100644 index 000000000000..a9be25cf2db4 --- /dev/null +++ b/sys/modules/if_vxlan/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/net + +KMOD= if_vxlan +SRCS= if_vxlan.c +SRCS+= opt_inet.h opt_inet6.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/if_wg/Makefile b/sys/modules/if_wg/Makefile new file mode 100644 index 000000000000..b47a87472116 --- /dev/null +++ b/sys/modules/if_wg/Makefile @@ -0,0 +1,10 @@ +.PATH: ${SRCTOP}/sys/dev/wg + +KMOD= if_wg + +SRCS= if_wg.c wg_cookie.c wg_crypto.c wg_noise.c +SRCS+= opt_inet.h opt_inet6.h device_if.h bus_if.h + +.include <bsd.kmod.mk> + +CFLAGS+= -include ${SRCTOP}/sys/dev/wg/compat.h diff --git a/sys/modules/iflib/Makefile b/sys/modules/iflib/Makefile new file mode 100644 index 000000000000..a4a5706cfd58 --- /dev/null +++ b/sys/modules/iflib/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/igc/Makefile b/sys/modules/igc/Makefile new file mode 100644 index 000000000000..229da5f6592d --- /dev/null +++ b/sys/modules/igc/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/imgact_binmisc/Makefile b/sys/modules/imgact_binmisc/Makefile new file mode 100644 index 000000000000..fbe9d8d0f82e --- /dev/null +++ b/sys/modules/imgact_binmisc/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/kern + +KMOD= imgact_binmisc +SRCS= vnode_if.h imgact_binmisc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/imx/Makefile b/sys/modules/imx/Makefile new file mode 100644 index 000000000000..09de5774ef88 --- /dev/null +++ b/sys/modules/imx/Makefile @@ -0,0 +1,11 @@ +# Build modules specific to freescale/nxp imx-family SoCs. + +SUBDIR = \ + ../ffec \ + imx6_ahci \ + imx6_snvs \ + imx_i2c \ + imx_spi \ + imx_wdog \ + +.include <bsd.subdir.mk> diff --git a/sys/modules/imx/imx6_ahci/Makefile b/sys/modules/imx/imx6_ahci/Makefile new file mode 100644 index 000000000000..0fd16a8614c0 --- /dev/null +++ b/sys/modules/imx/imx6_ahci/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/imx/imx6_snvs/Makefile b/sys/modules/imx/imx6_snvs/Makefile new file mode 100644 index 000000000000..3208ea2c0752 --- /dev/null +++ b/sys/modules/imx/imx6_snvs/Makefile @@ -0,0 +1,14 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/imx/imx_i2c/Makefile b/sys/modules/imx/imx_i2c/Makefile new file mode 100644 index 000000000000..82297b3d6e99 --- /dev/null +++ b/sys/modules/imx/imx_i2c/Makefile @@ -0,0 +1,15 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/imx/imx_spi/Makefile b/sys/modules/imx/imx_spi/Makefile new file mode 100644 index 000000000000..e79814e78981 --- /dev/null +++ b/sys/modules/imx/imx_spi/Makefile @@ -0,0 +1,15 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/imx/imx_wdog/Makefile b/sys/modules/imx/imx_wdog/Makefile new file mode 100644 index 000000000000..7923798d66b7 --- /dev/null +++ b/sys/modules/imx/imx_wdog/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/intelspi/Makefile b/sys/modules/intelspi/Makefile new file mode 100644 index 000000000000..8f2205b8b11c --- /dev/null +++ b/sys/modules/intelspi/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/io/Makefile b/sys/modules/io/Makefile new file mode 100644 index 000000000000..d9102ee85575 --- /dev/null +++ b/sys/modules/io/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ioat/Makefile b/sys/modules/ioat/Makefile new file mode 100644 index 000000000000..432c48a3a96e --- /dev/null +++ b/sys/modules/ioat/Makefile @@ -0,0 +1,15 @@ +# ioat Loadable Kernel Module +# + +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 <bsd.kmod.mk> diff --git a/sys/modules/ip6_mroute_mod/Makefile b/sys/modules/ip6_mroute_mod/Makefile new file mode 100644 index 000000000000..3516893ea183 --- /dev/null +++ b/sys/modules/ip6_mroute_mod/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/netinet6 + +KMOD= ip6_mroute + +SRCS= ip6_mroute.c +SRCS+= opt_inet6.h opt_mrouting.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ip_mroute_mod/Makefile b/sys/modules/ip_mroute_mod/Makefile new file mode 100644 index 000000000000..1da154894dd8 --- /dev/null +++ b/sys/modules/ip_mroute_mod/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/netinet ${SRCTOP}/sys/netinet6 + +KMOD= ip_mroute + +SRCS= ip_mroute.c +SRCS+= opt_inet.h opt_mrouting.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipdivert/Makefile b/sys/modules/ipdivert/Makefile new file mode 100644 index 000000000000..c319ec81348e --- /dev/null +++ b/sys/modules/ipdivert/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/netinet + +KMOD= ipdivert +SRCS= ip_divert.c opt_inet.h opt_inet6.h opt_sctp.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipfilter/Makefile b/sys/modules/ipfilter/Makefile new file mode 100644 index 000000000000..6c5fc140f36c --- /dev/null +++ b/sys/modules/ipfilter/Makefile @@ -0,0 +1,31 @@ +.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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..7d16c17f0b26 --- /dev/null +++ b/sys/modules/ipfw/Makefile @@ -0,0 +1,22 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ipfw_nat/Makefile b/sys/modules/ipfw_nat/Makefile new file mode 100644 index 000000000000..bace25d53240 --- /dev/null +++ b/sys/modules/ipfw_nat/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/netpfil/ipfw + +KMOD= ipfw_nat +SRCS= ip_fw_nat.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipfw_nat64/Makefile b/sys/modules/ipfw_nat64/Makefile new file mode 100644 index 000000000000..bb67bf740857 --- /dev/null +++ b/sys/modules/ipfw_nat64/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ipfw_nptv6/Makefile b/sys/modules/ipfw_nptv6/Makefile new file mode 100644 index 000000000000..2d5dac192969 --- /dev/null +++ b/sys/modules/ipfw_nptv6/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/netpfil/ipfw/nptv6 + +KMOD= ipfw_nptv6 +SRCS= ip_fw_nptv6.c nptv6.c opt_ipfw.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipfw_pmod/Makefile b/sys/modules/ipfw_pmod/Makefile new file mode 100644 index 000000000000..ddf7bd56e20b --- /dev/null +++ b/sys/modules/ipfw_pmod/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/netpfil/ipfw/pmod + +KMOD= ipfw_pmod +SRCS= ip_fw_pmod.c tcpmod.c opt_inet.h opt_inet6.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipmi/Makefile b/sys/modules/ipmi/Makefile new file mode 100644 index 000000000000..e143b264d083 --- /dev/null +++ b/sys/modules/ipmi/Makefile @@ -0,0 +1,33 @@ +.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 +SRCS+= ipmi_smbios.c +SRCS+= ipmi_ssif.c +SRCS+= ipmi_pci.c +SRCS+= ipmi_smbus.c +SRCS+= pci_if.h +SRCS+= smbus_if.h +.endif + +.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" +SRCS+= ipmi_isa.c +SRCS+= isa_if.h + +SUBDIR+= ipmi_linux + +.elif ${MACHINE_ARCH:Mpowerpc64*} != "" +SRCS+= ipmi_opal.c ofw_bus_if.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipmi/ipmi_linux/Makefile b/sys/modules/ipmi/ipmi_linux/Makefile new file mode 100644 index 000000000000..bab62d7fdc83 --- /dev/null +++ b/sys/modules/ipmi/ipmi_linux/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/ipmi + +KMOD= ipmi_linux +SRCS= ipmi_linux.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipoib/Makefile b/sys/modules/ipoib/Makefile new file mode 100644 index 000000000000..18a72bb02993 --- /dev/null +++ b/sys/modules/ipoib/Makefile @@ -0,0 +1,16 @@ +.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 <bsd.kmod.mk> + +CFLAGS+= -Wno-cast-qual -Wno-pointer-arith diff --git a/sys/modules/ips/Makefile b/sys/modules/ips/Makefile new file mode 100644 index 000000000000..09d3cf9c1da9 --- /dev/null +++ b/sys/modules/ips/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> + +# 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 new file mode 100644 index 000000000000..1e2d73ca7a1c --- /dev/null +++ b/sys/modules/ipsec/Makefile @@ -0,0 +1,12 @@ +.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_offload.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 +.if "${MK_INET}" != "no" || "${MK_INET6}" != "no" +SRCS+= udpencap.c +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipw/Makefile b/sys/modules/ipw/Makefile new file mode 100644 index 000000000000..076d5a19c1d6 --- /dev/null +++ b/sys/modules/ipw/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/ipw + +KMOD = if_ipw +SRCS = if_ipw.c device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ipwfw/Makefile b/sys/modules/ipwfw/Makefile new file mode 100644 index 000000000000..47cbe06967b4 --- /dev/null +++ b/sys/modules/ipwfw/Makefile @@ -0,0 +1,5 @@ +SUBDIR= ipw_bss \ + ipw_ibss \ + ipw_monitor + +.include <bsd.subdir.mk> diff --git a/sys/modules/ipwfw/ipw_bss/Makefile b/sys/modules/ipwfw/ipw_bss/Makefile new file mode 100644 index 000000000000..368d6575f8e4 --- /dev/null +++ b/sys/modules/ipwfw/ipw_bss/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> + diff --git a/sys/modules/ipwfw/ipw_ibss/Makefile b/sys/modules/ipwfw/ipw_ibss/Makefile new file mode 100644 index 000000000000..77f06ff61ede --- /dev/null +++ b/sys/modules/ipwfw/ipw_ibss/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> + diff --git a/sys/modules/ipwfw/ipw_monitor/Makefile b/sys/modules/ipwfw/ipw_monitor/Makefile new file mode 100644 index 000000000000..29230eb22b66 --- /dev/null +++ b/sys/modules/ipwfw/ipw_monitor/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> + diff --git a/sys/modules/irdma/Makefile b/sys/modules/irdma/Makefile new file mode 100644 index 000000000000..a9ef6e63d3f2 --- /dev/null +++ b/sys/modules/irdma/Makefile @@ -0,0 +1,23 @@ +.include <bsd.own.mk> + +OFED_INC_DIR = ${SRCTOP}/sys/ofed/include +ICE_DIR = ${SRCTOP}/sys/dev/ice +.PATH: ${SRCTOP}/sys/dev/irdma + +KMOD= irdma +SRCS= icrdma.c +SRCS+= fbsd_kcompat.c irdma_hw.c irdma_verbs.c irdma_utils.c +SRCS+= irdma_cm.c irdma_kcompat.c +SRCS+= irdma_if.h irdma_di_if.h ice_rdma.h vnode_if.h device_if.h bus_if.h opt_inet.h pci_if.h opt_inet6.h +# Shared source +SRCS+= irdma_ctrl.c irdma_hmc.c icrdma_hw.c irdma_pble.c irdma_puda.c irdma_uda.c irdma_uk.c irdma_ws.c + +CFLAGS+= -I${ICE_DIR} -I${OFED_INC_DIR} +CFLAGS+= -I${OFED_INC_DIR}/uapi +CFLAGS+= ${LINUXKPI_INCLUDES} +CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM + +ice_rdma.h: + cp $(ICE_DIR)/ice_rdma.h . + +.include <bsd.kmod.mk> diff --git a/sys/modules/isci/Makefile b/sys/modules/isci/Makefile new file mode 100644 index 000000000000..51c2b6cdd76a --- /dev/null +++ b/sys/modules/isci/Makefile @@ -0,0 +1,91 @@ +# isci driver Makefile +# + +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 <bsd.kmod.mk> + +CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} diff --git a/sys/modules/iscsi/Makefile b/sys/modules/iscsi/Makefile new file mode 100644 index 000000000000..7ec5d455932c --- /dev/null +++ b/sys/modules/iscsi/Makefile @@ -0,0 +1,25 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/iser/Makefile b/sys/modules/iser/Makefile new file mode 100644 index 000000000000..615199ec97a3 --- /dev/null +++ b/sys/modules/iser/Makefile @@ -0,0 +1,28 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/isp/Makefile b/sys/modules/isp/Makefile new file mode 100644 index 000000000000..05bc1c8e1f85 --- /dev/null +++ b/sys/modules/isp/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ispfw/Makefile b/sys/modules/ispfw/Makefile new file mode 100644 index 000000000000..588051695d69 --- /dev/null +++ b/sys/modules/ispfw/Makefile @@ -0,0 +1,35 @@ +#- +# 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. +# + + +SUBDIR = ispfw +SUBDIR += isp_2400 +SUBDIR += isp_2500 +SUBDIR += isp_2600 +SUBDIR += isp_2700 +SUBDIR += isp_2800 + +.include <bsd.subdir.mk> diff --git a/sys/modules/ispfw/isp_2400/Makefile b/sys/modules/ispfw/isp_2400/Makefile new file mode 100644 index 000000000000..76488bd2cf37 --- /dev/null +++ b/sys/modules/ispfw/isp_2400/Makefile @@ -0,0 +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. +# + +.PATH: ${SRCTOP}/sys/dev/ispfw + +KMOD= isp_2400 +SRCS= ispfw.c + +CFLAGS += -DISP_2400 -DMODULE_NAME=\"${KMOD}\" + +.include <bsd.kmod.mk> diff --git a/sys/modules/ispfw/isp_2500/Makefile b/sys/modules/ispfw/isp_2500/Makefile new file mode 100644 index 000000000000..7264a3089fd0 --- /dev/null +++ b/sys/modules/ispfw/isp_2500/Makefile @@ -0,0 +1,35 @@ +#- +# 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 <bsd.kmod.mk> diff --git a/sys/modules/ispfw/isp_2600/Makefile b/sys/modules/ispfw/isp_2600/Makefile new file mode 100644 index 000000000000..88a151fa3732 --- /dev/null +++ b/sys/modules/ispfw/isp_2600/Makefile @@ -0,0 +1,35 @@ +#- +# 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_2600 +SRCS= ispfw.c + +CFLAGS += -DISP_2600 -DMODULE_NAME=\"${KMOD}\" + +.include <bsd.kmod.mk> diff --git a/sys/modules/ispfw/isp_2700/Makefile b/sys/modules/ispfw/isp_2700/Makefile new file mode 100644 index 000000000000..c0cc2fa41ccd --- /dev/null +++ b/sys/modules/ispfw/isp_2700/Makefile @@ -0,0 +1,35 @@ +#- +# 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_2700 +SRCS= ispfw.c + +CFLAGS += -DISP_2700 -DMODULE_NAME=\"${KMOD}\" + +.include <bsd.kmod.mk> diff --git a/sys/modules/ispfw/isp_2800/Makefile b/sys/modules/ispfw/isp_2800/Makefile new file mode 100644 index 000000000000..77164ca065c1 --- /dev/null +++ b/sys/modules/ispfw/isp_2800/Makefile @@ -0,0 +1,35 @@ +#- +# 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_2800 +SRCS= ispfw.c + +CFLAGS += -DISP_2800 -DMODULE_NAME=\"${KMOD}\" + +.include <bsd.kmod.mk> diff --git a/sys/modules/ispfw/ispfw/Makefile b/sys/modules/ispfw/ispfw/Makefile new file mode 100644 index 000000000000..12ab881edc93 --- /dev/null +++ b/sys/modules/ispfw/ispfw/Makefile @@ -0,0 +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. +# + +.PATH: ${SRCTOP}/sys/dev/ispfw + +KMOD= ispfw +SRCS= ispfw.c + +CFLAGS += -DISP_ALL + +.include <bsd.kmod.mk> diff --git a/sys/modules/itwd/Makefile b/sys/modules/itwd/Makefile new file mode 100644 index 000000000000..f6ee5495d8a8 --- /dev/null +++ b/sys/modules/itwd/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/itwd + +KMOD= itwd +SRCS= itwd.c +SRCS+= device_if.h bus_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwi/Makefile b/sys/modules/iwi/Makefile new file mode 100644 index 000000000000..54f49a08f7cc --- /dev/null +++ b/sys/modules/iwi/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/iwi + +KMOD = if_iwi +SRCS = if_iwi.c device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwifw/Makefile b/sys/modules/iwifw/Makefile new file mode 100644 index 000000000000..52343aa6fb4b --- /dev/null +++ b/sys/modules/iwifw/Makefile @@ -0,0 +1,5 @@ +SUBDIR= iwi_bss \ + iwi_ibss \ + iwi_monitor + +.include <bsd.subdir.mk> diff --git a/sys/modules/iwifw/iwi_bss/Makefile b/sys/modules/iwifw/iwi_bss/Makefile new file mode 100644 index 000000000000..278929d5b933 --- /dev/null +++ b/sys/modules/iwifw/iwi_bss/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> + diff --git a/sys/modules/iwifw/iwi_ibss/Makefile b/sys/modules/iwifw/iwi_ibss/Makefile new file mode 100644 index 000000000000..008439f94ab9 --- /dev/null +++ b/sys/modules/iwifw/iwi_ibss/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> + diff --git a/sys/modules/iwifw/iwi_monitor/Makefile b/sys/modules/iwifw/iwi_monitor/Makefile new file mode 100644 index 000000000000..9c8e8e23abce --- /dev/null +++ b/sys/modules/iwifw/iwi_monitor/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/iwlwifi/Makefile b/sys/modules/iwlwifi/Makefile new file mode 100644 index 000000000000..9774c3da61ee --- /dev/null +++ b/sys/modules/iwlwifi/Makefile @@ -0,0 +1,77 @@ +DEVIWLWIFIDIR= ${SRCTOP}/sys/contrib/dev/iwlwifi + +.PATH: ${DEVIWLWIFIDIR} + +WITH_CONFIG_PM= 0 +WITH_DEBUGFS= 1 +WITH_CONFIG_ACPI= 1 + +KMOD= if_iwlwifi + +SRCS= iwl-drv.c +SRCS+= iwl-dbg-tlv.c iwl-debug.c +SRCS+= iwl-io.c iwl-nvm-parse.c iwl-nvm-utils.c iwl-phy-db.c iwl-trans.c +SRCS+= cfg/7000.c cfg/8000.c cfg/9000.c cfg/22000.c +SRCS+= cfg/ax210.c cfg/bz.c cfg/sc.c +SRCS+= fw/dbg.c fw/dump.c fw/img.c fw/notif-wait.c +SRCS+= fw/paging.c fw/pnvm.c fw/regulatory.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/link.c +SRCS+= mvm/mld-key.c mvm/mld-mac.c mvm/mld-mac80211.c mvm/mld-sta.c +SRCS+= mvm/ptp.c mvm/time-sync.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 + +.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 +SRCS+= fw/debugfs.c mvm/debugfs.c mvm/debugfs-vif.c +CFLAGS+= -DCONFIG_IWLWIFI_DEBUGFS +CFLAGS+= -DCONFIG_MAC80211_DEBUGFS +.endif +.if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0 +SRCS+= mvm/d3.c +CFLAGS+= -DCONFIG_PM +CFLAGS+= -DCONFIG_PM_SLEEP +.endif + +.if defined(WITH_CONFIG_ACPI) && ${WITH_CONFIG_ACPI} > 0 +SRCS+= fw/acpi.c +CFLAGS+= -DCONFIG_ACPI +CFLAGS+= -DLINUXKPI_WANT_LINUX_ACPI +.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+= -DLINUXKPI_VERSION=61100 + +CFLAGS+= -I${DEVIWLWIFIDIR} +CFLAGS+= ${LINUXKPI_INCLUDES} +CFLAGS+= -DCONFIG_IWLDVM=0 +CFLAGS+= -DCONFIG_IWLMVM=1 +# Helpful after fresh imports. +#CFLAGS+= -ferror-limit=0 + +#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_THERMAL=1 +#CFLAGS+= -DCONFIG_EFI=1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwm/Makefile b/sys/modules/iwm/Makefile new file mode 100644 index 000000000000..07b8334c5699 --- /dev/null +++ b/sys/modules/iwm/Makefile @@ -0,0 +1,16 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/iwn/Makefile b/sys/modules/iwn/Makefile new file mode 100644 index 000000000000..4cd2f02f6b28 --- /dev/null +++ b/sys/modules/iwn/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/Makefile b/sys/modules/iwnfw/Makefile new file mode 100644 index 000000000000..bb2d6a11cec5 --- /dev/null +++ b/sys/modules/iwnfw/Makefile @@ -0,0 +1,15 @@ +SUBDIR= iwn100 \ + iwn105 \ + iwn135 \ + iwn1000 \ + iwn2000 \ + iwn2030 \ + iwn4965 \ + iwn5000 \ + iwn5150 \ + iwn6000 \ + iwn6000g2a \ + iwn6000g2b \ + iwn6050 + +.include <bsd.subdir.mk> diff --git a/sys/modules/iwnfw/Makefile.inc b/sys/modules/iwnfw/Makefile.inc new file mode 100644 index 000000000000..703e5ece3a9b --- /dev/null +++ b/sys/modules/iwnfw/Makefile.inc @@ -0,0 +1,17 @@ +# +# 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 new file mode 100644 index 000000000000..883033887bf8 --- /dev/null +++ b/sys/modules/iwnfw/iwn100/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn100fw +IMG= iwlwifi-100-39.31.5.1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn1000/Makefile b/sys/modules/iwnfw/iwn1000/Makefile new file mode 100644 index 000000000000..af9231d91f39 --- /dev/null +++ b/sys/modules/iwnfw/iwn1000/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn1000fw +IMG= iwlwifi-1000-39.31.5.1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn105/Makefile b/sys/modules/iwnfw/iwn105/Makefile new file mode 100644 index 000000000000..0727fc8ca556 --- /dev/null +++ b/sys/modules/iwnfw/iwn105/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn105fw +IMG= iwlwifi-105-6-18.168.6.1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn135/Makefile b/sys/modules/iwnfw/iwn135/Makefile new file mode 100644 index 000000000000..05b3c8af0538 --- /dev/null +++ b/sys/modules/iwnfw/iwn135/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn135fw +IMG= iwlwifi-135-6-18.168.6.1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn2000/Makefile b/sys/modules/iwnfw/iwn2000/Makefile new file mode 100644 index 000000000000..f761c8dc60f6 --- /dev/null +++ b/sys/modules/iwnfw/iwn2000/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn2000fw +IMG= iwlwifi-2000-18.168.6.1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn2030/Makefile b/sys/modules/iwnfw/iwn2030/Makefile new file mode 100644 index 000000000000..d2faaee47bbf --- /dev/null +++ b/sys/modules/iwnfw/iwn2030/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn2030fw +IMG= iwnwifi-2030-18.168.6.1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn4965/Makefile b/sys/modules/iwnfw/iwn4965/Makefile new file mode 100644 index 000000000000..0c430782c3c7 --- /dev/null +++ b/sys/modules/iwnfw/iwn4965/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn4965fw +IMG= iwlwifi-4965-228.61.2.24 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn5000/Makefile b/sys/modules/iwnfw/iwn5000/Makefile new file mode 100644 index 000000000000..821e096a00ae --- /dev/null +++ b/sys/modules/iwnfw/iwn5000/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn5000fw +IMG= iwlwifi-5000-8.83.5.1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn5150/Makefile b/sys/modules/iwnfw/iwn5150/Makefile new file mode 100644 index 000000000000..ae220149f2d9 --- /dev/null +++ b/sys/modules/iwnfw/iwn5150/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn5150fw +IMG= iwlwifi-5150-8.24.2.2 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn6000/Makefile b/sys/modules/iwnfw/iwn6000/Makefile new file mode 100644 index 000000000000..c38b6d88b681 --- /dev/null +++ b/sys/modules/iwnfw/iwn6000/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn6000fw +IMG= iwlwifi-6000-9.221.4.1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn6000g2a/Makefile b/sys/modules/iwnfw/iwn6000g2a/Makefile new file mode 100644 index 000000000000..5e7ceb639b90 --- /dev/null +++ b/sys/modules/iwnfw/iwn6000g2a/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn6000g2afw +IMG= iwlwifi-6000g2a-18.168.6.1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn6000g2b/Makefile b/sys/modules/iwnfw/iwn6000g2b/Makefile new file mode 100644 index 000000000000..e7c0891d1d43 --- /dev/null +++ b/sys/modules/iwnfw/iwn6000g2b/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn6000g2bfw +IMG= iwlwifi-6000g2b-18.168.6.1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwnfw/iwn6050/Makefile b/sys/modules/iwnfw/iwn6050/Makefile new file mode 100644 index 000000000000..5ccae842acb1 --- /dev/null +++ b/sys/modules/iwnfw/iwn6050/Makefile @@ -0,0 +1,4 @@ +KMOD= iwn6050fw +IMG= iwlwifi-6050-41.28.5.1 + +.include <bsd.kmod.mk> diff --git a/sys/modules/iwx/Makefile b/sys/modules/iwx/Makefile new file mode 100644 index 000000000000..c6a65b7092d3 --- /dev/null +++ b/sys/modules/iwx/Makefile @@ -0,0 +1,10 @@ +.PATH: ${SRCTOP}/sys/dev/iwx + +KMOD= if_iwx +SRCS= if_iwx.c if_iwx_debug.c +SRCS+= device_if.h bus_if.h pci_if.h opt_wlan.h + +CFLAGS+= -DIWX_DEBUG=1 +# DEBUG_FLAGS= -O0 -g + +.include <bsd.kmod.mk> diff --git a/sys/modules/ix/Makefile b/sys/modules/ix/Makefile new file mode 100644 index 000000000000..aec6eaabffdd --- /dev/null +++ b/sys/modules/ix/Makefile @@ -0,0 +1,13 @@ +.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 ixgbe_e610.c +CFLAGS+= -I${SRCTOP}/sys/dev/ixgbe + +.include <bsd.kmod.mk> diff --git a/sys/modules/ixl/Makefile b/sys/modules/ixl/Makefile new file mode 100644 index 000000000000..cfb644402819 --- /dev/null +++ b/sys/modules/ixl/Makefile @@ -0,0 +1,25 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ixv/Makefile b/sys/modules/ixv/Makefile new file mode 100644 index 000000000000..e7066bb7829b --- /dev/null +++ b/sys/modules/ixv/Makefile @@ -0,0 +1,13 @@ +.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 ixgbe_e610.c +CFLAGS+= -I${SRCTOP}/sys/dev/ixgbe + +.include <bsd.kmod.mk> diff --git a/sys/modules/jme/Makefile b/sys/modules/jme/Makefile new file mode 100644 index 000000000000..1390357137c5 --- /dev/null +++ b/sys/modules/jme/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/kbdmux/Makefile b/sys/modules/kbdmux/Makefile new file mode 100644 index 000000000000..8469d2867a70 --- /dev/null +++ b/sys/modules/kbdmux/Makefile @@ -0,0 +1,14 @@ +# $Id: Makefile,v 1.1 2005/06/23 00:30:50 max Exp $ + +.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 <bsd.kmod.mk> diff --git a/sys/modules/kgssapi/Makefile b/sys/modules/kgssapi/Makefile new file mode 100644 index 000000000000..f060a3039b43 --- /dev/null +++ b/sys/modules/kgssapi/Makefile @@ -0,0 +1,55 @@ +.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_ip_to_dns.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 <bsd.kmod.mk> diff --git a/sys/modules/kgssapi_krb5/Makefile b/sys/modules/kgssapi_krb5/Makefile new file mode 100644 index 000000000000..60e94586c0ac --- /dev/null +++ b/sys/modules/kgssapi_krb5/Makefile @@ -0,0 +1,17 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/khelp/Makefile b/sys/modules/khelp/Makefile new file mode 100644 index 000000000000..fc8fc1ac8364 --- /dev/null +++ b/sys/modules/khelp/Makefile @@ -0,0 +1,11 @@ +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 <bsd.subdir.mk> diff --git a/sys/modules/khelp/h_ertt/Makefile b/sys/modules/khelp/h_ertt/Makefile new file mode 100644 index 000000000000..007e17c4a181 --- /dev/null +++ b/sys/modules/khelp/h_ertt/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/netinet/khelp +KMOD= h_ertt +SRCS= h_ertt.c opt_kern_tls.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/krpc/Makefile b/sys/modules/krpc/Makefile new file mode 100644 index 000000000000..a47c5cbc55c0 --- /dev/null +++ b/sys/modules/krpc/Makefile @@ -0,0 +1,59 @@ +.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_nl.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 <bsd.kmod.mk> diff --git a/sys/modules/ksyms/Makefile b/sys/modules/ksyms/Makefile new file mode 100644 index 000000000000..ccf9a092c49e --- /dev/null +++ b/sys/modules/ksyms/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/ksyms + +KMOD= ksyms +SRCS= ksyms.c linker_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ktest/Makefile b/sys/modules/ktest/Makefile new file mode 100644 index 000000000000..151db53417df --- /dev/null +++ b/sys/modules/ktest/Makefile @@ -0,0 +1,8 @@ +SYSDIR?=${SRCTOP}/sys +.include "${SYSDIR}/conf/kern.opts.mk" + +SUBDIR= ktest \ + ktest_example \ + ktest_netlink_message_writer + +.include <bsd.subdir.mk> diff --git a/sys/modules/ktest/ktest/Makefile b/sys/modules/ktest/ktest/Makefile new file mode 100644 index 000000000000..3d4f1a8c2cc0 --- /dev/null +++ b/sys/modules/ktest/ktest/Makefile @@ -0,0 +1,11 @@ +PACKAGE= tests + +SYSDIR?=${SRCTOP}/sys +.include "${SYSDIR}/conf/kern.opts.mk" + +.PATH: ${SYSDIR}/tests + +KMOD= ktest +SRCS= ktest.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/ktest/ktest_example/Makefile b/sys/modules/ktest/ktest_example/Makefile new file mode 100644 index 000000000000..2b572d867aa5 --- /dev/null +++ b/sys/modules/ktest/ktest_example/Makefile @@ -0,0 +1,11 @@ +PACKAGE= tests + +SYSDIR?=${SRCTOP}/sys +.include "${SYSDIR}/conf/kern.opts.mk" + +.PATH: ${SYSDIR}/tests + +KMOD= ktest_example +SRCS= ktest_example.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/ktest/ktest_netlink_message_writer/Makefile b/sys/modules/ktest/ktest_netlink_message_writer/Makefile new file mode 100644 index 000000000000..a91c45755d0d --- /dev/null +++ b/sys/modules/ktest/ktest_netlink_message_writer/Makefile @@ -0,0 +1,12 @@ +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 + +.include <bsd.kmod.mk> + diff --git a/sys/modules/le/Makefile b/sys/modules/le/Makefile new file mode 100644 index 000000000000..908247b957dc --- /dev/null +++ b/sys/modules/le/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/lge/Makefile b/sys/modules/lge/Makefile new file mode 100644 index 000000000000..d1ae05c2143d --- /dev/null +++ b/sys/modules/lge/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/libalias/Makefile b/sys/modules/libalias/Makefile new file mode 100644 index 000000000000..c847f55e8e00 --- /dev/null +++ b/sys/modules/libalias/Makefile @@ -0,0 +1,3 @@ +SUBDIR= libalias modules + +.include <bsd.subdir.mk> diff --git a/sys/modules/libalias/libalias/Makefile b/sys/modules/libalias/libalias/Makefile new file mode 100644 index 000000000000..61ada50950d1 --- /dev/null +++ b/sys/modules/libalias/libalias/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/libalias/modules/Makefile b/sys/modules/libalias/modules/Makefile new file mode 100644 index 000000000000..04b32bc8bb22 --- /dev/null +++ b/sys/modules/libalias/modules/Makefile @@ -0,0 +1,5 @@ +.include "${.CURDIR}/modules.inc" + +SUBDIR= ${MODULES} + +.include <bsd.subdir.mk> diff --git a/sys/modules/libalias/modules/Makefile.inc b/sys/modules/libalias/modules/Makefile.inc new file mode 100644 index 000000000000..241a3ecbdf2d --- /dev/null +++ b/sys/modules/libalias/modules/Makefile.inc @@ -0,0 +1 @@ +.PATH: ${SRCTOP}/sys/netinet/libalias diff --git a/sys/modules/libalias/modules/dummy/Makefile b/sys/modules/libalias/modules/dummy/Makefile new file mode 100644 index 000000000000..8fa8571d4773 --- /dev/null +++ b/sys/modules/libalias/modules/dummy/Makefile @@ -0,0 +1,4 @@ +KMOD= alias_dummy +SRCS= alias_dummy.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/libalias/modules/ftp/Makefile b/sys/modules/libalias/modules/ftp/Makefile new file mode 100644 index 000000000000..628104624954 --- /dev/null +++ b/sys/modules/libalias/modules/ftp/Makefile @@ -0,0 +1,4 @@ +KMOD= alias_ftp +SRCS= alias_ftp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/libalias/modules/irc/Makefile b/sys/modules/libalias/modules/irc/Makefile new file mode 100644 index 000000000000..002011076ed7 --- /dev/null +++ b/sys/modules/libalias/modules/irc/Makefile @@ -0,0 +1,4 @@ +KMOD= alias_irc +SRCS= alias_irc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/libalias/modules/modules.inc b/sys/modules/libalias/modules/modules.inc new file mode 100644 index 000000000000..20f1a020d5ff --- /dev/null +++ b/sys/modules/libalias/modules/modules.inc @@ -0,0 +1,9 @@ + +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 new file mode 100644 index 000000000000..abb12a65760f --- /dev/null +++ b/sys/modules/libalias/modules/nbt/Makefile @@ -0,0 +1,4 @@ +KMOD= alias_nbt +SRCS= alias_nbt.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/libalias/modules/pptp/Makefile b/sys/modules/libalias/modules/pptp/Makefile new file mode 100644 index 000000000000..f0bc0299ed76 --- /dev/null +++ b/sys/modules/libalias/modules/pptp/Makefile @@ -0,0 +1,4 @@ +KMOD= alias_pptp +SRCS= alias_pptp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/libalias/modules/skinny/Makefile b/sys/modules/libalias/modules/skinny/Makefile new file mode 100644 index 000000000000..8507770c4352 --- /dev/null +++ b/sys/modules/libalias/modules/skinny/Makefile @@ -0,0 +1,4 @@ +KMOD= alias_skinny +SRCS= alias_skinny.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/libalias/modules/smedia/Makefile b/sys/modules/libalias/modules/smedia/Makefile new file mode 100644 index 000000000000..ebf88604716f --- /dev/null +++ b/sys/modules/libalias/modules/smedia/Makefile @@ -0,0 +1,4 @@ +KMOD= alias_smedia +SRCS= alias_smedia.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/libiconv/Makefile b/sys/modules/libiconv/Makefile new file mode 100644 index 000000000000..4958de835b9c --- /dev/null +++ b/sys/modules/libiconv/Makefile @@ -0,0 +1,19 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/libmchain/Makefile b/sys/modules/libmchain/Makefile new file mode 100644 index 000000000000..cef5d82de917 --- /dev/null +++ b/sys/modules/libmchain/Makefile @@ -0,0 +1,42 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/lindebugfs/Makefile b/sys/modules/lindebugfs/Makefile new file mode 100644 index 000000000000..44041011b407 --- /dev/null +++ b/sys/modules/lindebugfs/Makefile @@ -0,0 +1,32 @@ +.PATH: ${SRCTOP}/sys/compat/lindebugfs + +KMOD= lindebugfs +SRCS= lindebugfs.c +SRCS+= ${LINUXKPI_GENSRCS} + +CFLAGS+= ${LINUXKPI_INCLUDES} + +EXPORT_SYMS= debugfs_create_atomic_t +EXPORT_SYMS+= debugfs_create_blob +EXPORT_SYMS+= debugfs_create_bool +EXPORT_SYMS+= debugfs_create_dir +EXPORT_SYMS+= debugfs_create_file +EXPORT_SYMS+= debugfs_create_file_size +EXPORT_SYMS+= debugfs_create_file_unsafe +EXPORT_SYMS+= debugfs_create_mode_unsafe +EXPORT_SYMS+= debugfs_create_str +EXPORT_SYMS+= debugfs_create_symlink +EXPORT_SYMS+= debugfs_create_u8 +EXPORT_SYMS+= debugfs_create_u16 +EXPORT_SYMS+= debugfs_create_u32 +EXPORT_SYMS+= debugfs_create_u64 +EXPORT_SYMS+= debugfs_create_ulong +EXPORT_SYMS+= debugfs_create_x8 +EXPORT_SYMS+= debugfs_create_x16 +EXPORT_SYMS+= debugfs_create_x32 +EXPORT_SYMS+= debugfs_create_x64 +EXPORT_SYMS+= debugfs_lookup +EXPORT_SYMS+= debugfs_remove +EXPORT_SYMS+= debugfs_remove_recursive + +.include <bsd.kmod.mk> diff --git a/sys/modules/linprocfs/Makefile b/sys/modules/linprocfs/Makefile new file mode 100644 index 000000000000..ccb1818d85ce --- /dev/null +++ b/sys/modules/linprocfs/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/linsysfs/Makefile b/sys/modules/linsysfs/Makefile new file mode 100644 index 000000000000..4b354efa3beb --- /dev/null +++ b/sys/modules/linsysfs/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile new file mode 100644 index 000000000000..eb4e17ec706b --- /dev/null +++ b/sys/modules/linux/Makefile @@ -0,0 +1,148 @@ +.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_inet.h \ + opt_inet6.h \ + opt_ktrace.h \ + opt_posix.h \ + opt_usb.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 +.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:N-fsanitize*:N-fno-sanitize*} \ + -fcommon ${.IMPSRC} + +.if !defined(KERNBUILDDIR) +.warning Building Linuxulator outside of a kernel does not make sense +.endif + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/linux64/Makefile b/sys/modules/linux64/Makefile new file mode 100644 index 000000000000..327da11afdaf --- /dev/null +++ b/sys/modules/linux64/Makefile @@ -0,0 +1,101 @@ +.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 \ + opt_usb.h \ + bus_if.h \ + device_if.h \ + vnode_if.h \ + linux_support.S \ + linux_vdso_inc.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 + + +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} + +linux_vdso_inc.o: linux_vdso.so.o + +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 ${NOSAN_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 <bsd.kmod.mk> diff --git a/sys/modules/linux_common/Makefile b/sys/modules/linux_common/Makefile new file mode 100644 index 000000000000..f9f4c791e9d1 --- /dev/null +++ b/sys/modules/linux_common/Makefile @@ -0,0 +1,26 @@ +.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 + +.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 <bsd.kmod.mk> diff --git a/sys/modules/linuxkpi/Makefile b/sys/modules/linuxkpi/Makefile new file mode 100644 index 000000000000..a662f5dffbb6 --- /dev/null +++ b/sys/modules/linuxkpi/Makefile @@ -0,0 +1,55 @@ +.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_folio.c \ + linux_fpu.c \ + linux_hrtimer.c \ + linux_idr.c \ + linux_interrupt.c \ + linux_i2c.c \ + linux_i2cbb.c \ + linux_kmod.c \ + linux_kobject.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 <bsd.kmod.mk> diff --git a/sys/modules/linuxkpi_hdmi/Makefile b/sys/modules/linuxkpi_hdmi/Makefile new file mode 100644 index 000000000000..dc19c0afeebc --- /dev/null +++ b/sys/modules/linuxkpi_hdmi/Makefile @@ -0,0 +1,14 @@ +.PATH: ${SRCTOP}/sys/compat/linuxkpi/common/src + +KMOD= linuxkpi_hdmi +SRCS= linux_hdmi.c \ + linuxkpi_hdmikmod.c + +SRCS+= ${LINUXKPI_GENSRCS} + +CFLAGS+= ${LINUXKPI_INCLUDES} +CFLAGS.linux_hdmi.c= -Wno-cast-qual + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/linuxkpi_video/Makefile b/sys/modules/linuxkpi_video/Makefile new file mode 100644 index 000000000000..f2ee3438ac82 --- /dev/null +++ b/sys/modules/linuxkpi_video/Makefile @@ -0,0 +1,16 @@ +.PATH: ${SRCTOP}/sys/compat/linuxkpi/common/src + +KMOD= linuxkpi_video +SRCS= linux_hdmi.c \ + linux_aperture.c \ + linux_cmdline.c \ + linuxkpi_videokmod.c + +SRCS+= ${LINUXKPI_GENSRCS} + +CFLAGS+= ${LINUXKPI_INCLUDES} +CFLAGS.linux_hdmi.c= -Wno-cast-qual + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/linuxkpi_wlan/Makefile b/sys/modules/linuxkpi_wlan/Makefile new file mode 100644 index 000000000000..bafeb2d5d22a --- /dev/null +++ b/sys/modules/linuxkpi_wlan/Makefile @@ -0,0 +1,17 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/lio/Makefile b/sys/modules/lio/Makefile new file mode 100644 index 000000000000..f2819292bfa4 --- /dev/null +++ b/sys/modules/lio/Makefile @@ -0,0 +1,24 @@ +#.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 <bsd.kmod.mk> diff --git a/sys/modules/lpt/Makefile b/sys/modules/lpt/Makefile new file mode 100644 index 000000000000..43a97ac3d499 --- /dev/null +++ b/sys/modules/lpt/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/ppbus +KMOD= lpt +SRCS= bus_if.h device_if.h ppbus_if.h \ + opt_lpt.h \ + lpt.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_biba/Makefile b/sys/modules/mac_biba/Makefile new file mode 100644 index 000000000000..a7982f8239d4 --- /dev/null +++ b/sys/modules/mac_biba/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/security/mac_biba + +KMOD= mac_biba +SRCS= vnode_if.h \ + mac_biba.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_bsdextended/Makefile b/sys/modules/mac_bsdextended/Makefile new file mode 100644 index 000000000000..9dec5ab707bf --- /dev/null +++ b/sys/modules/mac_bsdextended/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mac_ddb/Makefile b/sys/modules/mac_ddb/Makefile new file mode 100644 index 000000000000..2aa542d77e7d --- /dev/null +++ b/sys/modules/mac_ddb/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/security/mac_ddb + +KMOD= mac_ddb +SRCS= mac_ddb.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_do/Makefile b/sys/modules/mac_do/Makefile new file mode 100644 index 000000000000..532a5b9faa71 --- /dev/null +++ b/sys/modules/mac_do/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/security/mac_do + +KMOD= mac_do +SRCS= mac_do.c vnode_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_ifoff/Makefile b/sys/modules/mac_ifoff/Makefile new file mode 100644 index 000000000000..75759973b920 --- /dev/null +++ b/sys/modules/mac_ifoff/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/security/mac_ifoff + +KMOD= mac_ifoff +SRCS= vnode_if.h \ + mac_ifoff.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_ipacl/Makefile b/sys/modules/mac_ipacl/Makefile new file mode 100644 index 000000000000..012741fe01a3 --- /dev/null +++ b/sys/modules/mac_ipacl/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/security/mac_ipacl + +KMOD= mac_ipacl +SRCS= mac_ipacl.c +SRCS+= opt_inet.h opt_inet6.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_lomac/Makefile b/sys/modules/mac_lomac/Makefile new file mode 100644 index 000000000000..8f4be7a59559 --- /dev/null +++ b/sys/modules/mac_lomac/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/security/mac_lomac + +KMOD= mac_lomac +SRCS= vnode_if.h \ + mac_lomac.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_mls/Makefile b/sys/modules/mac_mls/Makefile new file mode 100644 index 000000000000..ca70a3ace5de --- /dev/null +++ b/sys/modules/mac_mls/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/security/mac_mls + +KMOD= mac_mls +SRCS= vnode_if.h \ + mac_mls.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_none/Makefile b/sys/modules/mac_none/Makefile new file mode 100644 index 000000000000..6079b4d298c9 --- /dev/null +++ b/sys/modules/mac_none/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/security/mac_none + +KMOD= mac_none +SRCS= vnode_if.h \ + mac_none.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_ntpd/Makefile b/sys/modules/mac_ntpd/Makefile new file mode 100644 index 000000000000..ffde3db439b3 --- /dev/null +++ b/sys/modules/mac_ntpd/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/security/mac_ntpd + +KMOD= mac_ntpd +SRCS= mac_ntpd.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_partition/Makefile b/sys/modules/mac_partition/Makefile new file mode 100644 index 000000000000..25bd4a710cab --- /dev/null +++ b/sys/modules/mac_partition/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/security/mac_partition + +KMOD= mac_partition +SRCS= vnode_if.h \ + mac_partition.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_pimd/Makefile b/sys/modules/mac_pimd/Makefile new file mode 100644 index 000000000000..0d3c78d90cc6 --- /dev/null +++ b/sys/modules/mac_pimd/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/security/mac_pimd + +KMOD= mac_pimd +SRCS= mac_pimd.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_portacl/Makefile b/sys/modules/mac_portacl/Makefile new file mode 100644 index 000000000000..c1b4eb8c3fc7 --- /dev/null +++ b/sys/modules/mac_portacl/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/security/mac_portacl + +KMOD= mac_portacl +SRCS= mac_portacl.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_priority/Makefile b/sys/modules/mac_priority/Makefile new file mode 100644 index 000000000000..727af9d44fd9 --- /dev/null +++ b/sys/modules/mac_priority/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/security/mac_priority + +KMOD= mac_priority +SRCS= mac_priority.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_seeotheruids/Makefile b/sys/modules/mac_seeotheruids/Makefile new file mode 100644 index 000000000000..76d89005c6d0 --- /dev/null +++ b/sys/modules/mac_seeotheruids/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/security/mac_seeotheruids + +KMOD= mac_seeotheruids +SRCS= vnode_if.h \ + mac_seeotheruids.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_stub/Makefile b/sys/modules/mac_stub/Makefile new file mode 100644 index 000000000000..3b0b2fdc6df2 --- /dev/null +++ b/sys/modules/mac_stub/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/security/mac_stub + +KMOD= mac_stub +SRCS= vnode_if.h \ + mac_stub.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_test/Makefile b/sys/modules/mac_test/Makefile new file mode 100644 index 000000000000..4a89b8fad0d1 --- /dev/null +++ b/sys/modules/mac_test/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/security/mac_test + +KMOD= mac_test +SRCS= vnode_if.h \ + mac_test.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mac_veriexec/Makefile b/sys/modules/mac_veriexec/Makefile new file mode 100644 index 000000000000..ec1d7816055e --- /dev/null +++ b/sys/modules/mac_veriexec/Makefile @@ -0,0 +1,38 @@ +.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_metadata_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 <bsd.kmod.mk> + diff --git a/sys/modules/mac_veriexec_sha1/Makefile b/sys/modules/mac_veriexec_sha1/Makefile new file mode 100644 index 000000000000..768a0df3a04f --- /dev/null +++ b/sys/modules/mac_veriexec_sha1/Makefile @@ -0,0 +1,8 @@ +.PATH: ${.PARSEDIR:H:H}/security/mac_veriexec +.PATH: ${.PARSEDIR:H:H}/crypto + +KMOD= mac_veriexec_sha1 +SRCS= mac_veriexec_sha1.c sha1.c + +.include <bsd.kmod.mk> + diff --git a/sys/modules/mac_veriexec_sha256/Makefile b/sys/modules/mac_veriexec_sha256/Makefile new file mode 100644 index 000000000000..d745fa17dde2 --- /dev/null +++ b/sys/modules/mac_veriexec_sha256/Makefile @@ -0,0 +1,8 @@ +.PATH: ${.CURDIR}/../../security/mac_veriexec +.PATH: ${.CURDIR}/../../crypto/sha2 + +KMOD= mac_veriexec_sha256 +SRCS= mac_veriexec_sha256.c sha256c.c + +.include <bsd.kmod.mk> + diff --git a/sys/modules/mac_veriexec_sha384/Makefile b/sys/modules/mac_veriexec_sha384/Makefile new file mode 100644 index 000000000000..a1c621baafe3 --- /dev/null +++ b/sys/modules/mac_veriexec_sha384/Makefile @@ -0,0 +1,8 @@ +.PATH: ${.CURDIR}/../../security/mac_veriexec +.PATH: ${.CURDIR}/../../crypto/sha2 + +KMOD= mac_veriexec_sha384 +SRCS= mac_veriexec_sha384.c sha512c.c + +.include <bsd.kmod.mk> + diff --git a/sys/modules/mac_veriexec_sha512/Makefile b/sys/modules/mac_veriexec_sha512/Makefile new file mode 100644 index 000000000000..d1c02401a629 --- /dev/null +++ b/sys/modules/mac_veriexec_sha512/Makefile @@ -0,0 +1,8 @@ +.PATH: ${.CURDIR}/../../security/mac_veriexec +.PATH: ${.CURDIR}/../../crypto/sha2 + +KMOD= mac_veriexec_sha512 +SRCS= mac_veriexec_sha512.c sha512c.c + +.include <bsd.kmod.mk> + diff --git a/sys/modules/malo/Makefile b/sys/modules/malo/Makefile new file mode 100644 index 000000000000..95cd346eee13 --- /dev/null +++ b/sys/modules/malo/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mana/Makefile b/sys/modules/mana/Makefile new file mode 100644 index 000000000000..c603963ea8cb --- /dev/null +++ b/sys/modules/mana/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/md/Makefile b/sys/modules/md/Makefile new file mode 100644 index 000000000000..3f16e04860a1 --- /dev/null +++ b/sys/modules/md/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/md + +KMOD= geom_md +SRCS= bus_if.h device_if.h md.c opt_md.h opt_geom.h opt_rootdevname.h vnode_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/mdio/Makefile b/sys/modules/mdio/Makefile new file mode 100644 index 000000000000..fee29b333a29 --- /dev/null +++ b/sys/modules/mdio/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mem/Makefile b/sys/modules/mem/Makefile new file mode 100644 index 000000000000..4e9be89e8573 --- /dev/null +++ b/sys/modules/mem/Makefile @@ -0,0 +1,18 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mfi/Makefile b/sys/modules/mfi/Makefile new file mode 100644 index 000000000000..41626370f210 --- /dev/null +++ b/sys/modules/mfi/Makefile @@ -0,0 +1,18 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mfi/mfi_linux/Makefile b/sys/modules/mfi/mfi_linux/Makefile new file mode 100644 index 000000000000..026e69043c53 --- /dev/null +++ b/sys/modules/mfi/mfi_linux/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/mfi + +KMOD= mfi_linux +SRCS= mfi_linux.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mfi/mfip/Makefile b/sys/modules/mfi/mfip/Makefile new file mode 100644 index 000000000000..e2b273b07f1d --- /dev/null +++ b/sys/modules/mfi/mfip/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mgb/Makefile b/sys/modules/mgb/Makefile new file mode 100644 index 000000000000..53197d42b06c --- /dev/null +++ b/sys/modules/mgb/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> + diff --git a/sys/modules/mii/Makefile b/sys/modules/mii/Makefile new file mode 100644 index 000000000000..353d92a51167 --- /dev/null +++ b/sys/modules/mii/Makefile @@ -0,0 +1,22 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/miiproxy/Makefile b/sys/modules/miiproxy/Makefile new file mode 100644 index 000000000000..730bef4220cd --- /dev/null +++ b/sys/modules/miiproxy/Makefile @@ -0,0 +1,9 @@ +.PATH: ${SRCTOP}/sys/dev/etherswitch + +KMOD = miiproxy + +SRCS= miiproxy.c +SRCS+= bus_if.h mdio_if.h miibus_if.h opt_platform.h +CFLAGS+= -I${SRCTOP}/sys/dev/etherswitch + +.include <bsd.kmod.mk> diff --git a/sys/modules/mlx/Makefile b/sys/modules/mlx/Makefile new file mode 100644 index 000000000000..709feca90455 --- /dev/null +++ b/sys/modules/mlx/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mlx4/Makefile b/sys/modules/mlx4/Makefile new file mode 100644 index 000000000000..3560b8a6e872 --- /dev/null +++ b/sys/modules/mlx4/Makefile @@ -0,0 +1,36 @@ +.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 <bsd.kmod.mk> + +CFLAGS+= -Wno-cast-qual -Wno-pointer-arith diff --git a/sys/modules/mlx4en/Makefile b/sys/modules/mlx4en/Makefile new file mode 100644 index 000000000000..7eef5a790861 --- /dev/null +++ b/sys/modules/mlx4en/Makefile @@ -0,0 +1,18 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mlx4ib/Makefile b/sys/modules/mlx4ib/Makefile new file mode 100644 index 000000000000..f24a45b0586e --- /dev/null +++ b/sys/modules/mlx4ib/Makefile @@ -0,0 +1,29 @@ +.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 <bsd.kmod.mk> + +CFLAGS+= -Wno-cast-qual -Wno-pointer-arith diff --git a/sys/modules/mlx5/Makefile b/sys/modules/mlx5/Makefile new file mode 100644 index 000000000000..65341fdfb8aa --- /dev/null +++ b/sys/modules/mlx5/Makefile @@ -0,0 +1,69 @@ +.PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_core \ + ${SRCTOP}/sys/dev/mlx5/mlx5_lib \ + ${SRCTOP}/sys/dev/mlx5/mlx5_fpga \ + ${SRCTOP}/sys/dev/mlx5/mlx5_accel + +KMOD=mlx5 +SRCS= \ +mlx5_alloc.c \ +mlx5_aso.c \ +mlx5_cmd.c \ +mlx5_crypto.c \ +mlx5_cq.c \ +mlx5_diag_cnt.c \ +mlx5_diagnostics.c \ +mlx5_eq.c \ +mlx5_eswitch.c \ +mlx5_fs_chains.c \ +mlx5_fs_cmd.c \ +mlx5_fs_core.c \ +mlx5_fs_counters.c \ +mlx5_fs_ft_pool.c \ +mlx5_fs_tcp.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 \ +mlx5_ipsec_fs.c \ +mlx5_ipsec_offload.c \ +mlx5_ipsec.c \ +mlx5_ipsec_rxtx.c +SRCS+= ${LINUXKPI_GENSRCS} +SRCS+= opt_inet.h opt_inet6.h opt_ipsec.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 <bsd.kmod.mk> + +CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} diff --git a/sys/modules/mlx5en/Makefile b/sys/modules/mlx5en/Makefile new file mode 100644 index 000000000000..3697fa65dc83 --- /dev/null +++ b/sys/modules/mlx5en/Makefile @@ -0,0 +1,38 @@ +.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_ipsec.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 <bsd.kmod.mk> + +CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} diff --git a/sys/modules/mlx5fpga_tools/Makefile b/sys/modules/mlx5fpga_tools/Makefile new file mode 100644 index 000000000000..1c85feacfe66 --- /dev/null +++ b/sys/modules/mlx5fpga_tools/Makefile @@ -0,0 +1,18 @@ +.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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..2175e02127a3 --- /dev/null +++ b/sys/modules/mlx5ib/Makefile @@ -0,0 +1,32 @@ +.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 <bsd.kmod.mk> + +CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} diff --git a/sys/modules/mlxfw/Makefile b/sys/modules/mlxfw/Makefile new file mode 100644 index 000000000000..ae7bd04b1a0b --- /dev/null +++ b/sys/modules/mlxfw/Makefile @@ -0,0 +1,19 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mmc/Makefile b/sys/modules/mmc/Makefile new file mode 100644 index 000000000000..690b0bfb9564 --- /dev/null +++ b/sys/modules/mmc/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mmcnull/Makefile b/sys/modules/mmcnull/Makefile new file mode 100644 index 000000000000..a5354808bc46 --- /dev/null +++ b/sys/modules/mmcnull/Makefile @@ -0,0 +1,6 @@ +.PATH: ${.CURDIR}/../../dev/mmcnull + +KMOD= mmcnull +SRCS= mmcnull.c device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/mmcsd/Makefile b/sys/modules/mmcsd/Makefile new file mode 100644 index 000000000000..32daec4b49f6 --- /dev/null +++ b/sys/modules/mmcsd/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/mmc + +KMOD= mmcsd +SRCS= bus_if.h device_if.h mmcbr_if.h mmcbus_if.h mmcsd.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mpi3mr/Makefile b/sys/modules/mpi3mr/Makefile new file mode 100644 index 000000000000..81d2e86afc7f --- /dev/null +++ b/sys/modules/mpi3mr/Makefile @@ -0,0 +1,13 @@ +.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 + +CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include + +.include <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..caf8000da6dc --- /dev/null +++ b/sys/modules/mpr/Makefile @@ -0,0 +1,15 @@ +.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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..d097b885ad45 --- /dev/null +++ b/sys/modules/mps/Makefile @@ -0,0 +1,15 @@ +.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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..a519039cf87c --- /dev/null +++ b/sys/modules/mpt/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mqueue/Makefile b/sys/modules/mqueue/Makefile new file mode 100644 index 000000000000..dbc804ba30fb --- /dev/null +++ b/sys/modules/mqueue/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/kern + +KMOD= mqueuefs +SRCS= uipc_mqueue.c \ + vnode_if.h \ + opt_posix.h opt_capsicum.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/mrsas/Makefile b/sys/modules/mrsas/Makefile new file mode 100644 index 000000000000..5704c3d0298f --- /dev/null +++ b/sys/modules/mrsas/Makefile @@ -0,0 +1,27 @@ +# Makefile for mrsas driver + +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 <bsd.kmod.mk> +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 new file mode 100644 index 000000000000..5bfb4eaf9947 --- /dev/null +++ b/sys/modules/mrsas/mrsas_linux/Makefile @@ -0,0 +1,9 @@ +# Makefile for mrsas driver + +.PATH: ${SRCTOP}/sys/dev/mrsas + +KMOD= mrsas_linux +SRCS= mrsas_linux.c +SRCS+= device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/msdosfs/Makefile b/sys/modules/msdosfs/Makefile new file mode 100644 index 000000000000..b520eb62643e --- /dev/null +++ b/sys/modules/msdosfs/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/msdosfs_iconv/Makefile b/sys/modules/msdosfs_iconv/Makefile new file mode 100644 index 000000000000..3064e4e2fccd --- /dev/null +++ b/sys/modules/msdosfs_iconv/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/fs/msdosfs +KMOD= msdosfs_iconv +SRCS= msdosfs_iconv.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/msk/Makefile b/sys/modules/msk/Makefile new file mode 100644 index 000000000000..6a49d142a5d7 --- /dev/null +++ b/sys/modules/msk/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mt76/Makefile b/sys/modules/mt76/Makefile new file mode 100644 index 000000000000..5abae4c5ad7c --- /dev/null +++ b/sys/modules/mt76/Makefile @@ -0,0 +1,8 @@ +SUBDIR= core +SUBDIR+= mt7615 +SUBDIR+= mt7915 +SUBDIR+= mt7921 +SUBDIR+= mt7925 +SUBDIR+= mt7996 + +.include <bsd.subdir.mk> diff --git a/sys/modules/mt76/Makefile.inc b/sys/modules/mt76/Makefile.inc new file mode 100644 index 000000000000..da5fe9133884 --- /dev/null +++ b/sys/modules/mt76/Makefile.inc @@ -0,0 +1,28 @@ +# 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 new file mode 100644 index 000000000000..c782bf218d93 --- /dev/null +++ b/sys/modules/mt76/core/Makefile @@ -0,0 +1,43 @@ +KMOD= mt76_core + +# Basic stuff. +SRCS= mac80211.c mmio.c util.c dma.c eeprom.c tx.c agg-rx.c mcu.c +SRCS+= channel.c scan.c wed.c +#SRCS+= trace.c + +# Bus stuff. +SRCS+= pci.c +.if defined(WITH_USB) && ${WITH_USB} > 0 +SRCS+= usb.c # usb_trace.c +.endif +#SRCS+= sdio.c sdio_txrx.c + +# Connac-Lib stuff. +SRCS+= mt76_connac_mac.c mt76_connac_mcu.c mt76_connac3_mac.c + +# MT76x02-Lib stuff (we don't need; that's for older chipsets not yet supported) + +# XXX should this be a separate module? +# MT792X-LIB stuff. +SRCS+= mt792x_core.c mt792x_mac.c mt792x_dma.c +#SRCS+= mt792x_trace.c +.if defined(WITH_ACPI) && ${WITH_ACPI} > 0 +SRCS+= mt792x_acpi_sar.c +.endif +.if defined(WITH_USB) && ${WITH_USB} > 0 +SRCS+= mt792x_usb.c +.endif +.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 +SRCS+= mt792x_debugfs.c +.endif + +.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 +SRCS+= debugfs.c +.endif + +CFLAGS+= -DKBUILD_MODNAME='"mt76_core"' +CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS} + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/mt76/mt7615/Makefile b/sys/modules/mt76/mt7615/Makefile new file mode 100644 index 000000000000..6d7cb945a32d --- /dev/null +++ b/sys/modules/mt76/mt7615/Makefile @@ -0,0 +1,26 @@ +DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7615 + +.PATH: ${DEVDIR} + +WITH_DEBUGFS= 0 +WITH_DEV_COREDUMP= 0 + +KMOD= if_mt7615 + +# Common stuff. +SRCS= init.c main.c mac.c mcu.c eeprom.c + +# PCIe (7622_WMAC ignored) +SRCS+= dma.c mmio.c pci.c pci_init.c pci_mac.c + +# USB + SDIO ignored currently. + +.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 +SRCS+= debugfs.c +CFLAGS+= -DCONFIG_MT7915_DEBUGFS=${WITH_DEBUGFS} +.endif + +CFLAGS+= -DKBUILD_MODNAME='"mt7615"' +CFLAGS+= -I${DEVDIR} + +.include <bsd.kmod.mk> diff --git a/sys/modules/mt76/mt7915/Makefile b/sys/modules/mt76/mt7915/Makefile new file mode 100644 index 000000000000..049c919949f6 --- /dev/null +++ b/sys/modules/mt76/mt7915/Makefile @@ -0,0 +1,30 @@ +DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7915 + +.PATH: ${DEVDIR} + +WITH_DEBUGFS= 0 +WITH_DEV_COREDUMP= 1 + +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 + +.if defined(WITH_DEV_COREDUMP) && ${WITH_DEV_COREDUMP} > 0 +SRCS+= coredump.c +CFLAGS+= -DCONFIG_DEV_COREDUMP=${WITH_DEV_COREDUMP} +.endif + +CFLAGS+= -DKBUILD_MODNAME='"mt7915"' +CFLAGS+= -I${DEVDIR} + +.include <bsd.kmod.mk> diff --git a/sys/modules/mt76/mt7921/Makefile b/sys/modules/mt76/mt7921/Makefile new file mode 100644 index 000000000000..d3f201997a2d --- /dev/null +++ b/sys/modules/mt76/mt7921/Makefile @@ -0,0 +1,27 @@ +DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7921 + +.PATH: ${DEVDIR} + +KMOD= if_mt7921 + +# Common stuff. +SRCS= init.c main.c mac.c mcu.c + +# PCI stuff. +SRCS+= pci.c pci_mac.c pci_mcu.c + +# USB stuff. +#SRCS+= usb.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 <bsd.kmod.mk> diff --git a/sys/modules/mt76/mt7925/Makefile b/sys/modules/mt76/mt7925/Makefile new file mode 100644 index 000000000000..58e23d06a9ad --- /dev/null +++ b/sys/modules/mt76/mt7925/Makefile @@ -0,0 +1,24 @@ +DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7925 + +.PATH: ${DEVDIR} + +KMOD= if_mt7925 + +# Common stuff. +SRCS= init.c main.c mac.c mcu.c + +# PCI stuff. +SRCS+= pci.c pci_mac.c pci_mcu.c + +# USB stuff. +#SRCS+= usb.c + +.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 +SRCS+= debugfs.c +CFLAGS+= -DCONFIG_MT7925_DEBUGFS=${WITH_DEBUGFS} +.endif + +CFLAGS+= -DKBUILD_MODNAME='"mt7925"' +CFLAGS+= -I${DEVDIR} + +.include <bsd.kmod.mk> diff --git a/sys/modules/mt76/mt7996/Makefile b/sys/modules/mt76/mt7996/Makefile new file mode 100644 index 000000000000..a43721b6079e --- /dev/null +++ b/sys/modules/mt76/mt7996/Makefile @@ -0,0 +1,27 @@ +DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7996 + +.PATH: ${DEVDIR} + +WITH_DEBUGFS= 0 +WITH_DEV_COREDUMP= 1 + +KMOD= if_mt7996 + +# Common stuff. +SRCS= init.c main.c mac.c mcu.c mmio.c eeprom.c +SRCS+= pci.c dma.c + +.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 +SRCS+= debugfs.c +CFLAGS+= -DCONFIG_MT7996_DEBUGFS=${WITH_DEBUGFS} +.endif + +.if defined(WITH_DEV_COREDUMP) && ${WITH_DEV_COREDUMP} > 0 +SRCS+= coredump.c +CFLAGS+= -DCONFIG_DEV_COREDUMP=${WITH_DEV_COREDUMP} +.endif + +CFLAGS+= -DKBUILD_MODNAME='"mt7996"' +CFLAGS+= -I${DEVDIR} + +.include <bsd.kmod.mk> diff --git a/sys/modules/mthca/Makefile b/sys/modules/mthca/Makefile new file mode 100644 index 000000000000..a1996d03d30c --- /dev/null +++ b/sys/modules/mthca/Makefile @@ -0,0 +1,34 @@ +.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 <bsd.kmod.mk> + +CFLAGS+= -Wno-cast-qual -Wno-pointer-arith diff --git a/sys/modules/mvs/Makefile b/sys/modules/mvs/Makefile new file mode 100644 index 000000000000..b3d014f408b6 --- /dev/null +++ b/sys/modules/mvs/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mwl/Makefile b/sys/modules/mwl/Makefile new file mode 100644 index 000000000000..3e00e6d49be7 --- /dev/null +++ b/sys/modules/mwl/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/mwlfw/Makefile b/sys/modules/mwlfw/Makefile new file mode 100644 index 000000000000..913ccc0eb422 --- /dev/null +++ b/sys/modules/mwlfw/Makefile @@ -0,0 +1,12 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/mxge/Makefile b/sys/modules/mxge/Makefile new file mode 100644 index 000000000000..b897429dee18 --- /dev/null +++ b/sys/modules/mxge/Makefile @@ -0,0 +1,7 @@ +SUBDIR= mxge +SUBDIR+=mxge_eth_z8e +SUBDIR+=mxge_ethp_z8e +SUBDIR+=mxge_rss_eth_z8e +SUBDIR+=mxge_rss_ethp_z8e + +.include <bsd.subdir.mk> diff --git a/sys/modules/mxge/mxge/Makefile b/sys/modules/mxge/mxge/Makefile new file mode 100644 index 000000000000..4b17d1bd5433 --- /dev/null +++ b/sys/modules/mxge/mxge/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/mxge/mxge_eth_z8e/Makefile b/sys/modules/mxge/mxge_eth_z8e/Makefile new file mode 100644 index 000000000000..d6ce84100025 --- /dev/null +++ b/sys/modules/mxge/mxge_eth_z8e/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/mxge +KMOD= mxge_eth_z8e +SRCS= mxge_eth_z8e.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mxge/mxge_ethp_z8e/Makefile b/sys/modules/mxge/mxge_ethp_z8e/Makefile new file mode 100644 index 000000000000..2aef89175d63 --- /dev/null +++ b/sys/modules/mxge/mxge_ethp_z8e/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/mxge +KMOD= mxge_ethp_z8e +SRCS= mxge_ethp_z8e.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mxge/mxge_rss_eth_z8e/Makefile b/sys/modules/mxge/mxge_rss_eth_z8e/Makefile new file mode 100644 index 000000000000..08255305133d --- /dev/null +++ b/sys/modules/mxge/mxge_rss_eth_z8e/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/mxge +KMOD= mxge_rss_eth_z8e +SRCS= mxge_rss_eth_z8e.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/mxge/mxge_rss_ethp_z8e/Makefile b/sys/modules/mxge/mxge_rss_ethp_z8e/Makefile new file mode 100644 index 000000000000..998931256e28 --- /dev/null +++ b/sys/modules/mxge/mxge_rss_ethp_z8e/Makefile @@ -0,0 +1,5 @@ +.PATH: ${SRCTOP}/sys/dev/mxge +KMOD= mxge_rss_ethp_z8e +SRCS= mxge_rss_ethp_z8e.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/my/Makefile b/sys/modules/my/Makefile new file mode 100644 index 000000000000..c270c41f5da0 --- /dev/null +++ b/sys/modules/my/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/my + +KMOD= if_my +SRCS= if_my.c device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/nctgpio/Makefile b/sys/modules/nctgpio/Makefile new file mode 100644 index 000000000000..aaaea9222d25 --- /dev/null +++ b/sys/modules/nctgpio/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ncthwm/Makefile b/sys/modules/ncthwm/Makefile new file mode 100644 index 000000000000..8235c5e1a6d0 --- /dev/null +++ b/sys/modules/ncthwm/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/ncthwm +KMOD= ncthwm +SRCS= ncthwm.c +SRCS+= device_if.h bus_if.h isa_if.h opt_platform.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/neta/Makefile b/sys/modules/neta/Makefile new file mode 100644 index 000000000000..eb22487ecf3c --- /dev/null +++ b/sys/modules/neta/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/netgraph/Makefile b/sys/modules/netgraph/Makefile new file mode 100644 index 000000000000..94560d5c51d7 --- /dev/null +++ b/sys/modules/netgraph/Makefile @@ -0,0 +1,64 @@ +# $Whistle: Makefile,v 1.5 1999/01/24 06:48:37 archie Exp $ + +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 <bsd.subdir.mk> diff --git a/sys/modules/netgraph/Makefile.inc b/sys/modules/netgraph/Makefile.inc new file mode 100644 index 000000000000..99a84c395852 --- /dev/null +++ b/sys/modules/netgraph/Makefile.inc @@ -0,0 +1,7 @@ +# $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 new file mode 100644 index 000000000000..725f1ee4db6f --- /dev/null +++ b/sys/modules/netgraph/UI/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ + +KMOD= ng_UI +SRCS= ng_UI.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/async/Makefile b/sys/modules/netgraph/async/Makefile new file mode 100644 index 000000000000..e14bae855bce --- /dev/null +++ b/sys/modules/netgraph/async/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ + +KMOD= ng_async +SRCS= ng_async.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bluetooth/Makefile b/sys/modules/netgraph/bluetooth/Makefile new file mode 100644 index 000000000000..2587dac65150 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/Makefile @@ -0,0 +1,11 @@ +# $Id: Makefile,v 1.2 2003/04/27 00:22:11 max Exp $ + +SUBDIR= \ + bluetooth \ + hci \ + l2cap \ + socket \ + ubt \ + ubtbcmfw + +.include <bsd.subdir.mk> diff --git a/sys/modules/netgraph/bluetooth/Makefile.inc b/sys/modules/netgraph/bluetooth/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/netgraph/bluetooth/bluetooth/Makefile b/sys/modules/netgraph/bluetooth/bluetooth/Makefile new file mode 100644 index 000000000000..b24bec15ca57 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/bluetooth/Makefile @@ -0,0 +1,12 @@ +# $Id: Makefile,v 1.1 2002/11/24 20:39:57 max Exp $ + +.PATH: ${SRCTOP}/sys/netgraph/bluetooth/common + +CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include + +KMOD= ng_bluetooth +SRCS= ng_bluetooth.c + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bluetooth/hci/Makefile b/sys/modules/netgraph/bluetooth/hci/Makefile new file mode 100644 index 000000000000..7d648106a393 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/hci/Makefile @@ -0,0 +1,12 @@ +# $Id: Makefile,v 1.1 2002/11/24 20:40:05 max Exp $ + +.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 <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bluetooth/l2cap/Makefile b/sys/modules/netgraph/bluetooth/l2cap/Makefile new file mode 100644 index 000000000000..2008e953a108 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/l2cap/Makefile @@ -0,0 +1,12 @@ +# $Id: Makefile,v 1.1 2002/11/24 20:40:11 max Exp $ + +.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 <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bluetooth/socket/Makefile b/sys/modules/netgraph/bluetooth/socket/Makefile new file mode 100644 index 000000000000..2abfdc8b9d86 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/socket/Makefile @@ -0,0 +1,17 @@ +# $Id: Makefile,v 1.2 2003/01/12 23:37:31 max Exp $ + +.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 <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bluetooth/ubt/Makefile b/sys/modules/netgraph/bluetooth/ubt/Makefile new file mode 100644 index 000000000000..1d95fd567888 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/ubt/Makefile @@ -0,0 +1,12 @@ +# $Id: Makefile,v 1.2 2003/03/22 23:44:34 max Exp $ + +.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 ng_ubt_rtl.c opt_bus.h opt_usb.h \ + device_if.h bus_if.h usb_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile b/sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile new file mode 100644 index 000000000000..1387bcc5a875 --- /dev/null +++ b/sys/modules/netgraph/bluetooth/ubtbcmfw/Makefile @@ -0,0 +1,12 @@ +# $Id: Makefile,v 1.1 2003/04/27 00:22:12 max Exp $ + +.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 <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bpf/Makefile b/sys/modules/netgraph/bpf/Makefile new file mode 100644 index 000000000000..ec77a9af604e --- /dev/null +++ b/sys/modules/netgraph/bpf/Makefile @@ -0,0 +1,8 @@ +# $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 <bsd.kmod.mk> diff --git a/sys/modules/netgraph/bridge/Makefile b/sys/modules/netgraph/bridge/Makefile new file mode 100644 index 000000000000..57a8afc76ff7 --- /dev/null +++ b/sys/modules/netgraph/bridge/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_bridge +SRCS= ng_bridge.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/car/Makefile b/sys/modules/netgraph/car/Makefile new file mode 100644 index 000000000000..baf316e87c81 --- /dev/null +++ b/sys/modules/netgraph/car/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_car +SRCS= ng_car.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/checksum/Makefile b/sys/modules/netgraph/checksum/Makefile new file mode 100644 index 000000000000..4e2b1f547a40 --- /dev/null +++ b/sys/modules/netgraph/checksum/Makefile @@ -0,0 +1,7 @@ +SYSDIR?=${SRCTOP}/sys +.include "${SYSDIR}/conf/kern.opts.mk" + +KMOD= ng_checksum +SRCS= ng_checksum.c opt_inet.h opt_inet6.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/cisco/Makefile b/sys/modules/netgraph/cisco/Makefile new file mode 100644 index 000000000000..4f14df40cca0 --- /dev/null +++ b/sys/modules/netgraph/cisco/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ + +KMOD= ng_cisco +SRCS= ng_cisco.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/deflate/Makefile b/sys/modules/netgraph/deflate/Makefile new file mode 100644 index 000000000000..157df926d06b --- /dev/null +++ b/sys/modules/netgraph/deflate/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_deflate +SRCS= ng_deflate.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/device/Makefile b/sys/modules/netgraph/device/Makefile new file mode 100644 index 000000000000..23be18bd6c18 --- /dev/null +++ b/sys/modules/netgraph/device/Makefile @@ -0,0 +1,6 @@ +KMOD= ng_device +SRCS= ng_device.c + +SRCS+= device_if.h vnode_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/echo/Makefile b/sys/modules/netgraph/echo/Makefile new file mode 100644 index 000000000000..f84a17d7a32b --- /dev/null +++ b/sys/modules/netgraph/echo/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ + +KMOD= ng_echo +SRCS= ng_echo.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/eiface/Makefile b/sys/modules/netgraph/eiface/Makefile new file mode 100644 index 000000000000..eac59c8fbbe3 --- /dev/null +++ b/sys/modules/netgraph/eiface/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_eiface +SRCS= ng_eiface.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/etf/Makefile b/sys/modules/netgraph/etf/Makefile new file mode 100644 index 000000000000..2bec0d6b2bf0 --- /dev/null +++ b/sys/modules/netgraph/etf/Makefile @@ -0,0 +1,6 @@ +# Ethertype filter + +KMOD= ng_etf +SRCS= ng_etf.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/ether/Makefile b/sys/modules/netgraph/ether/Makefile new file mode 100644 index 000000000000..0fecfee3028e --- /dev/null +++ b/sys/modules/netgraph/ether/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_ether +SRCS= ng_ether.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/ether_echo/Makefile b/sys/modules/netgraph/ether_echo/Makefile new file mode 100644 index 000000000000..b8a2bcb555ff --- /dev/null +++ b/sys/modules/netgraph/ether_echo/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:20 archie Exp $ + +KMOD= ng_ether_echo +SRCS= ng_ether_echo.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/frame_relay/Makefile b/sys/modules/netgraph/frame_relay/Makefile new file mode 100644 index 000000000000..9a7e21cad64c --- /dev/null +++ b/sys/modules/netgraph/frame_relay/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.1 1999/01/19 19:39:21 archie Exp $ + +KMOD= ng_frame_relay +SRCS= ng_frame_relay.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/gif/Makefile b/sys/modules/netgraph/gif/Makefile new file mode 100644 index 000000000000..4d0645faaa95 --- /dev/null +++ b/sys/modules/netgraph/gif/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_gif +SRCS= ng_gif.c opt_inet.h opt_inet6.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/gif_demux/Makefile b/sys/modules/netgraph/gif_demux/Makefile new file mode 100644 index 000000000000..ec35e2c8a63c --- /dev/null +++ b/sys/modules/netgraph/gif_demux/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_gif_demux +SRCS= ng_gif_demux.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/hole/Makefile b/sys/modules/netgraph/hole/Makefile new file mode 100644 index 000000000000..3259e37dceb7 --- /dev/null +++ b/sys/modules/netgraph/hole/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:21 archie Exp $ + +KMOD= ng_hole +SRCS= ng_hole.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/hub/Makefile b/sys/modules/netgraph/hub/Makefile new file mode 100644 index 000000000000..1d4af5d307b0 --- /dev/null +++ b/sys/modules/netgraph/hub/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_hub +SRCS= ng_hub.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/iface/Makefile b/sys/modules/netgraph/iface/Makefile new file mode 100644 index 000000000000..78a9e0cfcf08 --- /dev/null +++ b/sys/modules/netgraph/iface/Makefile @@ -0,0 +1,6 @@ +# $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 <bsd.kmod.mk> diff --git a/sys/modules/netgraph/ip_input/Makefile b/sys/modules/netgraph/ip_input/Makefile new file mode 100644 index 000000000000..55468f920d1a --- /dev/null +++ b/sys/modules/netgraph/ip_input/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_ip_input +SRCS= ng_ip_input.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/ipfw/Makefile b/sys/modules/netgraph/ipfw/Makefile new file mode 100644 index 000000000000..34163090ee22 --- /dev/null +++ b/sys/modules/netgraph/ipfw/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_ipfw +SRCS= ng_ipfw.c opt_inet.h opt_inet6.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/ksocket/Makefile b/sys/modules/netgraph/ksocket/Makefile new file mode 100644 index 000000000000..7099648f6219 --- /dev/null +++ b/sys/modules/netgraph/ksocket/Makefile @@ -0,0 +1,6 @@ +KMOD= ng_ksocket +SRCS= ng_ksocket.c + +SRCS+= opt_inet6.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/l2tp/Makefile b/sys/modules/netgraph/l2tp/Makefile new file mode 100644 index 000000000000..c2c78073c4bd --- /dev/null +++ b/sys/modules/netgraph/l2tp/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_l2tp +SRCS= ng_l2tp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/lmi/Makefile b/sys/modules/netgraph/lmi/Makefile new file mode 100644 index 000000000000..cba330b1626c --- /dev/null +++ b/sys/modules/netgraph/lmi/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.1 1999/01/19 19:39:21 archie Exp $ + +KMOD= ng_lmi +SRCS= ng_lmi.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/macfilter/Makefile b/sys/modules/netgraph/macfilter/Makefile new file mode 100644 index 000000000000..28830b7f0462 --- /dev/null +++ b/sys/modules/netgraph/macfilter/Makefile @@ -0,0 +1,7 @@ +KMOD= ng_macfilter +SRCS= ng_macfilter.c + +.include <bsd.kmod.mk> + +#CFLAGS+= -DNG_MACFILTER_DEBUG +#CFLAGS+= -DNG_MACFILTER_DEBUG_RECVDATA diff --git a/sys/modules/netgraph/mppc/Makefile b/sys/modules/netgraph/mppc/Makefile new file mode 100644 index 000000000000..58110592aa14 --- /dev/null +++ b/sys/modules/netgraph/mppc/Makefile @@ -0,0 +1,30 @@ +# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $ + +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 <bsd.kmod.mk> diff --git a/sys/modules/netgraph/nat/Makefile b/sys/modules/netgraph/nat/Makefile new file mode 100644 index 000000000000..fd65b6224945 --- /dev/null +++ b/sys/modules/netgraph/nat/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_nat +SRCS= ng_nat.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/netflow/Makefile b/sys/modules/netgraph/netflow/Makefile new file mode 100644 index 000000000000..c73e9ac41680 --- /dev/null +++ b/sys/modules/netgraph/netflow/Makefile @@ -0,0 +1,10 @@ +# +# Author: Gleb Smirnoff <glebius@freebsd.org> +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/netgraph/netgraph/Makefile b/sys/modules/netgraph/netgraph/Makefile new file mode 100644 index 000000000000..7da7ce9d320a --- /dev/null +++ b/sys/modules/netgraph/netgraph/Makefile @@ -0,0 +1,8 @@ +# $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 <bsd.kmod.mk> diff --git a/sys/modules/netgraph/one2many/Makefile b/sys/modules/netgraph/one2many/Makefile new file mode 100644 index 000000000000..2c61c6035f66 --- /dev/null +++ b/sys/modules/netgraph/one2many/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_one2many +SRCS= ng_one2many.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/patch/Makefile b/sys/modules/netgraph/patch/Makefile new file mode 100644 index 000000000000..619b925b2f9b --- /dev/null +++ b/sys/modules/netgraph/patch/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_patch +SRCS= ng_patch.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/pipe/Makefile b/sys/modules/netgraph/pipe/Makefile new file mode 100644 index 000000000000..04e644d7131b --- /dev/null +++ b/sys/modules/netgraph/pipe/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_pipe +SRCS= ng_pipe.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/ppp/Makefile b/sys/modules/netgraph/ppp/Makefile new file mode 100644 index 000000000000..7ab2b8d90750 --- /dev/null +++ b/sys/modules/netgraph/ppp/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.1 1999/01/24 02:52:12 archie Exp $ + +KMOD= ng_ppp +SRCS= ng_ppp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/pppoe/Makefile b/sys/modules/netgraph/pppoe/Makefile new file mode 100644 index 000000000000..26aa4dd0fa6d --- /dev/null +++ b/sys/modules/netgraph/pppoe/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.1 1999/01/19 19:39:21 archie Exp $ + +KMOD= ng_pppoe +SRCS= ng_pppoe.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/pptpgre/Makefile b/sys/modules/netgraph/pptpgre/Makefile new file mode 100644 index 000000000000..75931e902feb --- /dev/null +++ b/sys/modules/netgraph/pptpgre/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.1 1999/11/29 23:14:33 archie Exp $ + +KMOD= ng_pptpgre +SRCS= ng_pptpgre.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/pred1/Makefile b/sys/modules/netgraph/pred1/Makefile new file mode 100644 index 000000000000..1d51bf5ec3fc --- /dev/null +++ b/sys/modules/netgraph/pred1/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_pred1 +SRCS= ng_pred1.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/rfc1490/Makefile b/sys/modules/netgraph/rfc1490/Makefile new file mode 100644 index 000000000000..77f22bb449bc --- /dev/null +++ b/sys/modules/netgraph/rfc1490/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ + +KMOD= ng_rfc1490 +SRCS= ng_rfc1490.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/sample/Makefile b/sys/modules/netgraph/sample/Makefile new file mode 100644 index 000000000000..e5cc44da6d3c --- /dev/null +++ b/sys/modules/netgraph/sample/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_sample +SRCS= ng_sample.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/socket/Makefile b/sys/modules/netgraph/socket/Makefile new file mode 100644 index 000000000000..9f91e9300579 --- /dev/null +++ b/sys/modules/netgraph/socket/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ + +KMOD= ng_socket +SRCS= ng_socket.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/source/Makefile b/sys/modules/netgraph/source/Makefile new file mode 100644 index 000000000000..d7d289e99f83 --- /dev/null +++ b/sys/modules/netgraph/source/Makefile @@ -0,0 +1,6 @@ +KMOD= ng_source +SRCS= ng_source.c +# 4.x only +#KMODDEPS= netgraph + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/split/Makefile b/sys/modules/netgraph/split/Makefile new file mode 100644 index 000000000000..9e1977d730c8 --- /dev/null +++ b/sys/modules/netgraph/split/Makefile @@ -0,0 +1,6 @@ +# + +KMOD= ng_split +SRCS= ng_split.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/tag/Makefile b/sys/modules/netgraph/tag/Makefile new file mode 100644 index 000000000000..84cf9b5cc1ec --- /dev/null +++ b/sys/modules/netgraph/tag/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_tag +SRCS= ng_tag.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/tcpmss/Makefile b/sys/modules/netgraph/tcpmss/Makefile new file mode 100644 index 000000000000..443e5b2d3a9b --- /dev/null +++ b/sys/modules/netgraph/tcpmss/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_tcpmss +SRCS= ng_tcpmss.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/tee/Makefile b/sys/modules/netgraph/tee/Makefile new file mode 100644 index 000000000000..4d60bb9f8e4b --- /dev/null +++ b/sys/modules/netgraph/tee/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ + +KMOD= ng_tee +SRCS= ng_tee.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/tty/Makefile b/sys/modules/netgraph/tty/Makefile new file mode 100644 index 000000000000..383792a19f83 --- /dev/null +++ b/sys/modules/netgraph/tty/Makefile @@ -0,0 +1,6 @@ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ + +KMOD= ng_tty +SRCS= ng_tty.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/vjc/Makefile b/sys/modules/netgraph/vjc/Makefile new file mode 100644 index 000000000000..bd0bf6a0967c --- /dev/null +++ b/sys/modules/netgraph/vjc/Makefile @@ -0,0 +1,8 @@ +# $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 <bsd.kmod.mk> diff --git a/sys/modules/netgraph/vlan/Makefile b/sys/modules/netgraph/vlan/Makefile new file mode 100644 index 000000000000..135ac8eca7f3 --- /dev/null +++ b/sys/modules/netgraph/vlan/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_vlan +SRCS= ng_vlan.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/vlan_rotate/Makefile b/sys/modules/netgraph/vlan_rotate/Makefile new file mode 100644 index 000000000000..26e2e5d14e24 --- /dev/null +++ b/sys/modules/netgraph/vlan_rotate/Makefile @@ -0,0 +1,4 @@ +KMOD= ng_vlan_rotate +SRCS= ng_vlan_rotate.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/netlink/Makefile b/sys/modules/netlink/Makefile new file mode 100644 index 000000000000..4abef5106899 --- /dev/null +++ b/sys/modules/netlink/Makefile @@ -0,0 +1,19 @@ +.PATH: ${SRCTOP}/sys/netlink +KMOD= netlink + +SRCS = netlink_module.c netlink_domain.c netlink_io.c \ + netlink_message_writer.c netlink_generic.c \ + netlink_route.c route/iface.c route/iface_drivers.c route/neigh.c \ + route/nexthop.c route/rt.c +SRCS+= opt_inet.h opt_inet6.h opt_route.h + +CFLAGS+= -DNETLINK_MODULE + +EXPORT_SYMS= +EXPORT_SYMS+= nlmsg_refill_buffer +EXPORT_SYMS+= nlmsg_end +EXPORT_SYMS+= nlmsg_flush + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/netmap/Makefile b/sys/modules/netmap/Makefile new file mode 100644 index 000000000000..17b52aec1893 --- /dev/null +++ b/sys/modules/netmap/Makefile @@ -0,0 +1,29 @@ +# +# Compile netmap as a module, useful if you want a netmap bridge +# or loadable drivers. + +.include <bsd.own.mk> # 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 <bsd.kmod.mk> diff --git a/sys/modules/nfe/Makefile b/sys/modules/nfe/Makefile new file mode 100644 index 000000000000..2450875e9230 --- /dev/null +++ b/sys/modules/nfe/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/nfscl/Makefile b/sys/modules/nfscl/Makefile new file mode 100644 index 000000000000..82cf5def65b7 --- /dev/null +++ b/sys/modules/nfscl/Makefile @@ -0,0 +1,44 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/nfscommon/Makefile b/sys/modules/nfscommon/Makefile new file mode 100644 index 000000000000..317b14d3fbd4 --- /dev/null +++ b/sys/modules/nfscommon/Makefile @@ -0,0 +1,17 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/nfsd/Makefile b/sys/modules/nfsd/Makefile new file mode 100644 index 000000000000..6861ace28685 --- /dev/null +++ b/sys/modules/nfsd/Makefile @@ -0,0 +1,19 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/nfslockd/Makefile b/sys/modules/nfslockd/Makefile new file mode 100644 index 000000000000..20cbe1d02c6a --- /dev/null +++ b/sys/modules/nfslockd/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/nfssvc/Makefile b/sys/modules/nfssvc/Makefile new file mode 100644 index 000000000000..02c0acb808de --- /dev/null +++ b/sys/modules/nfssvc/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/nfs +KMOD= nfssvc +SRCS= nfs_nfssvc.c \ + opt_nfs.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/nge/Makefile b/sys/modules/nge/Makefile new file mode 100644 index 000000000000..ac746a87fcef --- /dev/null +++ b/sys/modules/nge/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/nlsysevent/Makefile b/sys/modules/nlsysevent/Makefile new file mode 100644 index 000000000000..cffedc9539cf --- /dev/null +++ b/sys/modules/nlsysevent/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/netlink/ + +KMOD= nlsysevent +SRCS= netlink_sysevent.c + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/nmdm/Makefile b/sys/modules/nmdm/Makefile new file mode 100644 index 000000000000..81e5e4b37c64 --- /dev/null +++ b/sys/modules/nmdm/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/nmdm + +KMOD= nmdm +SRCS= nmdm.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/ntb/Makefile b/sys/modules/ntb/Makefile new file mode 100644 index 000000000000..421a98b5fadd --- /dev/null +++ b/sys/modules/ntb/Makefile @@ -0,0 +1,3 @@ +SUBDIR= ntb ntb_hw_amd ntb_hw_intel ntb_hw_plx ntb_transport ntb_tool if_ntb + +.include <bsd.subdir.mk> diff --git a/sys/modules/ntb/if_ntb/Makefile b/sys/modules/ntb/if_ntb/Makefile new file mode 100644 index 000000000000..3657bf64bb71 --- /dev/null +++ b/sys/modules/ntb/if_ntb/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ntb/ntb/Makefile b/sys/modules/ntb/ntb/Makefile new file mode 100644 index 000000000000..45bc0678cc92 --- /dev/null +++ b/sys/modules/ntb/ntb/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ntb/ntb_hw_amd/Makefile b/sys/modules/ntb/ntb_hw_amd/Makefile new file mode 100644 index 000000000000..d69f1f5daedd --- /dev/null +++ b/sys/modules/ntb/ntb_hw_amd/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ntb/ntb_hw_intel/Makefile b/sys/modules/ntb/ntb_hw_intel/Makefile new file mode 100644 index 000000000000..f28b02d7a0ec --- /dev/null +++ b/sys/modules/ntb/ntb_hw_intel/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ntb/ntb_hw_plx/Makefile b/sys/modules/ntb/ntb_hw_plx/Makefile new file mode 100644 index 000000000000..2785da7ea0ce --- /dev/null +++ b/sys/modules/ntb/ntb_hw_plx/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ntb/ntb_tool/Makefile b/sys/modules/ntb/ntb_tool/Makefile new file mode 100644 index 000000000000..a4c554f46709 --- /dev/null +++ b/sys/modules/ntb/ntb_tool/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ntb/ntb_transport/Makefile b/sys/modules/ntb/ntb_transport/Makefile new file mode 100644 index 000000000000..5692bb4361bf --- /dev/null +++ b/sys/modules/ntb/ntb_transport/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/nullfs/Makefile b/sys/modules/nullfs/Makefile new file mode 100644 index 000000000000..e9644106773e --- /dev/null +++ b/sys/modules/nullfs/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/fs/nullfs + +KMOD= nullfs +SRCS= vnode_if.h \ + null_subr.c null_vfsops.c null_vnops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/nvd/Makefile b/sys/modules/nvd/Makefile new file mode 100644 index 000000000000..08b2d61859e9 --- /dev/null +++ b/sys/modules/nvd/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/nvd + +KMOD= nvd +SRCS= nvd.c opt_geom.h device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/nvdimm/Makefile b/sys/modules/nvdimm/Makefile new file mode 100644 index 000000000000..81beca9adf16 --- /dev/null +++ b/sys/modules/nvdimm/Makefile @@ -0,0 +1,19 @@ +.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 <bsd.kmod.mk> + +# 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 new file mode 100644 index 000000000000..936a28fa5de9 --- /dev/null +++ b/sys/modules/nvme/Makefile @@ -0,0 +1,25 @@ +.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 \ + \ + bus_if.h \ + device_if.h \ + opt_cam.h \ + opt_nvme.h \ + pci_if.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/nvmf/Makefile b/sys/modules/nvmf/Makefile new file mode 100644 index 000000000000..88ea40be1257 --- /dev/null +++ b/sys/modules/nvmf/Makefile @@ -0,0 +1,6 @@ +SUBDIR= nvmf \ + nvmf_tcp \ + nvmf_transport \ + nvmft + +.include <bsd.subdir.mk> diff --git a/sys/modules/nvmf/nvmf/Makefile b/sys/modules/nvmf/nvmf/Makefile new file mode 100644 index 000000000000..21d73d363d2f --- /dev/null +++ b/sys/modules/nvmf/nvmf/Makefile @@ -0,0 +1,16 @@ +.PATH: ${SRCTOP}/sys/dev/nvmf/host + +KMOD= nvmf + +SRCS= nvmf.c \ + nvmf_aer.c \ + nvmf_cmd.c \ + nvmf_ctldev.c \ + nvmf_ns.c \ + nvmf_qpair.c \ + nvmf_sim.c + +SRCS+= bus_if.h device_if.h +SRCS+= opt_cam.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/nvmf/nvmf_tcp/Makefile b/sys/modules/nvmf/nvmf_tcp/Makefile new file mode 100644 index 000000000000..51d3e17276f4 --- /dev/null +++ b/sys/modules/nvmf/nvmf_tcp/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/nvmf + +KMOD= nvmf_tcp + +SRCS= nvmf_tcp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/nvmf/nvmf_transport/Makefile b/sys/modules/nvmf/nvmf_transport/Makefile new file mode 100644 index 000000000000..f0edfac5ac35 --- /dev/null +++ b/sys/modules/nvmf/nvmf_transport/Makefile @@ -0,0 +1,9 @@ +.PATH: ${SRCTOP}/sys/dev/nvmf + +KMOD= nvmf_transport + +SRCS= nvmf_transport.c + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/nvmf/nvmft/Makefile b/sys/modules/nvmf/nvmft/Makefile new file mode 100644 index 000000000000..b47ffa53c310 --- /dev/null +++ b/sys/modules/nvmf/nvmft/Makefile @@ -0,0 +1,10 @@ +.PATH: ${SRCTOP}/sys/dev/nvmf/controller + +KMOD= nvmft + +SRCS= ctl_frontend_nvmf.c \ + nvmft_controller.c \ + nvmft_subr.c \ + nvmft_qpair.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/nvram/Makefile b/sys/modules/nvram/Makefile new file mode 100644 index 000000000000..1cba445eb978 --- /dev/null +++ b/sys/modules/nvram/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/nvram + +KMOD= nvram +SRCS= nvram.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/oce/Makefile b/sys/modules/oce/Makefile new file mode 100644 index 000000000000..0b9cb6eaf1fe --- /dev/null +++ b/sys/modules/oce/Makefile @@ -0,0 +1,14 @@ +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/ocs_fc/Makefile b/sys/modules/ocs_fc/Makefile new file mode 100644 index 000000000000..a855f71ec19e --- /dev/null +++ b/sys/modules/ocs_fc/Makefile @@ -0,0 +1,45 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/opal_nvram/Makefile b/sys/modules/opal_nvram/Makefile new file mode 100644 index 000000000000..c607684258ba --- /dev/null +++ b/sys/modules/opal_nvram/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/opensolaris/Makefile b/sys/modules/opensolaris/Makefile new file mode 100644 index 000000000000..98f52057e45e --- /dev/null +++ b/sys/modules/opensolaris/Makefile @@ -0,0 +1,34 @@ +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 <bsd.kmod.mk> + +CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h diff --git a/sys/modules/ossl/Makefile b/sys/modules/ossl/Makefile new file mode 100644 index 000000000000..c516fe0c158d --- /dev/null +++ b/sys/modules/ossl/Makefile @@ -0,0 +1,128 @@ +.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.arm= \ + aes-armv4.S \ + bsaes-armv7.S \ + chacha-armv4.S \ + ghash-armv4.S \ + poly1305-armv4.S \ + sha1-armv4-large.S \ + sha256-armv4.S \ + sha512-armv4.S \ + ossl_arm.c \ + ossl_aes_gcm_neon.c + +SRCS.aarch64= \ + chacha-armv8.S \ + chacha-armv8-sve.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_aes_gcm_avx512.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 + +SRCS.powerpc64le= \ + aes-gcm-ppc.S \ + ossl_aes_gcm.c \ + ossl_ppccap.c \ + aes-ppc.S \ + aesp8-ppc.S \ + chacha-ppc.S \ + ecp_nistz256-ppc64.S \ + ghashp8-ppc.S \ + keccak1600-ppc64.S \ + poly1305-ppc.S \ + poly1305-ppcfp.S \ + ppc-mont.S \ + ppc.S \ + ppccpuid.S \ + sha1-ppc.S \ + sha256-ppc.S \ + sha256p8-ppc.S \ + sha512-ppc.S \ + sha512p8-ppc.S \ + vpaes-ppc.S \ + x25519-ppc64.S + +SRCS.powerpc64= \ + aes-gcm-ppc.S \ + ossl_aes_gcm.c \ + ossl_ppccap.c \ + aes-ppc.S \ + aesp8-ppc.S \ + chacha-ppc.S \ + ecp_nistz256-ppc64.S \ + ghashp8-ppc.S \ + keccak1600-ppc64.S \ + poly1305-ppc.S \ + poly1305-ppcfp.S \ + ppc-mont.S \ + ppc.S \ + ppccpuid.S \ + sha1-ppc.S \ + sha256-ppc.S \ + sha256p8-ppc.S \ + sha512-ppc.S \ + sha512p8-ppc.S \ + vpaes-ppc.S \ + x25519-ppc64.S + +CFLAGS.bsaes-armv7.S+= -D__KERNEL__ + +CFLAGS+= -I${SRCTOP}/sys/crypto/openssl + +# 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 <bsd.kmod.mk> diff --git a/sys/modules/otus/Makefile b/sys/modules/otus/Makefile new file mode 100644 index 000000000000..5e5d9c16dc8d --- /dev/null +++ b/sys/modules/otus/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/otusfw/Makefile b/sys/modules/otusfw/Makefile new file mode 100644 index 000000000000..4535be9f596d --- /dev/null +++ b/sys/modules/otusfw/Makefile @@ -0,0 +1,3 @@ +SUBDIR=otusfw_init otusfw_main + +.include <bsd.subdir.mk> diff --git a/sys/modules/otusfw/otusfw_init/Makefile b/sys/modules/otusfw/otusfw_init/Makefile new file mode 100644 index 000000000000..0b06fddcfeeb --- /dev/null +++ b/sys/modules/otusfw/otusfw_init/Makefile @@ -0,0 +1,9 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/otusfw/otusfw_main/Makefile b/sys/modules/otusfw/otusfw_main/Makefile new file mode 100644 index 000000000000..d83863486cbc --- /dev/null +++ b/sys/modules/otusfw/otusfw_main/Makefile @@ -0,0 +1,9 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/ow/Makefile b/sys/modules/ow/Makefile new file mode 100644 index 000000000000..76fefe3e63be --- /dev/null +++ b/sys/modules/ow/Makefile @@ -0,0 +1,6 @@ +SYSDIR?=${SRCTOP}/sys +.include "${SYSDIR}/conf/kern.opts.mk" + +SUBDIR = ow owc ow_temp + +.include <bsd.subdir.mk> diff --git a/sys/modules/ow/ow/Makefile b/sys/modules/ow/ow/Makefile new file mode 100644 index 000000000000..d1b4896dfbfc --- /dev/null +++ b/sys/modules/ow/ow/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ow/ow_temp/Makefile b/sys/modules/ow/ow_temp/Makefile new file mode 100644 index 000000000000..918bb19fbe13 --- /dev/null +++ b/sys/modules/ow/ow_temp/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/ow + +KMOD= ow_temp +SRCS= ow_temp.c +SRCS+= own_if.h bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/ow/owc/Makefile b/sys/modules/ow/owc/Makefile new file mode 100644 index 000000000000..ba8f672d4abb --- /dev/null +++ b/sys/modules/ow/owc/Makefile @@ -0,0 +1,10 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/p2sb/Makefile b/sys/modules/p2sb/Makefile new file mode 100644 index 000000000000..8dc643240d27 --- /dev/null +++ b/sys/modules/p2sb/Makefile @@ -0,0 +1,7 @@ +.PATH: ${.CURDIR}/../../dev/p2sb + +KMOD= p2sb +SRCS= p2sb.c lewisburg_gpio.c lewisburg_gpiocm.c +SRCS+= device_if.h bus_if.h pci_if.h gpio_if.h opt_platform.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/p9fs/Makefile b/sys/modules/p9fs/Makefile new file mode 100644 index 000000000000..ae90cb3a46d7 --- /dev/null +++ b/sys/modules/p9fs/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/fs/p9fs + +KMOD= p9fs +SRCS= vnode_if.h \ + p9_client.c p9_protocol.c p9_transport.c \ + p9fs_subr.c p9fs_vfsops.c p9fs_vnops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/padlock/Makefile b/sys/modules/padlock/Makefile new file mode 100644 index 000000000000..2515ddb1d5fe --- /dev/null +++ b/sys/modules/padlock/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/padlock_rng/Makefile b/sys/modules/padlock_rng/Makefile new file mode 100644 index 000000000000..f9c137ed69c9 --- /dev/null +++ b/sys/modules/padlock_rng/Makefile @@ -0,0 +1,9 @@ +.PATH: ${SRCTOP}/sys/dev/random + +KMOD= padlock_rng +SRCS= nehemiah.c +SRCS+= bus_if.h device_if.h + +CFLAGS+= -I${SRCTOP}/sys + +.include <bsd.kmod.mk> diff --git a/sys/modules/pcfclock/Makefile b/sys/modules/pcfclock/Makefile new file mode 100644 index 000000000000..51a9e3a11ed6 --- /dev/null +++ b/sys/modules/pcfclock/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/ppbus + +KMOD= pcfclock +SRCS= pcfclock.c opt_pcfclock.h +SRCS+= bus_if.h device_if.h ppbus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/pchtherm/Makefile b/sys/modules/pchtherm/Makefile new file mode 100644 index 000000000000..10cffb2fd0a3 --- /dev/null +++ b/sys/modules/pchtherm/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/intel +KMOD= pchtherm +SRCS= pchtherm.c +SRCS+= device_if.h bus_if.h pci_if.h opt_platform.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/pf/Makefile b/sys/modules/pf/Makefile new file mode 100644 index 000000000000..ad9790704cf1 --- /dev/null +++ b/sys/modules/pf/Makefile @@ -0,0 +1,26 @@ +.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_nl.c pf_nv.c pf_syncookies.c in4_cksum.c inet_nat64.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 <bsd.kmod.mk> diff --git a/sys/modules/pflog/Makefile b/sys/modules/pflog/Makefile new file mode 100644 index 000000000000..f7da8c3cbcb3 --- /dev/null +++ b/sys/modules/pflog/Makefile @@ -0,0 +1,16 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/pflow/Makefile b/sys/modules/pflow/Makefile new file mode 100644 index 000000000000..674ca8970607 --- /dev/null +++ b/sys/modules/pflow/Makefile @@ -0,0 +1,16 @@ +.PATH: ${SRCTOP}/sys/netpfil/pf + +KMOD= pflow +SRCS= pflow.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 <bsd.kmod.mk> diff --git a/sys/modules/pfsync/Makefile b/sys/modules/pfsync/Makefile new file mode 100644 index 000000000000..aecd3a9f0448 --- /dev/null +++ b/sys/modules/pfsync/Makefile @@ -0,0 +1,16 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/plip/Makefile b/sys/modules/plip/Makefile new file mode 100644 index 000000000000..e54f2beef56d --- /dev/null +++ b/sys/modules/plip/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/ppbus +KMOD= plip +SRCS= bus_if.h device_if.h ppbus_if.h \ + opt_plip.h \ + if_plip.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/pms/Makefile b/sys/modules/pms/Makefile new file mode 100644 index 000000000000..8bd21fc4b502 --- /dev/null +++ b/sys/modules/pms/Makefile @@ -0,0 +1,57 @@ +# 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 <bsd.kmod.mk> diff --git a/sys/modules/pms/Makefile.inc b/sys/modules/pms/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/pms/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/powermac_nvram/Makefile b/sys/modules/powermac_nvram/Makefile new file mode 100644 index 000000000000..c2f724a54d9f --- /dev/null +++ b/sys/modules/powermac_nvram/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ppbus/Makefile b/sys/modules/ppbus/Makefile new file mode 100644 index 000000000000..eef4d8c5683e --- /dev/null +++ b/sys/modules/ppbus/Makefile @@ -0,0 +1,22 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ppc/Makefile b/sys/modules/ppc/Makefile new file mode 100644 index 000000000000..3142dbdaebb9 --- /dev/null +++ b/sys/modules/ppc/Makefile @@ -0,0 +1,11 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ppi/Makefile b/sys/modules/ppi/Makefile new file mode 100644 index 000000000000..213d6f17580c --- /dev/null +++ b/sys/modules/ppi/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/pps/Makefile b/sys/modules/pps/Makefile new file mode 100644 index 000000000000..11ad95e68e0d --- /dev/null +++ b/sys/modules/pps/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/ppbus +KMOD= pps +SRCS= bus_if.h device_if.h ppbus_if.h \ + pps.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/procfs/Makefile b/sys/modules/procfs/Makefile new file mode 100644 index 000000000000..0ee750b6d929 --- /dev/null +++ b/sys/modules/procfs/Makefile @@ -0,0 +1,26 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/proto/Makefile b/sys/modules/proto/Makefile new file mode 100644 index 000000000000..ab417090643b --- /dev/null +++ b/sys/modules/proto/Makefile @@ -0,0 +1,16 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/pseudofs/Makefile b/sys/modules/pseudofs/Makefile new file mode 100644 index 000000000000..cb92b8912c86 --- /dev/null +++ b/sys/modules/pseudofs/Makefile @@ -0,0 +1,29 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/pst/Makefile b/sys/modules/pst/Makefile new file mode 100644 index 000000000000..77387e1a26ca --- /dev/null +++ b/sys/modules/pst/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/pt/Makefile b/sys/modules/pt/Makefile new file mode 100644 index 000000000000..416b072face9 --- /dev/null +++ b/sys/modules/pt/Makefile @@ -0,0 +1,8 @@ + +.PATH: ${SRCTOP}/sys/amd64/pt + +KMOD= pt +SRCS= pt.c pt.h device_if.h bus_if.h +SRCS+= opt_hwpmc_hooks.h opt_kstack_pages.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/pty/Makefile b/sys/modules/pty/Makefile new file mode 100644 index 000000000000..fc708d42263b --- /dev/null +++ b/sys/modules/pty/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/pty + +KMOD= pty +SRCS= pty.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/puc/Makefile b/sys/modules/puc/Makefile new file mode 100644 index 000000000000..afa4fe074700 --- /dev/null +++ b/sys/modules/puc/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/puc ${SRCTOP}/sys/dev/uart/ + +KMOD= puc +SRCS= puc.c puc_cfg.c puc_pci.c uart_bus_puc.c +SRCS+= bus_if.h device_if.h serdev_if.c serdev_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/pwm/Makefile b/sys/modules/pwm/Makefile new file mode 100644 index 000000000000..bee797145842 --- /dev/null +++ b/sys/modules/pwm/Makefile @@ -0,0 +1,13 @@ +# 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 <bsd.subdir.mk> diff --git a/sys/modules/pwm/pwm_backlight/Makefile b/sys/modules/pwm/pwm_backlight/Makefile new file mode 100644 index 000000000000..635ebe513f30 --- /dev/null +++ b/sys/modules/pwm/pwm_backlight/Makefile @@ -0,0 +1,14 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/pwm/pwmbus/Makefile b/sys/modules/pwm/pwmbus/Makefile new file mode 100644 index 000000000000..5c5f0051ee02 --- /dev/null +++ b/sys/modules/pwm/pwmbus/Makefile @@ -0,0 +1,20 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/pwm/pwmc/Makefile b/sys/modules/pwm/pwmc/Makefile new file mode 100644 index 000000000000..a5c589cc7ae3 --- /dev/null +++ b/sys/modules/pwm/pwmc/Makefile @@ -0,0 +1,16 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/qat/Makefile b/sys/modules/qat/Makefile new file mode 100644 index 000000000000..e32a9495f7bc --- /dev/null +++ b/sys/modules/qat/Makefile @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +SUBDIR= qat_common \ + qat_api \ + qat_hw \ + qat + +.include <bsd.subdir.mk> diff --git a/sys/modules/qat/qat/Makefile b/sys/modules/qat/qat/Makefile new file mode 100644 index 000000000000..cee1ee8fb1b1 --- /dev/null +++ b/sys/modules/qat/qat/Makefile @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +.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 opt_qat.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 + +.if !defined(KERNBUILDDIR) +CFLAGS+= -include opt_qat.h +MKDEP= -include opt_qat.h + +opt_qat.h: + :> ${.TARGET} +.if defined(QAT_DISABLE_SAFE_DC_MODE) && ${QAT_DISABLE_SAFE_DC_MODE} == "1" + @echo "#define QAT_DISABLE_SAFE_DC_MODE 1" >> ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> + +.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 new file mode 100644 index 000000000000..24fbcb46a987 --- /dev/null +++ b/sys/modules/qat/qat_api/Makefile @@ -0,0 +1,90 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +.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 opt_qat.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} + +.if !defined(KERNBUILDDIR) +CFLAGS+= -include opt_qat.h +MKDEP= -include opt_qat.h + +opt_qat.h: + :> ${.TARGET} +.if defined(QAT_DISABLE_SAFE_DC_MODE) && ${QAT_DISABLE_SAFE_DC_MODE} == "1" + @echo "#define QAT_DISABLE_SAFE_DC_MODE 1" >> ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> + +CWARNFLAGS+= -Wno-cast-qual diff --git a/sys/modules/qat/qat_common/Makefile b/sys/modules/qat/qat_common/Makefile new file mode 100644 index 000000000000..af8ce86d6be2 --- /dev/null +++ b/sys/modules/qat/qat_common/Makefile @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +.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_dbgfs.c +SRCS+= adf_freebsd_pfvf_ctrs_dbg.c +SRCS+= bus_if.h device_if.h pci_if.h vnode_if.h opt_qat.h + +CFLAGS+= -I${SRCTOP}/sys/dev/qat/include +CFLAGS+= -I${SRCTOP}/sys/dev/qat/include/common +CFLAGS+= ${LINUXKPI_INCLUDES} + +.if !defined(KERNBUILDDIR) +CFLAGS+= -include opt_qat.h +MKDEP= -include opt_qat.h + +opt_qat.h: + :> ${.TARGET} +.if defined(QAT_DISABLE_SAFE_DC_MODE) && ${QAT_DISABLE_SAFE_DC_MODE} == "1" + @echo "#define QAT_DISABLE_SAFE_DC_MODE 1" >> ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/qat/qat_hw/Makefile b/sys/modules/qat/qat_hw/Makefile new file mode 100644 index 000000000000..4ab8db5f0c56 --- /dev/null +++ b/sys/modules/qat/qat_hw/Makefile @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +.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 opt_qat.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 + +.if !defined(KERNBUILDDIR) +CFLAGS+= -include opt_qat.h +MKDEP= -include opt_qat.h + +opt_qat.h: + :> ${.TARGET} +.if defined(QAT_DISABLE_SAFE_DC_MODE) && ${QAT_DISABLE_SAFE_DC_MODE} == "1" + @echo "#define QAT_DISABLE_SAFE_DC_MODE 1" >> ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/qat_c2xxx/Makefile b/sys/modules/qat_c2xxx/Makefile new file mode 100644 index 000000000000..a0509e84bc5e --- /dev/null +++ b/sys/modules/qat_c2xxx/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/qat_c2xxxfw/Makefile b/sys/modules/qat_c2xxxfw/Makefile new file mode 100644 index 000000000000..04e162148860 --- /dev/null +++ b/sys/modules/qat_c2xxxfw/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/qatfw/Makefile b/sys/modules/qatfw/Makefile new file mode 100644 index 000000000000..b135fd2d95dc --- /dev/null +++ b/sys/modules/qatfw/Makefile @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +SUBDIR= qat_c62x \ + qat_200xx \ + qat_c3xxx \ + qat_c4xxx \ + qat_dh895xcc \ + qat_4xxx + +.include <bsd.subdir.mk> diff --git a/sys/modules/qatfw/qat_200xx/Makefile b/sys/modules/qatfw/qat_200xx/Makefile new file mode 100644 index 000000000000..97ec5080f1c8 --- /dev/null +++ b/sys/modules/qatfw/qat_200xx/Makefile @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +.PATH: ${SRCTOP}/sys/contrib/dev/qat + +KMOD= qat_200xx_fw + +FIRMWS= qat_200xx.bin:qat_200xx_fw:111 qat_200xx_mmp.bin:qat_200xx_mmp_fw:111 + +.include <bsd.kmod.mk> diff --git a/sys/modules/qatfw/qat_4xxx/Makefile b/sys/modules/qatfw/qat_4xxx/Makefile new file mode 100644 index 000000000000..f6f19d6cbe32 --- /dev/null +++ b/sys/modules/qatfw/qat_4xxx/Makefile @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +.PATH: ${SRCTOP}/sys/contrib/dev/qat + +KMOD= qat_4xxx_fw + +FIRMWS= qat_4xxx.bin:qat_4xxx_fw:111 \ + qat_4xxx_mmp.bin:qat_4xxx_mmp_fw:111 \ + qat_402xx.bin:qat_402xx_fw:111 \ + qat_402xx_mmp.bin:qat_402xx_mmp_fw:111 + +.include <bsd.kmod.mk> diff --git a/sys/modules/qatfw/qat_c3xxx/Makefile b/sys/modules/qatfw/qat_c3xxx/Makefile new file mode 100644 index 000000000000..e5c8c0741fa2 --- /dev/null +++ b/sys/modules/qatfw/qat_c3xxx/Makefile @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +.PATH: ${SRCTOP}/sys/contrib/dev/qat + +KMOD= qat_c3xxx_fw + +FIRMWS= qat_c3xxx.bin:qat_c3xxx_fw:111 qat_c3xxx_mmp.bin:qat_c3xxx_mmp_fw:111 + +.include <bsd.kmod.mk> diff --git a/sys/modules/qatfw/qat_c4xxx/Makefile b/sys/modules/qatfw/qat_c4xxx/Makefile new file mode 100644 index 000000000000..8b4e0cda6746 --- /dev/null +++ b/sys/modules/qatfw/qat_c4xxx/Makefile @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +.PATH: ${SRCTOP}/sys/contrib/dev/qat + +KMOD= qat_c4xxx_fw + +FIRMWS= qat_c4xxx.bin:qat_c4xxx_fw:111 qat_c4xxx_mmp.bin:qat_c4xxx_mmp_fw:111 + +.include <bsd.kmod.mk> diff --git a/sys/modules/qatfw/qat_c62x/Makefile b/sys/modules/qatfw/qat_c62x/Makefile new file mode 100644 index 000000000000..0385653bc7ff --- /dev/null +++ b/sys/modules/qatfw/qat_c62x/Makefile @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +.PATH: ${SRCTOP}/sys/contrib/dev/qat + +KMOD= qat_c62x_fw + +FIRMWS= qat_c62x.bin:qat_c62x_fw:111 qat_c62x_mmp.bin:qat_c62x_mmp_fw:111 + +.include <bsd.kmod.mk> diff --git a/sys/modules/qatfw/qat_dh895xcc/Makefile b/sys/modules/qatfw/qat_dh895xcc/Makefile new file mode 100644 index 000000000000..d277e3dc02f7 --- /dev/null +++ b/sys/modules/qatfw/qat_dh895xcc/Makefile @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2007-2022 Intel Corporation +.PATH: ${SRCTOP}/sys/contrib/dev/qat + +KMOD= qat_dh895xcc_fw + +FIRMWS= qat_895xcc.bin:qat_dh895xcc_fw:111 qat_895xcc_mmp.bin:qat_dh895xcc_mmp_fw:111 + +.include <bsd.kmod.mk> diff --git a/sys/modules/qlnx/Makefile b/sys/modules/qlnx/Makefile new file mode 100644 index 000000000000..2121f9d586a6 --- /dev/null +++ b/sys/modules/qlnx/Makefile @@ -0,0 +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. +# */ +# +# + +SYSDIR?=${SRCTOP}/sys +.include "${SYSDIR}/conf/kern.opts.mk" + +SUBDIR=qlnxe +SUBDIR+=qlnxev +SUBDIR+=qlnxr + +.include <bsd.subdir.mk> diff --git a/sys/modules/qlnx/qlnxe/Makefile b/sys/modules/qlnx/qlnxe/Makefile new file mode 100644 index 000000000000..2a44ae6ddde5 --- /dev/null +++ b/sys/modules/qlnx/qlnxe/Makefile @@ -0,0 +1,91 @@ +#/* +# * 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. +# */ +# +# + +.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+=opt_inet.h + +SRCS+= ${LINUXKPI_GENSRCS} + +.include <bsd.kmod.mk> + +#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 new file mode 100644 index 000000000000..766a5a950032 --- /dev/null +++ b/sys/modules/qlnx/qlnxev/Makefile @@ -0,0 +1,76 @@ +#/* +# * 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. +# */ +# +# + +.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+=opt_inet.h + +SRCS+= ${LINUXKPI_GENSRCS} + +.include <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..fe33d43f0963 --- /dev/null +++ b/sys/modules/qlnx/qlnxr/Makefile @@ -0,0 +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. +# */ +# +# + +#.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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..053316bc2ca8 --- /dev/null +++ b/sys/modules/qlxgb/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/qlxgbe/Makefile b/sys/modules/qlxgbe/Makefile new file mode 100644 index 000000000000..3f49c1b1b679 --- /dev/null +++ b/sys/modules/qlxgbe/Makefile @@ -0,0 +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. +# */ +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/qlxge/Makefile b/sys/modules/qlxge/Makefile new file mode 100644 index 000000000000..82fc52d4d211 --- /dev/null +++ b/sys/modules/qlxge/Makefile @@ -0,0 +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. +# */ +# +# + +.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 <bsd.kmod.mk> + diff --git a/sys/modules/ral/Makefile b/sys/modules/ral/Makefile new file mode 100644 index 000000000000..156b1ab36dd5 --- /dev/null +++ b/sys/modules/ral/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ralfw/Makefile b/sys/modules/ralfw/Makefile new file mode 100644 index 000000000000..b474ee6c3517 --- /dev/null +++ b/sys/modules/ralfw/Makefile @@ -0,0 +1,3 @@ +SUBDIR= rt2561 rt2561s rt2661 rt2860 + +.include <bsd.subdir.mk> diff --git a/sys/modules/ralfw/Makefile.inc b/sys/modules/ralfw/Makefile.inc new file mode 100644 index 000000000000..f5b29d817300 --- /dev/null +++ b/sys/modules/ralfw/Makefile.inc @@ -0,0 +1,13 @@ +# +# 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 new file mode 100644 index 000000000000..906b41278662 --- /dev/null +++ b/sys/modules/ralfw/rt2561/Makefile @@ -0,0 +1,3 @@ +IMG= rt2561 + +.include <bsd.kmod.mk> diff --git a/sys/modules/ralfw/rt2561s/Makefile b/sys/modules/ralfw/rt2561s/Makefile new file mode 100644 index 000000000000..7890f8bc8b3c --- /dev/null +++ b/sys/modules/ralfw/rt2561s/Makefile @@ -0,0 +1,3 @@ +IMG= rt2561s + +.include <bsd.kmod.mk> diff --git a/sys/modules/ralfw/rt2661/Makefile b/sys/modules/ralfw/rt2661/Makefile new file mode 100644 index 000000000000..e4b01e030133 --- /dev/null +++ b/sys/modules/ralfw/rt2661/Makefile @@ -0,0 +1,4 @@ +IMG= rt2661 + +.include <bsd.kmod.mk> + diff --git a/sys/modules/ralfw/rt2860/Makefile b/sys/modules/ralfw/rt2860/Makefile new file mode 100644 index 000000000000..fadf41f44952 --- /dev/null +++ b/sys/modules/ralfw/rt2860/Makefile @@ -0,0 +1,3 @@ +IMG= rt2860 + +.include <bsd.kmod.mk> diff --git a/sys/modules/random_fortuna/Makefile b/sys/modules/random_fortuna/Makefile new file mode 100644 index 000000000000..0cddaa4ab30e --- /dev/null +++ b/sys/modules/random_fortuna/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/random_other/Makefile b/sys/modules/random_other/Makefile new file mode 100644 index 000000000000..a67c53b790e2 --- /dev/null +++ b/sys/modules/random_other/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rc4/Makefile b/sys/modules/rc4/Makefile new file mode 100644 index 000000000000..845e7403e460 --- /dev/null +++ b/sys/modules/rc4/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/crypto/rc4 + +KMOD= rc4 +SRCS= rc4.c + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/rccgpio/Makefile b/sys/modules/rccgpio/Makefile new file mode 100644 index 000000000000..ba132e671b63 --- /dev/null +++ b/sys/modules/rccgpio/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rdma/Makefile b/sys/modules/rdma/Makefile new file mode 100644 index 000000000000..0e9b3e6b3658 --- /dev/null +++ b/sys/modules/rdma/Makefile @@ -0,0 +1,3 @@ +SUBDIR+= krping + +.include <bsd.subdir.mk> diff --git a/sys/modules/rdma/krping/Makefile b/sys/modules/rdma/krping/Makefile new file mode 100644 index 000000000000..95e96b781435 --- /dev/null +++ b/sys/modules/rdma/krping/Makefile @@ -0,0 +1,11 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rdrand_rng/Makefile b/sys/modules/rdrand_rng/Makefile new file mode 100644 index 000000000000..7fa7a8bb8fb9 --- /dev/null +++ b/sys/modules/rdrand_rng/Makefile @@ -0,0 +1,14 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/re/Makefile b/sys/modules/re/Makefile new file mode 100644 index 000000000000..7967efc20857 --- /dev/null +++ b/sys/modules/re/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rl/Makefile b/sys/modules/rl/Makefile new file mode 100644 index 000000000000..f0f0d61539b6 --- /dev/null +++ b/sys/modules/rl/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rndtest/Makefile b/sys/modules/rndtest/Makefile new file mode 100644 index 000000000000..5adb33f92507 --- /dev/null +++ b/sys/modules/rndtest/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/rndtest +KMOD = rndtest +SRCS = rndtest.c +SRCS += device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/rockchip/Makefile b/sys/modules/rockchip/Makefile new file mode 100644 index 000000000000..3463f2538b19 --- /dev/null +++ b/sys/modules/rockchip/Makefile @@ -0,0 +1,10 @@ +# Build modules specific to RockChip. + +SUBDIR = \ + rk_i2c \ + rk805 \ + rk808 \ + rk_dwmmc \ + rk_spi + +.include <bsd.subdir.mk> diff --git a/sys/modules/rockchip/rk805/Makefile b/sys/modules/rockchip/rk805/Makefile new file mode 100644 index 000000000000..5147f55080a0 --- /dev/null +++ b/sys/modules/rockchip/rk805/Makefile @@ -0,0 +1,19 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rockchip/rk808/Makefile b/sys/modules/rockchip/rk808/Makefile new file mode 100644 index 000000000000..fbbb4a027437 --- /dev/null +++ b/sys/modules/rockchip/rk808/Makefile @@ -0,0 +1,19 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rockchip/rk_dwmmc/Makefile b/sys/modules/rockchip/rk_dwmmc/Makefile new file mode 100644 index 000000000000..d8f28683fa81 --- /dev/null +++ b/sys/modules/rockchip/rk_dwmmc/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rockchip/rk_i2c/Makefile b/sys/modules/rockchip/rk_i2c/Makefile new file mode 100644 index 000000000000..5c6e40ec15c8 --- /dev/null +++ b/sys/modules/rockchip/rk_i2c/Makefile @@ -0,0 +1,14 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/controller/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 <bsd.kmod.mk> diff --git a/sys/modules/rockchip/rk_spi/Makefile b/sys/modules/rockchip/rk_spi/Makefile new file mode 100644 index 000000000000..3c083bfdd374 --- /dev/null +++ b/sys/modules/rockchip/rk_spi/Makefile @@ -0,0 +1,13 @@ +.PATH: ${SRCTOP}/sys/dev/spibus/controller/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 <bsd.kmod.mk> diff --git a/sys/modules/rpi_ft5406/Makefile b/sys/modules/rpi_ft5406/Makefile new file mode 100644 index 000000000000..1c78bd4e412e --- /dev/null +++ b/sys/modules/rpi_ft5406/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rtsx/Makefile b/sys/modules/rtsx/Makefile new file mode 100644 index 000000000000..95d0607e41f4 --- /dev/null +++ b/sys/modules/rtsx/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rtw88/Makefile b/sys/modules/rtw88/Makefile new file mode 100644 index 000000000000..822be639da43 --- /dev/null +++ b/sys/modules/rtw88/Makefile @@ -0,0 +1,58 @@ +DEVRTW88DIR= ${SRCTOP}/sys/contrib/dev/rtw88 + +.PATH: ${DEVRTW88DIR} + +WITH_CONFIG_PM= 0 +WITH_DEBUGFS= 1 +WITH_LEDS= 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+= rtw8723x.c # 87x3 common +SRCS+= rtw8703b.c rtw8703b_tables.c # 11n +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 + +# USB parts +#SRCS+= rtw88xxa.c # 88xxa common +#SRCS+= rtw8812a.c rtw8812a_table.c rtw8812au.c +#SRCS+= rtw8821a.c rtw8821a_table.c rtw8821au.c + +.if defined(WITH_LEDS) && ${WITH_LEDS} > 0 +CFLAGS+= -DCONFIG_RTW88_LEDS +SRCS+= led.c +.endif + +# Other +SRCS+= ${LINUXKPI_GENSRCS} +SRCS+= opt_wlan.h opt_inet6.h opt_inet.h + +CFLAGS+= -DKBUILD_MODNAME='"rtw88"' +CFLAGS+= -DLINUXKPI_VERSION=61400 + +CFLAGS+= -I${DEVRTW88DIR} +CFLAGS+= ${LINUXKPI_INCLUDES} +CFLAGS+= -DCONFIG_RTW88_DEBUG +.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 +CFLAGS+= -DCONFIG_RTW88_DEBUGFS +.endif + +# Helpful after fresh imports. +#CFLAGS+= -ferror-limit=0 + +.include <bsd.kmod.mk> diff --git a/sys/modules/rtw89/Makefile b/sys/modules/rtw89/Makefile new file mode 100644 index 000000000000..e66f85c3ac17 --- /dev/null +++ b/sys/modules/rtw89/Makefile @@ -0,0 +1,54 @@ +DEVRTW89DIR= ${SRCTOP}/sys/contrib/dev/rtw89 + +.PATH: ${DEVRTW89DIR} + +WITH_CONFIG_PM= 0 +WITH_DEBUGFS= 1 + +KMOD= if_rtw89 + +SRCS= core.c +SRCS+= pci.c pci_be.c +SRCS+= chan.c mac80211.c mac.c mac_be.c phy.c phy_be.c fw.c +SRCS+= acpi.c cam.c efuse.c efuse_be.c regd.c sar.c coex.c ps.c ser.c +SRCS+= util.c +SRCS+= rtw8852a.c rtw8852a_rfk.c rtw8852a_rfk_table.c rtw8852a_table.c +SRCS+= rtw8852ae.c +SRCS+= rtw8852c.c rtw8852c_rfk.c rtw8852c_rfk_table.c rtw8852c_table.c +SRCS+= rtw8852ce.c +SRCS+= rtw8851b.c rtw8851b_rfk.c rtw8851b_rfk_table.c rtw8851b_table.c +SRCS+= rtw8851be.c +SRCS+= rtw8852b_common.c +SRCS+= rtw8852b.c rtw8852b_rfk.c rtw8852b_rfk_table.c rtw8852b_table.c +SRCS+= rtw8852be.c +SRCS+= rtw8852bt.c rtw8852bt_rfk.c rtw8852bt_rfk_table.c +SRCS+= rtw8852bte.c +SRCS+= rtw8922a.c rtw8922a_rfk.c +SRCS+= rtw8922ae.c + +# CONFIG_RTW89_DEBUG (always on for now) +SRCS+= debug.c + +.if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0 +CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM} +SRCS+= wow.c +.endif + +# Other +SRCS+= ${LINUXKPI_GENSRCS} +SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h + +CFLAGS+= -DKBUILD_MODNAME='"rtw89"' +CFLAGS+= -DLINUXKPI_VERSION=61400 +CFLAGS+= -DLINUXKPI_WANT_LINUX_ACPI + +CFLAGS+= -I${DEVRTW89DIR} +CFLAGS+= ${LINUXKPI_INCLUDES} +CFLAGS+= -DCONFIG_RTW89_DEBUGMSG +.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 +CFLAGS+= -DCONFIG_RTW89_DEBUGFS +.endif + +#CFLAGS+= -ferror-limit=0 + +.include <bsd.kmod.mk> diff --git a/sys/modules/rtwn/Makefile b/sys/modules/rtwn/Makefile new file mode 100644 index 000000000000..9afdd2084ecb --- /dev/null +++ b/sys/modules/rtwn/Makefile @@ -0,0 +1,50 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rtwn_pci/Makefile b/sys/modules/rtwn_pci/Makefile new file mode 100644 index 000000000000..ce2144121e88 --- /dev/null +++ b/sys/modules/rtwn_pci/Makefile @@ -0,0 +1,28 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rtwn_usb/Makefile b/sys/modules/rtwn_usb/Makefile new file mode 100644 index 000000000000..16899b8a8c49 --- /dev/null +++ b/sys/modules/rtwn_usb/Makefile @@ -0,0 +1,38 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/rtwnfw/Makefile b/sys/modules/rtwnfw/Makefile new file mode 100644 index 000000000000..a8eedea81d98 --- /dev/null +++ b/sys/modules/rtwnfw/Makefile @@ -0,0 +1,4 @@ +SUBDIR= rtwnrtl8188eu rtwnrtl8192cT rtwnrtl8192cU rtwnrtl8192eu rtwnrtl8812au \ + rtwnrtl8821au rtwnrtl8192cE rtwnrtl8192cEB rtwnrtl8188ee + +.include <bsd.subdir.mk> diff --git a/sys/modules/rtwnfw/Makefile.inc b/sys/modules/rtwnfw/Makefile.inc new file mode 100644 index 000000000000..7ee2183a23db --- /dev/null +++ b/sys/modules/rtwnfw/Makefile.inc @@ -0,0 +1,14 @@ +# +# 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 new file mode 100644 index 000000000000..6d030b069b2a --- /dev/null +++ b/sys/modules/rtwnfw/rtwnrtl8188ee/Makefile @@ -0,0 +1,4 @@ +KMOD= rtwn-rtl8188eefw +IMG= rtwn-rtl8188eefw + +.include <bsd.kmod.mk> diff --git a/sys/modules/rtwnfw/rtwnrtl8188eu/Makefile b/sys/modules/rtwnfw/rtwnrtl8188eu/Makefile new file mode 100644 index 000000000000..985f8439ddbb --- /dev/null +++ b/sys/modules/rtwnfw/rtwnrtl8188eu/Makefile @@ -0,0 +1,4 @@ +KMOD= rtwn-rtl8188eufw +IMG= rtwn-rtl8188eufw + +.include <bsd.kmod.mk> diff --git a/sys/modules/rtwnfw/rtwnrtl8192cE/Makefile b/sys/modules/rtwnfw/rtwnrtl8192cE/Makefile new file mode 100644 index 000000000000..6f253e757238 --- /dev/null +++ b/sys/modules/rtwnfw/rtwnrtl8192cE/Makefile @@ -0,0 +1,4 @@ +KMOD= rtwn-rtl8192cfwE +IMG= rtwn-rtl8192cfwE + +.include <bsd.kmod.mk> diff --git a/sys/modules/rtwnfw/rtwnrtl8192cEB/Makefile b/sys/modules/rtwnfw/rtwnrtl8192cEB/Makefile new file mode 100644 index 000000000000..bbe6013b3617 --- /dev/null +++ b/sys/modules/rtwnfw/rtwnrtl8192cEB/Makefile @@ -0,0 +1,4 @@ +KMOD= rtwn-rtl8192cfwE_B +IMG= rtwn-rtl8192cfwE_B + +.include <bsd.kmod.mk> diff --git a/sys/modules/rtwnfw/rtwnrtl8192cT/Makefile b/sys/modules/rtwnfw/rtwnrtl8192cT/Makefile new file mode 100644 index 000000000000..799425ae3576 --- /dev/null +++ b/sys/modules/rtwnfw/rtwnrtl8192cT/Makefile @@ -0,0 +1,4 @@ +KMOD= rtwn-rtl8192cfwT +IMG= rtwn-rtl8192cfwT + +.include <bsd.kmod.mk> diff --git a/sys/modules/rtwnfw/rtwnrtl8192cU/Makefile b/sys/modules/rtwnfw/rtwnrtl8192cU/Makefile new file mode 100644 index 000000000000..6c62a3cac07b --- /dev/null +++ b/sys/modules/rtwnfw/rtwnrtl8192cU/Makefile @@ -0,0 +1,4 @@ +KMOD= rtwn-rtl8192cfwU +IMG= rtwn-rtl8192cfwU + +.include <bsd.kmod.mk> diff --git a/sys/modules/rtwnfw/rtwnrtl8192eu/Makefile b/sys/modules/rtwnfw/rtwnrtl8192eu/Makefile new file mode 100644 index 000000000000..89676d44336f --- /dev/null +++ b/sys/modules/rtwnfw/rtwnrtl8192eu/Makefile @@ -0,0 +1,4 @@ +KMOD= rtwn-rtl8192eufw +IMG= rtwn-rtl8192eufw + +.include <bsd.kmod.mk> diff --git a/sys/modules/rtwnfw/rtwnrtl8812au/Makefile b/sys/modules/rtwnfw/rtwnrtl8812au/Makefile new file mode 100644 index 000000000000..5d37b3b44654 --- /dev/null +++ b/sys/modules/rtwnfw/rtwnrtl8812au/Makefile @@ -0,0 +1,4 @@ +KMOD= rtwn-rtl8812aufw +IMG= rtwn-rtl8812aufw + +.include <bsd.kmod.mk> diff --git a/sys/modules/rtwnfw/rtwnrtl8821au/Makefile b/sys/modules/rtwnfw/rtwnrtl8821au/Makefile new file mode 100644 index 000000000000..b018cb3f16d5 --- /dev/null +++ b/sys/modules/rtwnfw/rtwnrtl8821au/Makefile @@ -0,0 +1,4 @@ +KMOD= rtwn-rtl8821aufw +IMG= rtwn-rtl8821aufw + +.include <bsd.kmod.mk> diff --git a/sys/modules/s3/Makefile b/sys/modules/s3/Makefile new file mode 100644 index 000000000000..2b2716e3e8f0 --- /dev/null +++ b/sys/modules/s3/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/fb + +KMOD= s3 +SRCS= device_if.h bus_if.h isa_if.h pci_if.h \ + s3_pci.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/safe/Makefile b/sys/modules/safe/Makefile new file mode 100644 index 000000000000..5e79ddfe203f --- /dev/null +++ b/sys/modules/safe/Makefile @@ -0,0 +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. +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/safexcel/Makefile b/sys/modules/safexcel/Makefile new file mode 100644 index 000000000000..ce1d1ba6fa56 --- /dev/null +++ b/sys/modules/safexcel/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sbni/Makefile b/sys/modules/sbni/Makefile new file mode 100644 index 000000000000..3d69f087ca12 --- /dev/null +++ b/sys/modules/sbni/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/scc/Makefile b/sys/modules/scc/Makefile new file mode 100644 index 000000000000..c4bb5064e562 --- /dev/null +++ b/sys/modules/scc/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sctp/Makefile b/sys/modules/sctp/Makefile new file mode 100644 index 000000000000..626f195dbf1f --- /dev/null +++ b/sys/modules/sctp/Makefile @@ -0,0 +1,29 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sdhci/Makefile b/sys/modules/sdhci/Makefile new file mode 100644 index 000000000000..2e3104573cd5 --- /dev/null +++ b/sys/modules/sdhci/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sdhci_acpi/Makefile b/sys/modules/sdhci_acpi/Makefile new file mode 100644 index 000000000000..b6f6efeb5791 --- /dev/null +++ b/sys/modules/sdhci_acpi/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sdhci_fdt/Makefile b/sys/modules/sdhci_fdt/Makefile new file mode 100644 index 000000000000..12b4af37f6e5 --- /dev/null +++ b/sys/modules/sdhci_fdt/Makefile @@ -0,0 +1,8 @@ +# + +.PATH: ${SRCTOP}/sys/dev/sdhci + +KMOD= sdhci_fdt +SRCS= sdhci_fdt.c sdhci_fdt_gpio.c sdhci_if.h device_if.h bus_if.h mmcbr_if.h opt_mmccam.h opt_cam.h gpio_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/sdhci_pci/Makefile b/sys/modules/sdhci_pci/Makefile new file mode 100644 index 000000000000..4a804941ac30 --- /dev/null +++ b/sys/modules/sdhci_pci/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sdio/Makefile b/sys/modules/sdio/Makefile new file mode 100644 index 000000000000..a6f1016404de --- /dev/null +++ b/sys/modules/sdio/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sem/Makefile b/sys/modules/sem/Makefile new file mode 100644 index 000000000000..506d1c9be5c4 --- /dev/null +++ b/sys/modules/sem/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/kern + +KMOD= sem +SRCS= uipc_sem.c opt_posix.h vnode_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/send/Makefile b/sys/modules/send/Makefile new file mode 100644 index 000000000000..d90affc7b9fd --- /dev/null +++ b/sys/modules/send/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/netinet6 + +KMOD= send +SRCS= send.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sff/Makefile b/sys/modules/sff/Makefile new file mode 100644 index 000000000000..96832070de63 --- /dev/null +++ b/sys/modules/sff/Makefile @@ -0,0 +1,13 @@ +.PATH: ${SRCTOP}/sys/dev/sff + +KMOD= sff + +SRCS+= sff_if.c sff_if.h +SRCS+= bus_if.h device_if.h + +.if !empty(OPT_FDT) +SRCS+= sfp_fdt.c \ + ofw_bus_if.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/sfxge/Makefile b/sys/modules/sfxge/Makefile new file mode 100644 index 000000000000..78a51995493f --- /dev/null +++ b/sys/modules/sfxge/Makefile @@ -0,0 +1,49 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/sge/Makefile b/sys/modules/sge/Makefile new file mode 100644 index 000000000000..6d1a776da267 --- /dev/null +++ b/sys/modules/sge/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sgx/Makefile b/sys/modules/sgx/Makefile new file mode 100644 index 000000000000..3c82e731856e --- /dev/null +++ b/sys/modules/sgx/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sgx_linux/Makefile b/sys/modules/sgx_linux/Makefile new file mode 100644 index 000000000000..4f68431903c6 --- /dev/null +++ b/sys/modules/sgx_linux/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/amd64/sgx + +KMOD= sgx_linux +SRCS= sgx_linux.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/siftr/Makefile b/sys/modules/siftr/Makefile new file mode 100644 index 000000000000..e18c5db9ba06 --- /dev/null +++ b/sys/modules/siftr/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/netinet +KMOD= siftr +SRCS= siftr.c opt_kern_tls.h + +# Uncomment to add IPv6 support +#CFLAGS+=-DSIFTR_IPV6 + +.include <bsd.kmod.mk> diff --git a/sys/modules/siis/Makefile b/sys/modules/siis/Makefile new file mode 100644 index 000000000000..026fc174836f --- /dev/null +++ b/sys/modules/siis/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sis/Makefile b/sys/modules/sis/Makefile new file mode 100644 index 000000000000..c54acdab419a --- /dev/null +++ b/sys/modules/sis/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sk/Makefile b/sys/modules/sk/Makefile new file mode 100644 index 000000000000..370baf75007a --- /dev/null +++ b/sys/modules/sk/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/smartpqi/Makefile b/sys/modules/smartpqi/Makefile new file mode 100644 index 000000000000..080ca34d07e2 --- /dev/null +++ b/sys/modules/smartpqi/Makefile @@ -0,0 +1,11 @@ +# 5/10/2017 + +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 smartpqi_features.c + +SRCS+= device_if.h bus_if.h pci_if.h opt_scsi.h opt_cam.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/smbfs/Makefile b/sys/modules/smbfs/Makefile new file mode 100644 index 000000000000..c796fb0701c5 --- /dev/null +++ b/sys/modules/smbfs/Makefile @@ -0,0 +1,33 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/snp/Makefile b/sys/modules/snp/Makefile new file mode 100644 index 000000000000..06a2160b31b8 --- /dev/null +++ b/sys/modules/snp/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/snp + +KMOD= snp +SRCS= snp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/Makefile b/sys/modules/sound/Makefile new file mode 100644 index 000000000000..57058d7bbb1b --- /dev/null +++ b/sys/modules/sound/Makefile @@ -0,0 +1,5 @@ +SUBDIR = +SUBDIR += sound +SUBDIR += driver + +.include <bsd.subdir.mk> diff --git a/sys/modules/sound/Makefile.inc b/sys/modules/sound/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/sound/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/sound/driver/Makefile b/sys/modules/sound/driver/Makefile new file mode 100644 index 000000000000..ff9499fdf841 --- /dev/null +++ b/sys/modules/sound/driver/Makefile @@ -0,0 +1,26 @@ +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 hdsp hdspe ich +SUBDIR+= ${_maestro3} neomagic solo spicds t4dwave via8233 +SUBDIR+= via82c686 vibes driver uaudio +SUBDIR+= dummy + +.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 <bsd.subdir.mk> diff --git a/sys/modules/sound/driver/Makefile.inc b/sys/modules/sound/driver/Makefile.inc new file mode 100644 index 000000000000..2dc6b1e6944d --- /dev/null +++ b/sys/modules/sound/driver/Makefile.inc @@ -0,0 +1,3 @@ +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 new file mode 100644 index 000000000000..459880df8c75 --- /dev/null +++ b/sys/modules/sound/driver/ai2s/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/als4000/Makefile b/sys/modules/sound/driver/als4000/Makefile new file mode 100644 index 000000000000..f4b4d6f5d6a0 --- /dev/null +++ b/sys/modules/sound/driver/als4000/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_als4000 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= als4000.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/atiixp/Makefile b/sys/modules/sound/driver/atiixp/Makefile new file mode 100644 index 000000000000..65380f7bdc5f --- /dev/null +++ b/sys/modules/sound/driver/atiixp/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_atiixp +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= atiixp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/cmi/Makefile b/sys/modules/sound/driver/cmi/Makefile new file mode 100644 index 000000000000..925700cded08 --- /dev/null +++ b/sys/modules/sound/driver/cmi/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/cs4281/Makefile b/sys/modules/sound/driver/cs4281/Makefile new file mode 100644 index 000000000000..0a9f529eb762 --- /dev/null +++ b/sys/modules/sound/driver/cs4281/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_cs4281 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= cs4281.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/csa/Makefile b/sys/modules/sound/driver/csa/Makefile new file mode 100644 index 000000000000..52ca5b5fcaaa --- /dev/null +++ b/sys/modules/sound/driver/csa/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/davbus/Makefile b/sys/modules/sound/driver/davbus/Makefile new file mode 100644 index 000000000000..cbc2bf280115 --- /dev/null +++ b/sys/modules/sound/driver/davbus/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/driver/Makefile b/sys/modules/sound/driver/driver/Makefile new file mode 100644 index 000000000000..3ba4eb778034 --- /dev/null +++ b/sys/modules/sound/driver/driver/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound + +KMOD= snd_driver +SRCS= device_if.h bus_if.h +SRCS+= driver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/dummy/Makefile b/sys/modules/sound/driver/dummy/Makefile new file mode 100644 index 000000000000..fb4127d35073 --- /dev/null +++ b/sys/modules/sound/driver/dummy/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound + +KMOD= snd_dummy +SRCS= bus_if.h device_if.h +SRCS+= dummy.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/emu10k1/Makefile b/sys/modules/sound/driver/emu10k1/Makefile new file mode 100644 index 000000000000..c0cdbadd4648 --- /dev/null +++ b/sys/modules/sound/driver/emu10k1/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/emu10kx/Makefile b/sys/modules/sound/driver/emu10kx/Makefile new file mode 100644 index 000000000000..096ce2bdb6e1 --- /dev/null +++ b/sys/modules/sound/driver/emu10kx/Makefile @@ -0,0 +1,13 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/envy24/Makefile b/sys/modules/sound/driver/envy24/Makefile new file mode 100644 index 000000000000..5328f1fcd71a --- /dev/null +++ b/sys/modules/sound/driver/envy24/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_envy24 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= envy24.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/envy24ht/Makefile b/sys/modules/sound/driver/envy24ht/Makefile new file mode 100644 index 000000000000..262131c587dd --- /dev/null +++ b/sys/modules/sound/driver/envy24ht/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_envy24ht +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= envy24ht.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/es137x/Makefile b/sys/modules/sound/driver/es137x/Makefile new file mode 100644 index 000000000000..2f7a47df5aaf --- /dev/null +++ b/sys/modules/sound/driver/es137x/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_es137x +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= es137x.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/fm801/Makefile b/sys/modules/sound/driver/fm801/Makefile new file mode 100644 index 000000000000..af706bcab024 --- /dev/null +++ b/sys/modules/sound/driver/fm801/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_fm801 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= fm801.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/hda/Makefile b/sys/modules/sound/driver/hda/Makefile new file mode 100644 index 000000000000..1e137dc5671c --- /dev/null +++ b/sys/modules/sound/driver/hda/Makefile @@ -0,0 +1,8 @@ +.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 hdacc.c hdac.c hdac_if.c +SRCS+= hdac_private.h hdac_reg.h hda_reg.h hdac.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/hdsp/Makefile b/sys/modules/sound/driver/hdsp/Makefile new file mode 100644 index 000000000000..d91341fafde8 --- /dev/null +++ b/sys/modules/sound/driver/hdsp/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_hdsp +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= hdsp.c hdsp-pcm.c hdsp.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/hdspe/Makefile b/sys/modules/sound/driver/hdspe/Makefile new file mode 100644 index 000000000000..f923634ea5c0 --- /dev/null +++ b/sys/modules/sound/driver/hdspe/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/ich/Makefile b/sys/modules/sound/driver/ich/Makefile new file mode 100644 index 000000000000..927d9ad58ef0 --- /dev/null +++ b/sys/modules/sound/driver/ich/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci +KMOD = snd_ich +SRCS = device_if.h bus_if.h pci_if.h +SRCS += ich.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/maestro3/Makefile b/sys/modules/sound/driver/maestro3/Makefile new file mode 100644 index 000000000000..efdc26ca2081 --- /dev/null +++ b/sys/modules/sound/driver/maestro3/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/neomagic/Makefile b/sys/modules/sound/driver/neomagic/Makefile new file mode 100644 index 000000000000..4e64894daf6f --- /dev/null +++ b/sys/modules/sound/driver/neomagic/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_neomagic +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= neomagic.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/solo/Makefile b/sys/modules/sound/driver/solo/Makefile new file mode 100644 index 000000000000..f2824626e2a2 --- /dev/null +++ b/sys/modules/sound/driver/solo/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_solo +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= solo.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/spicds/Makefile b/sys/modules/sound/driver/spicds/Makefile new file mode 100644 index 000000000000..c279a418cb4f --- /dev/null +++ b/sys/modules/sound/driver/spicds/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/t4dwave/Makefile b/sys/modules/sound/driver/t4dwave/Makefile new file mode 100644 index 000000000000..375373a15259 --- /dev/null +++ b/sys/modules/sound/driver/t4dwave/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_t4dwave +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= t4dwave.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/uaudio/Makefile b/sys/modules/sound/driver/uaudio/Makefile new file mode 100644 index 000000000000..ed40adb3c67e --- /dev/null +++ b/sys/modules/sound/driver/uaudio/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/via8233/Makefile b/sys/modules/sound/driver/via8233/Makefile new file mode 100644 index 000000000000..2af4e67ac334 --- /dev/null +++ b/sys/modules/sound/driver/via8233/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_via8233 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= via8233.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/via82c686/Makefile b/sys/modules/sound/driver/via82c686/Makefile new file mode 100644 index 000000000000..a9629518354b --- /dev/null +++ b/sys/modules/sound/driver/via82c686/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_via82c686 +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= via82c686.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/driver/vibes/Makefile b/sys/modules/sound/driver/vibes/Makefile new file mode 100644 index 000000000000..88ab043c5c7b --- /dev/null +++ b/sys/modules/sound/driver/vibes/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sound/pci + +KMOD= snd_vibes +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= vibes.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sound/sound/Makefile b/sys/modules/sound/sound/Makefile new file mode 100644 index 000000000000..f3978e9bd9cc --- /dev/null +++ b/sys/modules/sound/sound/Makefile @@ -0,0 +1,35 @@ +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 +SRCS+= mpu_if.c mpufoi_if.c +SRCS+= ac97.c buffer.c channel.c dsp.c +SRCS+= mixer.c sndstat.c sound.c vchan.c +SRCS+= midi.c mpu401.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 <bsd.kmod.mk> diff --git a/sys/modules/speaker/Makefile b/sys/modules/speaker/Makefile new file mode 100644 index 000000000000..8a25744cafae --- /dev/null +++ b/sys/modules/speaker/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/speaker + +KMOD= speaker +SRCS= spkr.c +SRCS+= bus_if.h device_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/spi/Makefile b/sys/modules/spi/Makefile new file mode 100644 index 000000000000..1c174b8dfbda --- /dev/null +++ b/sys/modules/spi/Makefile @@ -0,0 +1,12 @@ +SUBDIR = \ + ../spigen \ + at45d \ + ${_atopcase} \ + mx25l \ + spibus \ + +.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" +_atopcase=atopcase +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/spi/at45d/Makefile b/sys/modules/spi/at45d/Makefile new file mode 100644 index 000000000000..53ca181ebd1e --- /dev/null +++ b/sys/modules/spi/at45d/Makefile @@ -0,0 +1,17 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/spi/atopcase/Makefile b/sys/modules/spi/atopcase/Makefile new file mode 100644 index 000000000000..a6acb14ce87a --- /dev/null +++ b/sys/modules/spi/atopcase/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/atopcase +KMOD= atopcase +SRCS= atopcase.c atopcase_acpi.c +SRCS+= acpi_if.h backlight_if.h bus_if.h device_if.h hid_if.h opt_acpi.h \ + opt_hid.h opt_spi.h spibus_if.h usbdevs.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/spi/mx25l/Makefile b/sys/modules/spi/mx25l/Makefile new file mode 100644 index 000000000000..a7aabc7c2279 --- /dev/null +++ b/sys/modules/spi/mx25l/Makefile @@ -0,0 +1,17 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/spi/spibus/Makefile b/sys/modules/spi/spibus/Makefile new file mode 100644 index 000000000000..18ddb8be8728 --- /dev/null +++ b/sys/modules/spi/spibus/Makefile @@ -0,0 +1,25 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/spigen/Makefile b/sys/modules/spigen/Makefile new file mode 100644 index 000000000000..c8aee6c2ef72 --- /dev/null +++ b/sys/modules/spigen/Makefile @@ -0,0 +1,19 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/splash/Makefile b/sys/modules/splash/Makefile new file mode 100644 index 000000000000..050bd543eb0c --- /dev/null +++ b/sys/modules/splash/Makefile @@ -0,0 +1,3 @@ +SUBDIR= bmp pcx txt + +.include <bsd.subdir.mk> diff --git a/sys/modules/splash/Makefile.inc b/sys/modules/splash/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/splash/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/splash/bmp/Makefile b/sys/modules/splash/bmp/Makefile new file mode 100644 index 000000000000..f89523532a3f --- /dev/null +++ b/sys/modules/splash/bmp/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/fb + +KMOD= splash_bmp +SRCS= splash_bmp.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/splash/pcx/Makefile b/sys/modules/splash/pcx/Makefile new file mode 100644 index 000000000000..ff5e1af789e7 --- /dev/null +++ b/sys/modules/splash/pcx/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/fb + +KMOD= splash_pcx +SRCS= splash_pcx.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/splash/txt/Makefile b/sys/modules/splash/txt/Makefile new file mode 100644 index 000000000000..e55632edab1c --- /dev/null +++ b/sys/modules/splash/txt/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/fb + +KMOD= splash_txt +SRCS= splash_txt.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/ste/Makefile b/sys/modules/ste/Makefile new file mode 100644 index 000000000000..adab90f2f4f7 --- /dev/null +++ b/sys/modules/ste/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/stge/Makefile b/sys/modules/stge/Makefile new file mode 100644 index 000000000000..329efbe27f95 --- /dev/null +++ b/sys/modules/stge/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/sume/Makefile b/sys/modules/sume/Makefile new file mode 100644 index 000000000000..f463c51829cc --- /dev/null +++ b/sys/modules/sume/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/sume + +KMOD= if_sume +SRCS= if_sume.c +SRCS+= device_if.h bus_if.h pci_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/superio/Makefile b/sys/modules/superio/Makefile new file mode 100644 index 000000000000..e9f6dbb2473a --- /dev/null +++ b/sys/modules/superio/Makefile @@ -0,0 +1,9 @@ +.PATH: ${.CURDIR}/../../dev/superio + +KMOD= superio +SRCS= superio.c +SRCS+= device_if.h bus_if.h isa_if.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/sym/Makefile b/sys/modules/sym/Makefile new file mode 100644 index 000000000000..822082082683 --- /dev/null +++ b/sys/modules/sym/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/syscons/Makefile b/sys/modules/syscons/Makefile new file mode 100644 index 000000000000..77466d84d6ef --- /dev/null +++ b/sys/modules/syscons/Makefile @@ -0,0 +1,15 @@ +SUBDIR= beastie \ + blank \ + daemon \ + dragon \ + fade \ + fire \ + green \ + logo \ + plasma \ + rain \ + snake \ + star \ + warp + +.include <bsd.subdir.mk> diff --git a/sys/modules/syscons/Makefile.inc b/sys/modules/syscons/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/syscons/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/syscons/beastie/Makefile b/sys/modules/syscons/beastie/Makefile new file mode 100644 index 000000000000..73ca08641cc5 --- /dev/null +++ b/sys/modules/syscons/beastie/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/logo + +KMOD= beastie_saver +SRCS= beastie.c logo_saver.c + +CFLAGS+=-DBEASTIE_LOGO + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/blank/Makefile b/sys/modules/syscons/blank/Makefile new file mode 100644 index 000000000000..cb2286a5b3f7 --- /dev/null +++ b/sys/modules/syscons/blank/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/blank + +KMOD= blank_saver +SRCS= blank_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/daemon/Makefile b/sys/modules/syscons/daemon/Makefile new file mode 100644 index 000000000000..5f7fa4a3bf78 --- /dev/null +++ b/sys/modules/syscons/daemon/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/daemon + +KMOD= daemon_saver +SRCS= daemon_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/dragon/Makefile b/sys/modules/syscons/dragon/Makefile new file mode 100644 index 000000000000..23af4562921a --- /dev/null +++ b/sys/modules/syscons/dragon/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/dragon + +KMOD= dragon_saver +SRCS= dragon_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/fade/Makefile b/sys/modules/syscons/fade/Makefile new file mode 100644 index 000000000000..1aafeecf6ae9 --- /dev/null +++ b/sys/modules/syscons/fade/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/fade + +KMOD= fade_saver +SRCS= fade_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/fire/Makefile b/sys/modules/syscons/fire/Makefile new file mode 100644 index 000000000000..5003196ffd6a --- /dev/null +++ b/sys/modules/syscons/fire/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/fire + +KMOD= fire_saver +SRCS= fire_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/green/Makefile b/sys/modules/syscons/green/Makefile new file mode 100644 index 000000000000..4b55b41d26d1 --- /dev/null +++ b/sys/modules/syscons/green/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/green + +KMOD= green_saver +SRCS= green_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/logo/Makefile b/sys/modules/syscons/logo/Makefile new file mode 100644 index 000000000000..0dc144ec472b --- /dev/null +++ b/sys/modules/syscons/logo/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/logo + +KMOD= logo_saver +SRCS= logo_saver.c logo.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/plasma/Makefile b/sys/modules/syscons/plasma/Makefile new file mode 100644 index 000000000000..2de97f2ad4bb --- /dev/null +++ b/sys/modules/syscons/plasma/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/plasma + +KMOD= plasma_saver +SRCS= fp16.c plasma_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/rain/Makefile b/sys/modules/syscons/rain/Makefile new file mode 100644 index 000000000000..e68b44dbd9be --- /dev/null +++ b/sys/modules/syscons/rain/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/rain + +KMOD= rain_saver +SRCS= rain_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/snake/Makefile b/sys/modules/syscons/snake/Makefile new file mode 100644 index 000000000000..b07c02123b03 --- /dev/null +++ b/sys/modules/syscons/snake/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/snake + +KMOD= snake_saver +SRCS= snake_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/star/Makefile b/sys/modules/syscons/star/Makefile new file mode 100644 index 000000000000..9ad996afbc5a --- /dev/null +++ b/sys/modules/syscons/star/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/star + +KMOD= star_saver +SRCS= star_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/syscons/warp/Makefile b/sys/modules/syscons/warp/Makefile new file mode 100644 index 000000000000..b1237c2fdf77 --- /dev/null +++ b/sys/modules/syscons/warp/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/syscons/warp + +KMOD= warp_saver +SRCS= warp_saver.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/sysvipc/Makefile b/sys/modules/sysvipc/Makefile new file mode 100644 index 000000000000..c9dd5ecac332 --- /dev/null +++ b/sys/modules/sysvipc/Makefile @@ -0,0 +1,3 @@ +SUBDIR= sysvmsg sysvsem sysvshm + +.include <bsd.subdir.mk> diff --git a/sys/modules/sysvipc/Makefile.inc b/sys/modules/sysvipc/Makefile.inc new file mode 100644 index 000000000000..01b5f23410c8 --- /dev/null +++ b/sys/modules/sysvipc/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/sys/modules/sysvipc/sysvmsg/Makefile b/sys/modules/sysvipc/sysvmsg/Makefile new file mode 100644 index 000000000000..3b2fdda1a294 --- /dev/null +++ b/sys/modules/sysvipc/sysvmsg/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/kern + +KMOD= sysvmsg +SRCS= sysv_msg.c opt_sysvipc.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/sysvipc/sysvsem/Makefile b/sys/modules/sysvipc/sysvsem/Makefile new file mode 100644 index 000000000000..f5a6e6aab54c --- /dev/null +++ b/sys/modules/sysvipc/sysvsem/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/kern + +KMOD= sysvsem +SRCS= sysv_sem.c opt_sysvipc.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/sysvipc/sysvshm/Makefile b/sys/modules/sysvipc/sysvshm/Makefile new file mode 100644 index 000000000000..757c0c94dba4 --- /dev/null +++ b/sys/modules/sysvipc/sysvshm/Makefile @@ -0,0 +1,8 @@ +.PATH: ${SRCTOP}/sys/kern + +KMOD= sysvshm +SRCS= sysv_shm.c opt_sysvipc.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/tarfs/Makefile b/sys/modules/tarfs/Makefile new file mode 100644 index 000000000000..b882037afc90 --- /dev/null +++ b/sys/modules/tarfs/Makefile @@ -0,0 +1,21 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/tcp/Makefile b/sys/modules/tcp/Makefile new file mode 100644 index 000000000000..3b6df4bc18e9 --- /dev/null +++ b/sys/modules/tcp/Makefile @@ -0,0 +1,18 @@ +.include <kmod.opts.mk> + +SUBDIR= ${_hpts} \ + ${_tcp_bbr} \ + ${_tcp_rack} \ + ${_tcpmd5} \ + +.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ + defined(ALL_MODULES) +_hpts= hpts +_tcp_bbr= bbr +_tcp_rack= rack +.if ${KERN_OPTS:MIPSEC_SUPPORT} && !${KERN_OPTS:MTCP_SIGNATURE} +_tcpmd5= tcpmd5 +.endif +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/tcp/bbr/Makefile b/sys/modules/tcp/bbr/Makefile new file mode 100644 index 000000000000..e18b8f007289 --- /dev/null +++ b/sys/modules/tcp/bbr/Makefile @@ -0,0 +1,22 @@ +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/tcp/hpts/Makefile b/sys/modules/tcp/hpts/Makefile new file mode 100644 index 000000000000..2d664c048cdd --- /dev/null +++ b/sys/modules/tcp/hpts/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/netinet + +KMOD= tcphpts +SRCS= tcp_hpts.c tcp_lro_hpts.c \ + opt_inet.h opt_inet6.h opt_rss.h device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/tcp/rack/Makefile b/sys/modules/tcp/rack/Makefile new file mode 100644 index 000000000000..d5f3ba170f68 --- /dev/null +++ b/sys/modules/tcp/rack/Makefile @@ -0,0 +1,22 @@ +# +# + +.PATH: ${.CURDIR}/../../../netinet/tcp_stacks + +STACKNAME= rack +KMOD= tcp_${STACKNAME} +SRCS= rack.c sack_filter.c rack_bbr_common.c tailq_hash.c rack_pcm.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 <bsd.kmod.mk> diff --git a/sys/modules/tcp/tcpmd5/Makefile b/sys/modules/tcp/tcpmd5/Makefile new file mode 100644 index 000000000000..560688cf66c8 --- /dev/null +++ b/sys/modules/tcp/tcpmd5/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/netipsec + +KMOD= tcpmd5 +SRCS= xform_tcp.c opt_inet.h opt_inet6.h opt_ipsec.h opt_kern_tls.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/tests/Makefile b/sys/modules/tests/Makefile new file mode 100644 index 000000000000..ed06d0438222 --- /dev/null +++ b/sys/modules/tests/Makefile @@ -0,0 +1,6 @@ +SUBDIR+= framework +SUBDIR+= .WAIT + +SUBDIR_PARALLEL= + +.include <bsd.subdir.mk> diff --git a/sys/modules/tests/fib_lookup/Makefile b/sys/modules/tests/fib_lookup/Makefile new file mode 100644 index 000000000000..7d6198396911 --- /dev/null +++ b/sys/modules/tests/fib_lookup/Makefile @@ -0,0 +1,9 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/tests/framework/Makefile b/sys/modules/tests/framework/Makefile new file mode 100644 index 000000000000..587c5a36fb24 --- /dev/null +++ b/sys/modules/tests/framework/Makefile @@ -0,0 +1,15 @@ +# +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/thunderbolt/Makefile b/sys/modules/thunderbolt/Makefile new file mode 100644 index 000000000000..3b279f4352d4 --- /dev/null +++ b/sys/modules/thunderbolt/Makefile @@ -0,0 +1,13 @@ +.PATH: ${SRCTOP}/sys/dev/thunderbolt + +KMOD= tb +SRCS= nhi_pci.c nhi.c tb_pcib.c tb_acpi_pcib.c tb_debug.c nhi_wmi.c +SRCS+= router.c hcm.c tb_dev.c +SRCS+= opt_thunderbolt.h +SRCS+= device_if.h bus_if.h pci_if.h pcib_if.h tb_if.c tb_if.h +SRCS+= opt_acpi.h opt_acpi_wmi.h acpi_if.h acpi_wmi_if.h + +opt_thunderbolt.h: + echo "#define THUNDERBOLT_DEBUG 1" > ${.TARGET} + +.include <bsd.kmod.mk> diff --git a/sys/modules/ti/Makefile b/sys/modules/ti/Makefile new file mode 100644 index 000000000000..2f60b2225d28 --- /dev/null +++ b/sys/modules/ti/Makefile @@ -0,0 +1,9 @@ +# 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 <bsd.kmod.mk> diff --git a/sys/modules/tmpfs/Makefile b/sys/modules/tmpfs/Makefile new file mode 100644 index 000000000000..984ccf940469 --- /dev/null +++ b/sys/modules/tmpfs/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/toecore/Makefile b/sys/modules/toecore/Makefile new file mode 100644 index 000000000000..00764c1f8e39 --- /dev/null +++ b/sys/modules/toecore/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/tpm/Makefile b/sys/modules/tpm/Makefile new file mode 100644 index 000000000000..d929649d40fe --- /dev/null +++ b/sys/modules/tpm/Makefile @@ -0,0 +1,28 @@ +.PATH: ${SRCTOP}/sys/dev/tpm + +KMOD= tpm + +SRCS= bus_if.h device_if.h tpm_if.c tpm_if.h +SRCS+= opt_acpi.h opt_tpm.h + +#Bus specific stuff. +.if ${MACHINE_ARCH:Namd64:Ni386} == "" +SRCS+= tpm.c +SRCS+= tpm_acpi.c tpm_isa.c +SRCS+= isa_if.h +.endif + +#TPM 2.0 +SRCS+= tpm20.c tpm_tis_core.c +.if defined(${OPT_FDT}) +SRCS+= tpm_spibus.c tpm_tis_spibus.c spibus_if.h +.endif +.if ${MACHINE_ARCH:Namd64:Ni386:Narm64} == "" +SRCS+= acpi_if.h +SRCS+= tpm_tis_acpi.c +SRCS+= tpm_crb.c +SRCS+= tpm_bus.c +CFLAGS+=-DDEV_ACPI +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/tsec/Makefile b/sys/modules/tsec/Makefile new file mode 100644 index 000000000000..ec79f2a9ffa1 --- /dev/null +++ b/sys/modules/tsec/Makefile @@ -0,0 +1,9 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/tws/Makefile b/sys/modules/tws/Makefile new file mode 100644 index 000000000000..cce9037144ed --- /dev/null +++ b/sys/modules/tws/Makefile @@ -0,0 +1,9 @@ +# Makefile for tws (LSI 3ware 9750 SAS2/SATA-II RAID PCIe) driver + +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 <bsd.kmod.mk> diff --git a/sys/modules/uart/Makefile b/sys/modules/uart/Makefile new file mode 100644 index 000000000000..5d20a349e705 --- /dev/null +++ b/sys/modules/uart/Makefile @@ -0,0 +1,42 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ubser/Makefile b/sys/modules/ubser/Makefile new file mode 100644 index 000000000000..d4e3fbead470 --- /dev/null +++ b/sys/modules/ubser/Makefile @@ -0,0 +1,7 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/uchcom/Makefile b/sys/modules/uchcom/Makefile new file mode 100644 index 000000000000..e8ea071965fd --- /dev/null +++ b/sys/modules/uchcom/Makefile @@ -0,0 +1,7 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/ucycom/Makefile b/sys/modules/ucycom/Makefile new file mode 100644 index 000000000000..f3021f619845 --- /dev/null +++ b/sys/modules/ucycom/Makefile @@ -0,0 +1,7 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/udf/Makefile b/sys/modules/udf/Makefile new file mode 100644 index 000000000000..da8653d67de2 --- /dev/null +++ b/sys/modules/udf/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/udf_iconv/Makefile b/sys/modules/udf_iconv/Makefile new file mode 100644 index 000000000000..9d2af27dbfa8 --- /dev/null +++ b/sys/modules/udf_iconv/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/fs/udf +KMOD= udf_iconv +SRCS= udf_iconv.c + +CFLAGS+= -I${SRCTOP}/sys/ + +.include <bsd.kmod.mk> diff --git a/sys/modules/ufs/Makefile b/sys/modules/ufs/Makefile new file mode 100644 index 000000000000..f8f360aee4df --- /dev/null +++ b/sys/modules/ufs/Makefile @@ -0,0 +1,17 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/ufshci/Makefile b/sys/modules/ufshci/Makefile new file mode 100644 index 000000000000..ab5f3eaf88d0 --- /dev/null +++ b/sys/modules/ufshci/Makefile @@ -0,0 +1,22 @@ +.PATH: ${SRCTOP}/sys/dev/ufshci + +KMOD = ufshci + +SRCS = ufshci.c \ + ufshci_pci.c \ + ufshci_ctrlr.c \ + ufshci_dev.c \ + ufshci_ctrlr_cmd.c \ + ufshci_uic_cmd.c \ + ufshci_req_queue.c \ + ufshci_req_sdb.c \ + ufshci_sim.c \ + ufshci_sysctl.c \ + bus_if.h \ + device_if.h \ + opt_cam.h \ + pci_if.h + +EXPORT_SYMS= YES + +.include <bsd.kmod.mk> diff --git a/sys/modules/uinput/Makefile b/sys/modules/uinput/Makefile new file mode 100644 index 000000000000..a9e2ec867b91 --- /dev/null +++ b/sys/modules/uinput/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/evdev + +KMOD= uinput +SRCS= uinput.c +SRCS+= opt_evdev.h opt_kbd.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/unionfs/Makefile b/sys/modules/unionfs/Makefile new file mode 100644 index 000000000000..69299f0ee19a --- /dev/null +++ b/sys/modules/unionfs/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/fs/unionfs + +KMOD= unionfs +SRCS= vnode_if.h \ + union_subr.c union_vfsops.c union_vnops.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/usb/Makefile b/sys/modules/usb/Makefile new file mode 100644 index 000000000000..d9b1c8635b30 --- /dev/null +++ b/sys/modules/usb/Makefile @@ -0,0 +1,111 @@ +# +# +# 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} ${_bcm2838_xhci} +SUBDIR += mtw ${_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 udbc ufoma uftdi ugensa uipaq +SUBDIR += ulpt umb umct umcs umodem umoscom uplcom uslcom uvisor uvscom +SUBDIR += i2ctinyusb +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" +# The bcm2838_xhci shim is specific to the Raspberry Pi 4 SoC. +_bcm2838_xhci= bcm2838_xhci +.endif + +.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ + ${MACHINE_CPUARCH} == "i386" +_uacpi= uacpi +.endif + +.include <bsd.subdir.mk> diff --git a/sys/modules/usb/atmegadci/Makefile b/sys/modules/usb/atmegadci/Makefile new file mode 100644 index 000000000000..1cbd4965d1cf --- /dev/null +++ b/sys/modules/usb/atmegadci/Makefile @@ -0,0 +1,41 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/atp/Makefile b/sys/modules/usb/atp/Makefile new file mode 100644 index 000000000000..968bc27f6c5d --- /dev/null +++ b/sys/modules/usb/atp/Makefile @@ -0,0 +1,9 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/usb/aue/Makefile b/sys/modules/usb/aue/Makefile new file mode 100644 index 000000000000..4ce5ab41d4f4 --- /dev/null +++ b/sys/modules/usb/aue/Makefile @@ -0,0 +1,36 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/avr32dci/Makefile b/sys/modules/usb/avr32dci/Makefile new file mode 100644 index 000000000000..9aa5cb22904f --- /dev/null +++ b/sys/modules/usb/avr32dci/Makefile @@ -0,0 +1,37 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/axe/Makefile b/sys/modules/usb/axe/Makefile new file mode 100644 index 000000000000..b71c561f8236 --- /dev/null +++ b/sys/modules/usb/axe/Makefile @@ -0,0 +1,36 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/axge/Makefile b/sys/modules/usb/axge/Makefile new file mode 100644 index 000000000000..5c38e2246e8e --- /dev/null +++ b/sys/modules/usb/axge/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/usb/bcm2838_xhci/Makefile b/sys/modules/usb/bcm2838_xhci/Makefile new file mode 100644 index 000000000000..cbea037c9351 --- /dev/null +++ b/sys/modules/usb/bcm2838_xhci/Makefile @@ -0,0 +1,12 @@ +# Copyright (c) 2024 Lexi Winter. +# +# SPDX-License-Identifier: BSD-2-Clause + +S= ${SRCTOP}/sys + +.PATH: $S/arm/broadcom/bcm2835 + +KMOD= bcm2838_xhci +SRCS= bcm2838_xhci.c ofw_bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/usb/cdce/Makefile b/sys/modules/usb/cdce/Makefile new file mode 100644 index 000000000000..d74fb605ef99 --- /dev/null +++ b/sys/modules/usb/cdce/Makefile @@ -0,0 +1,36 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/cdceem/Makefile b/sys/modules/usb/cdceem/Makefile new file mode 100644 index 000000000000..692035bae850 --- /dev/null +++ b/sys/modules/usb/cdceem/Makefile @@ -0,0 +1,10 @@ +# + +.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 <bsd.kmod.mk> diff --git a/sys/modules/usb/cfumass/Makefile b/sys/modules/usb/cfumass/Makefile new file mode 100644 index 000000000000..5ddefb712b9d --- /dev/null +++ b/sys/modules/usb/cfumass/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/usb/cp2112/Makefile b/sys/modules/usb/cp2112/Makefile new file mode 100644 index 000000000000..28d855ba38a2 --- /dev/null +++ b/sys/modules/usb/cp2112/Makefile @@ -0,0 +1,36 @@ +# +# +# Copyright (c) Andriy Gapon <avg@FreeBSD.org> +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/cue/Makefile b/sys/modules/usb/cue/Makefile new file mode 100644 index 000000000000..d51d68635188 --- /dev/null +++ b/sys/modules/usb/cue/Makefile @@ -0,0 +1,36 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/dwc_otg/Makefile b/sys/modules/usb/dwc_otg/Makefile new file mode 100644 index 000000000000..5cb98293f6a9 --- /dev/null +++ b/sys/modules/usb/dwc_otg/Makefile @@ -0,0 +1,37 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ehci/Makefile b/sys/modules/usb/ehci/Makefile new file mode 100644 index 000000000000..8c896103c055 --- /dev/null +++ b/sys/modules/usb/ehci/Makefile @@ -0,0 +1,37 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/g_audio/Makefile b/sys/modules/usb/g_audio/Makefile new file mode 100644 index 000000000000..741ef0305d4c --- /dev/null +++ b/sys/modules/usb/g_audio/Makefile @@ -0,0 +1,34 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/g_keyboard/Makefile b/sys/modules/usb/g_keyboard/Makefile new file mode 100644 index 000000000000..0a6fbbbe6579 --- /dev/null +++ b/sys/modules/usb/g_keyboard/Makefile @@ -0,0 +1,34 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/g_modem/Makefile b/sys/modules/usb/g_modem/Makefile new file mode 100644 index 000000000000..963095b2df08 --- /dev/null +++ b/sys/modules/usb/g_modem/Makefile @@ -0,0 +1,34 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/g_mouse/Makefile b/sys/modules/usb/g_mouse/Makefile new file mode 100644 index 000000000000..2079debdc181 --- /dev/null +++ b/sys/modules/usb/g_mouse/Makefile @@ -0,0 +1,34 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/i2ctinyusb/Makefile b/sys/modules/usb/i2ctinyusb/Makefile new file mode 100644 index 000000000000..9cb37843935c --- /dev/null +++ b/sys/modules/usb/i2ctinyusb/Makefile @@ -0,0 +1,35 @@ +# +# +# Copyright (c) Denis Bodor <dbodor@rollmops.ninja> +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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= i2ctinyusb +SRCS= i2ctinyusb.c +SRCS+= i2ctinyusb.c device_if.h bus_if.h opt_usb.h usbdevs.h iicbus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/usb/ipheth/Makefile b/sys/modules/usb/ipheth/Makefile new file mode 100644 index 000000000000..c77182fd2135 --- /dev/null +++ b/sys/modules/usb/ipheth/Makefile @@ -0,0 +1,36 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/kue/Makefile b/sys/modules/usb/kue/Makefile new file mode 100644 index 000000000000..fb611072c699 --- /dev/null +++ b/sys/modules/usb/kue/Makefile @@ -0,0 +1,36 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/mos/Makefile b/sys/modules/usb/mos/Makefile new file mode 100644 index 000000000000..6c5ae20a4ce3 --- /dev/null +++ b/sys/modules/usb/mos/Makefile @@ -0,0 +1,36 @@ +# +# +# Copyright (c) 2011 Rick van der Zwet <info@rickvanderzwet.nl> +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/mtw/Makefile b/sys/modules/usb/mtw/Makefile new file mode 100644 index 000000000000..3495f2e0ff05 --- /dev/null +++ b/sys/modules/usb/mtw/Makefile @@ -0,0 +1,9 @@ +S= ${SRCTOP}/sys + +.PATH: $S/dev/usb/wlan + +KMOD= if_mtw +SRCS= opt_bus.h opt_usb.h opt_wlan.h device_if.h bus_if.h usb_if.h \ + usbdevs.h if_mtw.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/usb/muge/Makefile b/sys/modules/usb/muge/Makefile new file mode 100644 index 000000000000..5acc40d5b1cc --- /dev/null +++ b/sys/modules/usb/muge/Makefile @@ -0,0 +1,11 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/usb/musb/Makefile b/sys/modules/usb/musb/Makefile new file mode 100644 index 000000000000..aae6220df3dc --- /dev/null +++ b/sys/modules/usb/musb/Makefile @@ -0,0 +1,41 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ohci/Makefile b/sys/modules/usb/ohci/Makefile new file mode 100644 index 000000000000..262d655eff07 --- /dev/null +++ b/sys/modules/usb/ohci/Makefile @@ -0,0 +1,37 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/quirk/Makefile b/sys/modules/usb/quirk/Makefile new file mode 100644 index 000000000000..5700cf634210 --- /dev/null +++ b/sys/modules/usb/quirk/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/rsu/Makefile b/sys/modules/usb/rsu/Makefile new file mode 100644 index 000000000000..8dc0fb84cbb4 --- /dev/null +++ b/sys/modules/usb/rsu/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/usb/rsufw/Makefile b/sys/modules/usb/rsufw/Makefile new file mode 100644 index 000000000000..3f69e6414d35 --- /dev/null +++ b/sys/modules/usb/rsufw/Makefile @@ -0,0 +1,3 @@ +SUBDIR= rsurtl8712fw + +.include <bsd.subdir.mk> diff --git a/sys/modules/usb/rsufw/Makefile.inc b/sys/modules/usb/rsufw/Makefile.inc new file mode 100644 index 000000000000..582c34aa8ebd --- /dev/null +++ b/sys/modules/usb/rsufw/Makefile.inc @@ -0,0 +1,14 @@ +# +# 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 new file mode 100644 index 000000000000..be9c4ce883a0 --- /dev/null +++ b/sys/modules/usb/rsufw/rsurtl8712fw/Makefile @@ -0,0 +1,4 @@ +KMOD= rsu-rtl8712fw +IMG= rsu-rtl8712fw + +.include <bsd.kmod.mk> diff --git a/sys/modules/usb/rue/Makefile b/sys/modules/usb/rue/Makefile new file mode 100644 index 000000000000..1c06189f3c62 --- /dev/null +++ b/sys/modules/usb/rue/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/rum/Makefile b/sys/modules/usb/rum/Makefile new file mode 100644 index 000000000000..58a168ced263 --- /dev/null +++ b/sys/modules/usb/rum/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/run/Makefile b/sys/modules/usb/run/Makefile new file mode 100644 index 000000000000..ec3ebe22671f --- /dev/null +++ b/sys/modules/usb/run/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/runfw/Makefile b/sys/modules/usb/runfw/Makefile new file mode 100644 index 000000000000..58d026b7129a --- /dev/null +++ b/sys/modules/usb/runfw/Makefile @@ -0,0 +1,9 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/usb/smsc/Makefile b/sys/modules/usb/smsc/Makefile new file mode 100644 index 000000000000..5aeec81d8cb1 --- /dev/null +++ b/sys/modules/usb/smsc/Makefile @@ -0,0 +1,37 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/template/Makefile b/sys/modules/usb/template/Makefile new file mode 100644 index 000000000000..5b951ec9530e --- /dev/null +++ b/sys/modules/usb/template/Makefile @@ -0,0 +1,52 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/u3g/Makefile b/sys/modules/usb/u3g/Makefile new file mode 100644 index 000000000000..62be87d15c6a --- /dev/null +++ b/sys/modules/usb/u3g/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uacpi/Makefile b/sys/modules/usb/uacpi/Makefile new file mode 100644 index 000000000000..ebb9524565b0 --- /dev/null +++ b/sys/modules/usb/uacpi/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uark/Makefile b/sys/modules/usb/uark/Makefile new file mode 100644 index 000000000000..a597e360085d --- /dev/null +++ b/sys/modules/usb/uark/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uath/Makefile b/sys/modules/usb/uath/Makefile new file mode 100644 index 000000000000..e49167ddfda2 --- /dev/null +++ b/sys/modules/usb/uath/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ubsa/Makefile b/sys/modules/usb/ubsa/Makefile new file mode 100644 index 000000000000..a9e5e373f9d4 --- /dev/null +++ b/sys/modules/usb/ubsa/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ubser/Makefile b/sys/modules/usb/ubser/Makefile new file mode 100644 index 000000000000..837da796ae35 --- /dev/null +++ b/sys/modules/usb/ubser/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uchcom/Makefile b/sys/modules/usb/uchcom/Makefile new file mode 100644 index 000000000000..cb4e97f75019 --- /dev/null +++ b/sys/modules/usb/uchcom/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ucom/Makefile b/sys/modules/usb/ucom/Makefile new file mode 100644 index 000000000000..1cd0b63b09d3 --- /dev/null +++ b/sys/modules/usb/ucom/Makefile @@ -0,0 +1,37 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ucycom/Makefile b/sys/modules/usb/ucycom/Makefile new file mode 100644 index 000000000000..7df84803035e --- /dev/null +++ b/sys/modules/usb/ucycom/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/udav/Makefile b/sys/modules/usb/udav/Makefile new file mode 100644 index 000000000000..2e0e1e96ae2b --- /dev/null +++ b/sys/modules/usb/udav/Makefile @@ -0,0 +1,36 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/udbc/Makefile b/sys/modules/usb/udbc/Makefile new file mode 100644 index 000000000000..9996b2e391fb --- /dev/null +++ b/sys/modules/usb/udbc/Makefile @@ -0,0 +1,9 @@ +S= ${SRCTOP}/sys + +.PATH: $S/dev/usb/serial + +KMOD= udbc +SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ + udbc.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/usb/udbp/Makefile b/sys/modules/usb/udbp/Makefile new file mode 100644 index 000000000000..1b09c3171fb0 --- /dev/null +++ b/sys/modules/usb/udbp/Makefile @@ -0,0 +1,36 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/udl/Makefile b/sys/modules/usb/udl/Makefile new file mode 100644 index 000000000000..4440cbd90a51 --- /dev/null +++ b/sys/modules/usb/udl/Makefile @@ -0,0 +1,10 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uep/Makefile b/sys/modules/usb/uep/Makefile new file mode 100644 index 000000000000..5425fd7489b1 --- /dev/null +++ b/sys/modules/usb/uep/Makefile @@ -0,0 +1,9 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uether/Makefile b/sys/modules/usb/uether/Makefile new file mode 100644 index 000000000000..93cf756370b6 --- /dev/null +++ b/sys/modules/usb/uether/Makefile @@ -0,0 +1,38 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ufoma/Makefile b/sys/modules/usb/ufoma/Makefile new file mode 100644 index 000000000000..9dfcc9b1b27c --- /dev/null +++ b/sys/modules/usb/ufoma/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uftdi/Makefile b/sys/modules/usb/uftdi/Makefile new file mode 100644 index 000000000000..408b93d01a40 --- /dev/null +++ b/sys/modules/usb/uftdi/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ugensa/Makefile b/sys/modules/usb/ugensa/Makefile new file mode 100644 index 000000000000..b72c33475f63 --- /dev/null +++ b/sys/modules/usb/ugensa/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ugold/Makefile b/sys/modules/usb/ugold/Makefile new file mode 100644 index 000000000000..bb9276996a27 --- /dev/null +++ b/sys/modules/usb/ugold/Makefile @@ -0,0 +1,12 @@ +# +# + +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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uhci/Makefile b/sys/modules/usb/uhci/Makefile new file mode 100644 index 000000000000..fb97602a4ce9 --- /dev/null +++ b/sys/modules/usb/uhci/Makefile @@ -0,0 +1,37 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uhid/Makefile b/sys/modules/usb/uhid/Makefile new file mode 100644 index 000000000000..be9eae25eb73 --- /dev/null +++ b/sys/modules/usb/uhid/Makefile @@ -0,0 +1,37 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uhid_snes/Makefile b/sys/modules/usb/uhid_snes/Makefile new file mode 100644 index 000000000000..36d6c2ba51ca --- /dev/null +++ b/sys/modules/usb/uhid_snes/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uhso/Makefile b/sys/modules/usb/uhso/Makefile new file mode 100644 index 000000000000..4553806e63fb --- /dev/null +++ b/sys/modules/usb/uhso/Makefile @@ -0,0 +1,36 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uipaq/Makefile b/sys/modules/usb/uipaq/Makefile new file mode 100644 index 000000000000..4b4e66ad8bdc --- /dev/null +++ b/sys/modules/usb/uipaq/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ukbd/Makefile b/sys/modules/usb/ukbd/Makefile new file mode 100644 index 000000000000..b723b225aec0 --- /dev/null +++ b/sys/modules/usb/ukbd/Makefile @@ -0,0 +1,36 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uled/Makefile b/sys/modules/usb/uled/Makefile new file mode 100644 index 000000000000..952ea1b06cbb --- /dev/null +++ b/sys/modules/usb/uled/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ulpt/Makefile b/sys/modules/usb/ulpt/Makefile new file mode 100644 index 000000000000..41b336ae8afa --- /dev/null +++ b/sys/modules/usb/ulpt/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/umass/Makefile b/sys/modules/usb/umass/Makefile new file mode 100644 index 000000000000..93d59d494685 --- /dev/null +++ b/sys/modules/usb/umass/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/umb/Makefile b/sys/modules/usb/umb/Makefile new file mode 100644 index 000000000000..6297a9fdc1a0 --- /dev/null +++ b/sys/modules/usb/umb/Makefile @@ -0,0 +1,33 @@ +# 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= umb +SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \ + if_umb.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/usb/umcs/Makefile b/sys/modules/usb/umcs/Makefile new file mode 100644 index 000000000000..155aaccbdcbe --- /dev/null +++ b/sys/modules/usb/umcs/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/umct/Makefile b/sys/modules/usb/umct/Makefile new file mode 100644 index 000000000000..de611de2f3fe --- /dev/null +++ b/sys/modules/usb/umct/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/umodem/Makefile b/sys/modules/usb/umodem/Makefile new file mode 100644 index 000000000000..690c6b6839b7 --- /dev/null +++ b/sys/modules/usb/umodem/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/umoscom/Makefile b/sys/modules/usb/umoscom/Makefile new file mode 100644 index 000000000000..6f64b03f1aee --- /dev/null +++ b/sys/modules/usb/umoscom/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ums/Makefile b/sys/modules/usb/ums/Makefile new file mode 100644 index 000000000000..afb30c11d85d --- /dev/null +++ b/sys/modules/usb/ums/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/upgt/Makefile b/sys/modules/usb/upgt/Makefile new file mode 100644 index 000000000000..2d719135ffab --- /dev/null +++ b/sys/modules/usb/upgt/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uplcom/Makefile b/sys/modules/usb/uplcom/Makefile new file mode 100644 index 000000000000..961b66b639ad --- /dev/null +++ b/sys/modules/usb/uplcom/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ural/Makefile b/sys/modules/usb/ural/Makefile new file mode 100644 index 000000000000..fe02b26e8a6d --- /dev/null +++ b/sys/modules/usb/ural/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/ure/Makefile b/sys/modules/usb/ure/Makefile new file mode 100644 index 000000000000..100fe5df67ee --- /dev/null +++ b/sys/modules/usb/ure/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/usb/urio/Makefile b/sys/modules/usb/urio/Makefile new file mode 100644 index 000000000000..62fe58ec68d8 --- /dev/null +++ b/sys/modules/usb/urio/Makefile @@ -0,0 +1,34 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/urndis/Makefile b/sys/modules/usb/urndis/Makefile new file mode 100644 index 000000000000..bdbb485bfe05 --- /dev/null +++ b/sys/modules/usb/urndis/Makefile @@ -0,0 +1,36 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/urtw/Makefile b/sys/modules/usb/urtw/Makefile new file mode 100644 index 000000000000..13ea006e166c --- /dev/null +++ b/sys/modules/usb/urtw/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/usb/usb/Makefile b/sys/modules/usb/usb/Makefile new file mode 100644 index 000000000000..225b210c6857 --- /dev/null +++ b/sys/modules/usb/usb/Makefile @@ -0,0 +1,45 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/usbhid/Makefile b/sys/modules/usb/usbhid/Makefile new file mode 100644 index 000000000000..f0994bb8416f --- /dev/null +++ b/sys/modules/usb/usbhid/Makefile @@ -0,0 +1,8 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/usb/usfs/Makefile b/sys/modules/usb/usfs/Makefile new file mode 100644 index 000000000000..a8e2ae6a0da7 --- /dev/null +++ b/sys/modules/usb/usfs/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/usie/Makefile b/sys/modules/usb/usie/Makefile new file mode 100644 index 000000000000..9edeed082f8d --- /dev/null +++ b/sys/modules/usb/usie/Makefile @@ -0,0 +1,34 @@ +# +# +# 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 opt_inet6.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/usb/uslcom/Makefile b/sys/modules/usb/uslcom/Makefile new file mode 100644 index 000000000000..9efeb8dcc621 --- /dev/null +++ b/sys/modules/usb/uslcom/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uss820dci/Makefile b/sys/modules/usb/uss820dci/Makefile new file mode 100644 index 000000000000..74e6c329c3d2 --- /dev/null +++ b/sys/modules/usb/uss820dci/Makefile @@ -0,0 +1,41 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uvisor/Makefile b/sys/modules/usb/uvisor/Makefile new file mode 100644 index 000000000000..e83f0dadb364 --- /dev/null +++ b/sys/modules/usb/uvisor/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/uvscom/Makefile b/sys/modules/usb/uvscom/Makefile new file mode 100644 index 000000000000..69cc293743e2 --- /dev/null +++ b/sys/modules/usb/uvscom/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/wmt/Makefile b/sys/modules/usb/wmt/Makefile new file mode 100644 index 000000000000..8cb5abd7383e --- /dev/null +++ b/sys/modules/usb/wmt/Makefile @@ -0,0 +1,8 @@ +S= ${SRCTOP}/sys + +.PATH: $S/dev/usb/input + +KMOD= wmt +SRCS= opt_bus.h opt_kbd.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h wmt.c + +.include <bsd.kmod.mk> diff --git a/sys/modules/usb/wsp/Makefile b/sys/modules/usb/wsp/Makefile new file mode 100644 index 000000000000..98f6f21f2bef --- /dev/null +++ b/sys/modules/usb/wsp/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/xhci/Makefile b/sys/modules/usb/xhci/Makefile new file mode 100644 index 000000000000..1badf66ce5bc --- /dev/null +++ b/sys/modules/usb/xhci/Makefile @@ -0,0 +1,37 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/usb/zyd/Makefile b/sys/modules/usb/zyd/Makefile new file mode 100644 index 000000000000..21b492a2a27e --- /dev/null +++ b/sys/modules/usb/zyd/Makefile @@ -0,0 +1,35 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/veriexec/Makefile b/sys/modules/veriexec/Makefile new file mode 100644 index 000000000000..2916e0b5c987 --- /dev/null +++ b/sys/modules/veriexec/Makefile @@ -0,0 +1,10 @@ +.PATH: ${.PARSEDIR:H:H}/dev/veriexec + +.include <bsd.own.mk> + +KMOD= veriexec +SRCS= verified_exec.c +SRCS+= bus_if.h device_if.h vnode_if.h + +.include <bsd.kmod.mk> + diff --git a/sys/modules/vesa/Makefile b/sys/modules/vesa/Makefile new file mode 100644 index 000000000000..83555cee68d3 --- /dev/null +++ b/sys/modules/vesa/Makefile @@ -0,0 +1,11 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/vf_i2c/Makefile b/sys/modules/vf_i2c/Makefile new file mode 100644 index 000000000000..53c9f9948ac8 --- /dev/null +++ b/sys/modules/vf_i2c/Makefile @@ -0,0 +1,14 @@ +.PATH: ${SRCTOP}/sys/dev/iicbus/controller/vybrid + +KMOD= vf_i2c +SRCS= vf_i2c.c vf_i2c.h +SRCS+= device_if.h bus_if.h iicbus_if.h +SRCS+= opt_acpi.h opt_platform.h + +SRCS.DEV_ACPI= vf_i2c_acpi.c acpi_if.h + +.if !empty(OPT_FDT) +SRCS+= vf_i2c_fdt.c ofw_bus_if.h clknode_if.h +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/vge/Makefile b/sys/modules/vge/Makefile new file mode 100644 index 000000000000..fcc12fb07c27 --- /dev/null +++ b/sys/modules/vge/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/viawd/Makefile b/sys/modules/viawd/Makefile new file mode 100644 index 000000000000..89996d6a5287 --- /dev/null +++ b/sys/modules/viawd/Makefile @@ -0,0 +1,6 @@ +.PATH: ${SRCTOP}/sys/dev/viawd + +KMOD= viawd +SRCS= viawd.c device_if.h bus_if.h pci_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/videomode/Makefile b/sys/modules/videomode/Makefile new file mode 100644 index 000000000000..729297a03a96 --- /dev/null +++ b/sys/modules/videomode/Makefile @@ -0,0 +1,39 @@ +# +# +# 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 <bsd.kmod.mk> diff --git a/sys/modules/virtio/Makefile b/sys/modules/virtio/Makefile new file mode 100644 index 000000000000..f00cdc7b23ca --- /dev/null +++ b/sys/modules/virtio/Makefile @@ -0,0 +1,27 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 p9fs + +.include <bsd.subdir.mk> diff --git a/sys/modules/virtio/balloon/Makefile b/sys/modules/virtio/balloon/Makefile new file mode 100644 index 000000000000..fd0e4a085da5 --- /dev/null +++ b/sys/modules/virtio/balloon/Makefile @@ -0,0 +1,32 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.kmod.mk> diff --git a/sys/modules/virtio/block/Makefile b/sys/modules/virtio/block/Makefile new file mode 100644 index 000000000000..d802f35a2fab --- /dev/null +++ b/sys/modules/virtio/block/Makefile @@ -0,0 +1,32 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.kmod.mk> diff --git a/sys/modules/virtio/console/Makefile b/sys/modules/virtio/console/Makefile new file mode 100644 index 000000000000..1664d443c9e8 --- /dev/null +++ b/sys/modules/virtio/console/Makefile @@ -0,0 +1,32 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.kmod.mk> diff --git a/sys/modules/virtio/network/Makefile b/sys/modules/virtio/network/Makefile new file mode 100644 index 000000000000..5025034daa45 --- /dev/null +++ b/sys/modules/virtio/network/Makefile @@ -0,0 +1,33 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.kmod.mk> diff --git a/sys/modules/virtio/p9fs/Makefile b/sys/modules/virtio/p9fs/Makefile new file mode 100644 index 000000000000..48631efb6973 --- /dev/null +++ b/sys/modules/virtio/p9fs/Makefile @@ -0,0 +1,32 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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/p9fs + +KMOD= virtio_p9fs +SRCS= virtio_p9fs.c +SRCS+= virtio_bus_if.h virtio_if.h +SRCS+= bus_if.h device_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/virtio/pci/Makefile b/sys/modules/virtio/pci/Makefile new file mode 100644 index 000000000000..d1361059ceba --- /dev/null +++ b/sys/modules/virtio/pci/Makefile @@ -0,0 +1,33 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.kmod.mk> diff --git a/sys/modules/virtio/random/Makefile b/sys/modules/virtio/random/Makefile new file mode 100644 index 000000000000..effae07c5659 --- /dev/null +++ b/sys/modules/virtio/random/Makefile @@ -0,0 +1,32 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.kmod.mk> diff --git a/sys/modules/virtio/scsi/Makefile b/sys/modules/virtio/scsi/Makefile new file mode 100644 index 000000000000..0c14314112ff --- /dev/null +++ b/sys/modules/virtio/scsi/Makefile @@ -0,0 +1,32 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.kmod.mk> diff --git a/sys/modules/virtio/virtio/Makefile b/sys/modules/virtio/virtio/Makefile new file mode 100644 index 000000000000..04cbcd0e44f1 --- /dev/null +++ b/sys/modules/virtio/virtio/Makefile @@ -0,0 +1,36 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.kmod.mk> diff --git a/sys/modules/vkbd/Makefile b/sys/modules/vkbd/Makefile new file mode 100644 index 000000000000..299fea441210 --- /dev/null +++ b/sys/modules/vkbd/Makefile @@ -0,0 +1,13 @@ +# $Id: Makefile,v 1.1 2004/08/13 18:30:24 max Exp $ + +.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 <bsd.kmod.mk> diff --git a/sys/modules/vmd/Makefile b/sys/modules/vmd/Makefile new file mode 100644 index 000000000000..906317f55e8e --- /dev/null +++ b/sys/modules/vmd/Makefile @@ -0,0 +1,12 @@ +.PATH: ${SRCTOP}/sys/dev/vmd + +KMOD= vmd + +SRCS= \ + vmd.c \ + bus_if.h \ + device_if.h \ + pci_if.h \ + pcib_if.h \ + +.include <bsd.kmod.mk> diff --git a/sys/modules/vmm/Makefile b/sys/modules/vmm/Makefile new file mode 100644 index 000000000000..066b4d814348 --- /dev/null +++ b/sys/modules/vmm/Makefile @@ -0,0 +1,164 @@ +.include <kmod.opts.mk> + +KMOD= vmm + +.if ${MACHINE_CPUARCH} == "amd64" +.endif + +SRCS+= acpi_if.h bus_if.h device_if.h pci_if.h pcib_if.h vnode_if.h + +CFLAGS+= -DVMM_KEEP_STATS +CFLAGS+= -I${SRCTOP}/sys/${MACHINE}/vmm + +# generic vmm support +.PATH: ${SRCTOP}/sys/dev/vmm ${SRCTOP}/sys/${MACHINE}/vmm + +SRCS+= vmm.c \ + vmm_dev.c \ + vmm_dev_machdep.c \ + vmm_instruction_emul.c \ + vmm_mem.c \ + vmm_stat.c + +.if ${MACHINE_CPUARCH} == "aarch64" +CFLAGS+= -I${SRCTOP}/sys/${MACHINE}/vmm/io +DPSRCS+= assym.inc + +# TODO: Add the new EL2 code +SRCS+= vmm_arm64.c \ + vmm_reset.c \ + vmm_call.S \ + vmm_handlers.c \ + vmm_mmu.c \ + vmm_vhe_exception.S \ + vmm_vhe.c \ + vmm_hyp_el2.S + +.PATH: ${SRCTOP}/sys/${MACHINE}/vmm/io +SRCS+= vgic.c \ + vgic_if.h \ + vgic_if.c \ + vgic_v3.c \ + vtimer.c + +CLEANFILES+= vmm_nvhe_exception.o vmm_nvhe.o + +CLEANFILES+= vmm_hyp_blob.elf.full +CLEANFILES+= vmm_hyp_blob.elf vmm_hyp_blob.bin + +vmm_nvhe_exception.o: vmm_nvhe_exception.S vmm_hyp_exception.S + ${CC} -c -x assembler-with-cpp -DLOCORE \ + ${NOSAN_CFLAGS:N-mbranch-protection*} ${.IMPSRC} -o ${.TARGET} -fpie + +vmm_nvhe.o: vmm_nvhe.c vmm_hyp.c + ${CC} -c ${NOSAN_CFLAGS:N-mbranch-protection*} ${.IMPSRC} \ + -o ${.TARGET} -fpie + +vmm_hyp_blob.elf.full: vmm_nvhe_exception.o vmm_nvhe.o + ${LD} -m ${LD_EMULATION} -Bdynamic -L ${SYSDIR}/conf -T ${SYSDIR}/conf/ldscript.arm64 \ + ${_LDFLAGS:N-zbti-report*} --no-warn-mismatch --warn-common --export-dynamic \ + --dynamic-linker /red/herring -X -o ${.TARGET} ${.ALLSRC} \ + --defsym=_start='0x0' --defsym=text_start='0x0' + +vmm_hyp_blob.elf: vmm_hyp_blob.elf.full + ${OBJCOPY} --strip-debug ${.ALLSRC} ${.TARGET} + +vmm_hyp_blob.bin: vmm_hyp_blob.elf + ${OBJCOPY} --output-target=binary ${.ALLSRC} ${.TARGET} + +vmm_hyp_el2.o: vmm_hyp_blob.bin + +.elif ${MACHINE_CPUARCH} == "amd64" +CFLAGS+= -I${SRCTOP}/sys/${MACHINE}/vmm/io +DPSRCS+= vmx_assym.h svm_assym.h +DPSRCS+= vmx_genassym.c svm_genassym.c offset.inc + +CFLAGS+= -I${SRCTOP}/sys/amd64/vmm/intel +CFLAGS+= -I${SRCTOP}/sys/amd64/vmm/amd + +SRCS+= opt_acpi.h \ + opt_bhyve_snapshot.h \ + opt_ddb.h + +SRCS+= vmm_host.c \ + vmm_ioport.c \ + vmm_lapic.c \ + vmm_mem_machdep.c \ + vmm_util.c \ + x86.c + +.PATH: ${SRCTOP}/sys/${MACHINE}/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 \ + amdviiommu.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} + +hyp_genassym.o: offset.inc + ${CC} -c ${NOSAN_CFLAGS:N-flto*:N-fno-common} -fcommon ${.IMPSRC} + +vmx_genassym.o: offset.inc + ${CC} -c ${NOSAN_CFLAGS:N-flto*:N-fno-common} -fcommon ${.IMPSRC} + +svm_genassym.o: offset.inc + ${CC} -c ${NOSAN_CFLAGS:N-flto*:N-fno-common} -fcommon ${.IMPSRC} + +.elif ${MACHINE_CPUARCH} == "riscv" + +SRCS+= vmm_aplic.c \ + vmm_fence.c \ + vmm_riscv.c \ + vmm_sbi.c \ + vmm_switch.S \ + vmm_vtimer.c + +.endif + +.include <bsd.kmod.mk> diff --git a/sys/modules/vmware/Makefile b/sys/modules/vmware/Makefile new file mode 100644 index 000000000000..3d75f1a59c5c --- /dev/null +++ b/sys/modules/vmware/Makefile @@ -0,0 +1,29 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.subdir.mk> diff --git a/sys/modules/vmware/pvscsi/Makefile b/sys/modules/vmware/pvscsi/Makefile new file mode 100644 index 000000000000..451a44a54816 --- /dev/null +++ b/sys/modules/vmware/pvscsi/Makefile @@ -0,0 +1,8 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/vmware/vmci/Makefile b/sys/modules/vmware/vmci/Makefile new file mode 100644 index 000000000000..84b27417fbbd --- /dev/null +++ b/sys/modules/vmware/vmci/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/vmware/vmxnet3/Makefile b/sys/modules/vmware/vmxnet3/Makefile new file mode 100644 index 000000000000..8e0e9ba68f95 --- /dev/null +++ b/sys/modules/vmware/vmxnet3/Makefile @@ -0,0 +1,32 @@ +# +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that 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 <bsd.kmod.mk> diff --git a/sys/modules/vnic/Makefile b/sys/modules/vnic/Makefile new file mode 100644 index 000000000000..7b975bfebe81 --- /dev/null +++ b/sys/modules/vnic/Makefile @@ -0,0 +1,8 @@ +SYSDIR?=${SRCTOP}/sys +.include "${SYSDIR}/conf/kern.opts.mk" + +CFLAGS+= -DFDT + +SUBDIR = mrmlbus thunder_mdio thunder_bgx vnicpf vnicvf + +.include <bsd.subdir.mk> diff --git a/sys/modules/vnic/mrmlbus/Makefile b/sys/modules/vnic/mrmlbus/Makefile new file mode 100644 index 000000000000..a3581b7a79a5 --- /dev/null +++ b/sys/modules/vnic/mrmlbus/Makefile @@ -0,0 +1,14 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/vnic/thunder_bgx/Makefile b/sys/modules/vnic/thunder_bgx/Makefile new file mode 100644 index 000000000000..90df4b25df90 --- /dev/null +++ b/sys/modules/vnic/thunder_bgx/Makefile @@ -0,0 +1,14 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/vnic/thunder_mdio/Makefile b/sys/modules/vnic/thunder_mdio/Makefile new file mode 100644 index 000000000000..37032516f3ca --- /dev/null +++ b/sys/modules/vnic/thunder_mdio/Makefile @@ -0,0 +1,14 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/vnic/vnicpf/Makefile b/sys/modules/vnic/vnicpf/Makefile new file mode 100644 index 000000000000..37cd29e6fdd8 --- /dev/null +++ b/sys/modules/vnic/vnicpf/Makefile @@ -0,0 +1,14 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/vnic/vnicvf/Makefile b/sys/modules/vnic/vnicvf/Makefile new file mode 100644 index 000000000000..c6ffaaa2c302 --- /dev/null +++ b/sys/modules/vnic/vnicvf/Makefile @@ -0,0 +1,14 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/vr/Makefile b/sys/modules/vr/Makefile new file mode 100644 index 000000000000..cd441957a357 --- /dev/null +++ b/sys/modules/vr/Makefile @@ -0,0 +1,7 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/vte/Makefile b/sys/modules/vte/Makefile new file mode 100644 index 000000000000..1b750d1bbb4f --- /dev/null +++ b/sys/modules/vte/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/wbwd/Makefile b/sys/modules/wbwd/Makefile new file mode 100644 index 000000000000..c464a3f8fc0c --- /dev/null +++ b/sys/modules/wbwd/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/wbwd + +KMOD= wbwd +SRCS= wbwd.c +SRCS+= bus_if.h device_if.h isa_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/wdatwd/Makefile b/sys/modules/wdatwd/Makefile new file mode 100644 index 000000000000..ecfbb7c046a1 --- /dev/null +++ b/sys/modules/wdatwd/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/wdatwd + +KMOD= wdatwd +SRCS= wdatwd.c +SRCS+= opt_acpi.h acpi_if.h device_if.h bus_if.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan/Makefile b/sys/modules/wlan/Makefile new file mode 100644 index 000000000000..d0a761a8109f --- /dev/null +++ b/sys/modules/wlan/Makefile @@ -0,0 +1,25 @@ +.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 <bsd.kmod.mk> + +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 new file mode 100644 index 000000000000..bb8541e79bbb --- /dev/null +++ b/sys/modules/wlan_acl/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/net80211 + +KMOD= wlan_acl +SRCS= ieee80211_acl.c +SRCS+= opt_wlan.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan_amrr/Makefile b/sys/modules/wlan_amrr/Makefile new file mode 100644 index 000000000000..4ad964d095fd --- /dev/null +++ b/sys/modules/wlan_amrr/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/net80211 + +KMOD= wlan_amrr +SRCS= ieee80211_amrr.c +SRCS+= opt_wlan.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan_ccmp/Makefile b/sys/modules/wlan_ccmp/Makefile new file mode 100644 index 000000000000..5115ef73bc6e --- /dev/null +++ b/sys/modules/wlan_ccmp/Makefile @@ -0,0 +1,9 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/wlan_gcmp/Makefile b/sys/modules/wlan_gcmp/Makefile new file mode 100644 index 000000000000..fb0a94b0a9df --- /dev/null +++ b/sys/modules/wlan_gcmp/Makefile @@ -0,0 +1,9 @@ +.PATH: ${SRCTOP}/sys/net80211 +.PATH: ${SRCTOP}/sys/crypto/rijndael + +KMOD= wlan_gcmp +SRCS= ieee80211_crypto_gcmp.c ieee80211_crypto_gcm.c +SRCS+= rijndael-alg-fst.c rijndael-api.c +SRCS+= opt_wlan.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan_rssadapt/Makefile b/sys/modules/wlan_rssadapt/Makefile new file mode 100644 index 000000000000..88f3ec505ce7 --- /dev/null +++ b/sys/modules/wlan_rssadapt/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/net80211 + +KMOD= wlan_rssadapt +SRCS= ieee80211_rssadapt.c +SRCS+= opt_wlan.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan_tkip/Makefile b/sys/modules/wlan_tkip/Makefile new file mode 100644 index 000000000000..b173faa1b34e --- /dev/null +++ b/sys/modules/wlan_tkip/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/net80211 + +KMOD= wlan_tkip +SRCS= ieee80211_crypto_tkip.c +SRCS+= opt_wlan.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan_wep/Makefile b/sys/modules/wlan_wep/Makefile new file mode 100644 index 000000000000..f995b9747b1d --- /dev/null +++ b/sys/modules/wlan_wep/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/net80211 + +KMOD= wlan_wep +SRCS= ieee80211_crypto_wep.c +SRCS+= opt_wlan.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/wlan_xauth/Makefile b/sys/modules/wlan_xauth/Makefile new file mode 100644 index 000000000000..cb1530d1036d --- /dev/null +++ b/sys/modules/wlan_xauth/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/net80211 + +KMOD= wlan_xauth +SRCS= ieee80211_xauth.c +SRCS+= opt_wlan.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/wpi/Makefile b/sys/modules/wpi/Makefile new file mode 100644 index 000000000000..d827f451a67e --- /dev/null +++ b/sys/modules/wpi/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/wpifw/Makefile b/sys/modules/wpifw/Makefile new file mode 100644 index 000000000000..f13108abb5cc --- /dev/null +++ b/sys/modules/wpifw/Makefile @@ -0,0 +1,11 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/wtap/Makefile b/sys/modules/wtap/Makefile new file mode 100644 index 000000000000..a157695915a3 --- /dev/null +++ b/sys/modules/wtap/Makefile @@ -0,0 +1,22 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/x86bios/Makefile b/sys/modules/x86bios/Makefile new file mode 100644 index 000000000000..225d8e0293b2 --- /dev/null +++ b/sys/modules/x86bios/Makefile @@ -0,0 +1,12 @@ +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 <bsd.kmod.mk> diff --git a/sys/modules/xdr/Makefile b/sys/modules/xdr/Makefile new file mode 100644 index 000000000000..86212b5dcc4d --- /dev/null +++ b/sys/modules/xdr/Makefile @@ -0,0 +1,12 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/xl/Makefile b/sys/modules/xl/Makefile new file mode 100644 index 000000000000..dfe8ffc0ad9c --- /dev/null +++ b/sys/modules/xl/Makefile @@ -0,0 +1,6 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/xz/Makefile b/sys/modules/xz/Makefile new file mode 100644 index 000000000000..8951123635c3 --- /dev/null +++ b/sys/modules/xz/Makefile @@ -0,0 +1,22 @@ +.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 <bsd.kmod.mk> diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile new file mode 100644 index 000000000000..ec531ed646a7 --- /dev/null +++ b/sys/modules/zfs/Makefile @@ -0,0 +1,538 @@ +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/modes \ + ${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 \ + -DHAVE_VAES -DHAVE_VPCLMULQDQ +.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 + +#icp/asm-x86_64/modes +SRCS+= aesni-gcm-avx2-vaes.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_geom.c \ + vdev_label_os.c \ + zfs_acl.c \ + zfs_ctldir.c \ + zfs_crrd.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_os.c \ + zio_crypt.c \ + zvol_os.c + +#unicode +SRCS+= 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 \ + zfs_valstr.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_log.c \ + ddt_stats.c \ + ddt_zap.c \ + dmu.c \ + dmu_direct.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_file.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 \ + zfs_znode.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 <bsd.kmod.mk> + +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.ddt_log.c= -Wno-cast-qual -Wno-pointer-arith +CFLAGS.ddt_zap.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/zfs/static_ccompile.h b/sys/modules/zfs/static_ccompile.h new file mode 100644 index 000000000000..7ebf4f6db3c4 --- /dev/null +++ b/sys/modules/zfs/static_ccompile.h @@ -0,0 +1,28 @@ +/* + */ + +#ifndef _SPL_NVLIST_H_ +#define _SPL_NVLIST_H_ + +#ifdef INVARIANTS +#define ZFS_DEBUG +#endif + +#define nvlist_add_nvlist spl_nvlist_add_nvlist +#define nvlist_add_nvlist_array spl_nvlist_add_nvlist_array +#define nvlist_add_nvpair spl_nvlist_add_nvpair +#define nvlist_add_string spl_nvlist_add_string +#define nvlist_add_string_array spl_nvlist_add_string_array +#define nvlist_empty spl_nvlist_empty +#define nvlist_exists spl_nvlist_exists +#define nvlist_free spl_nvlist_free +#define nvlist_next_nvpair spl_nvlist_next_nvpair +#define nvlist_pack spl_nvlist_pack +#define nvlist_prev_nvpair spl_nvlist_prev_nvpair +#define nvlist_remove_nvpair spl_nvlist_remove_nvpair +#define nvlist_size spl_nvlist_size +#define nvlist_unpack spl_nvlist_unpack + +#define nvpair_type spl_nvpair_type +#define nvpair_name spl_nvpair_name +#endif diff --git a/sys/modules/zfs/zfs_config.h b/sys/modules/zfs/zfs_config.h new file mode 100644 index 000000000000..db1b6f33a8ef --- /dev/null +++ b/sys/modules/zfs/zfs_config.h @@ -0,0 +1,882 @@ +/* + */ + +/* zfs_config.h. Generated from zfs_config.h.in by configure. */ +/* zfs_config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +/* #undef ENABLE_NLS */ + +/* __assign_str() has one arg */ +/* #undef HAVE_1ARG_ASSIGN_STR */ + +/* lookup_bdev() wants 1 arg */ +/* #undef HAVE_1ARG_LOOKUP_BDEV */ + +/* kernel has access_ok with 'type' parameter */ +/* #undef HAVE_ACCESS_OK_TYPE */ + +/* add_disk() returns int */ +/* #undef HAVE_ADD_DISK_RET */ + +/* Define if host toolchain supports AES */ +#define HAVE_AES 1 + +/* Define if you have [rt] */ +#define HAVE_AIO_H 1 + +#ifdef __amd64__ +#ifndef RESCUE +/* Define if host toolchain supports AVX */ +#define HAVE_AVX 1 +#endif + +/* Define if host toolchain supports AVX2 */ +#define HAVE_AVX2 1 + +/* Define if host toolchain supports AVX512BW */ +#define HAVE_AVX512BW 1 + +/* Define if host toolchain supports AVX512CD */ +#define HAVE_AVX512CD 1 + +/* Define if host toolchain supports AVX512DQ */ +#define HAVE_AVX512DQ 1 + +/* Define if host toolchain supports AVX512ER */ +#define HAVE_AVX512ER 1 + +/* Define if host toolchain supports AVX512F */ +#define HAVE_AVX512F 1 + +/* Define if host toolchain supports AVX512IFMA */ +#define HAVE_AVX512IFMA 1 + +/* Define if host toolchain supports AVX512PF */ +#define HAVE_AVX512PF 1 + +/* Define if host toolchain supports AVX512VBMI */ +#define HAVE_AVX512VBMI 1 + +/* Define if host toolchain supports AVX512VL */ +#define HAVE_AVX512VL 1 +#endif + +/* backtrace() is available */ +/* #undef HAVE_BACKTRACE */ + +/* bdevname() is available */ +/* #undef HAVE_BDEVNAME */ + +/* bdev_check_media_change() exists */ +/* #undef HAVE_BDEV_CHECK_MEDIA_CHANGE */ + +/* bdev_file_open_by_path() exists */ +/* #undef HAVE_BDEV_FILE_OPEN_BY_PATH */ + +/* bdev_*_io_acct() available */ +/* #undef HAVE_BDEV_IO_ACCT_63 */ + +/* bdev_*_io_acct() available */ +/* #undef HAVE_BDEV_IO_ACCT_OLD */ + +/* bdev_kobj() exists */ +/* #undef HAVE_BDEV_KOBJ */ + +/* bdev_max_discard_sectors() is available */ +/* #undef HAVE_BDEV_MAX_DISCARD_SECTORS */ + +/* bdev_max_secure_erase_sectors() is available */ +/* #undef HAVE_BDEV_MAX_SECURE_ERASE_SECTORS */ + +/* bdev_nr_bytes() is available */ +/* #undef HAVE_BDEV_NR_BYTES */ + +/* bdev_open_by_path() exists */ +/* #undef HAVE_BDEV_OPEN_BY_PATH */ + +/* bdev_release() exists */ +/* #undef HAVE_BDEV_RELEASE */ + +/* block_device_operations->submit_bio() returns void */ +/* #undef HAVE_BDEV_SUBMIT_BIO_RETURNS_VOID */ + +/* bdev_whole() is available */ +/* #undef HAVE_BDEV_WHOLE */ + +/* bio_alloc() takes 4 arguments */ +/* #undef HAVE_BIO_ALLOC_4ARG */ + +/* bio->bi_bdev->bd_disk exists */ +/* #undef HAVE_BIO_BDEV_DISK */ + +/* bio_*_io_acct() available */ +/* #undef HAVE_BIO_IO_ACCT */ + +/* bio_max_segs() is implemented */ +/* #undef HAVE_BIO_MAX_SEGS */ + +/* bio_set_dev() GPL-only */ +/* #undef HAVE_BIO_SET_DEV_GPL_ONLY */ + +/* bio_set_dev() is a macro */ +/* #undef HAVE_BIO_SET_DEV_MACRO */ + +/* bio_set_op_attrs is available */ +/* #undef HAVE_BIO_SET_OP_ATTRS */ + +/* blkdev_get_by_path() exists and takes 4 args */ +/* #undef HAVE_BLKDEV_GET_BY_PATH_4ARG */ + +/* blkdev_get_by_path() handles ERESTARTSYS */ +/* #undef HAVE_BLKDEV_GET_ERESTARTSYS */ + +/* __blkdev_issue_discard(flags) is available */ +/* #undef HAVE_BLKDEV_ISSUE_DISCARD_ASYNC_FLAGS */ + +/* __blkdev_issue_discard() is available */ +/* #undef HAVE_BLKDEV_ISSUE_DISCARD_ASYNC_NOFLAGS */ + +/* blkdev_issue_discard(flags) is available */ +/* #undef HAVE_BLKDEV_ISSUE_DISCARD_FLAGS */ + +/* blkdev_issue_discard() is available */ +/* #undef HAVE_BLKDEV_ISSUE_DISCARD_NOFLAGS */ + +/* blkdev_issue_secure_erase() is available */ +/* #undef HAVE_BLKDEV_ISSUE_SECURE_ERASE */ + +/* blkdev_put() exists */ +/* #undef HAVE_BLKDEV_PUT */ + +/* blkdev_put() accepts void* as arg 2 */ +/* #undef HAVE_BLKDEV_PUT_HOLDER */ + +/* struct queue_limits has a features field */ +/* #undef HAVE_BLKDEV_QUEUE_LIMITS_FEATURES */ + +/* blkdev_reread_part() exists */ +/* #undef HAVE_BLKDEV_REREAD_PART */ + +/* blkg_tryget() is available */ +/* #undef HAVE_BLKG_TRYGET */ + +/* blkg_tryget() GPL-only */ +/* #undef HAVE_BLKG_TRYGET_GPL_ONLY */ + +/* blk_alloc_disk() exists */ +/* #undef HAVE_BLK_ALLOC_DISK */ + +/* blk_alloc_disk() exists and takes 2 args */ +/* #undef HAVE_BLK_ALLOC_DISK_2ARG */ + +/* blk_alloc_queue() expects request function */ +/* #undef HAVE_BLK_ALLOC_QUEUE_REQUEST_FN */ + +/* blk_alloc_queue_rh() expects request function */ +/* #undef HAVE_BLK_ALLOC_QUEUE_REQUEST_FN_RH */ + +/* blk_cleanup_disk() exists */ +/* #undef HAVE_BLK_CLEANUP_DISK */ + +/* blk_mode_t is defined */ +/* #undef HAVE_BLK_MODE_T */ + +/* block multiqueue hardware context is cached in struct request */ +/* #undef HAVE_BLK_MQ_RQ_HCTX */ + +/* blk queue backing_dev_info is dynamic */ +/* #undef HAVE_BLK_QUEUE_BDI_DYNAMIC */ + +/* blk_queue_discard() is available */ +/* #undef HAVE_BLK_QUEUE_DISCARD */ + +/* backing_dev_info is available through queue gendisk */ +/* #undef HAVE_BLK_QUEUE_DISK_BDI */ + +/* blk_queue_secure_erase() is available */ +/* #undef HAVE_BLK_QUEUE_SECURE_ERASE */ + +/* blk_queue_update_readahead() exists */ +/* #undef HAVE_BLK_QUEUE_UPDATE_READAHEAD */ + +/* BLK_STS_RESV_CONFLICT is defined */ +/* #undef HAVE_BLK_STS_RESV_CONFLICT */ + +/* Define if release() in block_device_operations takes 1 arg */ +/* #undef HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_1ARG */ + +/* Define if revalidate_disk() in block_device_operations */ +/* #undef HAVE_BLOCK_DEVICE_OPERATIONS_REVALIDATE_DISK */ + +/* Define to 1 if you have the Mac OS X function + CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */ +/* #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES */ + +/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in + the CoreFoundation framework. */ +/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */ + +/* check_disk_change() exists */ +/* #undef HAVE_CHECK_DISK_CHANGE */ + +/* copy_splice_read exists */ +/* #undef HAVE_COPY_SPLICE_READ */ + +/* cpu_has_feature() is GPL-only */ +/* #undef HAVE_CPU_HAS_FEATURE_GPL_ONLY */ + +/* Define if the GNU dcgettext() function is already present or preinstalled. + */ +/* #undef HAVE_DCGETTEXT */ + +/* DECLARE_EVENT_CLASS() is available */ +/* #undef HAVE_DECLARE_EVENT_CLASS */ + +/* 3-arg dequeue_signal() takes a type argument */ +/* #undef HAVE_DEQUEUE_SIGNAL_3ARG_TYPE */ + +/* dequeue_signal() takes 4 arguments */ +/* #undef HAVE_DEQUEUE_SIGNAL_4ARG */ + +/* lookup_bdev() wants dev_t arg */ +/* #undef HAVE_DEVT_LOOKUP_BDEV */ + +/* disk_check_media_change() exists */ +/* #undef HAVE_DISK_CHECK_MEDIA_CHANGE */ + +/* disk_*_io_acct() available */ +/* #undef HAVE_DISK_IO_ACCT */ + +/* disk_update_readahead() exists */ +/* #undef HAVE_DISK_UPDATE_READAHEAD */ + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#define HAVE_DLFCN_H 1 + +/* dops->d_revalidate() takes 4 args */ +/* #undef HAVE_D_REVALIDATE_4ARGS */ + +/* Define if d_set_d_op() is available */ +/* #undef HAVE_D_SET_D_OP */ + +/* Define to 1 if you have the 'execvpe' function. */ +#define HAVE_EXECVPE 1 + +/* fault_in_iov_iter_readable() is available */ +/* #undef HAVE_FAULT_IN_IOV_ITER_READABLE */ + +/* file->f_version exists */ +/* #undef HAVE_FILE_F_VERSION */ + +/* flush_dcache_page() is GPL-only */ +/* #undef HAVE_FLUSH_DCACHE_PAGE_GPL_ONLY */ + +/* Define if compiler supports -Wformat-overflow */ +/* #undef HAVE_FORMAT_OVERFLOW */ + +/* fsync_bdev() is declared in include/blkdev.h */ +/* #undef HAVE_FSYNC_BDEV */ + +/* yes */ +/* #undef HAVE_GENERIC_FADVISE */ + +/* generic_fillattr requires struct mnt_idmap* */ +/* #undef HAVE_GENERIC_FILLATTR_IDMAP */ + +/* generic_fillattr requires struct mnt_idmap* and u32 request_mask */ +/* #undef HAVE_GENERIC_FILLATTR_IDMAP_REQMASK */ + +/* generic_fillattr requires struct user_namespace* */ +/* #undef HAVE_GENERIC_FILLATTR_USERNS */ + +/* generic_*_io_acct() 4 arg available */ +/* #undef HAVE_GENERIC_IO_ACCT_4ARG */ + +/* GENHD_FL_EXT_DEVT flag is available */ +/* #undef HAVE_GENHD_FL_EXT_DEVT */ + +/* GENHD_FL_NO_PART flag is available */ +/* #undef HAVE_GENHD_FL_NO_PART */ + +/* Define if the GNU gettext() function is already present or preinstalled. */ +/* #undef HAVE_GETTEXT */ + +/* Define to 1 if you have the 'gettid' function. */ +/* #undef HAVE_GETTID */ + +/* iops->get_acl() exists */ +/* #undef HAVE_GET_ACL */ + +/* iops->get_acl() takes rcu */ +/* #undef HAVE_GET_ACL_RCU */ + +/* has iops->get_inode_acl() */ +/* #undef HAVE_GET_INODE_ACL */ + +/* iattr->ia_vfsuid and iattr->ia_vfsgid exist */ +/* #undef HAVE_IATTR_VFSID */ + +/* Define if you have the iconv() function and it works. */ +#define HAVE_ICONV 1 + +/* iops->getattr() takes struct mnt_idmap* */ +/* #undef HAVE_IDMAP_IOPS_GETATTR */ + +/* iops->setattr() takes struct mnt_idmap* */ +/* #undef HAVE_IDMAP_IOPS_SETATTR */ + +/* APIs for idmapped mount are present */ +/* #undef HAVE_IDMAP_MNT_API */ + +/* mnt_idmap does not have user_namespace */ +/* #undef HAVE_IDMAP_NO_USERNS */ + +/* Define if compiler supports -Wimplicit-fallthrough */ +/* #undef HAVE_IMPLICIT_FALLTHROUGH */ + +/* Define if compiler supports -Winfinite-recursion */ +/* #undef HAVE_INFINITE_RECURSION */ + +/* inode_get_atime() exists in linux/fs.h */ +/* #undef HAVE_INODE_GET_ATIME */ + +/* inode_get_ctime() exists in linux/fs.h */ +/* #undef HAVE_INODE_GET_CTIME */ + +/* inode_get_mtime() exists in linux/fs.h */ +/* #undef HAVE_INODE_GET_MTIME */ + +/* inode_owner_or_capable() exists */ +/* #undef HAVE_INODE_OWNER_OR_CAPABLE */ + +/* inode_owner_or_capable() takes mnt_idmap */ +/* #undef HAVE_INODE_OWNER_OR_CAPABLE_IDMAP */ + +/* inode_owner_or_capable() takes user_ns */ +/* #undef HAVE_INODE_OWNER_OR_CAPABLE_USERNS */ + +/* inode_set_atime_to_ts() exists in linux/fs.h */ +/* #undef HAVE_INODE_SET_ATIME_TO_TS */ + +/* inode_set_ctime_to_ts() exists in linux/fs.h */ +/* #undef HAVE_INODE_SET_CTIME_TO_TS */ + +/* inode_set_mtime_to_ts() exists in linux/fs.h */ +/* #undef HAVE_INODE_SET_MTIME_TO_TS */ + +/* timestamp_truncate() exists */ +/* #undef HAVE_INODE_TIMESTAMP_TRUNCATE */ + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* iops->create() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_CREATE_IDMAP */ + +/* iops->create() takes struct user_namespace* */ +/* #undef HAVE_IOPS_CREATE_USERNS */ + +/* iops->mkdir() returns struct dentry* */ +/* #undef HAVE_IOPS_MKDIR_DENTRY */ + +/* iops->mkdir() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_MKDIR_IDMAP */ + +/* iops->mkdir() takes struct user_namespace* */ +/* #undef HAVE_IOPS_MKDIR_USERNS */ + +/* iops->mknod() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_MKNOD_IDMAP */ + +/* iops->mknod() takes struct user_namespace* */ +/* #undef HAVE_IOPS_MKNOD_USERNS */ + +/* iops->permission() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_PERMISSION_IDMAP */ + +/* iops->permission() takes struct user_namespace* */ +/* #undef HAVE_IOPS_PERMISSION_USERNS */ + +/* iops->rename() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_RENAME_IDMAP */ + +/* iops->rename() takes struct user_namespace* */ +/* #undef HAVE_IOPS_RENAME_USERNS */ + +/* iops->symlink() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_SYMLINK_IDMAP */ + +/* iops->symlink() takes struct user_namespace* */ +/* #undef HAVE_IOPS_SYMLINK_USERNS */ + +/* iov_iter_get_pages2() is available */ +/* #undef HAVE_IOV_ITER_GET_PAGES2 */ + +/* iov_iter_type() is available */ +/* #undef HAVE_IOV_ITER_TYPE */ + +/* Define to 1 if you have the 'issetugid' function. */ +#define HAVE_ISSETUGID 1 + +/* iter_iov() is available */ +/* #undef HAVE_ITER_IOV */ + +/* iter_is_ubuf() is available */ +/* #undef HAVE_ITER_IS_UBUF */ + +/* kernel has kernel_fpu_* functions */ +/* #undef HAVE_KERNEL_FPU */ + +/* kernel has asm/fpu/api.h */ +/* #undef HAVE_KERNEL_FPU_API_HEADER */ + +/* kernel fpu internal */ +/* #undef HAVE_KERNEL_FPU_INTERNAL */ + +/* kernel has asm/fpu/internal.h */ +/* #undef HAVE_KERNEL_FPU_INTERNAL_HEADER */ + +/* Define if compiler supports -Winfinite-recursion */ +/* #undef HAVE_KERNEL_INFINITE_RECURSION */ + +/* kernel defines intptr_t */ +/* #undef HAVE_KERNEL_INTPTR_T */ + +/* kernel has kernel_neon_* functions */ +/* #undef HAVE_KERNEL_NEON */ + +/* kernel does stack verification */ +/* #undef HAVE_KERNEL_OBJTOOL */ + +/* kernel has linux/objtool.h */ +/* #undef HAVE_KERNEL_OBJTOOL_HEADER */ + +/* strlcpy() exists */ +/* #undef HAVE_KERNEL_STRLCPY */ + +/* kernel has kmap_local_page */ +/* #undef HAVE_KMAP_LOCAL_PAGE */ + +/* Define if you have [aio] */ +/* #undef HAVE_LIBAIO */ + +/* Define if you have [blkid] */ +/* #undef HAVE_LIBBLKID */ + +/* Define if you have [crypto] */ +#define HAVE_LIBCRYPTO 1 + +/* Define if you have [tirpc] */ +/* #undef HAVE_LIBTIRPC */ + +/* Define if you have [udev] */ +/* #undef HAVE_LIBUDEV */ + +/* Define if you have [unwind] */ +/* #undef HAVE_LIBUNWIND */ + +/* libunwind has unw_get_elf_filename */ +/* #undef HAVE_LIBUNWIND_ELF */ + +/* Define if you have [uuid] */ +/* #undef HAVE_LIBUUID */ + +/* building against unsupported kernel version */ +/* #undef HAVE_LINUX_EXPERIMENTAL */ + +/* makedev() is declared in sys/mkdev.h */ +/* #undef HAVE_MAKEDEV_IN_MKDEV */ + +/* makedev() is declared in sys/sysmacros.h */ +/* #undef HAVE_MAKEDEV_IN_SYSMACROS */ + +/* Noting that make_request_fn() returns blk_qc_t */ +/* #undef HAVE_MAKE_REQUEST_FN_RET_QC */ + +/* Define to 1 if you have the 'mlockall' function. */ +#define HAVE_MLOCKALL 1 + +/* PG_error flag is available */ +/* #undef HAVE_MM_PAGE_FLAG_ERROR */ + +/* page_mapping() is available */ +/* #undef HAVE_MM_PAGE_MAPPING */ + +/* page_size() is available */ +/* #undef HAVE_MM_PAGE_SIZE */ + +/* Define if host toolchain supports MOVBE */ +#define HAVE_MOVBE 1 + +/* folio_wait_bit() exists */ +/* #undef HAVE_PAGEMAP_FOLIO_WAIT_BIT */ + +/* readahead_page() exists */ +/* #undef HAVE_PAGEMAP_READAHEAD_PAGE */ + +/* part_to_dev() exists */ +/* #undef HAVE_PART_TO_DEV */ + +/* iops->getattr() takes a path */ +/* #undef HAVE_PATH_IOPS_GETATTR */ + +/* Define if host toolchain supports PCLMULQDQ */ +#define HAVE_PCLMULQDQ 1 + +/* pin_user_pages_unlocked() is available */ +/* #undef HAVE_PIN_USER_PAGES_UNLOCKED */ + +/* proc_handler ctl_table arg is const */ +/* #undef HAVE_PROC_HANDLER_CTL_TABLE_CONST */ + +/* proc_ops structure exists */ +/* #undef HAVE_PROC_OPS_STRUCT */ + +/* If available, contains the Python version number currently in use. */ +/* #undef HAVE_PYTHON */ + +/* qat is enabled and existed */ +/* #undef HAVE_QAT */ + +/* struct reclaim_state has reclaimed */ +/* #undef HAVE_RECLAIM_STATE_RECLAIMED */ + +/* register_shrinker is vararg */ +/* #undef HAVE_REGISTER_SHRINKER_VARARG */ + +/* register_sysctl_sz exists */ +/* #undef HAVE_REGISTER_SYSCTL_SZ */ + +/* register_sysctl_table exists */ +/* #undef HAVE_REGISTER_SYSCTL_TABLE */ + +/* iops->rename() wants flags */ +/* #undef HAVE_RENAME_WANTS_FLAGS */ + +/* revalidate_disk() is available */ +/* #undef HAVE_REVALIDATE_DISK */ + +/* revalidate_disk_size() is available */ +/* #undef HAVE_REVALIDATE_DISK_SIZE */ + +/* Define to 1 if you have the <security/pam_modules.h> header file. */ +#define HAVE_SECURITY_PAM_MODULES_H 1 + +/* setattr_prepare() accepts mnt_idmap */ +/* #undef HAVE_SETATTR_PREPARE_IDMAP */ + +/* setattr_prepare() is available, doesn't accept user_namespace */ +/* #undef HAVE_SETATTR_PREPARE_NO_USERNS */ + +/* setattr_prepare() accepts user_namespace */ +/* #undef HAVE_SETATTR_PREPARE_USERNS */ + +/* iops->set_acl() takes 4 args, arg1 is struct mnt_idmap * */ +/* #undef HAVE_SET_ACL_IDMAP_DENTRY */ + +/* iops->set_acl() takes 4 args */ +/* #undef HAVE_SET_ACL_USERNS */ + +/* iops->set_acl() takes 4 args, arg2 is struct dentry * */ +/* #undef HAVE_SET_ACL_USERNS_DENTRY_ARG2 */ + +/* Define if set_default_d_op() is available */ +/* #undef HAVE_SET_DEFAULT_D_OP */ + +/* shrinker_register exists */ +/* #undef HAVE_SHRINKER_REGISTER */ + +/* kernel_siginfo_t exists */ +/* #undef HAVE_SIGINFO */ + +/* sops->free_inode() exists */ +/* #undef HAVE_SOPS_FREE_INODE */ + +#if defined(__amd64__) || defined(__i386__) +/* Define if host toolchain supports SSE */ +#define HAVE_SSE 1 + +/* Define if host toolchain supports SSE2 */ +#define HAVE_SSE2 1 + +/* Define if host toolchain supports SSE3 */ +#define HAVE_SSE3 1 + +/* Define if host toolchain supports SSE4.1 */ +#define HAVE_SSE4_1 1 + +/* Define if host toolchain supports SSE4.2 */ +#define HAVE_SSE4_2 1 + +/* Define if host toolchain supports SSSE3 */ +#define HAVE_SSSE3 1 +#endif + +/* STACK_FRAME_NON_STANDARD is defined */ +/* #undef HAVE_STACK_FRAME_NON_STANDARD */ + +/* STACK_FRAME_NON_STANDARD asm macro is defined */ +/* #undef HAVE_STACK_FRAME_NON_STANDARD_ASM */ + +/* standalone <linux/stdarg.h> exists */ +/* #undef HAVE_STANDALONE_LINUX_STDARG */ + +/* statx() is available */ +/* #undef HAVE_STATX */ + +/* STATX_MNT_ID is available */ +/* #undef HAVE_STATX_MNT_ID */ + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdio.h> header file. */ +#define HAVE_STDIO_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the 'strlcat' function. */ +#define HAVE_STRLCAT 1 + +/* Define to 1 if you have the 'strlcpy' function. */ +#define HAVE_STRLCPY 1 + +/* submit_bio is member of struct block_device_operations */ +/* #undef HAVE_SUBMIT_BIO_IN_BLOCK_DEVICE_OPERATIONS */ + +/* have super_block s_shrink */ +/* #undef HAVE_SUPER_BLOCK_S_SHRINK */ + +/* have super_block s_shrink pointer */ +/* #undef HAVE_SUPER_BLOCK_S_SHRINK_PTR */ + +/* have super_block s_wb_err */ +/* #undef HAVE_SUPER_BLOCK_S_WB_ERR */ + +/* sync_blockdev() is declared in include/blkdev.h */ +/* #undef HAVE_SYNC_BLOCKDEV */ + +/* struct kobj_type has default_groups */ +/* #undef HAVE_SYSFS_DEFAULT_GROUPS */ + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* timer_delete_sync is available */ +/* #undef HAVE_TIMER_DELETE_SYNC */ + +/* i_op->tmpfile() uses old dentry signature */ +/* #undef HAVE_TMPFILE_DENTRY */ + +/* i_op->tmpfile() has mnt_idmap */ +/* #undef HAVE_TMPFILE_IDMAP */ + +/* i_op->tmpfile() has userns */ +/* #undef HAVE_TMPFILE_USERNS */ + +/* totalhigh_pages() exists */ +/* #undef HAVE_TOTALHIGH_PAGES */ + +/* kernel has totalram_pages() */ +/* #undef HAVE_TOTALRAM_PAGES_FUNC */ + +/* Define to 1 if you have the 'udev_device_get_is_initialized' function. */ +/* #undef HAVE_UDEV_DEVICE_GET_IS_INITIALIZED */ + +/* kernel has __kernel_fpu_* functions */ +/* #undef HAVE_UNDERSCORE_KERNEL_FPU */ + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* iops->getattr() takes struct user_namespace* */ +/* #undef HAVE_USERNS_IOPS_GETATTR */ + +/* iops->setattr() takes struct user_namespace* */ +/* #undef HAVE_USERNS_IOPS_SETATTR */ + +#ifdef __amd64__ +/* Define if host toolchain supports VAES */ +#define HAVE_VAES 1 +#endif + +/* fops->clone_file_range() is available */ +/* #undef HAVE_VFS_CLONE_FILE_RANGE */ + +/* fops->dedupe_file_range() is available */ +/* #undef HAVE_VFS_DEDUPE_FILE_RANGE */ + +/* filemap_dirty_folio exists */ +/* #undef HAVE_VFS_FILEMAP_DIRTY_FOLIO */ + +/* generic_copy_file_range() is available */ +/* #undef HAVE_VFS_GENERIC_COPY_FILE_RANGE */ + +/* migratepage exists */ +/* #undef HAVE_VFS_MIGRATEPAGE */ + +/* migrate_folio exists */ +/* #undef HAVE_VFS_MIGRATE_FOLIO */ + +/* address_space_operations->readpages exists */ +/* #undef HAVE_VFS_READPAGES */ + +/* read_folio exists */ +/* #undef HAVE_VFS_READ_FOLIO */ + +/* fops->remap_file_range() is available */ +/* #undef HAVE_VFS_REMAP_FILE_RANGE */ + +/* __set_page_dirty_nobuffers exists */ +/* #undef HAVE_VFS_SET_PAGE_DIRTY_NOBUFFERS */ + +/* splice_copy_file_range() is available */ +/* #undef HAVE_VFS_SPLICE_COPY_FILE_RANGE */ + +/* address_space_operations->writepage exists */ +/* #undef HAVE_VFS_WRITEPAGE */ + +/* __vmalloc page flags exists */ +/* #undef HAVE_VMALLOC_PAGE_KERNEL */ + +#ifdef __amd64__ +/* Define if host toolchain supports VPCLMULQDQ */ +#define HAVE_VPCLMULQDQ 1 +#endif + +/* int (*writepage_t)() takes struct folio* */ +/* #undef HAVE_WRITEPAGE_T_FOLIO */ + +/* xattr_handler->get() wants dentry and inode and flags */ +/* #undef HAVE_XATTR_GET_DENTRY_INODE_FLAGS */ + +/* xattr_handler->set() wants both dentry and inode */ +/* #undef HAVE_XATTR_SET_DENTRY_INODE */ + +/* xattr_handler->set() takes mnt_idmap */ +/* #undef HAVE_XATTR_SET_IDMAP */ + +/* xattr_handler->set() takes user_namespace */ +/* #undef HAVE_XATTR_SET_USERNS */ + +/* Define if host toolchain supports XSAVE */ +#define HAVE_XSAVE 1 + +/* Define if host toolchain supports XSAVEOPT */ +#define HAVE_XSAVEOPT 1 + +/* Define if host toolchain supports XSAVES */ +#define HAVE_XSAVES 1 + +/* ZERO_PAGE() is GPL-only */ +/* #undef HAVE_ZERO_PAGE_GPL_ONLY */ + +/* Define if you have [z] */ +#define HAVE_ZLIB 1 + +/* libunwind is llvm libunwind */ +/* #undef IS_LIBUNWIND_LLVM */ + +/* kernel exports FPU functions */ +/* #undef KERNEL_EXPORTS_X86_FPU */ + +/* TBD: fetch(3) support */ +#if 0 +/* whether the chosen libfetch is to be loaded at run-time */ +#define LIBFETCH_DYNAMIC 1 + +/* libfetch is fetch(3) */ +#define LIBFETCH_IS_FETCH 1 + +/* libfetch is libcurl */ +#define LIBFETCH_IS_LIBCURL 0 + +/* soname of chosen libfetch */ +#define LIBFETCH_SONAME "libfetch.so.6" +#endif + +/* Define to the sub-directory where libtool stores uninstalled libraries. */ +#define LT_OBJDIR ".libs/" + +/* make_request_fn() return type */ +/* #undef MAKE_REQUEST_FN_RET */ + +/* using complete_and_exit() instead */ +/* #undef SPL_KTHREAD_COMPLETE_AND_EXIT */ + +/* Defined for legacy compatibility. */ +#define SPL_META_ALIAS ZFS_META_ALIAS + +/* Defined for legacy compatibility. */ +#define SPL_META_RELEASE ZFS_META_RELEASE + +/* Defined for legacy compatibility. */ +#define SPL_META_VERSION ZFS_META_VERSION + +/* pde_data() is PDE_DATA() */ +/* #undef SPL_PDE_DATA */ + +/* Define to 1 if all of the C89 standard headers exist (not just the ones + required in a freestanding environment). This macro is provided for + backward compatibility; new code need not use it. */ +#define SYSTEM_FREEBSD 1 + +/* True if ZFS is to be compiled for a Linux system */ +/* #undef SYSTEM_LINUX */ + +/* Version number of package */ +/* #undef ZFS_DEBUG */ + +/* /dev/zfs minor */ +/* #undef ZFS_DEVICE_MINOR */ + +/* Define the project alias string. */ +#define ZFS_META_ALIAS "zfs-2.4.99-95-FreeBSD_g5605a6d79" + +/* Define the project author. */ +#define ZFS_META_AUTHOR "OpenZFS" + +/* Define the project release date. */ +/* #undef ZFS_META_DATA */ + +/* Define the maximum compatible kernel version. */ +#define ZFS_META_KVER_MAX "6.17" + +/* Define the minimum compatible kernel version. */ +#define ZFS_META_KVER_MIN "4.18" + +/* Define the project license. */ +#define ZFS_META_LICENSE "CDDL" + +/* Define the libtool library 'age' version information. */ +/* #undef ZFS_META_LT_AGE */ + +/* Define the libtool library 'current' version information. */ +/* #undef ZFS_META_LT_CURRENT */ + +/* Define the libtool library 'revision' version information. */ +/* #undef ZFS_META_LT_REVISION */ + +/* Define the project name. */ +#define ZFS_META_NAME "zfs" + +/* Define the project release. */ +#define ZFS_META_RELEASE "95-FreeBSD_g5605a6d79" + +/* Define the project version. */ +#define ZFS_META_VERSION "2.4.99" + +/* count is located in percpu_ref.data */ +/* #undef ZFS_PERCPU_REF_COUNT_IN_DATA */ diff --git a/sys/modules/zfs/zfs_gitrev.h b/sys/modules/zfs/zfs_gitrev.h new file mode 100644 index 000000000000..8a1802f5480b --- /dev/null +++ b/sys/modules/zfs/zfs_gitrev.h @@ -0,0 +1 @@ +#define ZFS_META_GITREV "zfs-2.4.99-95-g5605a6d79" diff --git a/sys/modules/zlib/Makefile b/sys/modules/zlib/Makefile new file mode 100644 index 000000000000..4790ad1fd70d --- /dev/null +++ b/sys/modules/zlib/Makefile @@ -0,0 +1,28 @@ +.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 <bsd.kmod.mk> + +CWARNFLAGS+=${NO_WDEPRECATED_NON_PROTOTYPE} # https://github.com/madler/zlib/issues/633 |