[ECOS] interrupt processing in RedBoot

Tim michals tcmichals@yahoo.com
Thu Dec 16 13:01:00 GMT 2004


So, I would have to create something like net_io.c
to call the proper driver routines to start it up and
inititalize?
I'm using CHAR device driver.  
CHAR_DEVIO_TABLE
CHAR_DEVTAB_ENTRY
Or just use something like syscalls...

for example in net_io:
// Define table boundaries
CYG_HAL_TABLE_BEGIN( __NETDEVTAB__, netdev );
CYG_HAL_TABLE_END( __NETDEVTAB_END__, netdev );

void
net_init(void)
{
    cyg_netdevtab_entry_t *t;

 
    // Initialize all network devices
    for (t = &__NETDEVTAB__[0]; t !=
&__NETDEVTAB_END__; t++) {
        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
        }
    }

--- Andrew Lunn <andrew@lunn.ch> wrote:

> On Wed, Dec 15, 2004 at 08:38:18PM -0800, Tim
> michals wrote:
> > Question:
> > Is it possible to include the eCOS kernel package
> and
> > redboot?  The issue is having to process a high
> speed
> > interface at boot up, polling may not be
> predictable
> > enough to service the interface.  
> > 
> > Reason:
> > I already have created a working CHAR_DEVIO driver
> and
> > tested using the eCOS kernel, but also need to add
> > this to redboot due to the speed of the boot
> process.
> 
> Redboot was designed to be used without the kernel.
> So if you can i
> suggest you don't use it. What do you actually need
> from the kernel? A
> driver should not be using the KAPI, rather it
> should be using the
> driver API. This always exists. You can use
> interrupts, ISR, DSR etc
> with the driver API without the kernel.
> 
>         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
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

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



More information about the Ecos-discuss mailing list