summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dibusb/dvb-dibusb.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/dibusb/dvb-dibusb.h')
-rw-r--r--linux/drivers/media/dvb/dibusb/dvb-dibusb.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb.h b/linux/drivers/media/dvb/dibusb/dvb-dibusb.h
index 6ccdc3fe3..e42182502 100644
--- a/linux/drivers/media/dvb/dibusb/dvb-dibusb.h
+++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb.h
@@ -1,8 +1,8 @@
/*
* dvb-dibusb.h
- *
+ *
* Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@desy.de)
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, version 2.
@@ -105,7 +105,7 @@ extern struct dibusb_tuner dibusb_tuner[];
#define DIBUSB_POSSIBLE_I2C_ADDR_NUM 4
struct dibusb_demod {
dibusb_demodulator_t id;
-
+
int pid_filter_count; /* counter of the internal pid_filter */
u8 i2c_addrs[DIBUSB_POSSIBLE_I2C_ADDR_NUM]; /* list of possible i2c addresses of the demod */
};
@@ -113,13 +113,13 @@ struct dibusb_demod {
#define DIBUSB_MAX_TUNER_NUM 2
struct dibusb_device_class {
dibusb_class_t id;
-
+
const struct dibusb_usb_controller *usb_ctrl; /* usb controller */
const char *firmware; /* valid firmware filenames */
int pipe_cmd; /* command pipe (read/write) */
int pipe_data; /* data pipe */
-
+
int urb_count; /* number of data URBs to be submitted */
int urb_buffer_size; /* the size of the buffer for each URB */
@@ -155,21 +155,21 @@ struct usb_dibusb {
#define DIBUSB_STATE_INIT 0x000
#define DIBUSB_STATE_URB_LIST 0x001
#define DIBUSB_STATE_URB_BUF 0x002
-#define DIBUSB_STATE_URB_SUBMIT 0x004
+#define DIBUSB_STATE_URB_SUBMIT 0x004
#define DIBUSB_STATE_DVB 0x008
#define DIBUSB_STATE_I2C 0x010
#define DIBUSB_STATE_REMOTE 0x020
int init_state;
-
+
int feedcount;
struct dib_fe_xfer_ops xfer_ops;
struct dibusb_tuner *tuner;
-
+
struct urb **urb_list;
u8 *buffer;
dma_addr_t dma_handle;
-
+
/* I2C */
struct i2c_adapter i2c_adap;
@@ -235,11 +235,11 @@ int dibusb_urb_exit(struct usb_dibusb *);
/* i2c and transfer stuff */
#define DIBUSB_I2C_TIMEOUT HZ*5
-/*
+/*
* protocol of all dibusb related devices
*/
-/*
+/*
* bulk msg to/from endpoint 0x01
*
* general structure:
@@ -249,23 +249,23 @@ int dibusb_urb_exit(struct usb_dibusb *);
#define DIBUSB_REQ_START_READ 0x00
#define DIBUSB_REQ_START_DEMOD 0x01
-/*
- * i2c read
+/*
+ * i2c read
* bulk write: 0x02 ((7bit i2c_addr << 1) & 0x01) register_bytes length_word
* bulk read: byte_buffer (length_word bytes)
*/
-#define DIBUSB_REQ_I2C_READ 0x02
-
+#define DIBUSB_REQ_I2C_READ 0x02
+
/*
* i2c write
* bulk write: 0x03 (7bit i2c_addr << 1) register_bytes value_bytes
*/
-#define DIBUSB_REQ_I2C_WRITE 0x03
+#define DIBUSB_REQ_I2C_WRITE 0x03
-/*
- * polling the value of the remote control
+/*
+ * polling the value of the remote control
* bulk write: 0x04
- * bulk read: byte_buffer (5 bytes)
+ * bulk read: byte_buffer (5 bytes)
*
* first byte of byte_buffer shows the status (0x00, 0x01, 0x02)
*/
@@ -280,35 +280,35 @@ int dibusb_urb_exit(struct usb_dibusb *);
#define DIBUSB_RC_HAUPPAUGE_KEY_EMPTY 0x03
/* streaming mode:
- * bulk write: 0x05 mode_byte
+ * bulk write: 0x05 mode_byte
*
* mode_byte is mostly 0x00
*/
#define DIBUSB_REQ_SET_STREAMING_MODE 0x05
/* interrupt the internal read loop, when blocking */
-#define DIBUSB_REQ_INTR_READ 0x06
+#define DIBUSB_REQ_INTR_READ 0x06
/* io control
* 0x07 cmd_byte param_bytes
*
* param_bytes can be up to 32 bytes
*
- * cmd_byte function parameter name
+ * cmd_byte function parameter name
* 0x00 power mode
* 0x00 sleep
* 0x01 wakeup
*
- * 0x01 enable streaming
+ * 0x01 enable streaming
* 0x02 disable streaming
*
*
- */
+ */
#define DIBUSB_REQ_SET_IOCTL 0x07
/* IOCTL commands */
-/* change the power mode in firmware */
+/* change the power mode in firmware */
#define DIBUSB_IOCTL_CMD_POWER_MODE 0x00
#define DIBUSB_IOCTL_POWER_SLEEP 0x00
#define DIBUSB_IOCTL_POWER_WAKEUP 0x01