-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Linus Torvalds
committed
May 23, 2011
1 parent
8d2a9c2
commit f20bb54
Showing
500 changed files
with
33,163 additions
and
15,270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: bfb91fb650e988c3c347e50fc75fedb7d4f0c018 | ||
refs/heads/master: 4867faab1e3eb8cc3f74e390357615d9b8e8cda6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
trunk/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-koneplus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/startup_profile | ||
Date: October 2010 | ||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net> | ||
Description: The integer value of this attribute ranges from 0-4. | ||
When read, this attribute returns the number of the actual | ||
profile. This value is persistent, so its equivalent to the | ||
profile that's active when the mouse is powered on next time. | ||
When written, this file sets the number of the startup profile | ||
and the mouse activates this profile immediately. | ||
Please use actual_profile, it does the same thing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
HIDRAW - Raw Access to USB and Bluetooth Human Interface Devices | ||
================================================================== | ||
|
||
The hidraw driver provides a raw interface to USB and Bluetooth Human | ||
Interface Devices (HIDs). It differs from hiddev in that reports sent and | ||
received are not parsed by the HID parser, but are sent to and received from | ||
the device unmodified. | ||
|
||
Hidraw should be used if the userspace application knows exactly how to | ||
communicate with the hardware device, and is able to construct the HID | ||
reports manually. This is often the case when making userspace drivers for | ||
custom HID devices. | ||
|
||
Hidraw is also useful for communicating with non-conformant HID devices | ||
which send and receive data in a way that is inconsistent with their report | ||
descriptors. Because hiddev parses reports which are sent and received | ||
through it, checking them against the device's report descriptor, such | ||
communication with these non-conformant devices is impossible using hiddev. | ||
Hidraw is the only alternative, short of writing a custom kernel driver, for | ||
these non-conformant devices. | ||
|
||
A benefit of hidraw is that its use by userspace applications is independent | ||
of the underlying hardware type. Currently, Hidraw is implemented for USB | ||
and Bluetooth. In the future, as new hardware bus types are developed which | ||
use the HID specification, hidraw will be expanded to add support for these | ||
new bus types. | ||
|
||
Hidraw uses a dynamic major number, meaning that udev should be relied on to | ||
create hidraw device nodes. Udev will typically create the device nodes | ||
directly under /dev (eg: /dev/hidraw0). As this location is distribution- | ||
and udev rule-dependent, applications should use libudev to locate hidraw | ||
devices attached to the system. There is a tutorial on libudev with a | ||
working example at: | ||
http://www.signal11.us/oss/udev/ | ||
|
||
The HIDRAW API | ||
--------------- | ||
|
||
read() | ||
------- | ||
read() will read a queued report received from the HID device. On USB | ||
devices, the reports read using read() are the reports sent from the device | ||
on the INTERRUPT IN endpoint. By default, read() will block until there is | ||
a report available to be read. read() can be made non-blocking, by passing | ||
the O_NONBLOCK flag to open(), or by setting the O_NONBLOCK flag using | ||
fcntl(). | ||
|
||
On a device which uses numbered reports, the first byte of the returned data | ||
will be the report number; the report data follows, beginning in the second | ||
byte. For devices which do not use numbered reports, the report data | ||
will begin at the first byte. | ||
|
||
write() | ||
-------- | ||
The write() function will write a report to the device. For USB devices, if | ||
the device has an INTERRUPT OUT endpoint, the report will be sent on that | ||
endpoint. If it does not, the report will be sent over the control endpoint, | ||
using a SET_REPORT transfer. | ||
|
||
The first byte of the buffer passed to write() should be set to the report | ||
number. If the device does not use numbered reports, the first byte should | ||
be set to 0. The report data itself should begin at the second byte. | ||
|
||
ioctl() | ||
-------- | ||
Hidraw supports the following ioctls: | ||
|
||
HIDIOCGRDESCSIZE: Get Report Descriptor Size | ||
This ioctl will get the size of the device's report descriptor. | ||
|
||
HIDIOCGRDESC: Get Report Descriptor | ||
This ioctl returns the device's report descriptor using a | ||
hidraw_report_descriptor struct. Make sure to set the size field of the | ||
hidraw_report_descriptor struct to the size returned from HIDIOCGRDESCSIZE. | ||
|
||
HIDIOCGRAWINFO: Get Raw Info | ||
This ioctl will return a hidraw_devinfo struct containing the bus type, the | ||
vendor ID (VID), and product ID (PID) of the device. The bus type can be one | ||
of: | ||
BUS_USB | ||
BUS_HIL | ||
BUS_BLUETOOTH | ||
BUS_VIRTUAL | ||
which are defined in linux/input.h. | ||
|
||
HIDIOCGRAWNAME(len): Get Raw Name | ||
This ioctl returns a string containing the vendor and product strings of | ||
the device. The returned string is Unicode, UTF-8 encoded. | ||
|
||
HIDIOCGRAWPHYS(len): Get Physical Address | ||
This ioctl returns a string representing the physical address of the device. | ||
For USB devices, the string contains the physical path to the device (the | ||
USB controller, hubs, ports, etc). For Bluetooth devices, the string | ||
contains the hardware (MAC) address of the device. | ||
|
||
HIDIOCSFEATURE(len): Send a Feature Report | ||
This ioctl will send a feature report to the device. Per the HID | ||
specification, feature reports are always sent using the control endpoint. | ||
Set the first byte of the supplied buffer to the report number. For devices | ||
which do not use numbered reports, set the first byte to 0. The report data | ||
begins in the second byte. Make sure to set len accordingly, to one more | ||
than the length of the report (to account for the report number). | ||
|
||
HIDIOCGFEATURE(len): Get a Feature Report | ||
This ioctl will request a feature report from the device using the control | ||
endpoint. The first byte of the supplied buffer should be set to the report | ||
number of the requested report. For devices which do not use numbered | ||
reports, set the first byte to 0. The report will be returned starting at | ||
the first byte of the buffer (ie: the report number is not returned). | ||
|
||
Example | ||
--------- | ||
In samples/, find hid-example.c, which shows examples of read(), write(), | ||
and all the ioctls for hidraw. The code may be used by anyone for any | ||
purpose, and can serve as a starting point for developing applications using | ||
hidraw. | ||
|
||
Document by: | ||
Alan Ott <alan@signal11.us>, Signal 11 Software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
Kernel driver adm1275 | ||
===================== | ||
|
||
Supported chips: | ||
* Analog Devices ADM1275 | ||
Prefix: 'adm1275' | ||
Addresses scanned: - | ||
Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1275.pdf | ||
|
||
Author: Guenter Roeck <guenter.roeck@ericsson.com> | ||
|
||
|
||
Description | ||
----------- | ||
|
||
This driver supports hardware montoring for Analog Devices ADM1275 Hot-Swap | ||
Controller and Digital Power Monitor. | ||
|
||
The ADM1275 is a hot-swap controller that allows a circuit board to be removed | ||
from or inserted into a live backplane. It also features current and voltage | ||
readback via an integrated 12-bit analog-to-digital converter (ADC), accessed | ||
using a PMBus. interface. | ||
|
||
The driver is a client driver to the core PMBus driver. Please see | ||
Documentation/hwmon/pmbus for details on PMBus client drivers. | ||
|
||
|
||
Usage Notes | ||
----------- | ||
|
||
This driver does not auto-detect devices. You will have to instantiate the | ||
devices explicitly. Please see Documentation/i2c/instantiating-devices for | ||
details. | ||
|
||
|
||
Platform data support | ||
--------------------- | ||
|
||
The driver supports standard PMBus driver platform data. Please see | ||
Documentation/hwmon/pmbus for details. | ||
|
||
|
||
Sysfs entries | ||
------------- | ||
|
||
The following attributes are supported. Limits are read-write; all other | ||
attributes are read-only. | ||
|
||
in1_label "vin1" or "vout1" depending on chip variant and | ||
configuration. | ||
in1_input Measured voltage. From READ_VOUT register. | ||
in1_min Minumum Voltage. From VOUT_UV_WARN_LIMIT register. | ||
in1_max Maximum voltage. From VOUT_OV_WARN_LIMIT register. | ||
in1_min_alarm Voltage low alarm. From VOLTAGE_UV_WARNING status. | ||
in1_max_alarm Voltage high alarm. From VOLTAGE_OV_WARNING status. | ||
|
||
curr1_label "iout1" | ||
curr1_input Measured current. From READ_IOUT register. | ||
curr1_max Maximum current. From IOUT_OC_WARN_LIMIT register. | ||
curr1_max_alarm Current high alarm. From IOUT_OC_WARN_LIMIT register. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
Kernel driver max16065 | ||
====================== | ||
|
||
Supported chips: | ||
* Maxim MAX16065, MAX16066 | ||
Prefixes: 'max16065', 'max16066' | ||
Addresses scanned: - | ||
Datasheet: | ||
http://datasheets.maxim-ic.com/en/ds/MAX16065-MAX16066.pdf | ||
* Maxim MAX16067 | ||
Prefix: 'max16067' | ||
Addresses scanned: - | ||
Datasheet: | ||
http://datasheets.maxim-ic.com/en/ds/MAX16067.pdf | ||
* Maxim MAX16068 | ||
Prefix: 'max16068' | ||
Addresses scanned: - | ||
Datasheet: | ||
http://datasheets.maxim-ic.com/en/ds/MAX16068.pdf | ||
* Maxim MAX16070/MAX16071 | ||
Prefixes: 'max16070', 'max16071' | ||
Addresses scanned: - | ||
Datasheet: | ||
http://datasheets.maxim-ic.com/en/ds/MAX16070-MAX16071.pdf | ||
|
||
|
||
Author: Guenter Roeck <guenter.roeck@ericsson.com> | ||
|
||
|
||
Description | ||
----------- | ||
|
||
[From datasheets] The MAX16065/MAX16066 flash-configurable system managers | ||
monitor and sequence multiple system voltages. The MAX16065/MAX16066 can also | ||
accurately monitor (+/-2.5%) one current channel using a dedicated high-side | ||
current-sense amplifier. The MAX16065 manages up to twelve system voltages | ||
simultaneously, and the MAX16066 manages up to eight supply voltages. | ||
|
||
The MAX16067 flash-configurable system manager monitors and sequences multiple | ||
system voltages. The MAX16067 manages up to six system voltages simultaneously. | ||
|
||
The MAX16068 flash-configurable system manager monitors and manages up to six | ||
system voltages simultaneously. | ||
|
||
The MAX16070/MAX16071 flash-configurable system monitors supervise multiple | ||
system voltages. The MAX16070/MAX16071 can also accurately monitor (+/-2.5%) | ||
one current channel using a dedicated high-side current-sense amplifier. The | ||
MAX16070 monitors up to twelve system voltages simultaneously, and the MAX16071 | ||
monitors up to eight supply voltages. | ||
|
||
Each monitored channel has its own low and high critical limits. MAX16065, | ||
MAX16066, MAX16070, and MAX16071 support an additional limit which is | ||
configurable as either low or high secondary limit. MAX16065, MAX16066, | ||
MAX16070, and MAX16071 also support supply current monitoring. | ||
|
||
|
||
Usage Notes | ||
----------- | ||
|
||
This driver does not probe for devices, since there is no register which | ||
can be safely used to identify the chip. You will have to instantiate | ||
the devices explicitly. Please see Documentation/i2c/instantiating-devices for | ||
details. | ||
|
||
|
||
Sysfs entries | ||
------------- | ||
|
||
in[0-11]_input Input voltage measurements. | ||
|
||
in12_input Voltage on CSP (Current Sense Positive) pin. | ||
Only if the chip supports current sensing and if | ||
current sensing is enabled. | ||
|
||
in[0-11]_min Low warning limit. | ||
Supported on MAX16065, MAX16066, MAX16070, and MAX16071 | ||
only. | ||
|
||
in[0-11]_max High warning limit. | ||
Supported on MAX16065, MAX16066, MAX16070, and MAX16071 | ||
only. | ||
|
||
Either low or high warning limits are supported | ||
(depending on chip configuration), but not both. | ||
|
||
in[0-11]_lcrit Low critical limit. | ||
|
||
in[0-11]_crit High critical limit. | ||
|
||
in[0-11]_alarm Input voltage alarm. | ||
|
||
curr1_input Current sense input; only if the chip supports current | ||
sensing and if current sensing is enabled. | ||
Displayed current assumes 0.001 Ohm current sense | ||
resistor. | ||
|
||
curr1_alarm Overcurrent alarm; only if the chip supports current | ||
sensing and if current sensing is enabled. |
Oops, something went wrong.