diff options
| author | David Brownell <david-b@pacbell.net> | 2002-11-13 21:57:34 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2002-11-13 21:57:34 -0800 |
| commit | bdf0fc9d67c4b5701bff8120e906cd99877f03f0 (patch) | |
| tree | 47e1cdf905dac3e90c34903a68039499e4d62f55 /include/linux/hiddev.h | |
| parent | 43c72bb3d0ad1cf9812341d086a9e5b46ef6b605 (diff) | |
[PATCH] HID patches for MGE UPS
I thought I'd send the results of some experimentation of mine getting
an MGE UPS (Evolution) to talk to 2.5 ... basically it behaved after
some patches, though the "hidups" driver didn't. They're all attached:
- "hiddev-1.patch" ... The default queue size was so small that this
low-speed device couldn't queue up about 110 control requests
(that many reports to check!) during init.
- "hiddev-2.patch" ... Makes hid debug output more useful by
(a) making it compile again;
(b) adding lots of "Power Device" and "Battery System" reports,
and putting all that data into the readonly data section;
(c) actually printing the usage strings, if they're known;
(d) printing a message when neither input nor hiddev claim
the device ... likely something's wrong, like someone
didn't configure in input subsystem or hiddev support.
- "hiddev-3.patch" ... Teaches hiddev to expose the physical ID
just like the input event framework does. Useful to help sort
out which UPS is which, so you won't power down the wrong set
of servers by accident.
Diffstat (limited to 'include/linux/hiddev.h')
| -rw-r--r-- | include/linux/hiddev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hiddev.h b/include/linux/hiddev.h index 0077b58559f5..a2e1c8e09020 100644 --- a/include/linux/hiddev.h +++ b/include/linux/hiddev.h @@ -159,6 +159,7 @@ struct hiddev_usage_ref { #define HIDIOCSFLAG _IOW('H', 0x0F, int) #define HIDIOCGCOLLECTIONINDEX _IOW('H', 0x10, struct hiddev_usage_ref) #define HIDIOCGCOLLECTIONINFO _IOWR('H', 0x11, struct hiddev_collection_info) +#define HIDIOCGPHYS(len) _IOC(_IOC_READ, 'H', 0x12, len) /* * Flags to be used in HIDIOCSFLAG |
