test: pat.h Source File

Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

# pat.h

Go to the documentation of this file.

    00001 /*++
    00002 Copyright (c) 1997-8  Microsoft Corporation
    00003
    00004 Module Name:
    00005
    00006     pat.h
    00007
    00008 Abstract:
    00009
    00010     This module contains the i386 specific Page Attribute
    00011     Table (PAT) register hardware definitions.
    00012
    00013 Author:
    00014
    00015     Shivnandan Kaushik (Intel Corp)
    00016
    00017 Environment:
    00018
    00019     Kernel mode only.
    00020
    00021 Revision History:
    00022
    00023 --*/
    00024 //
    00025 // PAT MSR architecture definitions
    00026 //
    00027
    00028 //
    00029 // PAT model specific register
    00030 //
    00031
    00032 #define PAT_MSR       0x277
    00033
    00034 //
    00035 // PAT memory attributes
    00036 //
    00037
    00038 #define PAT_TYPE_STRONG_UC  0       // corresponds to PPro PCD=1,PWT=1
    00039 #define PAT_TYPE_USWC       1
    00040 #define PAT_TYPE_WT         4
    00041 #define PAT_TYPE_WP         5
    00042 #define PAT_TYPE_WB         6
    00043 #define PAT_TYPE_WEAK_UC    7       // corresponds to PPro PCD=1,PWT=0
    00044 #define PAT_TYPE_MAX        8
    00045
    00046 #include "pshpack1.h"
    00047
    00048 typedef union _PAT {
    00049     struct {
    00050         UCHAR Pat[8];
    00051     } hw;
    00052     ULONGLONG   QuadPart;
    00053 } PAT, *PPAT;
    00054
    00055 #include "poppack.h"