public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Question about eth_drv_int_vector() in Redboot?
@ 2007-01-26  8:08 wang cui
  2007-01-26  8:43 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: wang cui @ 2007-01-26  8:08 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 837 bytes --]

When using ethernet driver in Redboot.
Call stack:
  net_init()
  net_io_init()
  net_io_control( comm, __COMMCTL_IRQ_DISABLE )
  vector = eth_drv_int_vector()
  eth_drv_int_vector(void)
  MYDRIVER_int_vector(struct eth_drv_sc *sc);

Here eth_drv_int_vector() need MYDRIVER_int_vector() to return its 
interrupt vector, but on my target, this ethernet device does not use any 
interrupt resource.

How to return the vector? Presently, I return 0, and it works.
Since 0 is a valid vector used by other driver, I suspect it is not good.

Thanks in advance.

_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer:   http://explorer.msn.com/lccn  


-- 
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] 2+ messages in thread

* Re: [ECOS] Question about eth_drv_int_vector() in Redboot?
  2007-01-26  8:08 [ECOS] Question about eth_drv_int_vector() in Redboot? wang cui
@ 2007-01-26  8:43 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2007-01-26  8:43 UTC (permalink / raw)
  To: wang cui; +Cc: ecos-discuss

On Fri, Jan 26, 2007 at 08:08:00AM +0000, wang cui wrote:
> When using ethernet driver in Redboot.
> Call stack:
>  net_init()
>  net_io_init()
>  net_io_control( comm, __COMMCTL_IRQ_DISABLE )
>  vector = eth_drv_int_vector()
>  eth_drv_int_vector(void)
>  MYDRIVER_int_vector(struct eth_drv_sc *sc);
> 
> Here eth_drv_int_vector() need MYDRIVER_int_vector() to return its 
> interrupt vector, but on my target, this ethernet device does not use any 
> interrupt resource.
> 
> How to return the vector? Presently, I return 0, and it works.
> Since 0 is a valid vector used by other driver, I suspect it is not good.

Redboot does not use interrupts, so it is not really a problem at the
moment. 

If you want to use full eCos on your target then it becomes a
problem. eCos assumes the ethernet is interrupt driven so i think you
will then have more problems.

     Andrew

-- 
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] 2+ messages in thread

end of thread, other threads:[~2007-01-26  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-26  8:08 [ECOS] Question about eth_drv_int_vector() in Redboot? wang cui
2007-01-26  8:43 ` Andrew Lunn

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