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]

Re: NETDEVTAB_ENTRY()????


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" <vasantha.rajan@cranessoftware.com>
> To: ecos-discuss@ecos.sourceware.org
> 
> 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----------------------------------
> -----------------------------------------------------------------
> 
> CYG_HAL_TABLE_BEGIN( __NETDEVTAB__, CYGDAT_DEVS_ETH_ALTERA_EPXA10_NAME );
> CYG_HAL_TABLE_END( __NETDEVTAB_END__, CYGDAT_DEVS_ETH_ALTERA_EPXA10_NAME);


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: 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]