Nugget
globals.h
1 /*
2 
3 MIT License
4 
5 Copyright (c) 2020 PCSX-Redux authors
6 
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13 
14 The above copyright notice and this permission notice shall be included in all
15 copies or substantial portions of the Software.
16 
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 SOFTWARE.
24 
25 */
26 
27 #pragma once
28 
29 #include <stdint.h>
30 
31 #include "common/psxlibc/handlers.h"
32 #include "common/psxlibc/stdio.h"
33 #include "openbios/kernel/events.h"
34 #include "openbios/kernel/threads.h"
35 
36 extern struct { uint32_t ramsize, unk1, unk2; } __globals60;
37 
38 extern struct {
39  /* 100 */ struct HandlersStorage* handlersArray;
40  /* 104 */ uint32_t handlersArraySize;
41  /* 108 */ struct Process* processes;
42  /* 10c */ uint32_t processBlockSize;
43  /* 110 */ struct Thread* threads;
44  /* 114 */ uint32_t threadBlockSize;
45  /* 118 */ uint32_t xxx_06;
46  /* 11c */ uint32_t xxx_07;
47  /* 120 */ struct EventInfo* events;
48  /* 124 */ uint32_t eventsSize;
49  /* 128 */ uint32_t xxx_0a;
50  /* 12c */ uint32_t xxx_0b;
51  /* 130 */ uint32_t xxx_0c;
52  /* 134 */ uint32_t xxx_0d;
53  /* 138 */ uint32_t xxx_0e;
54  /* 13c */ uint32_t xxx_0f;
55  /* 140 */ struct File* files;
56  /* 144 */ uint32_t filesSize;
57  /* 148 */ uint32_t xxx_12;
58  /* 14c */ uint32_t xxx_13;
59  /* 150 */ struct Device* devices;
60  /* 154 */ struct Device* devicesEnd;
61  /* 158 */ uint32_t xxx_16;
62  /* 15c */ uint32_t xxx_17;
63  /* 160 */ uint32_t xxx_18;
64  /* 164 */ uint32_t xxx_19;
65  /* 168 */ uint32_t xxx_1a;
66  /* 16c */ uint32_t xxx_1b;
67  /* 170 */ uint32_t xxx_1c;
68  /* 174 */ uint32_t xxx_1d;
69  /* 178 */ uint32_t xxx_1e;
70  /* 17c */ uint32_t xxx_1f;
71 } __globals;
Definition: device.h:60
Definition: events.c:36
Definition: stdio.h:96
Definition: handlers.h:40
Definition: threads.h:52
Definition: threads.h:46