GENERIC revision 37785
1139749Simp#
2135048Swpaul# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
3135048Swpaul#
4135048Swpaul# For more information read the handbook part System Administration -> 
5135048Swpaul# Configuring the FreeBSD Kernel -> The Configuration File. 
6135048Swpaul# The handbook is available in /usr/share/doc/handbook or online as
7135048Swpaul# latest version from the FreeBSD World Wide Web server 
8135048Swpaul# <URL:http://www.FreeBSD.ORG/>
9135048Swpaul#
10135048Swpaul# An exhaustive list of options and more detailed explanations of the 
11135048Swpaul# device lines is present in the ./LINT configuration file. If you are 
12135048Swpaul# in doubt as to the purpose or necessity of a line, check first in LINT.
13135048Swpaul#
14135048Swpaul#	$Id: GENERIC,v 1.111 1998/07/17 06:45:26 joerg Exp $
15135048Swpaul
16135048Swpaulmachine		"i386"
17135048Swpaulcpu		"I386_CPU"
18135048Swpaulcpu		"I486_CPU"
19135048Swpaulcpu		"I586_CPU"
20135048Swpaulcpu		"I686_CPU"
21135048Swpaulident		GENERIC
22135048Swpaulmaxusers	10
23135048Swpaul
24135048Swpauloptions		MATH_EMULATE		#Support for x87 emulation
25135048Swpauloptions		INET			#InterNETworking
26135048Swpauloptions		FFS			#Berkeley Fast Filesystem
27135048Swpauloptions		NFS			#Network Filesystem
28135048Swpauloptions		MSDOSFS			#MSDOS Filesystem
29135048Swpauloptions		"CD9660"		#ISO 9660 Filesystem
30135048Swpauloptions		"CD9660_ROOT"		#CD-ROM usable as root device
31135048Swpauloptions		FFS_ROOT		#FFS usable as root device [keep this!]
32135048Swpauloptions		NFS_ROOT		#NFS usable as root device
33135048Swpauloptions		PROCFS			#Process filesystem
34135048Swpauloptions		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
35135048Swpauloptions		SCSI_DELAY=15		#Be pessimistic about Joe SCSI device
36135048Swpauloptions		BOUNCE_BUFFERS		#include support for DMA bounce buffers
37178598Srajoptions		UCONSOLE		#Allow users to grab the console
38135048Swpauloptions		FAILSAFE		#Be conservative
39135048Swpauloptions		USERCONFIG		#boot -c editor
40135048Swpauloptions		VISUAL_USERCONFIG	#visual boot -c editor
41135048Swpaul
42135048Swpaulconfig		kernel	root on wd0
43135048Swpaul
44135048Swpaulcontroller	isa0
45135048Swpaulcontroller	eisa0
46135048Swpaulcontroller	pci0
47135048Swpaul
48135048Swpaulcontroller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
49135048Swpauldisk		fd0	at fdc0 drive 0
50135048Swpauldisk		fd1	at fdc0 drive 1
51135048Swpaul# Unless you know very well what you're doing, leave ft0 at drive 2, or
52135048Swpaul# remove the line entirely if you don't need it.  Trying to configure
53135048Swpaul# it on another unit might cause surprises, see PR kern/7176.
54135048Swpaultape		ft0	at fdc0 drive 2
55135048Swpaul
56135048Swpauloptions		"CMD640"	# work around CMD640 chip deficiency
57135048Swpaulcontroller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
58135048Swpauldisk		wd0	at wdc0 drive 0
59135048Swpauldisk		wd1	at wdc0 drive 1
60213893Smarius
61135048Swpaulcontroller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
62135048Swpauldisk		wd2	at wdc1 drive 0
63135048Swpauldisk		wd3	at wdc1 drive 1
64135048Swpaul
65135048Swpauloptions		ATAPI		#Enable ATAPI support for IDE bus
66135048Swpauloptions		ATAPI_STATIC	#Don't do it as an LKM
67135048Swpauldevice		wcd0		#IDE CD-ROM
68135048Swpauldevice		wfd0		#IDE Floppy (e.g. LS-120)
69135048Swpaul
70227908Smarius# A single entry for any of these controllers (ncr, ahb, ahc, amd) is
71135048Swpaul# sufficient for any number of installed devices.
72135048Swpaulcontroller	ncr0
73135048Swpaulcontroller	amd0
74135048Swpaulcontroller	ahb0
75135048Swpaulcontroller	ahc0
76135048Swpaulcontroller	isp0
77135048Swpaul
78135048Swpaul# This controller offers a number of configuration options, too many to
79135048Swpaul# document here  - see the LINT file in this directory and look up the
80135048Swpaul# dpt0 entry there for much fuller documentation on this.  The options
81135048Swpaul# line following dpt0 here is also currently a *required* option for it.
82135048Swpaulcontroller      dpt0
83135048Swpauloptions DPT_MEASURE_PERFORMANCE
84135048Swpaul
85135048Swpaulcontroller	bt0	at isa? port "IO_BT0" bio irq ? vector bt_isa_intr
86135048Swpaulcontroller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
87135048Swpaulcontroller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
88164827Smariuscontroller	aic0	at isa? port 0x340 bio irq 11 vector aicintr
89221407Smariuscontroller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
90221407Smariuscontroller	nca1	at isa? port 0x350 bio irq 5 vector ncaintr
91221407Smariuscontroller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector seaintr
92221407Smarius
93221407Smariuscontroller	scbus0
94235999Sraj
95221407Smariusdevice		sd0
96221407Smarius
97235999Srajdevice		od0	#See LINT for possible `od' options.
98164827Smarius
99164827Smariusdevice		st0
100164827Smarius
101221407Smariusdevice		cd0	#Only need one of these, the code dynamically grows
102221407Smarius
103221407Smariusdevice		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
104221407Smariusdevice		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr
105221407Smarius
106221407Smariuscontroller	matcd0	at isa? port 0x230 bio
107135048Swpaul
108150763Simpdevice		scd0	at isa? port 0x230 bio
109135048Swpaul
110135048Swpaul# syscons is the default console driver, resembling an SCO console
111164827Smariusdevice		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
112135048Swpaul# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
113135048Swpaul#device		vt0	at isa? port "IO_KBD" tty irq 1 vector pcrint
114135048Swpaul#options		XSERVER			# support for X server
115150763Simp#options		FAT_CURSOR		# start with block cursor
116135048Swpaul# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
117135048Swpaul#options		PCVT_SCANSET=2		# IBM keyboards are non-std
118221407Smarius
119221407Smariusdevice		npx0	at isa? port "IO_NPX" irq 13 vector npxintr
120164705Smarius
121135048Swpaul#
122135048Swpaul# Laptop support (see LINT for more options)
123135048Swpaul#
124150763Simpdevice		apm0    at isa?	disable	flags 0x31 # Advanced Power Management
125135048Swpaul
126135048Swpaul# PCCARD (PCMCIA) support
127135048Swpaul#controller	card0
128135048Swpaul#device		pcic0	at card?
129135048Swpaul#device		pcic1	at card?
130135048Swpaul
131135048Swpauldevice		sio0	at isa? port "IO_COM1" flags 0x10 tty irq 4 vector siointr
132135048Swpauldevice		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
133135048Swpauldevice		sio2	at isa? disable port "IO_COM3" tty irq 5 vector siointr
134135048Swpauldevice		sio3	at isa? disable port "IO_COM4" tty irq 9 vector siointr
135135048Swpaul
136135048Swpauldevice		lpt0	at isa? port? tty irq 7 vector lptintr
137135048Swpauldevice		lpt1	at isa? port? tty
138135048Swpauldevice		mse0	at isa? port 0x23c tty irq 5 vector mseintr
139135048Swpaul
140135048Swpauldevice		psm0	at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr
141135048Swpaul
142135048Swpaul# Order is important here due to intrusive probes, do *not* alphabetize
143135048Swpaul# this list of network interfaces until the probes have been fixed.
144135048Swpaul# Right now it appears that the ie0 must be probed before ep0. See
145135048Swpaul# revision 1.20 of this file.
146135048Swpauldevice de0
147135048Swpauldevice fxp0
148135048Swpauldevice tl0
149135048Swpauldevice tx0
150135048Swpauldevice vx0
151215297Smarius
152135048Swpauldevice ed0 at isa? port 0x280 net irq 10 iomem 0xd8000 vector edintr
153135048Swpauldevice ie0 at isa? port 0x300 net irq 10 iomem 0xd0000 vector ieintr
154135048Swpauldevice ep0 at isa? port 0x300 net irq 10 vector epintr
155135048Swpauldevice ex0 at isa? port? net irq? vector exintr
156135048Swpauldevice fe0 at isa? port 0x300 net irq ? vector feintr
157135048Swpauldevice le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
158135048Swpauldevice lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
159135048Swpauldevice ze0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zeintr
160135048Swpauldevice zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr
161135048Swpauldevice cs0 at isa? port 0x300 net irq ? vector csintr
162217413Smarius
163135048Swpaulpseudo-device	loop
164135048Swpaulpseudo-device	ether
165217413Smariuspseudo-device	sl	1
166135048Swpaulpseudo-device	ppp	1
167135048Swpaulpseudo-device	tun	1
168217413Smariuspseudo-device	pty	16
169217413Smariuspseudo-device	gzip		# Exec gzipped a.out's
170217413Smarius
171217413Smarius# KTRACE enables the system-call tracing facility ktrace(2).
172217413Smarius# This adds 4 KB bloat to your kernel, and slightly increases
173217413Smarius# the costs of each syscall.
174217413Smariusoptions		KTRACE		#kernel tracing
175217413Smarius
176217413Smarius# This provides support for System V shared memory.
177135048Swpaul#
178135048Swpauloptions		SYSVSHM
179135048Swpaul