1 head 1.5;
2 access;
3 symbols;
4 locks
5 baker:1.5; strict;
6 comment @ * @;
7
8
9 1.5
10 date 2005.05.31.13.25.47; author baker; state Exp;
11 branches;
12 next 1.4;
13
14 1.4
15 date 2005.02.06.15.24.06; author baker; state Exp;
16 branches;
17 next 1.3;
18
19 1.3
20 date 2004.09.15.18.13.57; author baker; state Exp;
21 branches;
22 next 1.2;
23
24 1.2
25 date 2004.09.09.17.21.26; author baker; state Exp;
26 branches;
27 next 1.1;
28
29 1.1
30 date 2004.08.30.18.58.34; author baker; state Exp;
31 branches;
32 next ;
33
34
35 desc
36 @@
37
38
39 1.5
40 log
41 @*** empty log message ***
42 @
43 text
44 @/*
45 * hrt.h
46 *
47 * application/kernel interface to HRT driver
48 */
49
50 #ifndef _HRT_H_
51 #define _HRT_H_
52
53 #ifndef __KERNEL__
54 #include <sys/ioctl.h>
55 #endif
56
57 #define HRT_MAX_DEVICES 8
58
59 /* The offset of the HRT I2C bus control port (0x2000 = 8192 = 2^13) */
60 #define HRT_CONTROL_REG 0x2000
61 #define HRT_I2C_REG 0x2001
62 #define HRT_Y_LOW_REG 0x2002
63 #define HRT_Y_HIGH_REG 0x2003
64 #define HRT_IRQ_ENABLE 0x2005
65
66 #define HRT_LIVE_CMD 0x91
67 #define HRT_FREEZE_IMM_CMD 0x5B
68 #define HRT_FREEZE_NEXT_CMD 0x99
69
70 #define IOC_HRT_MAGIC_NUM 'v'
71
72 #define IOC_HRT_GO_LIVE _IO (IOC_HRT_MAGIC_NUM, 2)
73 #define IOC_HRT_FREEZE_FRAME _IO (IOC_HRT_MAGIC_NUM, 3)
74 #define IOC_HRT_WIN_SET_WIDTH _IOW(IOC_HRT_MAGIC_NUM, 4, int)
75 #define IOC_HRT_WIN_SET_HEIGHT _IOW(IOC_HRT_MAGIC_NUM, 5, int)
76 #define IOC_HRT_WIN_SET_X _IOW(IOC_HRT_MAGIC_NUM, 6, int)
77 #define IOC_HRT_WIN_SET_Y _IOW(IOC_HRT_MAGIC_NUM, 7, int)
78 #define IOC_HRT_SET_MODE _IOW(IOC_HRT_MAGIC_NUM, 8, int)
79
80 #endif
81 @
82
83
84 1.4
85 log
86 @*** empty log message ***
87 @
88 text
89 @a15 6
90 #ifndef HRT_MAGIC_MMAP_OFFSET
91 #define HRT_MAGIC_SCANLINE_MMAP_OFFSET (PAGE_SIZE * 100)
92 #define HRT_MAGIC_REGISTER_MMAP_OFFSET (PAGE_SIZE * 200)
93 #endif
94 #define HRT_IO_SPACE_LEN (1024 * 4)
95
96 a22 2
97 /* The commands for freeze, live, etc. */
98 #define HRT_FIELD_MASK 0x01
99 a28 1
100 #define IOC_HRT_SET_DRIVE_MODE _IOW(IOC_HRT_MAGIC_NUM, 1, int)
101 d35 1
102 a35 3
103
104 #define IOC_HRT_START_DRV_READ _IO (IOC_HRT_MAGIC_NUM, 8)
105 #define IOC_HRT_STOP_DRV_READ _IO (IOC_HRT_MAGIC_NUM, 9)
106 @
107
108
109 1.3
110 log
111 @*** empty log message ***
112 @
113 text
114 @d22 6
115 a27 5
116 #define HRT_CONTROL_REG 0x2000
117 #define HRT_I2C_REG 0x2001
118 #define HRT_Y_LOW_REG 0x2002
119 #define HRT_Y_HIGH_REG 0x2003
120 #define HRT_INTERRUPT_ENABLE 0x2005
121 d29 1
122 a29 3
123 /*
124 * The commands for freeze, live, etc.
125 */
126 @
127
128
129 1.2
130 log
131 @*** empty log message ***
132 @
133 text
134 @d22 6
135 @
136
137
138 1.1
139 log
140 @Initial revision
141 @
142 text
143 @d1 5
144 a5 2
145 #ifndef __HRT_H
146 #define __HRT_H
147 d7 2
148 a8 8
149 #include "hrt_def.h"
150 #include "hrt_dev.h"
151 #include "hrt_types.h"
152 #include "hrt_ioctl.h"
153 #include "hrt_shared.h"
154 #include "i2c.h"
155 #include "pci.h"
156 #include "interrupts.h"
157 d10 2
158 d14 30
159 @
|
This page was automatically generated by the
LXR engine.
|