added files to manage uncached driver memory

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

12
include/driver_mem.h Normal file
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_ */