Changeset 572 for trunk/boot/tsar_mips32/boot_fat32.c
- Timestamp:
- Oct 5, 2018, 12:20:34 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/boot/tsar_mips32/boot_fat32.c
r547 r572 6 6 #include <boot_tty_driver.h> 7 7 #include <boot_bdv_driver.h> 8 #include <boot_spi_driver.h>9 8 #include <boot_hba_driver.h> 10 9 #include <boot_mmc_driver.h> 11 10 12 11 /* 12 #include <boot_spi_driver.h> 13 13 #include <boot_sdc_driver.h> 14 14 #include <boot_rdk_driver.h> … … 37 37 38 38 /**************************************************************************** 39 * Internal functions. * 40 ****************************************************************************/ 41 42 /**************************************************************************** 43 * This function returns the offset (in bytes) of the field defined by * 44 * 'offset' and 'size'. * 45 * @ offset : offset of the field from the beginning of the sector (in * 46 * bytes). * 47 * @ size : length of the field (in bytes). * 48 * * 49 * @ returns the field offset. * 50 ****************************************************************************/ 51 static inline 52 int get_offset( 53 int offset, 54 int size __attribute__ ((unused))) 55 { 56 return offset; 57 } // get_offset() 58 59 /**************************************************************************** 60 * This function returns the length (in bytes) of the field defined by * 61 * 'offset' and 'size'. * 62 * @ offset : offset of the field from the beginning of the sector (in * 63 * bytes). * 64 * @ size : length of the field (in bytes). * 65 * * 66 * @ returns the field length. * 67 ****************************************************************************/ 68 static inline 69 int get_size( 70 int offset __attribute__ ((unused)), 71 int size) 72 { 73 return size; 74 } // get_size() 39 * Internal functions & macros. * 40 ****************************************************************************/ 41 42 /**************************************************************************** 43 * These functions return the first or second argument from a couple * 44 * of arguments ( offset , size ) used to define a data field * 45 * in a buffer of bytes: offset is the first byte index in buffer, * 46 * size is the field length in bytes. * 47 ****************************************************************************/ 48 49 static inline int get_offset( int offset, int size __attribute__((unused)) ) { return offset; } 50 51 static inline int get_size( int offset __attribute__((unused)) , int size ) { return size; } 75 52 76 53 /****************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.