summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drmP.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r--sys/dev/pci/drm/drmP.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index ce40f491378..dd2cd02ca0f 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -251,6 +251,15 @@ IS_ERR_OR_NULL(const void *ptr)
#define be32_to_cpup(x) betoh32(*x)
+#ifdef __macppc__
+static __inline int
+of_machine_is_compatible(const char *model)
+{
+ extern char *hw_prod;
+ return (strcmp(model, hw_prod) == 0);
+}
+#endif
+
static inline unsigned long
roundup_pow_of_two(unsigned long x)
{