summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel/Makefile.files
blob: 4df166d8efb9843c3d80fad0a226d7aaea2731ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright 2019 Joyent, Inc.
# Copyright 2018 Nexenta Systems, Inc.
# Copyright 2019 Peter Tribble.
# Copyright 2022 Oxide Computer Company
#

#
#	This Makefile defines all file modules and build rules for the
# directory uts/intel and its children. These are the source files which
# are specific to x86 processor architectures.
#

#
#	Core (unix) objects
#
CORE_OBJS +=		\
	arch_kdi.o	\
	comm_page_util.o \
	copy.o		\
	copy_subr.o	\
	cpc_subr.o	\
	ddi_arch.o	\
	ddi_i86.o	\
	ddi_i86_asm.o	\
	desctbls.o	\
	desctbls_asm.o	\
	exception.o	\
	float.o		\
	fmsmb.o		\
	fpu.o		\
	i86_subr.o	\
	lock_prim.o	\
	ovbcopy.o	\
	polled_io.o	\
	retpoline.o	\
	sseblk.o	\
	sundep.o	\
	swtch.o		\
	sysi86.o

DBOOT_OBJS +=		\
	retpoline.o

#
#	Generic-unix Module
#
GENUNIX_OBJS +=		\
	archdep.o	\
	getcontext.o	\
	install_utrap.o	\
	lwp_private.o	\
	prom_enter.o	\
	prom_exit.o	\
	prom_panic.o	\
	sendsig.o	\
	syscall.o


#
#	PROM Routines
#
GENUNIX_OBJS +=		\
	prom_env.o	\
	prom_emul.o	\
	prom_getchar.o	\
	prom_init.o	\
	prom_node.o	\
	prom_printf.o	\
	prom_prop.o	\
	prom_putchar.o	\
	prom_reboot.o	\
	prom_version.o

#
#	file system modules
#
CORE_OBJS +=		\
	prmachdep.o

LX_CGROUP_OBJS +=	\
	cgrps_node.o	\
	cgrps_vfsops.o	\
	cgrps_vnops.o

LX_DEVFS_OBJS +=	\
	lxd_attrdb.o	\
	lxd_node.o	\
	lxd_vfsops.o	\
	lxd_vnops.o

LX_PROC_OBJS +=	\
	lx_prsubr.o	\
	lx_prvfsops.o	\
	lx_prvnops.o

LX_SYS_OBJS +=	\
	lx_syssubr.o	\
	lx_sysvfsops.o	\
	lx_sysvnops.o

LX_AUTOFS_OBJS +=	\
	lx_autofs.o

#
#	shared hypervisor functionality
#
CORE_OBJS +=		\
	hma.o		\
	hma_asm.o	\
	hma_fpu.o	\
	smt.o		\

#
#	ZFS file system module
#
ZFS_OBJS +=		\
	spa_boot.o

#
#	Decompression code
#
CORE_OBJS += decompress.o

#
#	Microcode utilities
#
CORE_OBJS += ucode_utils.o

#
#	Driver modules
#
ARCMSR_OBJS += arcmsr.o
ATA_OBJS += $(GHD_OBJS) ata_blacklist.o ata_common.o ata_disk.o \
	ata_dma.o atapi.o atapi_fsm.o ata_debug.o \
	sil3xxx.o
CMDK_OBJS += cmdk.o
CMLB_OBJS += cmlb.o
CPUNEX_OBJS += cpunex.o
DADK_OBJS += dadk.o
DCOPY_OBJS += dcopy.o
DNET_OBJS += dnet.o dnet_mii.o
FD_OBJS += fd.o
GDA_OBJS += gda.o
GHD_OBJS += ghd.o ghd_debug.o ghd_dma.o ghd_queue.o ghd_scsa.o \
	ghd_scsi.o ghd_timer.o ghd_waitq.o ghd_gcmd.o
I915_OBJS += i915_dma.o i915_drv.o i915_irq.o i915_mem.o \
	i915_gem.o i915_gem_debug.o i915_gem_tiling.o
NSKERN_OBJS += nsc_asm.o
PCICFG_OBJS += pcicfg.o
PCI_PCINEXUS_OBJS += pci_pci.o
PCIEB_OBJS += pcieb_x86.o
PIT_BEEP_OBJS += pit_beep.o
POWER_OBJS += power.o
PCI_AUTOCONFIG_OBJS += pci_autoconfig.o pci_boot.o pcie_nvidia.o \
			pci_memlist.o
RADEON_OBJS += r300_cmdbuf.o radeon_cp.o radeon_drv.o \
			radeon_state.o radeon_irq.o radeon_mem.o
SD_OBJS += sd.o sd_xbuf.o

STRATEGY_OBJS += strategy.o
UCODE_OBJS += ucode_drv.o
VGATEXT_OBJS += vgatext.o

#
#	Kernel linker
#
KRTLD_OBJS +=		\
	bootfsops.o	\
	bootrd.o	\
	bootrd_cpio.o	\
	ufsops.o	\
	hsfs.o		\
	doreloc.o	\
	kobj_boot.o	\
	kobj_convrelstr.o \
	kobj_crt.o	\
	kobj_isa.o	\
	kobj_reloc.o

#
#	misc. modules
#
ACPICA_OBJS	+= \
		   dmbuffer.o dmcstyle.o dmdeferred.o dmnames.o dmopcode.o \
		   dmresrc.o dmresrcl.o dmresrcl2.o dmresrcs.o dmutils.o \
		   dmwalk.o \
		   \
		   dsargs.o dscontrol.o dsdebug.o dsfield.o dsinit.o \
		   dsmethod.o dsmthdat.o dsobject.o dsopcode.o dsutils.o \
		   dswexec.o dswload.o dswload2.o dswscope.o dswstate.o \
		   dspkginit.o \
		   \
		   evevent.o evglock.o evgpe.o evgpeblk.o evgpeinit.o \
		   evgpeutil.o evhandler.o evmisc.o evregion.o evrgnini.o \
		   evsci.o evxface.o evxfevnt.o evxfgpe.o evxfregn.o \
		   \
		   exconcat.o exconfig.o exconvrt.o excreate.o exdebug.o \
		   exdump.o exfield.o exfldio.o exmisc.o exmutex.o exnames.o \
		   exoparg1.o exoparg2.o exoparg3.o exoparg6.o exprep.o \
		   exregion.o exresnte.o exresolv.o exresop.o exstore.o \
		   exstoren.o exstorob.o exsystem.o extrace.o exutils.o \
		   \
		   hwacpi.o hwesleep.o hwgpe.o hwpci.o hwregs.o hwsleep.o \
		   hwtimer.o hwvalid.o hwxface.o hwxfsleep.o \
		   \
		   psargs.o psloop.o psobject.o psopcode.o psopinfo.o \
		   psparse.o psscope.o pstree.o psutils.o pswalk.o psxface.o \
		   \
		   nsaccess.o nsalloc.o nsarguments.o nsconvert.o nsdump.o \
		   nsdumpdv.o nseval.o nsinit.o nsload.o nsnames.o nsobject.o \
		   nsparse.o nspredef.o nsprepkg.o nsrepair.o nsrepair2.o \
		   nssearch.o nsutils.o nswalk.o nsxfeval.o nsxfname.o \
		   nsxfobj.o \
		   \
		   rsaddr.o rscalc.o rscreate.o rsdump.o rsdumpinfo.o \
		   rsinfo.o rsio.o rsirq.o rslist.o rsmemory.o rsmisc.o \
		   rsserial.o rsutils.o rsxface.o \
		   \
		   tbdata.o tbfadt.o tbfind.o tbinstal.o tbprint.o tbutils.o \
		   tbxface.o tbxfload.o tbxfroot.o \
		   \
		   utaddress.o utalloc.o utascii.o utbuffer.o utcache.o \
		   utclib.o utcopy.o utdebug.o utdecode.o utdelete.o \
		   uterror.o uteval.o utexcep.o utglobal.o uthex.o utids.o \
		   utinit.o utlock.o utmath.o utmisc.o utmutex.o utnonansi.o \
		   utobject.o utosi.o utownerid.o utpredef.o utresrc.o \
		   utstate.o utstring.o uttrack.o utuuid.o utxface.o \
		   utxferror.o utxfinit.o utxfmutex.o utresdecode.o \
		   utstrsuppt.o utstrtoul64.o \
		   \
		   acpi_enum.o acpica_ec.o acpica.o ahids.o isapnp_devs.o \
		   osl_ml.o osl.o


FBT_OBJS += fbt.o
SDT_OBJS += sdt.o

#
#	AMD8111 NIC driver module
#
AMD8111S_OBJS += amd8111s_main.o amd8111s_hw.o

#
#	Pentium 4 Performance Counter BackEnd module
#
P4_PCBE_OBJS = p4_pcbe.o

#
#	AMD Opteron/Athlon64 Performance Counter BackEnd module
#
OPTERON_PCBE_OBJS = opteron_pcbe.o

#
#	Intel Core Architecture Performance Counter BackEnd module
#
CORE_PCBE_OBJS = core_pcbe.o

#
#	AMR module
#
AMR_OBJS = amr.o

#
#	IPMI module
IPMI_OBJS +=	ipmi_main.o ipmi.o ipmi_kcs.o

#
#	IOMMULIB module
#
IOMMULIB_OBJS = iommulib.o

#
#	Brand modules
#
SN1_BRAND_OBJS	=	sn1_brand.o sn1_brand_asm.o
S10_BRAND_OBJS	=	s10_brand.o s10_brand_asm.o
LX_BRAND_OBJS  =		\
	lx_access.o		\
	lx_acct.o		\
	lx_acl.o		\
	lx_aio.o		\
	lx_archdep.o		\
	lx_audit.o		\
	lx_auxv.o		\
	lx_brand.o		\
	lx_brk.o		\
	lx_chmod.o		\
	lx_chown.o		\
	lx_clone.o		\
	lx_close.o		\
	lx_cpu.o		\
	lx_dup.o		\
	lx_errno.o		\
	lx_epoll.o		\
	lx_eventfd.o		\
	lx_fadvise.o		\
	lx_fallocate.o		\
	lx_fcntl.o		\
	lx_futex.o		\
	lx_getcwd.o		\
	lx_getdents.o		\
	lx_getpid.o		\
	lx_getrandom.o		\
	lx_id.o			\
	lx_ioctl.o		\
	lx_ioprio.o		\
	lx_kill.o		\
	lx_link.o		\
	lx_lseek.o		\
	lx_mem.o		\
	lx_misc.o		\
	lx_miscsys.o		\
	lx_mkdir.o		\
	lx_modify_ldt.o		\
	lx_mount.o		\
	lx_lockd.o		\
	lx_open.o		\
	lx_personality.o	\
	lx_pgrp.o		\
	lx_pid.o		\
	lx_pipe.o		\
	lx_poll.o		\
	lx_prctl.o		\
	lx_priority.o		\
	lx_ptrace.o		\
	lx_rename.o		\
	lx_rlimit.o		\
	lx_rw.o			\
	lx_sched.o		\
	lx_signal.o		\
	lx_signum.o		\
	lx_socket.o		\
	lx_splice.o		\
	lx_stat.o		\
	lx_sync.o		\
	lx_syscall.o		\
	lx_sysinfo.o		\
	lx_thread_area.o	\
	lx_time.o		\
	lx_timer.o		\
	lx_umask.o		\
	lx_uname.o		\
	lx_wait.o		\
	lx_xattr.o

#
#	special files
#
MODSTUB_OBJ +=		\
	modstubs.o

BOOTDEV_OBJS +=		\
	bootdev.o

INC_PATH	+= -I$(UTSBASE)/intel


CPR_INTEL_OBJS +=	cpr_intel.o

#
# AMD family 0xf memory controller module
#
include $(SRC)/common/mc/mc-amd/Makefile.mcamd
MCAMD_OBJS	+= \
	$(MCAMD_CMN_OBJS) \
	mcamd_drv.o \
	mcamd_dimmcfg.o \
	mcamd_subr.o \
	mcamd_pcicfg.o

#
# Intel Nehalem memory controller module
#
INTEL_NHM_OBJS += \
	nhm_init.o \
	mem_addr.o \
	intel_nhmdrv.o \
	nhm_pci_cfg.o \
	dimm_topo.o \
	intel_nhm.o

#
# Intel 5000/5100/5400/7300 chipset memory controller hub (MCH) module
#
INTEL_NB5000_OBJS += \
	intel_nb5000.o \
	intel_nbdrv.o \
	dimm_addr.o \
	nb_pci_cfg.o \
	nb5000_init.o

#
# VMware VMXNET3 virtual network device
#
VMXNET3S_OBJS =	vmxnet3_main.o \
		vmxnet3_rx.o \
		vmxnet3_tx.o \
		vmxnet3_utils.o

#
# VMware PVSCSI SCSI Controller
#
PVSCSI_OBJS =	pvscsi.o

#
# Intel Temperature Module
#
CORETEMP_OBJS =	coretemp.o

#
# AMD Family 17 northbridge driver
#
AMDF17NBDF_OBJS = amdf17nbdf.o

#
# Intel Platform Controller Hub Temperature Module
#
PCHTEMP_OBJS = pchtemp.o

#
# AMD Family 10h-16h temperature driver
#
AMDNBTEMP_OBJS = amdnbtemp.o

#
# AMD Zen Nexus Driver
#
AMDZEN_OBJS = amdzen.o
AMDZEN_STUB_OBJS = amdzen_stub.o
SMNTEMP_OBJS = smntemp.o
USMN_OBJS = usmn.o
ZEN_UDF_OBJS = zen_udf.o

#
# Intel Integrated Memory Controller
# (Sandy Bridge - Cascade Lake)
#
IMC_OBJS =	imc.o imc_decode.o imc_dump.o
IMCSTUB_OBJS =	imcstub.o

#
# viona (VirtIO-Net Accelerated)
#
VIONA_OBJS = \
	viona_main.o \
	viona_ring.o \
	viona_rx.o \
	viona_tx.o \
	viona_hook.o

#
# bhyve PCI-passthru
#
PPT_OBJS = ppt.o

#
# bhyve VT-d
#
VMM_VTD_OBJS = vtd.o