Changeset 626 for trunk/hal/generic
- Timestamp:
- Apr 29, 2019, 7:25:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_uspace.h
r570 r626 2 2 * hal_uspace.h - Generic User Space Access API definition 3 3 * 4 * Authors Alain Greiner (2016,2017 )4 * Authors Alain Greiner (2016,2017,2018,2019) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 38 38 39 39 /***************************************************************************************** 40 * This function tranfers a data buffer from the user space to the kernel space.41 * If the kernel uses physical addresses, it activates the MMU to access the user buffer.40 * This function tranfers a data buffer in user space to a kernel buffer 41 * that can be located in any cluster. 42 42 ***************************************************************************************** 43 * @ k_dst : destination address in kernel space. 43 * @ k_cxy : cluster identifier for kernel destination buffer. 44 * @ k_dst : local pointer on kernel destination buffer. 44 45 * @ u_src : source buffer address in user space. 45 46 * @ size : size (number of bytes). 46 47 ****************************************************************************************/ 47 extern void hal_copy_from_uspace( void * k_dst, 48 extern void hal_copy_from_uspace( cxy_t k_cxy, 49 void * k_dst, 48 50 void * u_src, 49 51 uint32_t size ); 50 52 51 53 /***************************************************************************************** 52 * This function tranfers a data buffer from the kernel space to the user space.53 * If the kernel uses physical addresses, it activates the MMU to access the user buffer.54 * This function tranfers a kernel buffer that can be located in any cluster 55 * to a data buffer in the user space. 54 56 ***************************************************************************************** 57 * @ k_cxy : cluster identifier for kernel source buffer. 58 * @ k_src : local pointer on kernel source buffer. 55 59 * @ u_dst : destination buffer address in user space. 56 * @ k_src : source address in kernel space.57 60 * @ size : size (number of bytes). 58 61 ****************************************************************************************/ 59 extern void hal_copy_to_uspace( void * u_dst,62 extern void hal_copy_to_uspace( cxy_t k_cxy, 60 63 void * k_src, 64 void * u_dst, 61 65 uint32_t size ); 62 66
Note: See TracChangeset
for help on using the changeset viewer.