Ignore:
Timestamp:
Sep 21, 2018, 10:24:15 PM (6 years ago)
Author:
nicolas.van.phan@…
Message:

Add SD card driver in kernel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/drivers/soclib_sdc.h

    r543 r550  
    1010
    1111
     12#include <chdev.h>
    1213#include <soclib_spi.h>
    1314#include <hard_config.h>
     
    4344// Returns 0 if success, other value if failure
    4445///////////////////////////////////////////////////////////////////////////////
    45 unsigned int _sdc_init();
     46// unsigned int _sdc_init();
     47extern void soclib_sdc_init( chdev_t* chdev );
    4648
    4749///////////////////////////////////////////////////////////////////////////////
     
    5456// Returns 0 if success, > 0 if error.
    5557///////////////////////////////////////////////////////////////////////////////
    56 unsigned int _sdc_access( unsigned int       use_irq, 
    57                           unsigned int       to_mem,
    58                           unsigned int       lba,
    59                           unsigned long long buf_vaddr,
    60                           unsigned int       count);
     58extern void soclib_sdc_cmd( xptr_t thread_xp );
    6159
    6260///////////////////////////////////////////////////////////////////////////////
    6361// This ISR handles the IRQ generated by a SDC controler
    6462///////////////////////////////////////////////////////////////////////////////
    65 void _sdc_isr( unsigned int irq_type,
    66                unsigned int irq_id,
    67                unsigned int channel );
     63extern void soclib_sdc_isr( chdev_t* chdev );
    6864
    6965///////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.