This is the mail archive of the ecos-devel@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Ethernet driver with different bus width


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]