Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jul 2000 19:26:50 +0000
From:      Tony Finch <dot@dotat.at>
To:        stable@freebsd.org
Subject:   PNPBIOS and atkbd
Message-ID:  <E13HtIw-0000GN-00@hand.dotat.at>

next in thread | raw e-mail | index | archive | help

Since someone clued me in about using the PNPBIOS option to automate
some isa resource allocations I have been experimenting with it. I've
managed to remove most of the irq stuff from my kernel configuration
file, apart from a few culprits. The main one is the keyboard and
mouse. The minimum working config I have found is:
	device		atkbdc
	device		atkbd0	at atkbdc? irq 1
	device		psm0	at atkbdc? irq 12
If I remove the irq statements the kernel panics when probing the
keyboard "nexus_setup_intr: NULL irq resource!" which is a bit of a
shame. IWBNI the driver could get that information from PNP. Hmm, but
the PNP probe messages don't seem to have the necessary information.

The other annoyance is that I have to tell vga and syscons to find
themselves on the ISA bus. Does PNP not inform the OS about them
either?

My config and dmesg are included. Any comments welcome!

Tony.
-- 
f.a.n.finch    fanf@covalent.net    dot@dotat.at
438 the wet carpet treatment

------------------------------------------------------------------------
# $Header: /cvs/fanf/conf/DELL-Latitude-CPx,v 1.24 2000/07/27 18:24:36 fanf Exp $

ident		DELL-Latitude-CPx
machine 	i386
cpu		I686_CPU
maxusers	256
makeoptions	DEBUG=-g

# increase process limits
options 	MAXDSIZ="(256*1024*1024)"
options 	DFLDSIZ="(256*1024*1024)"

options 	PQ_NORMALCACHE		# color for 256k/16k cache
options 	NO_F00F_HACK

options 	COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
options 	PERFMON			# pentium performance support
options 	KTRACE			# ktrace(1) syscall trace support
options 	VESA			# support for VESA video modes

options 	INCLUDE_CONFIG_FILE	# Include this file in kernel
options 	INVARIANT_SUPPORT	# extra sanity checking
options 	INVARIANTS
options 	DIAGNOSTIC		# debug messages
options 	DDB			# built-in debugger

options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores

options 	P1003_1B		# POSIX Real time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING

options 	INET			# InterNETworking
options 	INET6			# ...t.n.g.
options 	IPSEC			# IP security
options 	IPSEC_ESP		# IP security (crypto; define w/ IPSEC)
options 	ICMP_BANDLIM

options 	FFS			# Berkeley Fast Filesystem
options 	FFS_ROOT		# FFS usable as root device [keep this!]
options 	NFS			# Network Filesystem
options 	NFS_NOSERVER
options 	CD9660			# ISO 9660 Filesystem
options 	MSDOSFS			# MSDOS Filesystem
options 	PROCFS			# Process filesystem

options 	SOFTUPDATES		# better performance
options 	SYNCER_MAXDELAY=256	# allow 5 minutes between syncs

device		pci
device		isa
options 	AUTO_EOI_1		# faster interrupt handling
#options 	AUTO_EOI_2
options 	PNPBIOS			# for better isa device configuration

# Floating point support
device		npx

# Power management support
device		apm0	at nexus? flags 0x20

# Floppy drives
device		fdc0	
device		fd0	at fdc0 drive 0

# ATA and ATAPI devices
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
options 	ATA_STATIC_ID		# Static device numbering
options 	ATA_ENABLE_ATAPI_DMA	# Enable DMA on ATAPI devices

# Keyboard and mouse
device		atkbdc
device		atkbd0	at atkbdc? irq 1
device		psm0	at atkbdc? irq 12
options 	PSM_HOOKRESUME		#hook the system resume event
options 	PSM_RESETAFTERSUSPEND	#reset the device at the resume event

# Screen
device		vga0	at isa?		# video support
device		sc0	at isa?		# default SCO-like console driver
options 	SC_HISTORY_SIZE=256	# number of history buffer lines
options 	SC_DISABLE_REBOOT	# disable reboot key sequence
options 	SC_PIXEL_MODE		# enable raster console

# Serial ports
device		sio

# Parallel port
device		ppc			# Parallel port controller
device		ppbus			# Parallel port bus
device		lpt			# Printer
device		ppi			# Geek port

# PC Card support
device		pcic
device		card
options 	PCIC_RESUME_RESET	# reset after resume

# USB support
device		uhci		# hardware controller
device		usb		# generic controller
device		ugen		# generic device
device		uhid		# buttons and dials
device		ukbd		# keyboard
device		ulpt		# printer
device		ums		# mouse
device		umass		# disks

# SCSI support (for umass)
device		scbus		# base SCSI code
device		da		# SCSI direct access devices (aka disks)
device		pass		# CAM passthrough driver

# the ESS Maestro driver isn't here yet
#device		pcm		# sound support

# Network interfaces
device		miibus		# MII bus support		
device		xl		# 3Com 3c90x (in docking station)
device		ed0		# NE2000 (D-Link pccard ether)

pseudo-device	loop			# Network loopback
pseudo-device	ether			# Ethernet support
pseudo-device	tun			# Packet tunnel, for ppp(8)
pseudo-device	bpf			# Berkeley packet filter

pseudo-device	vn			# Vnode turns files into devices
pseudo-device	pty			# Pseudo-ttys (xterm, telnet etc.)
pseudo-device	speaker			# blips and beeps
------------------------------------------------------------------------
Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.1-STABLE-20000727 #5: Thu Jul 27 18:20:50 UTC 2000
    root@hand.dotat.at:/other/src/sys/compile/DELL-Latitude-CPx
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (498.47-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,XMM>
real memory  = 134152192 (131008K bytes)
avail memory = 126631936 (123664K bytes)
Preloaded elf kernel "test5" at 0xc0360000.
module_register_init: MOD_LOAD (vesa, c026db34, 0) error 6
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI Mobility-1 graphics accelerator> at 0.0 irq 11
pcic-pci0: <TI PCI-1225 PCI-CardBus Bridge> irq 11 at device 3.0 on pci0
pcic-pci0: TI12XX PCI Config Reg: [ring enable][speaker enable][FUNC pci int + CSC serial isa irq]
pcic-pci1: <TI PCI-1225 PCI-CardBus Bridge> irq 11 at device 3.1 on pci0
pcic-pci1: TI12XX PCI Config Reg: [ring enable][speaker enable][FUNC pci int + CSC serial isa irq]
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x860-0x86f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xdce0-0xdcff irq 11 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub0: port 1 power on failed, IOERROR
uhub0: port 2 power on failed, IOERROR
chip1: <Intel 82371AB Power management controller> port 0x840-0x84f at device 7.3 on pci0
pci0: <unknown card> (vendor=0x125d, dev=0x1998) at 8.0 irq 5
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
unknown0: <PNP0a03> at port 0xcf8-0xcff on isa0
unknown1: <PNP0c01> at port 0x800-0x83f,0x840-0x84f,0x880-0x88f,0x3f0-0x3f1,0xe0-0xe1 iomem 0-0x9ffff,0x100000-0x7ffffff,0xf0000-0xfffff,0xfffe0000-0xffffffff,0x100a0000-0x100fffff on isa0
unknown2: <PNP0c01> at port 0xf400-0xf4fe iomem 0xed000000-0xedffffff on isa0
unknown: <PNP0000> can't assign resources
unknown3: <PNP0100> at port 0x40-0x5f irq 0 on isa0
unknown4: <PNP0200> at port 0x80-0x9f,0-0x1f,0xc0-0xdf drq 4 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 irq 1 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
unknown: <PNP0f13> can't assign resources
unknown5: <PNP0800> at port 0x61 on isa0
unknown6: <PNP0b00> at port 0x70-0x7f irq 8 on isa0
unknown7: <PNP0c04> at port 0xf0-0xff irq 13 on isa0
pcic0: <VLSI 82C146> at port 0x3e0-0x3e1 irq 9 on isa0
pcic0: management irq 9
pccard0: <PC Card bus -- kludge version> on pcic0
pccard1: <PC Card bus -- kludge version> on pcic0
sio0: <16550A-compatible COM port> at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
ppc0: <ECP parallel printer port> at port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppi0: <Parallel I/O> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
fdc0: <NEC 72065B or clone> at port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
IPsec: Initialized Security Association Processing.
ad0: 11513MB <IBM-DARA-212000> [23392/16/63] at ata0-master using UDMA33
Mounting root from ufs:/dev/ad0s1a
pccard: card inserted, slot 0
------------------------------------------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E13HtIw-0000GN-00>