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/sdc_driver.h

    r295 r437  
    55// Copyright (c) UPMC-LIP6
    66///////////////////////////////////////////////////////////////////////////////////
     7
    78#ifndef _GIET_SDC_DRIVER_H_
    89#define _GIET_SDC_DRIVER_H_
     
    3637};
    3738
     39///////////////////////////////////////////////////////////////////////////////
     40// This function initializes the SPI controller and call sdc_open to
     41// initialize  the SD card
     42// - channel: channel to initialize (only channel 0 supported)
     43// Returns 0 if success, other value if failure
     44///////////////////////////////////////////////////////////////////////////////
    3845unsigned int _sdc_init();
    3946
     47///////////////////////////////////////////////////////////////////////////////
     48// Transfer data from the block device to a memory buffer.
     49// - mode     : BOOT / KERNEL / USER
     50// - lba      : first block index on the block device
     51// - buffer   : base address of the memory buffer (must be word aligned)
     52// - count    : number of blocks to be transfered.
     53// Returns 0 if success, > 0 if error.
     54///////////////////////////////////////////////////////////////////////////////
    4055unsigned int _sdc_read( unsigned int mode,
    4156                        unsigned int lba,
     
    4459
    4560
     61///////////////////////////////////////////////////////////////////////////////
     62// Transfer data from memory buffer to SD card device.
     63// - mode     : BOOT / KERNEL / USER
     64// - lba      : destination first block index on the SD card
     65// - buffer   : base address of the memory buffer (must be word aligned)
     66// - count    : number of blocks to be transfered.
     67// Returns 0 if success, > 0 if error.
     68// WARNING: The _sdc_write() is not implemented yet.
     69///////////////////////////////////////////////////////////////////////////////
    4670unsigned int _sdc_write( unsigned int mode,
    4771                         unsigned int lba,
     
    4973                         unsigned int count);
    5074
     75///////////////////////////////////////////////////////////////////////////////
     76// This function should not be called for the SDC card.
     77///////////////////////////////////////////////////////////////////////////////
    5178unsigned int _sdc_get_status();
    5279
     80///////////////////////////////////////////////////////////////////////////////
     81// Returns the block size in bytes of the SD card.
     82///////////////////////////////////////////////////////////////////////////////
    5383unsigned int _sdc_get_block_size();
    5484
Note: See TracChangeset for help on using the changeset viewer.