added files to manage uncached driver memory

This commit is contained in:
Markus Fröschle
2013-12-22 16:14:53 +00:00
parent f6984e68b1
commit 33a1b4c199
2 changed files with 366 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#ifndef _DRIVER_MEM_H_
#define _DRIVER_MEM_H_
/*
* the driver_mem module provides a block of _uncached_ memory for USB and other drivers as
* well as some memory handling functions for it
*/
extern int driver_mem_init(void);
extern void *driver_mem_alloc(long amount);
extern int driver_mem_free(void *addr);
#endif /* _DRIVER_MEM_H_ */