files.xen revision 1.122
11.122Scherry#	$NetBSD: files.xen,v 1.122 2011/08/10 11:39:45 cherry Exp $
21.1Scl#	NetBSD: files.x86,v 1.10 2003/10/08 17:30:00 bouyer Exp 
31.4Scl#	NetBSD: files.i386,v 1.254 2004/03/25 23:32:10 jmc Exp 
41.1Scl
51.110Sbouyerifdef i386
61.3Swizmaxpartitions 8
71.110Sbouyerelse
81.110Sbouyermaxpartitions 16
91.110Sbouyerendif
101.1Scl
111.1Sclmaxusers 2 16 128
121.1Scl
131.30Syamtdefparam opt_kernbase.h	KERNBASE
141.30Syamt
151.48Sbouyer# options for MP configuration through the MP spec
161.48Sbouyerdefflag opt_mpbios.h MPBIOS MPVERBOSE MPDEBUG MPBIOS_SCANPCI
171.48Sbouyer
181.1Scl# delay before cpu_reset() for reboot.
191.1Scldefparam		CPURESET_DELAY
201.1Scl
211.106Sdyoung# splraise()/spllower() debug
221.106Sdyoungdefflag	opt_spldebug.h			SPLDEBUG
231.106Sdyoung
241.1Scl# Beep on halt
251.1Scldefflag opt_beep.h		BEEP_ONHALT
261.56Sdsldefparam opt_beep.h		BEEP_ONHALT_COUNT=3
271.56Sdsldefparam opt_beep.h		BEEP_ONHALT_PITCH=1500
281.56Sdsldefparam opt_beep.h		BEEP_ONHALT_PERIOD=250
291.1Scl
301.40Sbouyer# PCI fixup options
311.71Sbouyerdefflag opt_pcifixup.h	PCI_ADDR_FIXUP PCI_BUS_FIXUP
321.40Sbouyer			PCI_INTR_FIXUP PCI_INTR_FIXUP_FORCE
331.40Sbouyer
341.71Sbouyerdefparam		PCI_CONF_MODE
351.40Sbouyer
361.71Sbouyerfile	arch/xen/x86/autoconf.c
371.71Sbouyerifdef i386
381.90Sadfile	arch/i386/i386/aout_machdep.c	exec_aout
391.64Sadfile	arch/i386/i386/busfunc.S
401.64Sadfile	arch/i386/i386/cpufunc.S
411.80Sjoergfile	arch/i386/i386/cpu_in_cksum.S   (inet | inet6) & cpu_in_cksum
421.1Sclfile	arch/i386/i386/db_dbgreg.S	ddb | kstack_check_dr0
431.1Sclfile	arch/i386/i386/db_disasm.c	ddb
441.1Sclfile	arch/i386/i386/db_interface.c	ddb
451.115Sceggerfile	arch/i386/i386/db_machdep.c	ddb
461.1Sclfile	arch/i386/i386/db_memrw.c	ddb | kgdb
471.78Sadfile	arch/i386/i386/dumpsys.c
481.77Sbouyerfile	arch/i386/i386/gdt.c
491.1Sclfile	arch/i386/i386/ipkdb_glue.c	ipkdb
501.1Sclfile	arch/i386/i386/kgdb_machdep.c	kgdb
511.81Sjmmvfile	arch/i386/i386/kobj_machdep.c	modular
521.77Sbouyerfile	arch/i386/i386/machdep.c
531.83Sdogcowfile	arch/i386/i386/longrun.c
541.1Sclfile	arch/i386/i386/mtrr_k6.c	mtrr
551.1Sclfile	arch/i386/i386/process_machdep.c
561.72Syamtfile	arch/i386/i386/trap.c
571.55Sadfile	arch/i386/i386/lock_stubs.S
581.1Scl
591.71Sbouyer
601.71Sbouyerfile	arch/i386/i386/pmc.c			perfctrs
611.71Sbouyer
621.71Sbouyerfile	crypto/des/arch/i386/des_enc.S		des
631.71Sbouyerfile	crypto/des/arch/i386/des_cbc.S		des
641.71Sbouyer
651.71Sbouyerfile	crypto/blowfish/arch/i386/bf_enc.S	blowfish
661.71Sbouyerfile	crypto/blowfish/arch/i386/bf_cbc.S	blowfish
671.103Sjym
681.71Sbouyerelifdef amd64
691.93Sbouyerfile	arch/amd64/amd64/busfunc.S
701.71Sbouyerfile	arch/amd64/amd64/cpufunc.S
711.80Sjoergfile	arch/amd64/amd64/cpu_in_cksum.S		(inet | inet6) & cpu_in_cksum
721.71Sbouyerfile	arch/amd64/amd64/db_disasm.c		ddb
731.115Sceggerfile	arch/amd64/amd64/db_interface.c		ddb
741.115Sceggerfile	arch/amd64/amd64/db_machdep.c		ddb
751.71Sbouyerfile	arch/amd64/amd64/db_memrw.c		ddb | kgdb
761.71Sbouyerfile	arch/amd64/amd64/kgdb_machdep.c	 kgdb
771.81Sjmmvfile	arch/amd64/amd64/kobj_machdep.c	 	modular
781.71Sbouyerfile	arch/amd64/amd64/gdt.c
791.71Sbouyerfile	arch/amd64/amd64/machdep.c
801.71Sbouyerfile	arch/amd64/amd64/process_machdep.c
811.71Sbouyerfile	arch/amd64/amd64/trap.c
821.71Sbouyerfile	arch/amd64/amd64/fpu.c
831.71Sbouyerfile	arch/amd64/amd64/lock_stubs.S
841.71Sbouyerendif
851.71Sbouyer
861.71Sbouyerfile	kern/subr_disk_mbr.c		disk
871.115Sceggerfile	arch/x86/x86/db_trace.c		ddb
881.71Sbouyerfile	arch/xen/x86/hypervisor_machdep.c
891.71Sbouyer# file 	arch/x86/x86/mtrr_i686.c	mtrr
901.97Sceggerfile	arch/x86/x86/syscall.c
911.71Sbouyerfile	arch/xen/x86/x86_xpmap.c
921.107Sdyoungfile	arch/xen/x86/xen_pmap.c
931.71Sbouyerfile	arch/xen/x86/xen_intr.c
941.71Sbouyerfile	arch/xen/x86/xenfunc.c
951.71Sbouyer
961.71Sbouyerfile	arch/xen/xen/xen_machdep.c
971.1Sclfile	arch/xen/xen/xen_debug.c
981.1Scl
991.1Sclfile	arch/xen/xen/clock.c
1001.102Sceggerfile	arch/x86/isa/rtc.c		dom0ops
1011.17Sbouyerfile	arch/xen/xen/evtchn.c
1021.1Scl
1031.102Sceggerfile	arch/xen/xen/xengnt.c
1041.35Sbouyer
1051.1Sclfile	dev/cons.c
1061.1Scl
1071.1Scl
1081.1Scl#
1091.1Scl# Machine-independent SCSI drivers
1101.1Scl#
1111.1Scl
1121.17Sbouyerinclude	"dev/scsipi/files.scsipi"
1131.1Scl
1141.1Scl#
1151.1Scl# Machine-independent ATA drivers
1161.1Scl#
1171.1Scl
1181.17Sbouyerinclude	"dev/ata/files.ata"
1191.1Scl
1201.1Scl# Memory Disk for install floppy
1211.1Sclfile	dev/md_root.c			memory_disk_hooks
1221.1Scl
1231.27Sbouyerfile	arch/x86/x86/bus_dma.c		pci
1241.96Srmindfile	arch/x86/x86/core_machdep.c	coredump
1251.28Sbouyerfile	arch/xen/x86/xen_bus_dma.c	pci
1261.64Sadfile	arch/x86/x86/bus_space.c	pci
1271.1Sclfile	arch/xen/x86/consinit.c
1281.96Srmindfile	arch/x86/x86/identcpu.c
1291.1Sclfile	arch/xen/x86/intr.c
1301.122Scherryfile	arch/xen/x86/xen_ipi.c		multiprocessor
1311.96Srmindfile	arch/x86/x86/pmap.c
1321.119Srmindfile	arch/x86/x86/pmap_tlb.c
1331.109Srmindfile	arch/x86/x86/procfs_machdep.c	procfs
1341.59Sadfile	arch/x86/x86/sys_machdep.c
1351.86Sadfile	arch/x86/x86/tsc.c
1361.96Srmindfile	arch/x86/x86/vm_machdep.c
1371.32Sjmmvfile	arch/x86/x86/x86_machdep.c
1381.99Spgoyettefile	arch/x86/x86/cpu_topology.c
1391.1Scl
1401.1Sclinclude	"arch/xen/conf/files.compat"
1411.1Scl
1421.49Sbouyer# BIOS32 routines
1431.71Sbouyerdefine	bios32
1441.71Sbouyerifdef i386
1451.77Sbouyerfile	arch/i386/i386/bios32.c		bios32 needs-flag
1461.71Sbouyerelifdef amd64
1471.77Sbouyerfile	arch/amd64/amd64/bios32.c	bios32 needs-flag
1481.71Sbouyerendif
1491.49Sbouyer
1501.71Sbouyer# xen specific mainbus attributes
1511.13Sdrochnerdefine cpubus { [apid = -1] }
1521.112Sjruohodefine cpufeaturebus {}
1531.57Sdrochnerdefine ioapicbus { [apid = -1] }
1541.13Sdrochnerdefine apmbus {}
1551.13Sdrochnerdefine pnpbiosbus {}
1561.13Sdrochnerdefine hypervisorbus {}
1571.29Sbouyerdefine xendevbus {}
1581.49Sbouyerdefine ipmibus {}
1591.13Sdrochner
1601.1Scl#
1611.1Scl# System bus types
1621.1Scl#
1631.1Scl
1641.57Sdrochnerdevice mainbus: cpubus, ioapicbus, hypervisorbus, bios32, ipmibus
1651.1Sclattach	mainbus at root
1661.71Sbouyerfile	arch/xen/x86/mainbus.c		mainbus
1671.5Scl
1681.5Scl# Xen hypervisor
1691.48Sbouyerdevice	hypervisor { [apid = -1]}: isabus, pcibus, sysmon_power, xendevbus, acpibus
1701.17Sbouyerattach hypervisor at hypervisorbus
1711.5Sclfile	arch/xen/xen/hypervisor.c	hypervisor needs-flag
1721.102Sceggerfile	arch/xen/xen/shutdown_xenbus.c	hypervisor
1731.1Scl
1741.102Scegger# Xenbus
1751.35Sbouyerdevice xenbus {[id = -1]}
1761.35Sbouyerattach xenbus at xendevbus
1771.102Sceggerfile arch/xen/xenbus/xenbus_client.c xenbus needs-flag
1781.102Sceggerfile arch/xen/xenbus/xenbus_comms.c xenbus needs-flag
1791.102Sceggerfile arch/xen/xenbus/xenbus_dev.c xenbus & dom0ops needs-flag
1801.102Sceggerfile arch/xen/xenbus/xenbus_probe.c xenbus needs-flag
1811.102Sceggerfile arch/xen/xenbus/xenbus_xs.c xenbus needs-flag
1821.35Sbouyer
1831.71Sbouyerifdef i386
1841.1Scl# Numeric Processing Extension; Math Co-processor
1851.1Scldevice	npx
1861.77Sbouyerfile	arch/i386/isa/npx.c		npx needs-flag
1871.1Scl
1881.29Sbouyerattach	npx at xendevbus with npx_hv
1891.1Sclfile	arch/xen/i386/npx_hv.c		npx_hv
1901.71Sbouyerendif
1911.1Scl
1921.1Scl# Xen console support
1931.6Scldevice	xencons: tty
1941.29Sbouyerattach	xencons at xendevbus
1951.6Sclfile	arch/xen/xen/xencons.c		xencons needs-flag
1961.1Scl
1971.17Sbouyer# Xen event peudo-device
1981.17Sbouyerdefpseudo xenevt
1991.41Sbouyerdefpseudo xvif
2001.43Sbouyerdefpseudo xbdback
2011.17Sbouyer
2021.27Sbouyer# Xen Network driver
2031.27Sbouyerdevice	xennet: arp, ether, ifnet
2041.102Sceggerattach xennet at xenbus
2051.102Sceggerfile	arch/xen/xen/if_xennet_xenbus.c xennet needs-flag
2061.27Sbouyer
2071.27Sbouyer# Xen Block device driver and wd/sd/cd identities
2081.27Sbouyerdevice	xbd: disk
2091.102Sceggerattach	xbd at xenbus
2101.102Sceggerfile	arch/xen/xen/xbd_xenbus.c	xbd
2111.27Sbouyer
2121.93Sbouyer# PCI frontend
2131.93Sbouyerdevice xpci: pcibus
2141.93Sbouyerattach xpci at xenbus with xpci_xenbus
2151.93Sbouyerfile	arch/xen/xen/xpci_xenbus.c	xpci_xenbus
2161.93Sbouyer
2171.116Sjym# Xen Balloon driver
2181.116Sjymdevice	balloon
2191.116Sjymattach	balloon at xenbus
2201.116Sjymfile	arch/xen/xen/balloon.c		balloon
2211.116Sjym
2221.27Sbouyer# Non-Xen specific devices and options
2231.27Sbouyer
2241.10Sclinclude	"dev/pckbport/files.pckbport"
2251.10Scl
2261.17Sbouyer#
2271.17Sbouyer# Machine-independent PCI devices
2281.17Sbouyer#
2291.17Sbouyerinclude "dev/i2o/files.i2o"
2301.17Sbouyerinclude "dev/pci/files.pci"
2311.17Sbouyerinclude "dev/pci/files.agp"
2321.17Sbouyerfile	arch/xen/xen/pciide_machdep.c	pciide_common
2331.23Schs
2341.93Sbouyerdevice	pciback {unit = -1}
2351.93Sbouyerattach	pciback at pci
2361.93Sbouyerfile	arch/xen/xen/pciback.c		pciback
2371.93Sbouyer
2381.93Sbouyer
2391.88Sjoerg# x86 specific PCI hardware
2401.88Sjoerginclude "arch/x86/pci/files.pci"
2411.88Sjoerg
2421.17Sbouyer#
2431.17Sbouyer# Machine-independent ISA devices
2441.17Sbouyer#
2451.17Sbouyerinclude "dev/isa/files.isa"
2461.17Sbouyer
2471.31Sbouyerinclude "dev/usb/files.usb"
2481.17Sbouyer
2491.31Sbouyerinclude "dev/ieee1394/files.ieee1394"
2501.17Sbouyer
2511.71Sbouyerdevice	fdc {drive = -1} #XXX
2521.40Sbouyer
2531.44Schristosinclude "dev/apm/files.apm"
2541.44Schristos
2551.40Sbouyerinclude "dev/acpi/files.acpi"
2561.40Sbouyerfile	arch/xen/xen/xen_acpi_machdep.c	acpi
2571.48Sbouyerfile	arch/x86/x86/mpacpi.c		acpi
2581.102Sceggerfile	arch/x86/x86/i8259.c
2591.48Sbouyer
2601.114Sdyoung# Stubs for x86 routines not included in the system
2611.114Sdyoungfile	arch/x86/x86/x86_stub.c
2621.114Sdyoung
2631.48Sbouyer# MP configuration using Intel SMP specification 1.4
2641.48Sbouyerfile	arch/x86/x86/mpbios.c		mpbios
2651.40Sbouyer
2661.98Scegger# MP configuration using either ACPI or Intel SMP specification 1.4
2671.98Sceggerfile 	arch/x86/x86/mp.c		acpi | mpbios
2681.98Scegger
2691.92Sbouyerfile	arch/x86/pci/pci_bus_fixup.c	pci_bus_fixup
2701.92Sbouyerfile	arch/x86/pci/pci_addr_fixup.c	pci_addr_fixup
2711.40Sbouyer
2721.48Sbouyerfile	arch/x86/x86/apic.c		ioapic
2731.114Sdyoungfile	arch/x86/x86/nmi.c
2741.48Sbouyer
2751.120Sjruohofile	arch/x86/acpi/acpi_machdep.c	acpi
2761.121Spgoyettefile	arch/x86/acpi/acpi_pdc.c	acpi
2771.120Sjruoho
2781.48Sbouyerdevice ioapic
2791.57Sdrochnerattach ioapic at ioapicbus
2801.48Sbouyerfile	arch/x86/x86/ioapic.c		ioapic needs-flag
2811.48Sbouyer
2821.49Sbouyer#IPMI device
2831.49Sbouyerdevice ipmi : sysmon_envsys, sysmon_wdog
2841.49Sbouyerattach ipmi at ipmibus
2851.49Sbouyerfile	arch/x86/x86/ipmi.c		ipmi needs-flag
2861.49Sbouyer
2871.112Sjruoho# CPUs
2881.112Sjruoho#
2891.112Sjruohodevice cpu: cpufeaturebus
2901.13Sdrochnerattach cpu at cpubus
2911.48Sbouyer
2921.48Sbouyerdevice vcpu
2931.48Sbouyerattach vcpu at xendevbus
2941.48Sbouyer
2951.71Sbouyerfile	arch/xen/x86/cpu.c		cpu | vcpu
2961.1Scl
2971.112Sjruoho# CPU features
2981.112Sjruoho#
2991.112Sjruohodevice	est
3001.112Sjruohoattach	est at cpufeaturebus
3011.112Sjruohofile	arch/x86/x86/est.c		est
3021.112Sjruohofile	arch/x86/x86/intel_busclock.c	est
3031.112Sjruoho
3041.113Sjruohodevice	powernow
3051.113Sjruohoattach	powernow at cpufeaturebus
3061.113Sjruohofile	arch/x86/x86/powernow.c		powernow
3071.113Sjruoho
3081.1Scl#
3091.1Scl# Compatibility modules
3101.1Scl#
3111.1Scl
3121.71Sbouyerifdef i386
3131.1Scl# VM86 mode
3141.1Sclfile	arch/i386/i386/vm86.c			vm86
3151.1Scl
3161.1Scl# VM86 in kernel
3171.1Sclfile	arch/i386/i386/kvm86.c			kvm86
3181.1Sclfile	arch/i386/i386/kvm86call.S		kvm86
3191.1Scl
3201.1Scl# Binary compatibility with previous NetBSD releases (COMPAT_XX)
3211.53Sdrochnerfile	arch/i386/i386/compat_13_machdep.c	compat_13
3221.1Sclfile	arch/i386/i386/compat_16_machdep.c	compat_16 | compat_ibcs2
3231.1Scl
3241.1Scl# SVR4 binary compatibility (COMPAT_SVR4)
3251.1Sclinclude	"compat/svr4/files.svr4"
3261.1Sclfile	arch/i386/i386/svr4_machdep.c		compat_svr4
3271.1Sclfile	arch/i386/i386/svr4_sigcode.S		compat_svr4
3281.1Sclfile	arch/i386/i386/svr4_syscall.c		compat_svr4
3291.1Scl
3301.1Scl# iBCS-2 binary compatibility (COMPAT_IBCS2)
3311.1Sclinclude	"compat/ibcs2/files.ibcs2"
3321.1Sclfile	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
3331.1Sclfile	arch/i386/i386/ibcs2_sigcode.S		compat_ibcs2
3341.1Sclfile	arch/i386/i386/ibcs2_syscall.c		compat_ibcs2
3351.1Scl
3361.1Scl# Linux binary compatibility (COMPAT_LINUX)
3371.1Sclinclude	"compat/linux/files.linux"
3381.1Sclinclude	"compat/linux/arch/i386/files.linux_i386"
3391.1Sclfile	arch/i386/i386/linux_sigcode.S		compat_linux
3401.1Sclfile	arch/i386/i386/linux_syscall.c		compat_linux
3411.22Syamtfile	arch/x86/x86/linux_trap.c		compat_linux
3421.1Scl
3431.1Scl# FreeBSD binary compatibility (COMPAT_FREEBSD)
3441.1Sclinclude	"compat/freebsd/files.freebsd"
3451.1Sclfile	arch/i386/i386/freebsd_machdep.c	compat_freebsd
3461.1Sclfile	arch/i386/i386/freebsd_sigcode.S	compat_freebsd
3471.1Sclfile	arch/i386/i386/freebsd_syscall.c	compat_freebsd
3481.1Scl
3491.71Sbouyerelifdef amd64
3501.71Sbouyer# NetBSD/i386 32-bit binary compatibility (COMPAT_NETBSD32)
3511.71Sbouyerinclude "compat/netbsd32/files.netbsd32"
3521.71Sbouyerfile	arch/amd64/amd64/netbsd32_machdep.c	compat_netbsd32
3531.71Sbouyerfile	arch/amd64/amd64/netbsd32_sigcode.S	compat_netbsd32 & compat_16
3541.71Sbouyerfile	arch/amd64/amd64/netbsd32_syscall.c	compat_netbsd32
3551.71Sbouyer
3561.71Sbouyer# Linux compatibility (COMPAT_LINUX)
3571.71Sbouyerinclude "compat/linux/files.linux"
3581.71Sbouyerinclude "compat/linux/arch/amd64/files.linux_amd64"
3591.71Sbouyerfile	arch/amd64/amd64/linux_sigcode.S	compat_linux
3601.71Sbouyerfile	arch/amd64/amd64/linux_syscall.c	compat_linux
3611.71Sbouyerfile	arch/x86/x86/linux_trap.c		compat_linux
3621.71Sbouyer# Linux 32 bit compatibility (COMPAT_LINUX32)
3631.71Sbouyerinclude "compat/linux32/files.linux32"
3641.71Sbouyerinclude "compat/linux32/arch/amd64/files.linux32_amd64"
3651.71Sbouyerfile	arch/amd64/amd64/linux32_sigcode.S	compat_linux32
3661.71Sbouyerfile	arch/amd64/amd64/linux32_syscall.c	compat_linux32
3671.71Sbouyerendif
3681.71Sbouyer
3691.1Scl# OSS audio driver compatibility
3701.1Sclinclude	"compat/ossaudio/files.ossaudio"
3711.1Scl
3721.50Sxtraeme# Bluetooth
3731.50Sxtraemeinclude "dev/bluetooth/files.bluetooth"
3741.50Sxtraeme
3751.26Syamt#
3761.26Syamt# CARDBUS
3771.26Syamt#
3781.26Syamtinclude	"dev/cardbus/files.cardbus"
3791.71Sbouyerifdef i386
3801.26Syamtfile	arch/i386/i386/rbus_machdep.c	cardbus
3811.71Sbouyerelifdef amd64
3821.71Sbouyerfile	arch/amd64/amd64/rbus_machdep.c cardbus
3831.71Sbouyerendif
3841.26Syamt
3851.26Syamt# this wants to be probed as late as possible.
3861.26Syamt#
3871.26Syamt# Machine-independent PCMCIA drivers
3881.26Syamt#
3891.26Syamtinclude	"dev/pcmcia/files.pcmcia"
3901.26Syamt
3911.12Scl# Domain-0 operations
3921.116Sjymdefflag	opt_xen.h			DOM0OPS XEN_COMPAT_030001
3931.12Sclfile	arch/xen/xen/privcmd.c		dom0ops
3941.102Sceggerfile 	arch/xen/x86/xen_shm_machdep.c	dom0ops
3951.102Sceggerfile	arch/x86/pci/pci_machdep.c	hypervisor & pci & dom0ops
3961.40Sbouyerfile	arch/xen/xen/pci_intr_machdep.c	hypervisor & pci
3971.17Sbouyerfile	arch/xen/xen/isa_machdep.c	hypervisor & dom0ops
3981.17Sbouyerfile	arch/xen/xen/xenevt.c		xenevt & dom0ops
3991.102Sceggerfile	arch/xen/xen/xennetback_xenbus.c xvif
4001.102Sceggerfile	arch/xen/xen/xennet_checksum.c	xvif | xennet
4011.102Sceggerfile	arch/xen/xen/xbdback_xenbus.c xbdback
4021.12Scl
4031.71Sbouyerifdef i386
4041.18Sbouyerinclude "arch/i386/conf/majors.i386"
4051.71Sbouyerelifdef amd64
4061.74Sbouyerinclude "arch/amd64/conf/majors.amd64"
4071.71Sbouyerendif
408