Changes between Version 10 and Version 11 of mwr_driver


Ignore:
Timestamp:
Mar 8, 2015, 4:28:10 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mwr_driver

    v10 v11  
    3737These functions access the communication channels registers contained in the vci_mwmr_dma controller.
    3838
    39  === void '''_mwr_channel_init'''( unsigned int cluster_xy, unsigned int channel, unsigned int mode, unsigned long long buffer_paddr, unsigned int buffer_size, unsigned long long desc_paddr, unsigned long long lock_paddr ) ===
    40 This function initialises all registers defining one communication channel for a given coprocessor.
    41  * '''cluster_xy''' is the cluster index
    42  * '''channel''' is the channel index
    43  * '''mode''' is the requested mode (MWMR / DMA_IRQ / DMA_NO_IRQ)
    44  * '''buffer_paddr''' is the memory buffer physical address
    45  * '''buffer_size''' is the memory buffer size (bytes)
    46  * '''desc_paddr''' is the MWMR descriptor physical address (only used in MWMR mode)
    47  * '''lock_paddr''' is the MWMR lock physical address (only used in MWMR mode)
     39 === void '''_mwr_set_channel_register'''( unsigned int cluster_xy ,  unsigned int channel ,  unsigned int index ,  unsigned int value ) ===
     40This function set a a new value in a coprocessor register.
     41 * '''cluster_xy''' : cluster coordinates.
     42 * '''channel''': channel index.
     43 * '''index''' : register index.
     44 * '''value''' : value to be written.
    4845
    49  === void '''_mwr_channel_start'''( unsigned int cluster_xy,  unsigned int channel ) ===
    50 This function activates one communication channel for a given coprocessor (set a non zero value in the RUNNING channel register).
    51  * '''cluster_xy''' is the cluster index
    52  * '''channel''' is the channel index
     46 === unsigned int '''_mwr_get channel_register'''( unsigned int cluster_xy , unsigned int channel,  unsigned int index) ===
     47 * '''cluster_xy''' : cluster coordinates.
     48 * '''channel''': channel index.
     49 * '''index''' : register index.
    5350
    54  === void '''_mwr_channel_stop'''( unsigned int cluster_xy,  unsigned int channel ) ===
    55 This function desactivates one communication channel for a given coprocessor (set a zero value in the RUNNING channel register).
    56  * '''cluster_xy''' is the cluster index
    57  * '''channel''' is the channel index
     51 == __Interrupt Service Routine__ ==
    5852
    5953 === void '''_mwr_isr( unsigned int irq_type,  unsigned int irq_id,  unsigned int channel )