ReactOS  0.4.15-dev-499-g1f31905
hwinfo.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Boot Loader
3  * LICENSE: BSD - See COPYING.ARM in the top level directory
4  * FILE: boot/armllb/hw/omap3-beagle/hwinfo.c
5  * PURPOSE: LLB Hardware Info Routines for OMAP3 Beagle
6  * PROGRAMMERS: ReactOS Portable Systems Group
7  */
8 
9 #include "precomp.h"
10 
11 ULONG
12 NTAPI
14 {
16 }
17 
18 ULONG
19 NTAPI
21 {
22  return 48000000;
23 }
24 
25 ULONG
26 NTAPI
28 {
29  return 0x48318000;
30 }
31 
32 ULONG
33 NTAPI
35 {
36  return 3;
37 }
38 
39 VOID
40 NTAPI
42 {
43 
44 }
45 
46 BOOLEAN
47 NTAPI
49 {
50  return FALSE;
51 }
52 
53 INT
54 NTAPI
56 {
57  return 0;
58 }
59 
60 ULONG
61 NTAPI
63 {
64  return 1280;
65 }
66 
67 ULONG
68 NTAPI
70 {
71  return 720;
72 }
73 
74 PVOID
75 NTAPI
77 {
78  return (PVOID)0x80500000;
79 }
80 
81 ULONG
82 NTAPI
84  IN ULONG Green,
85  IN ULONG Blue)
86 {
87  return 0;
88 }
89 
90 
91 //
92 // OMAP3 Memory Map
93 //
95 {
96  {0, 0, 0, 0}
97 };
98 
99 VOID
100 NTAPI
102 {
103  PBIOS_MEMORY_MAP MapEntry;
104  ULONG Base, Size, FsBase, FsSize;
105 
106  /* Parse hardware memory map */
107  MapEntry = LlbHwOmap3MemoryMap;
108  while (MapEntry->Length)
109  {
110  /* Add this entry */
111  LlbAllocateMemoryEntry(MapEntry->Type, MapEntry->BaseAddress, MapEntry->Length);
112 
113  /* Move to the next one */
114  MapEntry++;
115  }
116 
117  /* Query memory and RAMDISK information */
119  LlbEnvGetRamDiskInformation(&FsBase, &FsSize);
120 
121  /* Add-in the size of the ramdisk */
122  Base = FsBase + FsSize;
123 
124  /* Subtract size of ramdisk and anything else before it */
125  Size -= Base;
126 
127  /* Allocate an entry for it */
129 }
130 
131 ULONG
133 {
134  return 0;
135 }
136 
137 /* EOF */
Definition: bl.h:202
#define IN
Definition: typedefs.h:39
ULONG NTAPI LlbHwGetScreenWidth(VOID)
Definition: hwinfo.c:62
BIOS_MEMORY_MAP MemoryMap[32]
Definition: loader.c:11
_In_opt_ ULONG Base
Definition: rtlfuncs.h:2373
Definition: bl.h:199
int32_t INT
Definition: typedefs.h:57
BOOLEAN NTAPI LlbHwKbdReady(VOID)
Definition: hwinfo.c:48
IN UCHAR Value
Definition: halp.h:394
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
LONGLONG BaseAddress
Definition: osloader.h:33
PVOID NTAPI LlbHwGetFrameBuffer(VOID)
Definition: hwinfo.c:76
ULONG NTAPI LlbHwGetSerialUart(VOID)
Definition: hwinfo.c:34
unsigned char BOOLEAN
#define MACH_TYPE_OMAP3_BEAGLE
Definition: machtype.h:25
BIOS_MEMORY_MAP LlbHwOmap3MemoryMap[]
Definition: hwinfo.c:94
VOID NTAPI LlbHwBuildMemoryMap(IN PBIOS_MEMORY_MAP MemoryMap)
Definition: hwinfo.c:101
ULONG NTAPI LlbHwGetPClk(VOID)
Definition: hwinfo.c:20
VOID NTAPI LlbHwKbdSend(IN ULONG Value)
Definition: hwinfo.c:41
ULONG NTAPI LlbHwGetScreenHeight(VOID)
Definition: hwinfo.c:69
Definition: bl.h:200
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
ULONG NTAPI LlbHwGetTmr0Base(VOID)
Definition: hwinfo.c:27
INT NTAPI LlbHwKbdRead(VOID)
Definition: hwinfo.c:55
BOOLEAN NTAPI LlbEnvGetRamDiskInformation(IN PULONG Base, IN PULONG Size)
Definition: envir.c:107
VOID NTAPI LlbAllocateMemoryEntry(IN BIOS_MEMORY_TYPE Type, IN ULONG BaseAddress, IN ULONG Length)
Definition: loader.c:17
unsigned int ULONG
Definition: retypes.h:1
ULONG LlbHwRtcRead(VOID)
Definition: hwinfo.c:132
ULONG NTAPI LlbHwVideoCreateColor(IN ULONG Red, IN ULONG Green, IN ULONG Blue)
Definition: hwinfo.c:83
LONGLONG Length
Definition: osloader.h:34
VOID NTAPI LlbEnvGetMemoryInformation(IN PULONG Base, IN PULONG Size)
Definition: envir.c:97
ULONG NTAPI LlbHwGetBoardType(VOID)
Definition: hwinfo.c:13