linux/drivers/media/usb/b2c2/flexcop-usb.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III
 * flexcop-usb.h - header file for the USB part
 * see flexcop.c for copyright information
 */
#ifndef __FLEXCOP_USB_H_INCLUDED__
#define __FLEXCOP_USB_H_INCLUDED__

#include <linux/usb.h>

/* transfer parameters */
#define B2C2_USB_FRAMES_PER_ISO
#define B2C2_USB_NUM_ISO_URB

#define B2C2_USB_CTRL_PIPE_IN
#define B2C2_USB_CTRL_PIPE_OUT
#define B2C2_USB_DATA_PIPE

struct flexcop_usb {};

#if 0
/* request types TODO What is its use?*/
typedef enum {

} flexcop_usb_request_type_t;
#endif

/* request */
flexcop_usb_request_t;

/* function definition for I2C_REQUEST */
flexcop_usb_i2c_function_t;

/* function definition for UTILITY request 0x12
 * DKT 020304 - new utility function */
flexcop_usb_utility_function_t;

#define B2C2_WAIT_FOR_OPERATION_RW
#define B2C2_WAIT_FOR_OPERATION_RDW
#define B2C2_WAIT_FOR_OPERATION_WDW

#define B2C2_WAIT_FOR_OPERATION_V8READ
#define B2C2_WAIT_FOR_OPERATION_V8WRITE
#define B2C2_WAIT_FOR_OPERATION_V8FLASH

flexcop_usb_mem_page_t;

#define V8_MEMORY_EXTENDED
#define USB_MEM_READ_MAX
#define USB_MEM_WRITE_MAX
#define USB_FLASH_MAX
#define V8_MEMORY_PAGE_SIZE
#define V8_MEMORY_PAGE_MASK

#endif