From owner-freebsd-current@FreeBSD.ORG Sat Sep 20 11:05:16 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A49FC1065683 for ; Sat, 20 Sep 2008 11:05:16 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id DEB898FC2E for ; Sat, 20 Sep 2008 11:05:15 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: (qmail invoked by alias); 20 Sep 2008 11:05:14 -0000 Received: from 85-127-94-178.dynamic.xdsl-line.inode.at (EHLO taxman.pepperland) [85.127.94.178] by mail.gmx.net (mp002) with SMTP; 20 Sep 2008 13:05:14 +0200 X-Authenticated: #16703784 X-Provags-ID: V01U2FsdGVkX18P5zY7UV0PX/pGUw2cUrxUzZPMudZszifzUNgn43 xqrqSxgd9CR/te From: Stefan Ehmann To: freebsd-current@freebsd.org Date: Sat, 20 Sep 2008 13:05:12 +0200 User-Agent: KMail/1.10.1 (FreeBSD/7.1-PRERELEASE; KDE/4.1.1; i386; ; ) MIME-Version: 1.0 Message-Id: <200809201305.13339.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57,0.57 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: prvxxx: cxm_iic attach fails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2008 11:05:16 -0000 Hello, I'm using the port from http://usleepless.110mb.com/pvrxxx_port.tgz for my PVR-150 card. I get this error on kldload cxm: Sep 20 12:07:48 taxman kernel: cxm0: mem 0xd8000000-0xdbffffff irq 18 at device 15.0 on pci0 Sep 20 12:07:48 taxman kernel: cxm_iic0: on cxm0 Sep 20 12:07:48 taxman kernel: cxm_iic0: could not attach iicbb Sep 20 12:07:48 taxman kernel: device_attach: cxm_iic0 attach returned 6 Sep 20 12:07:48 taxman kernel: cxm0: could not attach cxm_iic Sep 20 12:07:48 taxman kernel: device_attach: cxm0 attach returned 6 Build fails on recent current because minor(9) is now a macro. The cause is this define in cxm.h # define dev_t struct cdev * I added this ugly hack to get it build. Not sure if it's correct but I don't think it's the cause of the problem. #undef minor #define minor(d) ((d) ? (d)->si_drv0 : -1) Haven't tested previously on CURRENT. But the card is working on RELENG_7: Sep 20 12:38:50 taxman kernel: cxm0: mem 0xd8000000-0xdbffffff irq 18 at device 15.0 on pci0 Sep 20 12:38:50 taxman kernel: cxm_iic0: on cxm0 Sep 20 12:38:50 taxman kernel: iicbb0: on cxm_iic0 Sep 20 12:38:50 taxman kernel: iicbus0: on iicbb0 master- only Sep 20 12:38:50 taxman kernel: iicbus0: at addr 0 Sep 20 12:38:50 taxman kernel: iicbus0: at addr 0 Any ideas? Thanks, Stefan