lkml.org 
[lkml]   [2006]   [Apr]   [5]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Doc; fix mtrr userspace programs to build cleanly
FromXavier Bestel <>
DateWed, 05 Apr 2006 12:22:24 +0200
Hi,

On Wed, 2006-04-05 at 05:15, Randy.Dunlap wrote:
> +static char *mtrr_strings[MTRR_NUM_TYPES] =
> +{
> +    "uncachable",               /* 0 */
> +    "write-combining",          /* 1 */
> +    "?",                        /* 2 */
> +    "?",                        /* 3 */
> +    "write-through",            /* 4 */
> +    "write-protect",            /* 5 */
> +    "write-back",               /* 6 */
> +};

How about something like that ?

+static char *mtrr_strings[MTRR_NUM_TYPES] =
+{
+    [MTRR_TYPE_UNCACHABLE] = "uncachable",               /* 0 */
+    [MTRR_TYPE_WRCOMB]     = "write-combining",          /* 1 */
+                             "?",                        /* 2 */
+                             "?",                        /* 3 */
+    [MTRR_TYPE_WRTHROUGH]  = "write-through",            /* 4 */
+    [MTRR_TYPE_WRPROT]     = "write-protect",            /* 5 */
+    [MTRR_TYPE_WRBACK]     = "write-back",               /* 6 */
+};
(Dunno if it's that helpful though).

	Xav


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-05 10:25    [W:0.133 / U:0.000 seconds]
©2003-2008 Jasper Spaans