ReactOS  0.4.15-dev-499-g1f31905
hwinfo.c File Reference
#include "precomp.h"
Include dependency graph for hwinfo.c:

Go to the source code of this file.

Functions

ULONG NTAPI LlbHwGetBoardType (VOID)
 
ULONG NTAPI LlbHwGetPClk (VOID)
 
ULONG NTAPI LlbHwGetTmr0Base (VOID)
 
ULONG NTAPI LlbHwGetSerialUart (VOID)
 
VOID NTAPI LlbHwKbdSend (IN ULONG Value)
 
BOOLEAN NTAPI LlbHwKbdReady (VOID)
 
INT NTAPI LlbHwKbdRead (VOID)
 
ULONG NTAPI LlbHwGetScreenWidth (VOID)
 
ULONG NTAPI LlbHwGetScreenHeight (VOID)
 
PVOID NTAPI LlbHwGetFrameBuffer (VOID)
 
ULONG NTAPI LlbHwVideoCreateColor (IN ULONG Red, IN ULONG Green, IN ULONG Blue)
 
VOID NTAPI LlbHwBuildMemoryMap (IN PBIOS_MEMORY_MAP MemoryMap)
 
ULONG LlbHwRtcRead (VOID)
 

Variables

BIOS_MEMORY_MAP LlbHwOmap3MemoryMap []
 

Function Documentation

◆ 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 }
_In_opt_ ULONG Base
Definition: rtlfuncs.h:2373
LONGLONG BaseAddress
Definition: osloader.h:33
BIOS_MEMORY_MAP LlbHwOmap3MemoryMap[]
Definition: hwinfo.c:94
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
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
LONGLONG Length
Definition: osloader.h:34
VOID NTAPI LlbEnvGetMemoryInformation(IN PULONG Base, IN PULONG Size)
Definition: envir.c:97

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(), 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(), and LlbVideoClearScreen().

◆ LlbHwGetScreenWidth()

ULONG NTAPI LlbHwGetScreenWidth ( VOID  )

Definition at line 62 of file hwinfo.c.

63 {
64  return 1280;
65 }

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

◆ 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().

◆ LlbHwKbdRead()

INT NTAPI LlbHwKbdRead ( VOID  )

Definition at line 55 of file hwinfo.c.

56 {
57  return 0;
58 }

Referenced by LlbKeyboardGetChar(), and LlbKeypadGetChar().

◆ LlbHwKbdReady()

BOOLEAN NTAPI LlbHwKbdReady ( VOID  )

Definition at line 48 of file hwinfo.c.

49 {
50  return FALSE;
51 }

Referenced by LlbFwKbHit().

◆ LlbHwKbdSend()

VOID NTAPI LlbHwKbdSend ( IN ULONG  Value)

Definition at line 41 of file hwinfo.c.

42 {
43 
44 }

◆ LlbHwRtcRead()

ULONG LlbHwRtcRead ( VOID  )

Definition at line 132 of file hwinfo.c.

133 {
134  return 0;
135 }

Referenced by LlbGetTime().

◆ 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().

Variable Documentation

◆ LlbHwOmap3MemoryMap

BIOS_MEMORY_MAP LlbHwOmap3MemoryMap[]
Initial value:
=
{
{0, 0, 0, 0}
}

Definition at line 94 of file hwinfo.c.

Referenced by LlbHwBuildMemoryMap().