xref: /titanic_50/usr/src/uts/sun4v/Makefile.files (revision 8668df41d90e075636bc3817b28ad77cbd470959)
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 2007 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 all file modules for the directory uts/sun4v
29#	and it's children. These are the source files which are sun4u
30#	"implementation architecture" dependent.
31#
32
33#
34#	object lists
35#
36CORE_OBJS +=	bootops.o
37CORE_OBJS +=	prom_alloc.o
38CORE_OBJS +=	cmp.o
39CORE_OBJS +=	cpc_hwreg.o
40CORE_OBJS +=	cpc_subr.o
41CORE_OBJS +=	error.o
42CORE_OBJS +=	fillsysinfo.o
43CORE_OBJS +=	forthdebug.o
44CORE_OBJS +=	hardclk.o
45CORE_OBJS +=	hat_sfmmu.o
46CORE_OBJS +=	hat_kdi.o
47CORE_OBJS +=	hsvc.o
48CORE_OBJS +=	lpad.o
49CORE_OBJS +=	mach_cpu_states.o
50CORE_OBJS +=	mach_ddi_impl.o
51CORE_OBJS +=	mach_descrip.o
52CORE_OBJS +=	mach_kpm.o
53CORE_OBJS +=	mach_mp_startup.o
54CORE_OBJS +=	mach_mp_states.o
55CORE_OBJS +=	mach_proc_init.o
56CORE_OBJS +=	mach_sfmmu.o
57CORE_OBJS +=	mach_startup.o
58CORE_OBJS +=	mach_subr_asm.o
59CORE_OBJS +=	mach_trap.o
60CORE_OBJS +=	mach_vm_dep.o
61CORE_OBJS +=	mach_xc.o
62CORE_OBJS +=	mem_cage.o
63CORE_OBJS +=	mem_config.o
64CORE_OBJS +=	memlist_new.o
65CORE_OBJS +=	ppage.o
66CORE_OBJS +=	promif_asr.o
67CORE_OBJS +=	promif_cpu.o
68CORE_OBJS +=	promif_emul.o
69CORE_OBJS +=	promif_mon.o
70CORE_OBJS +=	promif_io.o
71CORE_OBJS +=	promif_interp.o
72CORE_OBJS +=	promif_key.o
73CORE_OBJS +=	promif_power_off.o
74CORE_OBJS +=	promif_prop.o
75CORE_OBJS +=	promif_node.o
76CORE_OBJS +=	promif_reboot.o
77CORE_OBJS +=	promif_stree.o
78CORE_OBJS +=	promif_test.o
79CORE_OBJS +=	promif_version.o
80CORE_OBJS +=	sfmmu_kdi.o
81CORE_OBJS +=	swtch.o
82CORE_OBJS +=	wdt.o
83CORE_OBJS +=	xhat_sfmmu.o
84
85CORE_OBJS +=	mdesc_diff.o
86CORE_OBJS +=	mdesc_findname.o
87CORE_OBJS +=	mdesc_findnodeprop.o
88CORE_OBJS +=	mdesc_fini.o
89CORE_OBJS +=	mdesc_getbinsize.o
90CORE_OBJS +=	mdesc_getgen.o
91CORE_OBJS +=	mdesc_getpropdata.o
92CORE_OBJS +=	mdesc_getpropstr.o
93CORE_OBJS +=	mdesc_getpropval.o
94CORE_OBJS +=	mdesc_init_intern.o
95CORE_OBJS +=	mdesc_nodecount.o
96CORE_OBJS +=	mdesc_rootnode.o
97CORE_OBJS +=	mdesc_scandag.o
98
99#
100#	Some objects must be linked at the front of the image (or
101#	near other objects at the front of the image).
102#
103SPECIAL_OBJS +=	trap_table.o
104SPECIAL_OBJS +=	locore.o
105SPECIAL_OBJS +=	mach_locore.o
106SPECIAL_OBJS +=	sfmmu_asm.o
107SPECIAL_OBJS +=	mach_sfmmu_asm.o
108SPECIAL_OBJS +=	interrupt.o
109SPECIAL_OBJS +=	mach_interrupt.o
110SPECIAL_OBJS +=	wbuf.o
111SPECIAL_OBJS += hcall.o
112SPECIAL_OBJS += intrq.o
113
114#
115#			driver modules
116#
117ROOTNEX_OBJS	+= mach_rootnex.o
118PX_OBJS		+= px_lib4v.o px_err.o px_tools_4v.o px_hcall.o
119FPC_OBJS	+= fpc-impl-4v.o fpc-asm-4v.o
120N2PIUPC_OBJS	+= n2piupc.o n2piupc_tables.o n2piupc_kstats.o \
121			n2piupc_biterr.o n2piupc_asm.o
122TRAPSTAT_OBJS	+= trapstat.o
123NIUMX_OBJS	+= niumx.o
124
125#
126# 			CPU/Memory Error Injector (memtest) sun4v driver
127#
128MEMTEST_OBJS	+= memtest.o memtest_asm.o \
129			memtest_v.o memtest_v_asm.o \
130			memtest_ni.o memtest_ni_asm.o \
131			memtest_n2.o memtest_n2_asm.o
132
133#
134#			sun4v virtual devices
135#
136QCN_OBJS	= qcn.o
137VNEX_OBJS	= vnex.o
138CNEX_OBJS	= cnex.o
139GLVC_OBJS	= glvc.o glvc_hcall.o
140MDESC_OBJS	= mdesc.o
141LDC_OBJS	= ldc.o vio_util.o vdsk_common.o
142NTWDT_OBJS	= ntwdt.o
143VLDC_OBJS	= vldc.o
144VCC_OBJS	= vcc.o
145VNET_OBJS	= vnet.o vnet_gen.o
146VSW_OBJS	= vsw.o
147VDC_OBJS	= vdc.o
148VDS_OBJS	= vds.o
149
150#
151#			Misc modules
152#
153BOOTDEV_OBJS	+= bootdev.o
154DR_CPU_OBJS	+= dr_cpu.o
155DRCTL_OBJS	= drctl.o drctl_impl.o dr_util.o
156DS_OBJS		= ds.o
157FAULT_ISO_OBJS	= fault_iso.o
158OBPSYM_OBJS	+= obpsym.o obpsym_1275.o
159PLATSVC_OBJS	= platsvc.o mdeg.o
160
161#
162#			Performance Counter BackEnd (PCBE) Modules
163#
164NI_PCBE_OBJS	= niagara_pcbe.o
165N2_PCBE_OBJS	= niagara2_pcbe.o
166
167#
168#			cpu modules
169# XXXQ Make generic4vcpu
170#
171CPU_OBJ		+= $(OBJS_DIR)/mach_cpu_module.o
172GENERIC_OBJS = generic.o generic_copy.o common_asm.o
173NIAGARACPU_OBJS = niagara.o niagara_copy.o common_asm.o niagara_perfctr.o
174NIAGARACPU_OBJS += niagara_asm.o
175NIAGARA2CPU_OBJS = niagara2.o niagara_copy.o common_asm.o niagara_perfctr.o
176NIAGARA2CPU_OBJS += niagara2_asm.o
177
178#
179#			platform module
180#
181PLATMOD_OBJS	= platmod.o
182
183#	Section 3:	Misc.
184#
185ALL_DEFS	+= -Dsun4u -Dsun4v
186INC_PATH	+= -I$(UTSBASE)/sun4v
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 .make.state 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	+= mach_locore.o
195ASSYM_DEPS	+= module_sfmmu_asm.o
196ASSYM_DEPS	+= generic_asm.o generic_copy.o
197ASSYM_DEPS	+= niagara_copy.o niagara_asm.o niagara2_asm.o
198ASSYM_DEPS	+= mach_subr_asm.o swtch.o
199ASSYM_DEPS	+= mach_interrupt.o mach_xc.o
200ASSYM_DEPS	+= trap_table.o wbuf.o
201ASSYM_DEPS	+= mach_sfmmu_asm.o sfmmu_asm.o
202
203#
204#			kernel cryptographic framework
205#
206
207ARCFOUR_OBJS	+= arcfour.o arcfour_crypt.o
208
209#
210#	N2/NIU 10G driver module
211#
212NXGE_OBJS =	nxge_mac.o nxge_ipp.o nxge_rxdma.o 		\
213		nxge_txdma.o nxge_txc.o	nxge_main.o		\
214		nxge_hw.o nxge_fzc.o nxge_virtual.o		\
215		nxge_send.o nxge_classify.o nxge_fflp.o		\
216		nxge_fflp_hash.o nxge_ndd.o nxge_kstats.o	\
217		nxge_zcp.o nxge_fm.o nxge_espc.o nxge_hcall.o
218
219NXGE_NPI_OBJS =	\
220		npi.o npi_mac.o	npi_ipp.o			\
221		npi_txdma.o npi_rxdma.o	npi_txc.o		\
222		npi_zcp.o npi_espc.o npi_fflp.o			\
223		npi_vir.o
224
225#
226