This is the mail archive of the 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]


On Thursday 29 December 2005 14:59, you wrote:

Hi Andrew,

Thanks for ur explaination for .inl file.

You asked me a follows

"What are you trying to do here? Do you want to use eCos's existing
 NETDEVTAB table, or are you trying to implement your own table?"

But to some extent only I understood your question.....

I will list my doubts...

1. What is ecos's existing NETDEVTAB table  and how many devices it contains 
(ie how many max table entry it can accomodate)????

2. In our application we have only one network device,so can I use the 
existing NETDEVTAB table??..or I have to create my own NETDEVTAB table???

3. If I want to create my own NETDEVTAB table, then what changes I have to 
make to my code what I have mailed previous???

4. In my last mail, I gave a sketch of my code....., when I print the device 
name it prints tty/diag....How come in a NETDEVTAB table can I have a serial 
device???Or it is something else....???

Plz give explanation

Thanks and Regards

> On Thu, Dec 29, 2005 at 10:09:33AM +0530, vasantha.rajan wrote:
> > ----------  Forwarded Message  ----------
> >
> > Subject: NETDEVTAB_ENTRY()????
> > Date: Wednesday 28 December 2005 17:21
> > From: "vasantha.rajan" <>
> > To:
> >
> > Hi,
> >
> > We are working on developing driver for wlan.
> > We use arm arm excalibur board and use lwip_stack.
> >
> > I have doubt in NETDEVTAB_ENTRY() MACRO.
> >
> > I will list my doubts.
> >
> > 1. I have given the NETDEVTAB_ENTRY() MACRO in a .inl file (first I am
> > not clear with .inl file...why it cant be .h file?????Plz explain).
> .inl stands for inline. It contains bits of C code which can be
> inlined into other files. .h files only contain definitions etc, no
> code.
> > 2. Now In my high level driver code I have #included the .inl file (Where
> > i have my NETDEVTAB_ENTRY() MACRO) and in my high level driver code i
> > have given the MACRO: CYG_HAL_TABLE_BEGIN( ) & CYG_HAL_TABLE_END( )
> >
> > 3. In my cdl I have compiled the high level driver code with
> > -library=libextras.a (option).
> >
> > 4. Now when I check for the __NETDEVTAB__[0] and  __NETDEVTAB_END__ in a
> > for loop and both of them give the same address??? So its  not entering
> > the for loop even once.
> >
> > 5. if I try to print the name of the device it gives tty/diag???
> >
> > I will give the sketch of the code below.My file name epx_high_driver.c
> >
> > //------------------------epx_high_driver.c------------------------------
> >---- -----------------------------------------------------------------
> >
> What are you trying to do here? Do you want to use eCos's existing
> NETDEVTAB table, or are you trying to implement your own table?
>         Andrew

Before posting, please read the FAQ:
and search the list archive:

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