summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_util.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-03-08 08:39:43 +1000
committerBen Skeggs <bskeggs@redhat.com>2011-03-14 16:31:50 +1000
commitbb9b18a390db4a15cd46bbd7472510feb7d4c168 (patch)
treec1772c7007697097c55d7396b6a1c01ad9fea397 /drivers/gpu/drm/nouveau/nouveau_util.h
parent7fa0cba2b269fa498804a89a0a1d763ea1f65015 (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.h4
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 d9ceaea26f4..b97719fbb73 100644
--- a/drivers/gpu/drm/nouveau/nouveau_util.h
+++ b/drivers/gpu/drm/nouveau/nouveau_util.h
@@ -36,10 +36,14 @@ struct nouveau_bitfield {
struct nouveau_enum {
u32 value;
const char *name;
+ void *data;
};
void nouveau_bitfield_print(const struct nouveau_bitfield *, u32 value);
void nouveau_enum_print(const struct nouveau_enum *, u32 value);
+const struct nouveau_enum *
+nouveau_enum_find(const struct nouveau_enum *, u32 value);
+
int nouveau_ratelimit(void);
#endif