1 # $NetBSD: files.xen,v 1.105 2009/10/05 23:59:31 rmind Exp $
2 # NetBSD: files.x86,v 1.10 2003/10/08 17:30:00 bouyer Exp
3 # NetBSD: files.i386,v 1.254 2004/03/25 23:32:10 jmc Exp
9 defparam opt_kernbase.h KERNBASE
11 # options for MP configuration through the MP spec
12 defflag opt_mpbios.h MPBIOS MPVERBOSE MPDEBUG MPBIOS_SCANPCI
14 # delay before cpu_reset() for reboot.
15 defparam CPURESET_DELAY
17 # splraise()/spllower() debug
18 defflag opt_spldebug.h SPLDEBUG
21 defflag opt_beep.h BEEP_ONHALT
22 defparam opt_beep.h BEEP_ONHALT_COUNT=3
23 defparam opt_beep.h BEEP_ONHALT_PITCH=1500
24 defparam opt_beep.h BEEP_ONHALT_PERIOD=250
27 defflag opt_pcifixup.h PCI_ADDR_FIXUP PCI_BUS_FIXUP
28 PCI_INTR_FIXUP PCI_INTR_FIXUP_FORCE
30 defparam PCI_CONF_MODE
32 # Intel Enhanced Speedstep
33 defflag ENHANCED_SPEEDSTEP
34 defflag opt_est.h EST_FREQ_USERWRITE
35 file arch/x86/x86/est.c enhanced_speedstep
36 file arch/x86/x86/intel_busclock.c enhanced_speedstep
38 # AMD Powernow/Cool`n'Quiet Technology
39 defflag opt_powernow_k8.h POWERNOW_K8
40 # Powernow common functions
41 file arch/x86/x86/powernow_k8.c powernow_k8
42 file arch/x86/x86/powernow_common.c powernow_k8 | powernow_k7
44 file arch/xen/x86/autoconf.c
46 file arch/i386/i386/aout_machdep.c exec_aout
47 file arch/i386/i386/busfunc.S
48 file arch/i386/i386/cpufunc.S
49 file arch/i386/i386/cpu_in_cksum.S (inet | inet6) & cpu_in_cksum
50 file arch/i386/i386/db_dbgreg.S ddb | kstack_check_dr0
51 file arch/i386/i386/db_disasm.c ddb
52 file arch/i386/i386/db_interface.c ddb
53 file arch/i386/i386/db_memrw.c ddb | kgdb
54 file arch/i386/i386/db_trace.c ddb
55 file arch/i386/i386/dumpsys.c
56 file arch/i386/i386/gdt.c
57 file arch/i386/i386/ipkdb_glue.c ipkdb
58 file arch/i386/i386/kgdb_machdep.c kgdb
59 file arch/i386/i386/kobj_machdep.c modular
60 file arch/i386/i386/machdep.c
61 file arch/i386/i386/longrun.c
62 file arch/i386/i386/mem.c
63 file arch/i386/i386/mtrr_k6.c mtrr
64 file arch/i386/i386/process_machdep.c
65 file arch/i386/i386/procfs_machdep.c procfs
66 file arch/i386/i386/trap.c
67 file arch/i386/i386/lock_stubs.S
69 file arch/i386/i386/mptramp.S multiprocessor
71 file arch/i386/i386/pmc.c perfctrs
73 file crypto/des/arch/i386/des_enc.S des
74 file crypto/des/arch/i386/des_cbc.S des
76 file crypto/blowfish/arch/i386/bf_enc.S blowfish
77 file crypto/blowfish/arch/i386/bf_cbc.S blowfish
81 file arch/i386/i386/powernow_k7.c powernow_k7
84 file arch/amd64/amd64/busfunc.S
85 file arch/amd64/amd64/cpufunc.S
86 file arch/amd64/amd64/cpu_in_cksum.S (inet | inet6) & cpu_in_cksum
87 file arch/amd64/amd64/db_disasm.c ddb
88 file arch/amd64/amd64/db_interface.c ddb
89 file arch/amd64/amd64/db_memrw.c ddb | kgdb
90 file arch/amd64/amd64/db_trace.c ddb
91 file arch/amd64/amd64/kgdb_machdep.c kgdb
92 file arch/amd64/amd64/kobj_machdep.c modular
93 file arch/amd64/amd64/gdt.c
94 file arch/amd64/amd64/machdep.c
95 file arch/amd64/amd64/mem.c
96 file arch/amd64/amd64/process_machdep.c
97 file arch/amd64/amd64/procfs_machdep.c procfs
98 file arch/amd64/amd64/trap.c
99 file arch/amd64/amd64/fpu.c
100 file arch/amd64/amd64/lock_stubs.S
101 file arch/amd64/amd64/mptramp.S multiprocessor
104 file kern/subr_disk_mbr.c disk
105 file arch/xen/x86/hypervisor_machdep.c
106 # file arch/x86/x86/mtrr_i686.c mtrr
107 file arch/x86/x86/syscall.c
108 file arch/xen/x86/x86_xpmap.c
109 file arch/xen/x86/xen_intr.c
110 file arch/xen/x86/xenfunc.c
112 file arch/xen/xen/xen_machdep.c
113 file arch/xen/xen/xen_debug.c
115 file arch/xen/xen/clock.c
116 file arch/x86/isa/rtc.c dom0ops
117 file arch/xen/xen/evtchn.c
119 file arch/xen/xen/xengnt.c
125 # Machine-independent SCSI drivers
128 include "dev/scsipi/files.scsipi"
131 # Machine-independent ATA drivers
134 include "dev/ata/files.ata"
136 # Memory Disk for install floppy
137 file dev/md_root.c memory_disk_hooks
139 file arch/x86/x86/bus_dma.c pci
140 file arch/x86/x86/core_machdep.c coredump
141 file arch/xen/x86/xen_bus_dma.c pci
142 file arch/x86/x86/bus_space.c pci
143 file arch/xen/x86/consinit.c
144 file arch/x86/x86/identcpu.c
145 file arch/xen/x86/intr.c
146 file arch/x86/x86/ipi.c
147 file arch/x86/x86/pmap.c
148 file arch/x86/x86/sys_machdep.c
149 file arch/x86/x86/tsc.c
150 file arch/x86/x86/vm_machdep.c
151 file arch/x86/x86/x86_machdep.c
152 file arch/x86/x86/cpu_topology.c
154 include "arch/xen/conf/files.compat"
159 file arch/i386/i386/bios32.c bios32 needs-flag
161 file arch/amd64/amd64/bios32.c bios32 needs-flag
164 # xen specific mainbus attributes
165 define cpubus { [apid = -1] }
166 define ioapicbus { [apid = -1] }
169 define hypervisorbus {}
177 device mainbus: cpubus, ioapicbus, hypervisorbus, bios32, ipmibus
178 attach mainbus at root
179 file arch/xen/x86/mainbus.c mainbus
182 device hypervisor { [apid = -1]}: isabus, pcibus, sysmon_power, xendevbus, acpibus
183 attach hypervisor at hypervisorbus
184 file arch/xen/xen/hypervisor.c hypervisor needs-flag
185 file arch/xen/xen/shutdown_xenbus.c hypervisor
188 device xenbus {[id = -1]}
189 attach xenbus at xendevbus
190 file arch/xen/xenbus/xenbus_client.c xenbus needs-flag
191 file arch/xen/xenbus/xenbus_comms.c xenbus needs-flag
192 file arch/xen/xenbus/xenbus_dev.c xenbus & dom0ops needs-flag
193 file arch/xen/xenbus/xenbus_probe.c xenbus needs-flag
194 file arch/xen/xenbus/xenbus_xs.c xenbus needs-flag
197 # Numeric Processing Extension; Math Co-processor
199 file arch/i386/isa/npx.c npx needs-flag
201 attach npx at xendevbus with npx_hv
202 file arch/xen/i386/npx_hv.c npx_hv
205 # Xen console support
207 attach xencons at xendevbus
208 file arch/xen/xen/xencons.c xencons needs-flag
210 # Xen event peudo-device
216 device xennet: arp, ether, ifnet
217 attach xennet at xenbus
218 file arch/xen/xen/if_xennet_xenbus.c xennet needs-flag
220 # Xen Block device driver and wd/sd/cd identities
223 file arch/xen/xen/xbd_xenbus.c xbd
227 attach xpci at xenbus with xpci_xenbus
228 file arch/xen/xen/xpci_xenbus.c xpci_xenbus
230 # Non-Xen specific devices and options
232 include "dev/pckbport/files.pckbport"
235 # Machine-independent PCI devices
237 include "dev/i2o/files.i2o"
238 include "dev/pci/files.pci"
239 include "dev/pci/files.agp"
240 file arch/xen/xen/pciide_machdep.c pciide_common
242 device pciback {unit = -1}
243 attach pciback at pci
244 file arch/xen/xen/pciback.c pciback
247 # x86 specific PCI hardware
248 include "arch/x86/pci/files.pci"
251 # Machine-independent ISA devices
253 include "dev/isa/files.isa"
255 include "dev/usb/files.usb"
257 include "dev/ieee1394/files.ieee1394"
259 device fdc {drive = -1} #XXX
261 include "dev/apm/files.apm"
263 include "dev/acpi/files.acpi"
264 file arch/xen/xen/xen_acpi_machdep.c acpi
265 file arch/x86/x86/mpacpi.c acpi
266 file arch/x86/x86/acpi_machdep.c acpi
267 file arch/x86/x86/i8259.c
269 # MP configuration using Intel SMP specification 1.4
270 file arch/x86/x86/mpbios.c mpbios
272 # MP configuration using either ACPI or Intel SMP specification 1.4
273 file arch/x86/x86/mp.c acpi | mpbios
275 file arch/x86/pci/pci_bus_fixup.c pci_bus_fixup
276 file arch/x86/pci/pci_addr_fixup.c pci_addr_fixup
278 file arch/x86/x86/apic.c ioapic
281 attach ioapic at ioapicbus
282 file arch/x86/x86/ioapic.c ioapic needs-flag
285 device ipmi : sysmon_envsys, sysmon_wdog
286 attach ipmi at ipmibus
287 file arch/x86/x86/ipmi.c ipmi needs-flag
295 attach vcpu at xendevbus
297 file arch/xen/x86/cpu.c cpu | vcpu
300 # Compatibility modules
305 file arch/i386/i386/vm86.c vm86
308 file arch/i386/i386/kvm86.c kvm86
309 file arch/i386/i386/kvm86call.S kvm86
311 # Binary compatibility with previous NetBSD releases (COMPAT_XX)
312 file arch/i386/i386/compat_13_machdep.c compat_13
313 file arch/i386/i386/compat_16_machdep.c compat_16 | compat_ibcs2
315 # SVR4 binary compatibility (COMPAT_SVR4)
316 include "compat/svr4/files.svr4"
317 file arch/i386/i386/svr4_machdep.c compat_svr4
318 file arch/i386/i386/svr4_sigcode.S compat_svr4
319 file arch/i386/i386/svr4_syscall.c compat_svr4
321 # MACH binary compatibility (COMPAT_MACH)
322 include "compat/mach/files.mach"
323 file arch/i386/i386/mach_machdep.c compat_mach | compat_darwin
324 file arch/i386/i386/mach_sigcode.S compat_mach | compat_darwin
325 file arch/i386/i386/mach_syscall.c compat_mach | compat_darwin
326 file arch/i386/i386/darwin_commpage_machdep.S compat_darwin
327 file arch/i386/i386/macho_machdep.c exec_macho
329 # DARWIN binary compatibility (COMPAT_DARWIN)
330 include "compat/darwin/files.darwin"
331 file arch/i386/i386/darwin_machdep.c compat_darwin
333 # iBCS-2 binary compatibility (COMPAT_IBCS2)
334 include "compat/ibcs2/files.ibcs2"
335 file arch/i386/i386/ibcs2_machdep.c compat_ibcs2
336 file arch/i386/i386/ibcs2_sigcode.S compat_ibcs2
337 file arch/i386/i386/ibcs2_syscall.c compat_ibcs2
339 # Linux binary compatibility (COMPAT_LINUX)
340 include "compat/linux/files.linux"
341 include "compat/linux/arch/i386/files.linux_i386"
342 file arch/i386/i386/linux_sigcode.S compat_linux
343 file arch/i386/i386/linux_syscall.c compat_linux
344 file arch/x86/x86/linux_trap.c compat_linux
346 # FreeBSD binary compatibility (COMPAT_FREEBSD)
347 include "compat/freebsd/files.freebsd"
348 file arch/i386/i386/freebsd_machdep.c compat_freebsd
349 file arch/i386/i386/freebsd_sigcode.S compat_freebsd
350 file arch/i386/i386/freebsd_syscall.c compat_freebsd
352 # Win32 binary compatibility (COMPAT_PECOFF)
353 include "compat/pecoff/files.pecoff"
356 # NetBSD/i386 32-bit binary compatibility (COMPAT_NETBSD32)
357 include "compat/netbsd32/files.netbsd32"
358 file arch/amd64/amd64/netbsd32_machdep.c compat_netbsd32
359 file arch/amd64/amd64/netbsd32_sigcode.S compat_netbsd32 & compat_16
360 file arch/amd64/amd64/netbsd32_syscall.c compat_netbsd32
362 # Linux compatibility (COMPAT_LINUX)
363 include "compat/linux/files.linux"
364 include "compat/linux/arch/amd64/files.linux_amd64"
365 file arch/amd64/amd64/linux_sigcode.S compat_linux
366 file arch/amd64/amd64/linux_syscall.c compat_linux
367 file arch/x86/x86/linux_trap.c compat_linux
368 # Linux 32 bit compatibility (COMPAT_LINUX32)
369 include "compat/linux32/files.linux32"
370 include "compat/linux32/arch/amd64/files.linux32_amd64"
371 file arch/amd64/amd64/linux32_sigcode.S compat_linux32
372 file arch/amd64/amd64/linux32_syscall.c compat_linux32
375 # OSS audio driver compatibility
376 include "compat/ossaudio/files.ossaudio"
379 include "dev/bluetooth/files.bluetooth"
384 include "dev/cardbus/files.cardbus"
386 file arch/i386/i386/rbus_machdep.c cardbus
388 file arch/amd64/amd64/rbus_machdep.c cardbus
391 # this wants to be probed as late as possible.
393 # Machine-independent PCMCIA drivers
395 include "dev/pcmcia/files.pcmcia"
397 # Domain-0 operations
398 defflag opt_xen.h DOM0OPS XEN_COMPAT_030001
399 file arch/xen/xen/privcmd.c dom0ops
400 file arch/xen/x86/xen_shm_machdep.c dom0ops
401 file arch/x86/pci/pci_machdep.c hypervisor & pci & dom0ops
402 file arch/xen/xen/pci_intr_machdep.c hypervisor & pci
403 file arch/xen/xen/isa_machdep.c hypervisor & dom0ops
404 file arch/xen/xen/xenevt.c xenevt & dom0ops
405 file arch/xen/xen/xennetback_xenbus.c xvif
406 file arch/xen/xen/xennet_checksum.c xvif | xennet
407 file arch/xen/xen/xbdback_xenbus.c xbdback
410 include "arch/i386/conf/majors.i386"
412 include "arch/amd64/conf/majors.amd64"