xref: /titanic_52/usr/src/uts/i86pc/Makefile.files (revision 507c32411f3f101e90ca2120f042b5ee698ba1d5)
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#
237aec1d6eScindi# 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			\
407aec1d6eScindi	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			\
7075bcd456Sjg	pci_bios.o		\
71c88420b3Sdmick	pci_cfgspace.o		\
72c88420b3Sdmick	pci_mech1.o		\
73c88420b3Sdmick	pci_mech2.o		\
74c88420b3Sdmick	pci_neptune.o		\
75c88420b3Sdmick	pci_orion.o		\
767c478bd9Sstevel@tonic-gate	pmem.o			\
777c478bd9Sstevel@tonic-gate	ppage.o			\
787c478bd9Sstevel@tonic-gate	startup.o		\
797c478bd9Sstevel@tonic-gate	timestamp.o		\
807c478bd9Sstevel@tonic-gate	trap.o			\
817c478bd9Sstevel@tonic-gate	vm_machdep.o		\
827c478bd9Sstevel@tonic-gate	x_call.o
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gate#
8584ab085aSmws#	Add the SMBIOS subsystem object files directly to the list of objects
8684ab085aSmws#	built into unix itself; this is all common code except for smb_dev.c.
8784ab085aSmws#
8884ab085aSmwsCORE_OBJS += $(SMBIOS_OBJS)
8984ab085aSmws
9084ab085aSmws#
917c478bd9Sstevel@tonic-gate#	locore.o is special. It must be the first file relocated so that it
927c478bd9Sstevel@tonic-gate#	it is relocated just where its name implies.
937c478bd9Sstevel@tonic-gate#
947c478bd9Sstevel@tonic-gateSPECIAL_OBJS_32 +=		\
957c478bd9Sstevel@tonic-gate	locore.o		\
967c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
977c478bd9Sstevel@tonic-gate	interrupt.o		\
987c478bd9Sstevel@tonic-gate	syscall_asm.o
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gateSPECIAL_OBJS_64 +=		\
1017c478bd9Sstevel@tonic-gate	locore.o		\
1027c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
1037c478bd9Sstevel@tonic-gate	interrupt.o		\
1047c478bd9Sstevel@tonic-gate	syscall_asm_amd64.o
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gateSPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
1077c478bd9Sstevel@tonic-gate
1087c478bd9Sstevel@tonic-gate#
1097c478bd9Sstevel@tonic-gate#			driver modules
1107c478bd9Sstevel@tonic-gate#
1117c478bd9Sstevel@tonic-gateROOTNEX_OBJS += rootnex.o
1127c478bd9Sstevel@tonic-gateISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
1137a364d25SschwartzPCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
1147c478bd9Sstevel@tonic-gate
1157c478bd9Sstevel@tonic-gateTCIC_OBJS +=	tcic.o
1167c478bd9Sstevel@tonic-gate
1177c478bd9Sstevel@tonic-gateFD_OBJS		+= fd.o
1187c478bd9Sstevel@tonic-gate
1197c478bd9Sstevel@tonic-gatePCN_OBJS	+= mii.o
1207c478bd9Sstevel@tonic-gate
1217c478bd9Sstevel@tonic-gateDNET_OBJS	+= dnet.o mii.o
1227c478bd9Sstevel@tonic-gateLOGI_OBJS	+= logi.o
1237c478bd9Sstevel@tonic-gateMSCSI_OBJS	+= mscsi.o
1247c478bd9Sstevel@tonic-gateMSMOUSE_OBJS	+= msm.o
1257c478bd9Sstevel@tonic-gatePCPLUSMP_OBJS	+= apic.o psm_common.o apic_introp.o
1267c478bd9Sstevel@tonic-gateRTLS_OBJS	+= rtls.o
1277c478bd9Sstevel@tonic-gateAGPGART_OBJS	+=	agpgart.o \
1287c478bd9Sstevel@tonic-gate			agp_kstat.o
1297c478bd9Sstevel@tonic-gateAGPTARGET_OBJS	+=	agptarget.o
1307c478bd9Sstevel@tonic-gateAMD64GART_OBJS	+=	amd64_gart.o
1317c478bd9Sstevel@tonic-gate
132*507c3241SmlfGHD_OBJS +=	ghd.o ghd_debug.o ghd_dma.o ghd_queue.o ghd_scsa.o \
133*507c3241Smlf		ghd_scsi.o ghd_timer.o ghd_waitq.o ghd_gcmd.o
134*507c3241Smlf
135*507c3241SmlfATA_OBJS +=	$(GHD_OBJS) ata_blacklist.o ata_common.o ata_disk.o \
136*507c3241Smlf		ata_dma.o atapi.o atapi_fsm.o ata_debug.o \
137*507c3241Smlf		sil3xxx.o
138*507c3241Smlf
1397aec1d6eScindiinclude $(SRC)/common/mc/mc-amd/Makefile.mcamd
1407aec1d6eScindiMCAMD_OBJS	+= \
1417aec1d6eScindi	$(MCAMD_CMN_OBJS) \
1427aec1d6eScindi	mcamd_drv.o \
1437aec1d6eScindi	mcamd_subr.o
1447aec1d6eScindi
1457c478bd9Sstevel@tonic-gate#
14670025d76Sjohnny#	PCI-Express driver modules
14770025d76Sjohnny#
1487a364d25SschwartzPCI_E_NEXUS_OBJS += npe.o npe_misc.o
1497a364d25SschwartzPCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o pcie_error.o
15070025d76SjohnnyPCI_E_PCINEXUS_OBJS += pcie_pci.o pcie_error.o
15170025d76SjohnnyPCIEHPCNEXUS_OBJS += pciehpc_x86.o pciehpc_acpi.o pciehpc_ck804.o
15270025d76Sjohnny
15370025d76Sjohnny#
1547c478bd9Sstevel@tonic-gate#	platform specific modules
1557c478bd9Sstevel@tonic-gate#
1567c478bd9Sstevel@tonic-gateUPPC_OBJS += uppc.o psm_common.o
1577c478bd9Sstevel@tonic-gatePCI_AUTOCONFIG_OBJS += \
1587c478bd9Sstevel@tonic-gate	pci_autoconfig.o \
1597c478bd9Sstevel@tonic-gate	pci_boot.o	\
16070025d76Sjohnny	pcie_ck804_boot.o	\
1617c478bd9Sstevel@tonic-gate	pci_memlist.o	\
1627c478bd9Sstevel@tonic-gate	pci_resource.o
1637c478bd9Sstevel@tonic-gate
1647c478bd9Sstevel@tonic-gateACPICA_OBJS	+= dbcmds.o dbdisply.o \
1657c478bd9Sstevel@tonic-gate		   dbexec.o dbfileio.o dbhistry.o dbinput.o dbstats.o \
1667c478bd9Sstevel@tonic-gate		   dbutils.o dbxface.o evevent.o evgpe.o evgpeblk.o \
1677c478bd9Sstevel@tonic-gate		   evmisc.o evregion.o evrgnini.o evsci.o evxface.o \
1687c478bd9Sstevel@tonic-gate		   evxfevnt.o evxfregn.o hwacpi.o hwgpe.o hwregs.o \
1697c478bd9Sstevel@tonic-gate		   hwsleep.o hwtimer.o dsfield.o dsinit.o dsmethod.o \
1707c478bd9Sstevel@tonic-gate		   dsmthdat.o dsobject.o dsopcode.o dsutils.o dswexec.o \
1717c478bd9Sstevel@tonic-gate		   dswload.o dswscope.o dswstate.o exconfig.o exconvrt.o \
1727c478bd9Sstevel@tonic-gate		   excreate.o exdump.o exfield.o exfldio.o exmisc.o \
1737c478bd9Sstevel@tonic-gate		   exmutex.o exnames.o exoparg1.o exoparg2.o exoparg3.o \
1747c478bd9Sstevel@tonic-gate		   exoparg6.o exprep.o exregion.o exresnte.o exresolv.o \
1757c478bd9Sstevel@tonic-gate		   exresop.o exstore.o exstoren.o exstorob.o exsystem.o \
1767c478bd9Sstevel@tonic-gate		   exutils.o psargs.o psopcode.o psparse.o psscope.o \
1777c478bd9Sstevel@tonic-gate		   pstree.o psutils.o pswalk.o psxface.o nsaccess.o \
1787c478bd9Sstevel@tonic-gate		   nsalloc.o nsdump.o nsdumpdv.o nseval.o nsinit.o \
1797c478bd9Sstevel@tonic-gate		   nsload.o nsnames.o nsobject.o nsparse.o nssearch.o \
1807c478bd9Sstevel@tonic-gate		   nsutils.o nswalk.o nsxfeval.o nsxfname.o nsxfobj.o \
1817c478bd9Sstevel@tonic-gate		   rsaddr.o rscalc.o rscreate.o rsdump.o \
182186507a7Smyers		   rsinfo.o rsio.o rsirq.o rslist.o rsmemory.o rsmisc.o \
1837c478bd9Sstevel@tonic-gate		   rsutils.o rsxface.o tbconvrt.o tbget.o tbgetall.o \
1847c478bd9Sstevel@tonic-gate		   tbinstal.o tbrsdt.o tbutils.o tbxface.o tbxfroot.o \
1857c478bd9Sstevel@tonic-gate		   utalloc.o utclib.o utcopy.o utdebug.o utdelete.o \
1867c478bd9Sstevel@tonic-gate		   uteval.o utglobal.o utinit.o utmath.o utmisc.o \
18730082d0cSmyers		   utobject.o utresrc.o utxface.o acpica.o acpi_enum.o \
18830082d0cSmyers		   master_ops.o osl.o osl_ml.o acpica_ec.o utcache.o \
18930082d0cSmyers		   utmutex.o utstate.o dmbuffer.o dmnames.o dmobject.o \
19030082d0cSmyers		   dmopcode.o dmresrc.o dmresrcl.o dmresrcs.o dmutils.o \
19130082d0cSmyers		   dmwalk.o psloop.o
1927c478bd9Sstevel@tonic-gate
193fd358c0dSmyersPOWER_OBJS	+= power.o
194fd358c0dSmyers
195fc1821feSrugratGFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
196fc1821feSrugrat			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
197fc1821feSrugrat
1987c478bd9Sstevel@tonic-gate#
1997c478bd9Sstevel@tonic-gate#	Build up defines and paths.
2007c478bd9Sstevel@tonic-gate#
2017c478bd9Sstevel@tonic-gateALL_DEFS	+= -Di86pc
2027c478bd9Sstevel@tonic-gateINC_PATH	+= -I$(UTSBASE)/i86pc
2037c478bd9Sstevel@tonic-gate
2047c478bd9Sstevel@tonic-gate#
2057c478bd9Sstevel@tonic-gate# Since assym.h is a derived file, the dependency must be explicit for
2067c478bd9Sstevel@tonic-gate# all files including this file. (This is only actually required in the
2077c478bd9Sstevel@tonic-gate# instance when the .nse_depinfo file does not exist.) It may seem that
2087c478bd9Sstevel@tonic-gate# the lint targets should also have a similar dependency, but they don't
2097c478bd9Sstevel@tonic-gate# since only C headers are included when #defined(__lint) is true.
2107c478bd9Sstevel@tonic-gate#
2117c478bd9Sstevel@tonic-gateASSYM_DEPS      += 		\
2127c478bd9Sstevel@tonic-gate	copy.o			\
2137c478bd9Sstevel@tonic-gate	desctbls_asm.o		\
2147c478bd9Sstevel@tonic-gate	ddi_i86_asm.o		\
2157c478bd9Sstevel@tonic-gate	exception.o		\
2167c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
2177c478bd9Sstevel@tonic-gate	float.o			\
2187c478bd9Sstevel@tonic-gate	i86_subr.o		\
2197c478bd9Sstevel@tonic-gate	interrupt.o		\
2207c478bd9Sstevel@tonic-gate	lock_prim.o		\
2217c478bd9Sstevel@tonic-gate	locore.o		\
2227c478bd9Sstevel@tonic-gate	mpcore.o		\
2237c478bd9Sstevel@tonic-gate	sseblk.o		\
2247c478bd9Sstevel@tonic-gate	swtch.o			\
2257c478bd9Sstevel@tonic-gate	syscall_asm.o		\
2267c478bd9Sstevel@tonic-gate	syscall_asm_amd64.o
227