18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/* dvb-usb-common.h is part of the DVB USB library.
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@posteo.de)
58c2ecf20Sopenharmony_ci * see dvb-usb-init.c for copyright information.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * a header file containing prototypes and types for internal use of the dvb-usb-lib
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci#ifndef _DVB_USB_COMMON_H_
108c2ecf20Sopenharmony_ci#define _DVB_USB_COMMON_H_
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define DVB_USB_LOG_PREFIX "dvb-usb"
138c2ecf20Sopenharmony_ci#include "dvb-usb.h"
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciextern int dvb_usb_debug;
168c2ecf20Sopenharmony_ciextern int dvb_usb_disable_rc_polling;
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#define deb_info(args...)  dprintk(dvb_usb_debug,0x001,args)
198c2ecf20Sopenharmony_ci#define deb_xfer(args...)  dprintk(dvb_usb_debug,0x002,args)
208c2ecf20Sopenharmony_ci#define deb_pll(args...)   dprintk(dvb_usb_debug,0x004,args)
218c2ecf20Sopenharmony_ci#define deb_ts(args...)    dprintk(dvb_usb_debug,0x008,args)
228c2ecf20Sopenharmony_ci#define deb_err(args...)   dprintk(dvb_usb_debug,0x010,args)
238c2ecf20Sopenharmony_ci#define deb_rc(args...)    dprintk(dvb_usb_debug,0x020,args)
248c2ecf20Sopenharmony_ci#define deb_fw(args...)    dprintk(dvb_usb_debug,0x040,args)
258c2ecf20Sopenharmony_ci#define deb_mem(args...)   dprintk(dvb_usb_debug,0x080,args)
268c2ecf20Sopenharmony_ci#define deb_uxfer(args...) dprintk(dvb_usb_debug,0x100,args)
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci/* commonly used  methods */
298c2ecf20Sopenharmony_ciint dvb_usb_download_firmware(struct usb_device *udev,
308c2ecf20Sopenharmony_ci			      const struct dvb_usb_device_properties *props);
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciextern int dvb_usb_device_power_ctrl(struct dvb_usb_device *d, int onoff);
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ciextern int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props);
358c2ecf20Sopenharmony_ciextern int usb_urb_exit(struct usb_data_stream *stream);
368c2ecf20Sopenharmony_ciextern int usb_urb_submit(struct usb_data_stream *stream);
378c2ecf20Sopenharmony_ciextern int usb_urb_kill(struct usb_data_stream *stream);
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ciextern int dvb_usb_adapter_stream_init(struct dvb_usb_adapter *adap);
408c2ecf20Sopenharmony_ciextern int dvb_usb_adapter_stream_exit(struct dvb_usb_adapter *adap);
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciextern int dvb_usb_i2c_init(struct dvb_usb_device *);
438c2ecf20Sopenharmony_ciextern int dvb_usb_i2c_exit(struct dvb_usb_device *);
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ciextern int dvb_usb_adapter_dvb_init(struct dvb_usb_adapter *adap,
468c2ecf20Sopenharmony_ci				    short *adapter_nums);
478c2ecf20Sopenharmony_ciextern int dvb_usb_adapter_dvb_exit(struct dvb_usb_adapter *adap);
488c2ecf20Sopenharmony_ciextern int dvb_usb_adapter_frontend_init(struct dvb_usb_adapter *adap);
498c2ecf20Sopenharmony_ciextern int dvb_usb_adapter_frontend_exit(struct dvb_usb_adapter *adap);
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ciextern int dvb_usb_remote_init(struct dvb_usb_device *);
528c2ecf20Sopenharmony_ciextern int dvb_usb_remote_exit(struct dvb_usb_device *);
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci#endif
55