Changeset 261 for trunk/kernel


Ignore:
Timestamp:
Jul 20, 2017, 3:13:58 PM (7 years ago)
Author:
max@…
Message:

Hide soclib_dma.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_dma.c

    r238 r261  
    3232#include <soclib_dma.h>
    3333#include <dev_dma.h>
    34 #include <soclib_dma.h>
     34#include <hal_drivers.h>
    3535
    3636/////////////////////////////////////////////////////////////////////////////////////////
     
    5050    snprintf( dma->name , 16 , "dma_%d_%x" , channel , local_cxy );
    5151
    52     // set field "cmd", "isr", and call the relevant driver init function
    53     if( impl == IMPL_DMA_SCL )
    54     {
    55         dma->cmd = &soclib_dma_cmd;
    56         dma->isr = &soclib_dma_isr;
    57         soclib_dma_init( dma );
    58     }
    59     else
    60     {
    61         assert( false , __FUNCTION__ , "undefined DMA implementation" );
    62     }
     52    // call driver init function
     53    hal_drivers_dma_init( dma, impl );
    6354
    6455    // bind IRQ to the core defined by the DMA channel
Note: See TracChangeset for help on using the changeset viewer.