summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-04-28 16:31:39 +0000
committerMichael Hunold <devnull@localhost>2004-04-28 16:31:39 +0000
commit94f0f02d4bb06b486011d1b642b857c1498a8fea (patch)
treeb7960c76d07f249fdf39748d73e31ac96b245fb0 /linux/include
parent907c2d669e82bbf7c9a86c55c5c8081eb71a91c8 (diff)
downloadmediapointer-dvb-s2-94f0f02d4bb06b486011d1b642b857c1498a8fea.tar.gz
mediapointer-dvb-s2-94f0f02d4bb06b486011d1b642b857c1498a8fea.tar.bz2
- fix some ppc be endianess issues, overlay works fine, grabbing does not work reliably yet, though
Diffstat (limited to 'linux/include')
-rw-r--r--linux/include/media/saa7146.h18
-rw-r--r--linux/include/media/saa7146_vv.h1
2 files changed, 16 insertions, 3 deletions
diff --git a/linux/include/media/saa7146.h b/linux/include/media/saa7146.h
index ef7271db6..2e85e7b19 100644
--- a/linux/include/media/saa7146.h
+++ b/linux/include/media/saa7146.h
@@ -15,9 +15,21 @@
#include <linux/vmalloc.h> /* for vmalloc() */
#include <linux/mm.h> /* for vmalloc_to_page() */
-/* ugly, but necessary to build the dvb stuff under 2.4. */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51)
- #include "dvb_functions.h"
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
+static inline
+int try_module_get(struct module *mod)
+{
+ if (!MOD_CAN_QUERY(mod))
+ return 0;
+ __MOD_INC_USE_COUNT(mod);
+ return 1;
+}
+
+#define module_put(mod) __MOD_DEC_USE_COUNT(mod)
+#define iminor(xx) minor(xx->i_rdev)
+#define strlcpy strncpy
+#define i2c_get_adapdata(adapter) (struct saa7146_dev*)adapter->data;
+
#endif
#define SAA7146_VERSION_CODE KERNEL_VERSION(0,5,0)
diff --git a/linux/include/media/saa7146_vv.h b/linux/include/media/saa7146_vv.h
index 125764f12..b32326295 100644
--- a/linux/include/media/saa7146_vv.h
+++ b/linux/include/media/saa7146_vv.h
@@ -35,6 +35,7 @@ struct saa7146_format {
u32 trans;
u8 depth;
u8 flags;
+ u8 swap;
};
struct saa7146_standard