PS2SDK
PS2 Homebrew Libraries
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
c
d
e
f
g
i
l
m
n
p
q
r
s
t
u
v
Variables
_
c
d
f
g
i
k
m
n
p
q
r
s
t
u
v
w
Typedefs
a
d
h
i
l
m
n
p
r
s
t
w
Enumerations
_
a
c
d
g
i
l
m
n
o
p
s
t
v
Enumerator
c
d
e
g
i
n
p
s
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
main.c
1
#define MAJOR_VER 1
2
#define MINOR_VER 1
3
4
#include "scsi.h"
5
#include <
irx.h
>
6
#include <
loadcore.h
>
7
#include <
stdio.h
>
8
9
// #define DEBUG //comment out this line when not debugging
10
#include "module_debug.h"
11
12
IRX_ID(MODNAME, MAJOR_VER, MINOR_VER);
13
14
extern
int
usb_mass_init(
void
);
15
16
int
_start(
int
argc,
char
*argv[])
17
{
18
(void)argc;
19
(void)argv;
20
21
M_PRINTF(
"USB MASS Driver v%d.%d\n"
, MAJOR_VER, MINOR_VER);
22
23
// initialize the SCSI driver
24
if
(scsi_init() != 0) {
25
M_PRINTF(
"ERROR: initializing SCSI driver!\n"
);
26
return
MODULE_NO_RESIDENT_END;
27
}
28
29
// initialize the USB driver
30
if
(usb_mass_init() != 0) {
31
M_PRINTF(
"ERROR: initializing USB driver!\n"
);
32
return
MODULE_NO_RESIDENT_END;
33
}
34
35
// return resident
36
return
MODULE_RESIDENT_END;
37
}
irx.h
loadcore.h
stdio.h
iop
usb
usbmass_bd
src
main.c
Generated on Sat May 17 2025 02:56:33 for PS2SDK by
1.12.0