summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2004-10-28 19:10:06 +0000
committerHolger Waechtler <devnull@localhost>2004-10-28 19:10:06 +0000
commit2d1bd0b2d37f0e301b1031037ff2c7134a80bca4 (patch)
treec67b879d62bb5a3ef913368b5ccfe1832309c552
parent25da23146538519f0f644671c49868bfb560740a (diff)
downloadmediapointer-dvb-s2-2d1bd0b2d37f0e301b1031037ff2c7134a80bca4.tar.gz
mediapointer-dvb-s2-2d1bd0b2d37f0e301b1031037ff2c7134a80bca4.tar.bz2
- remap_page_range() --> remap_pfn_range()
- fix typo in Kconfig help
-rw-r--r--linux/drivers/media/dvb/cinergyT2/Kconfig6
-rw-r--r--linux/drivers/media/dvb/cinergyT2/cinergyT2.c39
2 files changed, 16 insertions, 29 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/Kconfig b/linux/drivers/media/dvb/cinergyT2/Kconfig
index fb1e4316b..226714085 100644
--- a/linux/drivers/media/dvb/cinergyT2/Kconfig
+++ b/linux/drivers/media/dvb/cinergyT2/Kconfig
@@ -23,8 +23,10 @@ config DVB_CINERGYT2_STREAM_URB_COUNT
depends on DVB_CINERGYT2_TUNING
default "32"
help
- USB Request Blocks for Highspeed Stream transfers are queued in a
- for the Host Controller. Usually the default value is a safe choice.
+ USB Request Blocks for Highspeed Stream transfers are scheduled in
+ a queue for the Host Controller.
+
+ Usually the default value is a safe choice.
You may increase this number if you are using this device in a
Server Environment with many high-traffic USB Highspeed devices
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
index ad1aed31a..6f74af062 100644
--- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -57,8 +57,14 @@ static int debug;
module_param_named(debug, debug, int, 0644);
MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off).");
-#define dprintk(level, args...) \
- do { if ((debug & level)) { printk("%s: %s(): ",__stringify(KBUILD_MODNAME), __FUNCTION__); printk(args); } } while (0)
+#define dprintk(level, args...) \
+do { \
+ if ((debug & level)) { \
+ printk("%s: %s(): ", __stringify(KBUILD_MODNAME), \
+ __FUNCTION__); \
+ printk(args); } \
+} while (0)
+
enum cinergyt2_ep1_cmd {
CINERGYT2_EP1_PID_TABLE_RESET = 0x01,
@@ -72,27 +78,6 @@ enum cinergyt2_ep1_cmd {
CINERGYT2_EP1_SLEEP_MODE = 0x09
};
-struct dvbt_set_parameters_msg {
- uint8_t cmd;
- uint32_t freq;
- uint8_t bandwidth;
- uint16_t tps;
- uint8_t flags;
-} __attribute__((packed));
-
-struct dvbt_get_status_msg {
- uint32_t freq;
- uint8_t bandwidth;
- uint16_t tps;
- uint8_t flags;
- uint16_t gain;
- uint8_t snr;
- uint32_t viterbi_error_rate;
- uint32_t rs_error_rate;
- uint32_t uncorrected_block_count;
- uint8_t lock_bits;
- uint8_t prev_lock_bits;
-} __attribute__((packed));
struct dvbt_set_parameters_msg {
uint8_t cmd;
@@ -660,10 +645,10 @@ int cinergyt2_mmap(struct file *file, struct vm_area_struct *vma)
vma->vm_flags |= (VM_IO | VM_DONTCOPY);
vma->vm_file = file;
- ret = remap_page_range(vma, vma->vm_start,
- virt_to_phys(cinergyt2->streambuf),
- vma->vm_end - vma->vm_start,
- vma->vm_page_prot) ? -EAGAIN : 0;
+ ret = remap_pfn_range(vma, vma->vm_start >> PAGE_SHIFT,
+ virt_to_phys(cinergyt2->streambuf),
+ vma->vm_end - vma->vm_start,
+ vma->vm_page_prot) ? -EAGAIN : 0;
bailout:
unlock_kernel();
return ret;