1# $NetBSD: files.i386,v 1.362 2011/11/18 22:18:07 jmcneill Exp $ 2# 3# new style config file for i386 architecture 4# 5 6ifndef xen 7 8# maxpartitions must be first item in files.${ARCH}.newconf 9maxpartitions 8 10 11maxusers 2 16 128 12 13defparam opt_kernbase.h KERNBASE 14 15# delay before cpu_reset() for reboot. 16defparam CPURESET_DELAY 17 18# Obsolete Xbox support 19obsolete defflag XBOX 20 21# VM86 emulation 22defflag VM86 23defflag KVM86 24 25# User-settable LDT (used by WINE) 26defflag USER_LDT 27 28# X server support in console drivers 29defflag opt_xserver.h XSERVER XSERVER_DDB 30 31# The REAL{BASE,EXT}MEM options 32defparam opt_realmem.h REALBASEMEM REALEXTMEM 33 34# The PHYSMEM_MAX_{SIZE,ADDR} optionms 35defparam opt_physmem.h PHYSMEM_MAX_ADDR PHYSMEM_MAX_SIZE 36 37# understand boot device passed by pre-1.3 bootblocks 38defflag COMPAT_OLDBOOT 39 40# PCI BIOS options 41defflag opt_pcibios.h PCIBIOS PCIBIOSVERBOSE 42 PCIBIOS_INTR_GUESS PCIINTR_DEBUG 43defparam opt_pcibios.h PCIBIOS_IRQS_HINT 44 45# kernel stack debug 46defflag opt_kstack_dr0.h KSTACK_CHECK_DR0 47 48# splraise()/spllower() debug 49defflag opt_spldebug.h SPLDEBUG 50 51# Beep on halt 52defflag opt_beep.h BEEP_ONHALT 53defparam opt_beep.h BEEP_ONHALT_COUNT=3 54defparam opt_beep.h BEEP_ONHALT_PITCH=1500 55defparam opt_beep.h BEEP_ONHALT_PERIOD=250 56 57# Multiboot support 58defflag opt_multiboot.h MULTIBOOT 59obsolete defparam MULTIBOOT_SYMTAB_SPACE 60file arch/i386/i386/multiboot.c multiboot 61 62file arch/i386/i386/autoconf.c 63file arch/i386/i386/aout_machdep.c exec_aout 64file arch/i386/i386/busfunc.S 65file arch/i386/i386/cpufunc.S 66file arch/i386/i386/cpu_in_cksum.S (inet | inet6) & cpu_in_cksum 67file arch/i386/i386/db_dbgreg.S ddb | kstack_check_dr0 68file arch/i386/i386/db_disasm.c ddb 69file arch/i386/i386/db_interface.c ddb 70file arch/i386/i386/db_machdep.c ddb 71file arch/i386/i386/db_memrw.c ddb | kgdb 72file arch/i386/i386/dumpsys.c 73file kern/subr_disk_mbr.c disk 74file kern/subr_spldebug.c spldebug 75file arch/i386/i386/gdt.c 76file arch/i386/i386/i386func.S 77file arch/i386/i386/ipkdb_glue.c ipkdb 78file arch/i386/i386/kgdb_machdep.c kgdb 79file arch/i386/i386/kobj_machdep.c modular 80file arch/i386/i386/machdep.c 81file arch/i386/i386/longrun.c 82file arch/i386/i386/mtrr_k6.c mtrr 83file arch/i386/i386/process_machdep.c 84file arch/i386/i386/trap.c 85file dev/cons.c 86 87file arch/i386/i386/mptramp.S multiprocessor 88 89file arch/i386/i386/pmc.c perfctrs 90 91file crypto/des/arch/i386/des_enc.S des 92file crypto/des/arch/i386/des_cbc.S des 93 94file crypto/blowfish/arch/i386/bf_enc.S blowfish 95file crypto/blowfish/arch/i386/bf_cbc.S blowfish & !i386_cpu 96 97# 98# Machine-independent SCSI drivers 99# 100 101include "dev/scsipi/files.scsipi" 102 103# 104# Machine-independent ATA drivers 105# 106 107include "dev/ata/files.ata" 108 109# Memory Disk for install floppy 110file dev/md_root.c memory_disk_hooks & md 111 112# 113# Machine-independent I2O drivers 114# 115 116include "dev/i2o/files.i2o" 117 118# attribute used to bring in BIOS trampoline code for real-mode probing 119# of certain devices/BIOS features 120define bioscall 121file arch/i386/i386/bioscall.S bioscall needs-flag 122 123# BIOS32 routines 124define bios32 125file arch/i386/i386/bios32.c bios32 needs-flag 126 127# i386 specific mainbus attributes 128define apmbus {} 129define pnpbiosbus {} 130 131# 132# System bus types 133# 134 135# XXX BIOS32 only if something that uses it is configured! 136device mainbus: isabus, eisabus, mcabus, pcibus, bios32, acpibus, 137 cpubus, ioapicbus, apmbus, pnpbiosbus, ipmibus, 138 bioscall 139attach mainbus at root 140file arch/i386/i386/mainbus.c mainbus 141 142# 143# PCI-only drivers 144# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches 145# XXX devices to 'pci'. 146# 147include "dev/pci/files.pci" 148include "dev/pci/files.agp" 149file arch/i386/pci/pcibios.c pcibios 150file arch/i386/pci/pci_intr_fixup.c pcibios & pci_intr_fixup 151file arch/i386/pci/piix.c pcibios & pci_intr_fixup 152file arch/i386/pci/opti82c558.c pcibios & pci_intr_fixup 153file arch/i386/pci/opti82c700.c pcibios & pci_intr_fixup 154file arch/i386/pci/sis85c503.c pcibios & pci_intr_fixup 155file arch/i386/pci/via82c586.c pcibios & pci_intr_fixup 156file arch/i386/pci/via8231.c pcibios & pci_intr_fixup 157file arch/i386/pci/amd756.c pcibios & pci_intr_fixup 158file arch/i386/pci/ali1543.c pcibios & pci_intr_fixup 159defparam PCI_CONF_MODE 160file arch/i386/pci/pcic_pci_machdep.c pcic_pci 161 162# x86 specific PCI hardware 163include "arch/x86/pci/files.pci" 164 165# AMD Elan SC520 System Controller (PCI-Host bridge) 166define elanparbus { } 167define elanpexbus { } 168device elansc: sysmon_wdog, gpiobus, elanparbus, elanpexbus, pcibus 169attach elansc at pcibus 170 171file arch/i386/pci/elan520.c elansc 172 173device elanpar 174attach elanpar at elanparbus 175 176device elanpex 177attach elanpex at elanpexbus 178 179# AMD Geode CS5535 Companion IDE controller 180device gcscide: ata, ata_dma, ata_udma, pciide_common, wdc_common 181attach gcscide at pci 182file arch/i386/pci/gcscide.c gcscide 183 184# AMD Geode CS5536 Companion EHCI 185device gcscehci: usbus 186attach gcscehci at pci 187file arch/i386/pci/gcscehci.c gcscehci 188 189# AMD Geode SC1100 GCB area 190device geodegcb {} 191attach geodegcb at pci 192file arch/i386/pci/geode.c geodegcb 193 194# AMD Geode SC1100 Watchdog Timer 195device geodewdog: sysmon_wdog, geodegcb 196attach geodewdog at geodegcb 197file arch/i386/pci/geodewdg.c geodewdog 198 199# AMD Geode SC1100 high resolution counter 200device geodecntr: geodegcb 201attach geodecntr at geodegcb 202file arch/i386/pci/geodecntr.c geodecntr 203 204# PCI-EISA bridges 205device pceb: eisabus, isabus 206attach pceb at pci 207file arch/i386/pci/pceb.c pceb 208 209# PCI-ISA bridges 210device gscpcib: isabus, gpiobus 211attach gscpcib at pci 212file arch/i386/pci/gscpcib.c gscpcib 213 214# AMD Geode CS5535/CS5536 PCI-ISA bridge 215device gcscpcib: isabus, sysmon_wdog, gpiobus 216attach gcscpcib at pci with gcscpcib_pci 217file arch/i386/pci/gcscpcib_pci.c gcscpcib_pci 218file dev/ic/gcscpcib.c gcscpcib 219 220device piixpcib: isabus, bioscall 221attach piixpcib at pci 222file arch/i386/pci/piixpcib.c piixpcib 223 224device viapcib: isabus, i2cbus 225attach viapcib at pci 226file arch/i386/pci/viapcib.c viapcib 227 228# PCI-MCA bridges 229device pcmb: mcabus 230attach pcmb at pci 231file arch/i386/pci/pcmb.c pcmb 232 233device p64h2apic 234attach p64h2apic at pci 235file arch/i386/pci/p64h2apic.c p64h2apic 236 237 238# 239# ISA and mixed ISA+EISA or ISA+PCI drivers 240# 241 242include "dev/isa/files.isa" 243 244# PC clock 245file arch/x86/isa/clock.c isa 246file arch/x86/isa/rtc.c isa 247 248# TSC support 249file arch/x86/x86/tsc.c 250 251# Numeric Processing Extension; Math Co-processor 252device npx 253file arch/i386/isa/npx.c npx needs-flag 254 255attach npx at isa with npx_isa 256file arch/i386/isa/npx_isa.c npx_isa 257 258# PC Mice: Logitech-style and Microsoft-style 259device lms: wsmousedev 260attach lms at isa 261file arch/i386/isa/lms.c lms 262device mms: wsmousedev 263attach mms at isa 264file arch/i386/isa/mms.c mms 265 266include "dev/pckbport/files.pckbport" 267 268device sysbeep 269attach sysbeep at pcppi 270 271# Floppy disk controller 272device fdc {drive = -1}: isadma 273file dev/isa/fd.c fdc needs-flag 274 275attach fdc at isa with fdc_isa 276file dev/isa/fdc_isa.c fdc_isa 277 278device fd: disk 279attach fd at fdc 280 281# Adaptec AHA-284x VL SCSI controllers 282# device declaration in sys/conf/files 283attach ahc at isa with ahc_isa: ahc_aic77xx, smc93cx6 284file arch/i386/isa/ahc_isa.c ahc_isa 285 286# 287# EISA-only drivers 288# 289 290include "dev/eisa/files.eisa" 291file arch/i386/eisa/eisa_machdep.c eisa 292 293# 294# MCA-only drivers 295# 296 297device mca {[slot = -1]} : bioscall 298include "dev/mca/files.mca" 299file arch/i386/mca/mca_machdep.c mca 300 301# ISA Plug 'n Play devices 302file arch/i386/isa/isapnp_machdep.c isapnp 303 304# 305# VME support 306# 307include "dev/vme/files.vme" 308 309# 310# GPIB support 311# 312include "dev/gpib/files.gpib" 313 314# 315# CMOS RAM 316# 317defpseudo cmos 318file arch/i386/isa/cmos.c cmos needs-flag 319 320# 321# Other mainbus-attached devices 322# 323 324include "dev/apm/files.apm" 325 326# Advanced Power Management support (APM) 327attach apm at apmbus with apmbios: bioscall 328file arch/i386/i386/apmbios.c apmbios needs-flag 329file arch/i386/i386/apmcall.S apmbios 330 331# 332# Compatibility modules 333# 334 335# VM86 mode 336file arch/i386/i386/vm86.c vm86 337 338# VM86 in kernel 339file arch/i386/i386/kvm86.c kvm86 340file arch/i386/i386/kvm86call.S kvm86 341 342# Binary compatibility with previous NetBSD releases (COMPAT_XX) 343file arch/i386/i386/compat_13_machdep.c compat_13 344file arch/i386/i386/compat_16_machdep.c compat_16 | compat_ibcs2 345 346# SVR4 binary compatibility (COMPAT_SVR4) 347include "compat/svr4/files.svr4" 348file arch/i386/i386/svr4_machdep.c compat_svr4 349file arch/i386/i386/svr4_sigcode.S compat_svr4 350file arch/i386/i386/svr4_syscall.c compat_svr4 351 352# iBCS-2 binary compatibility (COMPAT_IBCS2) 353include "compat/ibcs2/files.ibcs2" 354file arch/i386/i386/ibcs2_machdep.c compat_ibcs2 355file arch/i386/i386/ibcs2_sigcode.S compat_ibcs2 356file arch/i386/i386/ibcs2_syscall.c compat_ibcs2 357 358# Linux binary compatibility (COMPAT_LINUX) 359include "compat/linux/files.linux" 360include "compat/linux/arch/i386/files.linux_i386" 361file arch/i386/i386/linux_sigcode.S compat_linux 362file arch/i386/i386/linux_syscall.c compat_linux 363file arch/x86/x86/linux_trap.c compat_linux 364 365# FreeBSD binary compatibility (COMPAT_FREEBSD) 366include "compat/freebsd/files.freebsd" 367file arch/i386/i386/freebsd_machdep.c compat_freebsd 368file arch/i386/i386/freebsd_sigcode.S compat_freebsd 369file arch/i386/i386/freebsd_syscall.c compat_freebsd 370 371# NDIS compatibilty (COMPAT_NDIS) 372include "compat/ndis/files.ndis" 373 374# OSS audio driver compatibility 375include "compat/ossaudio/files.ossaudio" 376 377# 378# CARDBUS 379# 380include "dev/cardbus/files.cardbus" 381file arch/i386/i386/rbus_machdep.c cardbus 382 383# XXXX pcic here because it needs to be late. The catch: pcic needs 384# to be late, so devices which attach to it are attached late. But it 385# needs to be before its isa and pci attachments. This answer is 386# non-optimal, but I don't have a better answer right now. 387 388# PCIC pcmcia controller 389# XXX this needs to be done very late, so it's done here. This feels 390# like a kludge, but it might be for the best. 391 392defparam PCIC_ISA_ALLOC_IOBASE 393defparam PCIC_ISA_ALLOC_IOSIZE 394defparam PCIC_ISA_INTR_ALLOC_MASK 395 396device pcic: pcmciabus 397file dev/ic/i82365.c pcic 398 399# PCIC pcmcia controller on ISA bus. 400attach pcic at isa with pcic_isa 401file dev/isa/i82365_isa.c pcic_isa 402 403# PCIC pcmcia controller on PCI bus. 404attach pcic at pci with pcic_pci 405file dev/pci/i82365_pci.c pcic_pci 406 407# PCIC pcmcia controller on PnP board 408attach pcic at isapnp with pcic_isapnp 409file dev/isapnp/i82365_isapnp.c pcic_isapnp 410 411# Code common to ISA and ISAPnP attachments 412file dev/isa/i82365_isasubr.c pcic_isa | pcic_isapnp | pcic_pci 413 414# XXXX tcic here because it needs to be late. The catch: tcic needs 415# to be late, so devices which attach to it are attached late. But it 416# needs to be before its isa and pci attachments. This answer is 417# non-optimal, but I don't have a better answer right now. 418 419# TCIC pcmcia controller 420# XXX this needs to be done very late, so it's done here. This feels 421# like a kludge, but it might be for the best. 422 423defparam TCIC_ISA_ALLOC_IOBASE 424defparam TCIC_ISA_ALLOC_IOSIZE 425defparam TCIC_ISA_INTR_ALLOC_MASK 426 427device tcic: pcmciabus 428file dev/ic/tcic2.c tcic 429 430# TCIC pcmcia controller 431attach tcic at isa with tcic_isa 432file dev/isa/tcic2_isa.c tcic_isa 433 434# this wants to be probed as late as possible. 435# 436# Machine-independent PCMCIA drivers 437# 438include "dev/pcmcia/files.pcmcia" 439 440 441include "dev/usb/files.usb" 442 443include "dev/bluetooth/files.bluetooth" 444 445include "dev/sdmmc/files.sdmmc" 446 447include "dev/ieee1394/files.ieee1394" 448 449include "arch/i386/pnpbios/files.pnpbios" 450 451include "dev/acpi/files.acpi" 452file arch/i386/acpi/acpi_wakeup_low.S acpi 453 454# Numeric Processing Extension; Math Co-processor 455attach npx at acpinodebus with npx_acpi 456file arch/i386/acpi/npx_acpi.c npx_acpi 457 458# Obsolete vesabios/vesafb flags 459obsolete defflag opt_vesabios.h VESABIOSVERBOSE 460obsolete defparam opt_vesafb.h VESAFB_WIDTH VESAFB_HEIGHT VESAFB_DEPTH 461obsolete defflag opt_vesafb.h VESAFB_PM 462 463# AMD Geode LX Security Block 464device glxsb: opencrypto 465attach glxsb at pci 466file arch/i386/pci/glxsb.c glxsb 467 468include "arch/i386/conf/majors.i386" 469endif #xen 470