Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
flexcop-usb.h File Reference
#include <linux/usb.h>

Go to the source code of this file.

Data Structures

struct  flexcop_usb
 

Macros

#define B2C2_USB_FRAMES_PER_ISO   4
 
#define B2C2_USB_NUM_ISO_URB   4
 
#define B2C2_USB_CTRL_PIPE_IN   usb_rcvctrlpipe(fc_usb->udev, 0)
 
#define B2C2_USB_CTRL_PIPE_OUT   usb_sndctrlpipe(fc_usb->udev, 0)
 
#define B2C2_USB_DATA_PIPE   usb_rcvisocpipe(fc_usb->udev, 0x81)
 
#define B2C2_WAIT_FOR_OPERATION_RW   (1*HZ)
 
#define B2C2_WAIT_FOR_OPERATION_RDW   (3*HZ)
 
#define B2C2_WAIT_FOR_OPERATION_WDW   (1*HZ)
 
#define B2C2_WAIT_FOR_OPERATION_V8READ   (3*HZ)
 
#define B2C2_WAIT_FOR_OPERATION_V8WRITE   (3*HZ)
 
#define B2C2_WAIT_FOR_OPERATION_V8FLASH   (3*HZ)
 
#define V8_MEMORY_EXTENDED   (1 << 15)
 
#define USB_MEM_READ_MAX   32
 
#define USB_MEM_WRITE_MAX   1
 
#define USB_FLASH_MAX   8
 
#define V8_MEMORY_PAGE_SIZE   0x8000 /* 32K */
 
#define V8_MEMORY_PAGE_MASK   0x7FFF
 

Enumerations

enum  flexcop_usb_request_t {
  B2C2_USB_WRITE_V8_MEM = 0x04, B2C2_USB_READ_V8_MEM = 0x05, B2C2_USB_READ_REG = 0x08, B2C2_USB_WRITE_REG = 0x0A,
  B2C2_USB_WRITEREGHI = 0x0B, B2C2_USB_FLASH_BLOCK = 0x10, B2C2_USB_I2C_REQUEST = 0x11, B2C2_USB_UTILITY = 0x12
}
 
enum  flexcop_usb_i2c_function_t {
  USB_FUNC_I2C_WRITE = 0x01, USB_FUNC_I2C_MULTIWRITE = 0x02, USB_FUNC_I2C_READ = 0x03, USB_FUNC_I2C_REPEATWRITE = 0x04,
  USB_FUNC_GET_DESCRIPTOR = 0x05, USB_FUNC_I2C_REPEATREAD = 0x06, USB_FUNC_I2C_CHECKWRITE = 0x07, USB_FUNC_I2C_CHECKRESULT = 0x08
}
 
enum  flexcop_usb_utility_function_t {
  UTILITY_SET_FILTER = 0x01, UTILITY_DATA_ENABLE = 0x02, UTILITY_FLEX_MULTIWRITE = 0x03, UTILITY_SET_BUFFER_SIZE = 0x04,
  UTILITY_FLEX_OPERATOR = 0x05, UTILITY_FLEX_RESET300_START = 0x06, UTILITY_FLEX_RESET300_STOP = 0x07, UTILITY_FLEX_RESET300 = 0x08,
  UTILITY_SET_ISO_SIZE = 0x09, UTILITY_DATA_RESET = 0x0A, UTILITY_GET_DATA_STATUS = 0x10, UTILITY_GET_V8_REG = 0x11,
  UTILITY_SRAM_WRITE = 0x12, UTILITY_SRAM_READ = 0x13, UTILITY_SRAM_TESTFILL = 0x14, UTILITY_SRAM_TESTSET = 0x15,
  UTILITY_SRAM_TESTVERIFY = 0x16
}
 
enum  flexcop_usb_mem_page_t { V8_MEMORY_PAGE_DVB_CI = 0x20, V8_MEMORY_PAGE_DVB_DS = 0x40, V8_MEMORY_PAGE_MULTI2 = 0x60, V8_MEMORY_PAGE_FLASH = 0x80 }
 

Macro Definition Documentation

#define B2C2_USB_CTRL_PIPE_IN   usb_rcvctrlpipe(fc_usb->udev, 0)

Definition at line 15 of file flexcop-usb.h.

#define B2C2_USB_CTRL_PIPE_OUT   usb_sndctrlpipe(fc_usb->udev, 0)

Definition at line 16 of file flexcop-usb.h.

#define B2C2_USB_DATA_PIPE   usb_rcvisocpipe(fc_usb->udev, 0x81)

Definition at line 17 of file flexcop-usb.h.

#define B2C2_USB_FRAMES_PER_ISO   4

Definition at line 12 of file flexcop-usb.h.

#define B2C2_USB_NUM_ISO_URB   4

Definition at line 13 of file flexcop-usb.h.

#define B2C2_WAIT_FOR_OPERATION_RDW   (3*HZ)

Definition at line 90 of file flexcop-usb.h.

#define B2C2_WAIT_FOR_OPERATION_RW   (1*HZ)

Definition at line 89 of file flexcop-usb.h.

#define B2C2_WAIT_FOR_OPERATION_V8FLASH   (3*HZ)

Definition at line 95 of file flexcop-usb.h.

#define B2C2_WAIT_FOR_OPERATION_V8READ   (3*HZ)

Definition at line 93 of file flexcop-usb.h.

#define B2C2_WAIT_FOR_OPERATION_V8WRITE   (3*HZ)

Definition at line 94 of file flexcop-usb.h.

#define B2C2_WAIT_FOR_OPERATION_WDW   (1*HZ)

Definition at line 91 of file flexcop-usb.h.

#define USB_FLASH_MAX   8

Definition at line 107 of file flexcop-usb.h.

#define USB_MEM_READ_MAX   32

Definition at line 105 of file flexcop-usb.h.

#define USB_MEM_WRITE_MAX   1

Definition at line 106 of file flexcop-usb.h.

#define V8_MEMORY_EXTENDED   (1 << 15)

Definition at line 104 of file flexcop-usb.h.

#define V8_MEMORY_PAGE_MASK   0x7FFF

Definition at line 109 of file flexcop-usb.h.

#define V8_MEMORY_PAGE_SIZE   0x8000 /* 32K */

Definition at line 108 of file flexcop-usb.h.

Enumeration Type Documentation

Enumerator:
USB_FUNC_I2C_WRITE 
USB_FUNC_I2C_MULTIWRITE 
USB_FUNC_I2C_READ 
USB_FUNC_I2C_REPEATWRITE 
USB_FUNC_GET_DESCRIPTOR 
USB_FUNC_I2C_REPEATREAD 
USB_FUNC_I2C_CHECKWRITE 
USB_FUNC_I2C_CHECKRESULT 

Definition at line 54 of file flexcop-usb.h.

Enumerator:
V8_MEMORY_PAGE_DVB_CI 
V8_MEMORY_PAGE_DVB_DS 
V8_MEMORY_PAGE_MULTI2 
V8_MEMORY_PAGE_FLASH 

Definition at line 97 of file flexcop-usb.h.

Enumerator:
B2C2_USB_WRITE_V8_MEM 
B2C2_USB_READ_V8_MEM 
B2C2_USB_READ_REG 
B2C2_USB_WRITE_REG 
B2C2_USB_WRITEREGHI 
B2C2_USB_FLASH_BLOCK 
B2C2_USB_I2C_REQUEST 
B2C2_USB_UTILITY 

Definition at line 42 of file flexcop-usb.h.

Enumerator:
UTILITY_SET_FILTER 
UTILITY_DATA_ENABLE 
UTILITY_FLEX_MULTIWRITE 
UTILITY_SET_BUFFER_SIZE 
UTILITY_FLEX_OPERATOR 
UTILITY_FLEX_RESET300_START 
UTILITY_FLEX_RESET300_STOP 
UTILITY_FLEX_RESET300 
UTILITY_SET_ISO_SIZE 
UTILITY_DATA_RESET 
UTILITY_GET_DATA_STATUS 
UTILITY_GET_V8_REG 
UTILITY_SRAM_WRITE 
UTILITY_SRAM_READ 
UTILITY_SRAM_TESTFILL 
UTILITY_SRAM_TESTSET 
UTILITY_SRAM_TESTVERIFY 

Definition at line 68 of file flexcop-usb.h.