My sources for CS and low level programming

ZIP indir
0
main
1 dal
git@carbon4code.com:ozsipahi/Sources.git
Ömer's Mac vbe3_0.pdf
7 commit
MemoryType.h 799 B
/*!
    @file MemoryType.h

    @brief Functions for MTRR (memory type range registers) handling.

    @author Satoshi Tanda

    @copyright Copyright (c) 2020 - , Satoshi Tanda. All rights reserved.
 */
#pragma once
#include "Common.h"

/*!
    @brief Initializes the MTRR context.
 */
VOID
InitializeMemoryTypeMapping (
    );

/*!
    @brief Returns a memory type for the given physical address range.

    @param[in] PhysicalAddress - The physical address to retrieve its memory type.

    @param[in] RangeSize - The size of the range to check.

    @return The memory type for the given physical address. If the range contains
        more than one memory type, MEMORY_TYPE_INVALID.
 */
IA32_MEMORY_TYPE
GetMemoryTypeForRange (
    _In_ UINT64 PhysicalAddress,
    _In_ UINT64 RangeSize
    );