-
Notifications
You must be signed in to change notification settings - Fork 0
/
utility.h
56 lines (38 loc) · 1.08 KB
/
utility.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
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// Various small utility functions
//
// e.g. is it a standalone .exe, from a ROM, is caetla installed, etc.
//
#ifndef UTILITY_H
#define UTILITY_H
#include "littlelibc.h"
#include "pads.h"
int InCriticalSection();
int EnterCritical();
int ExitCritical();
void ResetGraph();
void InitHeap (unsigned long * a, unsigned long b);
int StopCallback(void);
unsigned long ResetEntryInt();
void Delay( int inLen );
int IsJAP();
int IsPAL();
int IsROM();
int HasCaetla();
//void FastBoot();
void ROM_Reboot();
void UnloadMe();
void RebootToShell();
void rom_load_caetla_normal();
void rom_load_caetla_boot();
void rom_load_caetla_comms();
// Some kernel functions for the TTY redirect
void AddDevice( void * deviceInfo );
void RemoveDevice( char * deviceName );
void PrintDevices();
void CloseFile( ulong fileHandle );
ulong OpenFile( char * fileName, ulong accessMode );
#endif // !UTILITY_H