]> git.zerfleddert.de Git - linexec-j720/blob - tester1.h
b793a85e4c0d8c8b5b469e65a75b00a94dd64fa6
[linexec-j720] / tester1.h
1 #include "config.h"
2
3
4 #define BOOT_LOGO
5 //#define BOOT_LOGO_DONE
6
7 #if !defined(AFX_TESTER1_H__7D4A2D28_4650_475E_A82E_CF6F8E7BA839__INCLUDED_)
8 #define AFX_TESTER1_H__7D4A2D28_4650_475E_A82E_CF6F8E7BA839__INCLUDED_
9
10 #if _MSC_VER > 1000
11 #pragma once
12 #endif // _MSC_VER > 1000
13
14 #include "resource.h"
15
16 //////////////////////////////// Some type definitions /////////////////////
17 struct Image {
18 UINT16 *p;
19 long x,y;
20 };
21
22 /////////////////////////////Functions /////////////////////////////////////
23 Image ReadBMP(char[]);
24 void ShowImage(UINT16*,int,int,int=0,int=0);
25 void Gpio();
26 void UART_setup();
27 void DumpMMU();
28 void UART_puts(char *);
29 void init_fb();
30 void try_fb();
31 void boot_linux(char*,char*);
32 UINT32 ReadPhysical(UINT32);
33 void WritePhysical(UINT32 addr,UINT32 val);
34 UINT32 VirtualToPhysical(UINT32);
35 void load_boot(char*);
36 void SetGPIOalt(int,int);
37 void SetGPIOio(int,int);
38
39
40 ////////////////////////////////////////////////////////////////////////////
41
42 extern "C" BOOL VirtualCopy(LPVOID lpvDestMem, LPVOID lpvSrcMem,
43 DWORD dwSizeInBytes, DWORD dwProtectFlag);
44
45 extern void do_it();
46
47 extern int read_mmu(); // reads where is/are descriptors located
48
49 extern void IntOff();
50 extern void DRAMloader(UINT32 adr,UINT32 machine_num); // this function turns off MMU and jumps onto physical address given
51
52 extern "C" DWORD SetProcPermissions(
53 DWORD newperms
54 );
55
56 extern "C" DWORD GetCurrentPermissions(
57 );
58
59 extern "C" BOOL SetKMode(
60 BOOL fMode
61 );
62
63 extern "C" LPVOID CreateStaticMapping(
64 DWORD dwPhysBase,
65 DWORD dwSize
66 );
67
68
69 #define MENU_HEIGHT 26
70
71 #endif // !defined(AFX_TESTER1_H__7D4A2D28_4650_475E_A82E_CF6F8E7BA839__INCLUDED_)
Impressum, Datenschutz