Skip to contentSkip to conversation

New driver for Sony Programmable I/O Control Device

PATCH New Stelian Pop 1 participant 1 message Jun 4, 2001

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 New driver for Sony Programmable I/O Control Device

Hi,

You'll find attached a driver for the Sony Programmable I/O Control Device, which can be found on many (all ?) Sony Vaio laptops.

This driver enables a user mode application to receive (through a misc character device node) the events generated by:
- the jogdial (the small wheel)
- the capture button (on picture book series)
- the Fn keys (on some laptops only)
- the bluetooth button (if you have one :-) ).

A sample application, demonstrating the polling of the character device and translating the jogdial events into X mousewheel events can be found at:
http://mapage.noos.fr/pop/sonypi/sonypid.tar.gz
(note that this location is different from the one documented in Documentation/sonypi.txt, since the latter is rather slow to update, but it will be the the stable one).

This driver is also a prerequisite for the video4linux driver for the Motion Eye camera (found on Vaio Picturebook series), which I wrote and I'm cleaning up a bit right now, before I send it on the list, probably by the end of this week.

The patch is attached below and should apply cleanly on 2.4.5.

Thanks,

Stelian.

Documentation/Configure.help +13 -0
diff -uNr --exclude-from=dontdiff linux-2.4.5.orig/Documentation/Configure.help linux-2.4.5/Documentation/Configure.help
@@ -13695,6 +13695,19 @@
 
   If unsure, say N.
 
+Sony Vaio Programmable I/O Control Device support
+CONFIG_SONYPI
+  This driver enables access to the Sony Programmable I/O Control Device
+  which can be found in many (all ?) Sony Vaio laptops.
+
+  If you have one of those laptops, read Documentation/sonypi.txt,
+  and say Y or M here.
+
+  If you want to compile the driver as a module ( = code which can be
+  inserted in and removed from the running kernel whenever you want),
+  say M here and read Documentation/modules.txt. The module will be
+  called sonypi.o.
+
 Intel Random Number Generator support
 CONFIG_INTEL_RNG
   This driver provides kernel-side support for the Random Number
Documentation/sonypi.txt +45 -0

45 lines not on this page · raw message

drivers/char/Config.in +3 -0
diff -uNr --exclude-from=dontdiff linux-2.4.5.orig/drivers/char/Config.in linux-2.4.5/drivers/char/Config.in
@@ -169,6 +169,9 @@
 tristate 'Double Talk PC internal speech card support' CONFIG_DTLK
 tristate 'Siemens R3964 line discipline' CONFIG_R3964
 tristate 'Applicom intelligent fieldbus card support' CONFIG_APPLICOM
+if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
+  tristate 'Sony Vaio Programmable I/O Control Device support' CONFIG_SONYPI $CONFIG_PCI
+fi
 
 mainmenu_option next_comment
 comment 'Ftape, the floppy tape device driver'
drivers/char/Makefile +2 -1
diff -uNr --exclude-from=dontdiff linux-2.4.5.orig/drivers/char/Makefile linux-2.4.5/drivers/char/Makefile
@@ -23,7 +23,7 @@
 
 export-objs     :=	busmouse.o console.o keyboard.o sysrq.o \
 			misc.o pty.o random.o selection.o serial.o \
-			tty_io.o
+			sonypi.o tty_io.o
 
 mod-subdirs	:=	joystick ftape drm pcmcia
 
@@ -162,6 +162,7 @@
 obj-$(CONFIG_DTLK) += dtlk.o
 obj-$(CONFIG_R3964) += n_r3964.o
 obj-$(CONFIG_APPLICOM) += applicom.o
+obj-$(CONFIG_SONYPI) += sonypi.o
 obj-$(CONFIG_MS_BUSMOUSE) += msbusmouse.o
 obj-$(CONFIG_82C710_MOUSE) += qpmouse.o
 obj-$(CONFIG_AMIGAMOUSE) += amigamouse.o
drivers/char/sonypi.c +587 -0

587 lines not on this page · raw message

drivers/char/sonypi.h +202 -0

202 lines not on this page · raw message

include/linux/sonypi.h +98 -0

98 lines not on this page · raw message

Signature · 4 lines
Stelian Pop <[email protected]>
|------------- Ingénieur Informatique Libre --------------|
| Alcôve - http://www.alcove.com - Tel: +33 1 49 22 68 00 |
|----------- Alcôve, l'informatique est libre ------------|