1#ifndef __NOUVEAU_ENUM_H__ 2#define __NOUVEAU_ENUM_H__ 3 4struct nouveau_enum { 5 u32 value; 6 const char *name; 7 const void *data; 8 u32 data2; 9}; 10 11const struct nouveau_enum * 12nouveau_enum_find(const struct nouveau_enum *, u32 value); 13 14const struct nouveau_enum * 15nouveau_enum_print(const struct nouveau_enum *en, u32 value); 16 17struct nouveau_bitfield { 18 u32 mask; 19 const char *name; 20}; 21 22void nouveau_bitfield_print(const struct nouveau_bitfield *, u32 value); 23 24#endif 25