ReactOS 0.4.15-dev-8100-g1887773
hwinit.c File Reference
#include "precomp.h"
Include dependency graph for hwinit.c:

Go to the source code of this file.

Functions

VOID NTAPI LlbHwBuildMemoryMap (IN PBIOS_MEMORY_MAP MemoryMap)
 
VOID NTAPI LlbHwInitialize (VOID)
 

Variables

BIOS_MEMORY_MAP LlbHwOmap3MemoryMap []
 

Function Documentation

◆ LlbHwBuildMemoryMap()

VOID NTAPI LlbHwBuildMemoryMap ( IN PBIOS_MEMORY_MAP  MemoryMap)

Definition at line 60 of file hwinit.c.

61{
62 PBIOS_MEMORY_MAP MapEntry;
63 ULONG Base, Size, FsBase, FsSize;
64
65 /* Parse hardware memory map */
66 MapEntry = LlbHwOmap3MemoryMap;
67 while (MapEntry->Length)
68 {
69 /* Add this entry */
70 LlbAllocateMemoryEntry(MapEntry->Type, MapEntry->BaseAddress, MapEntry->Length);
71
72 /* Move to the next one */
73 MapEntry++;
74 }
75
76 /* Query memory and RAMDISK information */
78 LlbEnvGetRamDiskInformation(&FsBase, &FsSize);
79 if (!FsSize) return;
80#ifdef _BEAGLE_
81 /* Add-in the size of the ramdisk */
82 Base = FsBase + FsSize;
83
84 /* Subtract size of ramdisk and anything else before it */
85 Size -= Base;
86
87 /* Allocate an entry for it */
89#endif
90}
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
_In_opt_ ULONG Base
Definition: rtlfuncs.h:2439
BIOS_MEMORY_MAP LlbHwOmap3MemoryMap[]
Definition: hwinit.c:42
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
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

◆ LlbHwInitialize()

VOID NTAPI LlbHwInitialize ( VOID  )

Definition at line 94 of file hwinit.c.

95{
96 /* Setup the UART (NS16550) */
98
99 /* Setup the NEC WVGA LCD Panel and the Display Controller */
101
102 /* Setup the keyboard */
104}
VOID NTAPI LlbHwOmap3LcdInitialize(VOID)
Definition: hwlcd.c:15
VOID NTAPI LlbHwOmap3SynKpdInitialize(VOID)
Definition: hwsynkp.c:15
VOID NTAPI LlbHwOmap3UartInitialize(VOID)
Definition: hwuart.c:15

Variable Documentation

◆ LlbHwOmap3MemoryMap

BIOS_MEMORY_MAP LlbHwOmap3MemoryMap[]
Initial value:
=
{
{0x00000000, 0x80000000, BiosMemoryReserved, 0},
{0x80000000, 0x01000000, BiosMemoryUsable, 0},
{0x81000000, 0x00010000, BiosMemoryBootLoader, 0},
{0x81010000, 0x00004000, BiosMemoryBootStrap, 0},
{0x81014000, 0x00060000, BiosMemoryBootLoader, 0},
{0x81070000, 0x00020000, BiosMemoryBootStrap, 0},
{0x81094000, 0x0006C000, BiosMemoryBootStrap, 0},
{0x81100000, 0x00F00000, BiosMemoryUsable, 0},
{0x82000000, 0x02000000, BiosMemoryBootStrap, 0},
{0x84000000, 0x0C000000, BiosMemoryUsable, 0},
{0x90000000, 0x70000000, BiosMemoryReserved, 0},
{0, 0, 0, 0}
}
@ BiosMemoryBootStrap
Definition: osloader.h:24
@ BiosMemoryBootLoader
Definition: osloader.h:23
@ BiosMemoryReserved
Definition: osloader.h:25

Definition at line 42 of file hwinit.c.

Referenced by LlbHwBuildMemoryMap().