xref: /illumos-gate/usr/src/uts/i86pc/Makefile.files (revision 41afdfa7)
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#
238d7fafffSZhi-Jun Robin Fu# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
247c478bd9Sstevel@tonic-gate#
25*41afdfa7SKrishnendu Sadhukhan - Sun Microsystems# Copyright (c) 2010, Intel Corporation.
26*41afdfa7SKrishnendu Sadhukhan - Sun Microsystems#
27fb9f9b97Skupfer#	This Makefile defines file modules in the directory uts/i86pc
28fb9f9b97Skupfer#	and its children. These are the source files which are i86pc
297c478bd9Sstevel@tonic-gate#	"implementation architecture" dependent.
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gate#
337c478bd9Sstevel@tonic-gate#	object lists
347c478bd9Sstevel@tonic-gate#
357c478bd9Sstevel@tonic-gateCORE_OBJS +=			\
362df1fe9cSrandyf	acpi_stubs.o		\
377c478bd9Sstevel@tonic-gate	biosdisk.o		\
38ae115bc7Smrj	bios_call.o		\
397c478bd9Sstevel@tonic-gate	cbe.o			\
407aec1d6eScindi	cmi.o			\
4120c794b3Sgavinm	cmi_hw.o		\
4220c794b3Sgavinm	cms.o			\
437c478bd9Sstevel@tonic-gate	confunix.o		\
440e751525SEric Saxe	cpu_idle.o		\
457c478bd9Sstevel@tonic-gate	cpuid.o			\
46e4b86885SCheng Sean Ye	cpuid_subr.o		\
475cff7825Smh	cpupm.o			\
480e751525SEric Saxe	cpupm_mach.o		\
490e751525SEric Saxe	cpupm_amd.o		\
500e751525SEric Saxe	cpupm_intel.o		\
510e751525SEric Saxe	cpupm_throttle.o	\
520e751525SEric Saxe	cpu_acpi.o		\
537c478bd9Sstevel@tonic-gate	dis_tables.o		\
547c478bd9Sstevel@tonic-gate	ddi_impl.o		\
557c478bd9Sstevel@tonic-gate	dtrace_subr.o		\
567c478bd9Sstevel@tonic-gate	dvma.o			\
57ae115bc7Smrj	fpu_subr.o		\
58ae115bc7Smrj	fakebop.o		\
5919397407SSherry Moore	fastboot.o		\
6019397407SSherry Moore	fb_swtch.o		\
617c478bd9Sstevel@tonic-gate	graphics.o		\
62ae115bc7Smrj	hardclk.o		\
637c478bd9Sstevel@tonic-gate	hat_i86.o		\
647c478bd9Sstevel@tonic-gate	hat_kdi.o		\
657c478bd9Sstevel@tonic-gate	hment.o			\
66ae115bc7Smrj	hold_page.o		\
677c478bd9Sstevel@tonic-gate	hrtimers.o		\
687c478bd9Sstevel@tonic-gate	htable.o		\
69349b53ddSStuart Maybee	hypercall.o		\
70349b53ddSStuart Maybee	hypersubr.o		\
71ae115bc7Smrj	i86_mmu.o		\
726cefaae1SJack Meng	ibft.o			\
737c478bd9Sstevel@tonic-gate	instr_size.o		\
747c478bd9Sstevel@tonic-gate	intr.o			\
75ae115bc7Smrj	kboot_mmu.o		\
76ae115bc7Smrj	kdi_subr.o		\
77ae115bc7Smrj	kdi_idt.o		\
78ae115bc7Smrj	kdi_idthdl.o		\
79ae115bc7Smrj	kdi_asm.o		\
807c478bd9Sstevel@tonic-gate	lgrpplat.o		\
817c478bd9Sstevel@tonic-gate	mach_kdi.o		\
827c478bd9Sstevel@tonic-gate	mach_sysconfig.o	\
837c478bd9Sstevel@tonic-gate	machdep.o		\
84a3114836SGerry Liu	mem_config.o		\
857c478bd9Sstevel@tonic-gate	mem_config_stubs.o	\
86a3114836SGerry Liu	mem_config_arch.o	\
87a3114836SGerry Liu	memlist_new.o		\
887c478bd9Sstevel@tonic-gate	memnode.o		\
892449e17fSsherrym	microcode.o		\
90843e1988Sjohnlev	microfind.o		\
917c478bd9Sstevel@tonic-gate	mlsetup.o		\
927c478bd9Sstevel@tonic-gate	mp_call.o		\
937c478bd9Sstevel@tonic-gate	mp_implfuncs.o		\
947c478bd9Sstevel@tonic-gate	mp_machdep.o		\
95ae115bc7Smrj	mp_pc.o			\
967c478bd9Sstevel@tonic-gate	mp_startup.o		\
977c478bd9Sstevel@tonic-gate	memscrub.o		\
987c478bd9Sstevel@tonic-gate	mpcore.o		\
997c478bd9Sstevel@tonic-gate	notes.o			\
10075bcd456Sjg	pci_bios.o		\
101c0da6274SZhi-Jun Robin Fu	pci_cfgacc.o		\
102c0da6274SZhi-Jun Robin Fu	pci_cfgacc_x86.o	\
103c88420b3Sdmick	pci_cfgspace.o		\
104c88420b3Sdmick	pci_mech1.o		\
1058d7fafffSZhi-Jun Robin Fu	pci_mech1_amd.o		\
106c88420b3Sdmick	pci_mech2.o		\
107c88420b3Sdmick	pci_neptune.o		\
108c88420b3Sdmick	pci_orion.o		\
1097c478bd9Sstevel@tonic-gate	pmem.o			\
1107c478bd9Sstevel@tonic-gate	ppage.o			\
1110e751525SEric Saxe	pwrnow.o		\
1120e751525SEric Saxe	speedstep.o		\
1137c478bd9Sstevel@tonic-gate	startup.o		\
1147c478bd9Sstevel@tonic-gate	timestamp.o		\
115ae115bc7Smrj	todpc_subr.o		\
1167c478bd9Sstevel@tonic-gate	trap.o			\
1177c478bd9Sstevel@tonic-gate	vm_machdep.o		\
118349b53ddSStuart Maybee	xpv_platform.o		\
1197c478bd9Sstevel@tonic-gate	x_call.o
1207c478bd9Sstevel@tonic-gate
12184ab085aSmws#
12284ab085aSmws#	Add the SMBIOS subsystem object files directly to the list of objects
12384ab085aSmws#	built into unix itself; this is all common code except for smb_dev.c.
12484ab085aSmws#
12584ab085aSmwsCORE_OBJS += $(SMBIOS_OBJS)
12684ab085aSmws
127ae115bc7Smrj#
128ae115bc7Smrj# These get compiled twice:
12906bbe1e0Sedp# - once in the dboot (direct boot) identity mapped code
130ae115bc7Smrj# - once for use during early startup in unix
131ae115bc7Smrj#
132ae115bc7SmrjBOOT_DRIVER_OBJS =		\
133ae115bc7Smrj	boot_console.o		\
134ae115bc7Smrj	boot_keyboard.o		\
135ae115bc7Smrj	boot_keyboard_table.o	\
136ae115bc7Smrj	boot_vga.o		\
137ae115bc7Smrj	boot_mmu.o
138ae115bc7Smrj
139ae115bc7SmrjCORE_OBJS += $(BOOT_DRIVER_OBJS)
140ae115bc7Smrj
1417c478bd9Sstevel@tonic-gate#
1427c478bd9Sstevel@tonic-gate#	locore.o is special. It must be the first file relocated so that it
1437c478bd9Sstevel@tonic-gate#	it is relocated just where its name implies.
1447c478bd9Sstevel@tonic-gate#
1457c478bd9Sstevel@tonic-gateSPECIAL_OBJS_32 +=		\
1467c478bd9Sstevel@tonic-gate	locore.o		\
1477c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
1487c478bd9Sstevel@tonic-gate	interrupt.o		\
1497c478bd9Sstevel@tonic-gate	syscall_asm.o
1507c478bd9Sstevel@tonic-gate
1517c478bd9Sstevel@tonic-gateSPECIAL_OBJS_64 +=		\
1527c478bd9Sstevel@tonic-gate	locore.o		\
1537c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
1547c478bd9Sstevel@tonic-gate	interrupt.o		\
1557c478bd9Sstevel@tonic-gate	syscall_asm_amd64.o
1567c478bd9Sstevel@tonic-gate
1577c478bd9Sstevel@tonic-gateSPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
1587c478bd9Sstevel@tonic-gate
1597c478bd9Sstevel@tonic-gate#
160ae115bc7Smrj# Objects that get compiled into the identity mapped PT_LOAD section of unix
161ae115bc7Smrj# to handle the earliest part of booting.
1627c478bd9Sstevel@tonic-gate#
163ae115bc7SmrjDBOOT_OBJS_32 =
1647c478bd9Sstevel@tonic-gate
165ae115bc7SmrjDBOOT_OBJS_64 += dboot_elfload.o
1667c478bd9Sstevel@tonic-gate
167ae115bc7SmrjDBOOT_OBJS +=			\
168843e1988Sjohnlev	dboot_asm.o		\
169ae115bc7Smrj	dboot_grub.o		\
170ae115bc7Smrj	dboot_printf.o		\
171843e1988Sjohnlev	dboot_startkern.o	\
172ae115bc7Smrj	memcpy.o		\
173ae115bc7Smrj	memset.o		\
174ae115bc7Smrj	muldiv.o		\
175ae115bc7Smrj	string.o		\
176ae115bc7Smrj	$(BOOT_DRIVER_OBJS)	\
177ae115bc7Smrj	$(DBOOT_OBJS_$(CLASS))
1787c478bd9Sstevel@tonic-gate
179ae115bc7Smrj#
180ae115bc7Smrj#			driver and misc modules
181ae115bc7Smrj#
182ae115bc7SmrjGFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
183ae115bc7Smrj			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
184eca2601cSRandy FishelFIPE_OBJS += fipe_drv.o fipe_pm.o
18517169044SbrutusIOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
186ae115bc7SmrjISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
18726947304SEvan YanPCIE_MISC_OBJS += pcie_acpi.o pciehpc_acpi.o pcie_x86.o
18806bbe1e0SedpPCI_E_NEXUS_OBJS += npe.o npe_misc.o
189ae115bc7SmrjPCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
190ae115bc7SmrjPCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
1910e751525SEric SaxePCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o	\
192*41afdfa7SKrishnendu Sadhukhan - Sun Microsystems			mp_platform_common.o mp_platform_misc.o		\
193*41afdfa7SKrishnendu Sadhukhan - Sun Microsystems			hpet_acpi.o apic_common.o apic_timer.o
1947ff178cdSJimmy VetayasesAPIX_OBJS += apix.o apic_regops.o psm_common.o apix_intr.o apix_utils.o \
195*41afdfa7SKrishnendu Sadhukhan - Sun Microsystems		apix_irm.o mp_platform_common.o hpet_acpi.o apic_common.o \
196*41afdfa7SKrishnendu Sadhukhan - Sun Microsystems		apic_timer.o
1977ff178cdSJimmy Vetayases
198507c3241Smlf
1992d6b5ea7SGuoli ShuACPI_DRV_OBJS	+= acpi_drv.o acpi_video.o
200a3114836SGerry LiuACPINEX_OBJS	+= acpinex_drv.o acpinex_event.o
2017aec1d6eScindi
2027f606aceSMark HaywoodCPUDRV_OBJS	+= \
2037f606aceSMark Haywood	cpudrv.o \
2040e751525SEric Saxe	cpudrv_mach.o
2057f606aceSMark Haywood
2065cff7825SmhPPM_OBJS	+= ppm_subr.o ppm.o ppm_plat.o
2075cff7825Smh
2082df1fe9cSrandyfACPIPPM_OBJS	+= acpippm.o acpisleep.o
209b72d5b75SMichael CorcoranACPIDEV_OBJS += acpidev_drv.o \
210b72d5b75SMichael Corcoran	acpidev_scope.o acpidev_device.o \
211b72d5b75SMichael Corcoran	acpidev_container.o \
212b72d5b75SMichael Corcoran	acpidev_cpu.o \
213a3114836SGerry Liu	acpidev_dr.o \
214b72d5b75SMichael Corcoran	acpidev_memory.o \
215a3114836SGerry Liu	acpidev_pci.o \
216b72d5b75SMichael Corcoran	acpidev_resource.o \
217b72d5b75SMichael Corcoran	acpidev_util.o
2182df1fe9cSrandyf
219a3114836SGerry LiuDRMACH_ACPI_OBJS += drmach_acpi.o dr_util.o drmach_err.o
220a3114836SGerry Liu
221a3114836SGerry LiuDR_OBJS	+= dr.o dr_cpu.o dr_err.o dr_io.o dr_mem_acpi.o dr_quiesce.o dr_util.o
222a3114836SGerry Liu
2233a634bfcSVikram HegdeROOTNEX_OBJS += rootnex.o immu.o immu_dmar.o immu_dvma.o \
2243a634bfcSVikram Hegde		immu_intrmap.o immu_qinv.o immu_regs.o
2253a634bfcSVikram Hegde
226ae115bc7SmrjTZMON_OBJS	+= tzmon.o
2277c478bd9Sstevel@tonic-gateUPPC_OBJS += uppc.o psm_common.o
228ae115bc7SmrjXSVC_OBJS += xsvc.o
2296732dbb3SVikram HegdeAMD_IOMMU_OBJS +=	amd_iommu.o amd_iommu_impl.o amd_iommu_acpi.o \
2306732dbb3SVikram Hegde			amd_iommu_cmd.o amd_iommu_log.o amd_iommu_page_tables.o
231fc1821feSrugrat
2327c478bd9Sstevel@tonic-gate#
2337c478bd9Sstevel@tonic-gate#	Build up defines and paths.
2347c478bd9Sstevel@tonic-gate#
2357c478bd9Sstevel@tonic-gateALL_DEFS	+= -Di86pc
236ae115bc7SmrjINC_PATH	+= -I$(UTSBASE)/i86pc -I$(SRC)/common
237349b53ddSStuart MaybeeINC_PATH	+= -I$(UTSBASE)/i86xpv -I$(UTSBASE)/common/xen
2387c478bd9Sstevel@tonic-gate
2397c478bd9Sstevel@tonic-gate#
240ae115bc7Smrj# Since the assym files are derived, the dependencies must be explicit for
2417c478bd9Sstevel@tonic-gate# all files including this file. (This is only actually required in the
2427c478bd9Sstevel@tonic-gate# instance when the .nse_depinfo file does not exist.) It may seem that
2437c478bd9Sstevel@tonic-gate# the lint targets should also have a similar dependency, but they don't
2447c478bd9Sstevel@tonic-gate# since only C headers are included when #defined(__lint) is true.
2457c478bd9Sstevel@tonic-gate#
246ae115bc7Smrj
2477c478bd9Sstevel@tonic-gateASSYM_DEPS      += 		\
2487c478bd9Sstevel@tonic-gate	copy.o			\
2497c478bd9Sstevel@tonic-gate	desctbls_asm.o		\
2507c478bd9Sstevel@tonic-gate	ddi_i86_asm.o		\
2517c478bd9Sstevel@tonic-gate	exception.o		\
2527c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
2537c478bd9Sstevel@tonic-gate	float.o			\
2547c478bd9Sstevel@tonic-gate	i86_subr.o		\
2557c478bd9Sstevel@tonic-gate	interrupt.o		\
2567c478bd9Sstevel@tonic-gate	lock_prim.o		\
2577c478bd9Sstevel@tonic-gate	locore.o		\
2587c478bd9Sstevel@tonic-gate	mpcore.o		\
2597c478bd9Sstevel@tonic-gate	sseblk.o		\
2607c478bd9Sstevel@tonic-gate	swtch.o			\
2617c478bd9Sstevel@tonic-gate	syscall_asm.o		\
2622df1fe9cSrandyf	syscall_asm_amd64.o	\
2632df1fe9cSrandyf	cpr_wakecode.o
2642df1fe9cSrandyf
2652df1fe9cSrandyfCPR_IMPL_OBJS	= cpr_impl.o	cpr_wakecode.o
266ae115bc7Smrj
267ae115bc7Smrj$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
268ae115bc7Smrj
269ae115bc7SmrjASSYM_DEPS += kdi_asm.o
270