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