diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-03-07 17:39:43 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-03-14 02:31:50 -0400 |
commit | bb9b18a390db4a15cd46bbd7472510feb7d4c168 (patch) | |
tree | c1772c7007697097c55d7396b6a1c01ad9fea397 /drivers/gpu/drm/nouveau/nouveau_util.h | |
parent | 7fa0cba2b269fa498804a89a0a1d763ea1f65015 (diff) |
drm/nouveau: add nouveau_enum_find() util function
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_util.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_util.h b/drivers/gpu/drm/nouveau/nouveau_util.h index d9ceaea26f4b..b97719fbb739 100644 --- a/drivers/gpu/drm/nouveau/nouveau_util.h +++ b/drivers/gpu/drm/nouveau/nouveau_util.h | |||
@@ -36,10 +36,14 @@ struct nouveau_bitfield { | |||
36 | struct nouveau_enum { | 36 | struct nouveau_enum { |
37 | u32 value; | 37 | u32 value; |
38 | const char *name; | 38 | const char *name; |
39 | void *data; | ||
39 | }; | 40 | }; |
40 | 41 | ||
41 | void nouveau_bitfield_print(const struct nouveau_bitfield *, u32 value); | 42 | void nouveau_bitfield_print(const struct nouveau_bitfield *, u32 value); |
42 | void nouveau_enum_print(const struct nouveau_enum *, u32 value); | 43 | void nouveau_enum_print(const struct nouveau_enum *, u32 value); |
44 | const struct nouveau_enum * | ||
45 | nouveau_enum_find(const struct nouveau_enum *, u32 value); | ||
46 | |||
43 | int nouveau_ratelimit(void); | 47 | int nouveau_ratelimit(void); |
44 | 48 | ||
45 | #endif | 49 | #endif |