xref: /illumos-gate/usr/src/uts/i86pc/Makefile.files (revision e8031f0a8ed0e45c6d8847c5e09424e66fd34a4b)
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 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28#	This Makefile defines file modules in the directory uts/i86pc
29#	and its children. These are the source files which are i86pc
30#	"implementation architecture" dependent.
31#
32
33#
34#	object lists
35#
36CORE_OBJS +=			\
37	beeper.o		\
38	biosdisk.o		\
39	cbe.o			\
40	confunix.o		\
41	cpuid.o			\
42	dis_tables.o		\
43	ddi_impl.o		\
44	dtrace_subr.o		\
45	dvma.o			\
46	graphics.o		\
47	hat_i86.o		\
48	hat_kdi.o		\
49	hment.o			\
50	hrtimers.o		\
51	htable.o		\
52	instr_size.o		\
53	intr.o			\
54	lgrpplat.o		\
55	mach_i86mmu.o		\
56	mach_kdi.o		\
57	mach_sysconfig.o	\
58	machdep.o		\
59	mem_config_stubs.o	\
60	memnode.o		\
61	mlsetup.o		\
62	mp_call.o		\
63	mp_implfuncs.o		\
64	mp_machdep.o		\
65	mp_startup.o		\
66	memscrub.o		\
67	mpcore.o		\
68	notes.o			\
69	pci_cfgspace.o		\
70	pci_mech1.o		\
71	pci_mech2.o		\
72	pci_neptune.o		\
73	pci_orion.o		\
74	pmem.o			\
75	ppage.o			\
76	startup.o		\
77	timestamp.o		\
78	trap.o			\
79	vm_machdep.o		\
80	x_call.o
81
82#
83#	Add the SMBIOS subsystem object files directly to the list of objects
84#	built into unix itself; this is all common code except for smb_dev.c.
85#
86CORE_OBJS += $(SMBIOS_OBJS)
87
88#
89#	locore.o is special. It must be the first file relocated so that it
90#	it is relocated just where its name implies.
91#
92SPECIAL_OBJS_32 +=		\
93	locore.o		\
94	fast_trap_asm.o		\
95	interrupt.o		\
96	syscall_asm.o
97
98SPECIAL_OBJS_64 +=		\
99	locore.o		\
100	fast_trap_asm.o		\
101	interrupt.o		\
102	syscall_asm_amd64.o
103
104SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
105
106#
107#			driver modules
108#
109ROOTNEX_OBJS += rootnex.o
110ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
111PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
112
113TCIC_OBJS +=	tcic.o
114
115FD_OBJS		+= fd.o
116
117PCN_OBJS	+= mii.o
118
119DNET_OBJS	+= dnet.o mii.o
120LOGI_OBJS	+= logi.o
121MSCSI_OBJS	+= mscsi.o
122MSMOUSE_OBJS	+= msm.o
123PCPLUSMP_OBJS	+= apic.o psm_common.o apic_introp.o
124RTLS_OBJS	+= rtls.o
125AGPGART_OBJS	+=	agpgart.o \
126			agp_kstat.o
127AGPTARGET_OBJS	+=	agptarget.o
128AMD64GART_OBJS	+=	amd64_gart.o
129
130#
131#	PCI-Express driver modules
132#
133PCI_E_NEXUS_OBJS += npe.o npe_misc.o
134PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o pcie_error.o
135PCI_E_PCINEXUS_OBJS += pcie_pci.o pcie_error.o
136PCIEHPCNEXUS_OBJS += pciehpc_x86.o pciehpc_acpi.o pciehpc_ck804.o
137
138#
139#	platform specific modules
140#
141UPPC_OBJS += uppc.o psm_common.o
142PCI_AUTOCONFIG_OBJS += \
143	pci_autoconfig.o \
144	pci_boot.o	\
145	pcie_ck804_boot.o	\
146	pci_memlist.o	\
147	pci_resource.o
148
149ACPICA_OBJS	+= dbcmds.o dbdisply.o \
150		   dbexec.o dbfileio.o dbhistry.o dbinput.o dbstats.o \
151		   dbutils.o dbxface.o evevent.o evgpe.o evgpeblk.o \
152		   evmisc.o evregion.o evrgnini.o evsci.o evxface.o \
153		   evxfevnt.o evxfregn.o hwacpi.o hwgpe.o hwregs.o \
154		   hwsleep.o hwtimer.o dsfield.o dsinit.o dsmethod.o \
155		   dsmthdat.o dsobject.o dsopcode.o dsutils.o dswexec.o \
156		   dswload.o dswscope.o dswstate.o exconfig.o exconvrt.o \
157		   excreate.o exdump.o exfield.o exfldio.o exmisc.o \
158		   exmutex.o exnames.o exoparg1.o exoparg2.o exoparg3.o \
159		   exoparg6.o exprep.o exregion.o exresnte.o exresolv.o \
160		   exresop.o exstore.o exstoren.o exstorob.o exsystem.o \
161		   exutils.o psargs.o psopcode.o psparse.o psscope.o \
162		   pstree.o psutils.o pswalk.o psxface.o nsaccess.o \
163		   nsalloc.o nsdump.o nsdumpdv.o nseval.o nsinit.o \
164		   nsload.o nsnames.o nsobject.o nsparse.o nssearch.o \
165		   nsutils.o nswalk.o nsxfeval.o nsxfname.o nsxfobj.o \
166		   rsaddr.o rscalc.o rscreate.o rsdump.o \
167		   rsinfo.o rsio.o rsirq.o rslist.o rsmemory.o rsmisc.o \
168		   rsutils.o rsxface.o tbconvrt.o tbget.o tbgetall.o \
169		   tbinstal.o tbrsdt.o tbutils.o tbxface.o tbxfroot.o \
170		   utalloc.o utclib.o utcopy.o utdebug.o utdelete.o \
171		   uteval.o utglobal.o utinit.o utmath.o utmisc.o \
172		   utobject.o utxface.o acpica.o acpi_enum.o master_ops.o \
173		   osl.o osl_ml.o acpica_ec.o utcache.o utmutex.o utstate.o \
174		   psloop.o
175
176POWER_OBJS	+= power.o
177
178GFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
179			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
180
181#
182#	Build up defines and paths.
183#
184ALL_DEFS	+= -Di86pc
185INC_PATH	+= -I$(UTSBASE)/i86pc
186
187#
188# Since assym.h is a derived file, the dependency must be explicit for
189# all files including this file. (This is only actually required in the
190# instance when the .nse_depinfo file does not exist.) It may seem that
191# the lint targets should also have a similar dependency, but they don't
192# since only C headers are included when #defined(__lint) is true.
193#
194ASSYM_DEPS      += 		\
195	copy.o			\
196	desctbls_asm.o		\
197	ddi_i86_asm.o		\
198	exception.o		\
199	fast_trap_asm.o		\
200	float.o			\
201	i86_subr.o		\
202	interrupt.o		\
203	lock_prim.o		\
204	locore.o		\
205	mpcore.o		\
206	sseblk.o		\
207	swtch.o			\
208	syscall_asm.o		\
209	syscall_asm_amd64.o
210