linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: SCC used for WAN connection
@ 2000-06-15 23:21 hugh.mcdonald
  2000-06-14  3:24 ` john zhan
  2000-06-17  0:16 ` john zhan
  0 siblings, 2 replies; 6+ messages in thread
From: hugh.mcdonald @ 2000-06-15 23:21 UTC (permalink / raw)
  To: Ruedi.Hofer; +Cc: linuxppc-embedded


On 30/5/00 Ruedi Hofer wrote,
>
>I'd like to use one of the currently unused SCC's as WAN interface.
>My ultimate dream is to run PPP or Frame Relay at a speed of
>2Mb/s on it.
>......

Hi Ruedi,
    I too am hoping to one day run one SCC on an MBX860 board as a 2M WAN
port. My general plan was to run the SCC in HDLC synchronous mode and use
the PPP protocol on top of this.  From my quick investigation I found that
in the LinuxPPc /kernel/drivers/char area there some files synclink.c
(rewrite of serial.c) and n_hdlc.c (rewrite of ppp.c). Together they form a
Linux Device Driver & line disipline for a synchrouous PPP link.
Unfortunately the synclink.c driver is dedicated to a PCI serial card
produced by MicroGate.
   What is needed is a new version of 8xx_io/uart.c that sets up and drives
the SCC as a synchronous serial port. This may then be useable with the sync
PPP line disipline from the above driver.
  I have started playing with it but only when I have some spare time....
and I dont seem to get much of that these days :-(

   Please let me know if you get any info from other people or find out any
other possible solutions....

Regards
   Hugh McDonald
   hugh.mcdonald@nokia.com

>-----Original Message-----
>From: EXT Ruedi.Hofer@ascom.ch [mailto:Ruedi.Hofer@ascom.ch]
>Sent: Tuesday, May 30, 2000 1:51 AM
>To: linuxppc-embedded@lists.linuxppc.org
>Cc: kernel@linux01.hasler.ascom.ch
>Subject: SCC used for WAN connection
>
>
>Hi,
>
>I'd like to use one of the currently unused SCC's as WAN interface.
>My ultimate dream is to run PPP or Frame Relay at a speed of
>2Mb/s on it.
>
>Is someone out there, who has
>1. seen something like this?
>2. written some kernel modules which support this functionality?
>3. seen links containing related information?
>4. ideas on how to do this?
>
>If you were doin' something like that, would you first buy a
>WAN Interface
>card for the PC? (eg. Sangoma, for tests?)
>5. Has someone done tests with such a WAN card?
>
>Thanx for any information,
>
>Ruedi
>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: SCC used for WAN connection
@ 2000-06-19  7:59 hugh.mcdonald
  0 siblings, 0 replies; 6+ messages in thread
From: hugh.mcdonald @ 2000-06-19  7:59 UTC (permalink / raw)
  To: dan, r3587; +Cc: linuxppc-embedded, Ruedi.Hofer


Hi John & Dan,
   See Below for comments....

>Subject: Re: SCC used for WAN connection
>
>
>john zhan wrote:
>
>> me too.  in fact,   also, I need generic x.25 running on it.
>
>So, write it.
>
>
>>
>> >    What is needed is a new version of 8xx_io/uart.c that
>sets up and drives
>
>No, what you want is an SCC synchronous driver. Period.  Don't put
>stuff like this in the uart driver, it is a big enough mess the
>way it is.  I am close to having a really configurable uart driver,
>so you can select what SCC/SMCs you want.  The uart driver is a uart
>driver, not an SCC driver.

Sorry, my words were ambiguious, I did not actually intend to add to uart.c.
Dan is correct , sync does not belong in a uart driver.
I planned to write a new driver (based on uart.c skelaton). Also I was
planning to make it message/frame based not character based which also has
big impact on the design/functionality.

>
>We will probably have to create some other functions for managing the
>baud rate generators, but for synchronous I/O that clock should be
>provided externally.
>
>> > other possible solutions....
>> I think we can  work together .
>> If you like,let's discuss it later , privately.

john,
  I would like to further discuss with you.  I am on a training course for
the next few days so maybe sometime after that...
>
>I would strongly suggest not going off and making a big mess, then
>sending me a patch and hope it gets applied to the kernel sources.
>
  Agreed

>I have done lots of synchronous SCC, HDLC, and other things as custom
>proprietary drivers for many customers.  Typically, the driver does
>very little, just buffers the data for mmap()'ed applications that
>do the real work.  I will see if I can provide some framework from
>past work I have done, but some of these folks are quite protective
>of this.
>
Any code snippets would be more than welcome!

>These drivers are not hard to write, and you can use examples from
>Motorola's NetComm site to get started.  You may need to do some
>uncached memory buffering tricks in Linux or just use cache management
>functions to ensure cache coherency.
>
>Don't use old silicon, like before Rev. C 860.  Most of these functions
>don't work as advertised on SCC3 and SCC4, only on SCC1 and SCC2.  Make
>sure you pay close attention to the external hardware, as clock and
>data transition edges are criticaly to this working correctly.

Thanx for the info I shall check my hardware revs.

>
>	-- Dan
>

Cheers
    Hugh McD

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* SCC used for WAN connection
@ 2000-05-29 15:51 Ruedi.Hofer
  0 siblings, 0 replies; 6+ messages in thread
From: Ruedi.Hofer @ 2000-05-29 15:51 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: kernel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 548 bytes --]

Hi,

I'd like to use one of the currently unused SCC's as WAN interface.
My ultimate dream is to run PPP or Frame Relay at a speed of 2Mb/s on it.

Is someone out there, who has
1. seen something like this?
2. written some kernel modules which support this functionality?
3. seen links containing related information?
4. ideas on how to do this?

If you were doin' something like that, would you first buy a WAN Interface
card for the PC? (eg. Sangoma, for tests?)
5. Has someone done tests with such a WAN card?

Thanx for any information,

Ruedi

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-06-19  7:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-15 23:21 SCC used for WAN connection hugh.mcdonald
2000-06-14  3:24 ` john zhan
2000-06-17  0:16 ` john zhan
2000-06-17 17:14   ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2000-06-19  7:59 hugh.mcdonald
2000-05-29 15:51 Ruedi.Hofer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).