1 /* 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 7 */ 8 9 #include "precomp.h" 10 11 ULONG 12 NTAPI 13 LlbHwGetBoardType(VOID) 14 { 15 return MACH_TYPE_OMAP3_BEAGLE; 16 } 17 18 ULONG 19 NTAPI 20 LlbHwGetPClk(VOID) 21 { 22 return 48000000; 23 } 24 25 ULONG 26 NTAPI 27 LlbHwGetTmr0Base(VOID) 28 { 29 return 0x48318000; 30 } 31 32 ULONG 33 NTAPI 34 LlbHwGetSerialUart(VOID) 35 { 36 return 3; 37 } 38 39 VOID 40 NTAPI 41 LlbHwKbdSend(IN ULONG Value) 42 { 43 44 } 45 46 BOOLEAN 47 NTAPI 48 LlbHwKbdReady(VOID) 49 { 50 return FALSE; 51 } 52 53 INT 54 NTAPI 55 LlbHwKbdRead(VOID) 56 { 57 return 0; 58 } 59 60 ULONG 61 NTAPI 62 LlbHwGetScreenWidth(VOID) 63 { 64 return 1280; 65 } 66 67 ULONG 68 NTAPI 69 LlbHwGetScreenHeight(VOID) 70 { 71 return 720; 72 } 73 74 PVOID 75 NTAPI 76 LlbHwGetFrameBuffer(VOID) 77 { 78 return (PVOID)0x80500000; 79 } 80 81 ULONG 82 NTAPI 83 LlbHwVideoCreateColor(IN ULONG Red, 84 IN ULONG Green, 85 IN ULONG Blue) 86 { 87 return 0; 88 } 89 90 91 // 92 // OMAP3 Memory Map 93 // 94 BIOS_MEMORY_MAP LlbHwOmap3MemoryMap[] = 95 { 96 {0, 0, 0, 0} 97 }; 98 99 VOID 100 NTAPI 101 LlbHwBuildMemoryMap(IN PBIOS_MEMORY_MAP MemoryMap) 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 */ 118 LlbEnvGetMemoryInformation(&Base, &Size); 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 */ 128 LlbAllocateMemoryEntry(BiosMemoryUsable, Base, Size); 129 } 130 131 ULONG 132 LlbHwRtcRead(VOID) 133 { 134 return 0; 135 } 136 137 /* EOF */ 138