OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-i386/] [mtrr.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*  Generic MTRR (Memory Type Range Register) ioctls.
2
 
3
    Copyright (C) 1997  Richard Gooch
4
 
5
    This library is free software; you can redistribute it and/or
6
    modify it under the terms of the GNU Library General Public
7
    License as published by the Free Software Foundation; either
8
    version 2 of the License, or (at your option) any later version.
9
 
10
    This library is distributed in the hope that it will be useful,
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
    Library General Public License for more details.
14
 
15
    You should have received a copy of the GNU Library General Public
16
    License along with this library; if not, write to the Free
17
    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
 
19
    Richard Gooch may be reached by email at  rgooch@atnf.csiro.au
20
    The postal address is:
21
      Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia.
22
 
23
    modified by Mathias Fr"ohlich, Jan, 1998
24
    <frohlich@na.uni-tuebingen.de>
25
*/
26
#ifndef _LINUX_MTRR_H
27
#define _LINUX_MTRR_H
28
 
29
/*  These are the region types  */
30
#define MTRR_TYPE_UNCACHABLE 0
31
#define MTRR_TYPE_WRCOMB     1
32
/*#define MTRR_TYPE_         2*/
33
/*#define MTRR_TYPE_         3*/
34
#define MTRR_TYPE_WRTHROUGH  4
35
#define MTRR_TYPE_WRPROT     5
36
#define MTRR_TYPE_WRBACK     6
37
#define MTRR_NUM_TYPES       7
38
 
39
static char *attrib_to_str (int x) __attribute__ ((unused));
40
 
41
static char *attrib_to_str (int x)
42
{
43
        switch (x) {
44
        case 0: return "uncachable";
45
        case 1: return "write-combining";
46
        case 4: return "write-through";
47
        case 5: return "write-protect";
48
        case 6: return "write-back";
49
        default: return "?";
50
        }
51
}   /*  End Function attrib_to_str  */
52
 
53
#ifdef __KERNEL__
54
 
55
#ifdef CONFIG_MTRR
56
 
57
extern void check_mtrr_config(void);
58
extern void init_mtrr_config(void);
59
/* extern void set_mtrr_config(void); */
60
 
61
#endif /* CONFIG_MTRR */
62
 
63
#endif /* __KERNEL__ */
64
 
65
#endif /* _LINUX_MTRR_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.