Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
mtrr.h File Reference
#include <linux/types.h>
#include <linux/ioctl.h>
#include <linux/errno.h>

Go to the source code of this file.

Data Structures

struct  mtrr_sentry
 
struct  mtrr_gentry
 
struct  mtrr_var_range
 
struct  mtrr_state_type
 

Macros

#define MTRR_IOCTL_BASE   'M'
 
#define MTRR_NUM_FIXED_RANGES   88
 
#define MTRR_MAX_VAR_RANGES   256
 
#define MTRRphysBase_MSR(reg)   (0x200 + 2 * (reg))
 
#define MTRRphysMask_MSR(reg)   (0x200 + 2 * (reg) + 1)
 
#define MTRRIOC_ADD_ENTRY   _IOW(MTRR_IOCTL_BASE, 0, struct mtrr_sentry)
 
#define MTRRIOC_SET_ENTRY   _IOW(MTRR_IOCTL_BASE, 1, struct mtrr_sentry)
 
#define MTRRIOC_DEL_ENTRY   _IOW(MTRR_IOCTL_BASE, 2, struct mtrr_sentry)
 
#define MTRRIOC_GET_ENTRY   _IOWR(MTRR_IOCTL_BASE, 3, struct mtrr_gentry)
 
#define MTRRIOC_KILL_ENTRY   _IOW(MTRR_IOCTL_BASE, 4, struct mtrr_sentry)
 
#define MTRRIOC_ADD_PAGE_ENTRY   _IOW(MTRR_IOCTL_BASE, 5, struct mtrr_sentry)
 
#define MTRRIOC_SET_PAGE_ENTRY   _IOW(MTRR_IOCTL_BASE, 6, struct mtrr_sentry)
 
#define MTRRIOC_DEL_PAGE_ENTRY   _IOW(MTRR_IOCTL_BASE, 7, struct mtrr_sentry)
 
#define MTRRIOC_GET_PAGE_ENTRY   _IOWR(MTRR_IOCTL_BASE, 8, struct mtrr_gentry)
 
#define MTRRIOC_KILL_PAGE_ENTRY   _IOW(MTRR_IOCTL_BASE, 9, struct mtrr_sentry)
 
#define MTRR_TYPE_UNCACHABLE   0
 
#define MTRR_TYPE_WRCOMB   1
 
#define MTRR_TYPE_WRTHROUGH   4
 
#define MTRR_TYPE_WRPROT   5
 
#define MTRR_TYPE_WRBACK   6
 
#define MTRR_NUM_TYPES   7
 

Typedefs

typedef __u8 mtrr_type
 

Macro Definition Documentation

#define MTRR_IOCTL_BASE   'M'

Definition at line 30 of file mtrr.h.

#define MTRR_MAX_VAR_RANGES   256

Definition at line 81 of file mtrr.h.

#define MTRR_NUM_FIXED_RANGES   88

Definition at line 80 of file mtrr.h.

#define MTRR_NUM_TYPES   7

Definition at line 114 of file mtrr.h.

#define MTRR_TYPE_UNCACHABLE   0

Definition at line 107 of file mtrr.h.

#define MTRR_TYPE_WRBACK   6

Definition at line 113 of file mtrr.h.

#define MTRR_TYPE_WRCOMB   1

Definition at line 108 of file mtrr.h.

#define MTRR_TYPE_WRPROT   5

Definition at line 112 of file mtrr.h.

#define MTRR_TYPE_WRTHROUGH   4

Definition at line 111 of file mtrr.h.

#define MTRRIOC_ADD_ENTRY   _IOW(MTRR_IOCTL_BASE, 0, struct mtrr_sentry)

Definition at line 95 of file mtrr.h.

#define MTRRIOC_ADD_PAGE_ENTRY   _IOW(MTRR_IOCTL_BASE, 5, struct mtrr_sentry)

Definition at line 100 of file mtrr.h.

#define MTRRIOC_DEL_ENTRY   _IOW(MTRR_IOCTL_BASE, 2, struct mtrr_sentry)

Definition at line 97 of file mtrr.h.

#define MTRRIOC_DEL_PAGE_ENTRY   _IOW(MTRR_IOCTL_BASE, 7, struct mtrr_sentry)

Definition at line 102 of file mtrr.h.

#define MTRRIOC_GET_ENTRY   _IOWR(MTRR_IOCTL_BASE, 3, struct mtrr_gentry)

Definition at line 98 of file mtrr.h.

#define MTRRIOC_GET_PAGE_ENTRY   _IOWR(MTRR_IOCTL_BASE, 8, struct mtrr_gentry)

Definition at line 103 of file mtrr.h.

#define MTRRIOC_KILL_ENTRY   _IOW(MTRR_IOCTL_BASE, 4, struct mtrr_sentry)

Definition at line 99 of file mtrr.h.

#define MTRRIOC_KILL_PAGE_ENTRY   _IOW(MTRR_IOCTL_BASE, 9, struct mtrr_sentry)

Definition at line 104 of file mtrr.h.

#define MTRRIOC_SET_ENTRY   _IOW(MTRR_IOCTL_BASE, 1, struct mtrr_sentry)

Definition at line 96 of file mtrr.h.

#define MTRRIOC_SET_PAGE_ENTRY   _IOW(MTRR_IOCTL_BASE, 6, struct mtrr_sentry)

Definition at line 101 of file mtrr.h.

#define MTRRphysBase_MSR (   reg)    (0x200 + 2 * (reg))

Definition at line 91 of file mtrr.h.

#define MTRRphysMask_MSR (   reg)    (0x200 + 2 * (reg) + 1)

Definition at line 92 of file mtrr.h.

Typedef Documentation

typedef __u8 mtrr_type

Definition at line 78 of file mtrr.h.