-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.h
101 lines (85 loc) · 1.96 KB
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#include <tamtypes.h>
#include <errno.h>
#include <kernel.h>
#include <sifrpc.h>
#include <loadfile.h>
#include <fileio.h>
#include <libmc.h>
#include <stdio.h>
#include <string.h>
#include "libpad.h"
#include <debug.h>
#include <libpwroff.h>
#include <iopcontrol.h>
#include <stdlib.h>
#include "malloc.h"
#include <libcdvd.h>
#include <iopheap.h>
#include <io_common.h>
#include <syscallnr.h>
#include <unistd.h>
#include <fileXio_rpc.h>
//#include "strings.h"
// IP Shit.
#include <netman.h>
#include <ps2ips.h>
// SBV
#include <sbv_patches.h>
//ps2ip.c
int dhcpmain();
// Modules
extern void freesio2;
extern void iomanX;
extern void fileXio;
extern void freepad;
extern void poweroff;
extern void mcman;
extern void mcserv;
extern void ps2dev9;
extern void netman;
extern void smap;
extern void ps2ipnm;
extern void ps2ips;
extern void ps2http;
extern u32 size_poweroff;
extern u32 size_freesio2;
extern u32 size_iomanX;
extern u32 size_fileXio;
extern u32 size_freepad;
extern u32 size_mcman;
extern u32 size_mcserv;
extern u32 size_ps2dev9;
extern u32 size_netman;
extern u32 size_smap;
extern u32 size_ps2ipnm;
extern u32 size_ps2ips;
//extern u32 size_dnsirx;
extern u32 size_ps2http;
//PAD VARIABLES
//check for multiple definitions
#define DEBUG
#if !defined(ROM_PADMAN) && !defined(NEW_PADMAN)
#define ROM_PADMAN
#endif
#if defined(ROM_PADMAN) && defined(NEW_PADMAN)
#error Only one of ROM_PADMAN & NEW_PADMAN should be defined!
#endif
#if !defined(ROM_PADMAN) && !defined(NEW_PADMAN)
#error ROM_PADMAN or NEW_PADMAN must be defined!
#endif
//pad buffer
static char padBuf[256] __attribute__((aligned(64)));
//rumblers
static char actAlign[6];
static int actuators;
//button status
struct padButtonStatus buttons;
u32 paddata;
u32 old_pad;
u32 new_pad;
int port, slot;
extern void readPad(void);
void LoadModules(void);
void initialize(void);
int LoadIRX();
#define TYPE_XMC