public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Adam Kaczynski <kaczor@dgt-lab•com.pl>
To: linuxppc-embedded@lists•linuxppc.org
Subject: Previous by DateDate IndexNext by Date List Index Previous by ThreadThread IndexNext by Thread Re: Re: looking for mpc8260 mcc driver example for linux
Date: Fri, 18 Jul 2003 09:55:09 +0200	[thread overview]
Message-ID: <3F17A7DD.4080607@dgt-lab.com.pl> (raw)


This is a description how I understand the difference between net and
character drivers for HDLC:

The HDLC is basically a L2 protocol used to carry frames over a
synchronous channel like a timeslot/group of timeslots on a TDM
interface (it is used in modem protocols too but it is off-topic here).

The HDLC protocol can be used therefore as a lower sublayer for
synchronous-PPP or Cisco HDLC or Frame Relay (or X.25) protocol. A
specific hardware-based HDLC driver in Linux is connected then to a
generic upper-sublayer HDLC driver which takes care on frame headers,
service frames and timers. The sources of the generic driver and some
particular lower-level (HW-dependant) drivers are in /linux/drivers/net/wan/

The net driver for MPC860 is available from our web-site.

Additionally the HDLC protocol is widely used in telecommunication
protocols like ISDN, V5.1,V5.2, GR.303 and SS-7. It can be also used for
internal communication inside a phone switch etc. Usually the upper
layer is LAP-D. It can be easier to implement the processing of these
protocols in User Space than in kernel. The simpliest way of presenting
raw framed data to User Space (in Linux) is using read/write/(poll or
fasync) methods on a character device inode.

This is probably the reason why the driver
https://sourceforge.net/projects/mcc8260/
is a character one.

NB. I was not aware of this project and I've developed my own (very
simple) character-device driver for HDLC/transparent channels on 8260
MCC. Many thanks to mailto:omanakuttan@tataelxsi•co.in for his howto and
his help!

Now the driver is finished and will be released under GPL soon, after
passing tests. If someone wants to see the code now, please let me know.

If someone wants to wrap the driver to fit into the "net" domain, I can
advice how to do it.

Regards,

Adam


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

                 reply	other threads:[~2003-07-18  7:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F17A7DD.4080607@dgt-lab.com.pl \
    --to=kaczor@dgt-lab$(echo .)com.pl \
    --cc=linuxppc-embedded@lists$(echo .)linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox