PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
romdrv.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RomDirEntry
 
struct  RomImg
 
struct  ExtInfoFieldEntry
 

Macros

#define ROMDRV_MAX_IMAGES   4
 
#define ROMDRV_MAX_FILES   8
 
#define ROMDRV_ADD_FAILED   -160
 
#define ROMDRV_DEL_FAILED   -161
 
#define ROMDRV_ADD_BAD_IMAGE   -162
 
#define romdrv_IMPORTS_start   DECLARE_IMPORT_TABLE(romdrv, 2, 1)
 
#define romdrv_IMPORTS_end   END_IMPORT_TABLE
 
#define I_romAddDevice   DECLARE_IMPORT(4, romAddDevice)
 
#define I_romDelDevice   DECLARE_IMPORT(5, romDelDevice)
 
#define romdrvX_IMPORTS_start   DECLARE_IMPORT_TABLE(romdrvX, 1, 1)
 
#define romdrvX_IMPORTS_end   END_IMPORT_TABLE
 
#define I_romGetDevice   DECLARE_IMPORT(6, romGetDevice)
 
#define romdrv_mount   romAddDevice
 
#define I_romdrv_mount   I_romAddDevice
 
#define romdrv_unmount   romDelDevice
 
#define I_romdrv_unmount   I_romDelDevice
 

Enumerations

enum  ExtInfoFieldTypes { EXTINFO_FIELD_TYPE_DATE = 1 , EXTINFO_FIELD_TYPE_VERSION , EXTINFO_FIELD_TYPE_COMMENT , EXTINFO_FIELD_TYPE_FIXED = 0x7F }
 

Functions

int romAddDevice (int unit, const void *image)
 
int romDelDevice (int unit)
 
const struct RomImgromGetDevice (int unit)
 

Detailed Description

ROM file system driver routines. Not available on the protokernel version of ROMDRV.

Definition in file romdrv.h.


Data Structure Documentation

◆ RomImg

struct RomImg

Definition at line 46 of file romdrv.h.

Data Fields
const void * ImageStart
const void * RomdirStart
const void * RomdirEnd

Macro Definition Documentation

◆ ROMDRV_MAX_IMAGES

#define ROMDRV_MAX_IMAGES   4

Definition at line 68 of file romdrv.h.

◆ ROMDRV_MAX_FILES

#define ROMDRV_MAX_FILES   8

Definition at line 69 of file romdrv.h.

◆ ROMDRV_ADD_FAILED

#define ROMDRV_ADD_FAILED   -160

Definition at line 72 of file romdrv.h.

◆ ROMDRV_DEL_FAILED

#define ROMDRV_DEL_FAILED   -161

Definition at line 73 of file romdrv.h.

◆ ROMDRV_ADD_BAD_IMAGE

#define ROMDRV_ADD_BAD_IMAGE   -162

Definition at line 74 of file romdrv.h.

◆ romdrv_IMPORTS_start

#define romdrv_IMPORTS_start   DECLARE_IMPORT_TABLE(romdrv, 2, 1)

Definition at line 76 of file romdrv.h.

◆ romdrv_IMPORTS_end

#define romdrv_IMPORTS_end   END_IMPORT_TABLE

Definition at line 77 of file romdrv.h.

◆ I_romAddDevice

#define I_romAddDevice   DECLARE_IMPORT(4, romAddDevice)

Definition at line 80 of file romdrv.h.

◆ I_romDelDevice

#define I_romDelDevice   DECLARE_IMPORT(5, romDelDevice)

Definition at line 82 of file romdrv.h.

◆ romdrvX_IMPORTS_start

#define romdrvX_IMPORTS_start   DECLARE_IMPORT_TABLE(romdrvX, 1, 1)

Definition at line 85 of file romdrv.h.

◆ romdrvX_IMPORTS_end

#define romdrvX_IMPORTS_end   END_IMPORT_TABLE

Definition at line 86 of file romdrv.h.

◆ I_romGetDevice

#define I_romGetDevice   DECLARE_IMPORT(6, romGetDevice)

Definition at line 89 of file romdrv.h.

◆ romdrv_mount

#define romdrv_mount   romAddDevice

Definition at line 92 of file romdrv.h.

◆ I_romdrv_mount

#define I_romdrv_mount   I_romAddDevice

Definition at line 93 of file romdrv.h.

◆ romdrv_unmount

#define romdrv_unmount   romDelDevice

Definition at line 94 of file romdrv.h.

◆ I_romdrv_unmount

#define I_romdrv_unmount   I_romDelDevice

Definition at line 95 of file romdrv.h.

Enumeration Type Documentation

◆ ExtInfoFieldTypes

enum ExtInfoFieldTypes

Definition at line 61 of file romdrv.h.

Function Documentation

◆ romAddDevice()

int romAddDevice ( int  unit,
const void *  image 
)
extern

Definition at line 125 of file romdrv.c.

◆ romDelDevice()

int romDelDevice ( int  unit)
extern

Definition at line 149 of file romdrv.c.