files.xen revision 1.88
11.88Sjoerg#	$NetBSD: files.xen,v 1.88 2008/08/03 19:32:03 joerg 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.64Sadfile	arch/i386/i386/cpufunc.S
381.80Sjoergfile	arch/i386/i386/cpu_in_cksum.S   (inet | inet6) & cpu_in_cksum
391.1Sclfile	arch/i386/i386/db_dbgreg.S	ddb | kstack_check_dr0
401.1Sclfile	arch/i386/i386/db_disasm.c	ddb
411.1Sclfile	arch/i386/i386/db_interface.c	ddb
421.1Sclfile	arch/i386/i386/db_memrw.c	ddb | kgdb
431.1Sclfile	arch/i386/i386/db_trace.c	ddb
441.78Sadfile	arch/i386/i386/dumpsys.c
451.77Sbouyerfile	arch/i386/i386/gdt.c
461.1Sclfile	arch/i386/i386/ipkdb_glue.c	ipkdb
471.1Sclfile	arch/i386/i386/kgdb_machdep.c	kgdb
481.81Sjmmvfile	arch/i386/i386/kobj_machdep.c	modular
491.77Sbouyerfile	arch/i386/i386/machdep.c
501.87Sadfile	arch/x86/x86/identcpu.c
511.83Sdogcowfile	arch/i386/i386/longrun.c
521.1Sclfile	arch/i386/i386/mem.c
531.1Sclfile	arch/i386/i386/mtrr_k6.c	mtrr
541.77Sbouyerfile	arch/x86/x86/pmap.c
551.1Sclfile	arch/i386/i386/process_machdep.c
561.1Sclfile	arch/i386/i386/procfs_machdep.c	procfs
571.1Sclfile	arch/i386/i386/syscall.c
581.72Syamtfile	arch/i386/i386/trap.c
591.1Sclfile	arch/i386/i386/vm_machdep.c
601.55Sadfile	arch/i386/i386/lock_stubs.S
611.1Scl
621.71Sbouyerfile	arch/i386/i386/mptramp.S		multiprocessor
631.71Sbouyerfile	arch/i386/i386/ipifuncs.c		multiprocessor
641.71Sbouyer
651.71Sbouyerfile	arch/i386/i386/pmc.c			perfctrs
661.71Sbouyer
671.71Sbouyerfile	crypto/des/arch/i386/des_enc.S		des
681.71Sbouyerfile	crypto/des/arch/i386/des_cbc.S		des
691.71Sbouyer
701.71Sbouyerfile	crypto/blowfish/arch/i386/bf_enc.S	blowfish
711.71Sbouyerfile	crypto/blowfish/arch/i386/bf_cbc.S	blowfish
721.71Sbouyerelifdef amd64
731.71Sbouyerfile	arch/amd64/amd64/busfunc.S		dom0ops
741.71Sbouyerfile	arch/amd64/amd64/cpufunc.S
751.80Sjoergfile	arch/amd64/amd64/cpu_in_cksum.S		(inet | inet6) & cpu_in_cksum
761.71Sbouyerfile	arch/amd64/amd64/db_disasm.c		ddb
771.71Sbouyerfile	arch/amd64/amd64/db_interface.c	 ddb
781.71Sbouyerfile	arch/amd64/amd64/db_memrw.c		ddb | kgdb
791.71Sbouyerfile	arch/amd64/amd64/db_trace.c		ddb
801.71Sbouyerfile	arch/amd64/amd64/kgdb_machdep.c	 kgdb
811.81Sjmmvfile	arch/amd64/amd64/kobj_machdep.c	 	modular
821.71Sbouyerfile	arch/amd64/amd64/gdt.c
831.71Sbouyerfile	arch/amd64/amd64/machdep.c
841.87Sadfile	arch/x86/x86/identcpu.c
851.71Sbouyerfile	arch/amd64/amd64/mem.c
861.71Sbouyerfile	arch/x86/x86/pmap.c
871.71Sbouyerfile	arch/amd64/amd64/process_machdep.c
881.71Sbouyerfile	arch/amd64/amd64/procfs_machdep.c	procfs
891.71Sbouyerfile	arch/amd64/amd64/syscall.c
901.71Sbouyerfile	arch/amd64/amd64/trap.c
911.71Sbouyerfile	arch/amd64/amd64/vm_machdep.c
921.71Sbouyerfile	arch/amd64/amd64/fpu.c
931.71Sbouyerfile	arch/amd64/amd64/lock_stubs.S
941.71Sbouyerfile	arch/amd64/amd64/mptramp.S		multiprocessor
951.71Sbouyerfile	arch/amd64/amd64/ipifuncs.c		multiprocessor
961.71Sbouyerendif
971.71Sbouyer
981.71Sbouyerfile	kern/subr_disk_mbr.c		disk
991.71Sbouyerfile	arch/xen/x86/hypervisor_machdep.c
1001.71Sbouyer# file 	arch/x86/x86/mtrr_i686.c	mtrr
1011.71Sbouyerfile	arch/xen/x86/x86_xpmap.c
1021.71Sbouyerfile	arch/xen/x86/xen_intr.c
1031.71Sbouyerfile	arch/xen/x86/xenfunc.c
1041.71Sbouyer
1051.71Sbouyerfile	arch/xen/xen/xen_machdep.c
1061.1Sclfile	arch/xen/xen/xen_debug.c
1071.1Scl
1081.1Sclfile	arch/xen/xen/clock.c
1091.17Sbouyerfile	arch/xen/xen/evtchn.c
1101.33Sbouyerfile	arch/xen/xen/ctrl_if.c			!xen3
1111.1Scl
1121.35Sbouyerfile	arch/xen/xen/xengnt.c			xen3
1131.35Sbouyer
1141.1Sclfile	dev/cons.c
1151.1Scl
1161.1Scl
1171.1Scl#
1181.1Scl# Machine-independent SCSI drivers
1191.1Scl#
1201.1Scl
1211.17Sbouyerinclude	"dev/scsipi/files.scsipi"
1221.1Scl
1231.1Scl#
1241.1Scl# Machine-independent ATA drivers
1251.1Scl#
1261.1Scl
1271.17Sbouyerinclude	"dev/ata/files.ata"
1281.1Scl
1291.1Scl# Memory Disk for install floppy
1301.1Sclfile	dev/md_root.c			memory_disk_hooks
1311.1Scl
1321.27Sbouyerfile	arch/x86/x86/bus_dma.c		pci
1331.28Sbouyerfile	arch/xen/x86/xen_bus_dma.c	pci
1341.64Sadfile	arch/x86/x86/bus_space.c	pci
1351.1Sclfile	arch/xen/x86/consinit.c
1361.1Sclfile	arch/xen/x86/intr.c
1371.84Sadfile	arch/x86/x86/ipi.c
1381.59Sadfile	arch/x86/x86/sys_machdep.c
1391.86Sadfile	arch/x86/x86/tsc.c
1401.32Sjmmvfile	arch/x86/x86/x86_machdep.c
1411.1Scl
1421.1Sclinclude	"arch/xen/conf/files.compat"
1431.1Scl
1441.49Sbouyer# BIOS32 routines
1451.71Sbouyerdefine	bios32
1461.71Sbouyerifdef i386
1471.77Sbouyerfile	arch/i386/i386/bios32.c		bios32 needs-flag
1481.71Sbouyerelifdef amd64
1491.77Sbouyerfile	arch/amd64/amd64/bios32.c	bios32 needs-flag
1501.71Sbouyerendif
1511.49Sbouyer
1521.71Sbouyer# xen specific mainbus attributes
1531.13Sdrochnerdefine cpubus { [apid = -1] }
1541.57Sdrochnerdefine ioapicbus { [apid = -1] }
1551.13Sdrochnerdefine apmbus {}
1561.13Sdrochnerdefine pnpbiosbus {}
1571.71Sbouyerdefine vesabiosbus {}	
1581.13Sdrochnerdefine hypervisorbus {}
1591.29Sbouyerdefine xendevbus {}
1601.49Sbouyerdefine ipmibus {}
1611.13Sdrochner
1621.1Scl#
1631.1Scl# System bus types
1641.1Scl#
1651.1Scl
1661.57Sdrochnerdevice mainbus: cpubus, ioapicbus, hypervisorbus, bios32, ipmibus
1671.1Sclattach	mainbus at root
1681.71Sbouyerfile	arch/xen/x86/mainbus.c		mainbus
1691.5Scl
1701.5Scl# Xen hypervisor
1711.48Sbouyerdevice	hypervisor { [apid = -1]}: isabus, pcibus, sysmon_power, xendevbus, acpibus
1721.17Sbouyerattach hypervisor at hypervisorbus
1731.5Sclfile	arch/xen/xen/hypervisor.c	hypervisor needs-flag
1741.46Syamtfile	arch/xen/xen/shutdown_xenbus.c	hypervisor & xen3
1751.1Scl
1761.35Sbouyer# Xenbus (xen3 only)
1771.35Sbouyerdevice xenbus {[id = -1]}
1781.35Sbouyerattach xenbus at xendevbus
1791.35Sbouyerfile arch/xen/xenbus/xenbus_client.c xenbus & xen3 needs-flag
1801.35Sbouyerfile arch/xen/xenbus/xenbus_comms.c xenbus & xen3 needs-flag
1811.37Sbouyerfile arch/xen/xenbus/xenbus_dev.c xenbus & xen3 & dom0ops needs-flag
1821.35Sbouyerfile arch/xen/xenbus/xenbus_probe.c xenbus & xen3 needs-flag
1831.35Sbouyerfile arch/xen/xenbus/xenbus_xs.c xenbus & xen3 needs-flag
1841.35Sbouyer
1851.71Sbouyerifdef i386
1861.1Scl# Numeric Processing Extension; Math Co-processor
1871.1Scldevice	npx
1881.77Sbouyerfile	arch/i386/isa/npx.c		npx needs-flag
1891.1Scl
1901.29Sbouyerattach	npx at xendevbus with npx_hv
1911.1Sclfile	arch/xen/i386/npx_hv.c		npx_hv
1921.71Sbouyerendif
1931.1Scl
1941.1Scl# Xen console support
1951.6Scldevice	xencons: tty
1961.29Sbouyerattach	xencons at xendevbus
1971.6Sclfile	arch/xen/xen/xencons.c		xencons needs-flag
1981.1Scl
1991.17Sbouyer# Xen event peudo-device
2001.17Sbouyerdefpseudo xenevt
2011.41Sbouyerdefpseudo xvif
2021.43Sbouyerdefpseudo xbdback
2031.17Sbouyer
2041.27Sbouyer# Xen Network driver
2051.27Sbouyerdevice	xennet: arp, ether, ifnet
2061.36Sbouyerattach xennet at xendevbus with xennet_hypervisor
2071.36Sbouyerattach xennet at xenbus with xennet_xenbus
2081.71Sbouyerfile	arch/xen/xen/if_xennet_xenbus.c xennet_xenbus needs-flag
2091.71Sbouyerfile	arch/xen/xen/if_xennet.c	xennet_hypervisor needs-flag
2101.27Sbouyer
2111.27Sbouyer# Xen Block device driver and wd/sd/cd identities
2121.27Sbouyerdevice	xbd: disk
2131.38Sbouyerattach	xbd at xendevbus with xbd_hypervisor
2141.38Sbouyerattach	xbd at xenbus with xbd_xenbus
2151.38Sbouyer#file	arch/xen/xen/xbd_hypervisor.c	xbd_hypervisor
2161.38Sbouyerfile	arch/xen/xen/xbd_xenbus.c	xbd_xenbus
2171.38Sbouyer#file	arch/xen/xen/xbd.c		xbd | xbd_hypervisor | xbd_xenbus needs-flag
2181.38Sbouyerfile	arch/xen/xen/xbd.c		xbd_hypervisor needs-flag
2191.27Sbouyer
2201.27Sbouyer# Non-Xen specific devices and options
2211.27Sbouyer
2221.10Sclinclude	"dev/pckbport/files.pckbport"
2231.10Scl
2241.17Sbouyer#
2251.17Sbouyer# Machine-independent PCI devices
2261.17Sbouyer#
2271.17Sbouyerinclude "dev/i2o/files.i2o"
2281.17Sbouyerinclude "dev/pci/files.pci"
2291.17Sbouyerinclude "dev/pci/files.agp"
2301.17Sbouyerfile	arch/xen/xen/pciide_machdep.c	pciide_common
2311.23Schs
2321.88Sjoerg# x86 specific PCI hardware
2331.88Sjoerginclude "arch/x86/pci/files.pci"
2341.88Sjoerg
2351.17Sbouyer#
2361.17Sbouyer# Machine-independent ISA devices
2371.17Sbouyer#
2381.17Sbouyerinclude "dev/isa/files.isa"
2391.17Sbouyer
2401.31Sbouyerinclude "dev/usb/files.usb"
2411.17Sbouyer
2421.31Sbouyerinclude "dev/ieee1394/files.ieee1394"
2431.17Sbouyer
2441.71Sbouyerdevice	fdc {drive = -1} #XXX
2451.40Sbouyer
2461.44Schristosinclude "dev/apm/files.apm"
2471.44Schristos
2481.40Sbouyerinclude "dev/acpi/files.acpi"
2491.40Sbouyerfile	arch/xen/xen/xen_acpi_machdep.c	acpi
2501.48Sbouyerfile	arch/x86/x86/mpacpi.c		acpi
2511.40Sbouyerfile	arch/x86/x86/acpi_machdep.c	acpi
2521.48Sbouyerfile	arch/x86/x86/i8259.c		xen3
2531.48Sbouyer
2541.48Sbouyer# MP configuration using Intel SMP specification 1.4
2551.48Sbouyerfile	arch/x86/x86/mpbios.c		mpbios
2561.40Sbouyer
2571.71Sbouyerifdef i386
2581.71Sbouyerfile	arch/i386/pci/pci_bus_fixup.c	pci_bus_fixup
2591.71Sbouyerfile	arch/i386/pci/pci_addr_fixup.c	pci_addr_fixup
2601.71Sbouyerendif
2611.40Sbouyer
2621.48Sbouyerfile	arch/x86/x86/apic.c		ioapic
2631.48Sbouyer
2641.48Sbouyerdevice ioapic
2651.57Sdrochnerattach ioapic at ioapicbus
2661.48Sbouyerfile	arch/x86/x86/ioapic.c		ioapic needs-flag
2671.48Sbouyer
2681.49Sbouyer#IPMI device
2691.49Sbouyerdevice ipmi : sysmon_envsys, sysmon_wdog
2701.49Sbouyerattach ipmi at ipmibus
2711.49Sbouyerfile	arch/x86/x86/ipmi.c		ipmi needs-flag
2721.49Sbouyer
2731.1Scl# CPUS
2741.1Scl
2751.1Scldevice cpu
2761.13Sdrochnerattach cpu at cpubus
2771.48Sbouyer
2781.48Sbouyerdevice vcpu
2791.48Sbouyerattach vcpu at xendevbus
2801.48Sbouyer
2811.71Sbouyerfile	arch/xen/x86/cpu.c		cpu | vcpu
2821.1Scl
2831.1Scl#
2841.1Scl# Compatibility modules
2851.1Scl#
2861.1Scl
2871.71Sbouyerifdef i386
2881.1Scl# VM86 mode
2891.1Sclfile	arch/i386/i386/vm86.c			vm86
2901.1Scl
2911.1Scl# VM86 in kernel
2921.1Sclfile	arch/i386/i386/kvm86.c			kvm86
2931.1Sclfile	arch/i386/i386/kvm86call.S		kvm86
2941.1Scl
2951.1Scl# Binary compatibility with previous NetBSD releases (COMPAT_XX)
2961.53Sdrochnerfile	arch/i386/i386/compat_13_machdep.c	compat_13
2971.1Sclfile	arch/i386/i386/compat_16_machdep.c	compat_16 | compat_ibcs2
2981.1Scl
2991.1Scl# SVR4 binary compatibility (COMPAT_SVR4)
3001.1Sclinclude	"compat/svr4/files.svr4"
3011.1Sclfile	arch/i386/i386/svr4_machdep.c		compat_svr4
3021.1Sclfile	arch/i386/i386/svr4_sigcode.S		compat_svr4
3031.1Sclfile	arch/i386/i386/svr4_syscall.c		compat_svr4
3041.1Scl
3051.1Scl# MACH binary compatibility (COMPAT_MACH)
3061.1Sclinclude	"compat/mach/files.mach"
3071.1Sclfile	arch/i386/i386/mach_machdep.c		compat_mach | compat_darwin
3081.1Sclfile	arch/i386/i386/mach_sigcode.S		compat_mach | compat_darwin
3091.1Sclfile	arch/i386/i386/mach_syscall.c		compat_mach | compat_darwin
3101.1Sclfile	arch/i386/i386/macho_machdep.c		exec_macho
3111.1Scl
3121.1Scl# DARWIN binary compatibility (COMPAT_DARWIN)
3131.1Sclinclude	"compat/darwin/files.darwin"
3141.1Sclfile	arch/i386/i386/darwin_machdep.c		compat_darwin
3151.1Scl
3161.1Scl# iBCS-2 binary compatibility (COMPAT_IBCS2)
3171.1Sclinclude	"compat/ibcs2/files.ibcs2"
3181.1Sclfile	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
3191.1Sclfile	arch/i386/i386/ibcs2_sigcode.S		compat_ibcs2
3201.1Sclfile	arch/i386/i386/ibcs2_syscall.c		compat_ibcs2
3211.1Scl
3221.1Scl# Linux binary compatibility (COMPAT_LINUX)
3231.1Sclinclude	"compat/linux/files.linux"
3241.1Sclinclude	"compat/linux/arch/i386/files.linux_i386"
3251.1Sclfile	arch/i386/i386/linux_sigcode.S		compat_linux
3261.1Sclfile	arch/i386/i386/linux_syscall.c		compat_linux
3271.22Syamtfile	arch/x86/x86/linux_trap.c		compat_linux
3281.1Scl
3291.1Scl# FreeBSD binary compatibility (COMPAT_FREEBSD)
3301.1Sclinclude	"compat/freebsd/files.freebsd"
3311.1Sclfile	arch/i386/i386/freebsd_machdep.c	compat_freebsd
3321.1Sclfile	arch/i386/i386/freebsd_sigcode.S	compat_freebsd
3331.1Sclfile	arch/i386/i386/freebsd_syscall.c	compat_freebsd
3341.1Scl
3351.1Scl# Win32 binary compatibility (COMPAT_PECOFF)
3361.1Sclinclude	"compat/pecoff/files.pecoff"
3371.1Scl
3381.71Sbouyerelifdef amd64
3391.71Sbouyer# NetBSD/i386 32-bit binary compatibility (COMPAT_NETBSD32)
3401.71Sbouyerinclude "compat/netbsd32/files.netbsd32"
3411.71Sbouyerfile	arch/amd64/amd64/netbsd32_machdep.c	compat_netbsd32
3421.71Sbouyerfile	arch/amd64/amd64/netbsd32_sigcode.S	compat_netbsd32 & compat_16
3431.71Sbouyerfile	arch/amd64/amd64/netbsd32_syscall.c	compat_netbsd32
3441.71Sbouyer
3451.71Sbouyer# Linux compatibility (COMPAT_LINUX)
3461.71Sbouyerinclude "compat/linux/files.linux"
3471.71Sbouyerinclude "compat/linux/arch/amd64/files.linux_amd64"
3481.71Sbouyerfile	arch/amd64/amd64/linux_sigcode.S	compat_linux
3491.71Sbouyerfile	arch/amd64/amd64/linux_syscall.c	compat_linux
3501.71Sbouyerfile	arch/x86/x86/linux_trap.c		compat_linux
3511.71Sbouyer# Linux 32 bit compatibility (COMPAT_LINUX32)
3521.71Sbouyerinclude "compat/linux32/files.linux32"
3531.71Sbouyerinclude "compat/linux32/arch/amd64/files.linux32_amd64"
3541.71Sbouyerfile	arch/amd64/amd64/linux32_sigcode.S	compat_linux32
3551.71Sbouyerfile	arch/amd64/amd64/linux32_syscall.c	compat_linux32
3561.71Sbouyerendif
3571.71Sbouyer
3581.1Scl# OSS audio driver compatibility
3591.1Sclinclude	"compat/ossaudio/files.ossaudio"
3601.1Scl
3611.50Sxtraeme# Bluetooth
3621.50Sxtraemeinclude "dev/bluetooth/files.bluetooth"
3631.50Sxtraeme
3641.26Syamt#
3651.26Syamt# CARDBUS
3661.26Syamt#
3671.26Syamtinclude	"dev/cardbus/files.cardbus"
3681.71Sbouyerifdef i386
3691.26Syamtfile	arch/i386/i386/rbus_machdep.c	cardbus
3701.71Sbouyerelifdef amd64
3711.71Sbouyerfile	arch/amd64/amd64/rbus_machdep.c cardbus
3721.71Sbouyerendif
3731.26Syamt
3741.26Syamt# this wants to be probed as late as possible.
3751.26Syamt#
3761.26Syamt# Machine-independent PCMCIA drivers
3771.26Syamt#
3781.26Syamtinclude	"dev/pcmcia/files.pcmcia"
3791.26Syamt
3801.12Scl# Domain-0 operations
3811.52Sbouyerdefflag	opt_xen.h			DOM0OPS XEN_COMPAT_030001
3821.12Sclfile	arch/xen/xen/privcmd.c		dom0ops
3831.71Sbouyerfile 	arch/xen/x86/xen_shm_machdep.c	dom0ops | xen3
3841.33Sbouyerfile	arch/xen/xen/xbdback.c		dom0ops & !xen3
3851.33Sbouyerfile	arch/xen/xen/xennetback.c	dom0ops & !xen3
3861.40Sbouyerfile	arch/xen/xen/pci_machdep.c	hypervisor & pci & !xen3
3871.40Sbouyerfile	arch/x86/pci/pci_machdep.c	hypervisor & pci & xen3
3881.40Sbouyerfile	arch/xen/xen/pci_intr_machdep.c	hypervisor & pci
3891.17Sbouyerfile	arch/xen/xen/isa_machdep.c	hypervisor & dom0ops
3901.17Sbouyerfile	arch/xen/xen/xenevt.c		xenevt & dom0ops
3911.41Sbouyerfile	arch/xen/xen/xennetback_xenbus.c xvif & xen3
3921.45Syamtfile	arch/xen/xen/xennet_checksum.c	(xvif & xen3) | xennet_xenbus
3931.43Sbouyerfile	arch/xen/xen/xbdback_xenbus.c xbdback & xen3
3941.12Scl
3951.71Sbouyerifdef i386
3961.18Sbouyerinclude "arch/i386/conf/majors.i386"
3971.71Sbouyerelifdef amd64
3981.74Sbouyerinclude "arch/amd64/conf/majors.amd64"
3991.71Sbouyerendif
400