public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jani Monoses <jani@iv.ro>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS]  Re: lwip eth doubt........
Date: Wed, 25 May 2005 12:44:00 -0000	[thread overview]
Message-ID: <d71f13$4ka$1@sea.gmane.org> (raw)
In-Reply-To: <33253.10.129.11.162.1116958423.squirrel@www.it.iitb.ac.in>

> 
>  the code is as........
> *************************
> static void
> init_hw_drivers(void)
> {
> 
>   cyg_netdevtab_entry_t *t;
> 
>   for (t = &__NETDEVTAB__[0]; t != &__NETDEVTAB_END__; t++) {
>         diag_printf("H/W device name:%s\n",t->name);
>   if (t->init(t)) {
>       t->status = CYG_NETDEVTAB_STATUS_AVAIL;
>     } else {
>       // What to do if device init fails?
>       t->status = 0;            // Device not [currently] available
>     }
>   }
> 

Do you have two NETDEVTAB_ENTRY-s in you platforms devs/eth sources?
Another point is that lwip has IP_ADDRs configurable in the CDL but it assumes there's one 
interface only
You'll have to modify the lwip_set_addr() function to cope with multiple interfaces.
When it works send a patch :)

There no documentation other than the code, but make sure you read io/eth/current/src/lwip 
as well to understand how initialization takes place

Jani


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

      reply	other threads:[~2005-05-25  9:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-25  7:53 [ECOS] " rpai
2005-05-25 12:44 ` Jani Monoses [this message]

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='d71f13$4ka$1@sea.gmane.org' \
    --to=jani@iv.ro \
    --cc=ecos-discuss@sources.redhat.com \
    /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).