Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Feb 2001 16:25:27 +0200 (SAT)
From:      John Hay <jhay@icomtek.csir.co.za>
To:        jcv@vbc.net (Jean-Christophe Varaillon)
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: - N2d PCI & Driver option _
Message-ID:  <200102221425.f1MEPR352690@zibbi.icomtek.csir.co.za>
In-Reply-To: <Pine.BSF.4.10.10102221324230.71508-100000@brunel.uk1.vbc.net> from Jean-Christophe Varaillon at "Feb 22, 2001 01:34:24 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> +-------+ Serial Interface	+-------------+
> | cisco |			| FreeBSD 4.1 |
> | 3600  }----------{}-----------{	      |
> |	|		N2d	|	      |
> +-------+		card	+-------------+
> 	x.x.x.145	x.x.x.146
> 
> 
> I need help to establish the communication between the router and the N2d
> card (sr interface).
> 
> The reason why it is not working is almost certainly in the driver.
> 
> There are two kinds of cables used with these cards.
> SDL Communications, the manufacturer, supplies x.21 cables
> that have the input clock pin tied to the output clock pin.
> 
> Normaly I should be able to use a driver option to tell the
> HDLC chip to pass the signal through to the output clock pin.
> 
> If this isn't configured, there is no data out clock, so the card
> doesn't work.
> 
> Could you, please, tell me how to configure it ?

You are a little bit out of luck. On the ISA cards you can configure
the clock settings with the flags option in the kernel config file.
You can't do it with the PCI cards though, because none of that
config line is used. The reason is that on the ISA cards there were
no way for the driver to figure out what kind of cable was attached.
On the PCI cards there are some registers that you can read to get
that info. The driver will use 2 seperate clocks for V.35 cables
and a combined clock for X.21 cables. If you want to play with it,
look in /usr/src/sys/i386/isa/if_sr.c almost at the end of
srattach_pci(). You will see either SR_FLAGS_EXT_SEP_CLK or
SR_FLAGS_EXT_CLK gets assigned to sc->clk_cfg. If you search
further into the file for SR_FLAGS_EXT_CLK, you will find the
place where the actual magic is done to select the clocks.

John
-- 
John Hay -- John.Hay@icomtek.csir.co.za

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102221425.f1MEPR352690>