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 | u32 data2; |
9 | }; |
10 | |
11 | const struct nouveau_enum * |
12 | nouveau_enum_find(const struct nouveau_enum *, u32 value); |
13 | |
14 | const struct nouveau_enum * |
15 | nouveau_enum_print(const struct nouveau_enum *en, u32 value); |
16 | |
17 | struct nouveau_bitfield { |
18 | u32 mask; |
19 | const char *name; |
20 | }; |
21 | |
22 | void nouveau_bitfield_print(const struct nouveau_bitfield *, u32 value); |
23 | |
24 | #endif |
25 |