Ignore:
Timestamp:
Jul 17, 2012, 2:39:10 PM (12 years ago)
Author:
alain
Message:

Introducing support for FBDMA (Frame Buffer using DMA)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/sys/irq_handler.c

    r167 r169  
    8686    volatile unsigned int* dma_address;
    8787
     88    // compute DMA channel address
    8889    dma_address = (unsigned int*)&seg_dma_base + (dma_id * DMA_SPAN);
    8990
     91    // save DMA channel status 
     92    _dma_status[dma_id] = dma_address[DMA_LEN]; /* save status */
     93
     94    // reset DMA channel
    9095    dma_address[DMA_RESET] = 0;                                 /* reset IRQ */
    9196
    92     _dma_status[dma_id] = dma_address[DMA_LEN]; /* save status */
     97    // release DMA channel
    9398    _dma_busy[dma_id] = 0;                      /* release DMA */
    9499}
Note: See TracChangeset for help on using the changeset viewer.