From owner-freebsd-stable@FreeBSD.ORG Fri Nov 26 18:38:25 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C74D11065670 for ; Fri, 26 Nov 2010 18:38:25 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id A8D1F8FC0A for ; Fri, 26 Nov 2010 18:38:25 +0000 (UTC) Received: by pvc22 with SMTP id 22so444063pvc.13 for ; Fri, 26 Nov 2010 10:38:25 -0800 (PST) Received: by 10.142.192.20 with SMTP id p20mr2750495wff.42.1290795076428; Fri, 26 Nov 2010 10:11:16 -0800 (PST) Received: from localhost (118-93-172-88.dsl.dyn.ihug.co.nz [118.93.172.88]) by mx.google.com with ESMTPS id w42sm2853960wfh.3.2010.11.26.10.10.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Nov 2010 10:10:54 -0800 (PST) Date: Sat, 27 Nov 2010 07:10:48 +1300 From: Jonathan Chen To: freebsd-stable@freebsd.org Message-ID: <20101126181048.GA4955@osiris.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: puc(4) and pucdata.c X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2010 18:38:25 -0000 Hi, I've recently added a new PCI 1 Parallel Port card, and I'm trying to get it recognised by my 8-STABLE/amd64 system. The relevant entry from "pciconv -lcv" is: none2@pci0:4:6:0: class=0x070103 card=0x2000a000 chip=0x98659710 rev=0x00 hdr=0x00 vendor = 'MosChip Semiconductors (Was: Netmos Technology)' class = simple comms subclass = parallel port cap 01[48] = powerspec 2 supports D0 D3 current D0 This is matched by info from "devinfo -rv": unknown pnpinfo vendor=0x9710 device=0x9865 subvendor=0xa000 subdevice=0x2000 class=0x070103 at slot=6 function=0 Using this info, I've patched sys/dev/puc/pucdata.c: *** pucdata.c.orig Fri Nov 26 20:31:08 2010 --- pucdata.c Fri Nov 26 20:32:10 2010 *************** *** 820,825 **** --- 820,831 ---- PUC_PORT_4S1P, 0x10, 4, 0, }, + { 0x9710, 0x9865, 0xa000, 0x2000, + "NetMos NM9865 Single 1284 Printer port", + DEFAULT_RCLK, + PUC_PORT_1P, 0x10, 4, 0, + }, + { 0x9710, 0x9865, 0xa000, 0x3002, "NetMos NM9865 Dual UART", DEFAULT_RCLK, And I've added the following line to /boot/loader.conf: puc_load="YES" However, all of this doesn't work. dmesg reveals: pci4: on pcib4 pci4: at device 6.0 (no driver attached) What did I miss? Is my patch correct? Cheers. -- Jonathan Chen ----------------------------------------------------------------------- "I love deadlines. I like the whooshing sound they make as they fly by" - Douglas Adams