* xlat.h (XLAT_TYPE): New macro, similar to XLAT but casts
to the specified type instead of unsigned int.
(XLAT_TYPE_PAIR): New macro, similar to XLAT_PAIR but casts
to the specified type instead of unsigned int.
# define XLAT(val) { (unsigned)(val), #val }
# define XLAT_PAIR(val, str) { (unsigned)(val), str }
+# define XLAT_TYPE(type, val) { (type)(val), #val }
+# define XLAT_TYPE_PAIR(val, str) { (type)(val), str }
# define XLAT_END { 0, 0 }
#endif