ReactOS 0.4.15-dev-8116-gf69e256
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
14{
16}
17
21{
22 return 48000000;
23}
24
28{
29 return 0x48318000;
30}
31
35{
36 return 3;
37}
38
39VOID
42{
43
44}
45
49{
50 return FALSE;
51}
52
53INT
56{
57 return 0;
58}
59
63{
64 return 1280;
65}
66
70{
71 return 720;
72}
73
77{
78 return (PVOID)0x80500000;
79}
80
86{
87 return 0;
88}
89
90
91//
92// OMAP3 Memory Map
93//
95{
96 {0, 0, 0, 0}
97};
98
99VOID
100NTAPI
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
131ULONG
133{
134 return 0;
135}
136
137/* EOF */
unsigned char BOOLEAN
@ Green
Definition: bl.h:199
@ Red
Definition: bl.h:201
@ Blue
Definition: bl.h:198
BIOS_MEMORY_MAP MemoryMap[32]
Definition: loader.c:11
#define FALSE
Definition: types.h:117
VOID NTAPI LlbEnvGetMemoryInformation(IN PULONG Base, IN PULONG Size)
Definition: envir.c:97
BOOLEAN NTAPI LlbEnvGetRamDiskInformation(IN PULONG Base, IN PULONG Size)
Definition: envir.c:107
#define MACH_TYPE_OMAP3_BEAGLE
Definition: machtype.h:25
_In_opt_ ULONG Base
Definition: rtlfuncs.h:2439
ULONG NTAPI LlbHwVideoCreateColor(IN ULONG Red, IN ULONG Green, IN ULONG Blue)
Definition: hwinfo.c:83
BOOLEAN NTAPI LlbHwKbdReady(VOID)
Definition: hwinfo.c:48
PVOID NTAPI LlbHwGetFrameBuffer(VOID)
Definition: hwinfo.c:76
ULONG NTAPI LlbHwGetSerialUart(VOID)
Definition: hwinfo.c:34
ULONG NTAPI LlbHwGetBoardType(VOID)
Definition: hwinfo.c:13
ULONG LlbHwRtcRead(VOID)
Definition: hwinfo.c:132
VOID NTAPI LlbHwBuildMemoryMap(IN PBIOS_MEMORY_MAP MemoryMap)
Definition: hwinfo.c:101
ULONG NTAPI LlbHwGetScreenWidth(VOID)
Definition: hwinfo.c:62
ULONG NTAPI LlbHwGetPClk(VOID)
Definition: hwinfo.c:20
INT NTAPI LlbHwKbdRead(VOID)
Definition: hwinfo.c:55
ULONG NTAPI LlbHwGetTmr0Base(VOID)
Definition: hwinfo.c:27
ULONG NTAPI LlbHwGetScreenHeight(VOID)
Definition: hwinfo.c:69
VOID NTAPI LlbHwKbdSend(IN ULONG Value)
Definition: hwinfo.c:41
BIOS_MEMORY_MAP LlbHwOmap3MemoryMap[]
Definition: hwinfo.c:94
VOID NTAPI LlbAllocateMemoryEntry(IN BIOS_MEMORY_TYPE Type, IN ULONG BaseAddress, IN ULONG Length)
Definition: loader.c:17
@ BiosMemoryUsable
Definition: osloader.h:22
LONGLONG BaseAddress
Definition: osloader.h:33
LONGLONG Length
Definition: osloader.h:34
#define NTAPI
Definition: typedefs.h:36
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413