This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: XXXX_can_send function -- HELP NEEDED
On Wed, 2005-08-10 at 19:15 -0700, mkhoyila@uci.edu wrote:
> Team,
>
> I staticly set my XXXX_can_send function to return 0. When I bring up my
> board, it is sending ARP request message (I captured it). From my debug
> statements I see that my XXXX_send function is not called.
>
> HOW IS THIS POSSIBLE?
>
> Is there another MIPS ethernet driver in eCos that I might have included
> in my configuration by accident? Is this why my XXXX_can_send function
> behaving abnormally?
I can't tell why this is happening. Have you tried using GDB to single
step through the driver and the upper level code?
>
> Thanks.
>
> > Thanks for help from Gary and others. I have done tremendous progress.
> >
> > I have this issue now:
> >
> > XXXX_can_send function is repeatedly being called. Here is my function:
> >
> > static int
> > bcm63xx_can_send(struct eth_drv_sc *sc)
> > {
> > struct bcm63xx_priv_data_t *spd = (struct bcm63xx_priv_data_t
> > *)sc->driver_private;
> > // db_printf("bcm66xx_can_send \n");
> > __tx_poll(sc);
> >
> > if (spd->txFreeBds <= 1)
> > return 0;
> > else
> > return 1;
> >
> > }
> >
> >
> > I check my return value, and it is returning 1 to upper layer driver. Yet,
> > it is being called repeately and XXXX_send function is NOT called. Any
> > clue will help to debug. Thanks again.
> >
> > Michael
> >
>
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss