summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-core/compat.h
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2002-12-29 22:15:54 +0000
committerMichael Hunold <devnull@localhost>2002-12-29 22:15:54 +0000
commit4ac441dd0b30a80cdcf026cc2952cc547bf5dbad (patch)
tree4c3a932425b22564f32df85049cc7674052b7702 /linux/drivers/media/dvb/dvb-core/compat.h
parentbc7712bb01e71d41013f0b642740832819849d30 (diff)
downloadmediapointer-dvb-s2-4ac441dd0b30a80cdcf026cc2952cc547bf5dbad.tar.gz
mediapointer-dvb-s2-4ac441dd0b30a80cdcf026cc2952cc547bf5dbad.tar.bz2
Major cleanup: the goal is to get rid of the budget card <=> saa7146.o <=> videodev.o dependency,
so we can later split up the av7110 driver into a av7110 and budget card driver. I tested this on 2.4.18-3 (original RedHat 7.3 kernel) and 2.5.53. Changes in detail: saa7146: - fixed the unitialised timer warnings - split saa7146.o into saa7146.o and saa7146_vv.o: all videodev (ie. v4l) related stuff is now encapsulated in saa7146_vv.o. the extension (ie. mxb or dvb-ttpci) now has to make sure to register the v4l devices via helper functions provided by saa7146_vv mxb: - changes to make the driver compile with the new saa7146 and saa7146_vv parts - fix the vbi bypass issue for MXBs with saa7146, rev. 1 card av7110: - changes to make the driver compile with the new saa7146 and saa7146_vv parts - some changes related to the upcoming av7110 <=> budget splitup, but they are commented out - changed the saa7146 PAL values to experimental values that look good to me, but kept the old values as a comment. where are the original values from? there is a big black border on most channels on the left side which annoyed me... - changed from video/generic_usercopy() to dvb_usercopy() and put this into the source code, not into compat.c - moved the crc_32* stuff from compat.c to the source file where it is used - now compat.[ch] was removed completely, all references were deleted from all other files. other: - updated the README and TODO files - changed "makelinks" to remove alps_bsru6 stuff from kernel when making the symlinks - fixed the build files in "build-2.4" - fixed all other files needed for 2.5.x kernel build
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core/compat.h')
-rw-r--r--linux/drivers/media/dvb/dvb-core/compat.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/compat.h b/linux/drivers/media/dvb/dvb-core/compat.h
deleted file mode 100644
index 369de4d34..000000000
--- a/linux/drivers/media/dvb/dvb-core/compat.h
+++ /dev/null
@@ -1,78 +0,0 @@
-#ifndef __CRAP_H
-#define __CRAP_H
-
-/**
- * compatibility crap for old kernels. No guarantee for a working driver
- * even when everything compiles.
- */
-
-
-#include <linux/module.h>
-#include <linux/list.h>
-#include <linux/videodev.h>
-
-
-#ifndef MODULE_LICENSE
-#define MODULE_LICENSE(x)
-#endif
-
-#ifndef list_for_each_safe
-#define list_for_each_safe(pos, n, head) \
- for (pos = (head)->next, n = pos->next; pos != (head); \
- pos = n, n = pos->next)
-#endif
-
-#ifndef __devexit_p
-#if defined(MODULE)
-#define __devexit_p(x) x
-#else
-#define __devexit_p(x) NULL
-#endif
-#endif
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) || !CONFIG_VIDEO_DEV
-#define video_usercopy generic_usercopy
-
-extern int generic_usercopy(struct inode *inode, struct file *file,
- unsigned int cmd, unsigned long arg,
- int (*func)(struct inode *inode, struct file *file,
- unsigned int cmd, void *arg));
-#endif
-
-#ifndef minor
-#define minor(dev) MINOR(dev)
-#endif
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,20))
-static inline
-void cond_resched (void)
-{
- if (current->need_resched)
- schedule();
-}
-#endif
-
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
-extern u32 crc32_le (u32 crc, unsigned char const *p, size_t len);
-#else
-#include <linux/crc32.h>
-#endif
-
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,48))
-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)
-#endif
-
-
-#endif
-