sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
secrman.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright (c) 2009 jimmikaelkael
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
17
#ifndef __SECRMAN_H__
18
#define __SECRMAN_H__
19
20
#include <types.h>
21
#include <
irx.h
>
22
#include <
sio2man.h
>
23
#include <
libsecr-common.h
>
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
typedef
int (*McCommandHandler_t)(
int
port,
int
slot,
sio2_transfer_data_t
*sio2_trans_data);
30
typedef
int (*McDevIDHandler_t)(
int
port,
int
slot);
31
32
extern
void
SecrSetMcCommandHandler(McCommandHandler_t handler);
33
extern
void
SecrSetMcDevIDHandler(McDevIDHandler_t handler);
34
35
extern
int
SecrAuthCard(
int
port,
int
slot,
int
cnum);
36
extern
int
SecrAuthDongle(
int
port,
int
slot,
int
cnum);
37
extern
void
SecrResetAuthCard(
int
port,
int
slot,
int
cnum);
38
39
// El_isra: this was 0x1, 0x3 originally. but the IRX_ID macro on source code has 0x1, 0x4. just like arcade SECRMAN...
40
#define secrman_IMPORTS_start DECLARE_IMPORT_TABLE(secrman, 1, 4)
41
#define secrman_IMPORTS_end END_IMPORT_TABLE
42
43
#define I_SecrSetMcCommandHandler DECLARE_IMPORT(4, SecrSetMcCommandHandler)
44
#define I_SecrSetMcDevIDHandler DECLARE_IMPORT(5, SecrSetMcDevIDHandler)
45
#define I_SecrAuthCard DECLARE_IMPORT(6, SecrAuthCard)
46
#define I_SecrResetAuthCard DECLARE_IMPORT(7, SecrResetAuthCard)
47
48
#define I_SecrCardBootHeader DECLARE_IMPORT(8, SecrCardBootHeader)
49
#define I_SecrCardBootBlock DECLARE_IMPORT(9, SecrCardBootBlock)
50
#define I_SecrCardBootFile DECLARE_IMPORT(10, SecrCardBootFile)
51
#define I_SecrDiskBootHeader DECLARE_IMPORT(11, SecrDiskBootHeader)
52
#define I_SecrDiskBootBlock DECLARE_IMPORT(12, SecrDiskBootBlock)
53
#define I_SecrDiskBootFile DECLARE_IMPORT(13, SecrDiskBootFile)
54
55
/* FOLLOWING EXPORTS ARE ONLY AVAILABLE IN SPECIAL SECRMAN OR FREESECR */
56
#define I_SecrDownloadHeader DECLARE_IMPORT(14, SecrDownloadHeader)
57
#define I_SecrDownloadBlock DECLARE_IMPORT(15, SecrDownloadBlock)
58
#define I_SecrDownloadFile DECLARE_IMPORT(16, SecrDownloadFile)
59
#define I_SecrDownloadGetKbit DECLARE_IMPORT(17, SecrDownloadGetKbit)
60
#define I_SecrDownloadGetKc DECLARE_IMPORT(18, SecrDownloadGetKc)
61
#define I_SecrDownloadGetICVPS2 DECLARE_IMPORT(19, SecrDownloadGetICVPS2)
62
63
/* FOLLOWING EXPORTS ARE ONLY AVAILABLE IN ARCADE SECRMAN */
64
#define I_SecrAuthDongle DECLARE_IMPORT(20, SecrAuthDongle)
65
66
#ifdef __cplusplus
67
}
68
#endif
69
70
#endif
/* IOP_SECRMAN_H */
irx.h
libsecr-common.h
sio2man.h
sio2_transfer_data_t
Definition
sio2man.h:34
core
secrman
include
secrman.h
Generated by
1.18.0