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

Go to the source code of this file.

Functions

VOID NTAPI LlbHwInitialize (VOID)
 
POSLOADER_INIT NTAPI LlbHwLoadOsLoaderFromRam (VOID)
 

Function Documentation

◆ LlbHwInitialize()

VOID NTAPI LlbHwInitialize ( VOID  )

Definition at line 13 of file hwinit.c.

14{
15 /* Setup the CLCD (PL110) */
17
18 /* Setup the UART (PL011) */
20
21 /* Setup the KMI (PL050) */
23}
VOID NTAPI LlbHwVersaClcdInitialize(VOID)
Definition: hwclcd.c:29
VOID NTAPI LlbHwVersaKmiInitialize(VOID)
Definition: hwkmi.c:80
VOID NTAPI LlbHwVersaUartInitialize(VOID)
Definition: hwuart.c:49

◆ LlbHwLoadOsLoaderFromRam()

POSLOADER_INIT NTAPI LlbHwLoadOsLoaderFromRam ( VOID  )

Definition at line 30 of file hwinit.c.

31{
32 ULONG Base, RootFs, Size;
34 CHAR CommandLine[64];
35
36 /* On versatile we load the RAMDISK with initrd */
38
39 /* The OS Loader is at 0x20000, always */
40 Base = 0x20000;
41
42 /* Read image offset */
43 Offset = LlbEnvRead("rdoffset");
44
45 /* Set parameters for the OS loader */
46 sprintf(CommandLine, "rdbase=0x%x rdsize=0x%x rdoffset=%s", RootFs, Size, Offset);
47 LlbSetCommandLine(CommandLine);
48
49 /* Return the OS loader base address */
50 return (POSLOADER_INIT)Base;
51}
PCHAR NTAPI LlbEnvRead(IN PCHAR ValueName)
Definition: envir.c:127
BOOLEAN NTAPI LlbEnvGetRamDiskInformation(IN PULONG Base, IN PULONG Size)
Definition: envir.c:107
#define sprintf(buf, format,...)
Definition: sprintf.c:55
_In_opt_ ULONG Base
Definition: rtlfuncs.h:2439
_In_ ULONG _In_ ULONG Offset
Definition: ntddpcm.h:101
VOID NTAPI LlbSetCommandLine(IN PCHAR CommandLine)
Definition: loader.c:38
VOID(* POSLOADER_INIT)(IN PVOID BoardInit)
Definition: osloader.h:13
uint32_t ULONG
Definition: typedefs.h:59
char * PCHAR
Definition: typedefs.h:51
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
char CHAR
Definition: xmlstorage.h:175