GENERIC revision 40870
1227569Sphilip#
2300607Sarybchik# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
3283514Sarybchik#
4227569Sphilip# For more information read the handbook part System Administration -> 
5227569Sphilip# Configuring the FreeBSD Kernel -> The Configuration File. 
6283514Sarybchik# The handbook is available in /usr/share/doc/handbook or online as
7227569Sphilip# latest version from the FreeBSD World Wide Web server 
8283514Sarybchik# <URL:http://www.FreeBSD.ORG/>
9283514Sarybchik#
10283514Sarybchik# An exhaustive list of options and more detailed explanations of the 
11283514Sarybchik# device lines is present in the ./LINT configuration file. If you are 
12283514Sarybchik# in doubt as to the purpose or necessity of a line, check first in LINT.
13283514Sarybchik#
14283514Sarybchik#	$Id: GENERIC,v 1.129 1998/11/03 21:12:20 des Exp $
15283514Sarybchik
16283514Sarybchikmachine		"i386"
17283514Sarybchikcpu		"I386_CPU"
18283514Sarybchikcpu		"I486_CPU"
19283514Sarybchikcpu		"I586_CPU"
20283514Sarybchikcpu		"I686_CPU"
21283514Sarybchikident		GENERIC
22283514Sarybchikmaxusers	32
23283514Sarybchik
24283514Sarybchikoptions		MATH_EMULATE		#Support for x87 emulation
25283514Sarybchikoptions		INET			#InterNETworking
26283514Sarybchikoptions		FFS			#Berkeley Fast Filesystem
27283514Sarybchikoptions		FFS_ROOT		#FFS usable as root device [keep this!]
28283514Sarybchikoptions		MFS			#Memory Filesystem
29227569Sphilipoptions		MFS_ROOT		#MFS usable as root device, "MFS" req'ed
30228078Sphilipoptions		NFS			#Network Filesystem
31228078Sphilipoptions		NFS_ROOT		#NFS usable as root device, "NFS" req'ed
32228078Sphilipoptions		MSDOSFS			#MSDOS Filesystem
33228078Sphilipoptions		"CD9660"		#ISO 9660 Filesystem
34227569Sphilipoptions		"CD9660_ROOT"		#CD-ROM usable as root. "CD9660" req'ed
35227569Sphilipoptions		PROCFS			#Process filesystem
36283514Sarybchikoptions		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
37227569Sphilipoptions		SCSI_DELAY=15000	#Be pessimistic about Joe SCSI device
38227569Sphilipoptions		UCONSOLE		#Allow users to grab the console
39227569Sphilipoptions		FAILSAFE		#Be conservative
40310933Sarybchikoptions		USERCONFIG		#boot -c editor
41310933Sarybchikoptions		VISUAL_USERCONFIG	#visual boot -c editor
42291436Sarybchik
43227569Sphilipconfig		kernel	root on wd0
44227569Sphilip
45227569Sphilipcontroller	isa0
46227569Sphilipcontroller	eisa0
47227569Sphilipcontroller	pci0
48342445Sarybchik
49342445Sarybchikcontroller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2
50291436Sarybchikdisk		fd0	at fdc0 drive 0
51227569Sphilipdisk		fd1	at fdc0 drive 1
52227569Sphilip# Unless you know very well what you're doing, leave ft0 at drive 2, or
53283514Sarybchik# remove the line entirely if you don't need it.  Trying to configure
54283514Sarybchik# it on another unit might cause surprises, see PR kern/7176.
55283514Sarybchiktape		ft0	at fdc0 drive 2
56283514Sarybchik
57227569Sphilipoptions		"CMD640"	# work around CMD640 chip deficiency
58227569Sphilipcontroller	wdc0	at isa? port "IO_WD1" bio irq 14
59227569Sphilipdisk		wd0	at wdc0 drive 0
60227569Sphilipdisk		wd1	at wdc0 drive 1
61227569Sphilip
62227569Sphilipcontroller	wdc1	at isa? port "IO_WD2" bio irq 15
63227569Sphilipdisk		wd2	at wdc1 drive 0
64227569Sphilipdisk		wd3	at wdc1 drive 1
65227569Sphilip
66227569Sphilipoptions		ATAPI		#Enable ATAPI support for IDE bus
67227569Sphilipoptions		ATAPI_STATIC	#Don't do it as an LKM
68227569Sphilipdevice		wcd0		#IDE CD-ROM
69227569Sphilipdevice		wfd0		#IDE Floppy (e.g. LS-120)
70227569Sphilip
71227569Sphilip# A single entry for any of these controllers (ncr, ahb, ahc, amd) is
72227569Sphilip# sufficient for any number of installed devices.
73227569Sphilipcontroller	ncr0
74227569Sphilip#controller	amd0
75227569Sphilipcontroller	ahb0
76227569Sphilipcontroller	ahc0
77291436Sarybchikcontroller	isp0
78227569Sphilip
79227569Sphilip# This controller offers a number of configuration options, too many to
80227569Sphilip# document here  - see the LINT file in this directory and look up the
81227569Sphilip# dpt0 entry there for much fuller documentation on this.
82310933Sarybchikcontroller      dpt0
83310933Sarybchik
84291436Sarybchikcontroller	adv0	at isa? port ? cam irq ?
85227569Sphilipcontroller	adw0
86227569Sphilipcontroller	bt0	at isa? port ? cam irq ?
87227569Sphilipcontroller	aha0	at isa? port ? cam irq ?
88227569Sphilip#controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5
89283514Sarybchik#controller	aic0	at isa? port 0x340 bio irq 11
90283514Sarybchik#controller	nca0	at isa? port 0x1f88 bio irq 10
91283514Sarybchik#controller	nca1	at isa? port 0x350 bio irq 5
92283514Sarybchik#controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000
93291436Sarybchik
94227569Sphilipcontroller	scbus0
95283514Sarybchik
96283514Sarybchikdevice		da0
97283514Sarybchik
98227569Sphilipdevice		sa0
99283514Sarybchik
100283514Sarybchikdevice		pass0
101227569Sphilip
102227569Sphilipdevice		cd0	#Only need one of these, the code dynamically grows
103279048Sarybchik
104227569Sphilipdevice		wt0	at isa? port 0x300 bio irq 5 drq 1
105283514Sarybchikdevice		mcd0	at isa? port 0x300 bio irq 10
106227569Sphilip
107311016Sarybchikcontroller	matcd0	at isa? port 0x230 bio
108311016Sarybchik
109311016Sarybchikdevice		scd0	at isa? port 0x230 bio
110311016Sarybchik
111311016Sarybchik# syscons is the default console driver, resembling an SCO console
112311016Sarybchikdevice		sc0	at isa? port IO_KBD conflicts tty irq 1
113311016Sarybchik# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
114279048Sarybchik#device		vt0	at isa? port IO_KBD conflicts tty irq 1
115279048Sarybchik#options		XSERVER			# support for X server
116283514Sarybchik#options		FAT_CURSOR		# start with block cursor
117279048Sarybchik# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
118279048Sarybchik#options		PCVT_SCANSET=2		# IBM keyboards are non-std
119283514Sarybchik
120283514Sarybchikdevice		npx0	at isa? port IO_NPX irq 13
121279048Sarybchik
122283514Sarybchik#
123279048Sarybchik# Laptop support (see LINT for more options)
124279048Sarybchik#
125279182Sarybchikdevice		apm0    at isa?	disable	flags 0x31 # Advanced Power Management
126279182Sarybchik
127279182Sarybchik# PCCARD (PCMCIA) support
128279182Sarybchik#controller	card0
129279048Sarybchik#device		pcic0	at card?
130283514Sarybchik#device		pcic1	at card?
131283514Sarybchik
132227569Sphilipdevice		sio0	at isa? port "IO_COM1" flags 0x10 tty irq 4
133283514Sarybchikdevice		sio1	at isa? port "IO_COM2" tty irq 3
134283514Sarybchikdevice		sio2	at isa? disable port "IO_COM3" tty irq 5
135283514Sarybchikdevice		sio3	at isa? disable port "IO_COM4" tty irq 9
136227569Sphilip
137283514Sarybchikdevice		lpt0	at isa? port? tty irq 7
138283514Sarybchik
139227569Sphilipdevice		psm0	at isa? port IO_KBD conflicts tty irq 12
140311765Sarybchik
141311765Sarybchik# Order is important here due to intrusive probes, do *not* alphabetize
142311765Sarybchik# this list of network interfaces until the probes have been fixed.
143311765Sarybchik# Right now it appears that the ie0 must be probed before ep0. See
144283514Sarybchik# revision 1.20 of this file.
145283514Sarybchikdevice de0
146283514Sarybchikdevice fxp0
147283514Sarybchikdevice rl0
148283514Sarybchikdevice tl0
149283514Sarybchikdevice tx0
150283514Sarybchikdevice vx0
151283514Sarybchikdevice xl0
152283514Sarybchik
153227569Sphilipdevice ed0 at isa? port 0x280 net irq 10 iomem 0xd8000
154283514Sarybchikdevice ie0 at isa? port 0x300 net irq 10 iomem 0xd0000
155283514Sarybchikdevice ep0 at isa? port 0x300 net irq 10
156283514Sarybchikdevice ex0 at isa? port? net irq?
157227569Sphilipdevice fe0 at isa? port 0x300 net irq ?
158342407Sarybchikdevice le0 at isa? port 0x300 net irq 5 iomem 0xd0000
159342407Sarybchikdevice lnc0 at isa? port 0x280 net irq 10 drq 0
160227569Sphilipdevice ze0 at isa? port 0x300 net irq 10 iomem 0xd8000
161279098Sarybchikdevice zp0 at isa? port 0x300 net irq 10 iomem 0xd8000
162279098Sarybchikdevice cs0 at isa? port 0x300 net irq ?
163227569Sphilip
164283514Sarybchikpseudo-device	loop
165283514Sarybchikpseudo-device	ether
166293891Sarybchikpseudo-device	sl	1
167311015Sarybchikpseudo-device	ppp	1
168291922Sarybchikpseudo-device	tun	1
169283514Sarybchikpseudo-device	pty	16
170299904Sarybchikpseudo-device	gzip		# Exec gzipped a.out's
171299904Sarybchik
172299904Sarybchik# KTRACE enables the system-call tracing facility ktrace(2).
173299904Sarybchik# This adds 4 KB bloat to your kernel, and slightly increases
174311481Sarybchik# the costs of each syscall.
175311481Sarybchikoptions		KTRACE		#kernel tracing
176227569Sphilip
177227569Sphilip# This provides support for System V shared memory.
178227569Sphilip#
179227569Sphilipoptions		SYSVSHM
180227569Sphilip
181291436Sarybchik#  The `bpfilter' pseudo-device enables the Berkeley Packet Filter.  Be
182227569Sphilip#  aware of the legal and administrative consequences of enabling this
183227569Sphilip#  option.  The number of devices determines the maximum number of
184227569Sphilip#  simultaneous BPF clients programs runnable.
185227569Sphilip#pseudo-device	bpfilter 4	#Berkeley packet filter
186291436Sarybchik