From owner-freebsd-firewire@FreeBSD.ORG Mon Jan 26 04:33:13 2004 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47CFC16A4CE for ; Mon, 26 Jan 2004 04:33:13 -0800 (PST) Received: from ferengi.borderworlds.dk (borderworlds.dk [62.79.110.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5C8343D46 for ; Mon, 26 Jan 2004 04:33:09 -0800 (PST) (envelope-from xi@borderworlds.dk) Received: from borg.borderworlds.dk (localhost [127.0.0.1]) by ferengi.borderworlds.dk (Postfix) with ESMTP id 7AA785C38; Mon, 26 Jan 2004 13:33:08 +0100 (CET) Received: by borg.borderworlds.dk (Postfix, from userid 1001) id EE612B83A; Mon, 26 Jan 2004 13:33:07 +0100 (CET) Sender: xi@borderworlds.dk To: Hidetoshi Shimokawa References: <86isja24y0.fsf@borg.borderworlds.dk> <87ptd6rj6n.wl@tora.nunu.org> From: Christian Laursen Date: 26 Jan 2004 13:33:07 +0100 In-Reply-To: <87ptd6rj6n.wl@tora.nunu.org> Message-ID: <86isiy99fg.fsf@borg.borderworlds.dk> Lines: 95 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-firewire@freebsd.org Subject: Re: NEC uPD72873 X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2004 12:33:13 -0000 Hidetoshi Shimokawa writes: > Sorry to respond you late. > Is the driver statically linked with kernel or loaded as a module? It is loaded as a module? Should I try to compile it into the kernel? > At 17 Jan 2004 12:24:39 +0100, > Christian Laursen wrote: > > > > It seems we managed to buy a presently unsupported firewire pci card. > > > > I upgraded to the latest -CURRENT and hoped to be lucky, but it seems > > that it didn't have to be that easy. :) > > > > This is the dmesg output of the card getting probed: > > > > fwohci0: vendor=1033, dev=e7 > > fwohci0: <1394 Open Host Controller Interface> mem 0xe0800000-0xe0800fff irq 11 at device 11.0 on pci0 > > fwohci0: OHCI version 1.10 (ROM=1) > > fwohci0: No. of Isochronous channel is 4. > > fwohci0: EUI64 00:00:4c:01:07:00:2a:01 > > fwohci0: Phy 1394a available S400, 2 ports. > > fwohci0: Link S400, max_rec 2048 bytes. > > fwohci0: FireWire init failed with err=6 > > device_probe_and_attach: fwohci0 attach returned 5 > > > > And this is the information from pciconf -lv: > > > > none2@pci0:11:0: class=0x0c0010 card=0x00ce1033 chip=0x00e71033 rev=0x01 hdr=0x00 > > vendor = 'NEC Electronics Hong Kong' > > device = 'uPD72873 IEEE1394 OHCI 1.1 2-port PHY-Link Ctrlr' > > class = serial bus > > subclass = FireWire > > > > Based on that, I tried to make the following change: > > > > --- fwohcireg.h.orig Sat Jan 17 12:15:36 2004 > > +++ fwohcireg.h Sat Jan 17 12:17:18 2004 > > @@ -47,6 +47,7 @@ > > #define FW_DEVICE_UPD861 (0x0063 << 16) > > #define FW_DEVICE_UPD871 (0x00ce << 16) > > #define FW_DEVICE_UPD72870 (0x00cd << 16) > > +#define FW_DEVICE_UPD72873 (0x00e7 << 16) > > #define FW_DEVICE_UPD72874 (0x00f2 << 16) > > #define FW_DEVICE_TITSB22 (0x8009 << 16) > > #define FW_DEVICE_TITSB23 (0x8019 << 16) > > --- fwohci_pci.c.orig Sat Jan 17 12:17:32 2004 > > +++ fwohci_pci.c Sat Jan 17 12:18:39 2004 > > @@ -95,6 +95,10 @@ > > device_set_desc(dev, "NEC uPD72870"); > > return 0; > > } > > + if (id == (FW_VENDORID_NEC | FW_DEVICE_UPD72873)) { > > + device_set_desc(dev, "NEC uPD72873"); > > + return 0; > > + } > > if (id == (FW_VENDORID_NEC | FW_DEVICE_UPD72874)) { > > device_set_desc(dev, "NEC uPD72874"); > > return 0; > > > > > > The dmesg output then changes to this: > > > > fwohci0: mem 0xe0800000-0xe0800fff irq 11 at device 11.0 on pci0 > > fwohci0: OHCI version 1.10 (ROM=1) > > fwohci0: No. of Isochronous channel is 4. > > fwohci0: EUI64 00:00:4c:01:07:00:2a:01 > > fwohci0: Phy 1394a available S400, 2 ports. > > fwohci0: Link S400, max_rec 2048 bytes. > > fwohci0: FireWire init failed with err=6 > > device_probe_and_attach: fwohci0 attach returned 5 > > > > As I do not know much about firewire internals I'm not sure how to proceed from > > here. > > > > Are there any hopes of getting this card working? > > > > Thanks in advance. > > > > -- > > Best regards > > Christian Laursen > > _______________________________________________ > > freebsd-firewire@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-firewire > > To unsubscribe, send any mail to "freebsd-firewire-unsubscribe@freebsd.org" > > > -- Best regards Christian Laursen