xref: /illumos-gate/usr/src/uts/i86pc/Makefile.files (revision fb9f9b97)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
54ab75253Smrj# Common Development and Distribution License (the "License").
64ab75253Smrj# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
214ab75253Smrj
227c478bd9Sstevel@tonic-gate#
237c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
277c478bd9Sstevel@tonic-gate#
28*fb9f9b97Skupfer#	This Makefile defines file modules in the directory uts/i86pc
29*fb9f9b97Skupfer#	and its children. These are the source files which are i86pc
307c478bd9Sstevel@tonic-gate#	"implementation architecture" dependent.
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate#
347c478bd9Sstevel@tonic-gate#	object lists
357c478bd9Sstevel@tonic-gate#
367c478bd9Sstevel@tonic-gateCORE_OBJS +=			\
377c478bd9Sstevel@tonic-gate	beeper.o		\
387c478bd9Sstevel@tonic-gate	biosdisk.o		\
397c478bd9Sstevel@tonic-gate	cbe.o			\
407c478bd9Sstevel@tonic-gate	confunix.o		\
417c478bd9Sstevel@tonic-gate	cpuid.o			\
427c478bd9Sstevel@tonic-gate	dis_tables.o		\
437c478bd9Sstevel@tonic-gate	ddi_impl.o		\
447c478bd9Sstevel@tonic-gate	dtrace_subr.o		\
457c478bd9Sstevel@tonic-gate	dvma.o			\
467c478bd9Sstevel@tonic-gate	graphics.o		\
477c478bd9Sstevel@tonic-gate	hat_i86.o		\
487c478bd9Sstevel@tonic-gate	hat_kdi.o		\
497c478bd9Sstevel@tonic-gate	hment.o			\
507c478bd9Sstevel@tonic-gate	hrtimers.o		\
517c478bd9Sstevel@tonic-gate	htable.o		\
527c478bd9Sstevel@tonic-gate	instr_size.o		\
537c478bd9Sstevel@tonic-gate	intr.o			\
547c478bd9Sstevel@tonic-gate	lgrpplat.o		\
557c478bd9Sstevel@tonic-gate	mach_i86mmu.o		\
567c478bd9Sstevel@tonic-gate	mach_kdi.o		\
577c478bd9Sstevel@tonic-gate	mach_sysconfig.o	\
587c478bd9Sstevel@tonic-gate	machdep.o		\
597c478bd9Sstevel@tonic-gate	mem_config_stubs.o	\
607c478bd9Sstevel@tonic-gate	memnode.o		\
617c478bd9Sstevel@tonic-gate	mlsetup.o		\
627c478bd9Sstevel@tonic-gate	mp_call.o		\
637c478bd9Sstevel@tonic-gate	mp_implfuncs.o		\
647c478bd9Sstevel@tonic-gate	mp_machdep.o		\
657c478bd9Sstevel@tonic-gate	mp_startup.o		\
667c478bd9Sstevel@tonic-gate	memscrub.o		\
677c478bd9Sstevel@tonic-gate	mpcore.o		\
687c478bd9Sstevel@tonic-gate	notes.o			\
69c88420b3Sdmick	pci_cfgspace.o		\
70c88420b3Sdmick	pci_mech1.o		\
71c88420b3Sdmick	pci_mech2.o		\
72c88420b3Sdmick	pci_neptune.o		\
73c88420b3Sdmick	pci_orion.o		\
747c478bd9Sstevel@tonic-gate	pmem.o			\
757c478bd9Sstevel@tonic-gate	ppage.o			\
767c478bd9Sstevel@tonic-gate	startup.o		\
777c478bd9Sstevel@tonic-gate	timestamp.o		\
787c478bd9Sstevel@tonic-gate	trap.o			\
797c478bd9Sstevel@tonic-gate	vm_machdep.o		\
807c478bd9Sstevel@tonic-gate	x_call.o
817c478bd9Sstevel@tonic-gate
8284ab085aSmws#
8384ab085aSmws#	Add the SMBIOS subsystem object files directly to the list of objects
8484ab085aSmws#	built into unix itself; this is all common code except for smb_dev.c.
8584ab085aSmws#
8684ab085aSmwsCORE_OBJS += $(SMBIOS_OBJS)
8784ab085aSmws
887c478bd9Sstevel@tonic-gate#
897c478bd9Sstevel@tonic-gate#	locore.o is special. It must be the first file relocated so that it
907c478bd9Sstevel@tonic-gate#	it is relocated just where its name implies.
917c478bd9Sstevel@tonic-gate#
927c478bd9Sstevel@tonic-gateSPECIAL_OBJS_32 +=		\
937c478bd9Sstevel@tonic-gate	locore.o		\
947c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
957c478bd9Sstevel@tonic-gate	interrupt.o		\
967c478bd9Sstevel@tonic-gate	syscall_asm.o
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gateSPECIAL_OBJS_64 +=		\
997c478bd9Sstevel@tonic-gate	locore.o		\
1007c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
1017c478bd9Sstevel@tonic-gate	interrupt.o		\
1027c478bd9Sstevel@tonic-gate	syscall_asm_amd64.o
1037c478bd9Sstevel@tonic-gate
1047c478bd9Sstevel@tonic-gateSPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gate#
1077c478bd9Sstevel@tonic-gate#			driver modules
1087c478bd9Sstevel@tonic-gate#
1097c478bd9Sstevel@tonic-gateROOTNEX_OBJS += rootnex.o
1107c478bd9Sstevel@tonic-gateISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
1117a364d25SschwartzPCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
1127c478bd9Sstevel@tonic-gate
1137c478bd9Sstevel@tonic-gateTCIC_OBJS +=	tcic.o
1147c478bd9Sstevel@tonic-gate
1157c478bd9Sstevel@tonic-gateFD_OBJS		+= fd.o
1167c478bd9Sstevel@tonic-gate
1177c478bd9Sstevel@tonic-gatePCN_OBJS	+= mii.o
1187c478bd9Sstevel@tonic-gate
1197c478bd9Sstevel@tonic-gateDNET_OBJS	+= dnet.o mii.o
1207c478bd9Sstevel@tonic-gateLOGI_OBJS	+= logi.o
1217c478bd9Sstevel@tonic-gateMSCSI_OBJS	+= mscsi.o
1227c478bd9Sstevel@tonic-gateMSMOUSE_OBJS	+= msm.o
1237c478bd9Sstevel@tonic-gatePCPLUSMP_OBJS	+= apic.o psm_common.o apic_introp.o
1247c478bd9Sstevel@tonic-gateRTLS_OBJS	+= rtls.o
1257c478bd9Sstevel@tonic-gateAGPGART_OBJS	+=	agpgart.o \
1267c478bd9Sstevel@tonic-gate			agp_kstat.o
1277c478bd9Sstevel@tonic-gateAGPTARGET_OBJS	+=	agptarget.o
1287c478bd9Sstevel@tonic-gateAMD64GART_OBJS	+=	amd64_gart.o
1297c478bd9Sstevel@tonic-gate
13070025d76Sjohnny#
13170025d76Sjohnny#	PCI-Express driver modules
13270025d76Sjohnny#
1337a364d25SschwartzPCI_E_NEXUS_OBJS += npe.o npe_misc.o
1347a364d25SschwartzPCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o pcie_error.o
13570025d76SjohnnyPCI_E_PCINEXUS_OBJS += pcie_pci.o pcie_error.o
13670025d76SjohnnyPCIEHPCNEXUS_OBJS += pciehpc_x86.o pciehpc_acpi.o pciehpc_ck804.o
13770025d76Sjohnny
1387c478bd9Sstevel@tonic-gate#
1397c478bd9Sstevel@tonic-gate#	platform specific modules
1407c478bd9Sstevel@tonic-gate#
1417c478bd9Sstevel@tonic-gateUPPC_OBJS += uppc.o psm_common.o
1427c478bd9Sstevel@tonic-gatePCI_AUTOCONFIG_OBJS += \
1437c478bd9Sstevel@tonic-gate	pci_autoconfig.o \
1447c478bd9Sstevel@tonic-gate	pci_boot.o	\
14570025d76Sjohnny	pcie_ck804_boot.o	\
1467c478bd9Sstevel@tonic-gate	pci_memlist.o	\
1477c478bd9Sstevel@tonic-gate	pci_resource.o
1487c478bd9Sstevel@tonic-gate
1497c478bd9Sstevel@tonic-gateACPICA_OBJS	+= dbcmds.o dbdisply.o \
1507c478bd9Sstevel@tonic-gate		   dbexec.o dbfileio.o dbhistry.o dbinput.o dbstats.o \
1517c478bd9Sstevel@tonic-gate		   dbutils.o dbxface.o evevent.o evgpe.o evgpeblk.o \
1527c478bd9Sstevel@tonic-gate		   evmisc.o evregion.o evrgnini.o evsci.o evxface.o \
1537c478bd9Sstevel@tonic-gate		   evxfevnt.o evxfregn.o hwacpi.o hwgpe.o hwregs.o \
1547c478bd9Sstevel@tonic-gate		   hwsleep.o hwtimer.o dsfield.o dsinit.o dsmethod.o \
1557c478bd9Sstevel@tonic-gate		   dsmthdat.o dsobject.o dsopcode.o dsutils.o dswexec.o \
1567c478bd9Sstevel@tonic-gate		   dswload.o dswscope.o dswstate.o exconfig.o exconvrt.o \
1577c478bd9Sstevel@tonic-gate		   excreate.o exdump.o exfield.o exfldio.o exmisc.o \
1587c478bd9Sstevel@tonic-gate		   exmutex.o exnames.o exoparg1.o exoparg2.o exoparg3.o \
1597c478bd9Sstevel@tonic-gate		   exoparg6.o exprep.o exregion.o exresnte.o exresolv.o \
1607c478bd9Sstevel@tonic-gate		   exresop.o exstore.o exstoren.o exstorob.o exsystem.o \
1617c478bd9Sstevel@tonic-gate		   exutils.o psargs.o psopcode.o psparse.o psscope.o \
1627c478bd9Sstevel@tonic-gate		   pstree.o psutils.o pswalk.o psxface.o nsaccess.o \
1637c478bd9Sstevel@tonic-gate		   nsalloc.o nsdump.o nsdumpdv.o nseval.o nsinit.o \
1647c478bd9Sstevel@tonic-gate		   nsload.o nsnames.o nsobject.o nsparse.o nssearch.o \
1657c478bd9Sstevel@tonic-gate		   nsutils.o nswalk.o nsxfeval.o nsxfname.o nsxfobj.o \
1667c478bd9Sstevel@tonic-gate		   rsaddr.o rscalc.o rscreate.o rsdump.o \
167186507a7Smyers		   rsinfo.o rsio.o rsirq.o rslist.o rsmemory.o rsmisc.o \
1687c478bd9Sstevel@tonic-gate		   rsutils.o rsxface.o tbconvrt.o tbget.o tbgetall.o \
1697c478bd9Sstevel@tonic-gate		   tbinstal.o tbrsdt.o tbutils.o tbxface.o tbxfroot.o \
1707c478bd9Sstevel@tonic-gate		   utalloc.o utclib.o utcopy.o utdebug.o utdelete.o \
1717c478bd9Sstevel@tonic-gate		   uteval.o utglobal.o utinit.o utmath.o utmisc.o \
1727c478bd9Sstevel@tonic-gate		   utobject.o utxface.o acpica.o acpi_enum.o master_ops.o \
173450d6964Smyers		   osl.o osl_ml.o acpica_ec.o utcache.o utmutex.o utstate.o \
174450d6964Smyers		   psloop.o
1757c478bd9Sstevel@tonic-gate
176fd358c0dSmyersPOWER_OBJS	+= power.o
177fd358c0dSmyers
178fc1821feSrugratGFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
179fc1821feSrugrat			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
180fc1821feSrugrat
1817c478bd9Sstevel@tonic-gate#
1827c478bd9Sstevel@tonic-gate#	Build up defines and paths.
1837c478bd9Sstevel@tonic-gate#
1847c478bd9Sstevel@tonic-gateALL_DEFS	+= -Di86pc
1857c478bd9Sstevel@tonic-gateINC_PATH	+= -I$(UTSBASE)/i86pc
1867c478bd9Sstevel@tonic-gate
1877c478bd9Sstevel@tonic-gate#
1887c478bd9Sstevel@tonic-gate# Since assym.h is a derived file, the dependency must be explicit for
1897c478bd9Sstevel@tonic-gate# all files including this file. (This is only actually required in the
1907c478bd9Sstevel@tonic-gate# instance when the .nse_depinfo file does not exist.) It may seem that
1917c478bd9Sstevel@tonic-gate# the lint targets should also have a similar dependency, but they don't
1927c478bd9Sstevel@tonic-gate# since only C headers are included when #defined(__lint) is true.
1937c478bd9Sstevel@tonic-gate#
1947c478bd9Sstevel@tonic-gateASSYM_DEPS      += 		\
1957c478bd9Sstevel@tonic-gate	copy.o			\
1967c478bd9Sstevel@tonic-gate	desctbls_asm.o		\
1977c478bd9Sstevel@tonic-gate	ddi_i86_asm.o		\
1987c478bd9Sstevel@tonic-gate	exception.o		\
1997c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
2007c478bd9Sstevel@tonic-gate	float.o			\
2017c478bd9Sstevel@tonic-gate	i86_subr.o		\
2027c478bd9Sstevel@tonic-gate	interrupt.o		\
2037c478bd9Sstevel@tonic-gate	lock_prim.o		\
2047c478bd9Sstevel@tonic-gate	locore.o		\
2057c478bd9Sstevel@tonic-gate	mpcore.o		\
2067c478bd9Sstevel@tonic-gate	sseblk.o		\
2077c478bd9Sstevel@tonic-gate	swtch.o			\
2087c478bd9Sstevel@tonic-gate	syscall_asm.o		\
2097c478bd9Sstevel@tonic-gate	syscall_asm_amd64.o
210