From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23680 invoked by alias); 27 Jul 2006 12:29:33 -0000 Received: (qmail 23666 invoked by uid 22791); 27 Jul 2006 12:29:30 -0000 X-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from jive.SoftHome.net (HELO jive.SoftHome.net) (66.54.152.27) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 27 Jul 2006 12:29:17 +0000 Received: (qmail 24045 invoked by uid 417); 27 Jul 2006 12:29:15 -0000 Received: from shunt-smtp-out-0 (HELO softhome.net) (172.16.3.12) by shunt-smtp-out-0 with SMTP; 27 Jul 2006 12:29:15 -0000 Received: from SoftHome.net ([82.209.212.146]) (AUTH: PLAIN w3sg@softhome.net) by softhome.net with esmtp; Thu, 27 Jul 2006 06:29:14 -0600 Date: Thu, 27 Jul 2006 12:29:00 -0000 From: Sergei Gavrikov X-X-Sender: sg@sg.belavox.gomel.by To: ecos-devel@ecos.sourceware.org Subject: Ethernet driver with different bus width Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2006-07/txt/msg00006.txt.bz2 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