public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Ethernet driver with different bus width
@ 2006-07-27 12:29 Sergei Gavrikov
  0 siblings, 0 replies; only message in thread
From: Sergei Gavrikov @ 2006-07-27 12:29 UTC (permalink / raw)
  To: ecos-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-27 12:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-27 12:29 Ethernet driver with different bus width Sergei Gavrikov

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).