From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41893 invoked by alias); 10 Apr 2015 14:30:15 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 41878 invoked by uid 89); 10 Apr 2015 14:30:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 10 Apr 2015 14:30:14 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YgZwf-0000LN-Uq for ecos-discuss@ecos.sourceware.org; Fri, 10 Apr 2015 16:30:10 +0200 Received: from 67-130-15-94.dia.static.qwest.net ([67.130.15.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Apr 2015 16:30:09 +0200 Received: from grant.b.edwards by 67-130-15-94.dia.static.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Apr 2015 16:30:09 +0200 To: ecos-discuss@ecos.sourceware.org From: Grant Edwards Date: Fri, 10 Apr 2015 14:30:00 -0000 Message-ID: References: <552447CE.7090807@web.de> User-Agent: slrn/1.0.1 (Linux) X-IsSubscribed: yes Subject: [ECOS] Re: How to activate ethernet driver X-SW-Source: 2015-04/txt/msg00005.txt.bz2 On 2015-04-10, Jerzy Dyrda wrote: > Hello Dennis, > > 2015-04-10 11:11 GMT+02:00 : > [snip] > We are a bit closer. >> I digged a little deeper in the source code and found the function >> "cyg_io_init" which iterates over the __DEVTAB__ table. I can see how >> it runs through different devices like tty, flash, adc, ... but not >> the ethernet driver. As far as I understand the reference manual, >> this SHOULD happen here too! > > No exactly, it seems that Ethernet driver is a different sort of > devices strictly connected to network stack. [...] True. However, you can create a "normal" driver table entry for an Ethernet driver if you want to. Then you can have an init function called exactly once at system startup time. You can also then use use cyg_io_read(), cyg_io_write(), cyg_io_set_config(), cyg_io_get_config() etc. for whatever you want. I've done that in the past for a number of Ethernet drivers so that user application can read/write raw MAC-level packets for certain proprietary Ethernet protocols. [The eCos network stacks didn't used to provide any mechanism for that]. We also use the normal cyg_io API to allow application code to configure and uery a variety of features in the Ethernet controller hardware that the normal network stacks are not aware of and for which they provide no API. -- Grant Edwards grant.b.edwards Yow! Don't hit me!! I'm in at the Twilight Zone!!! gmail.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss