-
Notifications
You must be signed in to change notification settings - Fork 1
/
sms1xxx-usb.h
71 lines (61 loc) · 2.62 KB
/
sms1xxx-usb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* SMS1XXX - Siano DVB-T USB driver for FreeBSD 8.0 and higher:
*
* Copyright (C) 2008-2014, Ganaël Laplanche, http://contribs.martymac.org
*
* This driver contains code taken from the FreeBSD dvbusb driver:
*
* Copyright (C) 2006-2007, Raaf
* Copyright (C) 2004-2006, Patrick Boettcher
*
* This driver contains code taken from the Linux siano driver:
*
* Siano Mobile Silicon, Inc.
* MDTV receiver kernel modules.
* Copyright (C) 2006-2009, Uri Shkolnik
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
*
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef SMS1XXX_USB_H
#define SMS1XXX_USB_H
#include "sms1xxx.h"
#include "sms1xxx-gpio.h"
int sms1xxx_usb_init(struct sms1xxx_softc *);
int sms1xxx_usb_exit(struct sms1xxx_softc *);
int sms1xxx_usb_ref(struct sms1xxx_softc *);
void sms1xxx_usb_deref(struct sms1xxx_softc *);
int sms1xxx_usb_xfers_start(struct sms1xxx_softc *);
int sms1xxx_usb_xfers_stop(struct sms1xxx_softc *);
int sms1xxx_usb_rawwrite(struct sms1xxx_softc *, const u8 *, u32) ;
int sms1xxx_usb_write(struct sms1xxx_softc *, u8 *, u32) ;
int sms1xxx_usb_rawwrite_and_wait(struct sms1xxx_softc *, const u8 *, u32,
u16, unsigned int);
int sms1xxx_usb_write_and_wait(struct sms1xxx_softc *, u8 *, u32,
u16, unsigned int);
int sms1xxx_usb_setmode(struct sms1xxx_softc *, int) ;
int sms1xxx_usb_initdevice(struct sms1xxx_softc *, int) ;
int sms1xxx_usb_reloadstart(struct sms1xxx_softc *) ;
int sms1xxx_usb_reloadexec(struct sms1xxx_softc *) ;
int sms1xxx_usb_swdtrigger(struct sms1xxx_softc *, u32) ;
int sms1xxx_usb_getversion(struct sms1xxx_softc *) ;
int sms1xxx_usb_getstatistics(struct sms1xxx_softc *) ;
int sms1xxx_usb_getpidfilterlist(struct sms1xxx_softc *) ;
int sms1xxx_usb_setfrequency(struct sms1xxx_softc *, u32, u32);
int sms1xxx_usb_add_pid(struct sms1xxx_softc *, u16);
int sms1xxx_usb_remove_pid(struct sms1xxx_softc *, u16);
int sms1xxx_usb_ir_start(struct sms1xxx_softc *);
int sms1xxx_usb_gpio_configure(struct sms1xxx_softc *,
u32, struct sms1xxx_gpio_config *);
int sms1xxx_usb_gpio_set_level(struct sms1xxx_softc *, u8, u8);
int sms1xxx_usb_gpio_get_level(struct sms1xxx_softc *, u8, u8 *);
#endif