xref: /netbsd-src/sys/arch/x86/conf/files.x86 (revision 7330f729ccf0bd976a06f95fad452fe774fc7fd1)
1#	$NetBSD: files.x86,v 1.107 2019/02/15 08:54:01 nonaka 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
16
17# To be able to test for NetBSD/xen in shared files
18defflag	opt_xen.h		DO_NOT_DEFINE
19
20# Option to have a static kernel memory layout
21defflag opt_kaslr.h	NO_X86_ASLR
22
23defflag	SVS
24
25define  cpubus { [apid = -1] }
26define	cpufeaturebus {}
27define  ioapicbus { [apid = -1] }
28
29# BIOS32 routines
30define	bios32
31file	arch/x86/x86/bios32.c		bios32 needs-flag
32
33#
34# CPU features
35#
36device	cpu: cpufeaturebus
37attach	cpu at cpubus
38file 	arch/x86/x86/cpu.c 		cpu
39file	arch/x86/x86/cpu_rng.c		cpu
40
41device	acpicpu: acpi
42attach	acpicpu at cpufeaturebus
43file	dev/acpi/acpi_cpu.c		acpicpu
44file	dev/acpi/acpi_cpu_cstate.c	acpicpu
45file	dev/acpi/acpi_cpu_pstate.c	acpicpu
46file	dev/acpi/acpi_cpu_tstate.c	acpicpu
47file	arch/x86/acpi/acpi_cpu_md.c	acpicpu
48
49device	coretemp: sysmon_envsys
50attach	coretemp at cpufeaturebus
51file	arch/x86/x86/coretemp.c		coretemp
52
53device	est
54attach	est at cpufeaturebus
55file	arch/x86/x86/est.c		est
56file	arch/x86/x86/intel_busclock.c	est
57
58device	odcm
59attach	odcm at cpufeaturebus
60file	arch/x86/x86/odcm.c		odcm
61
62device	padlock: opencrypto
63attach	padlock at cpufeaturebus
64file	arch/x86/x86/via_padlock.c	padlock
65
66device	powernow
67attach	powernow at cpufeaturebus
68file	arch/x86/x86/powernow.c		powernow
69
70device	viac7temp: sysmon_envsys
71attach	viac7temp at cpufeaturebus
72file	arch/x86/x86/viac7temp.c	viac7temp
73
74device	vmt: sysmon_power, sysmon_taskq
75attach	vmt at cpufeaturebus
76file	arch/x86/x86/vmt.c		vmt
77
78device	hyperv
79attach	hyperv at cpufeaturebus
80file	arch/x86/x86/hyperv.c		hyperv needs-flag
81
82file	arch/x86/x86/apic.c		ioapic | lapic
83file	arch/x86/x86/bus_dma.c		machdep
84file	arch/x86/x86/bus_space.c	machdep
85file	arch/x86/x86/consinit.c		machdep
86file	arch/x86/x86/core_machdep.c	coredump
87file	arch/x86/x86/cpu_topology.c	machdep
88file	arch/x86/x86/db_memrw.c		ddb | kgdb
89file	arch/x86/x86/db_trace.c		ddb
90file	arch/x86/x86/efi.c		machdep
91file	arch/x86/x86/errata.c		machdep
92file	arch/x86/x86/genfb_machdep.c	machdep
93file	arch/x86/x86/identcpu.c		machdep
94file	arch/x86/x86/i8259.c		machdep
95file	arch/x86/x86/intr.c		machdep
96file	arch/x86/x86/kgdb_machdep.c	kgdb
97file	arch/x86/x86/nmi.c		machdep
98file	arch/x86/x86/idt.c		machdep
99file	arch/x86/x86/ipi.c		machdep
100file	arch/x86/x86/mtrr_i686.c	mtrr
101file 	arch/x86/x86/patch.c		machdep
102file	arch/x86/x86/platform.c		machdep
103file 	arch/x86/x86/pmap.c		machdep
104file 	arch/x86/x86/x86_tlb.c		machdep
105file	arch/x86/x86/procfs_machdep.c	procfs
106file 	arch/x86/x86/svs.c		machdep & svs
107file	arch/x86/x86/sys_machdep.c	machdep
108file	arch/x86/x86/syscall.c		machdep
109file	arch/x86/x86/tsc.c		machdep
110file	arch/x86/x86/vm_machdep.c	machdep
111file	arch/x86/x86/x86_autoconf.c	machdep
112file	arch/x86/x86/x86_userconf.c	userconf
113file	arch/x86/x86/x86_machdep.c	machdep
114
115file 	uvm/pmap/pmap_pvt.c		machdep
116
117file	arch/x86/x86/cpu_ucode.c	cpu_ucode needs-flag
118file	arch/x86/x86/cpu_ucode_amd.c	cpu_ucode needs-flag
119file	arch/x86/x86/cpu_ucode_intel.c	cpu_ucode needs-flag
120file    arch/x86/x86/compat_60_cpu_ucode.c	compat_60 & cpu_ucode
121
122define	lapic
123file	arch/x86/x86/lapic.c		lapic needs-flag
124
125device	ioapic: lapic
126attach	ioapic at ioapicbus
127file	arch/x86/x86/ioapic.c		ioapic needs-flag
128
129# MP configuration using Intel SMP specification 1.4
130file 	arch/x86/x86/mpbios.c		mpbios
131
132# MP configuration using either ACPI or Intel SMP specification 1.4
133file 	arch/x86/x86/mp.c		acpi | mpbios
134
135# MP configuration using ACPI
136file 	arch/x86/x86/mpacpi.c		acpi
137
138file	arch/x86/acpi/acpi_pdc.c	acpi
139file	arch/x86/acpi/acpi_wakeup.c	acpi
140file	arch/x86/acpi/acpi_machdep.c	acpi
141
142file	arch/x86/isa/isa_machdep.c
143
144# PC clock
145file 	arch/x86/isa/clock.c
146file	arch/x86/isa/rtc.c
147
148# Stubs for x86 routines not included in the system
149file	arch/x86/x86/x86_stub.c
150
151# IPMI device
152file	arch/x86/x86/x86_ipmi.c		ipmi needs-flag
153
154file	arch/x86/x86/vga_post.c		vga_post
155
156file	arch/x86/pci/pci_machdep.c	pci
157#file	arch/x86/pci/pci_ranges.c	pci
158file	arch/x86/pci/pci_intr_machdep.c	pci
159file	arch/x86/pci/pci_msi_machdep.c	pci & ! no_pci_msi_msix
160file	arch/x86/pci/msipic.c		pci & ! no_pci_msi_msix
161
162file	arch/x86/pci/pciide_machdep.c	pciide_common
163
164file	arch/x86/pci/pci_bus_fixup.c	pci_bus_fixup
165file	arch/x86/pci/pci_addr_fixup.c	pci_addr_fixup
166