summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_util.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-11-03 10:45:48 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-12-03 15:11:36 +1000
commit8cbe71a6e70b5439ae60bd542231c4b8878a8f1c (patch)
tree3539dd410ffaf0040735d96a1b4ae50ae0f1e70d /drivers/gpu/drm/nouveau/nouveau_util.h
parent19b7fc7bf59f4bf02ee738a79baaccae31220df3 (diff)
drm/nouveau: move bitfield/enum helpers to nouveau_util.c
Reviewed-by: Francisco Jerez <currojerez@riseup.net> 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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_util.h b/drivers/gpu/drm/nouveau/nouveau_util.h
index 9a7a7c18c99a..d9ceaea26f4b 100644
--- a/drivers/gpu/drm/nouveau/nouveau_util.h
+++ b/drivers/gpu/drm/nouveau/nouveau_util.h
@@ -28,6 +28,18 @@
#ifndef __NOUVEAU_UTIL_H__
#define __NOUVEAU_UTIL_H__
+struct nouveau_bitfield {
+ u32 mask;
+ const char *name;
+};
+
+struct nouveau_enum {
+ u32 value;
+ const char *name;
+};
+
+void nouveau_bitfield_print(const struct nouveau_bitfield *, u32 value);
+void nouveau_enum_print(const struct nouveau_enum *, u32 value);
int nouveau_ratelimit(void);
#endif