Ignore:
Timestamp:
Mar 10, 2015, 2:58:59 PM (9 years ago)
Author:
alain
Message:

Redefinition of the driver for the vci_mwmr_dma component.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/dma_driver.h

    r437 r518  
    1 ///////////////////////////////////////////////////////////////////////////////////
     1//////////////////////////////////////////////////////////////////////////////////
    22// File     : dma_driver.h
    33// Date     : 01/11/2013
    44// Author   : alain greiner
    55// Copyright (c) UPMC-LIP6
    6 ///////////////////////////////////////////////////////////////////////////////////
     6//////////////////////////////////////////////////////////////////////////////////
    77// The dma_driver.c and dma_driver.h files are part ot the GIET-VM nano-kernel.
    88// This driver supports the SoCLib vci_multi_dma component.
     
    2424//
    2525// The SEG_DMA_BASE virtual address mus be defined in the hard_config.h file.
    26 ////////////////////////////////////////////////////////////////////////////////////
     26//////////////////////////////////////////////////////////////////////////////////
    2727
    2828#ifndef _GIET_DMA_DRIVER_H_
    2929#define _GIET_DMA_DRIVER_H_
    3030
    31 ///////////////////////////////////////////////////////////////////////////////////
     31//////////////////////////////////////////////////////////////////////////////////
    3232// Multi DMA registers offset
    33 ///////////////////////////////////////////////////////////////////////////////////
     33//////////////////////////////////////////////////////////////////////////////////
    3434
    3535enum DMA_registers
     
    5757
    5858
    59 ///////////////////////////////////////////////////////////////////////////////
     59//////////////////////////////////////////////////////////////////////////////////
    6060//                  low-level access functions 
    61 ///////////////////////////////////////////////////////////////////////////////
     61//////////////////////////////////////////////////////////////////////////////////
    6262
    6363//////////////////////////////////////////////////////////////////////////////////
     
    9898//////////////////////////////////////////////////////////////////////////////////
    9999
    100 ///////////////////////////////////////////////////////////////////////////////////
     100//////////////////////////////////////////////////////////////////////////////////
    101101// This function copies a source memory buffer to a destination memory buffer,
    102102// using directly physical addresses.
     
    108108// In case of error (buffer unmapped, unaligned, or DMA_STATUS error), an error
    109109// message is displayed on TTY0, and system crash.
    110 ///////////////////////////////////////////////////////////////////////////////////
     110//////////////////////////////////////////////////////////////////////////////////
    111111extern void _dma_physical_copy( unsigned int       cluster_xy,
    112112                                unsigned int       channel_id,
     
    115115                                unsigned int       size );
    116116
    117 ///////////////////////////////////////////////////////////////////////////////////
     117//////////////////////////////////////////////////////////////////////////////////
    118118// This function copies a source memory buffer to a destination memory buffer,
    119119// making virtual to physical address translation: the MMU should be activated.
     
    125125// In case of error (buffer unmapped, unaligned, or DMA_STATUS error), an error
    126126// message is displayed on TTY0, and system crash.
    127 ///////////////////////////////////////////////////////////////////////////////////
     127//////////////////////////////////////////////////////////////////////////////////
    128128extern void _dma_copy(  unsigned int cluster_xy,
    129129                        unsigned int channel_id,
     
    133133                        unsigned int size );
    134134
    135 ///////////////////////////////////////////////////////////////////////////////
     135//////////////////////////////////////////////////////////////////////////////////
    136136// This ISR should not be used by the GIET_VM, because the DMA is only
    137137// used by the kernel in the boot phase, with a polling strategy.
    138 ///////////////////////////////////////////////////////////////////////////////
     138//////////////////////////////////////////////////////////////////////////////////
    139139extern void _dma_isr( unsigned int irq_type,
    140140                      unsigned int irq_id,
Note: See TracChangeset for help on using the changeset viewer.