36#ifndef _PS2SDK_ROMDRV_H
37#define _PS2SDK_ROMDRV_H
48 const void *ImageStart;
49 const void *RomdirStart;
50 const void *RomdirEnd;
61enum ExtInfoFieldTypes {
62 EXTINFO_FIELD_TYPE_DATE = 1,
63 EXTINFO_FIELD_TYPE_VERSION,
64 EXTINFO_FIELD_TYPE_COMMENT,
65 EXTINFO_FIELD_TYPE_FIXED = 0x7F
68#define ROMDRV_MAX_IMAGES 4
69#define ROMDRV_MAX_FILES 8
72#define ROMDRV_ADD_FAILED -160
73#define ROMDRV_DEL_FAILED -161
74#define ROMDRV_ADD_BAD_IMAGE -162
76#define romdrv_IMPORTS_start DECLARE_IMPORT_TABLE(romdrv, 2, 1)
77#define romdrv_IMPORTS_end END_IMPORT_TABLE
79extern int romAddDevice(
int unit,
const void *image);
80#define I_romAddDevice DECLARE_IMPORT(4, romAddDevice)
81extern int romDelDevice(
int unit);
82#define I_romDelDevice DECLARE_IMPORT(5, romDelDevice)
85#define romdrvX_IMPORTS_start DECLARE_IMPORT_TABLE(romdrvX, 1, 1)
86#define romdrvX_IMPORTS_end END_IMPORT_TABLE
88extern const struct RomImg *romGetDevice(
int unit);
89#define I_romGetDevice DECLARE_IMPORT(6, romGetDevice)
92#define romdrv_mount romAddDevice
93#define I_romdrv_mount I_romAddDevice
94#define romdrv_unmount romDelDevice
95#define I_romdrv_unmount I_romDelDevice