X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Documentation%2Fmtrr.txt;fp=Documentation%2Fmtrr.txt;h=b78af1c329967adcd5da3c7a9098d351b034645d;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=c39ac395970ecfa7ee58dada23478c886952a415;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/Documentation/mtrr.txt b/Documentation/mtrr.txt index c39ac3959..b78af1c32 100644 --- a/Documentation/mtrr.txt +++ b/Documentation/mtrr.txt @@ -138,29 +138,19 @@ Reading MTRRs from a C program using ioctl()'s: */ #include -#include #include #include #include #include #include #include +#define MTRR_NEED_STRINGS #include #define TRUE 1 #define FALSE 0 #define ERRSTRING strerror (errno) -static char *mtrr_strings[MTRR_NUM_TYPES] = -{ - "uncachable", /* 0 */ - "write-combining", /* 1 */ - "?", /* 2 */ - "?", /* 3 */ - "write-through", /* 4 */ - "write-protect", /* 5 */ - "write-back", /* 6 */ -}; int main () { @@ -242,22 +232,13 @@ Creating MTRRs from a C programme using ioctl()'s: #include #include #include +#define MTRR_NEED_STRINGS #include #define TRUE 1 #define FALSE 0 #define ERRSTRING strerror (errno) -static char *mtrr_strings[MTRR_NUM_TYPES] = -{ - "uncachable", /* 0 */ - "write-combining", /* 1 */ - "?", /* 2 */ - "?", /* 3 */ - "write-through", /* 4 */ - "write-protect", /* 5 */ - "write-back", /* 6 */ -}; int main (int argc, char **argv) {