xref: /titanic_50/usr/src/uts/intel/Makefile.files (revision 8a790dc67da1bad097488e7ad4a58af32d7ab24d)
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 (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24# Copyright (c) 2013, Joyent, Inc. All rights reserved.
25#
26
27#
28#	This Makefile defines all file modules and build rules for the
29# directory uts/intel and its children. These are the source files which
30# are specific to x86 processor architectures.
31#
32
33#
34#	Core (unix) objects
35#
36CORE_OBJS +=		\
37	arch_kdi.o	\
38	copy.o		\
39	copy_subr.o	\
40	cpc_subr.o	\
41	ddi_arch.o	\
42	ddi_i86.o	\
43	ddi_i86_asm.o	\
44	desctbls.o	\
45	desctbls_asm.o	\
46	exception.o	\
47	float.o		\
48	fmsmb.o		\
49	fpu.o		\
50	i86_subr.o	\
51	lock_prim.o	\
52	ovbcopy.o	\
53	polled_io.o	\
54	sseblk.o	\
55	sundep.o	\
56	swtch.o		\
57	sysi86.o
58
59#
60# 64-bit multiply/divide compiler helper routines
61# used only for ia32
62#
63
64SPECIAL_OBJS_32 +=	\
65	muldiv.o
66
67#
68#	Generic-unix Module
69#
70GENUNIX_OBJS +=		\
71	archdep.o	\
72	getcontext.o	\
73	install_utrap.o	\
74	lwp_private.o	\
75	prom_enter.o	\
76	prom_exit.o	\
77	prom_panic.o	\
78	sendsig.o	\
79	syscall.o
80
81
82#
83#	PROM Routines
84#
85GENUNIX_OBJS +=		\
86	prom_env.o	\
87	prom_emul.o	\
88	prom_getchar.o	\
89	prom_init.o	\
90	prom_node.o	\
91	prom_printf.o	\
92	prom_prop.o	\
93	prom_putchar.o	\
94	prom_reboot.o	\
95	prom_version.o
96
97#
98#	file system modules
99#
100CORE_OBJS +=		\
101	prmachdep.o
102
103#
104#	ZFS file system module
105#
106ZFS_OBJS +=		\
107	spa_boot.o
108
109#
110#	Decompression code
111#
112CORE_OBJS += decompress.o
113
114#
115#	Microcode utilities
116#
117CORE_OBJS += ucode_utils.o
118
119#
120#	Driver modules
121#
122AGPGART_OBJS +=	agpgart.o agp_kstat.o
123AGPTARGET_OBJS += agptarget.o
124AMD64GART_OBJS += amd64_gart.o
125ARCMSR_OBJS += arcmsr.o
126ATA_OBJS += $(GHD_OBJS) ata_blacklist.o ata_common.o ata_disk.o \
127	ata_dma.o atapi.o atapi_fsm.o ata_debug.o \
128	sil3xxx.o
129BSCBUS_OBJS += bscbus.o
130BSCV_OBJS += bscv.o
131CMDK_OBJS += cmdk.o
132CMLB_OBJS += cmlb.o
133CPUNEX_OBJS += cpunex.o
134DADK_OBJS += dadk.o
135DCOPY_OBJS += dcopy.o
136DNET_OBJS += dnet.o dnet_mii.o
137FD_OBJS += fd.o
138GDA_OBJS += gda.o
139GHD_OBJS += ghd.o ghd_debug.o ghd_dma.o ghd_queue.o ghd_scsa.o \
140	ghd_scsi.o ghd_timer.o ghd_waitq.o ghd_gcmd.o
141I915_OBJS += i915_dma.o i915_drv.o i915_irq.o i915_mem.o \
142	i915_gem.o i915_gem_debug.o i915_gem_tiling.o
143NSKERN_OBJS += nsc_asm.o
144PCICFG_OBJS += pcicfg.o
145PCI_PCINEXUS_OBJS += pci_pci.o
146PCIEB_OBJS += pcieb_x86.o
147PIT_BEEP_OBJS += pit_beep.o
148POWER_OBJS += power.o
149PCI_AUTOCONFIG_OBJS += pci_autoconfig.o pci_boot.o pcie_nvidia.o \
150			pci_memlist.o pci_resource.o
151RADEON_OBJS += r300_cmdbuf.o radeon_cp.o radeon_drv.o \
152			radeon_state.o radeon_irq.o radeon_mem.o
153SD_OBJS += sd.o sd_xbuf.o
154
155HECI_OBJS += 		\
156	heci_init.o	\
157	heci_intr.o	\
158	heci_interface.o \
159	io_heci.o	\
160	heci_main.o
161
162STRATEGY_OBJS += strategy.o
163UCODE_OBJS += ucode_drv.o
164VGATEXT_OBJS += vgatext.o vgasubr.o
165
166#
167#	Kernel linker
168#
169KRTLD_OBJS +=		\
170	bootfsops.o	\
171	bootrd.o	\
172	ufsops.o	\
173	hsfs.o		\
174	doreloc.o	\
175	kobj_boot.o	\
176	kobj_convrelstr.o \
177	kobj_crt.o	\
178	kobj_isa.o	\
179	kobj_reloc.o
180
181#
182#	misc. modules
183#
184ACPICA_OBJS	+= \
185		   dmbuffer.o dmcstyle.o dmdeferred.o dmnames.o dmopcode.o \
186		   dmresrc.o dmresrcl.o dmresrcl2.o dmresrcs.o dmutils.o \
187		   dmwalk.o \
188		   \
189		   dsargs.o dscontrol.o dsdebug.o dsfield.o dsinit.o \
190		   dsmethod.o dsmthdat.o dsobject.o dsopcode.o dsutils.o \
191		   dswexec.o dswload.o dswload2.o dswscope.o dswstate.o \
192		   \
193		   evevent.o evglock.o evgpe.o evgpeblk.o evgpeinit.o \
194		   evgpeutil.o evhandler.o evmisc.o evregion.o evrgnini.o \
195		   evsci.o evxface.o evxfevnt.o evxfgpe.o evxfregn.o \
196		   \
197		   exconcat.o exconfig.o exconvrt.o excreate.o exdebug.o \
198		   exdump.o exfield.o exfldio.o exmisc.o exmutex.o exnames.o \
199		   exoparg1.o exoparg2.o exoparg3.o exoparg6.o exprep.o \
200		   exregion.o exresnte.o exresolv.o exresop.o exstore.o \
201		   exstoren.o exstorob.o exsystem.o extrace.o exutils.o \
202		   \
203		   hwacpi.o hwesleep.o hwgpe.o hwpci.o hwregs.o hwsleep.o \
204		   hwtimer.o hwvalid.o hwxface.o hwxfsleep.o \
205		   \
206		   psargs.o psloop.o psobject.o psopcode.o psopinfo.o \
207		   psparse.o psscope.o pstree.o psutils.o pswalk.o psxface.o \
208		   \
209		   nsaccess.o nsalloc.o nsarguments.o nsconvert.o nsdump.o \
210		   nsdumpdv.o nseval.o nsinit.o nsload.o nsnames.o nsobject.o \
211		   nsparse.o nspredef.o nsprepkg.o nsrepair.o nsrepair2.o \
212		   nssearch.o nsutils.o nswalk.o nsxfeval.o nsxfname.o \
213		   nsxfobj.o \
214		   \
215		   rsaddr.o rscalc.o rscreate.o rsdump.o rsdumpinfo.o \
216		   rsinfo.o rsio.o rsirq.o rslist.o rsmemory.o rsmisc.o \
217		   rsserial.o rsutils.o rsxface.o \
218		   \
219		   tbdata.o tbfadt.o tbfind.o tbinstal.o tbprint.o tbutils.o \
220		   tbxface.o tbxfload.o tbxfroot.o \
221		   \
222		   utaddress.o utalloc.o utascii.o utbuffer.o utcache.o \
223		   utclib.o utcopy.o utdebug.o utdecode.o utdelete.o \
224		   uterror.o uteval.o utexcep.o utglobal.o uthex.o utids.o \
225		   utinit.o utlock.o utmath.o utmisc.o utmutex.o utnonansi.o \
226		   utobject.o utosi.o utownerid.o utpredef.o utprint.o \
227		   utresrc.o utstate.o utstring.o uttrack.o utuuid.o utxface.o \
228		   utxferror.o utxfinit.o utxfmutex.o \
229		   \
230		   acpi_enum.o acpica_ec.o acpica.o ahids.o master_ops.o \
231		   osl_ml.o osl.o
232
233
234AGP_OBJS += agpmaster.o
235FBT_OBJS += fbt.o
236SDT_OBJS += sdt.o
237
238#
239#	AMD8111 NIC driver module
240#
241AMD8111S_OBJS += amd8111s_main.o amd8111s_hw.o
242
243#
244#	Pentium Performance Counter BackEnd module
245#
246P123_PCBE_OBJS = p123_pcbe.o
247
248#
249#	Pentium 4 Performance Counter BackEnd module
250#
251P4_PCBE_OBJS = p4_pcbe.o
252
253#
254#	AMD Opteron/Athlon64 Performance Counter BackEnd module
255#
256OPTERON_PCBE_OBJS = opteron_pcbe.o
257
258#
259#	Intel Core Architecture Performance Counter BackEnd module
260#
261CORE_PCBE_OBJS = core_pcbe.o
262
263#
264#	AMR module
265#
266AMR_OBJS = amr.o
267
268#
269#	IPMI module
270IPMI_OBJS +=	ipmi_main.o ipmi.o ipmi_kcs.o
271
272#
273#	IOMMULIB module
274#
275IOMMULIB_OBJS = iommulib.o
276
277#
278#	Brand modules
279#
280SN1_BRAND_OBJS	=	sn1_brand.o sn1_brand_asm.o
281S10_BRAND_OBJS	=	s10_brand.o s10_brand_asm.o
282
283#
284#	special files
285#
286MODSTUB_OBJ +=	 	\
287	modstubs.o
288
289BOOTDEV_OBJS +=		\
290	bootdev.o
291
292INC_PATH	+= -I$(UTSBASE)/intel
293
294
295CPR_INTEL_OBJS +=	cpr_intel.o
296
297#
298# AMD family 0xf memory controller module
299#
300include $(SRC)/common/mc/mc-amd/Makefile.mcamd
301MCAMD_OBJS	+= \
302	$(MCAMD_CMN_OBJS) \
303	mcamd_drv.o \
304	mcamd_dimmcfg.o \
305	mcamd_subr.o \
306	mcamd_pcicfg.o
307
308#
309# Intel Nehalem memory controller module
310#
311INTEL_NHM_OBJS += \
312	nhm_init.o \
313	mem_addr.o \
314	intel_nhmdrv.o \
315	nhm_pci_cfg.o \
316	dimm_topo.o \
317	intel_nhm.o
318
319#
320# Intel 5000/5100/5400/7300 chipset memory controller hub (MCH) module
321#
322INTEL_NB5000_OBJS += \
323	intel_nb5000.o \
324	intel_nbdrv.o \
325	dimm_addr.o \
326	nb_pci_cfg.o \
327	nb5000_init.o
328