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: allocating heap memory in redboot ethernet driver


On Tue, Feb 21, 2006 at 05:23:44PM +0500, Asim Jamshed wrote:
> Hi,
> 
> Which function do I use in allocating dynamic memory for my pointer
> variables in the ethernet source code.

Ethernet drivers don't use dynamically allocated memory. The only
exception that i know of is when you need to allocate memory from the
PCI window. For this take a look at one of the drivers which does
this, the function is normally called pciwindow_mem_alloc().

        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]