#
# PAO98
# --- Default Kernel Configuration for
#     NEC 98x1 Note PC and EPSON '98 Compatible' Note PC.
#     Noriyuki Hosobuchi <hoso@ce.mbn.or.jp>
#     Tomohiko Kurahashi <kura@tim.hi-ho.ne.jp>
#

machine		"pc98"
cpu		"I386_CPU"
cpu		"I486_CPU"
cpu		"I586_CPU"
cpu		"I686_CPU"
ident		"PAO98"
maxusers	10

options 	"PC98"			#PC98
options 	MATH_EMULATE		#Support for x87 emulation
options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	MFS			#Memory Filesystem
options 	MFS_ROOT		#MFS usable as root device, "MFS" req'ed
options 	NFS			#Network Filesystem
options 	NFS_ROOT		#NFS usable as root device, "NFS" req'ed
options 	MSDOSFS			#MSDOS Filesystem
options 	"CD9660"		#ISO 9660 Filesystem
options 	"CD9660_ROOT"		#CD-ROM usable as root. "CD9660" req'ed
options 	PROCFS			#Process filesystem
options 	"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=15000	#Be pessimistic about Joe SCSI device
options 	EPSON_BOUNCEDMA		#use bounce buufer for 15-16M
#options 	EPSON_MEMWIN		#EPSON memory window support
options 	UCONSOLE		#Allow users to grab the console
options 	"LINE30"
options 	FAILSAFE		#Be conservative
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) syscall trace support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores

options 	"VM86"			# for APM support

#
#	IBM-PC HDD support
options 	COMPAT_ATDISK

# You may need to reset all pccards after resuming
options		PCIC_RESUME_RESET

# Detach SCSI devices when the SCSI card is removed
#options		SCSI_DETACH

# Detach ATAPI devices when the ATA card is removed
options		ATAPI_DETACH

# Japanese version of WaveLAN PCMCIA uses 2.4GHz band instead of 915MHz
# band that US version uses.  If you want to use Japanese version of
# WaveLAN, uncomment this line, or edit the corresponding config entry
# of /etc/pccard.conf.
#options	"WAVELAN_PCMCIA_24"

# Suspend the system when the battery status is "Low"
#options	"APM_BATT_LOW_SUSPEND"

# If you want to use NTP on laptop machines, uncomment the following 
# option.  Current APM implementation affects NTP client.
#options	"APM_NO_CLOCK_ADJUST"

# PAO Enhanced PCI-PCIC support (experimental)
#options	CB_TEST
#options	FORCE_IRQ_ROUTING

config		kernel	root on wd0

controller	isa0
controller	pnp0			# PnP support for ISA
#controller	eisa0
controller	pci0

# PCCARD (PCMCIA) support - do not remove.
pseudo-device	card	1

# You must use "flags 0x1" when you don't hear any negotiation noise(?)
# if you use modem card, or pccardd doesn't read cis tuple, tell you 
# 'No card in database for"(null)"("(null)")' in case of Cirrus Logic's 
# pcic is your PC.
device		pcic0	at isa? port 0x3e0 flags 0x1 irq 6
#device		pcic0	at isa? port 0x3e0 irq 6
#device		pcic0   at isa? port 0x3e4 irq 6

# Floppy drives
controller	fdc0	at isa? port "IO_FD1" bio irq 11 drq 2
disk		fd0	at fdc0 drive 0
disk		fd1	at fdc0 drive 1
disk		fd2	at fdc0 drive 2
disk		fd3	at fdc0 drive 3

# IDE controller and disks
#options		"CMD640"	# work around CMD640 chip deficiency
controller	wdc0	at isa? port "IO_WD1" bio irq 9
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1
disk		wd2	at wdc0 drive 2
disk		wd3	at wdc0 drive 3

# do not remove 'wdc1' and 'wdc2'.
controller	wdc1	at isa? disable port "IO_WDCARD1" bio irq 9
disk		wd4	at wdc1 drive 0

controller	wdc2	at isa? disable port "IO_WDCARD2" bio irq 9
disk		wd5	at wdc2 drive 0

# ATAPI devices
options		ATAPI		#Enable ATAPI support for IDE bus
options		ATAPI_STATIC	#Don't do it as an LKM
device		acd0		#IDE CD-ROM
device		wfd0		#IDE Floppy (e.g. LS-120)

# SCSI Controllers
# A single entry for any of these controllers (ncr, ahb, ahc) is
# sufficient for any number of installed devices.
controller	ncr0		# NCR/Symbios Logic
controller	ahc0		# AHA2940 and onboard AIC7xxx devices
controller	amd0		# AMD 53C974 (Teckram DC-390(T))
controller	isp0		# Qlogic family
controller	adv0

#
# WD33C93 SCSI card (55/92 like board)
#

options	BS_TARG_SAFEMODE

# PC-9801-92
controller bs0 at isa? port IO_SCSI cam irq 5 drq 3 flags 0
# SC-98
# controller bs0 at isa? port IO_SCSI cam irq 5 drq 3 flags 0x10000
# HA-55BS2 and later
#controller bs0 at isa? port IO_SCSI cam irq 5 drq 3 flags 0x20000
# ELECOM type
#controller bs0 at isa? port IO_SCSI cam irq 5 drq 3 flags 0x30000
# SMIT
#controller bs0 at isa? port IO_SCSI cam irq 5 drq 3 iomem 0xdd000 iosiz 0x1000 flags 0x40000
# Logitec LHA-20x
#controller bs0 at isa? port IO_SCSI cam irq 5 drq 3 flags 0x50000

# PC-9801-100
controller	aic0	at isa? port 0x1840 cam irq 5 flags 0x10000

#
# PAO3 has not supported PC-Card SCSI devices yet ...
#

#controller	aic0 at isa? disable port 0x1840 cam irq 5 flags 0x10000
##controller	aic0 at isa? disable port 0x340 cam irq 11
##controller	nin0 at isa? disable port 0x280 cam irq 5
##controller	spc0 at isa? disable port 0xd0 cam irq 5 iomem 0xd0000

# Future domain and Q-logic PC-card SCSI drivers 
# 	ported from NetBSD/pc98 (based on NetBSD 1.2)
##options		SCSI_LOW	# XXX: for ncv? and stg? driver
##controller	ncv0	at isa? disable port 0x320 cam irq 5
##controller	stg0	at isa? disable port 0x320 cam irq 5

# SCSI peripherals
# Only one of each of these is needed, they are dynamically allocated.
controller	scbus0		# SCSI bus (required)
device		da0		# Direct Access (disks)
#device		od0		# Optical Memory (MO etc)
device		sa0		# Sequential Access (tape etc)
device		cd0		# CD
device		pass0		# Passthrough device (direct SCSI)

# Proprietary or custom CD-ROM Interfaces
device		matcd0	at isa? disable port? bio

# keyboard driver
device		pckbd0	at isa? port IO_KBD tty irq 1
#options	KBD_INSTALL_CDEV

device		gdc0	at isa?

# splash screen/screen saver
pseudo-device	splash

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? tty

# Floating point support - do not disable.
device		npx0	at isa? port IO_NPX irq 8

# Power management support (see LINT for more options)
device		apm0    at isa?		# Advanced Power Management

# Serial (COM) ports
#
options 	COM_MULTIPORT
#
# COM1
device		sio0	at isa? port "IO_COM1" tty irq 4
# COM2 (2nd CCU)
device		sio1	at isa? port 0x238 tty irq 5 flags 0x12000000
# PC-9861K, PC-9801-101, MDC-926Rs
#device		sio1	at isa? port "IO_COM2" tty irq 5 flags 0x01000000
#device		sio2	at isa? port "IO_COM3" tty irq 6 flags 0x02000000
# PC-9801-120 (PnP off)
#device		sio1	at isa? port 0x8b0 tty irq 5 flags 0x11000000
# MC-16550II, MC-RS98
#device		sio1	at isa? port 0xd2 tty irq 5 flags 0x14000101
#device		sio2	at isa? port 0x8d2 tty flags 0x14000101
# RSB-2000, RSB-3000, B98-02
#device		sio1	at isa? port 0xb0 tty flags 0x15000101
#device		sio2	at isa? port 0xb1 tty flags 0x15000101
# RSB-384
#device		sio1	at isa? port 0xb0 tty flags 0x16000000
#device		sio2	at isa? port 0xb1 tty flags 0x16000000
# RSA-98III
#device		sio1	at isa? port 0x50e0 tty irq 5 flags 0x18000101
#device		sio2	at isa? port 0x51e0 tty flags 0x18000101
# ESP98
#options	COM_ESP
#device		sio1	at isa? port 0x18b0 tty irq 5 flags 0x19000000

# entries for PC-Card Serial devices.
device		sio2	at isa? disable port 0x8d2 tty flags 0x14000101
device		sio3	at isa? disable port 0x8d2 tty flags 0x14000101

device		mse0	at isa? port IO_MSE tty irq 13

# NEW Parallel port
device		ppc0	at isa? port? tty irq 14
controller	ppbus0			# Parallel port bus (required)
device		lpt0	at ppbus?	# Printer
device		plip0	at ppbus?	# TCP/IP over parallel
device		ppi0	at ppbus?	# Parallel port interface device
#controller	vpo0	at ppbus?	# Requires scbus and da0
# OLD Parallel port
# Please stay olpt driver after ppc driver
device		olpt0	at isa? port IO_LPT  tty

# PCI Ethernet NICs.
device		al0		# ADMtek AL981 (``Comet'')
device		ax0		# ASIX AX88140A
device		de0		# DEC/Intel DC21x4x (``Tulip'')
device		fxp0		# Intel EtherExpress PRO/100B (82557, 82558)
device		mx0		# Macronix 98713/98715/98725 (``PMAC'')
device		pn0		# Lite-On 82c168/82c169 (``PNIC'')
device		rl0		# RealTek 8129/8139
device		sf0		# Adaptec AIC-6915 DuraLAN (``Starfire'')
device		sis0		# Silicon Integrated Systems SiS 900/SiS 7016
device		ste0		# Sundance ST201 (D-Link DFE-550)
device		tl0		# Texas Instruments ThunderLAN
device		tx0		# SMC 9432TX (83c170 ``EPIC'')
device		vr0		# VIA Rhine, Rhine II
device		vx0		# 3Com 3c590, 3c595 (``Vortex'')
device		wb0		# Winbond W89C840F
device		xl0		# 3Com 3c90x (``Boomerang'', ``Cyclone'')

# ISA & PCCARD Ethernet NICs.
# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.

#
# DP8390 NIC
#
# ed0: generic driver
# ed1: LANEED LD-BDN
# ed2: EGY-98
# ed3: LGY-98
# ed4: ICM-IF-2766/EN-2298-T
# ed5: SIC-98
# ed6: PC-9801-108
# ed7: LA-98
# ed8: C-NET(98)
# ed9: C-NET(98)E/L
# ed10: EC/EP-98X
#
# MB86960A NIC
#
# fe0: RE1000/1000Plus/AccessPC N98C+/LAC-98
# fe1: C-NET(98)P2/C-NET(9N)E
#
# FE_8BIT_SUPPORT is needed to support LAC-98
#
device ed0 at isa? disable port 0x00d0 net irq 6
device ed5 at isa? disable port 0x00d0 net irq 6 iomem 0xd0000 iosiz 16384 flags 0x600000
device ed1 at isa? disable port 0x00d8 net irq 6 flags 0x200000
device ed3 at isa? disable port 0x00d0 net irq 6 flags 0x400000
device ed4 at isa? disable port 0x56d0 net irq 5 flags 0x500000
device ed2 at isa? disable port 0x00d8 net irq 6 flags 0x300000
device ed7 at isa? disable port 0x00d0 net irq 6 flags 0x900000
device ed6 at isa? disable port 0x0770 net irq 6 flags 0x800000
device ed9 at isa? disable port 0x03d0 net irq 6 flags 0xb00000
device ed8 at isa? disable port 0xa3d0 net irq 6 iomem 0xd0000 iosiz 16384 flags 0xa00000
device ed10 at isa? disable port 0x00d0 net irq 3 flags 0xd10000
device ie0 at isa? disable port 0x300 net irq 10 iomem 0xd0000
device ep0 at isa? disable port 0x40d0 net irq 3
device ep1 at isa? disable port 0x300 net irq 10
device ex0 at isa? disable port? net irq?
device fe0 at isa? disable port 0x00d0 net irq 3
device fe1 at isa? disable port 0x73d0 net irq 5
device le0 at isa? disable port 0x300 net irq 5 iomem 0xd0000
device lnc0 at isa? disable port 0x03d0 net irq 6
device cs0 at isa? disable port 0x300 net irq ?
device sn0 at isa? disable port 0x300 net irq 10
device sn1 at isa? disable port 0x300 net irq 10
device wlp0 at isa? disable port 0x300 net irq 11
device wlp1 at isa? disable port 0x300 net irq 11
device cnw0 at isa? disable port 0x300 net irq 5
device cnw1 at isa? disable port 0x300 net irq 5
device ux0 at isa? disable port 0x300 net irq 5
device wi0 at isa? disable port? net irq ?
device xe0 at isa? disable port? net irq ?
device awi0 at isa? disable port 0x300 net irq 5

options 	"FE_8BIT_SUPPORT"	# LAC-98 support

## DO NOT USE ze AND zp WITH PAO!
# PCCARD NIC drivers.
# ze and zp take over the pcic and cannot coexist with generic pccard
# support, nor the ed and ep drivers they replace.
###device		zp0	at isa? port 0x00d0 net irq 10 iomem 0xe0000

# IBM Smart Capture PCMCIA card
device		scc0
device		scc1

# Hitachi microcomputer system Speach Synthesizer card
device		hss0
device		hss1

# PCMCIA Joystick
device		joy0	at isa? disable port "IO_GAME"

# PCMCIA GPIB card
device		gp0	at isa? disable port 0x2c0 tty

#controller	snd0
#device	sb0	at isa? port 0x20d2 irq 10 conflicts drq 3
#device	sbxvi0 	at isa? drq 3
#device	sbmidi0	at isa? port 0x80d2
#device	opl0	at isa? port 0x28d2
#device	joy0	at isa? port 0x04d2
#device	nss0	at isa? port 0xa460 irq 12
#device	mss0	at isa? port 0xf40 irq 12 drq 1
#device	mpu0	at isa? port 0xe0d0 irq 6

# Pseudo devices - the number indicates how many units to allocated.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	sl	1	# Kernel SLIP
# ppp(8) uses tun instead of ppp device
##pseudo-device	ppp	1	# Kernel PPP
pseudo-device	vn	1	# Vnode driver
pseudo-device	tun	1	# Packet tunnel
pseudo-device	pty	16	# Pseudo-ttys (telnet etc)
pseudo-device	gzip		# Exec gzipped a.out's

# The `bpfilter' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# The number of devices determines the maximum number of
# simultaneous BPF clients programs runnable.
pseudo-device	bpfilter 4	#Berkeley packet filter

#
# Enable the kernel debugger.
options		DDB
