Changeset 750 for soft/giet_vm/giet_fat32/fat32.h
- Timestamp:
- Jan 2, 2016, 4:40:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_fat32/fat32.h
r709 r750 127 127 128 128 #define FAT_INITIALIZED 0xBABEF00D 129 #define FAT_PADDR_MODE 0x00000001 // mask for physical address mode 130 #define FAT_FORCED_OFFSET 0X00000002 // mask for forced offset mode 129 131 130 132 /******************************************************************************** … … 217 219 extern int _fat_init(); 218 220 219 extern int _fat_open( char* pathname, // path from root 220 unsigned int flags ); // O_CREATE/O_RDONLY 221 222 extern int _fat_close( unsigned int fd_id ); // file descriptor 223 224 extern int _fat_file_info( unsigned int fd_id, // file descriptor 225 fat_file_info_t* info ); // file info struct 226 227 extern int _fat_read( unsigned int fd_id, // file descriptor 228 unsigned int vaddr, // destination buffer 229 unsigned int count, // number of bytes 230 unsigned int extend ); // physical addressing 231 232 extern int _fat_write( unsigned int fd_id, // file descriptor 233 unsigned int vaddr, // source buffer 234 unsigned int count, // number of bytes 235 unsigned int extend ); // physical addressing 236 237 extern int _fat_lseek( unsigned int fd_id, // file descriptor 238 unsigned int offset, // new offset value 239 unsigned int whence ); // command type 240 241 extern int _fat_remove( char* pathname, // path from root 242 unsigned int should_be_dir ); // for checking 243 244 extern int _fat_rename( char* old_path, // path from root 245 char* new_path ); // path from root 246 247 extern int _fat_mkdir( char* pathname ); // path from root 248 249 extern int _fat_opendir( char* pathname ); // path from root 250 251 extern int _fat_closedir( unsigned int fd_id ); // file descriptor 252 253 extern int _fat_readdir( unsigned int fd_id, // file descriptor 254 fat_dirent_t* entry ); // directory entry 255 256 extern int _fat_load_no_cache( char* pathname, // path from root 257 unsigned int buffer_vbase, // buffer base 258 unsigned int buffer_size ); // buffer size 221 extern int _fat_open( char* pathname, // path from root 222 unsigned int flags ); // O_CREATE/O_RDONLY 223 224 extern int _fat_close( unsigned int fd_id ); // file descriptor 225 226 extern int _fat_file_info( unsigned int fd_id, // file descriptor 227 fat_file_info_t* info ); // file info struct 228 229 extern int _fat_read( unsigned int fd_id, // file descriptor 230 unsigned int vaddr, // destination buffer 231 unsigned int count, // number of bytes 232 unsigned int extend, // paddr extension 233 unsigned int offset, // forced offset 234 unsigned int modes ); // special modes 235 236 extern int _fat_write( unsigned int fd_id, // file descriptor 237 unsigned int vaddr, // source buffer 238 unsigned int count, // number of bytes 239 unsigned int extend, // paddr extension 240 unsigned int modes ); // special modes 241 242 extern int _fat_lseek( unsigned int fd_id, // file descriptor 243 unsigned int offset, // new offset value 244 unsigned int whence ); // command type 245 246 extern int _fat_remove( char* pathname, // path from root 247 unsigned int should_be_dir ); // for checking 248 249 extern int _fat_rename( char* old_path, // path from root 250 char* new_path ); // path from root 251 252 extern int _fat_mkdir( char* pathname ); // path from root 253 254 extern int _fat_opendir( char* pathname ); // path from root 255 256 extern int _fat_closedir( unsigned int fd_id ); // file descriptor 257 258 extern int _fat_readdir( unsigned int fd_id, // file descriptor 259 fat_dirent_t* entry ); // directory entry 260 261 extern int _fat_load_no_cache( char* pathname, // path from root 262 unsigned int buffer_vbase, // buffer base 263 unsigned int buffer_size ); // buffer size 264 265 extern int _fat_buffer_from_cache( fat_inode_t* inode, // inode pointer 266 unsigned int cluster, // cluster index 267 fat_cache_desc_t** desc ); // buffer descriptor 259 268 260 269 /*******************************************************************************/
Note: See TracChangeset
for help on using the changeset viewer.