xref: /titanic_51/usr/src/uts/i86pc/Makefile.files (revision 7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fe)
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#
23*7aec1d6eScindi# Copyright 2006 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#
28fb9f9b97Skupfer#	This Makefile defines file modules in the directory uts/i86pc
29fb9f9b97Skupfer#	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			\
40*7aec1d6eScindi	cmi.o			\
417c478bd9Sstevel@tonic-gate	confunix.o		\
427c478bd9Sstevel@tonic-gate	cpuid.o			\
437c478bd9Sstevel@tonic-gate	dis_tables.o		\
447c478bd9Sstevel@tonic-gate	ddi_impl.o		\
457c478bd9Sstevel@tonic-gate	dtrace_subr.o		\
467c478bd9Sstevel@tonic-gate	dvma.o			\
477c478bd9Sstevel@tonic-gate	graphics.o		\
487c478bd9Sstevel@tonic-gate	hat_i86.o		\
497c478bd9Sstevel@tonic-gate	hat_kdi.o		\
507c478bd9Sstevel@tonic-gate	hment.o			\
517c478bd9Sstevel@tonic-gate	hrtimers.o		\
527c478bd9Sstevel@tonic-gate	htable.o		\
537c478bd9Sstevel@tonic-gate	instr_size.o		\
547c478bd9Sstevel@tonic-gate	intr.o			\
557c478bd9Sstevel@tonic-gate	lgrpplat.o		\
567c478bd9Sstevel@tonic-gate	mach_i86mmu.o		\
577c478bd9Sstevel@tonic-gate	mach_kdi.o		\
587c478bd9Sstevel@tonic-gate	mach_sysconfig.o	\
597c478bd9Sstevel@tonic-gate	machdep.o		\
607c478bd9Sstevel@tonic-gate	mem_config_stubs.o	\
617c478bd9Sstevel@tonic-gate	memnode.o		\
627c478bd9Sstevel@tonic-gate	mlsetup.o		\
637c478bd9Sstevel@tonic-gate	mp_call.o		\
647c478bd9Sstevel@tonic-gate	mp_implfuncs.o		\
657c478bd9Sstevel@tonic-gate	mp_machdep.o		\
667c478bd9Sstevel@tonic-gate	mp_startup.o		\
677c478bd9Sstevel@tonic-gate	memscrub.o		\
687c478bd9Sstevel@tonic-gate	mpcore.o		\
697c478bd9Sstevel@tonic-gate	notes.o			\
70c88420b3Sdmick	pci_cfgspace.o		\
71c88420b3Sdmick	pci_mech1.o		\
72c88420b3Sdmick	pci_mech2.o		\
73c88420b3Sdmick	pci_neptune.o		\
74c88420b3Sdmick	pci_orion.o		\
757c478bd9Sstevel@tonic-gate	pmem.o			\
767c478bd9Sstevel@tonic-gate	ppage.o			\
777c478bd9Sstevel@tonic-gate	startup.o		\
787c478bd9Sstevel@tonic-gate	timestamp.o		\
797c478bd9Sstevel@tonic-gate	trap.o			\
807c478bd9Sstevel@tonic-gate	vm_machdep.o		\
817c478bd9Sstevel@tonic-gate	x_call.o
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gate#
8484ab085aSmws#	Add the SMBIOS subsystem object files directly to the list of objects
8584ab085aSmws#	built into unix itself; this is all common code except for smb_dev.c.
8684ab085aSmws#
8784ab085aSmwsCORE_OBJS += $(SMBIOS_OBJS)
8884ab085aSmws
8984ab085aSmws#
907c478bd9Sstevel@tonic-gate#	locore.o is special. It must be the first file relocated so that it
917c478bd9Sstevel@tonic-gate#	it is relocated just where its name implies.
927c478bd9Sstevel@tonic-gate#
937c478bd9Sstevel@tonic-gateSPECIAL_OBJS_32 +=		\
947c478bd9Sstevel@tonic-gate	locore.o		\
957c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
967c478bd9Sstevel@tonic-gate	interrupt.o		\
977c478bd9Sstevel@tonic-gate	syscall_asm.o
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gateSPECIAL_OBJS_64 +=		\
1007c478bd9Sstevel@tonic-gate	locore.o		\
1017c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
1027c478bd9Sstevel@tonic-gate	interrupt.o		\
1037c478bd9Sstevel@tonic-gate	syscall_asm_amd64.o
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gateSPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
1067c478bd9Sstevel@tonic-gate
1077c478bd9Sstevel@tonic-gate#
1087c478bd9Sstevel@tonic-gate#			driver modules
1097c478bd9Sstevel@tonic-gate#
1107c478bd9Sstevel@tonic-gateROOTNEX_OBJS += rootnex.o
1117c478bd9Sstevel@tonic-gateISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
1127a364d25SschwartzPCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
1137c478bd9Sstevel@tonic-gate
1147c478bd9Sstevel@tonic-gateTCIC_OBJS +=	tcic.o
1157c478bd9Sstevel@tonic-gate
1167c478bd9Sstevel@tonic-gateFD_OBJS		+= fd.o
1177c478bd9Sstevel@tonic-gate
1187c478bd9Sstevel@tonic-gatePCN_OBJS	+= mii.o
1197c478bd9Sstevel@tonic-gate
1207c478bd9Sstevel@tonic-gateDNET_OBJS	+= dnet.o mii.o
1217c478bd9Sstevel@tonic-gateLOGI_OBJS	+= logi.o
1227c478bd9Sstevel@tonic-gateMSCSI_OBJS	+= mscsi.o
1237c478bd9Sstevel@tonic-gateMSMOUSE_OBJS	+= msm.o
1247c478bd9Sstevel@tonic-gatePCPLUSMP_OBJS	+= apic.o psm_common.o apic_introp.o
1257c478bd9Sstevel@tonic-gateRTLS_OBJS	+= rtls.o
1267c478bd9Sstevel@tonic-gateAGPGART_OBJS	+=	agpgart.o \
1277c478bd9Sstevel@tonic-gate			agp_kstat.o
1287c478bd9Sstevel@tonic-gateAGPTARGET_OBJS	+=	agptarget.o
1297c478bd9Sstevel@tonic-gateAMD64GART_OBJS	+=	amd64_gart.o
1307c478bd9Sstevel@tonic-gate
131*7aec1d6eScindiinclude $(SRC)/common/mc/mc-amd/Makefile.mcamd
132*7aec1d6eScindiMCAMD_OBJS	+= \
133*7aec1d6eScindi	$(MCAMD_CMN_OBJS) \
134*7aec1d6eScindi	mcamd_drv.o \
135*7aec1d6eScindi	mcamd_subr.o
136*7aec1d6eScindi
1377c478bd9Sstevel@tonic-gate#
13870025d76Sjohnny#	PCI-Express driver modules
13970025d76Sjohnny#
1407a364d25SschwartzPCI_E_NEXUS_OBJS += npe.o npe_misc.o
1417a364d25SschwartzPCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o pcie_error.o
14270025d76SjohnnyPCI_E_PCINEXUS_OBJS += pcie_pci.o pcie_error.o
14370025d76SjohnnyPCIEHPCNEXUS_OBJS += pciehpc_x86.o pciehpc_acpi.o pciehpc_ck804.o
14470025d76Sjohnny
14570025d76Sjohnny#
1467c478bd9Sstevel@tonic-gate#	platform specific modules
1477c478bd9Sstevel@tonic-gate#
1487c478bd9Sstevel@tonic-gateUPPC_OBJS += uppc.o psm_common.o
1497c478bd9Sstevel@tonic-gatePCI_AUTOCONFIG_OBJS += \
1507c478bd9Sstevel@tonic-gate	pci_autoconfig.o \
1517c478bd9Sstevel@tonic-gate	pci_boot.o	\
15270025d76Sjohnny	pcie_ck804_boot.o	\
1537c478bd9Sstevel@tonic-gate	pci_memlist.o	\
1547c478bd9Sstevel@tonic-gate	pci_resource.o
1557c478bd9Sstevel@tonic-gate
1567c478bd9Sstevel@tonic-gateACPICA_OBJS	+= dbcmds.o dbdisply.o \
1577c478bd9Sstevel@tonic-gate		   dbexec.o dbfileio.o dbhistry.o dbinput.o dbstats.o \
1587c478bd9Sstevel@tonic-gate		   dbutils.o dbxface.o evevent.o evgpe.o evgpeblk.o \
1597c478bd9Sstevel@tonic-gate		   evmisc.o evregion.o evrgnini.o evsci.o evxface.o \
1607c478bd9Sstevel@tonic-gate		   evxfevnt.o evxfregn.o hwacpi.o hwgpe.o hwregs.o \
1617c478bd9Sstevel@tonic-gate		   hwsleep.o hwtimer.o dsfield.o dsinit.o dsmethod.o \
1627c478bd9Sstevel@tonic-gate		   dsmthdat.o dsobject.o dsopcode.o dsutils.o dswexec.o \
1637c478bd9Sstevel@tonic-gate		   dswload.o dswscope.o dswstate.o exconfig.o exconvrt.o \
1647c478bd9Sstevel@tonic-gate		   excreate.o exdump.o exfield.o exfldio.o exmisc.o \
1657c478bd9Sstevel@tonic-gate		   exmutex.o exnames.o exoparg1.o exoparg2.o exoparg3.o \
1667c478bd9Sstevel@tonic-gate		   exoparg6.o exprep.o exregion.o exresnte.o exresolv.o \
1677c478bd9Sstevel@tonic-gate		   exresop.o exstore.o exstoren.o exstorob.o exsystem.o \
1687c478bd9Sstevel@tonic-gate		   exutils.o psargs.o psopcode.o psparse.o psscope.o \
1697c478bd9Sstevel@tonic-gate		   pstree.o psutils.o pswalk.o psxface.o nsaccess.o \
1707c478bd9Sstevel@tonic-gate		   nsalloc.o nsdump.o nsdumpdv.o nseval.o nsinit.o \
1717c478bd9Sstevel@tonic-gate		   nsload.o nsnames.o nsobject.o nsparse.o nssearch.o \
1727c478bd9Sstevel@tonic-gate		   nsutils.o nswalk.o nsxfeval.o nsxfname.o nsxfobj.o \
1737c478bd9Sstevel@tonic-gate		   rsaddr.o rscalc.o rscreate.o rsdump.o \
174186507a7Smyers		   rsinfo.o rsio.o rsirq.o rslist.o rsmemory.o rsmisc.o \
1757c478bd9Sstevel@tonic-gate		   rsutils.o rsxface.o tbconvrt.o tbget.o tbgetall.o \
1767c478bd9Sstevel@tonic-gate		   tbinstal.o tbrsdt.o tbutils.o tbxface.o tbxfroot.o \
1777c478bd9Sstevel@tonic-gate		   utalloc.o utclib.o utcopy.o utdebug.o utdelete.o \
1787c478bd9Sstevel@tonic-gate		   uteval.o utglobal.o utinit.o utmath.o utmisc.o \
1797c478bd9Sstevel@tonic-gate		   utobject.o utxface.o acpica.o acpi_enum.o master_ops.o \
180450d6964Smyers		   osl.o osl_ml.o acpica_ec.o utcache.o utmutex.o utstate.o \
181450d6964Smyers		   psloop.o
1827c478bd9Sstevel@tonic-gate
183fd358c0dSmyersPOWER_OBJS	+= power.o
184fd358c0dSmyers
185fc1821feSrugratGFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
186fc1821feSrugrat			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
187fc1821feSrugrat
1887c478bd9Sstevel@tonic-gate#
1897c478bd9Sstevel@tonic-gate#	Build up defines and paths.
1907c478bd9Sstevel@tonic-gate#
1917c478bd9Sstevel@tonic-gateALL_DEFS	+= -Di86pc
1927c478bd9Sstevel@tonic-gateINC_PATH	+= -I$(UTSBASE)/i86pc
1937c478bd9Sstevel@tonic-gate
1947c478bd9Sstevel@tonic-gate#
1957c478bd9Sstevel@tonic-gate# Since assym.h is a derived file, the dependency must be explicit for
1967c478bd9Sstevel@tonic-gate# all files including this file. (This is only actually required in the
1977c478bd9Sstevel@tonic-gate# instance when the .nse_depinfo file does not exist.) It may seem that
1987c478bd9Sstevel@tonic-gate# the lint targets should also have a similar dependency, but they don't
1997c478bd9Sstevel@tonic-gate# since only C headers are included when #defined(__lint) is true.
2007c478bd9Sstevel@tonic-gate#
2017c478bd9Sstevel@tonic-gateASSYM_DEPS      += 		\
2027c478bd9Sstevel@tonic-gate	copy.o			\
2037c478bd9Sstevel@tonic-gate	desctbls_asm.o		\
2047c478bd9Sstevel@tonic-gate	ddi_i86_asm.o		\
2057c478bd9Sstevel@tonic-gate	exception.o		\
2067c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
2077c478bd9Sstevel@tonic-gate	float.o			\
2087c478bd9Sstevel@tonic-gate	i86_subr.o		\
2097c478bd9Sstevel@tonic-gate	interrupt.o		\
2107c478bd9Sstevel@tonic-gate	lock_prim.o		\
2117c478bd9Sstevel@tonic-gate	locore.o		\
2127c478bd9Sstevel@tonic-gate	mpcore.o		\
2137c478bd9Sstevel@tonic-gate	sseblk.o		\
2147c478bd9Sstevel@tonic-gate	swtch.o			\
2157c478bd9Sstevel@tonic-gate	syscall_asm.o		\
2167c478bd9Sstevel@tonic-gate	syscall_asm_amd64.o
217