sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
fat.h File Reference

Go to the source code of this file.

Classes

struct  _fat_raw_bpb
struct  _fat32_raw_bpb
struct  _fat_direntry_sfn
struct  _fat_direntry_lfn
union  _fat_direntry
struct  _fat_direntry_summary

Macros

#define FAT12   0x0C
#define FAT16   0x10
#define FAT32   0x20
#define FAT_MAX_PATH   260

Typedefs

typedef struct _fat_raw_bpb fat_raw_bpb
typedef struct _fat32_raw_bpb fat32_raw_bpb
typedef struct _fat_direntry_sfn fat_direntry_sfn
typedef struct _fat_direntry_lfn fat_direntry_lfn
typedef union _fat_direntry fat_direntry
typedef struct _fat_direntry_summary fat_direntry_summary

Functions

unsigned int fat_getClusterRecord12 (const unsigned char *buf, int type)
int fat_getDirentry (unsigned char fatType, fat_direntry *dir_entry, fat_direntry_summary *dir)
int fat_getDirentrySectorData (fat_driver *fatd, unsigned int *startCluster, unsigned int *startSector, unsigned int *dirSector)
void fat_invalidateLastChainResult (fat_driver *fatd)
void fat_getClusterAtFilePos (fat_driver *fatd, fat_dir *fatDir, unsigned int filePos, unsigned int *cluster, unsigned int *clusterPos)

Macro Definition Documentation

◆ FAT12

#define FAT12   0x0C

Definition at line 23 of file fat.h.

◆ FAT16

#define FAT16   0x10

Definition at line 24 of file fat.h.

◆ FAT32

#define FAT32   0x20

Definition at line 25 of file fat.h.

◆ FAT_MAX_PATH

#define FAT_MAX_PATH   260

Definition at line 27 of file fat.h.

Function Documentation

◆ fat_getClusterAtFilePos()

void fat_getClusterAtFilePos ( fat_driver * fatd,
fat_dir * fatDir,
unsigned int filePos,
unsigned int * cluster,
unsigned int * clusterPos )
extern

Definition at line 877 of file fat_driver.c.

◆ fat_getClusterRecord12()

unsigned int fat_getClusterRecord12 ( const unsigned char * buf,
int type )
extern

Definition at line 102 of file fat_driver.c.

◆ fat_getDirentry()

int fat_getDirentry ( unsigned char fatType,
fat_direntry * dir_entry,
fat_direntry_summary * dir )
extern

Definition at line 458 of file fat_driver.c.

◆ fat_getDirentrySectorData()

int fat_getDirentrySectorData ( fat_driver * fatd,
unsigned int * startCluster,
unsigned int * startSector,
unsigned int * dirSector )
extern

Definition at line 697 of file fat_driver.c.

◆ fat_invalidateLastChainResult()

void fat_invalidateLastChainResult ( fat_driver * fatd)
extern

Definition at line 330 of file fat_driver.c.