xref: /netbsd-src/sys/arch/x86/conf/files.x86 (revision aef5eb5f59cdfe8314f1b5f78ac04eb144e44010)
1#	$NetBSD: files.x86,v 1.124 2022/09/24 11:05:18 riastradh Exp $
2
3# options for MP configuration through the MP spec
4defflag opt_mpbios.h MPBIOS MPDEBUG MPBIOS_SCANPCI
5defparam opt_mpbios.h MPVERBOSE
6
7# MTRR support
8defflag                 MTRR
9
10# Interrupt debug
11defflag opt_intrdebug.h	INTRDEBUG
12
13# PCI fixup options
14defflag opt_pcifixup.h	PCI_ADDR_FIXUP PCI_BUS_FIXUP
15			PCI_INTR_FIXUP PCI_INTR_FIXUP_FORCE
16defflag opt_pci.h	NO_PCI_MSI_MSIX
17
18# To be able to test for NetBSD/xen in shared files
19defflag	opt_xen.h		DO_NOT_DEFINE
20
21# Option to have a static kernel memory layout
22defflag opt_kaslr.h	NO_X86_ASLR
23
24defflag opt_efi.h	EFI_RUNTIME
25
26defflag	SVS
27
28defflag	PCPU_IDT
29
30define  cpubus { [apid = -1] }
31define	cpufeaturebus {}
32define  ioapicbus { [apid = -1] }
33
34# BIOS32 routines
35define	bios32: smbios
36file	arch/x86/x86/bios32.c		bios32 needs-flag
37
38#
39# CPU features
40#
41device	cpu: cpufeaturebus
42attach	cpu at cpubus
43file 	arch/x86/x86/cpu.c 		cpu & !xenpv
44file	arch/x86/x86/cpu_rng.c		cpu | vcpu
45
46device	acpicpu: acpi
47attach	acpicpu at cpufeaturebus
48file	dev/acpi/acpi_cpu.c		acpicpu
49file	dev/acpi/acpi_cpu_cstate.c	acpicpu
50file	dev/acpi/acpi_cpu_pstate.c	acpicpu
51file	dev/acpi/acpi_cpu_tstate.c	acpicpu
52file	arch/x86/acpi/acpi_cpu_md.c	acpicpu
53
54device	coretemp: sysmon_envsys
55attach	coretemp at cpufeaturebus
56file	arch/x86/x86/coretemp.c		coretemp
57
58device	est
59attach	est at cpufeaturebus
60file	arch/x86/x86/est.c		est
61file	arch/x86/x86/intel_busclock.c	est
62
63device	odcm
64attach	odcm at cpufeaturebus
65file	arch/x86/x86/odcm.c		odcm
66
67device	padlock: opencrypto, aes
68attach	padlock at cpufeaturebus
69file	arch/x86/x86/via_padlock.c	padlock
70
71device	powernow
72attach	powernow at cpufeaturebus
73file	arch/x86/x86/powernow.c		powernow
74
75device	viac7temp: sysmon_envsys
76attach	viac7temp at cpufeaturebus
77file	arch/x86/x86/viac7temp.c	viac7temp
78
79attach	vmt at cpufeaturebus
80file	arch/x86/x86/vmt.c		vmt
81
82device	hyperv
83attach	hyperv at cpufeaturebus
84file	arch/x86/x86/hyperv.c		hyperv needs-flag
85
86file	arch/x86/x86/apic.c		ioapic | lapic
87file	arch/x86/x86/bus_dma.c		machdep
88file	arch/x86/x86/bus_space.c	machdep
89file	arch/x86/x86/consinit.c		machdep & !xenpv
90file	arch/x86/x86/core_machdep.c	coredump
91file	arch/x86/x86/cpu_topology.c	machdep
92file	arch/x86/x86/db_memrw.c		ddb | kgdb
93file	arch/x86/x86/db_trace.c		ddb
94file	arch/x86/x86/efi_machdep.c	machdep
95file	arch/x86/x86/errata.c		machdep
96file	arch/x86/x86/genfb_machdep.c	machdep
97file	arch/x86/x86/identcpu.c		machdep
98file	arch/x86/x86/identcpu_subr.c	machdep
99file	arch/x86/x86/i8259.c		machdep & (!xenpv | dom0ops)
100file	arch/x86/x86/intr.c		machdep & !xenpv
101file	arch/x86/x86/x86_softintr.c	machdep
102file	arch/x86/x86/kgdb_machdep.c	kgdb
103file	arch/x86/x86/nmi.c		machdep
104file	arch/x86/x86/idt.c		machdep
105file	arch/x86/x86/ipi.c		machdep & !xenpv
106file	arch/x86/x86/mtrr_i686.c	mtrr & !xenpv
107file 	arch/x86/x86/patch.c		machdep & !xenpv
108file	dev/smbios_platform.c		machdep
109file 	arch/x86/x86/pmap.c		machdep
110file 	arch/x86/x86/x86_tlb.c		machdep
111file	arch/x86/x86/procfs_machdep.c	procfs
112file 	arch/x86/x86/svs.c		machdep & svs
113file	arch/x86/x86/sys_machdep.c	machdep
114file	arch/x86/x86/syscall.c		machdep
115file	arch/x86/x86/tsc.c		machdep
116file	arch/x86/x86/vm_machdep.c	machdep
117file	arch/x86/x86/x86_autoconf.c	machdep & !xenpv
118file	arch/x86/x86/x86_userconf.c	userconf
119file	arch/x86/x86/x86_machdep.c	machdep
120
121file 	uvm/pmap/pmap_pvt.c		machdep
122
123file	arch/x86/x86/cpu_ucode.c	cpu_ucode needs-flag
124file	arch/x86/x86/cpu_ucode_amd.c	cpu_ucode needs-flag
125file	arch/x86/x86/cpu_ucode_intel.c	cpu_ucode needs-flag
126file    arch/x86/x86/compat_60_cpu_ucode.c	compat_60 & cpu_ucode
127
128define	lapic
129file	arch/x86/x86/lapic.c		lapic needs-flag
130
131device	ioapic: lapic
132attach	ioapic at ioapicbus
133file	arch/x86/x86/ioapic.c		ioapic needs-flag
134
135# MP configuration using Intel SMP specification 1.4
136file 	arch/x86/x86/mpbios.c		mpbios
137
138# MP configuration using either ACPI or Intel SMP specification 1.4
139file 	arch/x86/x86/mp.c		acpi | mpbios
140
141# MP configuration using ACPI
142file 	arch/x86/x86/mpacpi.c		acpi
143
144file	arch/x86/acpi/acpi_pdc.c	acpi
145file	arch/x86/acpi/acpi_wakeup.c	acpi & !xenpv
146file	arch/x86/acpi/acpi_machdep.c	acpi
147
148file	arch/x86/isa/isa_machdep.c	isa
149
150# PC clock
151file 	arch/x86/isa/clock.c	!xenpv
152file	arch/x86/isa/rtc.c  	isa
153
154# Stubs for x86 routines not included in the system
155file	arch/x86/x86/x86_stub.c
156
157# IPMI device
158file	arch/x86/x86/x86_ipmi.c		ipmi needs-flag
159
160file	arch/x86/x86/vga_post.c		vga_post
161
162file	arch/x86/pci/pci_machdep.c	pci
163#file	arch/x86/pci/pci_ranges.c	pci
164file	arch/x86/pci/pci_intr_machdep.c	pci
165file	arch/x86/pci/pci_msi_machdep.c	pci & ! no_pci_msi_msix
166file	arch/x86/pci/msipic.c		pci & ! no_pci_msi_msix
167
168file	arch/x86/pci/pciide_machdep.c	pciide_common
169
170file	arch/x86/pci/pci_bus_fixup.c	pci_bus_fixup
171file	arch/x86/pci/pci_addr_fixup.c	pci_addr_fixup
172
173# AES-NI
174include "crypto/aes/arch/x86/files.aesni"
175
176# VIA ACE
177include "crypto/aes/arch/x86/files.aesvia"
178
179# Bitsliced AES with SSE2
180include "crypto/aes/arch/x86/files.aessse2"
181
182# Permutation-based AES with PSHUFB
183include "crypto/aes/arch/x86/files.aesssse3"
184
185# ChaCha with SSE2
186include "crypto/chacha/arch/x86/files.chacha_x86"
187