summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drmP.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-05-13 16:11:32 +1000
committerJonathan Gray <jsg@jsg.id.au>2013-08-12 10:36:54 +1000
commit2b44458bed65d9a8374ca1ea84b29d59de963a16 (patch)
tree31292e728f865f92a0d10186d4be828d87627d93 /sys/dev/pci/drm/drmP.h
parent7c9619aa344806fa83fe8a80ce94dcaf3a884535 (diff)
compile more asic specific files
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r--sys/dev/pci/drm/drmP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index 23ebb79958c..97d43111e88 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -150,6 +150,8 @@ typedef uint32_t __be32;
#define unlikely(x) __builtin_expect(!!(x), 0)
#define likely(x) __builtin_expect(!!(x), 1)
+#define IS_ALIGNED(x, y) (((x) & ((y) - 1)) == 0)
+
#define BUG() \
do { \
panic("BUG at %s:%d", __FILE__, __LINE__); \