files.xen revision 1.89
11.89Sad#	$NetBSD: files.xen,v 1.89 2008/11/19 18:36:02 ad 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.71Sbouyerversion 20071109
61.71Sbouyer
71.3Swizmaxpartitions 8
81.1Scl
91.1Sclmaxusers 2 16 128
101.1Scl
111.30Syamtdefparam opt_kernbase.h	KERNBASE
121.30Syamt
131.48Sbouyer# options for MP configuration through the MP spec
141.48Sbouyerdefflag opt_mpbios.h MPBIOS MPVERBOSE MPDEBUG MPBIOS_SCANPCI
151.48Sbouyer
161.1Scl# delay before cpu_reset() for reboot.
171.1Scldefparam		CPURESET_DELAY
181.1Scl
191.1Scl# No unmapped page below kernel stack
201.1Scldefflag			NOREDZONE
211.1Scl
221.1Scl# Beep on halt
231.1Scldefflag opt_beep.h		BEEP_ONHALT
241.56Sdsldefparam opt_beep.h		BEEP_ONHALT_COUNT=3
251.56Sdsldefparam opt_beep.h		BEEP_ONHALT_PITCH=1500
261.56Sdsldefparam opt_beep.h		BEEP_ONHALT_PERIOD=250
271.1Scl
281.40Sbouyer# PCI fixup options
291.71Sbouyerdefflag opt_pcifixup.h	PCI_ADDR_FIXUP PCI_BUS_FIXUP
301.40Sbouyer			PCI_INTR_FIXUP PCI_INTR_FIXUP_FORCE
311.40Sbouyer
321.71Sbouyerdefparam		PCI_CONF_MODE
331.40Sbouyer
341.71Sbouyerfile	arch/xen/x86/autoconf.c
351.71Sbouyerifdef i386
361.64Sadfile	arch/i386/i386/busfunc.S
371.89Sadfile	arch/i386/i386/core_machdep.c	coredump
381.64Sadfile	arch/i386/i386/cpufunc.S
391.80Sjoergfile	arch/i386/i386/cpu_in_cksum.S   (inet | inet6) & cpu_in_cksum
401.1Sclfile	arch/i386/i386/db_dbgreg.S	ddb | kstack_check_dr0
411.1Sclfile	arch/i386/i386/db_disasm.c	ddb
421.1Sclfile	arch/i386/i386/db_interface.c	ddb
431.1Sclfile	arch/i386/i386/db_memrw.c	ddb | kgdb
441.1Sclfile	arch/i386/i386/db_trace.c	ddb
451.78Sadfile	arch/i386/i386/dumpsys.c
461.77Sbouyerfile	arch/i386/i386/gdt.c
471.1Sclfile	arch/i386/i386/ipkdb_glue.c	ipkdb
481.1Sclfile	arch/i386/i386/kgdb_machdep.c	kgdb
491.81Sjmmvfile	arch/i386/i386/kobj_machdep.c	modular
501.77Sbouyerfile	arch/i386/i386/machdep.c
511.87Sadfile	arch/x86/x86/identcpu.c
521.83Sdogcowfile	arch/i386/i386/longrun.c
531.1Sclfile	arch/i386/i386/mem.c
541.1Sclfile	arch/i386/i386/mtrr_k6.c	mtrr
551.77Sbouyerfile	arch/x86/x86/pmap.c
561.1Sclfile	arch/i386/i386/process_machdep.c
571.1Sclfile	arch/i386/i386/procfs_machdep.c	procfs
581.1Sclfile	arch/i386/i386/syscall.c
591.72Syamtfile	arch/i386/i386/trap.c
601.1Sclfile	arch/i386/i386/vm_machdep.c
611.55Sadfile	arch/i386/i386/lock_stubs.S
621.1Scl
631.71Sbouyerfile	arch/i386/i386/mptramp.S		multiprocessor
641.71Sbouyerfile	arch/i386/i386/ipifuncs.c		multiprocessor
651.71Sbouyer
661.71Sbouyerfile	arch/i386/i386/pmc.c			perfctrs
671.71Sbouyer
681.71Sbouyerfile	crypto/des/arch/i386/des_enc.S		des
691.71Sbouyerfile	crypto/des/arch/i386/des_cbc.S		des
701.71Sbouyer
711.71Sbouyerfile	crypto/blowfish/arch/i386/bf_enc.S	blowfish
721.71Sbouyerfile	crypto/blowfish/arch/i386/bf_cbc.S	blowfish
731.71Sbouyerelifdef amd64
741.71Sbouyerfile	arch/amd64/amd64/busfunc.S		dom0ops
751.71Sbouyerfile	arch/amd64/amd64/cpufunc.S
761.80Sjoergfile	arch/amd64/amd64/cpu_in_cksum.S		(inet | inet6) & cpu_in_cksum
771.71Sbouyerfile	arch/amd64/amd64/db_disasm.c		ddb
781.71Sbouyerfile	arch/amd64/amd64/db_interface.c	 ddb
791.71Sbouyerfile	arch/amd64/amd64/db_memrw.c		ddb | kgdb
801.71Sbouyerfile	arch/amd64/amd64/db_trace.c		ddb
811.71Sbouyerfile	arch/amd64/amd64/kgdb_machdep.c	 kgdb
821.81Sjmmvfile	arch/amd64/amd64/kobj_machdep.c	 	modular
831.71Sbouyerfile	arch/amd64/amd64/gdt.c
841.71Sbouyerfile	arch/amd64/amd64/machdep.c
851.87Sadfile	arch/x86/x86/identcpu.c
861.71Sbouyerfile	arch/amd64/amd64/mem.c
871.71Sbouyerfile	arch/x86/x86/pmap.c
881.71Sbouyerfile	arch/amd64/amd64/process_machdep.c
891.71Sbouyerfile	arch/amd64/amd64/procfs_machdep.c	procfs
901.71Sbouyerfile	arch/amd64/amd64/syscall.c
911.71Sbouyerfile	arch/amd64/amd64/trap.c
921.71Sbouyerfile	arch/amd64/amd64/vm_machdep.c
931.71Sbouyerfile	arch/amd64/amd64/fpu.c
941.71Sbouyerfile	arch/amd64/amd64/lock_stubs.S
951.71Sbouyerfile	arch/amd64/amd64/mptramp.S		multiprocessor
961.71Sbouyerfile	arch/amd64/amd64/ipifuncs.c		multiprocessor
971.71Sbouyerendif
981.71Sbouyer
991.71Sbouyerfile	kern/subr_disk_mbr.c		disk
1001.71Sbouyerfile	arch/xen/x86/hypervisor_machdep.c
1011.71Sbouyer# file 	arch/x86/x86/mtrr_i686.c	mtrr
1021.71Sbouyerfile	arch/xen/x86/x86_xpmap.c
1031.71Sbouyerfile	arch/xen/x86/xen_intr.c
1041.71Sbouyerfile	arch/xen/x86/xenfunc.c
1051.71Sbouyer
1061.71Sbouyerfile	arch/xen/xen/xen_machdep.c
1071.1Sclfile	arch/xen/xen/xen_debug.c
1081.1Scl
1091.1Sclfile	arch/xen/xen/clock.c
1101.17Sbouyerfile	arch/xen/xen/evtchn.c
1111.33Sbouyerfile	arch/xen/xen/ctrl_if.c			!xen3
1121.1Scl
1131.35Sbouyerfile	arch/xen/xen/xengnt.c			xen3
1141.35Sbouyer
1151.1Sclfile	dev/cons.c
1161.1Scl
1171.1Scl
1181.1Scl#
1191.1Scl# Machine-independent SCSI drivers
1201.1Scl#
1211.1Scl
1221.17Sbouyerinclude	"dev/scsipi/files.scsipi"
1231.1Scl
1241.1Scl#
1251.1Scl# Machine-independent ATA drivers
1261.1Scl#
1271.1Scl
1281.17Sbouyerinclude	"dev/ata/files.ata"
1291.1Scl
1301.1Scl# Memory Disk for install floppy
1311.1Sclfile	dev/md_root.c			memory_disk_hooks
1321.1Scl
1331.27Sbouyerfile	arch/x86/x86/bus_dma.c		pci
1341.28Sbouyerfile	arch/xen/x86/xen_bus_dma.c	pci
1351.64Sadfile	arch/x86/x86/bus_space.c	pci
1361.1Sclfile	arch/xen/x86/consinit.c
1371.1Sclfile	arch/xen/x86/intr.c
1381.84Sadfile	arch/x86/x86/ipi.c
1391.59Sadfile	arch/x86/x86/sys_machdep.c
1401.86Sadfile	arch/x86/x86/tsc.c
1411.32Sjmmvfile	arch/x86/x86/x86_machdep.c
1421.1Scl
1431.1Sclinclude	"arch/xen/conf/files.compat"
1441.1Scl
1451.49Sbouyer# BIOS32 routines
1461.71Sbouyerdefine	bios32
1471.71Sbouyerifdef i386
1481.77Sbouyerfile	arch/i386/i386/bios32.c		bios32 needs-flag
1491.71Sbouyerelifdef amd64
1501.77Sbouyerfile	arch/amd64/amd64/bios32.c	bios32 needs-flag
1511.71Sbouyerendif
1521.49Sbouyer
1531.71Sbouyer# xen specific mainbus attributes
1541.13Sdrochnerdefine cpubus { [apid = -1] }
1551.57Sdrochnerdefine ioapicbus { [apid = -1] }
1561.13Sdrochnerdefine apmbus {}
1571.13Sdrochnerdefine pnpbiosbus {}
1581.71Sbouyerdefine vesabiosbus {}	
1591.13Sdrochnerdefine hypervisorbus {}
1601.29Sbouyerdefine xendevbus {}
1611.49Sbouyerdefine ipmibus {}
1621.13Sdrochner
1631.1Scl#
1641.1Scl# System bus types
1651.1Scl#
1661.1Scl
1671.57Sdrochnerdevice mainbus: cpubus, ioapicbus, hypervisorbus, bios32, ipmibus
1681.1Sclattach	mainbus at root
1691.71Sbouyerfile	arch/xen/x86/mainbus.c		mainbus
1701.5Scl
1711.5Scl# Xen hypervisor
1721.48Sbouyerdevice	hypervisor { [apid = -1]}: isabus, pcibus, sysmon_power, xendevbus, acpibus
1731.17Sbouyerattach hypervisor at hypervisorbus
1741.5Sclfile	arch/xen/xen/hypervisor.c	hypervisor needs-flag
1751.46Syamtfile	arch/xen/xen/shutdown_xenbus.c	hypervisor & xen3
1761.1Scl
1771.35Sbouyer# Xenbus (xen3 only)
1781.35Sbouyerdevice xenbus {[id = -1]}
1791.35Sbouyerattach xenbus at xendevbus
1801.35Sbouyerfile arch/xen/xenbus/xenbus_client.c xenbus & xen3 needs-flag
1811.35Sbouyerfile arch/xen/xenbus/xenbus_comms.c xenbus & xen3 needs-flag
1821.37Sbouyerfile arch/xen/xenbus/xenbus_dev.c xenbus & xen3 & dom0ops needs-flag
1831.35Sbouyerfile arch/xen/xenbus/xenbus_probe.c xenbus & xen3 needs-flag
1841.35Sbouyerfile arch/xen/xenbus/xenbus_xs.c xenbus & xen3 needs-flag
1851.35Sbouyer
1861.71Sbouyerifdef i386
1871.1Scl# Numeric Processing Extension; Math Co-processor
1881.1Scldevice	npx
1891.77Sbouyerfile	arch/i386/isa/npx.c		npx needs-flag
1901.1Scl
1911.29Sbouyerattach	npx at xendevbus with npx_hv
1921.1Sclfile	arch/xen/i386/npx_hv.c		npx_hv
1931.71Sbouyerendif
1941.1Scl
1951.1Scl# Xen console support
1961.6Scldevice	xencons: tty
1971.29Sbouyerattach	xencons at xendevbus
1981.6Sclfile	arch/xen/xen/xencons.c		xencons needs-flag
1991.1Scl
2001.17Sbouyer# Xen event peudo-device
2011.17Sbouyerdefpseudo xenevt
2021.41Sbouyerdefpseudo xvif
2031.43Sbouyerdefpseudo xbdback
2041.17Sbouyer
2051.27Sbouyer# Xen Network driver
2061.27Sbouyerdevice	xennet: arp, ether, ifnet
2071.36Sbouyerattach xennet at xendevbus with xennet_hypervisor
2081.36Sbouyerattach xennet at xenbus with xennet_xenbus
2091.71Sbouyerfile	arch/xen/xen/if_xennet_xenbus.c xennet_xenbus needs-flag
2101.71Sbouyerfile	arch/xen/xen/if_xennet.c	xennet_hypervisor needs-flag
2111.27Sbouyer
2121.27Sbouyer# Xen Block device driver and wd/sd/cd identities
2131.27Sbouyerdevice	xbd: disk
2141.38Sbouyerattach	xbd at xendevbus with xbd_hypervisor
2151.38Sbouyerattach	xbd at xenbus with xbd_xenbus
2161.38Sbouyer#file	arch/xen/xen/xbd_hypervisor.c	xbd_hypervisor
2171.38Sbouyerfile	arch/xen/xen/xbd_xenbus.c	xbd_xenbus
2181.38Sbouyer#file	arch/xen/xen/xbd.c		xbd | xbd_hypervisor | xbd_xenbus needs-flag
2191.38Sbouyerfile	arch/xen/xen/xbd.c		xbd_hypervisor needs-flag
2201.27Sbouyer
2211.27Sbouyer# Non-Xen specific devices and options
2221.27Sbouyer
2231.10Sclinclude	"dev/pckbport/files.pckbport"
2241.10Scl
2251.17Sbouyer#
2261.17Sbouyer# Machine-independent PCI devices
2271.17Sbouyer#
2281.17Sbouyerinclude "dev/i2o/files.i2o"
2291.17Sbouyerinclude "dev/pci/files.pci"
2301.17Sbouyerinclude "dev/pci/files.agp"
2311.17Sbouyerfile	arch/xen/xen/pciide_machdep.c	pciide_common
2321.23Schs
2331.88Sjoerg# x86 specific PCI hardware
2341.88Sjoerginclude "arch/x86/pci/files.pci"
2351.88Sjoerg
2361.17Sbouyer#
2371.17Sbouyer# Machine-independent ISA devices
2381.17Sbouyer#
2391.17Sbouyerinclude "dev/isa/files.isa"
2401.17Sbouyer
2411.31Sbouyerinclude "dev/usb/files.usb"
2421.17Sbouyer
2431.31Sbouyerinclude "dev/ieee1394/files.ieee1394"
2441.17Sbouyer
2451.71Sbouyerdevice	fdc {drive = -1} #XXX
2461.40Sbouyer
2471.44Schristosinclude "dev/apm/files.apm"
2481.44Schristos
2491.40Sbouyerinclude "dev/acpi/files.acpi"
2501.40Sbouyerfile	arch/xen/xen/xen_acpi_machdep.c	acpi
2511.48Sbouyerfile	arch/x86/x86/mpacpi.c		acpi
2521.40Sbouyerfile	arch/x86/x86/acpi_machdep.c	acpi
2531.48Sbouyerfile	arch/x86/x86/i8259.c		xen3
2541.48Sbouyer
2551.48Sbouyer# MP configuration using Intel SMP specification 1.4
2561.48Sbouyerfile	arch/x86/x86/mpbios.c		mpbios
2571.40Sbouyer
2581.71Sbouyerifdef i386
2591.71Sbouyerfile	arch/i386/pci/pci_bus_fixup.c	pci_bus_fixup
2601.71Sbouyerfile	arch/i386/pci/pci_addr_fixup.c	pci_addr_fixup
2611.71Sbouyerendif
2621.40Sbouyer
2631.48Sbouyerfile	arch/x86/x86/apic.c		ioapic
2641.48Sbouyer
2651.48Sbouyerdevice ioapic
2661.57Sdrochnerattach ioapic at ioapicbus
2671.48Sbouyerfile	arch/x86/x86/ioapic.c		ioapic needs-flag
2681.48Sbouyer
2691.49Sbouyer#IPMI device
2701.49Sbouyerdevice ipmi : sysmon_envsys, sysmon_wdog
2711.49Sbouyerattach ipmi at ipmibus
2721.49Sbouyerfile	arch/x86/x86/ipmi.c		ipmi needs-flag
2731.49Sbouyer
2741.1Scl# CPUS
2751.1Scl
2761.1Scldevice cpu
2771.13Sdrochnerattach cpu at cpubus
2781.48Sbouyer
2791.48Sbouyerdevice vcpu
2801.48Sbouyerattach vcpu at xendevbus
2811.48Sbouyer
2821.71Sbouyerfile	arch/xen/x86/cpu.c		cpu | vcpu
2831.1Scl
2841.1Scl#
2851.1Scl# Compatibility modules
2861.1Scl#
2871.1Scl
2881.71Sbouyerifdef i386
2891.1Scl# VM86 mode
2901.1Sclfile	arch/i386/i386/vm86.c			vm86
2911.1Scl
2921.1Scl# VM86 in kernel
2931.1Sclfile	arch/i386/i386/kvm86.c			kvm86
2941.1Sclfile	arch/i386/i386/kvm86call.S		kvm86
2951.1Scl
2961.1Scl# Binary compatibility with previous NetBSD releases (COMPAT_XX)
2971.53Sdrochnerfile	arch/i386/i386/compat_13_machdep.c	compat_13
2981.1Sclfile	arch/i386/i386/compat_16_machdep.c	compat_16 | compat_ibcs2
2991.1Scl
3001.1Scl# SVR4 binary compatibility (COMPAT_SVR4)
3011.1Sclinclude	"compat/svr4/files.svr4"
3021.1Sclfile	arch/i386/i386/svr4_machdep.c		compat_svr4
3031.1Sclfile	arch/i386/i386/svr4_sigcode.S		compat_svr4
3041.1Sclfile	arch/i386/i386/svr4_syscall.c		compat_svr4
3051.1Scl
3061.1Scl# MACH binary compatibility (COMPAT_MACH)
3071.1Sclinclude	"compat/mach/files.mach"
3081.1Sclfile	arch/i386/i386/mach_machdep.c		compat_mach | compat_darwin
3091.1Sclfile	arch/i386/i386/mach_sigcode.S		compat_mach | compat_darwin
3101.1Sclfile	arch/i386/i386/mach_syscall.c		compat_mach | compat_darwin
3111.1Sclfile	arch/i386/i386/macho_machdep.c		exec_macho
3121.1Scl
3131.1Scl# DARWIN binary compatibility (COMPAT_DARWIN)
3141.1Sclinclude	"compat/darwin/files.darwin"
3151.1Sclfile	arch/i386/i386/darwin_machdep.c		compat_darwin
3161.1Scl
3171.1Scl# iBCS-2 binary compatibility (COMPAT_IBCS2)
3181.1Sclinclude	"compat/ibcs2/files.ibcs2"
3191.1Sclfile	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
3201.1Sclfile	arch/i386/i386/ibcs2_sigcode.S		compat_ibcs2
3211.1Sclfile	arch/i386/i386/ibcs2_syscall.c		compat_ibcs2
3221.1Scl
3231.1Scl# Linux binary compatibility (COMPAT_LINUX)
3241.1Sclinclude	"compat/linux/files.linux"
3251.1Sclinclude	"compat/linux/arch/i386/files.linux_i386"
3261.1Sclfile	arch/i386/i386/linux_sigcode.S		compat_linux
3271.1Sclfile	arch/i386/i386/linux_syscall.c		compat_linux
3281.22Syamtfile	arch/x86/x86/linux_trap.c		compat_linux
3291.1Scl
3301.1Scl# FreeBSD binary compatibility (COMPAT_FREEBSD)
3311.1Sclinclude	"compat/freebsd/files.freebsd"
3321.1Sclfile	arch/i386/i386/freebsd_machdep.c	compat_freebsd
3331.1Sclfile	arch/i386/i386/freebsd_sigcode.S	compat_freebsd
3341.1Sclfile	arch/i386/i386/freebsd_syscall.c	compat_freebsd
3351.1Scl
3361.1Scl# Win32 binary compatibility (COMPAT_PECOFF)
3371.1Sclinclude	"compat/pecoff/files.pecoff"
3381.1Scl
3391.71Sbouyerelifdef amd64
3401.71Sbouyer# NetBSD/i386 32-bit binary compatibility (COMPAT_NETBSD32)
3411.71Sbouyerinclude "compat/netbsd32/files.netbsd32"
3421.71Sbouyerfile	arch/amd64/amd64/netbsd32_machdep.c	compat_netbsd32
3431.71Sbouyerfile	arch/amd64/amd64/netbsd32_sigcode.S	compat_netbsd32 & compat_16
3441.71Sbouyerfile	arch/amd64/amd64/netbsd32_syscall.c	compat_netbsd32
3451.71Sbouyer
3461.71Sbouyer# Linux compatibility (COMPAT_LINUX)
3471.71Sbouyerinclude "compat/linux/files.linux"
3481.71Sbouyerinclude "compat/linux/arch/amd64/files.linux_amd64"
3491.71Sbouyerfile	arch/amd64/amd64/linux_sigcode.S	compat_linux
3501.71Sbouyerfile	arch/amd64/amd64/linux_syscall.c	compat_linux
3511.71Sbouyerfile	arch/x86/x86/linux_trap.c		compat_linux
3521.71Sbouyer# Linux 32 bit compatibility (COMPAT_LINUX32)
3531.71Sbouyerinclude "compat/linux32/files.linux32"
3541.71Sbouyerinclude "compat/linux32/arch/amd64/files.linux32_amd64"
3551.71Sbouyerfile	arch/amd64/amd64/linux32_sigcode.S	compat_linux32
3561.71Sbouyerfile	arch/amd64/amd64/linux32_syscall.c	compat_linux32
3571.71Sbouyerendif
3581.71Sbouyer
3591.1Scl# OSS audio driver compatibility
3601.1Sclinclude	"compat/ossaudio/files.ossaudio"
3611.1Scl
3621.50Sxtraeme# Bluetooth
3631.50Sxtraemeinclude "dev/bluetooth/files.bluetooth"
3641.50Sxtraeme
3651.26Syamt#
3661.26Syamt# CARDBUS
3671.26Syamt#
3681.26Syamtinclude	"dev/cardbus/files.cardbus"
3691.71Sbouyerifdef i386
3701.26Syamtfile	arch/i386/i386/rbus_machdep.c	cardbus
3711.71Sbouyerelifdef amd64
3721.71Sbouyerfile	arch/amd64/amd64/rbus_machdep.c cardbus
3731.71Sbouyerendif
3741.26Syamt
3751.26Syamt# this wants to be probed as late as possible.
3761.26Syamt#
3771.26Syamt# Machine-independent PCMCIA drivers
3781.26Syamt#
3791.26Syamtinclude	"dev/pcmcia/files.pcmcia"
3801.26Syamt
3811.12Scl# Domain-0 operations
3821.52Sbouyerdefflag	opt_xen.h			DOM0OPS XEN_COMPAT_030001
3831.12Sclfile	arch/xen/xen/privcmd.c		dom0ops
3841.71Sbouyerfile 	arch/xen/x86/xen_shm_machdep.c	dom0ops | xen3
3851.33Sbouyerfile	arch/xen/xen/xbdback.c		dom0ops & !xen3
3861.33Sbouyerfile	arch/xen/xen/xennetback.c	dom0ops & !xen3
3871.40Sbouyerfile	arch/xen/xen/pci_machdep.c	hypervisor & pci & !xen3
3881.40Sbouyerfile	arch/x86/pci/pci_machdep.c	hypervisor & pci & xen3
3891.40Sbouyerfile	arch/xen/xen/pci_intr_machdep.c	hypervisor & pci
3901.17Sbouyerfile	arch/xen/xen/isa_machdep.c	hypervisor & dom0ops
3911.17Sbouyerfile	arch/xen/xen/xenevt.c		xenevt & dom0ops
3921.41Sbouyerfile	arch/xen/xen/xennetback_xenbus.c xvif & xen3
3931.45Syamtfile	arch/xen/xen/xennet_checksum.c	(xvif & xen3) | xennet_xenbus
3941.43Sbouyerfile	arch/xen/xen/xbdback_xenbus.c xbdback & xen3
3951.12Scl
3961.71Sbouyerifdef i386
3971.18Sbouyerinclude "arch/i386/conf/majors.i386"
3981.71Sbouyerelifdef amd64
3991.74Sbouyerinclude "arch/amd64/conf/majors.amd64"
4001.71Sbouyerendif
401