nandfs.h

Go to the documentation of this file.
00001 /*
00002         BootMii - a Free Software replacement for the Nintendo/BroadOn bootloader.
00003         Requires mini.
00004 
00005 Copyright (C) 2008, 2009        Sven Peter <svenpeter@gmail.com>
00006 
00007 # This code is licensed to you under the terms of the GNU GPL, version 2;
00008 # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
00009 */
00010 
00015 #ifndef __NANDFS_H__
00016 #define __NANDFS_H__
00017 
00018 #define NANDFS_NAME_LEN 12
00019 
00020 #define NANDFS_SEEK_SET 0
00021 #define NANDFS_SEEK_CUR 1
00022 #define NANDFS_SEEK_END 2
00023 
00024 struct nandfs_fp {
00025         s16 first_cluster;
00026         s32 cur_cluster;
00027         u32 size;               
00028         u32 offset;             
00029 };
00030 
00035 s32 nandfs_initialize(void);
00040 u32 nandfs_get_usage(void);
00041 
00048 s32 nandfs_open(struct nandfs_fp *fp, const char *path);
00057 s32 nandfs_read(void *ptr, u32 size, u32 nmemb, struct nandfs_fp *fp);
00065 s32 nandfs_seek(struct nandfs_fp *fp, s32 offset, u32 whence);
00066 
00067 #endif
00068 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated by  doxygen 1.6.3