Ignore:
Timestamp:
Dec 3, 2015, 4:33:02 PM (9 years ago)
Author:
alain
Message:

Modify the system functions associated to hardware coprocessors:
Introduce two explicit arguments "cluster_xy" and "cluster_type"
to allows any task to control a coprocessor located in any cluster.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/sys_handler.h

    r725 r733  
    148148///////////////////////////////////////////////////////////////////////////////
    149149
    150 extern int _sys_coproc_alloc( unsigned int   coproc_type,
    151                               unsigned int*  coproc_info );
    152 
    153 extern int _sys_coproc_release( unsigned int coproc_reg_index );
    154 
    155 extern int _sys_coproc_channel_init( unsigned int            channel,
     150extern int _sys_coproc_alloc( unsigned int   cluster_xy,
     151                              unsigned int   coproc_type,
     152                              unsigned int*  return_info );
     153
     154extern int _sys_coproc_release( unsigned int cluster_xy,
     155                                unsigned int coproc_type );
     156
     157extern int _sys_coproc_channel_init( unsigned int            cluster_xy,
     158                                     unsigned int            coproc_type,
     159                                     unsigned int            channel,
    156160                                     giet_coproc_channel_t*  desc );
    157161
    158 extern int _sys_coproc_run( unsigned int coproc_reg_index );
    159 
    160 extern int _sys_coproc_completed();
     162extern int _sys_coproc_run( unsigned int cluster_xy,
     163                            unsigned int coproc_type );
     164
     165extern int _sys_coproc_completed( unsigned int cluster_xy,
     166                                  unsigned int coproc_type );
    161167
    162168///////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.