32 TRACE(
"CacheInternalGetBlockPointer() BlockNumber = %d\n", BlockNumber);
36 if (CacheBlock !=
NULL)
38 TRACE(
"Cache hit! BlockNumber: %d CacheBlock->BlockNumber: %d\n", BlockNumber, CacheBlock->
BlockNumber);
43 TRACE(
"Cache miss! BlockNumber: %d\n", BlockNumber);
57 TRACE(
"CacheInternalFindBlock() BlockNumber = %d\n", BlockNumber);
95 TRACE(
"CacheInternalAddBlockToCache() BlockNumber = %d\n", BlockNumber);
104 if (CacheBlock ==
NULL)
146 TRACE(
"CacheInternalFreeBlock()\n");
181 TRACE(
"CacheInternalCheckCacheSizeLimits()\n");
198 TRACE(
"Dumping block list for BIOS drive 0x%x.\n", CacheDrive->
DriveNumber);
208 TRACE(
"Cache Block: CacheBlock: 0x%x\n", CacheBlock);
216 BugCheck(
"CacheBlock->BlockData == NULL\n");
226 TRACE(
"CacheInternalOptimizeBlockList()\n");
VOID CacheInternalCheckCacheSizeLimits(PCACHE_DRIVE CacheDrive)
PCACHE_BLOCK CacheInternalFindBlock(PCACHE_DRIVE CacheDrive, ULONG BlockNumber)
BOOLEAN CacheInternalFreeBlock(PCACHE_DRIVE CacheDrive)
VOID CacheInternalDumpBlockList(PCACHE_DRIVE CacheDrive)
PCACHE_BLOCK CacheInternalGetBlockPointer(PCACHE_DRIVE CacheDrive, ULONG BlockNumber)
PCACHE_BLOCK CacheInternalAddBlockToCache(PCACHE_DRIVE CacheDrive, ULONG BlockNumber)
VOID CacheInternalOptimizeBlockList(PCACHE_DRIVE CacheDrive, PCACHE_BLOCK CacheBlock)
#define BugCheck(fmt,...)
#define DBG_DEFAULT_CHANNEL(ch)
#define MachDiskReadLogicalSectors(Drive, Start, Count, Buf)
FORCEINLINE PVOID FrLdrTempAlloc(_In_ SIZE_T Size, _In_ ULONG Tag)
FORCEINLINE VOID FrLdrTempFree(PVOID Allocation, ULONG Tag)
#define RemoveEntryList(Entry)
#define InsertTailList(ListHead, Entry)
#define InsertHeadList(ListHead, Entry)
#define IsListEmpty(ListHead)
LIST_ENTRY CacheBlockHead
struct _LIST_ENTRY * Blink
struct _LIST_ENTRY * Flink
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
#define CONTAINING_RECORD(address, type, field)