Nugget
Loading...
Searching...
No Matches
Functions | Variables
card.h File Reference
#include "common/psxlibc/direntry.h"
#include "common/psxlibc/stdio.h"
Include dependency graph for card.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int addMemoryCardDevice ()
 
int initBackupUnit ()
 
int cardInfo (int deviceId)
 
void buLowLevelOpCompleted ()
 
int buReadTOC (int deviceId)
 
void buLowLevelOpError1 ()
 
void buLowLevelOpError2 ()
 
void buLowLevelOpError3 ()
 
int dev_bu_open (struct File *file, const char *filename, int mode)
 
int dev_bu_close (struct File *file)
 
int dev_bu_read (struct File *file, void *buffer, int size)
 
int dev_bu_write (struct File *file, void *buffer, int size)
 
int dev_bu_erase (struct File *file, const char *path)
 
void dev_bu_undelete ()
 
struct DirEntrydev_bu_firstFile (struct File *file, const char *filename, struct DirEntry *entry)
 
struct DirEntrydev_bu_nextFile (struct File *file, struct DirEntry *entry)
 
int dev_bu_format (struct File *file)
 
int dev_bu_rename (struct File *file, const char *oldName, struct File *unused, const char *newName)
 
void dev_bu_deinit ()
 
int buRelativeToAbsoluteSector (int port, int block, int sector)
 
int buGetReallocated (int port, int sector)
 
int buSetAutoFormat (int autoFormat)
 

Variables

int g_buOpSectorStart [2]
 
int g_buOpSectorCount [2]
 
int g_buOpActualSector [2]
 
char * g_buOpBuffer [2]
 
struct Fileg_buOpFile [2]
 

Function Documentation

◆ addMemoryCardDevice()

int addMemoryCardDevice ( )

◆ buGetReallocated()

int buGetReallocated ( int  port,
int  sector 
)

◆ buLowLevelOpCompleted()

void buLowLevelOpCompleted ( )

◆ buLowLevelOpError1()

void buLowLevelOpError1 ( )

◆ buLowLevelOpError2()

void buLowLevelOpError2 ( )

◆ buLowLevelOpError3()

void buLowLevelOpError3 ( )

◆ buReadTOC()

int buReadTOC ( int  deviceId)

◆ buRelativeToAbsoluteSector()

int buRelativeToAbsoluteSector ( int  port,
int  block,
int  sector 
)

◆ buSetAutoFormat()

int buSetAutoFormat ( int  autoFormat)

◆ cardInfo()

int cardInfo ( int  deviceId)

◆ dev_bu_close()

int dev_bu_close ( struct File file)

◆ dev_bu_deinit()

void dev_bu_deinit ( )

◆ dev_bu_erase()

int dev_bu_erase ( struct File file,
const char *  path 
)

◆ dev_bu_firstFile()

struct DirEntry * dev_bu_firstFile ( struct File file,
const char *  filename,
struct DirEntry entry 
)

◆ dev_bu_format()

int dev_bu_format ( struct File file)

◆ dev_bu_nextFile()

struct DirEntry * dev_bu_nextFile ( struct File file,
struct DirEntry entry 
)

◆ dev_bu_open()

int dev_bu_open ( struct File file,
const char *  filename,
int  mode 
)

◆ dev_bu_read()

int dev_bu_read ( struct File file,
void buffer,
int  size 
)

◆ dev_bu_rename()

int dev_bu_rename ( struct File file,
const char *  oldName,
struct File unused,
const char *  newName 
)

◆ dev_bu_undelete()

void dev_bu_undelete ( )

◆ dev_bu_write()

int dev_bu_write ( struct File file,
void buffer,
int  size 
)

◆ initBackupUnit()

int initBackupUnit ( )

Variable Documentation

◆ g_buOpActualSector

int g_buOpActualSector[2]
extern

◆ g_buOpBuffer

char* g_buOpBuffer[2]
extern

◆ g_buOpFile

struct File* g_buOpFile[2]
extern

◆ g_buOpSectorCount

int g_buOpSectorCount[2]
extern

◆ g_buOpSectorStart

int g_buOpSectorStart[2]
extern