From nobody@FreeBSD.org  Wed Dec 30 05:44:33 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4634A1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Dec 2009 05:44:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 345E98FC21
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Dec 2009 05:44:33 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBU5iWRG041510
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Dec 2009 05:44:32 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nBU5iWLd041509;
	Wed, 30 Dec 2009 05:44:32 GMT
	(envelope-from nobody)
Message-Id: <200912300544.nBU5iWLd041509@www.freebsd.org>
Date: Wed, 30 Dec 2009 05:44:32 GMT
From: Serg <mail_of_sergey@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Don't find Printer port at "NetMos NM9835 Dual UART and 1284 Printer port" extended card at FreeBSD 8.0
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         142157
>Category:       kern
>Synopsis:       [ppc] [puc] Don't find Printer port at "NetMos NM9835 Dual UART and 1284 Printer port" extended card at FreeBSD 8.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 30 05:50:01 UTC 2009
>Closed-Date:    
>Last-Modified:  Sun Dec 25 11:01:48 UTC 2011
>Originator:     Serg
>Release:        FreeBSD 8.0-RELEASE-p1 i386
>Organization:
>Environment:
FreeBSD acc.acc.tula.ru 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #4: Mon Dec 14 20:30:51 MSK 2009 root@acc.acc.tula.ru:/usr/src/sys/i386/compile/Z i386
pciconf -lv:
hostb0@pci0:0:0:0:	class=0x060000 card=0x34d08086 chip=0x29f08086 rev=0x00 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '3200 Chipset (Bearlake) Processor to I/O Controller'
    class      = bridge
    subclass   = HOST-PCI
em0@pci0:0:25:0:	class=0x020000 card=0x34d08086 chip=0x10bd8086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel 82566DM Gigabit Ethernet Adapter (82566DM)'
    class      = network
    subclass   = ethernet
uhci0@pci0:0:26:0:	class=0x0c0300 card=0x34d08086 chip=0x29378086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
uhci1@pci0:0:26:1:	class=0x0c0300 card=0x34d08086 chip=0x29388086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
uhci2@pci0:0:26:2:	class=0x0c0300 card=0x34d08086 chip=0x29398086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:26:7:	class=0x0c0320 card=0x34d08086 chip=0x293c8086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB2 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
pcib1@pci0:0:28:0:	class=0x060400 card=0x29408086 chip=0x29408086 rev=0x02 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 1'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:28:4:	class=0x060400 card=0x29488086 chip=0x29488086 rev=0x02 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 5'
    class      = bridge
    subclass   = PCI-PCI
uhci3@pci0:0:29:0:	class=0x0c0300 card=0x34d08086 chip=0x29348086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
uhci4@pci0:0:29:1:	class=0x0c0300 card=0x34d08086 chip=0x29358086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
uhci5@pci0:0:29:2:	class=0x0c0300 card=0x34d08086 chip=0x29368086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
ehci1@pci0:0:29:7:	class=0x0c0320 card=0x34d08086 chip=0x293a8086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) USB2 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
pcib4@pci0:0:30:0:	class=0x060401 card=0x34d08086 chip=0x244e8086 rev=0x92 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801 Family (ICH2/3/4/5/6/7/8/9,63xxESB) Hub Interface to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:	class=0x060100 card=0x34d08086 chip=0x29168086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IR (ICH9R) LPC Interface Controller'
    class      = bridge
    subclass   = PCI-ISA
atapci0@pci0:0:31:2:	class=0x01018a card=0x34d08086 chip=0x29208086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) 4 port Serial ATA Storage Controller 1'
    class      = mass storage
    subclass   = ATA
none0@pci0:0:31:3:	class=0x0c0500 card=0x34d08086 chip=0x29308086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) SMBus Controller'
    class      = serial bus
    subclass   = SMBus
atapci1@pci0:0:31:5:	class=0x010185 card=0x34d08086 chip=0x29268086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801IB/IR/IH (ICH9 Family) 2 port Serial ATA Storage Controller 2'
    class      = mass storage
    subclass   = ATA
pcib2@pci0:1:0:0:	class=0x060400 card=0x00000000 chip=0x032c8086 rev=0x09 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = 'PCI Express-to-PCI Express Bridge (6702PXH)'
    class      = bridge
    subclass   = PCI-PCI
em1@pci0:2:1:0:	class=0x020000 card=0x11798086 chip=0x10798086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Dual Port Gigabit Ethernet Controller (82546EB)'
    class      = network
    subclass   = ethernet
em2@pci0:2:1:1:	class=0x020000 card=0x11798086 chip=0x10798086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Dual Port Gigabit Ethernet Controller (82546EB)'
    class      = network
    subclass   = ethernet
ath0@pci0:2:2:0:	class=0x020000 card=0x6803a727 chip=0x001b168c rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    device     = 'AR5006 family 802.11abg Wireless NIC'
    class      = network
    subclass   = ethernet
vgapci0@pci0:3:0:0:	class=0x030000 card=0x01018086 chip=0x0522102b rev=0x02 hdr=0x00
    vendor     = 'Matrox Electronic Systems Ltd.'
    device     = 'Matrox G200e (ServerEngines) - English (G200e)'
    class      = display
    subclass   = VGA
puc0@pci0:4:0:0:	class=0x078000 card=0x00121000 chip=0x98359710 rev=0x01 hdr=0x00
    vendor     = 'MosChip Semiconductors (Was: Netmos Technology)'
    device     = 'Nm9835 Parallel/Serial Port Adapter'
    class      = simple comms
em3@pci0:4:2:0:	class=0x020000 card=0x34d08086 chip=0x10768086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Gigabit Ethernet Controller (82541EI)'
    class      = network
    subclass   = ethernet

# $FreeBSD: src/sys/i386/conf/GENERIC.hints,v 1.22.2.1.2.1 2009/10/25 01:10:29 kensmith Exp $
hint.uart.0.at="isa"
hint.uart.0.port="0x3F8"
hint.uart.0.flags="0x10"
hint.uart.0.irq="4"
hint.uart.1.at="isa"
hint.uart.1.port="0x2F8"
hint.uart.1.irq="3"
hint.ppc.0.at="isa"
hint.ppc.0.irq="7"


# $FreeBSD: src/sys/i386/conf/Z,v 1.519.2.4.2.2 2009/11/09 23:48:01 kensmith Exp $

cpu		I686_CPU
ident		Z

options         MP_WATCHDOG		# Watchdog routines
device          coretemp		# on-die sensor on Intel Core and newer CPUs
device          cpuctl			# CPU control pseudo-device.
options         CPU_FASTER_5X86_FPU	# enables faster FPU exception handler

options 	SCHED_4BSD		# BSD scheduler - &#1056;&#1105;&#1056;-&#1056;&#1056;&#1105; watchdog
options 	PREEMPTION		# Enable kernel thread preemption
options 	INET			# InterNETworking
options 	INET6			# IPv6 communications protocols
options         IPX                     # IPX/SPX communications protocols
device		ef			# provides support for multiple ethernet frame types
options         ETHER_8022              # enable Ethernet_802.2 frame
options         NCP                     # NetWare Core protocol
options         NETSMB                  # SMB/CIFS requester
options         LIBMCHAIN		# for SMB/CIFS requester
options         LIBICONV		# for SMB/CIFS requester
options         LIBALIAS		# libalias library, performing NAT
options 	SCTP			# Stream Control Transmission Protocol

options 	FFS			# Berkeley Fast Filesystem
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_ACL			# Support for access control lists
options 	UFS_DIRHASH		# Improve performance on big directories
options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
options 	MD_ROOT			# MD is a potential root device
#options 	NFSCLIENT		# Network Filesystem Client
#options 	NFSSERVER		# Network Filesystem Server
#options 	NFSLOCKD		# Network Lock Manager
#options 	NFS_ROOT		# NFS usable as /, requires NFSCLIENT
options         NTFS			# NT File System. Read-mostly (full sysutils/fusefs-ntfs port/package)
options 	MSDOSFS			# MSDOS Filesystem
options 	CD9660			# ISO 9660 Filesystem
options         UDF                     # Universal Disk Format
options 	PROCFS			# Process filesystem (requires PSEUDOFS)
options 	PSEUDOFS		# Pseudo-filesystem framework
options         CD9660_ICONV		# Optional character code conversion
options         MSDOSFS_ICONV		# support with LIBICONV
options         NTFS_ICONV		#
options         UDF_ICONV


options 	GEOM_PART_GPT		# GUID Partition Tables.
options 	GEOM_LABEL		# Provides labelization
options 	COMPAT_43TTY		# BSD 4.3 TTY compat (sgtty)
options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
options 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
options 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
options 	KTRACE			# ktrace(1) support
options 	STACK			# stack(9) support
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
# &#1056;_&#1056;>&#1057;_ PostgreSQL
options         SHMMAXPGS=65536
options         SEMMNI=40
options         SEMMNS=240
options         SEMUME=40
options         SEMMNU=120
# &#1056;&#1108;&#1056;_&#1056;_&#1056;&#1095;&#1057;&#9532; &#1056;_&#1056;>&#1057;_ PostgreSQL
options 	P1003_1B_SEMAPHORES	# POSIX-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
options 	AUDIT			# Security event auditing
options 	MAC			# TrustedBSD MAC Framework
options		FLOWTABLE		# per-cpu routing cache
#options 	KDTRACE_HOOKS		# Kernel DTrace hooks

# To make an SMP kernel, the next two lines are needed
options 	SMP			# Symmetric MultiProcessor Kernel
device		apic			# I/O APIC

# CPU frequency control
device		cpufreq

device          ipmi			# Intelligent Platform Management Interface

# Bus support.
device		acpi
device		eisa
device		pci

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk		# ATA disk drives
device		ataraid		# ATA RAID drives
device		atapicd		# ATAPI CDROM drives
device		atapifd		# ATAPI floppy drives
device		atapist		# ATAPI tape drives
options 	ATA_STATIC_ID	# Static device numbering


# SCSI peripherals
device		scbus		# SCSI bus (required for SCSI)
device		da		# Direct Access (disks)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)


# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		kbdmux		# keyboard multiplexer

device		vga		# VGA video card driver

device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc

device		agp		# support several AGP chipsets

# Power management support (see NOTES for more options)
#device		apm
# Add suspend/resume support for the i8254.
device		pmtimer


# Serial (COM) ports
device		uart		# Generic UART driver

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device
#device		vpo		# Requires scbus and da

# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to sio, uart and/or ppc drivers):
device		puc

# PCI Ethernet NICs.
device		em		# Intel PRO/1000 Gigabit Ethernet Family
device          lagg		# Link aggregation interface

# Wireless NIC cards
device		wlan		# 802.11 support
options 	IEEE80211_DEBUG	# enable debug msgs
options 	IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
options 	IEEE80211_SUPPORT_MESH	# enable 802.11s draft support
device		wlan_wep	# 802.11 WEP support
device		wlan_ccmp	# 802.11 CCMP support
device		wlan_tkip	# 802.11 TKIP support
device		wlan_amrr	# AMRR transmit rate control algorithm
device          wlan_xauth	# support for external (i.e. user-mode) authenticators 
device          wlan_acl	# a MAC-based access control mechanism
device		ath		# Atheros pci/cardbus NIC's
device		ath_hal		# pci/cardbus chip support
options 	AH_SUPPORT_AR5416	# enable AR5416 tx/rx descriptors
device		ath_rate_sample	# SampleRate tx rate control for ath

# Pseudo devices.
device		loop		# Network loopback
device		random		# Entropy device
device		ether		# Ethernet support
device		tun		# Packet tunnel.
device		pty		# BSD-style compatibility pseudo ttys
device		md		# Memory "disks"
device		gif		# IPv6 and IPv4 tunneling
device		faith		# IPv6-to-IPv4 relaying (translation)
device		firmware	# firmware assist module

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device		bpf		# Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		ohci		# OHCI PCI->USB interface
device		ehci		# EHCI PCI->USB interface (USB 2.0)
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse


# IPFIREWALL enables support for IP firewall construction, in
# conjunction with the `ipfw' program.  IPFIREWALL_VERBOSE sends
# logged packets to the system logger.  IPFIREWALL_VERBOSE_LIMIT
# limits the number of times a matching entry can be logged.
#
options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #enable logging to syslogd(8)
options         IPFIREWALL_VERBOSE_LIMIT=100    #limit verbosity
options         IPFIREWALL_FORWARD      #packet destination changes
options         IPFIREWALL_NAT          #ipfw kernel nat support
options         IPDIVERT                #divert sockets
options         IPSTEALTH               #support for stealth forwarding

# netgraph(4).
# will automatically load the corresponding KLD module if the node type
# is not already compiled into the kernel. Each type below has a
# corresponding man page, e.g., ng_async(8).
options         NETGRAPH                # netgraph(4) system


#####################################################################
# ABI Emulation
options         COMPAT_LINUX		# Enable Linux ABI emulation
options         COMPAT_AOUT		# Enable i386 a.out binary support
options         LINPROCFS		# the linux-like proc filesystem support
options         LINSYSFS		#Enable the linux-like sys filesystem support
>Description:
Printer port at NetMos NM9835 Dual UART and 1284 Printer port not
detected nor interrupt-driven method nor polled method.

Serial ports is working fine.

Fragment of dmesg is:
Dec 29 17:28:34 acc kernel: puc0: <NetMos NM9835 Dual UART and 1284 Printer port> port 0x1070-0x1077,0x1068-0x106f,0x1060-0x1067,0x1058-0x105f,0x1050-0x1057,0x1040-0x104f irq 16 at device 0.0 on pci4
Dec 29 17:28:34 acc kernel: puc0: [FILTER]
Dec 29 17:28:34 acc kernel: uart2: <Non-standard ns8250 class UART with FIFOs> on puc0
Dec 29 17:28:34 acc kernel: uart2: [FILTER]
Dec 29 17:28:34 acc kernel: uart3: <Non-standard ns8250 class UART with FIFOs> on puc0
Dec 29 17:28:34 acc kernel: uart3: [FILTER]
Dec 29 17:28:34 acc kernel: ppc1: <Parallel port> on puc0
Dec 29 17:28:34 acc kernel: ppc1: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
Dec 29 17:28:34 acc kernel: device_attach: ppc1 attach returned 6

Dec 29 17:28:34 acc kernel: ppc0: parallel port not found.

>How-To-Repeat:
Problem is repeated always.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jan 3 19:29:36 UTC 2010 
Responsible-Changed-Why:  
This may not be i386-specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=142157 

From: kuzvesov@list.ru
To: bug-followup@FreeBSD.org
Cc:
Subject: Re: kern/142157: [ppc] [puc] Don't find Printer port at "NetMos NM9835 Dual UART and 1284 Printer port" extended card at FreeBSD 8.0
Date: Wed, 21 Dec 2011 08:19:44 +0400 (UTC)

 I confirm the problem in 8.2-RELEASE amd64. 
 
 Driver fails to register interrupt handler.
 
 puc0: <NetMos NM9835 Dual UART and 1284 Printer port> port 0xa000-0xa007,0xa400-0xa407,0xa800-0xa807,0xac00-0xac07,0xb000-0xb007,0xb400-0xb40f irq 20 at device 0.0 on pci4
 puc0: Reserved 0x8 bytes for rid 0x10 type 4 at 0xa000
 puc0: Reserved 0x8 bytes for rid 0x14 type 4 at 0xa400
 puc0: Reserved 0x8 bytes for rid 0x18 type 4 at 0xa800
 ioapic0: routing intpin 20 (PCI IRQ 20) to lapic 0 vector 51
 puc0: [FILTER]
 uart1: <Non-standard ns8250 class UART with FIFOs> on puc0
 uart1: [FILTER]
 uart1: fast interrupt
 uart2: <Non-standard ns8250 class UART with FIFOs> on puc0
 uart2: [FILTER]
 uart2: fast interrupt
 ppc1: using extended I/O port range
 ppc1: SPP ECP  ECP+EPP
 ppc1: <Parallel port> on puc0
 ppc1: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
 ppc1: FIFO with 16/16/12 bytes threshold
 ppc1: failed to register interrupt handler: 6
 device_attach: ppc1 attach returned 6
 
 While the built-in parallel port works fine:
 
 ppc0: using extended I/O port range
 ppc0: SPP ECP  ECP+EPP
 ppc0: <Parallel port> port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0
 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
 ppc0: FIFO with 16/16/16 bytes threshold
 ioapic0: routing intpin 7 (ISA IRQ 7) to lapic 0 vector 54
 ppc0: [MPSAFE]
 ppc0: [ITHREAD]
 ppbus0: <Parallel port bus> on ppc0
 lpt0: <Printer> on ppbus0
 lpt0: [MPSAFE]
 lpt0: [ITHREAD]
 lpt0: Interrupt-driven port
 ppi0: <Parallel I/O> on ppbus0
 
 #uname -a
 FreeBSD host.ru 8.2-RELEASE FreeBSD 8.2-RELEASE #9: Wed Dec 21 09:23:04 2011     root@host.ru:/usr/obj/usr/src/sys/MYKERNEL  amd64
 
 #grep -v "^[#]" /usr/src/sys/amd64/conf/MYKERNEL | grep -v ^$
 cpu		HAMMER
 ident		MYKERNEL
 makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
 makeoptions	MODULES_OVERRIDE="zfs opensolaris ahci accf_http accf_data ipfilter pps linux"
 options 	SCHED_ULE		# ULE scheduler
 options 	PREEMPTION		# Enable kernel thread preemption
 options 	INET			# InterNETworking
 options 	INET6			# IPv6 communications protocols
 options 	SCTP			# Stream Control Transmission Protocol
 options 	FFS			# Berkeley Fast Filesystem
 options 	SOFTUPDATES		# Enable FFS soft updates support
 options 	UFS_ACL			# Support for access control lists
 options 	UFS_DIRHASH		# Improve performance on big directories
 options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
 options 	MD_ROOT			# MD is a potential root device
 options 	NFSCLIENT		# Network Filesystem Client
 options 	NFSSERVER		# Network Filesystem Server
 options 	NFSLOCKD		# Network Lock Manager
 options 	NFS_ROOT		# NFS usable as /, requires NFSCLIENT
 options 	MSDOSFS			# MSDOS Filesystem
 options 	CD9660			# ISO 9660 Filesystem
 options 	PROCFS			# Process filesystem (requires PSEUDOFS)
 options 	PSEUDOFS		# Pseudo-filesystem framework
 options 	GEOM_PART_GPT		# GUID Partition Tables.
 options 	GEOM_LABEL		# Provides labelization
 options 	COMPAT_43TTY		# BSD 4.3 TTY compat (sgtty)
 options 	COMPAT_FREEBSD32	# Compatible with i386 binaries
 options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
 options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
 options 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
 options 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
 options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
 options 	KTRACE			# ktrace(1) support
 options 	STACK			# stack(9) support
 options 	SYSVSHM			# SYSV-style shared memory
 options 	SYSVMSG			# SYSV-style message queues
 options 	SYSVSEM			# SYSV-style semaphores
 options 	P1003_1B_SEMAPHORES	# POSIX-style semaphores
 options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
 options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
 options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
 options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
 options 	AUDIT			# Security event auditing
 options 	MAC			# TrustedBSD MAC Framework
 options 	FLOWTABLE		# per-cpu routing cache
 options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
 options 	KDB			# Kernel debugger related code
 options 	KDB_TRACE		# Print a stack trace for a panic
 options 	SMP			# Symmetric MultiProcessor Kernel
 options		IPFIREWALL
 options		IPFIREWALL_FORWARD	# packet destination changes
 device		cpufreq
 device		acpi
 device		pci
 device		ata
 device		atadisk		# ATA disk drives
 device		ataraid		# ATA RAID drives
 device		atapicd		# ATAPI CDROM drives
 options 	ATA_STATIC_ID	# Static device numbering
 device		scbus		# SCSI bus (required for SCSI)
 device		da		# Direct Access (disks)
 device		cd		# CD
 device		pass		# Passthrough device (direct SCSI access)
 device		atkbdc		# AT keyboard controller
 device		atkbd		# AT keyboard
 device		psm		# PS/2 mouse
 device		kbdmux		# keyboard multiplexer
 device		vga		# VGA video card driver
 device		splash		# Splash screen and screen saver support
 device		sc
 device		uart		# Generic UART driver
 device		ppc
 device		ppbus		# Parallel port bus (required)
 device		lpt		# Printer
 device		ppi		# Parallel port interface device
 device		puc
 device		miibus		# MII bus support
 device		re		# RealTek 8139C+/8169/8169S/8110S
 device		rl		# RealTek 8129/8139
 device		loop		# Network loopback
 device		random		# Entropy device
 device		ether		# Ethernet support
 device		vlan		# 802.1Q VLAN support
 device		tun		# Packet tunnel.
 device		pty		# BSD-style compatibility pseudo ttys
 device		md		# Memory "disks"
 device		gif		# IPv6 and IPv4 tunneling
 device		faith		# IPv6-to-IPv4 relaying (translation)
 device		firmware	# firmware assist module
 device		bpf		# Berkeley packet filter
 
 #pciconf -lv
 hostb0@pci0:0:0:0:	class=0x060000 card=0x50001458 chip=0x29a08086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'Intel P965/G965 Processor to I/O Controller (?(82P965))'
     class      = bridge
     subclass   = HOST-PCI
 none0@pci0:0:3:0:	class=0x078000 card=0x29a41458 chip=0x29a48086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'The Intel Management Engine provides thermal management for Intel Desktop Boards. (Intel DG965SS)'
     class      = simple comms
 none1@pci0:0:26:0:	class=0x0c0300 card=0x50041458 chip=0x28348086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801H (ICH8 Family) USB UHCI *4'
     class      = serial bus
     subclass   = USB
 none2@pci0:0:26:1:	class=0x0c0300 card=0x50041458 chip=0x28358086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801H (ICH8 Family) USB UHCI *5'
     class      = serial bus
     subclass   = USB
 none3@pci0:0:26:7:	class=0x0c0320 card=0x50061458 chip=0x283a8086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'ICH8 Enhanced USB2 Enhanced Host Controller (81EC1043 (?))'
     class      = serial bus
     subclass   = USB
 pcib1@pci0:0:28:0:	class=0x060400 card=0x50011458 chip=0x283f8086 rev=0x02 hdr=0x01
     vendor     = 'Intel Corporation'
     device     = '82801H (ICH8 Family) PCIe Port 1'
     class      = bridge
     subclass   = PCI-PCI
 pcib2@pci0:0:28:3:	class=0x060400 card=0x50011458 chip=0x28458086 rev=0x02 hdr=0x01
     vendor     = 'Intel Corporation'
     device     = '82801H (ICH8 Family) PCIe Port 4'
     class      = bridge
     subclass   = PCI-PCI
 pcib3@pci0:0:28:4:	class=0x060400 card=0x50011458 chip=0x28478086 rev=0x02 hdr=0x01
     vendor     = 'Intel Corporation'
     device     = '82801H (ICH8 Family) PCIe Port 5'
     class      = bridge
     subclass   = PCI-PCI
 none4@pci0:0:29:0:	class=0x0c0300 card=0x50041458 chip=0x28308086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801H (ICH8 Family) USB UHCI *1'
     class      = serial bus
     subclass   = USB
 none5@pci0:0:29:1:	class=0x0c0300 card=0x50041458 chip=0x28318086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801H (ICH8 Family) USB UHCI *2'
     class      = serial bus
     subclass   = USB
 none6@pci0:0:29:2:	class=0x0c0300 card=0x50041458 chip=0x28328086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801H (ICH8 Family) USB UHCI *3'
     class      = serial bus
     subclass   = USB
 none7@pci0:0:29:7:	class=0x0c0320 card=0x50061458 chip=0x28368086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801H (ICH8 Family) USB2 EHCI *1'
     class      = serial bus
     subclass   = USB
 pcib4@pci0:0:30:0:	class=0x060401 card=0x50001458 chip=0x244e8086 rev=0xf2 hdr=0x01
     vendor     = 'Intel Corporation'
     device     = '82801 Family (ICH2/3/4/5/6/7/8/9,63xxESB) Hub Interface to PCI Bridge'
     class      = bridge
     subclass   = PCI-PCI
 isab0@pci0:0:31:0:	class=0x060100 card=0x50011458 chip=0x28108086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801HB/HR (ICH8/R) LPC Interface Controller'
     class      = bridge
     subclass   = PCI-ISA
 ahci1@pci0:0:31:2:	class=0x010601 card=0xb0051458 chip=0x28248086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801HR/HO/HH (ICH8R/DO/DH) SATA AHCI Controller'
     class      = mass storage
     subclass   = SATA
 none8@pci0:0:31:3:	class=0x0c0500 card=0x50011458 chip=0x283e8086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'SM Bus Controller (PCIVEN_8086&DEV_283E&SUBSYS_FF641179&REV_033&B1B)'
     class      = serial bus
     subclass   = SMBus
 ahci0@pci0:2:0:0:	class=0x010601 card=0xb0001458 chip=0x2363197b rev=0x02 hdr=0x00
     vendor     = 'JMicron Technology Corp.'
     device     = 'JMicron JMB362/JMB363 AHCI Controller (JMB36X)'
     class      = mass storage
     subclass   = SATA
 atapci0@pci0:2:0:1:	class=0x010185 card=0xb0001458 chip=0x2363197b rev=0x02 hdr=0x00
     vendor     = 'JMicron Technology Corp.'
     device     = 'JMicron JMB362/JMB363 AHCI Controller (JMB36X)'
     class      = mass storage
     subclass   = ATA
 none9@pci0:3:0:0:	class=0x020000 card=0xe0001458 chip=0x436411ab rev=0x12 hdr=0x00
     vendor     = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
     device     = 'Yukon PCI-E Gigabit Ethernet Controller (88E8056)'
     class      = network
     subclass   = ethernet
 puc0@pci0:4:0:0:	class=0x078000 card=0x00121000 chip=0x98359710 rev=0x01 hdr=0x00
     vendor     = 'MosChip Semiconductors (Was: Netmos Technology)'
     device     = 'Nm9835 Parallel/Serial Port Adapter'
     class      = simple comms
 rl0@pci0:4:1:0:	class=0x020000 card=0x813911f6 chip=0x813910ec rev=0x10 hdr=0x00
     vendor     = 'Realtek Semiconductor'
     device     = 'Realtek RTL8139 Family PCI Fast Ethernet NIC (RTL-8139/8139C/8139D)'
     class      = network
     subclass   = ethernet
 re0@pci0:4:2:0:	class=0x020000 card=0x43001186 chip=0x43001186 rev=0x10 hdr=0x00
     vendor     = 'D-Link System Inc'
     device     = 'Used on DGE-528T Gigabit adaptor (dlg10086)'
     class      = network
     subclass   = ethernet
 

>Unformatted:

