ReactOS 0.4.15-dev-8339-g4028de8
hw.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

VOID NTAPI LlbHwInitialize (VOID)
 
ULONG NTAPI LlbHwGetScreenWidth (VOID)
 
ULONG NTAPI LlbHwGetScreenHeight (VOID)
 
ULONG NTAPI LlbHwVideoCreateColor (IN ULONG Red, IN ULONG Green, IN ULONG Blue)
 
PVOID NTAPI LlbHwGetFrameBuffer (VOID)
 
ULONG NTAPI LlbHwGetBoardType (VOID)
 
ULONG NTAPI LlbHwGetPClk (VOID)
 
ULONG NTAPI LlbHwGetTmr0Base (VOID)
 
ULONG NTAPI LlbHwGetUartBase (IN ULONG Port)
 
ULONG NTAPI LlbHwGetSerialUart (VOID)
 
VOID NTAPI LlbHwUartSendChar (IN CHAR Char)
 
BOOLEAN NTAPI LlbHwUartTxReady (VOID)
 
VOID NTAPI LlbHwBuildMemoryMap (IN PBIOS_MEMORY_MAP MemoryMap)
 
VOID NTAPI LlbHwKbdSend (IN ULONG Value)
 
BOOLEAN NTAPI LlbHwKbdReady (VOID)
 
INT NTAPI LlbHwKbdRead (VOID)
 
POSLOADER_INIT NTAPI LlbHwLoadOsLoaderFromRam (VOID)
 
ULONG NTAPI LlbHwRtcRead (VOID)
 
TIMEINFO *NTAPI LlbGetTime (VOID)
 

Function Documentation

◆ LlbGetTime()

TIMEINFO *NTAPI LlbGetTime ( VOID  )

Definition at line 84 of file time.c.

85{
86 ULONG RtcTime;
87
88 /* Read RTC time */
89 RtcTime = LlbHwRtcRead();
90#ifndef _ZOOM2_
91 /* Convert it */
92 LlbConvertRtcTime(RtcTime, &LlbTime);
93#endif
94 return &LlbTime;
95}
TIMEINFO LlbTime
Definition: time.c:16
VOID NTAPI LlbConvertRtcTime(IN ULONG RtcTime, OUT TIMEINFO *TimeInfo)
Definition: time.c:40
ULONG LlbHwRtcRead(VOID)
Definition: hwinfo.c:132
uint32_t ULONG
Definition: typedefs.h:59

Referenced by LlbFwGetTime().

◆ LlbHwBuildMemoryMap()

VOID NTAPI LlbHwBuildMemoryMap ( IN PBIOS_MEMORY_MAP  MemoryMap)

Definition at line 101 of file hwinfo.c.

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}
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:2451
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
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533

Referenced by LlbBuildMemoryMap().

◆ LlbHwGetBoardType()

ULONG NTAPI LlbHwGetBoardType ( VOID  )

Definition at line 13 of file hwinfo.c.

14{
16}
#define MACH_TYPE_OMAP3_BEAGLE
Definition: machtype.h:25

Referenced by LlbBuildArmBlock(), and LlbStartup().

◆ LlbHwGetFrameBuffer()

PVOID NTAPI LlbHwGetFrameBuffer ( VOID  )

Definition at line 76 of file hwinfo.c.

77{
78 return (PVOID)0x80500000;
79}

Referenced by LlbFwVideoPutChar(), LlbHwVersaClcdInitialize(), LlbVideoClearScreen(), and LlbVideoPutChar().

◆ LlbHwGetPClk()

ULONG NTAPI LlbHwGetPClk ( VOID  )

Definition at line 20 of file hwinfo.c.

21{
22 return 48000000;
23}

Referenced by LlbBuildArmBlock(), LlbHwVersaKmiInitialize(), and LlbHwVersaUartInitialize().

◆ LlbHwGetScreenHeight()

ULONG NTAPI LlbHwGetScreenHeight ( VOID  )

Definition at line 69 of file hwinfo.c.

70{
71 return 720;
72}

Referenced by LlbFwVideoGetDisplaySize(), LlbHwVersaClcdInitialize(), and LlbVideoClearScreen().

◆ LlbHwGetScreenWidth()

ULONG NTAPI LlbHwGetScreenWidth ( VOID  )

◆ LlbHwGetSerialUart()

ULONG NTAPI LlbHwGetSerialUart ( VOID  )

Definition at line 34 of file hwinfo.c.

35{
36 return 3;
37}

Referenced by LlbBuildArmBlock().

◆ LlbHwGetTmr0Base()

ULONG NTAPI LlbHwGetTmr0Base ( VOID  )

Definition at line 27 of file hwinfo.c.

28{
29 return 0x48318000;
30}

Referenced by LlbBuildArmBlock().

◆ LlbHwGetUartBase()

ULONG NTAPI LlbHwGetUartBase ( IN ULONG  Port)

Definition at line 36 of file hwuart.c.

37{
38 if (Port == 1)
39 {
40 return 0x4806A000;
41 }
42 else if (Port == 2)
43 {
44 return 0x4806C000;
45 }
46 else if (Port == 3)
47 {
48 return 0x49020000;
49 }
50
51 return 0;
52}
CPPORT Port[4]
Definition: headless.c:35

Referenced by LlbBuildArmBlock().

◆ LlbHwInitialize()

VOID NTAPI LlbHwInitialize ( VOID  )

Definition at line 13 of file hwinit.c.

14{
15 while (TRUE);
16}
#define TRUE
Definition: types.h:120

Referenced by LlbStartup().

◆ LlbHwKbdRead()

INT NTAPI LlbHwKbdRead ( VOID  )

Definition at line 55 of file hwinfo.c.

56{
57 return 0;
58}

Referenced by LlbHwVersaKmiInitialize(), LlbHwVersaKmiSendAndWait(), LlbKeyboardGetChar(), and LlbKeypadGetChar().

◆ LlbHwKbdReady()

BOOLEAN NTAPI LlbHwKbdReady ( VOID  )

Definition at line 48 of file hwinfo.c.

49{
50 return FALSE;
51}
#define FALSE
Definition: types.h:117

Referenced by LlbFwKbHit().

◆ LlbHwKbdSend()

VOID NTAPI LlbHwKbdSend ( IN ULONG  Value)

Definition at line 41 of file hwinfo.c.

42{
43
44}

Referenced by LlbHwVersaKmiSendAndWait().

◆ 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
#define sprintf(buf, format,...)
Definition: sprintf.c:55
_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
char * PCHAR
Definition: typedefs.h:51
char CHAR
Definition: xmlstorage.h:175

Referenced by LlbLoadOsLoader().

◆ LlbHwRtcRead()

ULONG NTAPI LlbHwRtcRead ( VOID  )

Definition at line 132 of file hwinfo.c.

133{
134 return 0;
135}

Referenced by LlbGetTime().

◆ LlbHwUartSendChar()

VOID NTAPI LlbHwUartSendChar ( IN CHAR  Char)

Definition at line 22 of file hwuart.c.

23{
24
25}

Referenced by LlbSerialPutChar().

◆ LlbHwUartTxReady()

BOOLEAN NTAPI LlbHwUartTxReady ( VOID  )

Definition at line 29 of file hwuart.c.

30{
31 return FALSE;
32}

Referenced by LlbSerialPutChar().

◆ LlbHwVideoCreateColor()

ULONG NTAPI LlbHwVideoCreateColor ( IN ULONG  Red,
IN ULONG  Green,
IN ULONG  Blue 
)

Definition at line 83 of file hwinfo.c.

86{
87 return 0;
88}

Referenced by LlbFwVideoPutChar(), LlbVideoClearScreen(), and LlbVideoPutChar().