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 #
  27 
  28 #
  29 #       This Makefile defines all file modules and build rules for the
  30 # directory uts/intel and its children. These are the source files which
  31 # are specific to x86 processor architectures.
  32 #
  33 
  34 #
  35 #       Core (unix) objects
  36 #
  37 CORE_OBJS +=            \
  38         arch_kdi.o      \
  39         comm_page_util.o \
  40         copy.o          \
  41         copy_subr.o     \
  42         cpc_subr.o      \
  43         ddi_arch.o      \
  44         ddi_i86.o       \
  45         ddi_i86_asm.o   \
  46         desctbls.o      \
  47         desctbls_asm.o  \
  48         exception.o     \
  49         float.o         \
  50         fmsmb.o         \
  51         fpu.o           \
  52         i86_subr.o      \
  53         lock_prim.o     \
  54         ovbcopy.o       \
  55         polled_io.o     \
  56         retpoline.o     \
  57         sseblk.o        \
  58         sundep.o        \
  59         swtch.o         \
  60         sysi86.o
  61 
  62 DBOOT_OBJS +=           \
  63         retpoline.o
  64 
  65 #
  66 #       Generic-unix Module
  67 #
  68 GENUNIX_OBJS +=         \
  69         archdep.o       \
  70         getcontext.o    \
  71         install_utrap.o \
  72         lwp_private.o   \
  73         prom_enter.o    \
  74         prom_exit.o     \
  75         prom_panic.o    \
  76         sendsig.o       \
  77         syscall.o
  78 
  79 
  80 #
  81 #       PROM Routines
  82 #
  83 GENUNIX_OBJS +=         \
  84         prom_env.o      \
  85         prom_emul.o     \
  86         prom_getchar.o  \
  87         prom_init.o     \
  88         prom_node.o     \
  89         prom_printf.o   \
  90         prom_prop.o     \
  91         prom_putchar.o  \
  92         prom_reboot.o   \
  93         prom_version.o
  94 
  95 #
  96 #       file system modules
  97 #
  98 CORE_OBJS +=            \
  99         prmachdep.o
 100 
 101 #
 102 #       ZFS file system module
 103 #
 104 ZFS_OBJS +=             \
 105         spa_boot.o
 106 
 107 #
 108 #       Decompression code
 109 #
 110 CORE_OBJS += decompress.o
 111 
 112 #
 113 #       Microcode utilities
 114 #
 115 CORE_OBJS += ucode_utils.o
 116 
 117 #
 118 #       Driver modules
 119 #
 120 ARCMSR_OBJS += arcmsr.o
 121 ATA_OBJS += $(GHD_OBJS) ata_blacklist.o ata_common.o ata_disk.o \
 122         ata_dma.o atapi.o atapi_fsm.o ata_debug.o \
 123         sil3xxx.o
 124 BSCBUS_OBJS += bscbus.o
 125 BSCV_OBJS += bscv.o
 126 CMDK_OBJS += cmdk.o
 127 CMLB_OBJS += cmlb.o
 128 CPUNEX_OBJS += cpunex.o
 129 DADK_OBJS += dadk.o
 130 DCOPY_OBJS += dcopy.o
 131 DNET_OBJS += dnet.o dnet_mii.o
 132 FD_OBJS += fd.o
 133 GDA_OBJS += gda.o
 134 GHD_OBJS += ghd.o ghd_debug.o ghd_dma.o ghd_queue.o ghd_scsa.o \
 135         ghd_scsi.o ghd_timer.o ghd_waitq.o ghd_gcmd.o
 136 I915_OBJS += i915_dma.o i915_drv.o i915_irq.o i915_mem.o \
 137         i915_gem.o i915_gem_debug.o i915_gem_tiling.o
 138 NSKERN_OBJS += nsc_asm.o
 139 PCICFG_OBJS += pcicfg.o
 140 PCI_PCINEXUS_OBJS += pci_pci.o
 141 PCIEB_OBJS += pcieb_x86.o
 142 PIT_BEEP_OBJS += pit_beep.o
 143 POWER_OBJS += power.o
 144 PCI_AUTOCONFIG_OBJS += pci_autoconfig.o pci_boot.o pcie_nvidia.o \
 145                         pci_memlist.o pci_resource.o
 146 RADEON_OBJS += r300_cmdbuf.o radeon_cp.o radeon_drv.o \
 147                         radeon_state.o radeon_irq.o radeon_mem.o
 148 SD_OBJS += sd.o sd_xbuf.o
 149 
 150 STRATEGY_OBJS += strategy.o
 151 UCODE_OBJS += ucode_drv.o
 152 VGATEXT_OBJS += vgatext.o
 153 
 154 #
 155 #       Kernel linker
 156 #
 157 KRTLD_OBJS +=           \
 158         bootfsops.o     \
 159         bootrd.o        \
 160         bootrd_cpio.o   \
 161         ufsops.o        \
 162         hsfs.o          \
 163         doreloc.o       \
 164         kobj_boot.o     \
 165         kobj_convrelstr.o \
 166         kobj_crt.o      \
 167         kobj_isa.o      \
 168         kobj_reloc.o
 169 
 170 #
 171 #       misc. modules
 172 #
 173 ACPICA_OBJS     += \
 174                    dmbuffer.o dmcstyle.o dmdeferred.o dmnames.o dmopcode.o \
 175                    dmresrc.o dmresrcl.o dmresrcl2.o dmresrcs.o dmutils.o \
 176                    dmwalk.o \
 177                    \
 178                    dsargs.o dscontrol.o dsdebug.o dsfield.o dsinit.o \
 179                    dsmethod.o dsmthdat.o dsobject.o dsopcode.o dsutils.o \
 180                    dswexec.o dswload.o dswload2.o dswscope.o dswstate.o \
 181                    dspkginit.o \
 182                    \
 183                    evevent.o evglock.o evgpe.o evgpeblk.o evgpeinit.o \
 184                    evgpeutil.o evhandler.o evmisc.o evregion.o evrgnini.o \
 185                    evsci.o evxface.o evxfevnt.o evxfgpe.o evxfregn.o \
 186                    \
 187                    exconcat.o exconfig.o exconvrt.o excreate.o exdebug.o \
 188                    exdump.o exfield.o exfldio.o exmisc.o exmutex.o exnames.o \
 189                    exoparg1.o exoparg2.o exoparg3.o exoparg6.o exprep.o \
 190                    exregion.o exresnte.o exresolv.o exresop.o exstore.o \
 191                    exstoren.o exstorob.o exsystem.o extrace.o exutils.o \
 192                    \
 193                    hwacpi.o hwesleep.o hwgpe.o hwpci.o hwregs.o hwsleep.o \
 194                    hwtimer.o hwvalid.o hwxface.o hwxfsleep.o \
 195                    \
 196                    psargs.o psloop.o psobject.o psopcode.o psopinfo.o \
 197                    psparse.o psscope.o pstree.o psutils.o pswalk.o psxface.o \
 198                    \
 199                    nsaccess.o nsalloc.o nsarguments.o nsconvert.o nsdump.o \
 200                    nsdumpdv.o nseval.o nsinit.o nsload.o nsnames.o nsobject.o \
 201                    nsparse.o nspredef.o nsprepkg.o nsrepair.o nsrepair2.o \
 202                    nssearch.o nsutils.o nswalk.o nsxfeval.o nsxfname.o \
 203                    nsxfobj.o \
 204                    \
 205                    rsaddr.o rscalc.o rscreate.o rsdump.o rsdumpinfo.o \
 206                    rsinfo.o rsio.o rsirq.o rslist.o rsmemory.o rsmisc.o \
 207                    rsserial.o rsutils.o rsxface.o \
 208                    \
 209                    tbdata.o tbfadt.o tbfind.o tbinstal.o tbprint.o tbutils.o \
 210                    tbxface.o tbxfload.o tbxfroot.o \
 211                    \
 212                    utaddress.o utalloc.o utascii.o utbuffer.o utcache.o \
 213                    utclib.o utcopy.o utdebug.o utdecode.o utdelete.o \
 214                    uterror.o uteval.o utexcep.o utglobal.o uthex.o utids.o \
 215                    utinit.o utlock.o utmath.o utmisc.o utmutex.o utnonansi.o \
 216                    utobject.o utosi.o utownerid.o utpredef.o utresrc.o \
 217                    utstate.o utstring.o uttrack.o utuuid.o utxface.o \
 218                    utxferror.o utxfinit.o utxfmutex.o utresdecode.o \
 219                    utstrsuppt.o utstrtoul64.o \
 220                    \
 221                    acpi_enum.o acpica_ec.o acpica.o ahids.o master_ops.o \
 222                    osl_ml.o osl.o
 223 
 224 
 225 FBT_OBJS += fbt.o
 226 SDT_OBJS += sdt.o
 227 
 228 #
 229 #       AMD8111 NIC driver module
 230 #
 231 AMD8111S_OBJS += amd8111s_main.o amd8111s_hw.o
 232 
 233 #
 234 #       Pentium 4 Performance Counter BackEnd module
 235 #
 236 P4_PCBE_OBJS = p4_pcbe.o
 237 
 238 #
 239 #       AMD Opteron/Athlon64 Performance Counter BackEnd module
 240 #
 241 OPTERON_PCBE_OBJS = opteron_pcbe.o
 242 
 243 #
 244 #       Intel Core Architecture Performance Counter BackEnd module
 245 #
 246 CORE_PCBE_OBJS = core_pcbe.o
 247 
 248 #
 249 #       AMR module
 250 #
 251 AMR_OBJS = amr.o
 252 
 253 #
 254 #       IPMI module
 255 IPMI_OBJS +=    ipmi_main.o ipmi.o ipmi_kcs.o
 256 
 257 #
 258 #       IOMMULIB module
 259 #
 260 IOMMULIB_OBJS = iommulib.o
 261 
 262 #
 263 #       Brand modules
 264 #
 265 SN1_BRAND_OBJS  =       sn1_brand.o sn1_brand_asm.o
 266 S10_BRAND_OBJS  =       s10_brand.o s10_brand_asm.o
 267 
 268 #
 269 #       special files
 270 #
 271 MODSTUB_OBJ +=          \
 272         modstubs.o
 273 
 274 BOOTDEV_OBJS +=         \
 275         bootdev.o
 276 
 277 INC_PATH        += -I$(UTSBASE)/intel
 278 
 279 
 280 CPR_INTEL_OBJS +=       cpr_intel.o
 281 
 282 #
 283 # AMD family 0xf memory controller module
 284 #
 285 include $(SRC)/common/mc/mc-amd/Makefile.mcamd
 286 MCAMD_OBJS      += \
 287         $(MCAMD_CMN_OBJS) \
 288         mcamd_drv.o \
 289         mcamd_dimmcfg.o \
 290         mcamd_subr.o \
 291         mcamd_pcicfg.o
 292 
 293 #
 294 # Intel Nehalem memory controller module
 295 #
 296 INTEL_NHM_OBJS += \
 297         nhm_init.o \
 298         mem_addr.o \
 299         intel_nhmdrv.o \
 300         nhm_pci_cfg.o \
 301         dimm_topo.o \
 302         intel_nhm.o
 303 
 304 #
 305 # Intel 5000/5100/5400/7300 chipset memory controller hub (MCH) module
 306 #
 307 INTEL_NB5000_OBJS += \
 308         intel_nb5000.o \
 309         intel_nbdrv.o \
 310         dimm_addr.o \
 311         nb_pci_cfg.o \
 312         nb5000_init.o
 313 
 314 #
 315 # VMware VMXNET3 virtual network device
 316 #
 317 VMXNET3S_OBJS = vmxnet3_main.o \
 318                 vmxnet3_rx.o \
 319                 vmxnet3_tx.o \
 320                 vmxnet3_utils.o
 321 
 322 #
 323 # VMware PVSCSI SCSI Controller
 324 #
 325 PVSCSI_OBJS =   pvscsi.o
 326 
 327 #
 328 # Intel Temperature Module
 329 #
 330 CORETEMP_OBJS = coretemp.o
 331 
 332 #
 333 # AMD Family 17 northbridge driver
 334 #
 335 AMDF17NBDF_OBJS = amdf17nbdf.o
 336 
 337 #
 338 # Intel Platform Controller Hub Temperature Module
 339 #
 340 PCHTEMP_OBJS = pchtemp.o