This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Generic DMA memory mapping
- From: David Brennan <eCos at brennanhome dot com>
- To: eCos Discussion List <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 15 Nov 2004 19:25:43 -0800
- Subject: [ECOS] Generic DMA memory mapping
I was wondering if there was any reason to not generalize the DMA memory
mapping function from the (at least) Intel Ethernet drivers so that the
memory could be used cooperatively among multiple devices.
I am currently porting a Tundra Universe driver to eCos. Although our
application does not need any of the DMA features, I wanted to include
them in the port for completeness. Since I cannot re-use the memory
allocated for the Ethernet devices, and I assume that the way the memory
is declared/mapped is important, I figured that I would end-up copying
that code, and need to allocate another CYGMEM_SECTION_pci_window, which
gets into some sticky naming things.
The other reason I was asking is there is a possibility of going to a
board which has two different Ethernet chips (82544 and 82559). I am
pretty certain that with the current system, I could not instantiate
each of those.
Both of these issues are low priority to me at the current time, so I'm
not going to be jumping on them anytime soon. But I wanted to know what
the feeling was for such a thing.
David Brennan
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss