xref: /illumos-gate/usr/src/uts/intel/Makefile.files (revision fb2a9bae0030340ad72b9c26ba1ffee2ee3cafec)
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 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
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
103LX_PROC_OBJS +=	\
104	lx_prsubr.o	\
105	lx_prvfsops.o	\
106	lx_prvnops.o
107
108LX_AUTOFS_OBJS +=	\
109	lx_autofs.o
110
111#
112#	ZFS file system module
113#
114ZFS_OBJS +=		\
115	spa_boot.o
116
117#
118#	Decompression code
119#
120CORE_OBJS += decompress.o
121
122#
123#	Microcode utilities
124#
125CORE_OBJS += ucode_utils.o
126
127#
128#	Driver modules
129#
130AGPGART_OBJS +=	agpgart.o agp_kstat.o
131AGPTARGET_OBJS += agptarget.o
132AMD64GART_OBJS += amd64_gart.o
133ARCMSR_OBJS += arcmsr.o
134ATA_OBJS += $(GHD_OBJS) ata_blacklist.o ata_common.o ata_disk.o \
135	ata_dma.o atapi.o atapi_fsm.o ata_debug.o \
136	sil3xxx.o
137BSCBUS_OBJS += bscbus.o
138BSCV_OBJS += bscv.o
139CMDK_OBJS += cmdk.o
140CMLB_OBJS += cmlb.o
141CPUNEX_OBJS += cpunex.o
142DADK_OBJS += dadk.o
143DCOPY_OBJS += dcopy.o
144DNET_OBJS += dnet.o dnet_mii.o
145FD_OBJS += fd.o
146GDA_OBJS += gda.o
147GHD_OBJS += ghd.o ghd_debug.o ghd_dma.o ghd_queue.o ghd_scsa.o \
148	ghd_scsi.o ghd_timer.o ghd_waitq.o ghd_gcmd.o
149I915_OBJS += i915_dma.o i915_drv.o i915_irq.o i915_mem.o \
150	i915_gem.o i915_gem_debug.o i915_gem_tiling.o
151NSKERN_OBJS += nsc_asm.o
152PCICFG_OBJS += pcicfg.o
153PCI_PCINEXUS_OBJS += pci_pci.o
154PCIEB_OBJS += pcieb_x86.o
155PIT_BEEP_OBJS += pit_beep.o
156POWER_OBJS += power.o
157PCI_AUTOCONFIG_OBJS += pci_autoconfig.o pci_boot.o pcie_nvidia.o \
158			pci_memlist.o pci_resource.o
159RADEON_OBJS += r300_cmdbuf.o radeon_cp.o radeon_drv.o \
160			radeon_state.o radeon_irq.o radeon_mem.o
161SD_OBJS += sd.o sd_xbuf.o
162
163HECI_OBJS += 		\
164	heci_init.o	\
165	heci_intr.o	\
166	heci_interface.o \
167	io_heci.o	\
168	heci_main.o
169
170STRATEGY_OBJS += strategy.o
171UCODE_OBJS += ucode_drv.o
172VGATEXT_OBJS += vgatext.o vgasubr.o
173
174#
175#	Kernel linker
176#
177KRTLD_OBJS +=		\
178	bootrd.o	\
179	ufsops.o	\
180	hsfs.o		\
181	doreloc.o	\
182	kobj_boot.o	\
183	kobj_convrelstr.o \
184	kobj_crt.o	\
185	kobj_isa.o	\
186	kobj_reloc.o
187
188#
189#	misc. modules
190#
191ACPICA_OBJS	+= dbcmds.o dbdisply.o \
192		   dbexec.o dbfileio.o dbhistry.o dbinput.o dbstats.o \
193		   dbutils.o dbxface.o evevent.o evgpe.o evgpeblk.o \
194		   evmisc.o evregion.o evrgnini.o evsci.o evxface.o \
195		   evxfevnt.o evxfregn.o hwacpi.o hwgpe.o hwregs.o \
196		   hwsleep.o hwtimer.o dsfield.o dsinit.o dsmethod.o \
197		   dsmthdat.o dsobject.o dsopcode.o dsutils.o dswexec.o \
198		   dswload.o dswscope.o dswstate.o exconfig.o exconvrt.o \
199		   excreate.o exdump.o exfield.o exfldio.o exmisc.o \
200		   exmutex.o exnames.o exoparg1.o exoparg2.o exoparg3.o \
201		   exoparg6.o exprep.o exregion.o exresnte.o exresolv.o \
202		   exresop.o exstore.o exstoren.o exstorob.o exsystem.o \
203		   exutils.o psargs.o psopcode.o psparse.o psscope.o \
204		   pstree.o psutils.o pswalk.o psxface.o nsaccess.o \
205		   nsalloc.o nsdump.o nsdumpdv.o nseval.o nsinit.o \
206		   nsload.o nsnames.o nsobject.o nsparse.o nssearch.o \
207		   nsutils.o nswalk.o nsxfeval.o nsxfname.o nsxfobj.o \
208		   rsaddr.o rscalc.o rscreate.o rsdump.o \
209		   rsinfo.o rsio.o rsirq.o rslist.o rsmemory.o rsmisc.o \
210		   rsutils.o rsxface.o tbfadt.o tbfind.o tbinstal.o  \
211		   tbutils.o tbxface.o tbxfroot.o \
212		   utalloc.o utclib.o utcopy.o utdebug.o utdelete.o \
213		   uteval.o utglobal.o utinit.o utmath.o utmisc.o \
214		   utobject.o utresrc.o utxface.o acpica.o acpi_enum.o \
215		   master_ops.o osl.o osl_ml.o acpica_ec.o utcache.o \
216		   utmutex.o utstate.o dmbuffer.o dmnames.o dmobject.o \
217		   dmopcode.o dmresrc.o dmresrcl.o dmresrcs.o dmutils.o \
218		   dmwalk.o psloop.o nspredef.o hwxface.o hwvalid.o \
219		   utlock.o utids.o nsrepair.o nsrepair2.o
220
221AGP_OBJS += agpmaster.o
222FBT_OBJS += fbt.o
223SDT_OBJS += sdt.o
224
225#
226#	AMD8111 NIC driver module
227#
228AMD8111S_OBJS += amd8111s_main.o amd8111s_hw.o
229
230#
231#	Pentium Performance Counter BackEnd module
232#
233P123_PCBE_OBJS = p123_pcbe.o
234
235#
236#	Pentium 4 Performance Counter BackEnd module
237#
238P4_PCBE_OBJS = p4_pcbe.o
239
240#
241#	AMD Opteron/Athlon64 Performance Counter BackEnd module
242#
243OPTERON_PCBE_OBJS = opteron_pcbe.o
244
245#
246#	Intel Core Architecture Performance Counter BackEnd module
247#
248CORE_PCBE_OBJS = core_pcbe.o
249
250#
251#	AMR module
252#
253AMR_OBJS = amr.o
254
255#
256#	IOMMULIB module
257#
258IOMMULIB_OBJS = iommulib.o
259
260#
261#	Brand modules
262#
263SN1_BRAND_OBJS	=	sn1_brand.o sn1_brand_asm.o
264S10_BRAND_OBJS	=	s10_brand.o s10_brand_asm.o
265
266LX_BRAND_OBJS  =		\
267	lx_brand.o		\
268	lx_brand_asm.o		\
269	lx_brk.o		\
270	lx_clone.o		\
271	lx_futex.o		\
272	lx_getpid.o		\
273	lx_id.o			\
274	lx_kill.o		\
275	lx_misc.o		\
276	lx_modify_ldt.o		\
277	lx_pid.o		\
278	lx_sched.o		\
279	lx_signum.o		\
280	lx_syscall.o		\
281	lx_sysinfo.o		\
282	lx_thread_area.o
283
284#
285#	special files
286#
287MODSTUB_OBJ +=	 	\
288	modstubs.o
289
290BOOTDEV_OBJS +=		\
291	bootdev.o
292
293INC_PATH	+= -I$(UTSBASE)/intel
294
295
296CPR_INTEL_OBJS +=	cpr_intel.o
297
298#
299# AMD family 0xf memory controller module
300#
301include $(SRC)/common/mc/mc-amd/Makefile.mcamd
302MCAMD_OBJS	+= \
303	$(MCAMD_CMN_OBJS) \
304	mcamd_drv.o \
305	mcamd_dimmcfg.o \
306	mcamd_subr.o \
307	mcamd_pcicfg.o
308