GENERIC revision 41366
1204642Srdivacky# 2204642Srdivacky# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks 3204642Srdivacky# 4204642Srdivacky# For more information read the handbook part System Administration -> 5204642Srdivacky# Configuring the FreeBSD Kernel -> The Configuration File. 6204642Srdivacky# The handbook is available in /usr/share/doc/handbook or online as 7204642Srdivacky# latest version from the FreeBSD World Wide Web server 8204642Srdivacky# <URL:http://www.FreeBSD.ORG/> 9204642Srdivacky# 10204642Srdivacky# An exhaustive list of options and more detailed explanations of the 11204642Srdivacky# device lines is present in the ./LINT configuration file. If you are 12204642Srdivacky# in doubt as to the purpose or necessity of a line, check first in LINT. 13204642Srdivacky# 14204642Srdivacky# $Id: GENERIC,v 1.131 1998/11/12 11:29:28 obrien Exp $ 15204642Srdivacky 16204642Srdivackymachine "i386" 17204642Srdivackycpu "I386_CPU" 18249423Sdimcpu "I486_CPU" 19204642Srdivackycpu "I586_CPU" 20204642Srdivackycpu "I686_CPU" 21204642Srdivackyident GENERIC 22204642Srdivackymaxusers 32 23204642Srdivacky 24204642Srdivackyoptions MATH_EMULATE #Support for x87 emulation 25204642Srdivackyoptions INET #InterNETworking 26204642Srdivackyoptions FFS #Berkeley Fast Filesystem 27204642Srdivackyoptions FFS_ROOT #FFS usable as root device [keep this!] 28249423Sdimoptions MFS #Memory Filesystem 29249423Sdimoptions MFS_ROOT #MFS usable as root device, "MFS" req'ed 30249423Sdimoptions NFS #Network Filesystem 31249423Sdimoptions NFS_ROOT #NFS usable as root device, "NFS" req'ed 32249423Sdimoptions MSDOSFS #MSDOS Filesystem 33204642Srdivackyoptions "CD9660" #ISO 9660 Filesystem 34204642Srdivackyoptions "CD9660_ROOT" #CD-ROM usable as root. "CD9660" req'ed 35204642Srdivackyoptions PROCFS #Process filesystem 36204642Srdivackyoptions "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!] 37204642Srdivackyoptions SCSI_DELAY=15000 #Be pessimistic about Joe SCSI device 38218893Sdimoptions UCONSOLE #Allow users to grab the console 39218893Sdimoptions FAILSAFE #Be conservative 40218893Sdimoptions USERCONFIG #boot -c editor 41218893Sdimoptions VISUAL_USERCONFIG #visual boot -c editor 42218893Sdim 43204642Srdivackyconfig kernel root on wd0 44204642Srdivacky 45204642Srdivackycontroller isa0 46204642Srdivackycontroller eisa0 47204642Srdivackycontroller pci0 48204642Srdivacky 49204642Srdivackycontroller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 50204642Srdivackydisk fd0 at fdc0 drive 0 51204642Srdivackydisk fd1 at fdc0 drive 1 52204642Srdivacky# Unless you know very well what you're doing, leave ft0 at drive 2, or 53204642Srdivacky# remove the line entirely if you don't need it. Trying to configure 54204642Srdivacky# it on another unit might cause surprises, see PR kern/7176. 55204642Srdivackytape ft0 at fdc0 drive 2 56204642Srdivacky 57204642Srdivackyoptions "CMD640" # work around CMD640 chip deficiency 58204642Srdivackycontroller wdc0 at isa? port "IO_WD1" bio irq 14 59204642Srdivackydisk wd0 at wdc0 drive 0 60204642Srdivackydisk wd1 at wdc0 drive 1 61204642Srdivacky 62226633Sdimcontroller wdc1 at isa? port "IO_WD2" bio irq 15 63204642Srdivackydisk wd2 at wdc1 drive 0 64204642Srdivackydisk wd3 at wdc1 drive 1 65239462Sdim 66204642Srdivackyoptions ATAPI #Enable ATAPI support for IDE bus 67239462Sdimoptions ATAPI_STATIC #Don't do it as an LKM 68204642Srdivackydevice wcd0 #IDE CD-ROM 69204642Srdivackydevice wfd0 #IDE Floppy (e.g. LS-120) 70204642Srdivacky 71204642Srdivacky# A single entry for any of these controllers (ncr, ahb, ahc) is 72204642Srdivacky# sufficient for any number of installed devices. 73224145Sdimcontroller ncr0 74204642Srdivackycontroller ahb0 75204642Srdivackycontroller ahc0 76204642Srdivackycontroller isp0 77204642Srdivacky 78204642Srdivacky# This controller offers a number of configuration options, too many to 79204642Srdivacky# document here - see the LINT file in this directory and look up the 80204642Srdivacky# dpt0 entry there for much fuller documentation on this. 81204642Srdivackycontroller dpt0 82204642Srdivacky 83204642Srdivackycontroller adv0 at isa? port ? cam irq ? 84249423Sdimcontroller adw0 85204642Srdivackycontroller bt0 at isa? port ? cam irq ? 86204642Srdivackycontroller aha0 at isa? port ? cam irq ? 87204642Srdivacky#controller uha0 at isa? port "IO_UHA0" bio irq ? drq 5 88204642Srdivacky#controller aic0 at isa? port 0x340 bio irq 11 89204642Srdivacky 90204642Srdivackycontroller scbus0 91204642Srdivacky 92204642Srdivackydevice da0 93204642Srdivacky 94204642Srdivackydevice sa0 95204642Srdivacky 96204642Srdivackydevice pass0 97218893Sdim 98218893Sdimdevice cd0 #Only need one of these, the code dynamically grows 99218893Sdim 100218893Sdimdevice wt0 at isa? port 0x300 bio irq 5 drq 1 101204642Srdivackydevice mcd0 at isa? port 0x300 bio irq 10 102204642Srdivacky 103204642Srdivackycontroller matcd0 at isa? port 0x230 bio 104204642Srdivacky 105204642Srdivackydevice scd0 at isa? port 0x230 bio 106204642Srdivacky 107204642Srdivacky# syscons is the default console driver, resembling an SCO console 108204642Srdivackydevice sc0 at isa? port IO_KBD conflicts tty irq 1 109204642Srdivacky# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver 110204642Srdivacky#device vt0 at isa? port IO_KBD conflicts tty irq 1 111204642Srdivacky#options XSERVER # support for X server 112204642Srdivacky#options FAT_CURSOR # start with block cursor 113204642Srdivacky# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines 114204642Srdivacky#options PCVT_SCANSET=2 # IBM keyboards are non-std 115204642Srdivacky 116204642Srdivackydevice npx0 at isa? port IO_NPX irq 13 117204642Srdivacky 118204642Srdivacky# 119204642Srdivacky# Laptop support (see LINT for more options) 120204642Srdivacky# 121204642Srdivackydevice apm0 at isa? disable flags 0x31 # Advanced Power Management 122204642Srdivacky 123204642Srdivacky# PCCARD (PCMCIA) support 124204642Srdivacky#controller card0 125204642Srdivacky#device pcic0 at card? 126204642Srdivacky#device pcic1 at card? 127218893Sdim 128218893Sdimdevice sio0 at isa? port "IO_COM1" flags 0x10 tty irq 4 129204642Srdivackydevice sio1 at isa? port "IO_COM2" tty irq 3 130204642Srdivackydevice sio2 at isa? disable port "IO_COM3" tty irq 5 131204642Srdivackydevice sio3 at isa? disable port "IO_COM4" tty irq 9 132204642Srdivacky 133204642Srdivackydevice lpt0 at isa? port? tty irq 7 134204642Srdivacky 135204642Srdivackydevice psm0 at isa? port IO_KBD conflicts tty irq 12 136204642Srdivacky 137204642Srdivacky# Order is important here due to intrusive probes, do *not* alphabetize 138204642Srdivacky# this list of network interfaces until the probes have been fixed. 139204642Srdivacky# Right now it appears that the ie0 must be probed before ep0. See 140204642Srdivacky# revision 1.20 of this file. 141204642Srdivackydevice de0 142204642Srdivackydevice fxp0 143204642Srdivackydevice rl0 144204642Srdivackydevice tl0 145204642Srdivackydevice tx0 146204642Srdivackydevice vx0 147204642Srdivackydevice xl0 148204642Srdivacky 149204642Srdivackydevice ed0 at isa? port 0x280 net irq 10 iomem 0xd8000 150204642Srdivackydevice ie0 at isa? port 0x300 net irq 10 iomem 0xd0000 151204642Srdivackydevice ep0 at isa? port 0x300 net irq 10 152204642Srdivackydevice ex0 at isa? port? net irq? 153204961Srdivackydevice fe0 at isa? port 0x300 net irq ? 154204961Srdivackydevice le0 at isa? port 0x300 net irq 5 iomem 0xd0000 155204961Srdivackydevice lnc0 at isa? port 0x280 net irq 10 drq 0 156204961Srdivackydevice ze0 at isa? port 0x300 net irq 10 iomem 0xd8000 157204961Srdivackydevice zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 158204961Srdivackydevice cs0 at isa? port 0x300 net irq ? 159204961Srdivacky 160204642Srdivackypseudo-device loop 161204642Srdivackypseudo-device ether 162204642Srdivackypseudo-device sl 1 163249423Sdimpseudo-device ppp 1 164249423Sdimpseudo-device tun 1 165204642Srdivackypseudo-device pty 16 166204642Srdivackypseudo-device gzip # Exec gzipped a.out's 167204642Srdivacky 168204642Srdivacky# KTRACE enables the system-call tracing facility ktrace(2). 169204642Srdivacky# This adds 4 KB bloat to your kernel, and slightly increases 170204642Srdivacky# the costs of each syscall. 171204642Srdivackyoptions KTRACE #kernel tracing 172234353Sdim 173204642Srdivacky# This provides support for System V shared memory. 174234353Sdim# 175204642Srdivackyoptions SYSVSHM 176204642Srdivacky 177204642Srdivacky# The `bpfilter' pseudo-device enables the Berkeley Packet Filter. Be 178204642Srdivacky# aware of the legal and administrative consequences of enabling this 179204642Srdivacky# option. The number of devices determines the maximum number of 180204642Srdivacky# simultaneous BPF clients programs runnable. 181204642Srdivacky#pseudo-device bpfilter 4 #Berkeley packet filter 182204642Srdivacky 183204642Srdivacky 184204642Srdivacky# USB support 185204642Srdivacky#controller uhci0 186204642Srdivacky#controller usb0 187204642Srdivacky# 188204642Srdivacky# for the moment we have to specify the priorities of the device 189223017Sdim# drivers explicitly by the ordering in the list below. This will 190223017Sdim# be changed in the future. 191204642Srdivacky# 192204642Srdivacky#device ums0 193204642Srdivacky#device ukbd0 194204642Srdivacky#device ulpt0 195226633Sdim#device uhub0 196204642Srdivacky#device hid0 197204642Srdivacky#device ugen0 198204642Srdivacky# 199207618Srdivacky#options USB_DEBUG 200207618Srdivacky#options USBVERBOSE 201204642Srdivacky