sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
rom0_info.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
17
18
#ifndef __ROM0_INFO_H__
19
#define __ROM0_INFO_H__
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
typedef
struct
{
26
int (*open)(
const
char
*name,
int
flags, ...);
27
int (*close)(
int
fd);
28
int (*read)(
int
fd,
void
*buf,
int
nbyte);
29
int
openFlags;
30
}
_io_driver
;
31
32
extern
void
SetupRomInfo(
void
);
33
38
extern
int
IsDESRMachine
(
void
);
39
static
inline
int
IsDESRMachineWithIODriver(
const
_io_driver
*driver) {
return
IsDESRMachine
(); }
40
45
extern
int
IsT10K
(
void
);
46
static
inline
int
IsT10KWithIODriver(
const
_io_driver
*driver) {
return
IsT10K
(); }
47
54
extern
char
*
GetRomName
(
char
*romname);
55
static
inline
char
*GetRomNameWithIODriver(
char
*romname,
const
_io_driver
*driver) {
return
GetRomName
(romname); }
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
/* __ROM_INFO_H__ */
GetRomName
char * GetRomName(char *romname)
Definition
rom0_info.c:67
IsDESRMachine
int IsDESRMachine(void)
Definition
rom0_info.c:75
IsT10K
int IsT10K(void)
Definition
rom0_info.c:81
_io_driver
Definition
rom0_info.h:25
core
kernel
include
rom0_info.h
Generated by
1.18.0