From owner-freebsd-current@FreeBSD.ORG Tue Sep 23 20:19:24 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 575D5106566B for ; Tue, 23 Sep 2008 20:19:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id CD25F8FC21 for ; Tue, 23 Sep 2008 20:19:23 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m8NKJHAv075244; Tue, 23 Sep 2008 16:19:17 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Tue, 23 Sep 2008 15:25:03 -0400 User-Agent: KMail/1.9.7 References: <200809201305.13339.shoesoft@gmx.net> In-Reply-To: <200809201305.13339.shoesoft@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809231525.03606.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Tue, 23 Sep 2008 16:19:17 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8317/Tue Sep 23 15:48:36 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Stefan Ehmann Subject: Re: 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: Tue, 23 Sep 2008 20:19:24 -0000 On Saturday 20 September 2008 07:05:12 am Stefan Ehmann wrote: > 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: controller> 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: controller> 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? cxm needs to include its own 'DEVICE_DRIVER' line for iicbus in HEAD now. Basically, it needs this line: DRIVER_MODULE(iicbb, cxm_iic, iicbb_driver, iicbb_devclass, 0, 0); -- John Baldwin