From owner-freebsd-stable@FreeBSD.ORG Mon Aug 4 16:49:59 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 472B71065676 for ; Mon, 4 Aug 2008 16:49:59 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by mx1.freebsd.org (Postfix) with ESMTP id 1B7BD8FC20 for ; Mon, 4 Aug 2008 16:49:58 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3074459rvf.43 for ; Mon, 04 Aug 2008 09:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=QgETkp2xCi3IOFlT55vVmGEtfF4Msmwly6Mnc4tXZAs=; b=V6KvT4pV4dR9jnJ/rAPTEyBeXIWo4fMDH8IPBoz6AaafVVVVywQUY5EfTHtIdjfeLa B9ZlG0pPHAJ2T/MVokFsjProkrDfUkZGQWaTrTDwC/8V/nCO9e5PrkYQyV+rDv4iULXP mdS1NBq9tauFY8hgtnIUlqBq5MNjexs0oW9jA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=IJ0OBrPHTsgpiD6zQOHAQwfdO1KpvsSn0Le3sXk+tR+ZQS/jGbHoB4Coljdo7lb5bK AN3tmmU5mZBzHppxzqfNdD5MsRD8rh6F2Ufz5NXmi6JEHaZnic3EY5A1/o4QPNJ2weJI gCiqlBt+PJUFwfzBtlg4ksb7HtEdNRncn02P8= Received: by 10.141.161.6 with SMTP id n6mr7643880rvo.155.1217868598554; Mon, 04 Aug 2008 09:49:58 -0700 (PDT) Received: by 10.141.114.16 with HTTP; Mon, 4 Aug 2008 09:49:58 -0700 (PDT) Message-ID: <8e10486b0808040949ka12edf0o38e3a790d620992e@mail.gmail.com> Date: Mon, 4 Aug 2008 13:49:58 -0300 From: "Alexandre Biancalana" To: "Gavin Atkinson" In-Reply-To: <8e10486b0807040834m27a38254k5261535d93d70ce6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8e10486b0807030908i4c6f70bbp3f8e8907c7443259@mail.gmail.com> <1215105220.32135.18.camel@buffy.york.ac.uk> <8e10486b0807031041o54349836i31c5da84ebda70f6@mail.gmail.com> <1215176991.36376.24.camel@buffy.york.ac.uk> <8e10486b0807040834m27a38254k5261535d93d70ce6@mail.gmail.com> Cc: stable@freebsd.org Subject: Re: DigiBoard Xem with 2 extenal modules 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: Mon, 04 Aug 2008 16:49:59 -0000 On 7/4/08, Alexandre Biancalana wrote: > On 7/4/08, Gavin Atkinson wrote: > > It's not a solution, but it may well be a great help in diagnosing where > > the problem lies: it would be useful to know if the driver is simply > > failing to detect the correct number of ports, or if the driver > > physically cannot use them. > > > > In /usr/src/sys/dev/digi/digi.c, line 510, you'll see the following > > code: > > > > if (sc->numports == 0) { > > device_printf(sc->dev, "%s, 0 ports found\n", sc->name); > > sc->hidewin(sc); > > return (0); > > } > > > > Just before that section, can you add a line "sc->numports = 32;", > > recompile, and see if the missing 16 ports are usable? If they are, I > > suspect fixing the driver will be trivial. > > > Wow !! Now the 32 ports are detected and devices created. > > # digictl -d 1 -r /dev/digi0.ctl > > digi0: Got init reset after 0 us > digi0: BIOS uploaded > digi0: BIOS started after 0 us > > digi0: BIOS booted after 1619 iterations > > digi0: Loading FEP/OS > digi0: FEP/OS loaded > digi0: FEP/OS started after 28 iterations > > digi0: Digiboard PCI PC/Xem ASIC, 32 ports found > > # ls /dev/cuaD?? | wc -l > 32 > > I will connect some modems to that ports to test and let you know. Modems connected but they only work on ports of the first module, any decice connected on ports of second module does not work. Any other idea ? Thank you