Update of /cvsroot/linux-mips/linux/include/linux
In directory usw-pr-cvs1:/tmp/cvs-serv3157/include/linux
Modified Files:
fb.h miscdevice.h
Added Files:
buttons.h tpanel.h
Log Message:
Adds more VR stuff for Cassiopeia E15 Support.
--- NEW FILE: buttons.h ---
/*
* Data defines for button input
*
* This was created for the NEC VR41xx GPIO button driver, but should be
* general enough that it applies to other platforms as well.
*
* Copyright (c) 2000 Michael Klar <wyl...@in...>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#ifndef _LINUX_BUTTONS_H
#define _LINUX_BUTTONS_H
#define BTN_PRESS 0x8000
#define BTN_RELEASE 0
#define BTN_STATE_MASK 0x8000
#define BTN_DATA_MASK 0x0fff
/*
* The button definitions:
*
* Feel free to add more. With 4096 potential vlaues, we're not going to
* run out any time soon. Note that the application types listed for the
* BTN_AP buttons are only suggestions for which AP buttons to assign to
* which physical button based on button icon, and may not be applicable
* to platforms that are not productivity-oriented.
*/
#define BTN_POWER 0 // Button driver might not queue
// BTN_POWER releases (e.g. on VR41xx).
#define BTN_ACTION 1
#define BTN_EXIT 2
#define BTN_UP 3
#define BTN_DOWN 4
#define BTN_CONTRAST 5
#define BTN_BACKLIGHT 6
#define BTN_NORTH 7
#define BTN_SOUTH 8
#define BTN_EAST 9
#define BTN_WEST 10
#define BTN_NOTIFICATION 11
#define BTN_SYNC 12
#define BTN_POWER_GPIO 13 // Power switch also hooked to GPIO to
// detect power button releases.
#define BTN_BATT_DOOR 14
#define BTN_PEN 15
#define BTN_AP1 256 // Task list
#define BTN_AP2 257 // Address book
#define BTN_AP3 258 // Notepad
#define BTN_AP4 259 // Calendar
#define BTN_AP5 260 // Voice recorder
#define BTN_AP6 261
#define BTN_AP7 262
#define BTN_AP8 263
#define BTN_AP9 264
#define BTN_AP10 265
#define BTN_AP11 266
#define BTN_AP12 267
#define BTN_AP13 268
#define BTN_AP14 269
#define BTN_AP15 270
#define BTN_AP16 271
#define BTN_AP17 272
#define BTN_AP18 273
#define BTN_AP19 274
#define BTN_AP20 275
#define BTN_AP21 276
#define BTN_AP22 277
#define BTN_AP23 278
#define BTN_AP24 279
#define BTN_AP25 280
#define BTN_AP26 281
#define BTN_AP27 282
#define BTN_AP28 283
#define BTN_AP29 284
#define BTN_AP30 285
#define BTN_AP31 286
#define BTN_AP32 287
#define BTN_AP33 288
#define BTN_AP34 289
#define BTN_AP35 290
#define BTN_AP36 291
#define BTN_AP37 292
#endif /* _LINUX_BUTTONS_H */
--- NEW FILE: tpanel.h ---
/*
* Touch Panel Data Structures
* by Michael Klar, wyl...@in...
*
* Created for the touch panel interface built into the NEC VR41xx family of
* CPUs, but should be applicable to other touch panel hardware
*/
#ifndef _LINUX_TPANEL_H
#define _LINUX_TPANEL_H
#include <linux/ioctl.h>
/*
* The scan interval and settling time can be set via IOCTL, but the defualt
* of .01 sec and 480us should suffice for most applications. The argument to
* these IOCTL calls is a struct of the values in microseconds, but note that
* the hardware may have a less precise interval. If so, the value will be
* rounded and the actual value returned back.
*/
struct scanparam {
unsigned int interval;
unsigned int settletime;
};
#define TPGETSCANPARM _IOR( 0xB0, 0x00, struct scanparam )
#define TPSETSCANPARM _IOW( 0xB0, 0x01, struct scanparam )
#endif /* _LINUX_TPANEL_H */
Index: fb.h
===================================================================
RCS file: /cvsroot/linux-mips/linux/include/linux/fb.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- fb.h 17 Aug 2001 22:53:26 -0000 1.2
+++ fb.h 7 Mar 2002 09:15:17 -0000 1.3
@@ -32,6 +32,12 @@
#define FBIOPUT_MODEINFO 0x4617
#define FBIOGET_DISPINFO 0x4618
+/* For Linux VR */
+#define FBIOGET_BACKLIGHT 0x4620
+#define FBIOPUT_BACKLIGHT 0x4621
+#define FBIOGET_CONTRAST 0x4622
+#define FBIOPUT_CONTRAST 0x4623
+#define FBIO_POWER 0x4624
#define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */
#define FB_TYPE_PLANES 1 /* Non interleaved planes */
Index: miscdevice.h
===================================================================
RCS file: /cvsroot/linux-mips/linux/include/linux/miscdevice.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- miscdevice.h 6 Nov 2001 00:30:47 -0000 1.3
+++ miscdevice.h 7 Mar 2002 09:15:17 -0000 1.4
@@ -13,6 +13,7 @@
#define APOLLO_MOUSE_MINOR 7
#define PC110PAD_MINOR 9
#define ADB_MOUSE_MINOR 10
+#define VR41XX_TPANEL_MINOR 11
#define WATCHDOG_MINOR 130 /* Watchdog timer */
#define TEMP_MINOR 131 /* Temperature Sensor */
#define RTC_MINOR 135
@@ -21,6 +22,7 @@
#define LCD_MINOR 140
#define NVRAM_MINOR 144
#define I2O_MINOR 166
+#define VR41XX_BUTTONS_MINOR 180
#define MICROCODE_MINOR 184
#define GPIO_MINOR 185
#define MWAVE_MINOR 219 /* ACP/Mwave Modem */
|