Ignore:
Timestamp:
Nov 3, 2014, 10:53:00 AM (10 years ago)
Author:
alain
Message:

Introducing dynamic allocation of peripheral channel(TTY, NIC, TIM, CMA)
Removint the ICU driver : ICU component not supported anymore.
Removing the FBF driver.

File:
1 edited

Legend:

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

    r295 r437  
    55// Copyright (c) UPMC-LIP6
    66///////////////////////////////////////////////////////////////////////////////////
     7// The cma_driver.c and cma_driver.h files are part ot the GIET-VM kernel.
     8// This driver supports the SocLib vci_chbuf_dma component, that is
     9// a multi channels, chained buffer DMA controller.
     10//
     11// This component can be used in conjonction with the SocLib vci_frame_buffer
     12// to display images, or with the SocLib vci_multi_nic controller to tranfer
     13// RX or TX packets between NIC and memory buffers.
     14//
     15// The SEG_CMA_BASE address must be defined in the hard_config.h file
     16//
     17// All accesses to CMA registers are done by the two _cma_set_register()
     18// and _cma_get_register() low-level functions, that are handling virtual
     19// to physical extended addressing.
     20//
     21// The higher level access functions are defined in the fbf_driver
     22// and nic_driver files.
     23///////////////////////////////////////////////////////////////////////////////////
    724
    825#ifndef _GIET_CMA_DRIVERS_H_
     
    1027
    1128///////////////////////////////////////////////////////////////////////////////////
    12 // CMA (vci_chbuf_dma) registers offsets
     29// registers offsets
    1330///////////////////////////////////////////////////////////////////////////////////
    1431
     
    3047
    3148///////////////////////////////////////////////////////////////////////////////////
    32 // CMA (vci_chbuf_dma) low-level access functions
     49//   access functions
    3350///////////////////////////////////////////////////////////////////////////////////
    3451
     52////////////////////////////////////////////////////////////
    3553extern unsigned int _cma_get_register( unsigned int channel,
    3654                                       unsigned int index );
    3755
     56///////////////////////////////////////////////////
    3857extern void _cma_set_register( unsigned int channel,
    3958                               unsigned int index,
    4059                               unsigned int value );
    4160
     61///////////////////////////////////////////////////
     62void _cma_start_channel( unsigned int       channel,
     63                         unsigned long long src_paddr,
     64                         unsigned int       src_nbufs,
     65                         unsigned long long dst_paddr,
     66                         unsigned int       dst_nbufs,
     67                         unsigned int       buf_length );
     68
     69//////////////////////////////////////////////
     70void _cma_stop_channel( unsigned int channel );
     71
     72////////////////////////////////////////////
    4273extern void _cma_isr( unsigned int irq_type,
    4374                      unsigned int irq_id,
    4475                      unsigned int channel );
    45 
    46 ///////////////////////////////////////////////////////////////////////////////////
    4776
    4877#endif
Note: See TracChangeset for help on using the changeset viewer.