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
13 LlbHwGetBoardType(VOID
)
15 return MACH_TYPE_OMAP3_BEAGLE
;
27 LlbHwGetTmr0Base(VOID
)
34 LlbHwGetSerialUart(VOID
)
41 LlbHwKbdSend(IN ULONG Value
)
62 LlbHwGetScreenWidth(VOID
)
69 LlbHwGetScreenHeight(VOID
)
76 LlbHwGetFrameBuffer(VOID
)
78 return (PVOID
)0x80500000;
83 LlbHwVideoCreateColor(IN ULONG Red
,
94 BIOS_MEMORY_MAP LlbHwOmap3MemoryMap
[] =
101 LlbHwBuildMemoryMap(IN PBIOS_MEMORY_MAP MemoryMap
)
103 PBIOS_MEMORY_MAP MapEntry
;
104 ULONG Base
, Size
, FsBase
, FsSize
;
106 /* Parse hardware memory map */
107 MapEntry
= LlbHwOmap3MemoryMap
;
108 while (MapEntry
->Length
)
111 LlbAllocateMemoryEntry(MapEntry
->Type
, MapEntry
->BaseAddress
, MapEntry
->Length
);
113 /* Move to the next one */
117 /* Query memory and RAMDISK information */
118 LlbEnvGetMemoryInformation(&Base
, &Size
);
119 LlbEnvGetRamDiskInformation(&FsBase
, &FsSize
);
121 /* Add-in the size of the ramdisk */
122 Base
= FsBase
+ FsSize
;
124 /* Subtract size of ramdisk and anything else before it */
127 /* Allocate an entry for it */
128 LlbAllocateMemoryEntry(BiosMemoryUsable
, Base
, Size
);