-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "staging: tidspbridge - remove dmm custom module"
This reverts commit 2ab5734. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
- Loading branch information
Felipe Contreras
authored and
Omar Ramirez Luna
committed
Nov 11, 2010
1 parent
3fc59af
commit 677f2de
Showing
9 changed files
with
747 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* | ||
* dmm.h | ||
* | ||
* DSP-BIOS Bridge driver support functions for TI OMAP processors. | ||
* | ||
* The Dynamic Memory Mapping(DMM) module manages the DSP Virtual address | ||
* space that can be directly mapped to any MPU buffer or memory region. | ||
* | ||
* Copyright (C) 2005-2006 Texas Instruments, Inc. | ||
* | ||
* This package is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
*/ | ||
|
||
#ifndef DMM_ | ||
#define DMM_ | ||
|
||
#include <dspbridge/dbdefs.h> | ||
|
||
struct dmm_object; | ||
|
||
/* DMM attributes used in dmm_create() */ | ||
struct dmm_mgrattrs { | ||
u32 reserved; | ||
}; | ||
|
||
#define DMMPOOLSIZE 0x4000000 | ||
|
||
/* | ||
* ======== dmm_get_handle ======== | ||
* Purpose: | ||
* Return the dynamic memory manager object for this device. | ||
* This is typically called from the client process. | ||
*/ | ||
|
||
extern int dmm_get_handle(void *hprocessor, | ||
struct dmm_object **dmm_manager); | ||
|
||
extern int dmm_reserve_memory(struct dmm_object *dmm_mgr, | ||
u32 size, u32 *prsv_addr); | ||
|
||
extern int dmm_un_reserve_memory(struct dmm_object *dmm_mgr, | ||
u32 rsv_addr); | ||
|
||
extern int dmm_map_memory(struct dmm_object *dmm_mgr, u32 addr, | ||
u32 size); | ||
|
||
extern int dmm_un_map_memory(struct dmm_object *dmm_mgr, | ||
u32 addr, u32 *psize); | ||
|
||
extern int dmm_destroy(struct dmm_object *dmm_mgr); | ||
|
||
extern int dmm_delete_tables(struct dmm_object *dmm_mgr); | ||
|
||
extern int dmm_create(struct dmm_object **dmm_manager, | ||
struct dev_object *hdev_obj, | ||
const struct dmm_mgrattrs *mgr_attrts); | ||
|
||
extern bool dmm_init(void); | ||
|
||
extern void dmm_exit(void); | ||
|
||
extern int dmm_create_tables(struct dmm_object *dmm_mgr, | ||
u32 addr, u32 size); | ||
|
||
#ifdef DSP_DMM_DEBUG | ||
u32 dmm_mem_map_dump(struct dmm_object *dmm_mgr); | ||
#endif | ||
|
||
#endif /* DMM_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.