spic.c (158651) | spic.c (249584) |
---|---|
1/*- 2 * Copyright (c) 2000 Nick Sayer 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 20 unchanged lines hidden (view full) --- 29 * This device exists on most recent Sony laptops. It is the means by which 30 * you can watch the Jog Dial and some other functions. 31 * 32 * At the moment, this driver merely tries to turn the jog dial into a 33 * device that moused can park on, with the intent of supplying a Z axis 34 * and mouse button out of the jog dial. I suspect that this device will 35 * end up having to support at least 2 different minor devices: One to be 36 * the jog wheel device for moused to camp out on and the other to perform | 1/*- 2 * Copyright (c) 2000 Nick Sayer 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 20 unchanged lines hidden (view full) --- 29 * This device exists on most recent Sony laptops. It is the means by which 30 * you can watch the Jog Dial and some other functions. 31 * 32 * At the moment, this driver merely tries to turn the jog dial into a 33 * device that moused can park on, with the intent of supplying a Z axis 34 * and mouse button out of the jog dial. I suspect that this device will 35 * end up having to support at least 2 different minor devices: One to be 36 * the jog wheel device for moused to camp out on and the other to perform |
37 * all of the other miscelaneous functions of this device. But for now, | 37 * all of the other miscellaneous functions of this device. But for now, |
38 * the jog wheel is all you get. 39 * 40 * At the moment, the data sent back by the device is rather primitive. 41 * It sends a single character per event: 42 * u = up, d = down -- that's the jog button 43 * l = left, r = right -- that's the dial. 44 * "left" and "right" are rather caprecious. They actually represent 45 * ccw and cw, respectively 46 * 47 * What documentation exists is thanks to Andrew Tridge, and his page at 48 * http://samba.org/picturebook/ Special thanks also to Ian Dowse, who 49 * also provided sample code upon which this driver was based. 50 */ 51 52#include <sys/cdefs.h> | 38 * the jog wheel is all you get. 39 * 40 * At the moment, the data sent back by the device is rather primitive. 41 * It sends a single character per event: 42 * u = up, d = down -- that's the jog button 43 * l = left, r = right -- that's the dial. 44 * "left" and "right" are rather caprecious. They actually represent 45 * ccw and cw, respectively 46 * 47 * What documentation exists is thanks to Andrew Tridge, and his page at 48 * http://samba.org/picturebook/ Special thanks also to Ian Dowse, who 49 * also provided sample code upon which this driver was based. 50 */ 51 52#include <sys/cdefs.h> |
53__FBSDID("$FreeBSD: head/sys/i386/isa/spic.c 158651 2006-05-16 14:37:58Z phk $"); | 53__FBSDID("$FreeBSD: head/sys/i386/isa/spic.c 249584 2013-04-17 11:43:46Z gabor $"); |
54 55#include <sys/param.h> 56#include <sys/systm.h> 57#include <sys/kernel.h> 58#include <sys/module.h> 59#include <sys/bus.h> 60#include <machine/bus.h> 61#include <sys/rman.h> --- 493 unchanged lines hidden --- | 54 55#include <sys/param.h> 56#include <sys/systm.h> 57#include <sys/kernel.h> 58#include <sys/module.h> 59#include <sys/bus.h> 60#include <machine/bus.h> 61#include <sys/rman.h> --- 493 unchanged lines hidden --- |