Merge branch 'master' of git://1984.lsi.us.es/nf-next
[profile/ivi/kernel-adaptation-intel-automotive.git] / drivers / gpu / drm / nouveau / core / include / core / enum.h
1 #ifndef __NOUVEAU_ENUM_H__
2 #define __NOUVEAU_ENUM_H__
3
4 struct nouveau_enum {
5         u32 value;
6         const char *name;
7         const void *data;
8 };
9
10 const struct nouveau_enum *
11 nouveau_enum_find(const struct nouveau_enum *, u32 value);
12
13 void
14 nouveau_enum_print(const struct nouveau_enum *en, u32 value);
15
16 struct nouveau_bitfield {
17         u32 mask;
18         const char *name;
19 };
20
21 void nouveau_bitfield_print(const struct nouveau_bitfield *, u32 value);
22
23 #endif