Changeset 437 for soft/giet_vm/giet_drivers/sdc_driver.h
- Timestamp:
- Nov 3, 2014, 10:53:00 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/sdc_driver.h
r295 r437 5 5 // Copyright (c) UPMC-LIP6 6 6 /////////////////////////////////////////////////////////////////////////////////// 7 7 8 #ifndef _GIET_SDC_DRIVER_H_ 8 9 #define _GIET_SDC_DRIVER_H_ … … 36 37 }; 37 38 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 /////////////////////////////////////////////////////////////////////////////// 38 45 unsigned int _sdc_init(); 39 46 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 /////////////////////////////////////////////////////////////////////////////// 40 55 unsigned int _sdc_read( unsigned int mode, 41 56 unsigned int lba, … … 44 59 45 60 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 /////////////////////////////////////////////////////////////////////////////// 46 70 unsigned int _sdc_write( unsigned int mode, 47 71 unsigned int lba, … … 49 73 unsigned int count); 50 74 75 /////////////////////////////////////////////////////////////////////////////// 76 // This function should not be called for the SDC card. 77 /////////////////////////////////////////////////////////////////////////////// 51 78 unsigned int _sdc_get_status(); 52 79 80 /////////////////////////////////////////////////////////////////////////////// 81 // Returns the block size in bytes of the SD card. 82 /////////////////////////////////////////////////////////////////////////////// 53 83 unsigned int _sdc_get_block_size(); 54 84
Note: See TracChangeset
for help on using the changeset viewer.