summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-06-03 18:13:23 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-06-03 18:13:23 -0300
commit44643ca470044ddd9b01cf78c51ec22b1e0494a7 (patch)
tree7c5ca3584a3f2bc65cb1cea81a4ff463159b62c8 /v4l/compat.h
parent7288f7ce4c594f7332bd451b8a97888b695b5ce6 (diff)
parent480df628e9153e3669da57b2a41eacc00666066c (diff)
downloadmediapointer-dvb-s2-44643ca470044ddd9b01cf78c51ec22b1e0494a7.tar.gz
mediapointer-dvb-s2-44643ca470044ddd9b01cf78c51ec22b1e0494a7.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/tda18271
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 04950ea74..644906eb0 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -533,6 +533,14 @@ do { \
le16_to_cpu(get_unaligned((unsigned short *)(a)))
#define put_unaligned_le16(r, a) \
put_unaligned(cpu_to_le16(r), ((unsigned short *)(a)))
+#define get_unaligned_be32(a) \
+ be32_to_cpu(get_unaligned((unsigned short *)(a)))
+#define put_unaligned_be32(r, a) \
+ put_unaligned(cpu_to_be32(r), ((unsigned short *)(a)))
+#define get_unaligned_le32(a) \
+ le32_to_cpu(get_unaligned((unsigned short *)(a)))
+#define put_unaligned_le32(r, a) \
+ put_unaligned(cpu_to_le32(r), ((unsigned short *)(a)))
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
#ifdef CONFIG_PROC_FS