xref: /titanic_51/usr/src/uts/i86pc/Makefile.files (revision 349b53dd4e695e3d833b5380540385145b2d3ae8)
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#
232d6b5ea7SGuoli Shu# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
26fb9f9b97Skupfer#	This Makefile defines file modules in the directory uts/i86pc
27fb9f9b97Skupfer#	and its children. These are the source files which are i86pc
287c478bd9Sstevel@tonic-gate#	"implementation architecture" dependent.
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gate#	object lists
337c478bd9Sstevel@tonic-gate#
347c478bd9Sstevel@tonic-gateCORE_OBJS +=			\
352df1fe9cSrandyf	acpi_stubs.o		\
367c478bd9Sstevel@tonic-gate	biosdisk.o		\
37ae115bc7Smrj	bios_call.o		\
387c478bd9Sstevel@tonic-gate	cbe.o			\
397aec1d6eScindi	cmi.o			\
4020c794b3Sgavinm	cmi_hw.o		\
4120c794b3Sgavinm	cms.o			\
427c478bd9Sstevel@tonic-gate	confunix.o		\
430e751525SEric Saxe	cpu_idle.o		\
447c478bd9Sstevel@tonic-gate	cpuid.o			\
45e4b86885SCheng Sean Ye	cpuid_subr.o		\
465cff7825Smh27603	cpupm.o			\
470e751525SEric Saxe	cpupm_mach.o		\
480e751525SEric Saxe	cpupm_amd.o		\
490e751525SEric Saxe	cpupm_intel.o		\
500e751525SEric Saxe	cpupm_throttle.o	\
510e751525SEric Saxe	cpu_acpi.o		\
527c478bd9Sstevel@tonic-gate	dis_tables.o		\
537c478bd9Sstevel@tonic-gate	ddi_impl.o		\
547c478bd9Sstevel@tonic-gate	dtrace_subr.o		\
557c478bd9Sstevel@tonic-gate	dvma.o			\
56ae115bc7Smrj	fpu_subr.o		\
57ae115bc7Smrj	fakebop.o		\
5819397407SSherry Moore	fastboot.o		\
5919397407SSherry Moore	fb_swtch.o		\
607c478bd9Sstevel@tonic-gate	graphics.o		\
61ae115bc7Smrj	hardclk.o		\
627c478bd9Sstevel@tonic-gate	hat_i86.o		\
637c478bd9Sstevel@tonic-gate	hat_kdi.o		\
647c478bd9Sstevel@tonic-gate	hment.o			\
65ae115bc7Smrj	hold_page.o		\
667c478bd9Sstevel@tonic-gate	hrtimers.o		\
677c478bd9Sstevel@tonic-gate	htable.o		\
68*349b53ddSStuart Maybee	hypercall.o		\
69*349b53ddSStuart Maybee	hypersubr.o		\
70ae115bc7Smrj	i86_mmu.o		\
716cefaae1SJack Meng	ibft.o			\
727c478bd9Sstevel@tonic-gate	instr_size.o		\
737c478bd9Sstevel@tonic-gate	intr.o			\
74ae115bc7Smrj	kboot_mmu.o		\
75ae115bc7Smrj	kdi_subr.o		\
76ae115bc7Smrj	kdi_idt.o		\
77ae115bc7Smrj	kdi_idthdl.o		\
78ae115bc7Smrj	kdi_asm.o		\
797c478bd9Sstevel@tonic-gate	lgrpplat.o		\
807c478bd9Sstevel@tonic-gate	mach_kdi.o		\
817c478bd9Sstevel@tonic-gate	mach_sysconfig.o	\
827c478bd9Sstevel@tonic-gate	machdep.o		\
837c478bd9Sstevel@tonic-gate	mem_config_stubs.o	\
847c478bd9Sstevel@tonic-gate	memnode.o		\
852449e17fSsherrym	microcode.o		\
86843e1988Sjohnlev	microfind.o		\
877c478bd9Sstevel@tonic-gate	mlsetup.o		\
887c478bd9Sstevel@tonic-gate	mp_call.o		\
897c478bd9Sstevel@tonic-gate	mp_implfuncs.o		\
907c478bd9Sstevel@tonic-gate	mp_machdep.o		\
91ae115bc7Smrj	mp_pc.o			\
927c478bd9Sstevel@tonic-gate	mp_startup.o		\
937c478bd9Sstevel@tonic-gate	memscrub.o		\
947c478bd9Sstevel@tonic-gate	mpcore.o		\
957c478bd9Sstevel@tonic-gate	notes.o			\
9675bcd456Sjg	pci_bios.o		\
97c88420b3Sdmick	pci_cfgspace.o		\
98c88420b3Sdmick	pci_mech1.o		\
99c88420b3Sdmick	pci_mech2.o		\
100c88420b3Sdmick	pci_neptune.o		\
101c88420b3Sdmick	pci_orion.o		\
1027c478bd9Sstevel@tonic-gate	pmem.o			\
1037c478bd9Sstevel@tonic-gate	ppage.o			\
1040e751525SEric Saxe	pwrnow.o		\
1050e751525SEric Saxe	speedstep.o		\
1067c478bd9Sstevel@tonic-gate	startup.o		\
1077c478bd9Sstevel@tonic-gate	timestamp.o		\
108ae115bc7Smrj	todpc_subr.o		\
1097c478bd9Sstevel@tonic-gate	trap.o			\
1107c478bd9Sstevel@tonic-gate	vm_machdep.o		\
111*349b53ddSStuart Maybee	xpv_platform.o		\
1127c478bd9Sstevel@tonic-gate	x_call.o
1137c478bd9Sstevel@tonic-gate
1147c478bd9Sstevel@tonic-gate#
11584ab085aSmws#	Add the SMBIOS subsystem object files directly to the list of objects
11684ab085aSmws#	built into unix itself; this is all common code except for smb_dev.c.
11784ab085aSmws#
11884ab085aSmwsCORE_OBJS += $(SMBIOS_OBJS)
11984ab085aSmws
12084ab085aSmws#
121ae115bc7Smrj# These get compiled twice:
122ae115bc7Smrj# - once in the dboot (direct boot) identity mapped code
123ae115bc7Smrj# - once for use during early startup in unix
124ae115bc7Smrj#
125ae115bc7SmrjBOOT_DRIVER_OBJS =		\
126ae115bc7Smrj	boot_console.o		\
127ae115bc7Smrj	boot_keyboard.o		\
128ae115bc7Smrj	boot_keyboard_table.o	\
129ae115bc7Smrj	boot_vga.o		\
130ae115bc7Smrj	boot_mmu.o
131ae115bc7Smrj
132ae115bc7SmrjCORE_OBJS += $(BOOT_DRIVER_OBJS)
133ae115bc7Smrj
134ae115bc7Smrj#
1357c478bd9Sstevel@tonic-gate#	locore.o is special. It must be the first file relocated so that it
1367c478bd9Sstevel@tonic-gate#	it is relocated just where its name implies.
1377c478bd9Sstevel@tonic-gate#
1387c478bd9Sstevel@tonic-gateSPECIAL_OBJS_32 +=		\
1397c478bd9Sstevel@tonic-gate	locore.o		\
1407c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
1417c478bd9Sstevel@tonic-gate	interrupt.o		\
1427c478bd9Sstevel@tonic-gate	syscall_asm.o
1437c478bd9Sstevel@tonic-gate
1447c478bd9Sstevel@tonic-gateSPECIAL_OBJS_64 +=		\
1457c478bd9Sstevel@tonic-gate	locore.o		\
1467c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
1477c478bd9Sstevel@tonic-gate	interrupt.o		\
1487c478bd9Sstevel@tonic-gate	syscall_asm_amd64.o
1497c478bd9Sstevel@tonic-gate
1507c478bd9Sstevel@tonic-gateSPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
1517c478bd9Sstevel@tonic-gate
1527c478bd9Sstevel@tonic-gate#
153ae115bc7Smrj# Objects that get compiled into the identity mapped PT_LOAD section of unix
154ae115bc7Smrj# to handle the earliest part of booting.
1557c478bd9Sstevel@tonic-gate#
156ae115bc7SmrjDBOOT_OBJS_32 =
157ae115bc7Smrj
158ae115bc7SmrjDBOOT_OBJS_64 += dboot_elfload.o
159ae115bc7Smrj
160ae115bc7SmrjDBOOT_OBJS +=			\
161843e1988Sjohnlev	dboot_asm.o		\
162ae115bc7Smrj	dboot_grub.o		\
163ae115bc7Smrj	dboot_printf.o		\
164843e1988Sjohnlev	dboot_startkern.o	\
165ae115bc7Smrj	memcpy.o		\
166ae115bc7Smrj	memset.o		\
167ae115bc7Smrj	muldiv.o		\
168ae115bc7Smrj	string.o		\
169ae115bc7Smrj	$(BOOT_DRIVER_OBJS)	\
170ae115bc7Smrj	$(DBOOT_OBJS_$(CLASS))
171ae115bc7Smrj
172ae115bc7Smrj#
173ae115bc7Smrj#			driver and misc modules
174ae115bc7Smrj#
175ae115bc7SmrjGFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
176ae115bc7Smrj			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
177eca2601cSRandy FishelFIPE_OBJS += fipe_drv.o fipe_pm.o
17817169044SbrutusIOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
1797c478bd9Sstevel@tonic-gateISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
180fc51f9bbSKrishna ElangoPCIE_MISC_OBJS += pcie_acpi.o
181ae115bc7SmrjPCI_E_NEXUS_OBJS += npe.o npe_misc.o
182ae115bc7SmrjPCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
1837a364d25SschwartzPCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
1840e751525SEric SaxePCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o	\
1850e751525SEric Saxe			mp_platform_common.o hpet_acpi.o
186507c3241Smlf
1872d6b5ea7SGuoli ShuACPI_DRV_OBJS	+= acpi_drv.o acpi_video.o
1887aec1d6eScindi
1897f606aceSMark HaywoodCPUDRV_OBJS	+= \
1907f606aceSMark Haywood	cpudrv.o \
1910e751525SEric Saxe	cpudrv_mach.o
1927f606aceSMark Haywood
1935cff7825Smh27603PPM_OBJS	+= ppm_subr.o ppm.o ppm_plat.o
1945cff7825Smh27603
1952df1fe9cSrandyfACPIPPM_OBJS	+= acpippm.o acpisleep.o
1962df1fe9cSrandyf
19786c1f4dcSVikram HegdeROOTNEX_OBJS += rootnex.o iommu_rscs.o dmar_acpi.o intel_iommu.o
198ae115bc7SmrjTZMON_OBJS	+= tzmon.o
1997c478bd9Sstevel@tonic-gateUPPC_OBJS += uppc.o psm_common.o
200ae115bc7SmrjXSVC_OBJS += xsvc.o
201fc1821feSrugrat
2027c478bd9Sstevel@tonic-gate#
2037c478bd9Sstevel@tonic-gate#	Build up defines and paths.
2047c478bd9Sstevel@tonic-gate#
2057c478bd9Sstevel@tonic-gateALL_DEFS	+= -Di86pc
206ae115bc7SmrjINC_PATH	+= -I$(UTSBASE)/i86pc -I$(SRC)/common
207*349b53ddSStuart MaybeeINC_PATH	+= -I$(UTSBASE)/i86xpv -I$(UTSBASE)/common/xen
2087c478bd9Sstevel@tonic-gate
2097c478bd9Sstevel@tonic-gate#
210ae115bc7Smrj# Since the assym files are derived, the dependencies must be explicit for
2117c478bd9Sstevel@tonic-gate# all files including this file. (This is only actually required in the
2127c478bd9Sstevel@tonic-gate# instance when the .nse_depinfo file does not exist.) It may seem that
2137c478bd9Sstevel@tonic-gate# the lint targets should also have a similar dependency, but they don't
2147c478bd9Sstevel@tonic-gate# since only C headers are included when #defined(__lint) is true.
2157c478bd9Sstevel@tonic-gate#
216ae115bc7Smrj
2177c478bd9Sstevel@tonic-gateASSYM_DEPS      += 		\
2187c478bd9Sstevel@tonic-gate	copy.o			\
2197c478bd9Sstevel@tonic-gate	desctbls_asm.o		\
2207c478bd9Sstevel@tonic-gate	ddi_i86_asm.o		\
2217c478bd9Sstevel@tonic-gate	exception.o		\
2227c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
2237c478bd9Sstevel@tonic-gate	float.o			\
2247c478bd9Sstevel@tonic-gate	i86_subr.o		\
2257c478bd9Sstevel@tonic-gate	interrupt.o		\
2267c478bd9Sstevel@tonic-gate	lock_prim.o		\
2277c478bd9Sstevel@tonic-gate	locore.o		\
2287c478bd9Sstevel@tonic-gate	mpcore.o		\
2297c478bd9Sstevel@tonic-gate	sseblk.o		\
2307c478bd9Sstevel@tonic-gate	swtch.o			\
2317c478bd9Sstevel@tonic-gate	syscall_asm.o		\
2322df1fe9cSrandyf	syscall_asm_amd64.o	\
2332df1fe9cSrandyf	cpr_wakecode.o
2342df1fe9cSrandyf
2352df1fe9cSrandyfCPR_IMPL_OBJS	= cpr_impl.o	cpr_wakecode.o
236ae115bc7Smrj
237ae115bc7Smrj$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
238ae115bc7Smrj
239ae115bc7SmrjASSYM_DEPS += kdi_asm.o
240