This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

XXXX_can_send function


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]