source: trunk/csctapi/sci_ioctl.h@ 8

Last change on this file since 8 was 8, checked in by smurzch2, 12 years ago

Start repository for OSCam (Open Source Cam)

The start is from the MpCS source code. Thanks a lot to the authors for this
great sources.

File size: 1.6 KB
Line 
1#if defined(SCI_DEV) && !defined(_sci_inf_h_)
2#define _sci_inf_h_
3
4/* constants */
5#define DEVICE_NAME "sci_dev"
6
7//#define ULONG (unsigned long)
8
9#define SCI_IOW_MAGIC 's'
10
11#ifndef OS_CYGWIN32
12/* ioctl cmd table */
13#define IOCTL_SET_RESET _IOW(SCI_IOW_MAGIC, 1, unsigned long)
14#define IOCTL_SET_MODES _IOW(SCI_IOW_MAGIC, 2, SCI_MODES)
15#define IOCTL_GET_MODES _IOW(SCI_IOW_MAGIC, 3, SCI_MODES)
16#define IOCTL_SET_PARAMETERS _IOW(SCI_IOW_MAGIC, 4, SCI_PARAMETERS)
17#define IOCTL_GET_PARAMETERS _IOW(SCI_IOW_MAGIC, 5, SCI_PARAMETERS)
18#define IOCTL_SET_CLOCK_START _IOW(SCI_IOW_MAGIC, 6, unsigned long)
19#define IOCTL_SET_CLOCK_STOP _IOW(SCI_IOW_MAGIC, 7, unsigned long)
20#define IOCTL_GET_IS_CARD_PRESENT _IOW(SCI_IOW_MAGIC, 8, unsigned long)
21#define IOCTL_GET_IS_CARD_ACTIVATED _IOW(SCI_IOW_MAGIC, 9, unsigned long)
22#define IOCTL_SET_DEACTIVATE _IOW(SCI_IOW_MAGIC, 10, unsigned long)
23#define IOCTL_SET_ATR_READY _IOW(SCI_IOW_MAGIC, 11, unsigned long)
24#define IOCTL_GET_ATR_STATUS _IOW(SCI_IOW_MAGIC, 12, unsigned long)
25#define IOCTL_DUMP_REGS _IOW(SCI_IOW_MAGIC, 20, unsigned long)
26#else
27#define IOCTL_SET_RESET 1
28#define IOCTL_SET_MODES 2
29#define IOCTL_GET_MODES 3
30#define IOCTL_SET_PARAMETERS 4
31#define IOCTL_GET_PARAMETERS 5
32#define IOCTL_SET_CLOCK_START 6
33#define IOCTL_SET_CLOCK_STOP 7
34#define IOCTL_GET_IS_CARD_PRESENT 8
35#define IOCTL_GET_IS_CARD_ACTIVATED 9
36#define IOCTL_SET_DEACTIVATE 10
37#define IOCTL_SET_ATR_READY 11
38#define IOCTL_GET_ATR_STATUS 12
39#define IOCTL_DUMP_REGS 13
40#endif
41
42/* MAJOR NUM OF DEVICE DRVIER */
43#define MAJOR_NUM 169
44
45#endif /* _sci_inf_h_ */
Note: See TracBrowser for help on using the repository browser.