Thanks Wentau.
You will have to stay with me here. I am not too experienced with uClinux.
First off, when you suggest adding to asm/dma-mapping.h , does the asm somehow get expanded to asm-nios2nommu ? I guessed this might be the case, so I added the code to asm-nios2nommu/dma-mapping.h
Now I get a series of compilation warnings and errors, here's a snippet;
include2/asm/dma-mapping.h: In function `dma_map_single':
include2/asm/dma-mapping.h:30: warning: implicit declaration of function `cache_push'
include2/asm/dma-mapping.h:31: warning: implicit declaration of function `virt_to_bus'
include2/asm/dma-mapping.h: In function `dma_unmap_single':
include2/asm/dma-mapping.h:52: warning: implicit declaration of function `cache_clear'
include2/asm/dma-mapping.h:52: warning: implicit declaration of function `bus_to_virt'
include2/asm/dma-mapping.h: At top level:
include2/asm/dma-mapping.h:79: warning: "struct scatterlist" declared inside parameter list
include2/asm/dma-mapping.h:79: warning: its scope is only this definition or declaration,
Figuring that there must be an include file that I could reference for the undeclared functions, I did a grep on cache_clear, with no results.
How do I reference these undeclared functions, and structures?
Thanks,
Steve.