Nugget
Loading...
Searching...
No Matches
Functions | Variables
device.c File Reference
#include "common/psxlibc/device.h"
#include <string.h>
#include "common/hardware/pcsxhw.h"
#include "common/syscalls/syscalls.h"
#include "openbios/card/backupunit.h"
#include "openbios/card/card.h"
#include "openbios/kernel/libcmisc.h"
#include "openbios/sio0/card.h"
#include "osdebug.h"
Include dependency graph for device.c:

Functions

int dev_bu_open (struct File *file, const char *path, int mode)
 
int dev_bu_close (struct File *file)
 
int buRelativeToAbsoluteSector (int port, int block, int sector)
 
int buGetReallocated (int port, int sector)
 
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 addMemoryCardDevice ()
 

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 
)

◆ buRelativeToAbsoluteSector()

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

◆ 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 *  path,
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 
)

Variable Documentation

◆ g_buOpActualSector

int g_buOpActualSector[2]

◆ g_buOpBuffer

char* g_buOpBuffer[2]

◆ g_buOpFile

struct File* g_buOpFile[2]

◆ g_buOpSectorCount

int g_buOpSectorCount[2]

◆ g_buOpSectorStart

int g_buOpSectorStart[2]