1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 24# Copyright 2019 Joyent, Inc. 25# Copyright 2018 Nexenta Systems, Inc. 26# Copyright 2019 Peter Tribble. 27# Copyright 2023 Oxide Computer Company 28# 29 30# 31# This Makefile defines all file modules and build rules for the 32# directory uts/intel and its children. These are the source files which 33# are specific to x86 processor architectures. 34# 35 36# 37# Core (unix) objects 38# 39CORE_OBJS += \ 40 arch_kdi.o \ 41 comm_page_util.o \ 42 copy.o \ 43 copy_subr.o \ 44 cpc_subr.o \ 45 ddi_arch.o \ 46 ddi_i86.o \ 47 ddi_i86_asm.o \ 48 desctbls.o \ 49 desctbls_asm.o \ 50 exception.o \ 51 float.o \ 52 fmsmb.o \ 53 fpu.o \ 54 i86_subr.o \ 55 lock_prim.o \ 56 ovbcopy.o \ 57 polled_io.o \ 58 retpoline.o \ 59 sseblk.o \ 60 sundep.o \ 61 swtch.o \ 62 sysi86.o 63 64DBOOT_OBJS += \ 65 retpoline.o 66 67# 68# Generic-unix Module 69# 70GENUNIX_OBJS += \ 71 archdep.o \ 72 getcontext.o \ 73 install_utrap.o \ 74 lwp_private.o \ 75 prom_enter.o \ 76 prom_exit.o \ 77 sendsig.o \ 78 syscall.o 79 80 81# 82# PROM Routines 83# 84GENUNIX_OBJS += \ 85 prom_env.o \ 86 prom_emul.o \ 87 prom_getchar.o \ 88 prom_init.o \ 89 prom_node.o \ 90 prom_printf.o \ 91 prom_prop.o \ 92 prom_putchar.o \ 93 prom_version.o 94 95# 96# file system modules 97# 98CORE_OBJS += \ 99 prmachdep.o 100 101# 102# shared hypervisor functionality 103# 104CORE_OBJS += \ 105 hma.o \ 106 hma_asm.o \ 107 hma_fpu.o \ 108 smt.o \ 109 110# 111# ZFS file system module 112# 113ZFS_OBJS += \ 114 spa_boot.o 115 116# 117# Decompression code 118# 119CORE_OBJS += decompress.o 120 121# 122# Microcode 123# 124CORE_OBJS += microcode.o 125 126# 127# Driver modules 128# 129ARCMSR_OBJS += arcmsr.o 130ATA_OBJS += $(GHD_OBJS) ata_blacklist.o ata_common.o ata_disk.o \ 131 ata_dma.o atapi.o atapi_fsm.o ata_debug.o \ 132 sil3xxx.o 133CMDK_OBJS += cmdk.o 134CMLB_OBJS += cmlb.o 135CPUNEX_OBJS += cpunex.o 136DADK_OBJS += dadk.o 137DCOPY_OBJS += dcopy.o 138DNET_OBJS += dnet.o dnet_mii.o 139FD_OBJS += fd.o 140GDA_OBJS += gda.o 141GHD_OBJS += ghd.o ghd_debug.o ghd_dma.o ghd_queue.o ghd_scsa.o \ 142 ghd_scsi.o ghd_timer.o ghd_waitq.o ghd_gcmd.o 143I915_OBJS += i915_dma.o i915_drv.o i915_irq.o i915_mem.o \ 144 i915_gem.o i915_gem_debug.o i915_gem_tiling.o 145NSKERN_OBJS += nsc_asm.o 146PCICFG_OBJS += pcicfg.o 147PCI_PCINEXUS_OBJS += pci_pci.o 148PCIEB_OBJS += pcieb_x86.o 149PIT_BEEP_OBJS += pit_beep.o 150POWER_OBJS += power.o 151PCI_AUTOCONFIG_OBJS += pci_autoconfig.o pci_boot.o pcie_nvidia.o \ 152 pci_memlist.o 153RADEON_OBJS += r300_cmdbuf.o radeon_cp.o radeon_drv.o \ 154 radeon_state.o radeon_irq.o radeon_mem.o 155SD_OBJS += sd.o sd_xbuf.o 156 157STRATEGY_OBJS += strategy.o 158UCODE_OBJS += ucode_drv.o 159VGATEXT_OBJS += vgatext.o 160 161# 162# Kernel linker 163# 164KRTLD_OBJS += \ 165 bootfsops.o \ 166 bootrd.o \ 167 bootrd_cpio.o \ 168 ufsops.o \ 169 hsfs.o \ 170 doreloc.o \ 171 kobj_boot.o \ 172 kobj_convrelstr.o \ 173 kobj_crt.o \ 174 kobj_isa.o \ 175 kobj_reloc.o 176 177# 178# misc. modules 179# 180ACPICA_OBJS += \ 181 dmbuffer.o dmcstyle.o dmdeferred.o dmnames.o dmopcode.o \ 182 dmresrc.o dmresrcl.o dmresrcl2.o dmresrcs.o dmutils.o \ 183 dmwalk.o \ 184 \ 185 dsargs.o dscontrol.o dsdebug.o dsfield.o dsinit.o \ 186 dsmethod.o dsmthdat.o dsobject.o dsopcode.o dsutils.o \ 187 dswexec.o dswload.o dswload2.o dswscope.o dswstate.o \ 188 dspkginit.o \ 189 \ 190 evevent.o evglock.o evgpe.o evgpeblk.o evgpeinit.o \ 191 evgpeutil.o evhandler.o evmisc.o evregion.o evrgnini.o \ 192 evsci.o evxface.o evxfevnt.o evxfgpe.o evxfregn.o \ 193 \ 194 exconcat.o exconfig.o exconvrt.o excreate.o exdebug.o \ 195 exdump.o exfield.o exfldio.o exmisc.o exmutex.o exnames.o \ 196 exoparg1.o exoparg2.o exoparg3.o exoparg6.o exprep.o \ 197 exregion.o exresnte.o exresolv.o exresop.o exstore.o \ 198 exstoren.o exstorob.o exsystem.o extrace.o exutils.o \ 199 \ 200 hwacpi.o hwesleep.o hwgpe.o hwpci.o hwregs.o hwsleep.o \ 201 hwtimer.o hwvalid.o hwxface.o hwxfsleep.o \ 202 \ 203 psargs.o psloop.o psobject.o psopcode.o psopinfo.o \ 204 psparse.o psscope.o pstree.o psutils.o pswalk.o psxface.o \ 205 \ 206 nsaccess.o nsalloc.o nsarguments.o nsconvert.o nsdump.o \ 207 nsdumpdv.o nseval.o nsinit.o nsload.o nsnames.o nsobject.o \ 208 nsparse.o nspredef.o nsprepkg.o nsrepair.o nsrepair2.o \ 209 nssearch.o nsutils.o nswalk.o nsxfeval.o nsxfname.o \ 210 nsxfobj.o \ 211 \ 212 rsaddr.o rscalc.o rscreate.o rsdump.o rsdumpinfo.o \ 213 rsinfo.o rsio.o rsirq.o rslist.o rsmemory.o rsmisc.o \ 214 rsserial.o rsutils.o rsxface.o \ 215 \ 216 tbdata.o tbfadt.o tbfind.o tbinstal.o tbprint.o tbutils.o \ 217 tbxface.o tbxfload.o tbxfroot.o \ 218 \ 219 utaddress.o utalloc.o utascii.o utbuffer.o utcache.o \ 220 utclib.o utcopy.o utdebug.o utdecode.o utdelete.o \ 221 uterror.o uteval.o utexcep.o utglobal.o uthex.o utids.o \ 222 utinit.o utlock.o utmath.o utmisc.o utmutex.o utnonansi.o \ 223 utobject.o utosi.o utownerid.o utpredef.o utresrc.o \ 224 utstate.o utstring.o uttrack.o utuuid.o utxface.o \ 225 utxferror.o utxfinit.o utxfmutex.o utresdecode.o \ 226 utstrsuppt.o utstrtoul64.o \ 227 \ 228 acpi_enum.o acpica_ec.o acpica.o ahids.o isapnp_devs.o \ 229 osl_ml.o osl.o 230 231 232FBT_OBJS += fbt.o 233SDT_OBJS += sdt.o 234 235# 236# AMD8111 NIC driver module 237# 238AMD8111S_OBJS += amd8111s_main.o amd8111s_hw.o 239 240# 241# Pentium 4 Performance Counter BackEnd module 242# 243P4_PCBE_OBJS = p4_pcbe.o 244 245# 246# AMD Opteron/Athlon64 Performance Counter BackEnd module 247# 248OPTERON_PCBE_OBJS = opteron_pcbe.o 249 250# 251# Intel Core Architecture Performance Counter BackEnd module 252# 253CORE_PCBE_OBJS = core_pcbe.o 254 255# 256# AMR module 257# 258AMR_OBJS = amr.o 259 260# 261# IPMI module 262IPMI_OBJS += ipmi_main.o ipmi.o ipmi_kcs.o 263 264# 265# IOMMULIB module 266# 267IOMMULIB_OBJS = iommulib.o 268 269# 270# Brand modules 271# 272SN1_BRAND_OBJS = sn1_brand.o sn1_brand_asm.o 273S10_BRAND_OBJS = s10_brand.o s10_brand_asm.o 274 275BOOTDEV_OBJS += \ 276 bootdev.o 277 278INC_PATH += -I$(UTSBASE)/intel 279 280 281CPR_INTEL_OBJS += cpr_intel.o 282 283# 284# AMD family 0xf memory controller module 285# 286include $(SRC)/common/mc/mc-amd/Makefile.mcamd 287MCAMD_OBJS += \ 288 $(MCAMD_CMN_OBJS) \ 289 mcamd_drv.o \ 290 mcamd_dimmcfg.o \ 291 mcamd_subr.o \ 292 mcamd_pcicfg.o 293 294# 295# Intel Nehalem memory controller module 296# 297INTEL_NHM_OBJS += \ 298 nhm_init.o \ 299 mem_addr.o \ 300 intel_nhmdrv.o \ 301 nhm_pci_cfg.o \ 302 dimm_topo.o \ 303 intel_nhm.o 304 305# 306# Intel 5000/5100/5400/7300 chipset memory controller hub (MCH) module 307# 308INTEL_NB5000_OBJS += \ 309 intel_nb5000.o \ 310 intel_nbdrv.o \ 311 dimm_addr.o \ 312 nb_pci_cfg.o \ 313 nb5000_init.o 314 315# 316# VMware VMXNET3 virtual network device 317# 318VMXNET3S_OBJS = vmxnet3_main.o \ 319 vmxnet3_rx.o \ 320 vmxnet3_tx.o \ 321 vmxnet3_utils.o 322 323# 324# Intel Temperature Module 325# 326CORETEMP_OBJS = coretemp.o 327 328# 329# Intel Platform Controller Hub Temperature Module 330# 331PCHTEMP_OBJS = pchtemp.o 332 333# 334# AMD Family 10h-16h temperature driver 335# 336AMDNBTEMP_OBJS = amdnbtemp.o 337 338# 339# AMD Zen Nexus Driver 340# 341AMDZEN_OBJS = amdzen.o zen_fabric_utils.o 342AMDZEN_STUB_OBJS = amdzen_stub.o 343SMNTEMP_OBJS = smntemp.o 344USMN_OBJS = usmn.o 345ZEN_UDF_OBJS = zen_udf.o 346ZEN_UMC_OBJS = zen_umc.o zen_umc_decode.o zen_umc_dump.o 347 348# 349# Intel Integrated Memory Controller 350# (Sandy Bridge - Cascade Lake) 351# 352IMC_OBJS = imc.o imc_decode.o imc_dump.o 353IMCSTUB_OBJS = imcstub.o 354 355# 356# viona (VirtIO-Net Accelerated) 357# 358VIONA_OBJS = \ 359 viona_main.o \ 360 viona_ring.o \ 361 viona_rx.o \ 362 viona_tx.o \ 363 viona_hook.o 364 365# 366# bhyve PCI-passthru 367# 368PPT_OBJS = ppt.o 369 370# 371# bhyve VT-d 372# 373VMM_VTD_OBJS = vtd.o 374 375# 376# bhyve drv test interface 377# 378VMM_DRV_TEST_OBJS = vmm_drv_test.o 379