Changes between Version 37 and Version 38 of kernel_syscalls
- Timestamp:
- Apr 8, 2015, 11:10:11 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_syscalls
v37 v38 10 10 11 11 These functions are used to access coprocessors connected to the VCI network with a ''vci_mwmr_dma'' controller. 12 They make the assumption that there is only one hardware coprocessor of a given type in a given cluster, and a coprocessor 13 can be identified by the two (cluster_xy , coproc_type) variables. 12 They make the assumption that there is only one hardware coprocessor per cluster, and a coprocessor can be identified by the cluster coordinates. 14 13 15 14 The following structure (defined in the stdio.h file) is used to define a specific TO_COPROC / FROM_COPROC channel. … … 32 31 In this implementation, the the requested coprocessor must be in the same cluster as the processor running the calling task. 33 32 34 === 2) int '''_sys_coproc_release'''( unsigned int cluster_xy , unsigned int coproc_type) ===33 === 2) int '''_sys_coproc_release'''( unsigned int cluster_xy ) === 35 34 This function des-allocates a previously allocated coprocessor. 36 35 * ''' cluster_xy''' : cluster coordinates. 37 * '''coproc_type''' : requested processor type. 38 39 === 3) int '''_sys_coproc_channel_init'''( unsigned int cluster_xy , unsigned int coproc_type , unsigned int channel , giet_coproc_channel_t* desc ) === 36 37 === 3) int '''_sys_coproc_channel_init'''( unsigned int cluster_xy , unsigned int channel , giet_coproc_channel_t* desc ) === 40 38 This function initializes specific TO_COPROC or FROM_COPROC communication channel. 41 39 * '''cluster_xy''' : cluster coordinates. 42 * '''coproc_type''' : coprocessor type.43 40 * '''channel''' : channel index. 44 41 * '''desc''' : pointer on the channel descriptor. 45 42 46 === 4) int '''_sys_coproc_channel_start'''( unsigned int cluster_xy , unsigned int coproc_type , unsigned intchannel ) ===43 === 4) int '''_sys_coproc_channel_start'''( unsigned int cluster_xy , unsigned int channel ) === 47 44 This function starts a specific TO_COPROC / FROM_COPROC communication channel. 48 45 * '''cluster_xy''' : cluster coordinates. 49 * '''coproc_type''' : coprocessor type.50 46 * '''channel''' : channel index. 51 47 52 === 5) int '''_sys_coproc_channel_stop'''( unsigned int cluster_x y , unsigned int coproc_type, unsigned int channel ) ===48 === 5) int '''_sys_coproc_channel_stop'''( unsigned int cluster_xc , unsigned int channel ) === 53 49 This function stops a specific TO_COPROC / FROM_COPROC communication channel. 54 * '''cluster_xy''' : cluster coordinates. 55 * '''coproc_type''' : coprocessor type. 50 * '''cluster_xy''' : cluster coordinates. 56 51 * '''channel''' : channel index. 57 52 58 === 6) int '''_sys_coproc_completed'''( unsigned int cluster_xy , unsigned int coproc_type) ===53 === 6) int '''_sys_coproc_completed'''( unsigned int cluster_xy ) === 59 54 This blocking function returns only when the 60 55 * '''cluster_xy''' : cluster coordinates. 61 * '''coproc_type''' : coprocessor type.62 56 63 57 … … 236 230 237 231 238