xref: /netbsd-src/sys/arch/x86/conf/files.x86 (revision fb9e2578dec9937a44b313d971798434670a747d)
1*fb9e2578Srin#	$NetBSD: files.x86,v 1.126 2023/06/14 01:27:47 rin Exp $
28375b2d9Sfvdl
38375b2d9Sfvdl# options for MP configuration through the MP spec
416918744Spgoyettedefflag opt_mpbios.h MPBIOS MPDEBUG MPBIOS_SCANPCI
516918744Spgoyettedefparam opt_mpbios.h MPVERBOSE
68375b2d9Sfvdl
78375b2d9Sfvdl# MTRR support
88375b2d9Sfvdldefflag                 MTRR
98375b2d9Sfvdl
10720a7dcaSdyoung# Interrupt debug
11720a7dcaSdyoungdefflag opt_intrdebug.h	INTRDEBUG
12720a7dcaSdyoung
1365570c38Scube# PCI fixup options
14*fb9e2578Srindefflag opt_pcifixup.h	PCI_BUS_FIXUP PCI_INTR_FIXUP PCI_INTR_FIXUP_FORCE
15*fb9e2578Srindefflag opt_pcifixup.h	PCI_ADDR_FIXUP : PCI_BUS_FIXUP
168896f6c3Sjdolecekdefflag opt_pci.h	NO_PCI_MSI_MSIX
1765570c38Scube
188aefa8aaSad# To be able to test for NetBSD/xen in shared files
198aefa8aaSaddefflag	opt_xen.h		DO_NOT_DEFINE
208aefa8aaSad
21ac147c2aSmaxv# Option to have a static kernel memory layout
22ac147c2aSmaxvdefflag opt_kaslr.h	NO_X86_ASLR
23ac147c2aSmaxv
24a5c6d94aSchristosdefflag	SVS
25a5c6d94aSchristos
266386396aSyamaguchidefflag	PCPU_IDT
276386396aSyamaguchi
2846289e1fSdrochnerdefine  cpubus { [apid = -1] }
29d86215c4Sjmcneilldefine	cpufeaturebus {}
30d8800825Sdrochnerdefine  ioapicbus { [apid = -1] }
318375b2d9Sfvdl
320dc41925Smaxv# BIOS32 routines
33b2c90ce3Sjmcneilldefine	bios32: smbios
340dc41925Smaxvfile	arch/x86/x86/bios32.c		bios32 needs-flag
350dc41925Smaxv
363338a139Sxtraeme#
37acdf2636Sjruoho# CPU features
383338a139Sxtraeme#
39d86215c4Sjmcneilldevice	cpu: cpufeaturebus
403338a139Sxtraemeattach	cpu at cpubus
41c24c993fSbouyerfile 	arch/x86/x86/cpu.c 		cpu & !xenpv
42c24c993fSbouyerfile	arch/x86/x86/cpu_rng.c		cpu | vcpu
433338a139Sxtraeme
440895dc72Suebayasidevice	acpicpu: acpi
45494badebSjruohoattach	acpicpu at cpufeaturebus
460895dc72Suebayasifile	dev/acpi/acpi_cpu.c		acpicpu
470895dc72Suebayasifile	dev/acpi/acpi_cpu_cstate.c	acpicpu
480895dc72Suebayasifile	dev/acpi/acpi_cpu_pstate.c	acpicpu
490895dc72Suebayasifile	dev/acpi/acpi_cpu_tstate.c	acpicpu
500895dc72Suebayasifile	arch/x86/acpi/acpi_cpu_md.c	acpicpu
51494badebSjruoho
52ad932f2cSjruohodevice	coretemp: sysmon_envsys
53ad932f2cSjruohoattach	coretemp at cpufeaturebus
54ad932f2cSjruohofile	arch/x86/x86/coretemp.c		coretemp
55ad932f2cSjruoho
56acdf2636Sjruohodevice	est
57acdf2636Sjruohoattach	est at cpufeaturebus
58acdf2636Sjruohofile	arch/x86/x86/est.c		est
59acdf2636Sjruohofile	arch/x86/x86/intel_busclock.c	est
60acdf2636Sjruoho
61839fb5faSjruohodevice	odcm
62839fb5faSjruohoattach	odcm at cpufeaturebus
63839fb5faSjruohofile	arch/x86/x86/odcm.c		odcm
64839fb5faSjruoho
654509949aSriastradhdevice	padlock: opencrypto, aes
66d86215c4Sjmcneillattach	padlock at cpufeaturebus
67d86215c4Sjmcneillfile	arch/x86/x86/via_padlock.c	padlock
68d86215c4Sjmcneill
69ad932f2cSjruohodevice	powernow
70ad932f2cSjruohoattach	powernow at cpufeaturebus
71ad932f2cSjruohofile	arch/x86/x86/powernow.c		powernow
72ad932f2cSjruoho
73db31212bSjruohodevice	viac7temp: sysmon_envsys
74db31212bSjruohoattach	viac7temp at cpufeaturebus
75db31212bSjruohofile	arch/x86/x86/viac7temp.c	viac7temp
76db31212bSjruoho
77233dd477Sjmcneillattach	vmt at cpufeaturebus
78233dd477Sjmcneillfile	arch/x86/x86/vmt.c		vmt
79233dd477Sjmcneill
8050517e57Snonakadevice	hyperv
8150517e57Snonakaattach	hyperv at cpufeaturebus
8250517e57Snonakafile	arch/x86/x86/hyperv.c		hyperv needs-flag
8350517e57Snonaka
848375b2d9Sfvdlfile	arch/x86/x86/apic.c		ioapic | lapic
8546d7be3cSuebayasifile	arch/x86/x86/bus_dma.c		machdep
8646d7be3cSuebayasifile	arch/x86/x86/bus_space.c	machdep
87c24c993fSbouyerfile	arch/x86/x86/consinit.c		machdep & !xenpv
8874a033c8Srmindfile	arch/x86/x86/core_machdep.c	coredump
8946d7be3cSuebayasifile	arch/x86/x86/cpu_topology.c	machdep
908cf41b76Sjymfile	arch/x86/x86/db_memrw.c		ddb | kgdb
91a640264eSchristosfile	arch/x86/x86/db_trace.c		ddb
9206b9790dSriastradhfile	arch/x86/x86/efi_machdep.c	machdep
9346d7be3cSuebayasifile	arch/x86/x86/errata.c		machdep
9446d7be3cSuebayasifile	arch/x86/x86/genfb_machdep.c	machdep
9546d7be3cSuebayasifile	arch/x86/x86/identcpu.c		machdep
960360a7d3Smsaitohfile	arch/x86/x86/identcpu_subr.c	machdep
97c24c993fSbouyerfile	arch/x86/x86/i8259.c		machdep & (!xenpv | dom0ops)
98c24c993fSbouyerfile	arch/x86/x86/intr.c		machdep & !xenpv
99c24c993fSbouyerfile	arch/x86/x86/x86_softintr.c	machdep
1000f472b0eSmaxvfile	arch/x86/x86/kgdb_machdep.c	kgdb
10146d7be3cSuebayasifile	arch/x86/x86/nmi.c		machdep
10246d7be3cSuebayasifile	arch/x86/x86/idt.c		machdep
10385af261eSbouyerfile	arch/x86/x86/ipi.c		machdep & !xenpv
104c24c993fSbouyerfile	arch/x86/x86/mtrr_i686.c	mtrr & !xenpv
105c24c993fSbouyerfile 	arch/x86/x86/patch.c		machdep & !xenpv
106ee93ad3bSjmcneillfile	dev/smbios_platform.c		machdep
10746d7be3cSuebayasifile 	arch/x86/x86/pmap.c		machdep
1087a3d2640Sjdolecekfile 	arch/x86/x86/x86_tlb.c		machdep
1097c940b71Srmindfile	arch/x86/x86/procfs_machdep.c	procfs
110f6349765Smaxvfile 	arch/x86/x86/svs.c		machdep & svs
11146d7be3cSuebayasifile	arch/x86/x86/sys_machdep.c	machdep
11246d7be3cSuebayasifile	arch/x86/x86/syscall.c		machdep
11346d7be3cSuebayasifile	arch/x86/x86/tsc.c		machdep
11446d7be3cSuebayasifile	arch/x86/x86/vm_machdep.c	machdep
115c24c993fSbouyerfile	arch/x86/x86/x86_autoconf.c	machdep & !xenpv
1160840f9ccSdyoungfile	arch/x86/x86/x86_userconf.c	userconf
11746d7be3cSuebayasifile	arch/x86/x86/x86_machdep.c	machdep
1188375b2d9Sfvdl
119b70033bcSskrllfile 	uvm/pmap/pmap_pvt.c		machdep
120b70033bcSskrll
121a3f6c067Sceggerfile	arch/x86/x86/cpu_ucode.c	cpu_ucode needs-flag
122a3f6c067Sceggerfile	arch/x86/x86/cpu_ucode_amd.c	cpu_ucode needs-flag
123312c3390Sdrochnerfile	arch/x86/x86/cpu_ucode_intel.c	cpu_ucode needs-flag
12483b317daSchristosfile    arch/x86/x86/compat_60_cpu_ucode.c	compat_60 & cpu_ucode
125a3f6c067Scegger
1268375b2d9Sfvdldefine	lapic
1278375b2d9Sfvdlfile	arch/x86/x86/lapic.c		lapic needs-flag
1288375b2d9Sfvdl
1298375b2d9Sfvdldevice	ioapic: lapic
130d8800825Sdrochnerattach	ioapic at ioapicbus
1318375b2d9Sfvdlfile	arch/x86/x86/ioapic.c		ioapic needs-flag
1328375b2d9Sfvdl
1338375b2d9Sfvdl# MP configuration using Intel SMP specification 1.4
1348375b2d9Sfvdlfile 	arch/x86/x86/mpbios.c		mpbios
135d89d6b98Sfvdl
136c94ffba5Sdyoung# MP configuration using either ACPI or Intel SMP specification 1.4
137c94ffba5Sdyoungfile 	arch/x86/x86/mp.c		acpi | mpbios
138c94ffba5Sdyoung
1392e91dc8eSfvdl# MP configuration using ACPI
14001158ea8Schristosfile 	arch/x86/x86/mpacpi.c		acpi
1412e91dc8eSfvdl
1420fc4e4abSjruohofile	arch/x86/acpi/acpi_pdc.c	acpi
143c24c993fSbouyerfile	arch/x86/acpi/acpi_wakeup.c	acpi & !xenpv
1442ef5adccSjruohofile	arch/x86/acpi/acpi_machdep.c	acpi
1454d861e5bSjruoho
146c24c993fSbouyerfile	arch/x86/isa/isa_machdep.c	isa
147e943400cSsoren
148e943400cSsoren# PC clock
149c24c993fSbouyerfile 	arch/x86/isa/clock.c	!xenpv
150c24c993fSbouyerfile	arch/x86/isa/rtc.c  	isa
1515a759ef0Sfvdl
152fd8e7c1dSdyoung# Stubs for x86 routines not included in the system
153fd8e7c1dSdyoungfile	arch/x86/x86/x86_stub.c
154fd8e7c1dSdyoung
155020e3d1aSbouyer# IPMI device
156dc766f2bSmlelstvfile	arch/x86/x86/x86_ipmi.c		ipmi needs-flag
1579a98cd19Sjoerg
1589a98cd19Sjoergfile	arch/x86/x86/vga_post.c		vga_post
159cfb66876Syamt
1609ae46516Sjoergfile	arch/x86/pci/pci_machdep.c	pci
161c9f2f116Sdyoung#file	arch/x86/pci/pci_ranges.c	pci
1629ae46516Sjoergfile	arch/x86/pci/pci_intr_machdep.c	pci
163555377cfScherryfile	arch/x86/pci/pci_msi_machdep.c	pci & ! no_pci_msi_msix
164555377cfScherryfile	arch/x86/pci/msipic.c		pci & ! no_pci_msi_msix
1659ae46516Sjoerg
1669ae46516Sjoergfile	arch/x86/pci/pciide_machdep.c	pciide_common
1679ae46516Sjoerg
1689ae46516Sjoergfile	arch/x86/pci/pci_bus_fixup.c	pci_bus_fixup
1699ae46516Sjoergfile	arch/x86/pci/pci_addr_fixup.c	pci_addr_fixup
17099325bb8Sriastradh
17199325bb8Sriastradh# AES-NI
17299325bb8Sriastradhinclude "crypto/aes/arch/x86/files.aesni"
1737ff94d7aSriastradh
1747ff94d7aSriastradh# VIA ACE
1757ff94d7aSriastradhinclude "crypto/aes/arch/x86/files.aesvia"
176336b5650Sriastradh
177336b5650Sriastradh# Bitsliced AES with SSE2
178336b5650Sriastradhinclude "crypto/aes/arch/x86/files.aessse2"
179c0579016Sriastradh
180c0579016Sriastradh# Permutation-based AES with PSHUFB
181c0579016Sriastradhinclude "crypto/aes/arch/x86/files.aesssse3"
182ba0c8ad5Sriastradh
183ba0c8ad5Sriastradh# ChaCha with SSE2
184ba0c8ad5Sriastradhinclude "crypto/chacha/arch/x86/files.chacha_x86"
185