2020-07-25 16:54:37 -05:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
*/
|
|
|
|
|
2019-05-05 13:03:14 -05:00
|
|
|
#ifndef ADDRESS_SPACES_H
|
|
|
|
#define ADDRESS_SPACES_H
|
|
|
|
|
2020-07-25 16:54:37 -05:00
|
|
|
/**
|
|
|
|
* Copy data into an address space at a specified virtual address
|
2020-07-29 07:27:12 -05:00
|
|
|
* \param address_space The adress space to copy data to.
|
2020-07-25 16:54:37 -05:00
|
|
|
* \param data The data to copy
|
|
|
|
* \param size The size of the data
|
|
|
|
* \param virt_addr The address to copy the data to in the address space
|
|
|
|
*/
|
2020-07-29 07:27:12 -05:00
|
|
|
void address_spaces_copy_data(void* address_space, void* data,uint32_t size,void* virt_addr);
|
2020-07-25 16:54:37 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Put data into an address space at an unknown virtual address
|
2020-07-29 07:27:12 -05:00
|
|
|
* \param address_space The adress space to copy data to.
|
2020-07-25 16:54:37 -05:00
|
|
|
* \param data The data to copy
|
|
|
|
* \param size The size of the data
|
|
|
|
* \return The address that the data was copied to.
|
|
|
|
*/
|
2020-07-29 07:27:12 -05:00
|
|
|
void* address_spaces_put_data(void* address_space, void* data,uint32_t size);
|
2019-05-05 13:03:14 -05:00
|
|
|
#endif
|