public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] XXXX_can_send  function
@ 2005-08-10 16:37 mkhoyila
  2005-08-11  2:12 ` [ECOS] Re: XXXX_can_send function -- HELP NEEDED mkhoyila
  0 siblings, 1 reply; 3+ messages in thread
From: mkhoyila @ 2005-08-10 16:37 UTC (permalink / raw)
  To: ecos-discuss

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


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ECOS] Re: XXXX_can_send  function -- HELP NEEDED
  2005-08-10 16:37 [ECOS] XXXX_can_send function mkhoyila
@ 2005-08-11  2:12 ` mkhoyila
  2005-08-11 12:48   ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: mkhoyila @ 2005-08-11  2:12 UTC (permalink / raw)
  To: ecos-discuss

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?

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
>



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] Re: XXXX_can_send  function -- HELP NEEDED
  2005-08-11  2:12 ` [ECOS] Re: XXXX_can_send function -- HELP NEEDED mkhoyila
@ 2005-08-11 12:48   ` Gary Thomas
  0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2005-08-11 12:48 UTC (permalink / raw)
  To: mkhoyila; +Cc: eCos Discussion

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-11 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-10 16:37 [ECOS] XXXX_can_send function mkhoyila
2005-08-11  2:12 ` [ECOS] Re: XXXX_can_send function -- HELP NEEDED mkhoyila
2005-08-11 12:48   ` Gary Thomas

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).