public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Sergei Gavrikov <w3sg@SoftHome.net>
To: ecos-devel@ecos.sourceware.org
Subject: Ethernet driver with different bus width
Date: Thu, 27 Jul 2006 12:29:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.63.0607271451240.30334@sg.belavox.gomel.by> (raw)

Hello,

I am porting eCos to Olimex LPC-E2294 platform. I'd planned release it
under eCosCentric license flavor. I have a question about eCos CS8900A
ethernet driver. I successfully use it in 16-bit (polled) mode for my
custom LPC2214 board.

And there is the CS8900A wired in 8-bit mode on the LPC-E2294. When I
began to write ethernet CDL for that platform, I had used a reference on
the CYGINT_DEVS_ETH_CL_CS8900A_REQUIRED implementation in my own CDL
file (plf_eth_drivers.cdl). I observed a few prototypes of platform
which contains in own CDL file the cs8900a things as parent. All of then
use 16-bit CS8900A mode.  I though what I would be able to overwrite
bus-wide things in devs_eth_arm_plf.inl.

But I saw what I need to copy almost all of the if_cs8900a.c functions
in my plf.inl file, or fill the parent cs8900a driver by heap of

#ifndef CYGSEM_DEVS_ETH_CL_CS8900A_8BIT
// native if_cs8900a.c code
#else
// code for dumb 8bit mode
#endif

wrappers.

Is it right? Or should I rewrite my plf CDL to reference on the
CS8900A parent driver never?

I very hope on your suggestions. Thank you in advance,

Sergei Gavrikov

                 reply	other threads:[~2006-07-27 12:29 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=Pine.LNX.4.63.0607271451240.30334@sg.belavox.gomel.by \
    --to=w3sg@softhome.net \
    --cc=ecos-devel@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).