Skip to content

Commit

Permalink
atomisp: trim unused mmgr code
Browse files Browse the repository at this point in the history
This cuts it back to what is basically a few wrapper functions. At some point
we can kill most of these too by changing the callers.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Mar 8, 2017
1 parent f6a681e commit 5cacee5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 333 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,35 +99,6 @@ extern const hrt_vaddress mmgr_EXCEPTION;
extern void mmgr_set_base_address(
const sys_address base_addr);

/*! Get the (sub)system virtual memory page table base address
\return base_address,
*/
/* unused */
extern sys_address mmgr_get_base_address(void);


/*! Set the (sub)system virtual memory page table base index
\param base_addr[in] The index where page table 0 is located
\Note: The base_index is the MSB section of an absolute system address,
the in-page address bits are discared. The base address is not
relative to the DDR base address
\return none,
*/
/* unused */
extern void mmgr_set_base_index(
const hrt_data base_index);

/*! Get the (sub)system virtual memory page table base index
\return base_address,
*/
/* unused */
extern hrt_data mmgr_get_base_index(void);

/*! Return the address of an allocation in memory
\param size[in] Size in bytes of the allocation
Expand Down Expand Up @@ -158,22 +129,6 @@ extern hrt_vaddress mmgr_calloc_ex(
const char *caller_func,
int caller_line);

/*! Return the address of a reallocated allocation in memory
\param vaddr[in] Address of an allocation
\param size[in] Size in bytes of the allocation
\Note
All limitations and particularities of the C stdlib
realloc function apply
\return vaddress
*/
/* unused */
extern hrt_vaddress mmgr_realloc(
hrt_vaddress vaddr,
const size_t size);

/*! Free the memory allocation identified by the address
\param vaddr[in] Address of the allocation
Expand Down Expand Up @@ -205,26 +160,6 @@ extern hrt_vaddress mmgr_alloc_attr_ex(
const char *caller_func,
int caller_line);

/*! Return the address of a reallocated allocation in memory
\param vaddr[in] Address of an allocation
\param size[in] Size in bytes of the allocation
\param attribute[in] Bit vector specifying the properties
of the allocation
#endif
\Note
All limitations and particularities of the C stdlib
realloc function apply
\return vaddress
*/
/* unused */
extern hrt_vaddress mmgr_realloc_attr(
hrt_vaddress vaddr,
const size_t size,
const uint16_t attribute);

/*! Return the address of a mapped existing allocation in memory
\param ptr[in] Pointer to an allocation in a different
Expand Down Expand Up @@ -264,20 +199,6 @@ extern void mmgr_clear_ex(
const char *caller_func,
int caller_line);

/*! Set an allocation in memory to a value
\param vaddr[in] Address of an allocation
\param data[in] Value to set
\param size[in] Size in bytes of the area to be set
\return none
*/
/* unused */
extern void mmgr_set(
hrt_vaddress vaddr,
const uint8_t data,
const size_t size);

/*! Read an array of bytes from a virtual memory address
\param vaddr[in] Address of an allocation
Expand Down
Loading

0 comments on commit 5cacee5

Please sign in to comment.