summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-03-21 10:31:01 +0000
committerHolger Waechtler <devnull@localhost>2003-03-21 10:31:01 +0000
commitc2d841f465a26e84edd2e2ff833d3b096110decc (patch)
tree07c76366d3592178935e5ed6b96e7f0485ba062f
parent5e064103ecee4a255b1aeccbb42f7e4bac1a0a1c (diff)
downloadmediapointer-dvb-s2-c2d841f465a26e84edd2e2ff833d3b096110decc.tar.gz
mediapointer-dvb-s2-c2d841f465a26e84edd2e2ff833d3b096110decc.tar.bz2
- include "compat.h" always, we definitely need this trashcan...
- replaced uint32_t and friends by u32 & co., for now only in frontend.h - everything else will take us in hell when we start to port this driver...
-rw-r--r--linux/drivers/media/dvb/dvb-core/compat.h1
-rw-r--r--linux/drivers/media/dvb/dvb-core/dmxdev.c4
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_demux.c7
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_frontend.c6
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_i2c.c8
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_net.c6
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c6
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.h1
-rw-r--r--linux/include/linux/dvb/frontend.h48
9 files changed, 39 insertions, 48 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/compat.h b/linux/drivers/media/dvb/dvb-core/compat.h
index 35471c721..92ba960a0 100644
--- a/linux/drivers/media/dvb/dvb-core/compat.h
+++ b/linux/drivers/media/dvb/dvb-core/compat.h
@@ -3,6 +3,7 @@
#include <asm/uaccess.h>
#include <linux/version.h>
+#include <linux/fs.h>
/**
* compatibility crap for old kernels. No guarantee for a working driver
diff --git a/linux/drivers/media/dvb/dvb-core/dmxdev.c b/linux/drivers/media/dvb/dvb-core/dmxdev.c
index aa9612cea..56fd12ca4 100644
--- a/linux/drivers/media/dvb/dvb-core/dmxdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dmxdev.c
@@ -27,10 +27,8 @@
#include <asm/uaccess.h>
#include "dmxdev.h"
+#include "compat.h"
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51)
- #include "compat.h"
-#endif
//MODULE_DESCRIPTION("");
//MODULE_AUTHOR("Ralph Metzler, Marcus Metzler");
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_demux.c b/linux/drivers/media/dvb/dvb-core/dvb_demux.c
index f52a408fe..a7e67c8e9 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_demux.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_demux.c
@@ -27,13 +27,8 @@
#include <linux/version.h>
#include <asm/uaccess.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51)
- #include "compat.h"
-#else
- #include <linux/crc32.h>
-#endif
-
#include "dvb_demux.h"
+#include "compat.h"
#define NOBUFS
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
index 34a337bf3..6049dbf44 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -22,12 +22,16 @@
* Or, point your browser to http://www.gnu.org/copyleft/gpl.html
*/
+#include <asm/processor.h>
+#include <asm/semaphore.h>
+#include <asm/errno.h>
+#include <linux/kernel.h>
#include <linux/sched.h>
+#include <linux/wait.h>
#include <linux/smp_lock.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/module.h>
-#include <linux/compatmac.h>
#include <linux/list.h>
#include "dvb_frontend.h"
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_i2c.c b/linux/drivers/media/dvb/dvb-core/dvb_i2c.c
index bc1bdcbac..680e0aa9c 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_i2c.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_i2c.c
@@ -19,16 +19,16 @@
* Or, point your browser to http://www.gnu.org/copyleft/gpl.html
*/
+#include <asm/semaphore.h>
+#include <asm/errno.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51)
- #include "compat.h"
-#endif
-
#include "dvb_i2c.h"
+#include "compat.h"
+
struct dvb_i2c_device {
struct list_head list_head;
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_net.c b/linux/drivers/media/dvb/dvb-core/dvb_net.c
index 30bc41dba..f1059425b 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_net.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c
@@ -27,12 +27,12 @@
#include <asm/uaccess.h>
#include <linux/dvb/net.h>
+
#include "dvb_demux.h"
#include "dvb_net.h"
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51)
- #include "compat.h"
-#endif
+#include "compat.h"
+
#define DVB_NET_MULTICAST_MAX 10
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index 71929aafb..267bc1fa4 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -21,8 +21,6 @@
*
*/
-/*#define CONFIG_DVB_DEVFS_ONLY 1*/
-
#include <linux/config.h>
#include <linux/version.h>
#include <linux/module.h>
@@ -39,10 +37,8 @@
#include <linux/slab.h>
#include "dvbdev.h"
+#include "compat.h"
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51)
- #include "compat.h"
-#endif
static int dvbdev_debug = 0;
#define dprintk if (dvbdev_debug) printk
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.h b/linux/drivers/media/dvb/dvb-core/dvbdev.h
index f472ed178..d374e4e0e 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.h
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.h
@@ -27,6 +27,7 @@
#include <linux/types.h>
#include <linux/version.h>
#include <linux/poll.h>
+#include <linux/fs.h>
#include <linux/devfs_fs_kernel.h>
#include <linux/list.h>
diff --git a/linux/include/linux/dvb/frontend.h b/linux/include/linux/dvb/frontend.h
index 8b17d6c2e..68b61355b 100644
--- a/linux/include/linux/dvb/frontend.h
+++ b/linux/include/linux/dvb/frontend.h
@@ -26,11 +26,7 @@
#ifndef _DVBFRONTEND_H_
#define _DVBFRONTEND_H_
-#ifdef __KERNEL__
#include <linux/types.h>
-#else
-#include <stdint.h>
-#endif
typedef enum fe_type {
@@ -72,14 +68,14 @@ typedef enum fe_caps {
struct dvb_frontend_info {
char name[128];
fe_type_t type;
- uint32_t frequency_min;
- uint32_t frequency_max;
- uint32_t frequency_stepsize;
- uint32_t frequency_tolerance;
- uint32_t symbol_rate_min;
- uint32_t symbol_rate_max;
- uint32_t symbol_rate_tolerance; /* ppm */
- uint32_t notifier_delay; /* ms */
+ u32 frequency_min;
+ u32 frequency_max;
+ u32 frequency_stepsize;
+ u32 frequency_tolerance;
+ u32 symbol_rate_min;
+ u32 symbol_rate_max;
+ u32 symbol_rate_tolerance; /* ppm */
+ u32 notifier_delay; /* ms */
fe_caps_t caps;
};
@@ -89,16 +85,16 @@ struct dvb_frontend_info {
* the meaning of this struct...
*/
struct dvb_diseqc_master_cmd {
- uint8_t msg [6]; /* { framing, address, command, data [3] } */
- uint8_t msg_len; /* valid values are 3...6 */
+ u8 msg [6]; /* { framing, address, command, data [3] } */
+ u8 msg_len; /* valid values are 3...6 */
};
struct dvb_diseqc_slave_reply {
- uint8_t msg [4]; /* { framing, data [3] } */
- uint8_t msg_len; /* valid values are 0...4, 0 means no msg */
- int timeout; /* return from ioctl after timeout ms with */
-}; /* errorcode when no message was received */
+ u8 msg [4]; /* { framing, data [3] } */
+ u8 msg_len; /* valid values are 0...4, 0 means no msg */
+ int timeout; /* return from ioctl after timeout ms with */
+}; /* errorcode when no message was received */
typedef enum fe_sec_voltage {
@@ -195,13 +191,13 @@ typedef enum fe_hierarchy {
struct dvb_qpsk_parameters {
- uint32_t symbol_rate; /* symbol rate in Symbols per second */
+ u32 symbol_rate; /* symbol rate in Symbols per second */
fe_code_rate_t fec_inner; /* forward error correction (see above) */
};
struct dvb_qam_parameters {
- uint32_t symbol_rate; /* symbol rate in Symbols per second */
+ u32 symbol_rate; /* symbol rate in Symbols per second */
fe_code_rate_t fec_inner; /* forward error correction (see above) */
fe_modulation_t modulation; /* modulation type (see above) */
};
@@ -219,8 +215,8 @@ struct dvb_ofdm_parameters {
struct dvb_frontend_parameters {
- uint32_t frequency; /* (absolute) frequency in Hz for QAM/OFDM */
- /* intermediate frequency in kHz for QPSK */
+ u32 frequency; /* (absolute) frequency in Hz for QAM/OFDM */
+ /* intermediate frequency in kHz for QPSK */
fe_spectral_inversion_t inversion;
union {
struct dvb_qpsk_parameters qpsk;
@@ -249,10 +245,10 @@ struct dvb_frontend_event {
#define FE_ENABLE_HIGH_LNB_VOLTAGE _IO('o', 68) /* int */
#define FE_READ_STATUS _IOR('o', 69, fe_status_t)
-#define FE_READ_BER _IOR('o', 70, uint32_t)
-#define FE_READ_SIGNAL_STRENGTH _IOR('o', 71, uint16_t)
-#define FE_READ_SNR _IOR('o', 72, uint16_t)
-#define FE_READ_UNCORRECTED_BLOCKS _IOR('o', 73, uint32_t)
+#define FE_READ_BER _IOR('o', 70, u32)
+#define FE_READ_SIGNAL_STRENGTH _IOR('o', 71, u16)
+#define FE_READ_SNR _IOR('o', 72, u16)
+#define FE_READ_UNCORRECTED_BLOCKS _IOR('o', 73, u32)
#define FE_SET_FRONTEND _IOW('o', 76, struct dvb_frontend_parameters)
#define FE_GET_FRONTEND _IOR('o', 77, struct dvb_frontend_parameters)