flexcop-usb.h (cbecf716ca618fd44feda6bd9a64a8179d031fc5) | flexcop-usb.h (cd1798a387825cc4a51282f5a611ad05bb1ad75f) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III 4 * flexcop-usb.h - header file for the USB part 5 * see flexcop.c for copyright information 6 */ 7#ifndef __FLEXCOP_USB_H_INCLUDED__ 8#define __FLEXCOP_USB_H_INCLUDED__ --- 77 unchanged lines hidden (view full) --- 86 /* DKT 020326 - add function for v1.14 */ 87 UTILITY_SRAM_WRITE = 0x12, 88 UTILITY_SRAM_READ = 0x13, 89 UTILITY_SRAM_TESTFILL = 0x14, 90 UTILITY_SRAM_TESTSET = 0x15, 91 UTILITY_SRAM_TESTVERIFY = 0x16, 92} flexcop_usb_utility_function_t; 93 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III 4 * flexcop-usb.h - header file for the USB part 5 * see flexcop.c for copyright information 6 */ 7#ifndef __FLEXCOP_USB_H_INCLUDED__ 8#define __FLEXCOP_USB_H_INCLUDED__ --- 77 unchanged lines hidden (view full) --- 86 /* DKT 020326 - add function for v1.14 */ 87 UTILITY_SRAM_WRITE = 0x12, 88 UTILITY_SRAM_READ = 0x13, 89 UTILITY_SRAM_TESTFILL = 0x14, 90 UTILITY_SRAM_TESTSET = 0x15, 91 UTILITY_SRAM_TESTVERIFY = 0x16, 92} flexcop_usb_utility_function_t; 93 |
94#define B2C2_WAIT_FOR_OPERATION_RW (1*HZ) 95#define B2C2_WAIT_FOR_OPERATION_RDW (3*HZ) 96#define B2C2_WAIT_FOR_OPERATION_WDW (1*HZ) | 94#define B2C2_WAIT_FOR_OPERATION_RW 1000 95#define B2C2_WAIT_FOR_OPERATION_RDW 3000 96#define B2C2_WAIT_FOR_OPERATION_WDW 1000 |
97 | 97 |
98#define B2C2_WAIT_FOR_OPERATION_V8READ (3*HZ) 99#define B2C2_WAIT_FOR_OPERATION_V8WRITE (3*HZ) 100#define B2C2_WAIT_FOR_OPERATION_V8FLASH (3*HZ) | 98#define B2C2_WAIT_FOR_OPERATION_V8READ 3000 99#define B2C2_WAIT_FOR_OPERATION_V8WRITE 3000 100#define B2C2_WAIT_FOR_OPERATION_V8FLASH 3000 |
101 102typedef enum { 103 V8_MEMORY_PAGE_DVB_CI = 0x20, 104 V8_MEMORY_PAGE_DVB_DS = 0x40, 105 V8_MEMORY_PAGE_MULTI2 = 0x60, 106 V8_MEMORY_PAGE_FLASH = 0x80 107} flexcop_usb_mem_page_t; 108 109#define V8_MEMORY_EXTENDED (1 << 15) 110#define USB_MEM_READ_MAX 32 111#define USB_MEM_WRITE_MAX 1 112#define USB_FLASH_MAX 8 113#define V8_MEMORY_PAGE_SIZE 0x8000 /* 32K */ 114#define V8_MEMORY_PAGE_MASK 0x7FFF 115 116#endif | 101 102typedef enum { 103 V8_MEMORY_PAGE_DVB_CI = 0x20, 104 V8_MEMORY_PAGE_DVB_DS = 0x40, 105 V8_MEMORY_PAGE_MULTI2 = 0x60, 106 V8_MEMORY_PAGE_FLASH = 0x80 107} flexcop_usb_mem_page_t; 108 109#define V8_MEMORY_EXTENDED (1 << 15) 110#define USB_MEM_READ_MAX 32 111#define USB_MEM_WRITE_MAX 1 112#define USB_FLASH_MAX 8 113#define V8_MEMORY_PAGE_SIZE 0x8000 /* 32K */ 114#define V8_MEMORY_PAGE_MASK 0x7FFF 115 116#endif |