Ignore:
Timestamp:
Mar 10, 2015, 3:01:43 PM (9 years ago)
Author:
alain
Message:

Introducing support for hardware coprocessors
using the vci_mwmr_dma components.

File:
1 edited

Legend:

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

    r516 r519  
    1 ///////////////////////////////////////////////////////////////////////////////////
     1///////////////////////////////////////////////////////////////////////////////
    22// File     : sys_handler.h
    33// Date     : 01/04/2012
    4 // Author   : alain greiner and joel porquet
     4// Author   : alain greiner
    55// Copyright (c) UPMC-LIP6
    6 ///////////////////////////////////////////////////////////////////////////////////
    7 // The sys_handler.c and sys_handler.h files are part of the GIET-VM nano-kernel.
     6///////////////////////////////////////////////////////////////////////////////
     7// The sys_handler.c and sys_handler.h files are part of the GIET-VM kernel.
    88// It define the syscall_vector[] (at the end of this file), as well as the
    99// associated syscall handlers.
    10 ///////////////////////////////////////////////////////////////////////////////////
     10///////////////////////////////////////////////////////////////////////////////
    1111
    1212#ifndef _SYS_HANDLER_H
     
    1515#include "giet_config.h"
    1616#include "kernel_locks.h"
     17#include "stdio.h"
    1718
    1819///////////////////////////////////////////////////////////////////////////////
     
    7475} nic_chbuf_t;
    7576
     77
     78
     79
     80///////////////////////////////////////////////////////////////////////////////
     81//    Coprocessors related syscall handlers
     82///////////////////////////////////////////////////////////////////////////////
     83
     84int _sys_coproc_alloc( unsigned int   coproc_type,
     85                       unsigned int*  coproc_info,
     86                       unsigned int*  cluster_xy );
     87
     88int _sys_coproc_release( unsigned int cluster_xy );
     89
     90int _sys_coproc_channel_init( unsigned int            cluster_xy,
     91                              unsigned int            channel,
     92                              giet_coproc_channel_t*  desc );
     93
     94int _sys_coproc_channel_start( unsigned int  cluster_xy,
     95                               unsigned int  channel );
     96
     97int _sys_coproc_channel_stop( unsigned int  cluster_xy,
     98                              unsigned int  channel );
     99
     100int _sys_coproc_completed( unsigned int cluster_xy );
     101
    76102///////////////////////////////////////////////////////////////////////////////
    77103//    TTY related syscall handlers
     
    93119int _sys_tty_release_lock( unsigned int   channel,
    94120                           unsigned int * save_sr_ptr );
     121
     122int _sys_coproc_register_set( unsigned int cluster_xy,
     123                              unsigned int reg_index,
     124                              unsigned int value );
     125
     126int _sys_coproc_register_get( unsigned int  cluster_xy,
     127                              unsigned int  reg_index,
     128                              unsigned int* buffer );
    95129
    96130//////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.