xref: /titanic_51/usr/src/uts/i86pc/Makefile.files (revision 8a40a695ee676a322b094e9afe5375567bfb51e3)
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 2006 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	cmi.o			\
41	confunix.o		\
42	cpuid.o			\
43	dis_tables.o		\
44	ddi_impl.o		\
45	dtrace_subr.o		\
46	dvma.o			\
47	graphics.o		\
48	hat_i86.o		\
49	hat_kdi.o		\
50	hment.o			\
51	hrtimers.o		\
52	htable.o		\
53	instr_size.o		\
54	intr.o			\
55	lgrpplat.o		\
56	mach_i86mmu.o		\
57	mach_kdi.o		\
58	mach_sysconfig.o	\
59	machdep.o		\
60	mem_config_stubs.o	\
61	memnode.o		\
62	mlsetup.o		\
63	mp_call.o		\
64	mp_implfuncs.o		\
65	mp_machdep.o		\
66	mp_startup.o		\
67	memscrub.o		\
68	mpcore.o		\
69	notes.o			\
70	pci_bios.o		\
71	pci_cfgspace.o		\
72	pci_mech1.o		\
73	pci_mech2.o		\
74	pci_neptune.o		\
75	pci_orion.o		\
76	pmem.o			\
77	ppage.o			\
78	startup.o		\
79	timestamp.o		\
80	trap.o			\
81	vm_machdep.o		\
82	x_call.o
83
84#
85#	Add the SMBIOS subsystem object files directly to the list of objects
86#	built into unix itself; this is all common code except for smb_dev.c.
87#
88CORE_OBJS += $(SMBIOS_OBJS)
89
90#
91#	locore.o is special. It must be the first file relocated so that it
92#	it is relocated just where its name implies.
93#
94SPECIAL_OBJS_32 +=		\
95	locore.o		\
96	fast_trap_asm.o		\
97	interrupt.o		\
98	syscall_asm.o
99
100SPECIAL_OBJS_64 +=		\
101	locore.o		\
102	fast_trap_asm.o		\
103	interrupt.o		\
104	syscall_asm_amd64.o
105
106SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
107
108#
109#			driver modules
110#
111ROOTNEX_OBJS += rootnex.o
112ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
113PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
114PCI_PCINEXUS_OBJS += pci_pci.o
115
116TCIC_OBJS +=	tcic.o
117
118FD_OBJS		+= fd.o
119
120PCN_OBJS	+= mii.o
121
122DNET_OBJS	+= dnet.o mii.o
123LOGI_OBJS	+= logi.o
124MSCSI_OBJS	+= mscsi.o
125MSMOUSE_OBJS	+= msm.o
126PCPLUSMP_OBJS	+= apic.o psm_common.o apic_introp.o
127RTLS_OBJS	+= rtls.o
128AGPGART_OBJS	+=	agpgart.o \
129			agp_kstat.o
130AGPTARGET_OBJS	+=	agptarget.o
131AMD64GART_OBJS	+=	amd64_gart.o
132TZMON_OBJS	+= tzmon.o
133
134GHD_OBJS +=	ghd.o ghd_debug.o ghd_dma.o ghd_queue.o ghd_scsa.o \
135		ghd_scsi.o ghd_timer.o ghd_waitq.o ghd_gcmd.o
136
137ATA_OBJS +=	$(GHD_OBJS) ata_blacklist.o ata_common.o ata_disk.o \
138		ata_dma.o atapi.o atapi_fsm.o ata_debug.o \
139		sil3xxx.o
140
141include $(SRC)/common/mc/mc-amd/Makefile.mcamd
142MCAMD_OBJS	+= \
143	$(MCAMD_CMN_OBJS) \
144	mcamd_drv.o \
145	mcamd_dimmcfg.o \
146	mcamd_subr.o \
147	mcamd_pcicfg.o
148
149#
150#	PCI-Express driver modules
151#
152PCI_E_NEXUS_OBJS += npe.o npe_misc.o
153PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o pcie_error.o
154PCI_E_PCINEXUS_OBJS += pcie_pci.o pcie_error.o
155PCIEHPCNEXUS_OBJS += pciehpc_x86.o pciehpc_acpi.o pciehpc_nvidia.o
156
157#
158#	platform specific modules
159#
160UPPC_OBJS += uppc.o psm_common.o
161PCI_AUTOCONFIG_OBJS += \
162	pci_autoconfig.o \
163	pci_boot.o	\
164	pcie_nvidia.o	\
165	pci_memlist.o	\
166	pci_resource.o
167
168ACPICA_OBJS	+= dbcmds.o dbdisply.o \
169		   dbexec.o dbfileio.o dbhistry.o dbinput.o dbstats.o \
170		   dbutils.o dbxface.o evevent.o evgpe.o evgpeblk.o \
171		   evmisc.o evregion.o evrgnini.o evsci.o evxface.o \
172		   evxfevnt.o evxfregn.o hwacpi.o hwgpe.o hwregs.o \
173		   hwsleep.o hwtimer.o dsfield.o dsinit.o dsmethod.o \
174		   dsmthdat.o dsobject.o dsopcode.o dsutils.o dswexec.o \
175		   dswload.o dswscope.o dswstate.o exconfig.o exconvrt.o \
176		   excreate.o exdump.o exfield.o exfldio.o exmisc.o \
177		   exmutex.o exnames.o exoparg1.o exoparg2.o exoparg3.o \
178		   exoparg6.o exprep.o exregion.o exresnte.o exresolv.o \
179		   exresop.o exstore.o exstoren.o exstorob.o exsystem.o \
180		   exutils.o psargs.o psopcode.o psparse.o psscope.o \
181		   pstree.o psutils.o pswalk.o psxface.o nsaccess.o \
182		   nsalloc.o nsdump.o nsdumpdv.o nseval.o nsinit.o \
183		   nsload.o nsnames.o nsobject.o nsparse.o nssearch.o \
184		   nsutils.o nswalk.o nsxfeval.o nsxfname.o nsxfobj.o \
185		   rsaddr.o rscalc.o rscreate.o rsdump.o \
186		   rsinfo.o rsio.o rsirq.o rslist.o rsmemory.o rsmisc.o \
187		   rsutils.o rsxface.o tbconvrt.o tbget.o tbgetall.o \
188		   tbinstal.o tbrsdt.o tbutils.o tbxface.o tbxfroot.o \
189		   utalloc.o utclib.o utcopy.o utdebug.o utdelete.o \
190		   uteval.o utglobal.o utinit.o utmath.o utmisc.o \
191		   utobject.o utresrc.o utxface.o acpica.o acpi_enum.o \
192		   master_ops.o osl.o osl_ml.o acpica_ec.o utcache.o \
193		   utmutex.o utstate.o dmbuffer.o dmnames.o dmobject.o \
194		   dmopcode.o dmresrc.o dmresrcl.o dmresrcs.o dmutils.o \
195		   dmwalk.o psloop.o uttrack.o
196
197POWER_OBJS	+= power.o
198
199GFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
200			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
201AGP_OBJS	+= agpmaster.o
202
203#	DRM Intel integrated chipsets (i915) codes
204I915_OBJS	+= i915_sundrv.o i915_dma.o i915_drv.o i915_irq.o i915_mem.o
205
206#
207#	Build up defines and paths.
208#
209ALL_DEFS	+= -Di86pc
210INC_PATH	+= -I$(UTSBASE)/i86pc
211
212#
213# Since assym.h is a derived file, the dependency must be explicit for
214# all files including this file. (This is only actually required in the
215# instance when the .nse_depinfo file does not exist.) It may seem that
216# the lint targets should also have a similar dependency, but they don't
217# since only C headers are included when #defined(__lint) is true.
218#
219ASSYM_DEPS      += 		\
220	copy.o			\
221	desctbls_asm.o		\
222	ddi_i86_asm.o		\
223	exception.o		\
224	fast_trap_asm.o		\
225	float.o			\
226	i86_subr.o		\
227	interrupt.o		\
228	lock_prim.o		\
229	locore.o		\
230	mpcore.o		\
231	sseblk.o		\
232	swtch.o			\
233	syscall_asm.o		\
234	syscall_asm_amd64.o
235