aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sonypi.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/sonypi.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/sonypi.h')
-rw-r--r--include/linux/sonypi.h158
1 files changed, 158 insertions, 0 deletions
diff --git a/include/linux/sonypi.h b/include/linux/sonypi.h
new file mode 100644
index 000000000000..768cbba617d0
--- /dev/null
+++ b/include/linux/sonypi.h
@@ -0,0 +1,158 @@
1/*
2 * Sony Programmable I/O Control Device driver for VAIO
3 *
4 * Copyright (C) 2001-2005 Stelian Pop <stelian@popies.net>
5 *
6 * Copyright (C) 2005 Narayanan R S <nars@kadamba.org>
7
8 * Copyright (C) 2001-2002 Alcôve <www.alcove.com>
9 *
10 * Copyright (C) 2001 Michael Ashley <m.ashley@unsw.edu.au>
11 *
12 * Copyright (C) 2001 Junichi Morita <jun1m@mars.dti.ne.jp>
13 *
14 * Copyright (C) 2000 Takaya Kinjo <t-kinjo@tc4.so-net.ne.jp>
15 *
16 * Copyright (C) 2000 Andrew Tridgell <tridge@valinux.com>
17 *
18 * Earlier work by Werner Almesberger, Paul `Rusty' Russell and Paul Mackerras.
19 *
20 * This program is free software; you can redistribute it and/or modify
21 * it under the terms of the GNU General Public License as published by
22 * the Free Software Foundation; either version 2 of the License, or
23 * (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
29 *
30 * You should have received a copy of the GNU General Public License
31 * along with this program; if not, write to the Free Software
32 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
33 *
34 */
35
36#ifndef _SONYPI_H_
37#define _SONYPI_H_
38
39#include <linux/types.h>
40
41/* events the user application reading /dev/sonypi can use */
42
43#define SONYPI_EVENT_JOGDIAL_DOWN 1
44#define SONYPI_EVENT_JOGDIAL_UP 2
45#define SONYPI_EVENT_JOGDIAL_DOWN_PRESSED 3
46#define SONYPI_EVENT_JOGDIAL_UP_PRESSED 4
47#define SONYPI_EVENT_JOGDIAL_PRESSED 5
48#define SONYPI_EVENT_JOGDIAL_RELEASED 6 /* obsolete */
49#define SONYPI_EVENT_CAPTURE_PRESSED 7
50#define SONYPI_EVENT_CAPTURE_RELEASED 8 /* obsolete */
51#define SONYPI_EVENT_CAPTURE_PARTIALPRESSED 9
52#define SONYPI_EVENT_CAPTURE_PARTIALRELEASED 10
53#define SONYPI_EVENT_FNKEY_ESC 11
54#define SONYPI_EVENT_FNKEY_F1 12
55#define SONYPI_EVENT_FNKEY_F2 13
56#define SONYPI_EVENT_FNKEY_F3 14
57#define SONYPI_EVENT_FNKEY_F4 15
58#define SONYPI_EVENT_FNKEY_F5 16
59#define SONYPI_EVENT_FNKEY_F6 17
60#define SONYPI_EVENT_FNKEY_F7 18
61#define SONYPI_EVENT_FNKEY_F8 19
62#define SONYPI_EVENT_FNKEY_F9 20
63#define SONYPI_EVENT_FNKEY_F10 21
64#define SONYPI_EVENT_FNKEY_F11 22
65#define SONYPI_EVENT_FNKEY_F12 23
66#define SONYPI_EVENT_FNKEY_1 24
67#define SONYPI_EVENT_FNKEY_2 25
68#define SONYPI_EVENT_FNKEY_D 26
69#define SONYPI_EVENT_FNKEY_E 27
70#define SONYPI_EVENT_FNKEY_F 28
71#define SONYPI_EVENT_FNKEY_S 29
72#define SONYPI_EVENT_FNKEY_B 30
73#define SONYPI_EVENT_BLUETOOTH_PRESSED 31
74#define SONYPI_EVENT_PKEY_P1 32
75#define SONYPI_EVENT_PKEY_P2 33
76#define SONYPI_EVENT_PKEY_P3 34
77#define SONYPI_EVENT_BACK_PRESSED 35
78#define SONYPI_EVENT_LID_CLOSED 36
79#define SONYPI_EVENT_LID_OPENED 37
80#define SONYPI_EVENT_BLUETOOTH_ON 38
81#define SONYPI_EVENT_BLUETOOTH_OFF 39
82#define SONYPI_EVENT_HELP_PRESSED 40
83#define SONYPI_EVENT_FNKEY_ONLY 41
84#define SONYPI_EVENT_JOGDIAL_FAST_DOWN 42
85#define SONYPI_EVENT_JOGDIAL_FAST_UP 43
86#define SONYPI_EVENT_JOGDIAL_FAST_DOWN_PRESSED 44
87#define SONYPI_EVENT_JOGDIAL_FAST_UP_PRESSED 45
88#define SONYPI_EVENT_JOGDIAL_VFAST_DOWN 46
89#define SONYPI_EVENT_JOGDIAL_VFAST_UP 47
90#define SONYPI_EVENT_JOGDIAL_VFAST_DOWN_PRESSED 48
91#define SONYPI_EVENT_JOGDIAL_VFAST_UP_PRESSED 49
92#define SONYPI_EVENT_ZOOM_PRESSED 50
93#define SONYPI_EVENT_THUMBPHRASE_PRESSED 51
94#define SONYPI_EVENT_MEYE_FACE 52
95#define SONYPI_EVENT_MEYE_OPPOSITE 53
96#define SONYPI_EVENT_MEMORYSTICK_INSERT 54
97#define SONYPI_EVENT_MEMORYSTICK_EJECT 55
98#define SONYPI_EVENT_ANYBUTTON_RELEASED 56
99#define SONYPI_EVENT_BATTERY_INSERT 57
100#define SONYPI_EVENT_BATTERY_REMOVE 58
101#define SONYPI_EVENT_FNKEY_RELEASED 59
102
103/* get/set brightness */
104#define SONYPI_IOCGBRT _IOR('v', 0, __u8)
105#define SONYPI_IOCSBRT _IOW('v', 0, __u8)
106
107/* get battery full capacity/remaining capacity */
108#define SONYPI_IOCGBAT1CAP _IOR('v', 2, __u16)
109#define SONYPI_IOCGBAT1REM _IOR('v', 3, __u16)
110#define SONYPI_IOCGBAT2CAP _IOR('v', 4, __u16)
111#define SONYPI_IOCGBAT2REM _IOR('v', 5, __u16)
112
113/* get battery flags: battery1/battery2/ac adapter present */
114#define SONYPI_BFLAGS_B1 0x01
115#define SONYPI_BFLAGS_B2 0x02
116#define SONYPI_BFLAGS_AC 0x04
117#define SONYPI_IOCGBATFLAGS _IOR('v', 7, __u8)
118
119/* get/set bluetooth subsystem state on/off */
120#define SONYPI_IOCGBLUE _IOR('v', 8, __u8)
121#define SONYPI_IOCSBLUE _IOW('v', 9, __u8)
122
123/* get/set fan state on/off */
124#define SONYPI_IOCGFAN _IOR('v', 10, __u8)
125#define SONYPI_IOCSFAN _IOW('v', 11, __u8)
126
127/* get temperature (C) */
128#define SONYPI_IOCGTEMP _IOR('v', 12, __u8)
129
130#ifdef __KERNEL__
131
132/* used only for communication between v4l and sonypi */
133
134#define SONYPI_COMMAND_GETCAMERA 1 /* obsolete */
135#define SONYPI_COMMAND_SETCAMERA 2
136#define SONYPI_COMMAND_GETCAMERABRIGHTNESS 3 /* obsolete */
137#define SONYPI_COMMAND_SETCAMERABRIGHTNESS 4
138#define SONYPI_COMMAND_GETCAMERACONTRAST 5 /* obsolete */
139#define SONYPI_COMMAND_SETCAMERACONTRAST 6
140#define SONYPI_COMMAND_GETCAMERAHUE 7 /* obsolete */
141#define SONYPI_COMMAND_SETCAMERAHUE 8
142#define SONYPI_COMMAND_GETCAMERACOLOR 9 /* obsolete */
143#define SONYPI_COMMAND_SETCAMERACOLOR 10
144#define SONYPI_COMMAND_GETCAMERASHARPNESS 11 /* obsolete */
145#define SONYPI_COMMAND_SETCAMERASHARPNESS 12
146#define SONYPI_COMMAND_GETCAMERAPICTURE 13 /* obsolete */
147#define SONYPI_COMMAND_SETCAMERAPICTURE 14
148#define SONYPI_COMMAND_GETCAMERAAGC 15 /* obsolete */
149#define SONYPI_COMMAND_SETCAMERAAGC 16
150#define SONYPI_COMMAND_GETCAMERADIRECTION 17 /* obsolete */
151#define SONYPI_COMMAND_GETCAMERAROMVERSION 18 /* obsolete */
152#define SONYPI_COMMAND_GETCAMERAREVISION 19 /* obsolete */
153
154int sonypi_camera_command(int command, u8 value);
155
156#endif /* __KERNEL__ */
157
158#endif /* _SONYPI_H_ */