dvb-usb-common.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* dvb-usb-common.h is part of the DVB USB library.
  2. *
  3. * Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@desy.de)
  4. * see dvb-usb-init.c for copyright information.
  5. *
  6. * a header file containing prototypes and types for internal use of the dvb-usb-lib
  7. */
  8. #ifndef _DVB_USB_COMMON_H_
  9. #define _DVB_USB_COMMON_H_
  10. #define DVB_USB_LOG_PREFIX "dvb-usb"
  11. #include "dvb-usb.h"
  12. extern int dvb_usb_debug;
  13. extern int dvb_usb_disable_rc_polling;
  14. #define deb_info(args...) dprintk(dvb_usb_debug,0x001,args)
  15. #define deb_xfer(args...) dprintk(dvb_usb_debug,0x002,args)
  16. #define deb_pll(args...) dprintk(dvb_usb_debug,0x004,args)
  17. #define deb_ts(args...) dprintk(dvb_usb_debug,0x008,args)
  18. #define deb_err(args...) dprintk(dvb_usb_debug,0x010,args)
  19. #define deb_rc(args...) dprintk(dvb_usb_debug,0x020,args)
  20. #define deb_fw(args...) dprintk(dvb_usb_debug,0x040,args)
  21. #define deb_mem(args...) dprintk(dvb_usb_debug,0x080,args)
  22. #define deb_uxfer(args...) dprintk(dvb_usb_debug,0x100,args)
  23. /* commonly used methods */
  24. extern int dvb_usb_download_firmware(struct usb_device *, struct dvb_usb_device_properties *);
  25. extern int dvb_usb_device_power_ctrl(struct dvb_usb_device *d, int onoff);
  26. extern int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props);
  27. extern int usb_urb_exit(struct usb_data_stream *stream);
  28. extern int usb_urb_submit(struct usb_data_stream *stream);
  29. extern int usb_urb_kill(struct usb_data_stream *stream);
  30. extern int dvb_usb_adapter_stream_init(struct dvb_usb_adapter *adap);
  31. extern int dvb_usb_adapter_stream_exit(struct dvb_usb_adapter *adap);
  32. extern int dvb_usb_i2c_init(struct dvb_usb_device *);
  33. extern int dvb_usb_i2c_exit(struct dvb_usb_device *);
  34. extern int dvb_usb_adapter_dvb_init(struct dvb_usb_adapter *adap,
  35. short *adapter_nums);
  36. extern int dvb_usb_adapter_dvb_exit(struct dvb_usb_adapter *adap);
  37. extern int dvb_usb_adapter_frontend_init(struct dvb_usb_adapter *adap);
  38. extern int dvb_usb_adapter_frontend_exit(struct dvb_usb_adapter *adap);
  39. extern int dvb_usb_remote_init(struct dvb_usb_device *);
  40. extern int dvb_usb_remote_exit(struct dvb_usb_device *);
  41. #endif