xref: /titanic_41/usr/src/uts/i86pc/Makefile.files (revision 3e14f97f673e8a630f076077de35afdd43dc1587)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#	This Makefile defines file modules in the directory uts/i86pc
27#	and its children. These are the source files which are i86pc
28#	"implementation architecture" dependent.
29#
30
31#
32#	object lists
33#
34CORE_OBJS +=			\
35	acpi_stubs.o		\
36	biosdisk.o		\
37	bios_call.o		\
38	cbe.o			\
39	cmi.o			\
40	cmi_hw.o		\
41	cms.o			\
42	confunix.o		\
43	cpu_idle.o		\
44	cpuid.o			\
45	cpuid_subr.o		\
46	cpupm.o			\
47	cpupm_mach.o		\
48	cpupm_amd.o		\
49	cpupm_intel.o		\
50	cpupm_throttle.o	\
51	cpu_acpi.o		\
52	dis_tables.o		\
53	ddi_impl.o		\
54	dtrace_subr.o		\
55	dvma.o			\
56	fpu_subr.o		\
57	fakebop.o		\
58	fastboot.o		\
59	fb_swtch.o		\
60	graphics.o		\
61	hardclk.o		\
62	hat_i86.o		\
63	hat_kdi.o		\
64	hment.o			\
65	hold_page.o		\
66	hrtimers.o		\
67	htable.o		\
68	hypercall.o		\
69	hypersubr.o		\
70	i86_mmu.o		\
71	ibft.o			\
72	instr_size.o		\
73	intr.o			\
74	kboot_mmu.o		\
75	kdi_subr.o		\
76	kdi_idt.o		\
77	kdi_idthdl.o		\
78	kdi_asm.o		\
79	lgrpplat.o		\
80	mach_kdi.o		\
81	mach_sysconfig.o	\
82	machdep.o		\
83	mem_config.o		\
84	mem_config_stubs.o	\
85	mem_config_arch.o	\
86	memlist_new.o		\
87	memnode.o		\
88	microcode.o		\
89	microfind.o		\
90	mlsetup.o		\
91	mp_call.o		\
92	mp_implfuncs.o		\
93	mp_machdep.o		\
94	mp_pc.o			\
95	mp_startup.o		\
96	memscrub.o		\
97	mpcore.o		\
98	notes.o			\
99	pci_bios.o		\
100	pci_cfgacc.o		\
101	pci_cfgacc_x86.o	\
102	pci_cfgspace.o		\
103	pci_mech1.o		\
104	pci_mech2.o		\
105	pci_neptune.o		\
106	pci_orion.o		\
107	pmem.o			\
108	ppage.o			\
109	pwrnow.o		\
110	speedstep.o		\
111	startup.o		\
112	timestamp.o		\
113	todpc_subr.o		\
114	trap.o			\
115	vm_machdep.o		\
116	xpv_platform.o		\
117	x_call.o
118
119#
120#	Add the SMBIOS subsystem object files directly to the list of objects
121#	built into unix itself; this is all common code except for smb_dev.c.
122#
123CORE_OBJS += $(SMBIOS_OBJS)
124
125#
126# These get compiled twice:
127# - once in the dboot (direct boot) identity mapped code
128# - once for use during early startup in unix
129#
130BOOT_DRIVER_OBJS =		\
131	boot_console.o		\
132	boot_keyboard.o		\
133	boot_keyboard_table.o	\
134	boot_vga.o		\
135	boot_mmu.o
136
137CORE_OBJS += $(BOOT_DRIVER_OBJS)
138
139#
140#	locore.o is special. It must be the first file relocated so that it
141#	it is relocated just where its name implies.
142#
143SPECIAL_OBJS_32 +=		\
144	locore.o		\
145	fast_trap_asm.o		\
146	interrupt.o		\
147	syscall_asm.o
148
149SPECIAL_OBJS_64 +=		\
150	locore.o		\
151	fast_trap_asm.o		\
152	interrupt.o		\
153	syscall_asm_amd64.o
154
155SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
156
157#
158# Objects that get compiled into the identity mapped PT_LOAD section of unix
159# to handle the earliest part of booting.
160#
161DBOOT_OBJS_32 =
162
163DBOOT_OBJS_64 += dboot_elfload.o
164
165DBOOT_OBJS +=			\
166	dboot_asm.o		\
167	dboot_grub.o		\
168	dboot_printf.o		\
169	dboot_startkern.o	\
170	memcpy.o		\
171	memset.o		\
172	muldiv.o		\
173	string.o		\
174	$(BOOT_DRIVER_OBJS)	\
175	$(DBOOT_OBJS_$(CLASS))
176
177#
178#			driver and misc modules
179#
180GFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
181			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
182FIPE_OBJS += fipe_drv.o fipe_pm.o
183IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
184ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
185PCIE_MISC_OBJS += pcie_acpi.o pciehpc_acpi.o pcie_x86.o
186PCI_E_NEXUS_OBJS += npe.o npe_misc.o
187PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
188PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
189PCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o	\
190			mp_platform_common.o hpet_acpi.o
191
192ACPI_DRV_OBJS	+= acpi_drv.o acpi_video.o
193ACPINEX_OBJS	+= acpinex_drv.o acpinex_event.o
194
195CPUDRV_OBJS	+= \
196	cpudrv.o \
197	cpudrv_mach.o
198
199PPM_OBJS	+= ppm_subr.o ppm.o ppm_plat.o
200
201ACPIPPM_OBJS	+= acpippm.o acpisleep.o
202ACPIDEV_OBJS += acpidev_drv.o \
203	acpidev_scope.o acpidev_device.o \
204	acpidev_container.o \
205	acpidev_cpu.o \
206	acpidev_dr.o \
207	acpidev_memory.o \
208	acpidev_pci.o \
209	acpidev_resource.o \
210	acpidev_util.o
211
212DRMACH_ACPI_OBJS += drmach_acpi.o dr_util.o drmach_err.o
213
214DR_OBJS	+= dr.o dr_cpu.o dr_err.o dr_io.o dr_mem_acpi.o dr_quiesce.o dr_util.o
215
216ROOTNEX_OBJS += rootnex.o immu.o immu_dmar.o immu_dvma.o \
217		immu_intrmap.o immu_qinv.o immu_regs.o
218
219TZMON_OBJS	+= tzmon.o
220UPPC_OBJS += uppc.o psm_common.o
221XSVC_OBJS += xsvc.o
222AMD_IOMMU_OBJS +=	amd_iommu.o amd_iommu_impl.o amd_iommu_acpi.o \
223			amd_iommu_cmd.o amd_iommu_log.o amd_iommu_page_tables.o
224
225#
226#	Build up defines and paths.
227#
228ALL_DEFS	+= -Di86pc
229INC_PATH	+= -I$(UTSBASE)/i86pc -I$(SRC)/common
230INC_PATH	+= -I$(UTSBASE)/i86xpv -I$(UTSBASE)/common/xen
231
232#
233# Since the assym files are derived, the dependencies must be explicit for
234# all files including this file. (This is only actually required in the
235# instance when the .nse_depinfo file does not exist.) It may seem that
236# the lint targets should also have a similar dependency, but they don't
237# since only C headers are included when #defined(__lint) is true.
238#
239
240ASSYM_DEPS      += 		\
241	copy.o			\
242	desctbls_asm.o		\
243	ddi_i86_asm.o		\
244	exception.o		\
245	fast_trap_asm.o		\
246	float.o			\
247	i86_subr.o		\
248	interrupt.o		\
249	lock_prim.o		\
250	locore.o		\
251	mpcore.o		\
252	sseblk.o		\
253	swtch.o			\
254	syscall_asm.o		\
255	syscall_asm_amd64.o	\
256	cpr_wakecode.o
257
258CPR_IMPL_OBJS	= cpr_impl.o	cpr_wakecode.o
259
260$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
261
262ASSYM_DEPS += kdi_asm.o
263