Merge commit 'v2.6.38-rc6' into for-2.6.39/core
Conflicts: block/cfq-iosched.c Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
This commit is contained in:
2
.mailmap
2
.mailmap
@@ -23,6 +23,7 @@ Andy Adamson <andros@citi.umich.edu>
|
|||||||
Arnaud Patard <arnaud.patard@rtp-net.org>
|
Arnaud Patard <arnaud.patard@rtp-net.org>
|
||||||
Arnd Bergmann <arnd@arndb.de>
|
Arnd Bergmann <arnd@arndb.de>
|
||||||
Axel Dyks <xl@xlsigned.net>
|
Axel Dyks <xl@xlsigned.net>
|
||||||
|
Axel Lin <axel.lin@gmail.com>
|
||||||
Ben Gardner <bgardner@wabtec.com>
|
Ben Gardner <bgardner@wabtec.com>
|
||||||
Ben M Cahill <ben.m.cahill@intel.com>
|
Ben M Cahill <ben.m.cahill@intel.com>
|
||||||
Björn Steinbrink <B.Steinbrink@gmx.de>
|
Björn Steinbrink <B.Steinbrink@gmx.de>
|
||||||
@@ -105,3 +106,4 @@ Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
|
|||||||
Uwe Kleine-König <ukl@pengutronix.de>
|
Uwe Kleine-König <ukl@pengutronix.de>
|
||||||
Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
|
Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
|
||||||
Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
|
Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
|
||||||
|
Takashi YOSHII <takashi.yoshii.zj@renesas.com>
|
||||||
|
6
CREDITS
6
CREDITS
@@ -2365,8 +2365,6 @@ E: acme@redhat.com
|
|||||||
W: http://oops.ghostprotocols.net:81/blog/
|
W: http://oops.ghostprotocols.net:81/blog/
|
||||||
P: 1024D/9224DF01 D5DF E3BB E3C8 BCBB F8AD 841A B6AB 4681 9224 DF01
|
P: 1024D/9224DF01 D5DF E3BB E3C8 BCBB F8AD 841A B6AB 4681 9224 DF01
|
||||||
D: IPX, LLC, DCCP, cyc2x, wl3501_cs, net/ hacks
|
D: IPX, LLC, DCCP, cyc2x, wl3501_cs, net/ hacks
|
||||||
S: R. Brasílio Itiberê, 4270/1010 - Água Verde
|
|
||||||
S: 80240-060 - Curitiba - Paraná
|
|
||||||
S: Brazil
|
S: Brazil
|
||||||
|
|
||||||
N: Karsten Merker
|
N: Karsten Merker
|
||||||
@@ -2813,8 +2811,8 @@ D: CDROM driver "sonycd535" (Sony CDU-535/531)
|
|||||||
N: Stelian Pop
|
N: Stelian Pop
|
||||||
E: stelian@popies.net
|
E: stelian@popies.net
|
||||||
P: 1024D/EDBB6147 7B36 0E07 04BC 11DC A7A0 D3F7 7185 9E7A EDBB 6147
|
P: 1024D/EDBB6147 7B36 0E07 04BC 11DC A7A0 D3F7 7185 9E7A EDBB 6147
|
||||||
D: sonypi, meye drivers, mct_u232 usb serial hacks
|
D: random kernel hacks
|
||||||
S: Paris, France
|
S: Paimpont, France
|
||||||
|
|
||||||
N: Pete Popov
|
N: Pete Popov
|
||||||
E: pete_popov@yahoo.com
|
E: pete_popov@yahoo.com
|
||||||
|
4
Documentation/ABI/stable/thermal-notification
Normal file
4
Documentation/ABI/stable/thermal-notification
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
What: A notification mechanism for thermal related events
|
||||||
|
Description:
|
||||||
|
This interface enables notification for thermal related events.
|
||||||
|
The notification is in the form of a netlink event.
|
@@ -26,3 +26,12 @@ Description:
|
|||||||
scheduler is chosen. Trigger specific parameters can appear in
|
scheduler is chosen. Trigger specific parameters can appear in
|
||||||
/sys/class/leds/<led> once a given trigger is selected.
|
/sys/class/leds/<led> once a given trigger is selected.
|
||||||
|
|
||||||
|
What: /sys/class/leds/<led>/inverted
|
||||||
|
Date: January 2011
|
||||||
|
KernelVersion: 2.6.38
|
||||||
|
Contact: Richard Purdie <rpurdie@rpsys.net>
|
||||||
|
Description:
|
||||||
|
Invert the LED on/off state. This parameter is specific to
|
||||||
|
gpio and backlight triggers. In case of the backlight trigger,
|
||||||
|
it is usefull when driving a LED which is intended to indicate
|
||||||
|
a device in a standby like state.
|
||||||
|
@@ -22,6 +22,27 @@ Description:
|
|||||||
mesh will be fragmented or silently discarded if the
|
mesh will be fragmented or silently discarded if the
|
||||||
packet size exceeds the outgoing interface MTU.
|
packet size exceeds the outgoing interface MTU.
|
||||||
|
|
||||||
|
What: /sys/class/net/<mesh_iface>/mesh/gw_bandwidth
|
||||||
|
Date: October 2010
|
||||||
|
Contact: Marek Lindner <lindner_marek@yahoo.de>
|
||||||
|
Description:
|
||||||
|
Defines the bandwidth which is propagated by this
|
||||||
|
node if gw_mode was set to 'server'.
|
||||||
|
|
||||||
|
What: /sys/class/net/<mesh_iface>/mesh/gw_mode
|
||||||
|
Date: October 2010
|
||||||
|
Contact: Marek Lindner <lindner_marek@yahoo.de>
|
||||||
|
Description:
|
||||||
|
Defines the state of the gateway features. Can be
|
||||||
|
either 'off', 'client' or 'server'.
|
||||||
|
|
||||||
|
What: /sys/class/net/<mesh_iface>/mesh/gw_sel_class
|
||||||
|
Date: October 2010
|
||||||
|
Contact: Marek Lindner <lindner_marek@yahoo.de>
|
||||||
|
Description:
|
||||||
|
Defines the selection criteria this node will use
|
||||||
|
to choose a gateway if gw_mode was set to 'client'.
|
||||||
|
|
||||||
What: /sys/class/net/<mesh_iface>/mesh/orig_interval
|
What: /sys/class/net/<mesh_iface>/mesh/orig_interval
|
||||||
Date: May 2010
|
Date: May 2010
|
||||||
Contact: Marek Lindner <lindner_marek@yahoo.de>
|
Contact: Marek Lindner <lindner_marek@yahoo.de>
|
||||||
@@ -29,6 +50,13 @@ Description:
|
|||||||
Defines the interval in milliseconds in which batman
|
Defines the interval in milliseconds in which batman
|
||||||
sends its protocol messages.
|
sends its protocol messages.
|
||||||
|
|
||||||
|
What: /sys/class/net/<mesh_iface>/mesh/hop_penalty
|
||||||
|
Date: Oct 2010
|
||||||
|
Contact: Linus Lüssing <linus.luessing@web.de>
|
||||||
|
Description:
|
||||||
|
Defines the penalty which will be applied to an
|
||||||
|
originator message's tq-field on every hop.
|
||||||
|
|
||||||
What: /sys/class/net/<mesh_iface>/mesh/vis_mode
|
What: /sys/class/net/<mesh_iface>/mesh/vis_mode
|
||||||
Date: May 2010
|
Date: May 2010
|
||||||
Contact: Marek Lindner <lindner_marek@yahoo.de>
|
Contact: Marek Lindner <lindner_marek@yahoo.de>
|
@@ -1,4 +1,4 @@
|
|||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/actual_dpi
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/actual_dpi
|
||||||
Date: March 2010
|
Date: March 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: It is possible to switch the dpi setting of the mouse with the
|
Description: It is possible to switch the dpi setting of the mouse with the
|
||||||
@@ -17,13 +17,13 @@ Description: It is possible to switch the dpi setting of the mouse with the
|
|||||||
|
|
||||||
This file is readonly.
|
This file is readonly.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/actual_profile
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/actual_profile
|
||||||
Date: March 2010
|
Date: March 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: When read, this file returns the number of the actual profile.
|
Description: When read, this file returns the number of the actual profile.
|
||||||
This file is readonly.
|
This file is readonly.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/firmware_version
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/firmware_version
|
||||||
Date: March 2010
|
Date: March 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: When read, this file returns the raw integer version number of the
|
Description: When read, this file returns the raw integer version number of the
|
||||||
@@ -33,7 +33,7 @@ Description: When read, this file returns the raw integer version number of the
|
|||||||
left. E.g. a returned value of 138 means 1.38
|
left. E.g. a returned value of 138 means 1.38
|
||||||
This file is readonly.
|
This file is readonly.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/profile[1-5]
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/profile[1-5]
|
||||||
Date: March 2010
|
Date: March 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: The mouse can store 5 profiles which can be switched by the
|
Description: The mouse can store 5 profiles which can be switched by the
|
||||||
@@ -48,7 +48,7 @@ Description: The mouse can store 5 profiles which can be switched by the
|
|||||||
stored in the profile doesn't need to fit the number of the
|
stored in the profile doesn't need to fit the number of the
|
||||||
store.
|
store.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/settings
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/settings
|
||||||
Date: March 2010
|
Date: March 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: When read, this file returns the settings stored in the mouse.
|
Description: When read, this file returns the settings stored in the mouse.
|
||||||
@@ -58,7 +58,7 @@ Description: When read, this file returns the settings stored in the mouse.
|
|||||||
The data has to be 36 bytes long. The mouse will reject invalid
|
The data has to be 36 bytes long. The mouse will reject invalid
|
||||||
data.
|
data.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/startup_profile
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/startup_profile
|
||||||
Date: March 2010
|
Date: March 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: The integer value of this attribute ranges from 1 to 5.
|
Description: The integer value of this attribute ranges from 1 to 5.
|
||||||
@@ -67,7 +67,7 @@ Description: The integer value of this attribute ranges from 1 to 5.
|
|||||||
When written, this file sets the number of the startup profile
|
When written, this file sets the number of the startup profile
|
||||||
and the mouse activates this profile immediately.
|
and the mouse activates this profile immediately.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/tcu
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/tcu
|
||||||
Date: March 2010
|
Date: March 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: The mouse has a "Tracking Control Unit" which lets the user
|
Description: The mouse has a "Tracking Control Unit" which lets the user
|
||||||
@@ -78,7 +78,7 @@ Description: The mouse has a "Tracking Control Unit" which lets the user
|
|||||||
Writing 1 in this file will start the calibration which takes
|
Writing 1 in this file will start the calibration which takes
|
||||||
around 6 seconds to complete and activates the TCU.
|
around 6 seconds to complete and activates the TCU.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/weight
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kone/roccatkone<minor>/weight
|
||||||
Date: March 2010
|
Date: March 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: The mouse can be equipped with one of four supplied weights
|
Description: The mouse can be equipped with one of four supplied weights
|
||||||
|
108
Documentation/ABI/testing/sysfs-driver-hid-roccat-koneplus
Normal file
108
Documentation/ABI/testing/sysfs-driver-hid-roccat-koneplus
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/actual_profile
|
||||||
|
Date: October 2010
|
||||||
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
|
Description: When read, this file returns the number of the actual profile in
|
||||||
|
range 0-4.
|
||||||
|
This file is readonly.
|
||||||
|
|
||||||
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/firmware_version
|
||||||
|
Date: October 2010
|
||||||
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
|
Description: When read, this file returns the raw integer version number of the
|
||||||
|
firmware reported by the mouse. Using the integer value eases
|
||||||
|
further usage in other programs. To receive the real version
|
||||||
|
number the decimal point has to be shifted 2 positions to the
|
||||||
|
left. E.g. a returned value of 121 means 1.21
|
||||||
|
This file is readonly.
|
||||||
|
|
||||||
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/macro
|
||||||
|
Date: October 2010
|
||||||
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
|
Description: The mouse can store a macro with max 500 key/button strokes
|
||||||
|
internally.
|
||||||
|
When written, this file lets one set the sequence for a specific
|
||||||
|
button for a specific profile. Button and profile numbers are
|
||||||
|
included in written data. The data has to be 2082 bytes long.
|
||||||
|
This file is writeonly.
|
||||||
|
|
||||||
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/profile_buttons
|
||||||
|
Date: August 2010
|
||||||
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
|
Description: The mouse can store 5 profiles which can be switched by the
|
||||||
|
press of a button. A profile is split in settings and buttons.
|
||||||
|
profile_buttons holds informations about button layout.
|
||||||
|
When written, this file lets one write the respective profile
|
||||||
|
buttons back to the mouse. The data has to be 77 bytes long.
|
||||||
|
The mouse will reject invalid data.
|
||||||
|
Which profile to write is determined by the profile number
|
||||||
|
contained in the data.
|
||||||
|
This file is writeonly.
|
||||||
|
|
||||||
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/profile[1-5]_buttons
|
||||||
|
Date: August 2010
|
||||||
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
|
Description: The mouse can store 5 profiles which can be switched by the
|
||||||
|
press of a button. A profile is split in settings and buttons.
|
||||||
|
profile_buttons holds informations about button layout.
|
||||||
|
When read, these files return the respective profile buttons.
|
||||||
|
The returned data is 77 bytes in size.
|
||||||
|
This file is readonly.
|
||||||
|
|
||||||
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/profile_settings
|
||||||
|
Date: October 2010
|
||||||
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
|
Description: The mouse can store 5 profiles which can be switched by the
|
||||||
|
press of a button. A profile is split in settings and buttons.
|
||||||
|
profile_settings holds informations like resolution, sensitivity
|
||||||
|
and light effects.
|
||||||
|
When written, this file lets one write the respective profile
|
||||||
|
settings back to the mouse. The data has to be 43 bytes long.
|
||||||
|
The mouse will reject invalid data.
|
||||||
|
Which profile to write is determined by the profile number
|
||||||
|
contained in the data.
|
||||||
|
This file is writeonly.
|
||||||
|
|
||||||
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/profile[1-5]_settings
|
||||||
|
Date: August 2010
|
||||||
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
|
Description: The mouse can store 5 profiles which can be switched by the
|
||||||
|
press of a button. A profile is split in settings and buttons.
|
||||||
|
profile_settings holds informations like resolution, sensitivity
|
||||||
|
and light effects.
|
||||||
|
When read, these files return the respective profile settings.
|
||||||
|
The returned data is 43 bytes in size.
|
||||||
|
This file is readonly.
|
||||||
|
|
||||||
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/sensor
|
||||||
|
Date: October 2010
|
||||||
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
|
Description: The mouse has a tracking- and a distance-control-unit. These
|
||||||
|
can be activated/deactivated and the lift-off distance can be
|
||||||
|
set. The data has to be 6 bytes long.
|
||||||
|
This file is writeonly.
|
||||||
|
|
||||||
|
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 profile
|
||||||
|
that's active when the mouse is powered on.
|
||||||
|
When written, this file sets the number of the startup profile
|
||||||
|
and the mouse activates this profile immediately.
|
||||||
|
|
||||||
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/tcu
|
||||||
|
Date: October 2010
|
||||||
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
|
Description: When written a calibration process for the tracking control unit
|
||||||
|
can be initiated/cancelled.
|
||||||
|
The data has to be 3 bytes long.
|
||||||
|
This file is writeonly.
|
||||||
|
|
||||||
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/koneplus/roccatkoneplus<minor>/tcu_image
|
||||||
|
Date: October 2010
|
||||||
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
|
Description: When read the mouse returns a 30x30 pixel image of the
|
||||||
|
sampled underground. This works only in the course of a
|
||||||
|
calibration process initiated with tcu.
|
||||||
|
The returned data is 1028 bytes in size.
|
||||||
|
This file is readonly.
|
@@ -1,4 +1,4 @@
|
|||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/actual_cpi
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/pyra/roccatpyra<minor>/actual_cpi
|
||||||
Date: August 2010
|
Date: August 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: It is possible to switch the cpi setting of the mouse with the
|
Description: It is possible to switch the cpi setting of the mouse with the
|
||||||
@@ -14,14 +14,14 @@ Description: It is possible to switch the cpi setting of the mouse with the
|
|||||||
|
|
||||||
This file is readonly.
|
This file is readonly.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/actual_profile
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/pyra/roccatpyra<minor>/actual_profile
|
||||||
Date: August 2010
|
Date: August 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: When read, this file returns the number of the actual profile in
|
Description: When read, this file returns the number of the actual profile in
|
||||||
range 0-4.
|
range 0-4.
|
||||||
This file is readonly.
|
This file is readonly.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/firmware_version
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/pyra/roccatpyra<minor>/firmware_version
|
||||||
Date: August 2010
|
Date: August 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: When read, this file returns the raw integer version number of the
|
Description: When read, this file returns the raw integer version number of the
|
||||||
@@ -31,7 +31,7 @@ Description: When read, this file returns the raw integer version number of the
|
|||||||
left. E.g. a returned value of 138 means 1.38
|
left. E.g. a returned value of 138 means 1.38
|
||||||
This file is readonly.
|
This file is readonly.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/profile_settings
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/pyra/roccatpyra<minor>/profile_settings
|
||||||
Date: August 2010
|
Date: August 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: The mouse can store 5 profiles which can be switched by the
|
Description: The mouse can store 5 profiles which can be switched by the
|
||||||
@@ -45,7 +45,7 @@ Description: The mouse can store 5 profiles which can be switched by the
|
|||||||
contained in the data.
|
contained in the data.
|
||||||
This file is writeonly.
|
This file is writeonly.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/profile[1-5]_settings
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/pyra/roccatpyra<minor>/profile[1-5]_settings
|
||||||
Date: August 2010
|
Date: August 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: The mouse can store 5 profiles which can be switched by the
|
Description: The mouse can store 5 profiles which can be switched by the
|
||||||
@@ -56,7 +56,7 @@ Description: The mouse can store 5 profiles which can be switched by the
|
|||||||
The returned data is 13 bytes in size.
|
The returned data is 13 bytes in size.
|
||||||
This file is readonly.
|
This file is readonly.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/profile_buttons
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/pyra/roccatpyra<minor>/profile_buttons
|
||||||
Date: August 2010
|
Date: August 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: The mouse can store 5 profiles which can be switched by the
|
Description: The mouse can store 5 profiles which can be switched by the
|
||||||
@@ -69,7 +69,7 @@ Description: The mouse can store 5 profiles which can be switched by the
|
|||||||
contained in the data.
|
contained in the data.
|
||||||
This file is writeonly.
|
This file is writeonly.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/profile[1-5]_buttons
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/pyra/roccatpyra<minor>/profile[1-5]_buttons
|
||||||
Date: August 2010
|
Date: August 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: The mouse can store 5 profiles which can be switched by the
|
Description: The mouse can store 5 profiles which can be switched by the
|
||||||
@@ -79,7 +79,7 @@ Description: The mouse can store 5 profiles which can be switched by the
|
|||||||
The returned data is 19 bytes in size.
|
The returned data is 19 bytes in size.
|
||||||
This file is readonly.
|
This file is readonly.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/startup_profile
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/pyra/roccatpyra<minor>/startup_profile
|
||||||
Date: August 2010
|
Date: August 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: The integer value of this attribute ranges from 0-4.
|
Description: The integer value of this attribute ranges from 0-4.
|
||||||
@@ -87,7 +87,7 @@ Description: The integer value of this attribute ranges from 0-4.
|
|||||||
that's active when the mouse is powered on.
|
that's active when the mouse is powered on.
|
||||||
This file is readonly.
|
This file is readonly.
|
||||||
|
|
||||||
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/settings
|
What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/pyra/roccatpyra<minor>/settings
|
||||||
Date: August 2010
|
Date: August 2010
|
||||||
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
Contact: Stefan Achatz <erazor_de@users.sourceforge.net>
|
||||||
Description: When read, this file returns the settings stored in the mouse.
|
Description: When read, this file returns the settings stored in the mouse.
|
||||||
|
25
Documentation/ABI/testing/sysfs-platform-at91
Normal file
25
Documentation/ABI/testing/sysfs-platform-at91
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
What: /sys/devices/platform/at91_can/net/<iface>/mb0_id
|
||||||
|
Date: January 2011
|
||||||
|
KernelVersion: 2.6.38
|
||||||
|
Contact: Marc Kleine-Budde <kernel@pengutronix.de>
|
||||||
|
Description:
|
||||||
|
Value representing the can_id of mailbox 0.
|
||||||
|
|
||||||
|
Default: 0x7ff (standard frame)
|
||||||
|
|
||||||
|
Due to a chip bug (errata 50.2.6.3 & 50.3.5.3 in
|
||||||
|
"AT91SAM9263 Preliminary 6249H-ATARM-27-Jul-09") the
|
||||||
|
contents of mailbox 0 may be send under certain
|
||||||
|
conditions (even if disabled or in rx mode).
|
||||||
|
|
||||||
|
The workaround in the errata suggests not to use the
|
||||||
|
mailbox and load it with an unused identifier.
|
||||||
|
|
||||||
|
In order to use an extended can_id add the
|
||||||
|
CAN_EFF_FLAG (0x80000000U) to the can_id. Example:
|
||||||
|
|
||||||
|
- standard id 0x7ff:
|
||||||
|
echo 0x7ff > /sys/class/net/can0/mb0_id
|
||||||
|
|
||||||
|
- extended id 0x1fffffff:
|
||||||
|
echo 0x9fffffff > /sys/class/net/can0/mb0_id
|
6
Documentation/ABI/testing/sysfs-platform-ideapad-laptop
Normal file
6
Documentation/ABI/testing/sysfs-platform-ideapad-laptop
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
What: /sys/devices/platform/ideapad/camera_power
|
||||||
|
Date: Dec 2010
|
||||||
|
KernelVersion: 2.6.37
|
||||||
|
Contact: "Ike Panhc <ike.pan@canonical.com>"
|
||||||
|
Description:
|
||||||
|
Control the power of camera module. 1 means on, 0 means off.
|
19
Documentation/ABI/testing/sysfs-tty
Normal file
19
Documentation/ABI/testing/sysfs-tty
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
What: /sys/class/tty/console/active
|
||||||
|
Date: Nov 2010
|
||||||
|
Contact: Kay Sievers <kay.sievers@vrfy.org>
|
||||||
|
Description:
|
||||||
|
Shows the list of currently configured
|
||||||
|
console devices, like 'tty1 ttyS0'.
|
||||||
|
The last entry in the file is the active
|
||||||
|
device connected to /dev/console.
|
||||||
|
The file supports poll() to detect virtual
|
||||||
|
console switches.
|
||||||
|
|
||||||
|
What: /sys/class/tty/tty0/active
|
||||||
|
Date: Nov 2010
|
||||||
|
Contact: Kay Sievers <kay.sievers@vrfy.org>
|
||||||
|
Description:
|
||||||
|
Shows the currently active virtual console
|
||||||
|
device, like 'tty1'.
|
||||||
|
The file supports poll() to detect virtual
|
||||||
|
console switches.
|
@@ -146,6 +146,7 @@
|
|||||||
!Finclude/net/cfg80211.h cfg80211_rx_mgmt
|
!Finclude/net/cfg80211.h cfg80211_rx_mgmt
|
||||||
!Finclude/net/cfg80211.h cfg80211_mgmt_tx_status
|
!Finclude/net/cfg80211.h cfg80211_mgmt_tx_status
|
||||||
!Finclude/net/cfg80211.h cfg80211_cqm_rssi_notify
|
!Finclude/net/cfg80211.h cfg80211_cqm_rssi_notify
|
||||||
|
!Finclude/net/cfg80211.h cfg80211_cqm_pktloss_notify
|
||||||
!Finclude/net/cfg80211.h cfg80211_michael_mic_failure
|
!Finclude/net/cfg80211.h cfg80211_michael_mic_failure
|
||||||
</chapter>
|
</chapter>
|
||||||
<chapter>
|
<chapter>
|
||||||
@@ -267,10 +268,6 @@
|
|||||||
!Finclude/net/mac80211.h ieee80211_ops
|
!Finclude/net/mac80211.h ieee80211_ops
|
||||||
!Finclude/net/mac80211.h ieee80211_alloc_hw
|
!Finclude/net/mac80211.h ieee80211_alloc_hw
|
||||||
!Finclude/net/mac80211.h ieee80211_register_hw
|
!Finclude/net/mac80211.h ieee80211_register_hw
|
||||||
!Finclude/net/mac80211.h ieee80211_get_tx_led_name
|
|
||||||
!Finclude/net/mac80211.h ieee80211_get_rx_led_name
|
|
||||||
!Finclude/net/mac80211.h ieee80211_get_assoc_led_name
|
|
||||||
!Finclude/net/mac80211.h ieee80211_get_radio_led_name
|
|
||||||
!Finclude/net/mac80211.h ieee80211_unregister_hw
|
!Finclude/net/mac80211.h ieee80211_unregister_hw
|
||||||
!Finclude/net/mac80211.h ieee80211_free_hw
|
!Finclude/net/mac80211.h ieee80211_free_hw
|
||||||
</chapter>
|
</chapter>
|
||||||
@@ -332,10 +329,16 @@
|
|||||||
<title>functions/definitions</title>
|
<title>functions/definitions</title>
|
||||||
!Finclude/net/mac80211.h ieee80211_rx_status
|
!Finclude/net/mac80211.h ieee80211_rx_status
|
||||||
!Finclude/net/mac80211.h mac80211_rx_flags
|
!Finclude/net/mac80211.h mac80211_rx_flags
|
||||||
|
!Finclude/net/mac80211.h mac80211_tx_control_flags
|
||||||
|
!Finclude/net/mac80211.h mac80211_rate_control_flags
|
||||||
|
!Finclude/net/mac80211.h ieee80211_tx_rate
|
||||||
!Finclude/net/mac80211.h ieee80211_tx_info
|
!Finclude/net/mac80211.h ieee80211_tx_info
|
||||||
|
!Finclude/net/mac80211.h ieee80211_tx_info_clear_status
|
||||||
!Finclude/net/mac80211.h ieee80211_rx
|
!Finclude/net/mac80211.h ieee80211_rx
|
||||||
|
!Finclude/net/mac80211.h ieee80211_rx_ni
|
||||||
!Finclude/net/mac80211.h ieee80211_rx_irqsafe
|
!Finclude/net/mac80211.h ieee80211_rx_irqsafe
|
||||||
!Finclude/net/mac80211.h ieee80211_tx_status
|
!Finclude/net/mac80211.h ieee80211_tx_status
|
||||||
|
!Finclude/net/mac80211.h ieee80211_tx_status_ni
|
||||||
!Finclude/net/mac80211.h ieee80211_tx_status_irqsafe
|
!Finclude/net/mac80211.h ieee80211_tx_status_irqsafe
|
||||||
!Finclude/net/mac80211.h ieee80211_rts_get
|
!Finclude/net/mac80211.h ieee80211_rts_get
|
||||||
!Finclude/net/mac80211.h ieee80211_rts_duration
|
!Finclude/net/mac80211.h ieee80211_rts_duration
|
||||||
@@ -346,6 +349,7 @@
|
|||||||
!Finclude/net/mac80211.h ieee80211_stop_queue
|
!Finclude/net/mac80211.h ieee80211_stop_queue
|
||||||
!Finclude/net/mac80211.h ieee80211_wake_queues
|
!Finclude/net/mac80211.h ieee80211_wake_queues
|
||||||
!Finclude/net/mac80211.h ieee80211_stop_queues
|
!Finclude/net/mac80211.h ieee80211_stop_queues
|
||||||
|
!Finclude/net/mac80211.h ieee80211_queue_stopped
|
||||||
</sect1>
|
</sect1>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
@@ -354,6 +358,13 @@
|
|||||||
!Pinclude/net/mac80211.h Frame filtering
|
!Pinclude/net/mac80211.h Frame filtering
|
||||||
!Finclude/net/mac80211.h ieee80211_filter_flags
|
!Finclude/net/mac80211.h ieee80211_filter_flags
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="workqueue">
|
||||||
|
<title>The mac80211 workqueue</title>
|
||||||
|
!Pinclude/net/mac80211.h mac80211 workqueue
|
||||||
|
!Finclude/net/mac80211.h ieee80211_queue_work
|
||||||
|
!Finclude/net/mac80211.h ieee80211_queue_delayed_work
|
||||||
|
</chapter>
|
||||||
</part>
|
</part>
|
||||||
|
|
||||||
<part id="advanced">
|
<part id="advanced">
|
||||||
@@ -367,6 +378,23 @@
|
|||||||
</para>
|
</para>
|
||||||
</partintro>
|
</partintro>
|
||||||
|
|
||||||
|
<chapter id="led-support">
|
||||||
|
<title>LED support</title>
|
||||||
|
<para>
|
||||||
|
Mac80211 supports various ways of blinking LEDs. Wherever possible,
|
||||||
|
device LEDs should be exposed as LED class devices and hooked up to
|
||||||
|
the appropriate trigger, which will then be triggered appropriately
|
||||||
|
by mac80211.
|
||||||
|
</para>
|
||||||
|
!Finclude/net/mac80211.h ieee80211_get_tx_led_name
|
||||||
|
!Finclude/net/mac80211.h ieee80211_get_rx_led_name
|
||||||
|
!Finclude/net/mac80211.h ieee80211_get_assoc_led_name
|
||||||
|
!Finclude/net/mac80211.h ieee80211_get_radio_led_name
|
||||||
|
!Finclude/net/mac80211.h ieee80211_tpt_blink
|
||||||
|
!Finclude/net/mac80211.h ieee80211_tpt_led_trigger_flags
|
||||||
|
!Finclude/net/mac80211.h ieee80211_create_tpt_led_trigger
|
||||||
|
</chapter>
|
||||||
|
|
||||||
<chapter id="hardware-crypto-offload">
|
<chapter id="hardware-crypto-offload">
|
||||||
<title>Hardware crypto acceleration</title>
|
<title>Hardware crypto acceleration</title>
|
||||||
!Pinclude/net/mac80211.h Hardware crypto acceleration
|
!Pinclude/net/mac80211.h Hardware crypto acceleration
|
||||||
@@ -374,6 +402,9 @@
|
|||||||
!Finclude/net/mac80211.h set_key_cmd
|
!Finclude/net/mac80211.h set_key_cmd
|
||||||
!Finclude/net/mac80211.h ieee80211_key_conf
|
!Finclude/net/mac80211.h ieee80211_key_conf
|
||||||
!Finclude/net/mac80211.h ieee80211_key_flags
|
!Finclude/net/mac80211.h ieee80211_key_flags
|
||||||
|
!Finclude/net/mac80211.h ieee80211_tkip_key_type
|
||||||
|
!Finclude/net/mac80211.h ieee80211_get_tkip_key
|
||||||
|
!Finclude/net/mac80211.h ieee80211_key_removed
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
<chapter id="powersave">
|
<chapter id="powersave">
|
||||||
@@ -417,6 +448,18 @@
|
|||||||
supported by mac80211, add notes about supporting hw crypto
|
supported by mac80211, add notes about supporting hw crypto
|
||||||
with it.
|
with it.
|
||||||
</para>
|
</para>
|
||||||
|
!Finclude/net/mac80211.h ieee80211_iterate_active_interfaces
|
||||||
|
!Finclude/net/mac80211.h ieee80211_iterate_active_interfaces_atomic
|
||||||
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="station-handling">
|
||||||
|
<title>Station handling</title>
|
||||||
|
<para>TODO</para>
|
||||||
|
!Finclude/net/mac80211.h ieee80211_sta
|
||||||
|
!Finclude/net/mac80211.h sta_notify_cmd
|
||||||
|
!Finclude/net/mac80211.h ieee80211_find_sta
|
||||||
|
!Finclude/net/mac80211.h ieee80211_find_sta_by_ifaddr
|
||||||
|
!Finclude/net/mac80211.h ieee80211_sta_block_awake
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
<chapter id="hardware-scan-offload">
|
<chapter id="hardware-scan-offload">
|
||||||
@@ -424,6 +467,28 @@
|
|||||||
<para>TBD</para>
|
<para>TBD</para>
|
||||||
!Finclude/net/mac80211.h ieee80211_scan_completed
|
!Finclude/net/mac80211.h ieee80211_scan_completed
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="aggregation">
|
||||||
|
<title>Aggregation</title>
|
||||||
|
<sect1>
|
||||||
|
<title>TX A-MPDU aggregation</title>
|
||||||
|
!Pnet/mac80211/agg-tx.c TX A-MPDU aggregation
|
||||||
|
!Cnet/mac80211/agg-tx.c
|
||||||
|
</sect1>
|
||||||
|
<sect1>
|
||||||
|
<title>RX A-MPDU aggregation</title>
|
||||||
|
!Pnet/mac80211/agg-rx.c RX A-MPDU aggregation
|
||||||
|
!Cnet/mac80211/agg-rx.c
|
||||||
|
</sect1>
|
||||||
|
!Finclude/net/mac80211.h ieee80211_ampdu_mlme_action
|
||||||
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="smps">
|
||||||
|
<title>Spatial Multiplexing Powersave (SMPS)</title>
|
||||||
|
!Pinclude/net/mac80211.h Spatial multiplexing power save
|
||||||
|
!Finclude/net/mac80211.h ieee80211_request_smps
|
||||||
|
!Finclude/net/mac80211.h ieee80211_smps_mode
|
||||||
|
</chapter>
|
||||||
</part>
|
</part>
|
||||||
|
|
||||||
<part id="rate-control">
|
<part id="rate-control">
|
||||||
@@ -435,9 +500,16 @@
|
|||||||
interface and how it relates to mac80211 and drivers.
|
interface and how it relates to mac80211 and drivers.
|
||||||
</para>
|
</para>
|
||||||
</partintro>
|
</partintro>
|
||||||
<chapter id="dummy">
|
<chapter id="ratecontrol-api">
|
||||||
<title>dummy chapter</title>
|
<title>Rate Control API</title>
|
||||||
<para>TBD</para>
|
<para>TBD</para>
|
||||||
|
!Finclude/net/mac80211.h ieee80211_start_tx_ba_session
|
||||||
|
!Finclude/net/mac80211.h ieee80211_start_tx_ba_cb_irqsafe
|
||||||
|
!Finclude/net/mac80211.h ieee80211_stop_tx_ba_session
|
||||||
|
!Finclude/net/mac80211.h ieee80211_stop_tx_ba_cb_irqsafe
|
||||||
|
!Finclude/net/mac80211.h rate_control_changed
|
||||||
|
!Finclude/net/mac80211.h ieee80211_tx_rate_control
|
||||||
|
!Finclude/net/mac80211.h rate_control_send_low
|
||||||
</chapter>
|
</chapter>
|
||||||
</part>
|
</part>
|
||||||
|
|
||||||
@@ -485,6 +557,13 @@
|
|||||||
</sect1>
|
</sect1>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="aggregation-internals">
|
||||||
|
<title>Aggregation</title>
|
||||||
|
!Fnet/mac80211/sta_info.h sta_ampdu_mlme
|
||||||
|
!Fnet/mac80211/sta_info.h tid_ampdu_tx
|
||||||
|
!Fnet/mac80211/sta_info.h tid_ampdu_rx
|
||||||
|
</chapter>
|
||||||
|
|
||||||
<chapter id="synchronisation">
|
<chapter id="synchronisation">
|
||||||
<title>Synchronisation</title>
|
<title>Synchronisation</title>
|
||||||
<para>TBD</para>
|
<para>TBD</para>
|
||||||
|
@@ -217,8 +217,8 @@ X!Isound/sound_firmware.c
|
|||||||
<chapter id="uart16x50">
|
<chapter id="uart16x50">
|
||||||
<title>16x50 UART Driver</title>
|
<title>16x50 UART Driver</title>
|
||||||
!Iinclude/linux/serial_core.h
|
!Iinclude/linux/serial_core.h
|
||||||
!Edrivers/serial/serial_core.c
|
!Edrivers/tty/serial/serial_core.c
|
||||||
!Edrivers/serial/8250.c
|
!Edrivers/tty/serial/8250.c
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
<chapter id="fbdev">
|
<chapter id="fbdev">
|
||||||
@@ -303,6 +303,10 @@ X!Idrivers/video/console/fonts.c
|
|||||||
!Edrivers/input/input.c
|
!Edrivers/input/input.c
|
||||||
!Edrivers/input/ff-core.c
|
!Edrivers/input/ff-core.c
|
||||||
!Edrivers/input/ff-memless.c
|
!Edrivers/input/ff-memless.c
|
||||||
|
</sect1>
|
||||||
|
<sect1><title>Multitouch Library</title>
|
||||||
|
!Iinclude/linux/input/mt.h
|
||||||
|
!Edrivers/input/input-mt.c
|
||||||
</sect1>
|
</sect1>
|
||||||
<sect1><title>Polled input devices</title>
|
<sect1><title>Polled input devices</title>
|
||||||
!Iinclude/linux/input-polldev.h
|
!Iinclude/linux/input-polldev.h
|
||||||
|
@@ -73,8 +73,8 @@
|
|||||||
services.
|
services.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
The core of every DRM driver is struct drm_device. Drivers
|
The core of every DRM driver is struct drm_driver. Drivers
|
||||||
will typically statically initialize a drm_device structure,
|
will typically statically initialize a drm_driver structure,
|
||||||
then pass it to drm_init() at load time.
|
then pass it to drm_init() at load time.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
<title>Driver initialization</title>
|
<title>Driver initialization</title>
|
||||||
<para>
|
<para>
|
||||||
Before calling the DRM initialization routines, the driver must
|
Before calling the DRM initialization routines, the driver must
|
||||||
first create and fill out a struct drm_device structure.
|
first create and fill out a struct drm_driver structure.
|
||||||
</para>
|
</para>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
static struct drm_driver driver = {
|
static struct drm_driver driver = {
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
<holder>Convergence GmbH</holder>
|
<holder>Convergence GmbH</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
<copyright>
|
<copyright>
|
||||||
<year>2009-2010</year>
|
<year>2009-2011</year>
|
||||||
<holder>Mauro Carvalho Chehab</holder>
|
<holder>Mauro Carvalho Chehab</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
|
|
||||||
|
@@ -82,6 +82,11 @@
|
|||||||
</sect1>
|
</sect1>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="fs_events">
|
||||||
|
<title>Events based on file descriptors</title>
|
||||||
|
!Efs/eventfd.c
|
||||||
|
</chapter>
|
||||||
|
|
||||||
<chapter id="sysfs">
|
<chapter id="sysfs">
|
||||||
<title>The Filesystem for Exporting Kernel Objects</title>
|
<title>The Filesystem for Exporting Kernel Objects</title>
|
||||||
!Efs/sysfs/file.c
|
!Efs/sysfs/file.c
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
<title>LINUX MEDIA INFRASTRUCTURE API</title>
|
<title>LINUX MEDIA INFRASTRUCTURE API</title>
|
||||||
|
|
||||||
<copyright>
|
<copyright>
|
||||||
<year>2009-2010</year>
|
<year>2009-2011</year>
|
||||||
<holder>LinuxTV Developers</holder>
|
<holder>LinuxTV Developers</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ Foundation. A copy of the license is included in the chapter entitled
|
|||||||
</author>
|
</author>
|
||||||
</authorgroup>
|
</authorgroup>
|
||||||
<copyright>
|
<copyright>
|
||||||
<year>2009-2010</year>
|
<year>2009-2011</year>
|
||||||
<holder>Mauro Carvalho Chehab</holder>
|
<holder>Mauro Carvalho Chehab</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
|
|
||||||
|
@@ -250,7 +250,7 @@ static void board_hwcontrol(struct mtd_info *mtd, int cmd)
|
|||||||
<title>Device ready function</title>
|
<title>Device ready function</title>
|
||||||
<para>
|
<para>
|
||||||
If the hardware interface has the ready busy pin of the NAND chip connected to a
|
If the hardware interface has the ready busy pin of the NAND chip connected to a
|
||||||
GPIO or other accesible I/O pin, this function is used to read back the state of the
|
GPIO or other accessible I/O pin, this function is used to read back the state of the
|
||||||
pin. The function has no arguments and should return 0, if the device is busy (R/B pin
|
pin. The function has no arguments and should return 0, if the device is busy (R/B pin
|
||||||
is low) and 1, if the device is ready (R/B pin is high).
|
is low) and 1, if the device is ready (R/B pin is high).
|
||||||
If the hardware interface does not give access to the ready busy pin, then
|
If the hardware interface does not give access to the ready busy pin, then
|
||||||
|
@@ -75,6 +75,7 @@ as follows:</para>
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
<title>RDS datastructures</title>
|
||||||
<table frame="none" pgwide="1" id="v4l2-rds-data">
|
<table frame="none" pgwide="1" id="v4l2-rds-data">
|
||||||
<title>struct
|
<title>struct
|
||||||
<structname>v4l2_rds_data</structname></title>
|
<structname>v4l2_rds_data</structname></title>
|
||||||
@@ -129,10 +130,11 @@ as follows:</para>
|
|||||||
|
|
||||||
<table frame="none" pgwide="1" id="v4l2-rds-block-codes">
|
<table frame="none" pgwide="1" id="v4l2-rds-block-codes">
|
||||||
<title>Block defines</title>
|
<title>Block defines</title>
|
||||||
<tgroup cols="3">
|
<tgroup cols="4">
|
||||||
<colspec colname="c1" colwidth="1*" />
|
<colspec colname="c1" colwidth="1*" />
|
||||||
<colspec colname="c2" colwidth="1*" />
|
<colspec colname="c2" colwidth="1*" />
|
||||||
<colspec colname="c3" colwidth="5*" />
|
<colspec colname="c3" colwidth="1*" />
|
||||||
|
<colspec colname="c4" colwidth="5*" />
|
||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<row>
|
<row>
|
||||||
<entry>V4L2_RDS_BLOCK_MSK</entry>
|
<entry>V4L2_RDS_BLOCK_MSK</entry>
|
||||||
|
@@ -34,8 +34,7 @@
|
|||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><parameter>request</parameter></term>
|
<term><parameter>request</parameter></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>V4L2 ioctl request code as defined in the <link
|
<para>V4L2 ioctl request code as defined in the <filename>videodev2.h</filename> header file, for example
|
||||||
linkend="videodev">videodev.h</link> header file, for example
|
|
||||||
VIDIOC_QUERYCAP.</para>
|
VIDIOC_QUERYCAP.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@@ -57,7 +56,7 @@ file descriptor. An ioctl <parameter>request</parameter> has encoded
|
|||||||
in it whether the argument is an input, output or read/write
|
in it whether the argument is an input, output or read/write
|
||||||
parameter, and the size of the argument <parameter>argp</parameter> in
|
parameter, and the size of the argument <parameter>argp</parameter> in
|
||||||
bytes. Macros and defines specifying V4L2 ioctl requests are located
|
bytes. Macros and defines specifying V4L2 ioctl requests are located
|
||||||
in the <link linkend="videodev">videodev.h</link> header file.
|
in the <filename>videodev2.h</filename> header file.
|
||||||
Applications should use their own copy, not include the version in the
|
Applications should use their own copy, not include the version in the
|
||||||
kernel sources on the system they compile on. All V4L2 ioctl requests,
|
kernel sources on the system they compile on. All V4L2 ioctl requests,
|
||||||
their respective function and parameters are specified in <xref
|
their respective function and parameters are specified in <xref
|
||||||
|
@@ -142,8 +142,8 @@ leftmost pixel of the second row from the top, and so on. The last row
|
|||||||
has just as many pad bytes after it as the other rows.</para>
|
has just as many pad bytes after it as the other rows.</para>
|
||||||
|
|
||||||
<para>In V4L2 each format has an identifier which looks like
|
<para>In V4L2 each format has an identifier which looks like
|
||||||
<constant>PIX_FMT_XXX</constant>, defined in the <link
|
<constant>PIX_FMT_XXX</constant>, defined in the <filename>videodev2.h</filename>
|
||||||
linkend="videodev">videodev.h</link> header file. These identifiers
|
header file. These identifiers
|
||||||
represent <link linkend="v4l2-fourcc">four character codes</link>
|
represent <link linkend="v4l2-fourcc">four character codes</link>
|
||||||
which are also listed below, however they are not the same as those
|
which are also listed below, however they are not the same as those
|
||||||
used in the Windows world.</para>
|
used in the Windows world.</para>
|
||||||
|
@@ -100,6 +100,7 @@ Remote Controller chapter.</contrib>
|
|||||||
<year>2008</year>
|
<year>2008</year>
|
||||||
<year>2009</year>
|
<year>2009</year>
|
||||||
<year>2010</year>
|
<year>2010</year>
|
||||||
|
<year>2011</year>
|
||||||
<holder>Bill Dirks, Michael H. Schimek, Hans Verkuil, Martin
|
<holder>Bill Dirks, Michael H. Schimek, Hans Verkuil, Martin
|
||||||
Rubli, Andy Walls, Muralidharan Karicheri, Mauro Carvalho Chehab</holder>
|
Rubli, Andy Walls, Muralidharan Karicheri, Mauro Carvalho Chehab</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
@@ -381,7 +382,7 @@ and discussions on the V4L mailing list.</revremark>
|
|||||||
</partinfo>
|
</partinfo>
|
||||||
|
|
||||||
<title>Video for Linux Two API Specification</title>
|
<title>Video for Linux Two API Specification</title>
|
||||||
<subtitle>Revision 2.6.33</subtitle>
|
<subtitle>Revision 2.6.38</subtitle>
|
||||||
|
|
||||||
<chapter id="common">
|
<chapter id="common">
|
||||||
&sub-common;
|
&sub-common;
|
||||||
|
@@ -533,6 +533,33 @@ completion during sending a panic event.
|
|||||||
Other Pieces
|
Other Pieces
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
Get the detailed info related with the IPMI device
|
||||||
|
--------------------------------------------------
|
||||||
|
|
||||||
|
Some users need more detailed information about a device, like where
|
||||||
|
the address came from or the raw base device for the IPMI interface.
|
||||||
|
You can use the IPMI smi_watcher to catch the IPMI interfaces as they
|
||||||
|
come or go, and to grab the information, you can use the function
|
||||||
|
ipmi_get_smi_info(), which returns the following structure:
|
||||||
|
|
||||||
|
struct ipmi_smi_info {
|
||||||
|
enum ipmi_addr_src addr_src;
|
||||||
|
struct device *dev;
|
||||||
|
union {
|
||||||
|
struct {
|
||||||
|
void *acpi_handle;
|
||||||
|
} acpi_info;
|
||||||
|
} addr_info;
|
||||||
|
};
|
||||||
|
|
||||||
|
Currently special info for only for SI_ACPI address sources is
|
||||||
|
returned. Others may be added as necessary.
|
||||||
|
|
||||||
|
Note that the dev pointer is included in the above structure, and
|
||||||
|
assuming ipmi_smi_get_info returns success, you must call put_device
|
||||||
|
on the dev pointer.
|
||||||
|
|
||||||
|
|
||||||
Watchdog
|
Watchdog
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
obj-m := DocBook/ accounting/ auxdisplay/ connector/ \
|
obj-m := DocBook/ accounting/ auxdisplay/ connector/ \
|
||||||
filesystems/ filesystems/configfs/ ia64/ laptops/ networking/ \
|
filesystems/ filesystems/configfs/ ia64/ laptops/ networking/ \
|
||||||
pcmcia/ spi/ timers/ video4linux/ vm/ watchdog/src/
|
pcmcia/ spi/ timers/ vm/ watchdog/src/
|
||||||
|
@@ -1,18 +1,22 @@
|
|||||||
CONFIG_RCU_TRACE debugfs Files and Formats
|
CONFIG_RCU_TRACE debugfs Files and Formats
|
||||||
|
|
||||||
|
|
||||||
The rcutree implementation of RCU provides debugfs trace output that
|
The rcutree and rcutiny implementations of RCU provide debugfs trace
|
||||||
summarizes counters and state. This information is useful for debugging
|
output that summarizes counters and state. This information is useful for
|
||||||
RCU itself, and can sometimes also help to debug abuses of RCU.
|
debugging RCU itself, and can sometimes also help to debug abuses of RCU.
|
||||||
The following sections describe the debugfs files and formats.
|
The following sections describe the debugfs files and formats, first
|
||||||
|
for rcutree and next for rcutiny.
|
||||||
|
|
||||||
|
|
||||||
Hierarchical RCU debugfs Files and Formats
|
CONFIG_TREE_RCU and CONFIG_TREE_PREEMPT_RCU debugfs Files and Formats
|
||||||
|
|
||||||
This implementation of RCU provides three debugfs files under the
|
These implementations of RCU provides five debugfs files under the
|
||||||
top-level directory RCU: rcu/rcudata (which displays fields in struct
|
top-level directory RCU: rcu/rcudata (which displays fields in struct
|
||||||
rcu_data), rcu/rcugp (which displays grace-period counters), and
|
rcu_data), rcu/rcudata.csv (which is a .csv spreadsheet version of
|
||||||
rcu/rcuhier (which displays the struct rcu_node hierarchy).
|
rcu/rcudata), rcu/rcugp (which displays grace-period counters),
|
||||||
|
rcu/rcuhier (which displays the struct rcu_node hierarchy), and
|
||||||
|
rcu/rcu_pending (which displays counts of the reasons that the
|
||||||
|
rcu_pending() function decided that there was core RCU work to do).
|
||||||
|
|
||||||
The output of "cat rcu/rcudata" looks as follows:
|
The output of "cat rcu/rcudata" looks as follows:
|
||||||
|
|
||||||
@@ -130,7 +134,8 @@ o "ci" is the number of RCU callbacks that have been invoked for
|
|||||||
been registered in absence of CPU-hotplug activity.
|
been registered in absence of CPU-hotplug activity.
|
||||||
|
|
||||||
o "co" is the number of RCU callbacks that have been orphaned due to
|
o "co" is the number of RCU callbacks that have been orphaned due to
|
||||||
this CPU going offline.
|
this CPU going offline. These orphaned callbacks have been moved
|
||||||
|
to an arbitrarily chosen online CPU.
|
||||||
|
|
||||||
o "ca" is the number of RCU callbacks that have been adopted due to
|
o "ca" is the number of RCU callbacks that have been adopted due to
|
||||||
other CPUs going offline. Note that ci+co-ca+ql is the number of
|
other CPUs going offline. Note that ci+co-ca+ql is the number of
|
||||||
@@ -168,12 +173,12 @@ o "gpnum" is the number of grace periods that have started. It is
|
|||||||
|
|
||||||
The output of "cat rcu/rcuhier" looks as follows, with very long lines:
|
The output of "cat rcu/rcuhier" looks as follows, with very long lines:
|
||||||
|
|
||||||
c=6902 g=6903 s=2 jfq=3 j=72c7 nfqs=13142/nfqsng=0(13142) fqlh=6 oqlen=0
|
c=6902 g=6903 s=2 jfq=3 j=72c7 nfqs=13142/nfqsng=0(13142) fqlh=6
|
||||||
1/1 .>. 0:127 ^0
|
1/1 .>. 0:127 ^0
|
||||||
3/3 .>. 0:35 ^0 0/0 .>. 36:71 ^1 0/0 .>. 72:107 ^2 0/0 .>. 108:127 ^3
|
3/3 .>. 0:35 ^0 0/0 .>. 36:71 ^1 0/0 .>. 72:107 ^2 0/0 .>. 108:127 ^3
|
||||||
3/3f .>. 0:5 ^0 2/3 .>. 6:11 ^1 0/0 .>. 12:17 ^2 0/0 .>. 18:23 ^3 0/0 .>. 24:29 ^4 0/0 .>. 30:35 ^5 0/0 .>. 36:41 ^0 0/0 .>. 42:47 ^1 0/0 .>. 48:53 ^2 0/0 .>. 54:59 ^3 0/0 .>. 60:65 ^4 0/0 .>. 66:71 ^5 0/0 .>. 72:77 ^0 0/0 .>. 78:83 ^1 0/0 .>. 84:89 ^2 0/0 .>. 90:95 ^3 0/0 .>. 96:101 ^4 0/0 .>. 102:107 ^5 0/0 .>. 108:113 ^0 0/0 .>. 114:119 ^1 0/0 .>. 120:125 ^2 0/0 .>. 126:127 ^3
|
3/3f .>. 0:5 ^0 2/3 .>. 6:11 ^1 0/0 .>. 12:17 ^2 0/0 .>. 18:23 ^3 0/0 .>. 24:29 ^4 0/0 .>. 30:35 ^5 0/0 .>. 36:41 ^0 0/0 .>. 42:47 ^1 0/0 .>. 48:53 ^2 0/0 .>. 54:59 ^3 0/0 .>. 60:65 ^4 0/0 .>. 66:71 ^5 0/0 .>. 72:77 ^0 0/0 .>. 78:83 ^1 0/0 .>. 84:89 ^2 0/0 .>. 90:95 ^3 0/0 .>. 96:101 ^4 0/0 .>. 102:107 ^5 0/0 .>. 108:113 ^0 0/0 .>. 114:119 ^1 0/0 .>. 120:125 ^2 0/0 .>. 126:127 ^3
|
||||||
rcu_bh:
|
rcu_bh:
|
||||||
c=-226 g=-226 s=1 jfq=-5701 j=72c7 nfqs=88/nfqsng=0(88) fqlh=0 oqlen=0
|
c=-226 g=-226 s=1 jfq=-5701 j=72c7 nfqs=88/nfqsng=0(88) fqlh=0
|
||||||
0/1 .>. 0:127 ^0
|
0/1 .>. 0:127 ^0
|
||||||
0/3 .>. 0:35 ^0 0/0 .>. 36:71 ^1 0/0 .>. 72:107 ^2 0/0 .>. 108:127 ^3
|
0/3 .>. 0:35 ^0 0/0 .>. 36:71 ^1 0/0 .>. 72:107 ^2 0/0 .>. 108:127 ^3
|
||||||
0/3f .>. 0:5 ^0 0/3 .>. 6:11 ^1 0/0 .>. 12:17 ^2 0/0 .>. 18:23 ^3 0/0 .>. 24:29 ^4 0/0 .>. 30:35 ^5 0/0 .>. 36:41 ^0 0/0 .>. 42:47 ^1 0/0 .>. 48:53 ^2 0/0 .>. 54:59 ^3 0/0 .>. 60:65 ^4 0/0 .>. 66:71 ^5 0/0 .>. 72:77 ^0 0/0 .>. 78:83 ^1 0/0 .>. 84:89 ^2 0/0 .>. 90:95 ^3 0/0 .>. 96:101 ^4 0/0 .>. 102:107 ^5 0/0 .>. 108:113 ^0 0/0 .>. 114:119 ^1 0/0 .>. 120:125 ^2 0/0 .>. 126:127 ^3
|
0/3f .>. 0:5 ^0 0/3 .>. 6:11 ^1 0/0 .>. 12:17 ^2 0/0 .>. 18:23 ^3 0/0 .>. 24:29 ^4 0/0 .>. 30:35 ^5 0/0 .>. 36:41 ^0 0/0 .>. 42:47 ^1 0/0 .>. 48:53 ^2 0/0 .>. 54:59 ^3 0/0 .>. 60:65 ^4 0/0 .>. 66:71 ^5 0/0 .>. 72:77 ^0 0/0 .>. 78:83 ^1 0/0 .>. 84:89 ^2 0/0 .>. 90:95 ^3 0/0 .>. 96:101 ^4 0/0 .>. 102:107 ^5 0/0 .>. 108:113 ^0 0/0 .>. 114:119 ^1 0/0 .>. 120:125 ^2 0/0 .>. 126:127 ^3
|
||||||
@@ -212,11 +217,6 @@ o "fqlh" is the number of calls to force_quiescent_state() that
|
|||||||
exited immediately (without even being counted in nfqs above)
|
exited immediately (without even being counted in nfqs above)
|
||||||
due to contention on ->fqslock.
|
due to contention on ->fqslock.
|
||||||
|
|
||||||
o "oqlen" is the number of callbacks on the "orphan" callback
|
|
||||||
list. RCU callbacks are placed on this list by CPUs going
|
|
||||||
offline, and are "adopted" either by the CPU helping the outgoing
|
|
||||||
CPU or by the next rcu_barrier*() call, whichever comes first.
|
|
||||||
|
|
||||||
o Each element of the form "1/1 0:127 ^0" represents one struct
|
o Each element of the form "1/1 0:127 ^0" represents one struct
|
||||||
rcu_node. Each line represents one level of the hierarchy, from
|
rcu_node. Each line represents one level of the hierarchy, from
|
||||||
root to leaves. It is best to think of the rcu_data structures
|
root to leaves. It is best to think of the rcu_data structures
|
||||||
@@ -326,3 +326,115 @@ o "nn" is the number of times that this CPU needed nothing. Alert
|
|||||||
readers will note that the rcu "nn" number for a given CPU very
|
readers will note that the rcu "nn" number for a given CPU very
|
||||||
closely matches the rcu_bh "np" number for that same CPU. This
|
closely matches the rcu_bh "np" number for that same CPU. This
|
||||||
is due to short-circuit evaluation in rcu_pending().
|
is due to short-circuit evaluation in rcu_pending().
|
||||||
|
|
||||||
|
|
||||||
|
CONFIG_TINY_RCU and CONFIG_TINY_PREEMPT_RCU debugfs Files and Formats
|
||||||
|
|
||||||
|
These implementations of RCU provides a single debugfs file under the
|
||||||
|
top-level directory RCU, namely rcu/rcudata, which displays fields in
|
||||||
|
rcu_bh_ctrlblk, rcu_sched_ctrlblk and, for CONFIG_TINY_PREEMPT_RCU,
|
||||||
|
rcu_preempt_ctrlblk.
|
||||||
|
|
||||||
|
The output of "cat rcu/rcudata" is as follows:
|
||||||
|
|
||||||
|
rcu_preempt: qlen=24 gp=1097669 g197/p197/c197 tasks=...
|
||||||
|
ttb=. btg=no ntb=184 neb=0 nnb=183 j=01f7 bt=0274
|
||||||
|
normal balk: nt=1097669 gt=0 bt=371 b=0 ny=25073378 nos=0
|
||||||
|
exp balk: bt=0 nos=0
|
||||||
|
rcu_sched: qlen: 0
|
||||||
|
rcu_bh: qlen: 0
|
||||||
|
|
||||||
|
This is split into rcu_preempt, rcu_sched, and rcu_bh sections, with the
|
||||||
|
rcu_preempt section appearing only in CONFIG_TINY_PREEMPT_RCU builds.
|
||||||
|
The last three lines of the rcu_preempt section appear only in
|
||||||
|
CONFIG_RCU_BOOST kernel builds. The fields are as follows:
|
||||||
|
|
||||||
|
o "qlen" is the number of RCU callbacks currently waiting either
|
||||||
|
for an RCU grace period or waiting to be invoked. This is the
|
||||||
|
only field present for rcu_sched and rcu_bh, due to the
|
||||||
|
short-circuiting of grace period in those two cases.
|
||||||
|
|
||||||
|
o "gp" is the number of grace periods that have completed.
|
||||||
|
|
||||||
|
o "g197/p197/c197" displays the grace-period state, with the
|
||||||
|
"g" number being the number of grace periods that have started
|
||||||
|
(mod 256), the "p" number being the number of grace periods
|
||||||
|
that the CPU has responded to (also mod 256), and the "c"
|
||||||
|
number being the number of grace periods that have completed
|
||||||
|
(once again mode 256).
|
||||||
|
|
||||||
|
Why have both "gp" and "g"? Because the data flowing into
|
||||||
|
"gp" is only present in a CONFIG_RCU_TRACE kernel.
|
||||||
|
|
||||||
|
o "tasks" is a set of bits. The first bit is "T" if there are
|
||||||
|
currently tasks that have recently blocked within an RCU
|
||||||
|
read-side critical section, the second bit is "N" if any of the
|
||||||
|
aforementioned tasks are blocking the current RCU grace period,
|
||||||
|
and the third bit is "E" if any of the aforementioned tasks are
|
||||||
|
blocking the current expedited grace period. Each bit is "."
|
||||||
|
if the corresponding condition does not hold.
|
||||||
|
|
||||||
|
o "ttb" is a single bit. It is "B" if any of the blocked tasks
|
||||||
|
need to be priority boosted and "." otherwise.
|
||||||
|
|
||||||
|
o "btg" indicates whether boosting has been carried out during
|
||||||
|
the current grace period, with "exp" indicating that boosting
|
||||||
|
is in progress for an expedited grace period, "no" indicating
|
||||||
|
that boosting has not yet started for a normal grace period,
|
||||||
|
"begun" indicating that boosting has bebug for a normal grace
|
||||||
|
period, and "done" indicating that boosting has completed for
|
||||||
|
a normal grace period.
|
||||||
|
|
||||||
|
o "ntb" is the total number of tasks subjected to RCU priority boosting
|
||||||
|
periods since boot.
|
||||||
|
|
||||||
|
o "neb" is the number of expedited grace periods that have had
|
||||||
|
to resort to RCU priority boosting since boot.
|
||||||
|
|
||||||
|
o "nnb" is the number of normal grace periods that have had
|
||||||
|
to resort to RCU priority boosting since boot.
|
||||||
|
|
||||||
|
o "j" is the low-order 12 bits of the jiffies counter in hexadecimal.
|
||||||
|
|
||||||
|
o "bt" is the low-order 12 bits of the value that the jiffies counter
|
||||||
|
will have at the next time that boosting is scheduled to begin.
|
||||||
|
|
||||||
|
o In the line beginning with "normal balk", the fields are as follows:
|
||||||
|
|
||||||
|
o "nt" is the number of times that the system balked from
|
||||||
|
boosting because there were no blocked tasks to boost.
|
||||||
|
Note that the system will balk from boosting even if the
|
||||||
|
grace period is overdue when the currently running task
|
||||||
|
is looping within an RCU read-side critical section.
|
||||||
|
There is no point in boosting in this case, because
|
||||||
|
boosting a running task won't make it run any faster.
|
||||||
|
|
||||||
|
o "gt" is the number of times that the system balked
|
||||||
|
from boosting because, although there were blocked tasks,
|
||||||
|
none of them were preventing the current grace period
|
||||||
|
from completing.
|
||||||
|
|
||||||
|
o "bt" is the number of times that the system balked
|
||||||
|
from boosting because boosting was already in progress.
|
||||||
|
|
||||||
|
o "b" is the number of times that the system balked from
|
||||||
|
boosting because boosting had already completed for
|
||||||
|
the grace period in question.
|
||||||
|
|
||||||
|
o "ny" is the number of times that the system balked from
|
||||||
|
boosting because it was not yet time to start boosting
|
||||||
|
the grace period in question.
|
||||||
|
|
||||||
|
o "nos" is the number of times that the system balked from
|
||||||
|
boosting for inexplicable ("not otherwise specified")
|
||||||
|
reasons. This can actually happen due to races involving
|
||||||
|
increments of the jiffies counter.
|
||||||
|
|
||||||
|
o In the line beginning with "exp balk", the fields are as follows:
|
||||||
|
|
||||||
|
o "bt" is the number of times that the system balked from
|
||||||
|
boosting because there were no blocked tasks to boost.
|
||||||
|
|
||||||
|
o "nos" is the number of times that the system balked from
|
||||||
|
boosting for inexplicable ("not otherwise specified")
|
||||||
|
reasons.
|
||||||
|
122
Documentation/acpi/apei/output_format.txt
Normal file
122
Documentation/acpi/apei/output_format.txt
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
APEI output format
|
||||||
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
APEI uses printk as hardware error reporting interface, the output
|
||||||
|
format is as follow.
|
||||||
|
|
||||||
|
<error record> :=
|
||||||
|
APEI generic hardware error status
|
||||||
|
severity: <integer>, <severity string>
|
||||||
|
section: <integer>, severity: <integer>, <severity string>
|
||||||
|
flags: <integer>
|
||||||
|
<section flags strings>
|
||||||
|
fru_id: <uuid string>
|
||||||
|
fru_text: <string>
|
||||||
|
section_type: <section type string>
|
||||||
|
<section data>
|
||||||
|
|
||||||
|
<severity string>* := recoverable | fatal | corrected | info
|
||||||
|
|
||||||
|
<section flags strings># :=
|
||||||
|
[primary][, containment warning][, reset][, threshold exceeded]\
|
||||||
|
[, resource not accessible][, latent error]
|
||||||
|
|
||||||
|
<section type string> := generic processor error | memory error | \
|
||||||
|
PCIe error | unknown, <uuid string>
|
||||||
|
|
||||||
|
<section data> :=
|
||||||
|
<generic processor section data> | <memory section data> | \
|
||||||
|
<pcie section data> | <null>
|
||||||
|
|
||||||
|
<generic processor section data> :=
|
||||||
|
[processor_type: <integer>, <proc type string>]
|
||||||
|
[processor_isa: <integer>, <proc isa string>]
|
||||||
|
[error_type: <integer>
|
||||||
|
<proc error type strings>]
|
||||||
|
[operation: <integer>, <proc operation string>]
|
||||||
|
[flags: <integer>
|
||||||
|
<proc flags strings>]
|
||||||
|
[level: <integer>]
|
||||||
|
[version_info: <integer>]
|
||||||
|
[processor_id: <integer>]
|
||||||
|
[target_address: <integer>]
|
||||||
|
[requestor_id: <integer>]
|
||||||
|
[responder_id: <integer>]
|
||||||
|
[IP: <integer>]
|
||||||
|
|
||||||
|
<proc type string>* := IA32/X64 | IA64
|
||||||
|
|
||||||
|
<proc isa string>* := IA32 | IA64 | X64
|
||||||
|
|
||||||
|
<processor error type strings># :=
|
||||||
|
[cache error][, TLB error][, bus error][, micro-architectural error]
|
||||||
|
|
||||||
|
<proc operation string>* := unknown or generic | data read | data write | \
|
||||||
|
instruction execution
|
||||||
|
|
||||||
|
<proc flags strings># :=
|
||||||
|
[restartable][, precise IP][, overflow][, corrected]
|
||||||
|
|
||||||
|
<memory section data> :=
|
||||||
|
[error_status: <integer>]
|
||||||
|
[physical_address: <integer>]
|
||||||
|
[physical_address_mask: <integer>]
|
||||||
|
[node: <integer>]
|
||||||
|
[card: <integer>]
|
||||||
|
[module: <integer>]
|
||||||
|
[bank: <integer>]
|
||||||
|
[device: <integer>]
|
||||||
|
[row: <integer>]
|
||||||
|
[column: <integer>]
|
||||||
|
[bit_position: <integer>]
|
||||||
|
[requestor_id: <integer>]
|
||||||
|
[responder_id: <integer>]
|
||||||
|
[target_id: <integer>]
|
||||||
|
[error_type: <integer>, <mem error type string>]
|
||||||
|
|
||||||
|
<mem error type string>* :=
|
||||||
|
unknown | no error | single-bit ECC | multi-bit ECC | \
|
||||||
|
single-symbol chipkill ECC | multi-symbol chipkill ECC | master abort | \
|
||||||
|
target abort | parity error | watchdog timeout | invalid address | \
|
||||||
|
mirror Broken | memory sparing | scrub corrected error | \
|
||||||
|
scrub uncorrected error
|
||||||
|
|
||||||
|
<pcie section data> :=
|
||||||
|
[port_type: <integer>, <pcie port type string>]
|
||||||
|
[version: <integer>.<integer>]
|
||||||
|
[command: <integer>, status: <integer>]
|
||||||
|
[device_id: <integer>:<integer>:<integer>.<integer>
|
||||||
|
slot: <integer>
|
||||||
|
secondary_bus: <integer>
|
||||||
|
vendor_id: <integer>, device_id: <integer>
|
||||||
|
class_code: <integer>]
|
||||||
|
[serial number: <integer>, <integer>]
|
||||||
|
[bridge: secondary_status: <integer>, control: <integer>]
|
||||||
|
|
||||||
|
<pcie port type string>* := PCIe end point | legacy PCI end point | \
|
||||||
|
unknown | unknown | root port | upstream switch port | \
|
||||||
|
downstream switch port | PCIe to PCI/PCI-X bridge | \
|
||||||
|
PCI/PCI-X to PCIe bridge | root complex integrated endpoint device | \
|
||||||
|
root complex event collector
|
||||||
|
|
||||||
|
Where, [] designate corresponding content is optional
|
||||||
|
|
||||||
|
All <field string> description with * has the following format:
|
||||||
|
|
||||||
|
field: <integer>, <field string>
|
||||||
|
|
||||||
|
Where value of <integer> should be the position of "string" in <field
|
||||||
|
string> description. Otherwise, <field string> will be "unknown".
|
||||||
|
|
||||||
|
All <field strings> description with # has the following format:
|
||||||
|
|
||||||
|
field: <integer>
|
||||||
|
<field strings>
|
||||||
|
|
||||||
|
Where each string in <fields strings> corresponding to one set bit of
|
||||||
|
<integer>. The bit position is the position of "string" in <field
|
||||||
|
strings> description.
|
||||||
|
|
||||||
|
For more detailed explanation of every field, please refer to UEFI
|
||||||
|
specification version 2.3 or later, section Appendix N: Common
|
||||||
|
Platform Error Record.
|
@@ -34,3 +34,5 @@ memory.txt
|
|||||||
- description of the virtual memory layout
|
- description of the virtual memory layout
|
||||||
nwfpe/
|
nwfpe/
|
||||||
- NWFPE floating point emulator documentation
|
- NWFPE floating point emulator documentation
|
||||||
|
swp_emulation
|
||||||
|
- SWP/SWPB emulation handler/logging description
|
||||||
|
@@ -127,3 +127,28 @@ implementation needs:
|
|||||||
10. (*pdata->cpu_set_freq)(unsigned long f)
|
10. (*pdata->cpu_set_freq)(unsigned long f)
|
||||||
|
|
||||||
11. (*pdata->cpu_get_freq)(void)
|
11. (*pdata->cpu_get_freq)(void)
|
||||||
|
|
||||||
|
Customizing OPP for platform
|
||||||
|
============================
|
||||||
|
Defining CONFIG_PM should enable OPP layer for the silicon
|
||||||
|
and the registration of OPP table should take place automatically.
|
||||||
|
However, in special cases, the default OPP table may need to be
|
||||||
|
tweaked, for e.g.:
|
||||||
|
* enable default OPPs which are disabled by default, but which
|
||||||
|
could be enabled on a platform
|
||||||
|
* Disable an unsupported OPP on the platform
|
||||||
|
* Define and add a custom opp table entry
|
||||||
|
in these cases, the board file needs to do additional steps as follows:
|
||||||
|
arch/arm/mach-omapx/board-xyz.c
|
||||||
|
#include "pm.h"
|
||||||
|
....
|
||||||
|
static void __init omap_xyz_init_irq(void)
|
||||||
|
{
|
||||||
|
....
|
||||||
|
/* Initialize the default table */
|
||||||
|
omapx_opp_init();
|
||||||
|
/* Do customization to the defaults */
|
||||||
|
....
|
||||||
|
}
|
||||||
|
NOTE: omapx_opp_init will be omap3_opp_init or as required
|
||||||
|
based on the omap family.
|
||||||
|
27
Documentation/arm/swp_emulation
Normal file
27
Documentation/arm/swp_emulation
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
Software emulation of deprecated SWP instruction (CONFIG_SWP_EMULATE)
|
||||||
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
ARMv6 architecture deprecates use of the SWP/SWPB instructions, and recommeds
|
||||||
|
moving to the load-locked/store-conditional instructions LDREX and STREX.
|
||||||
|
|
||||||
|
ARMv7 multiprocessing extensions introduce the ability to disable these
|
||||||
|
instructions, triggering an undefined instruction exception when executed.
|
||||||
|
Trapped instructions are emulated using an LDREX/STREX or LDREXB/STREXB
|
||||||
|
sequence. If a memory access fault (an abort) occurs, a segmentation fault is
|
||||||
|
signalled to the triggering process.
|
||||||
|
|
||||||
|
/proc/cpu/swp_emulation holds some statistics/information, including the PID of
|
||||||
|
the last process to trigger the emulation to be invocated. For example:
|
||||||
|
---
|
||||||
|
Emulated SWP: 12
|
||||||
|
Emulated SWPB: 0
|
||||||
|
Aborted SWP{B}: 1
|
||||||
|
Last process: 314
|
||||||
|
---
|
||||||
|
|
||||||
|
NOTE: when accessing uncached shared regions, LDREX/STREX rely on an external
|
||||||
|
transaction monitoring block called a global monitor to maintain update
|
||||||
|
atomicity. If your system does not implement a global monitor, this option can
|
||||||
|
cause programs that perform SWP operations to uncached memory to deadlock, as
|
||||||
|
the STREX operation will always fail.
|
||||||
|
|
@@ -89,6 +89,33 @@ Throttling/Upper Limit policy
|
|||||||
|
|
||||||
Limits for writes can be put using blkio.write_bps_device file.
|
Limits for writes can be put using blkio.write_bps_device file.
|
||||||
|
|
||||||
|
Hierarchical Cgroups
|
||||||
|
====================
|
||||||
|
- Currently none of the IO control policy supports hierarhical groups. But
|
||||||
|
cgroup interface does allow creation of hierarhical cgroups and internally
|
||||||
|
IO policies treat them as flat hierarchy.
|
||||||
|
|
||||||
|
So this patch will allow creation of cgroup hierarhcy but at the backend
|
||||||
|
everything will be treated as flat. So if somebody created a hierarchy like
|
||||||
|
as follows.
|
||||||
|
|
||||||
|
root
|
||||||
|
/ \
|
||||||
|
test1 test2
|
||||||
|
|
|
||||||
|
test3
|
||||||
|
|
||||||
|
CFQ and throttling will practically treat all groups at same level.
|
||||||
|
|
||||||
|
pivot
|
||||||
|
/ | \ \
|
||||||
|
root test1 test2 test3
|
||||||
|
|
||||||
|
Down the line we can implement hierarchical accounting/control support
|
||||||
|
and also introduce a new cgroup file "use_hierarchy" which will control
|
||||||
|
whether cgroup hierarchy is viewed as flat or hierarchical by the policy..
|
||||||
|
This is how memory controller also has implemented the things.
|
||||||
|
|
||||||
Various user visible config options
|
Various user visible config options
|
||||||
===================================
|
===================================
|
||||||
CONFIG_BLK_CGROUP
|
CONFIG_BLK_CGROUP
|
||||||
|
@@ -91,7 +91,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
perror("cgroup.event_control "
|
perror("cgroup.event_control "
|
||||||
"is not accessable any more");
|
"is not accessible any more");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -355,13 +355,13 @@ subsystems, type:
|
|||||||
|
|
||||||
To change the set of subsystems bound to a mounted hierarchy, just
|
To change the set of subsystems bound to a mounted hierarchy, just
|
||||||
remount with different options:
|
remount with different options:
|
||||||
# mount -o remount,cpuset,ns hier1 /dev/cgroup
|
# mount -o remount,cpuset,blkio hier1 /dev/cgroup
|
||||||
|
|
||||||
Now memory is removed from the hierarchy and ns is added.
|
Now memory is removed from the hierarchy and blkio is added.
|
||||||
|
|
||||||
Note this will add ns to the hierarchy but won't remove memory or
|
Note this will add blkio to the hierarchy but won't remove memory or
|
||||||
cpuset, because the new options are appended to the old ones:
|
cpuset, because the new options are appended to the old ones:
|
||||||
# mount -o remount,ns /dev/cgroup
|
# mount -o remount,blkio /dev/cgroup
|
||||||
|
|
||||||
To Specify a hierarchy's release_agent:
|
To Specify a hierarchy's release_agent:
|
||||||
# mount -t cgroup -o cpuset,release_agent="/sbin/cpuset_release_agent" \
|
# mount -t cgroup -o cpuset,release_agent="/sbin/cpuset_release_agent" \
|
||||||
|
@@ -398,7 +398,7 @@ Under below explanation, we assume CONFIG_MEM_RES_CTRL_SWAP=y.
|
|||||||
written to move_charge_at_immigrate.
|
written to move_charge_at_immigrate.
|
||||||
|
|
||||||
9.10 Memory thresholds
|
9.10 Memory thresholds
|
||||||
Memory controler implements memory thresholds using cgroups notification
|
Memory controller implements memory thresholds using cgroups notification
|
||||||
API. You can use Documentation/cgroups/cgroup_event_listener.c to test
|
API. You can use Documentation/cgroups/cgroup_event_listener.c to test
|
||||||
it.
|
it.
|
||||||
|
|
||||||
|
@@ -36,6 +36,10 @@ as a regular user, and install it with
|
|||||||
|
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
|
The semantic patches in the kernel will work best with Coccinelle version
|
||||||
|
0.2.4 or later. Using earlier versions may incur some parse errors in the
|
||||||
|
semantic patch code, but any results that are obtained should still be
|
||||||
|
correct.
|
||||||
|
|
||||||
Using Coccinelle on the Linux kernel
|
Using Coccinelle on the Linux kernel
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@@ -8,7 +8,7 @@ Parameters: <cipher> <key> <iv_offset> <device path> <offset>
|
|||||||
|
|
||||||
<cipher>
|
<cipher>
|
||||||
Encryption cipher and an optional IV generation mode.
|
Encryption cipher and an optional IV generation mode.
|
||||||
(In format cipher-chainmode-ivopts:ivmode).
|
(In format cipher[:keycount]-chainmode-ivopts:ivmode).
|
||||||
Examples:
|
Examples:
|
||||||
des
|
des
|
||||||
aes-cbc-essiv:sha256
|
aes-cbc-essiv:sha256
|
||||||
@@ -20,6 +20,11 @@ Parameters: <cipher> <key> <iv_offset> <device path> <offset>
|
|||||||
Key used for encryption. It is encoded as a hexadecimal number.
|
Key used for encryption. It is encoded as a hexadecimal number.
|
||||||
You can only use key sizes that are valid for the selected cipher.
|
You can only use key sizes that are valid for the selected cipher.
|
||||||
|
|
||||||
|
<keycount>
|
||||||
|
Multi-key compatibility mode. You can define <keycount> keys and
|
||||||
|
then sectors are encrypted according to their offsets (sector 0 uses key0;
|
||||||
|
sector 1 uses key1 etc.). <keycount> must be a power of two.
|
||||||
|
|
||||||
<iv_offset>
|
<iv_offset>
|
||||||
The IV offset is a sector count that is added to the sector number
|
The IV offset is a sector count that is added to the sector number
|
||||||
before creating the IV.
|
before creating the IV.
|
||||||
|
70
Documentation/device-mapper/dm-raid.txt
Normal file
70
Documentation/device-mapper/dm-raid.txt
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
Device-mapper RAID (dm-raid) is a bridge from DM to MD. It
|
||||||
|
provides a way to use device-mapper interfaces to access the MD RAID
|
||||||
|
drivers.
|
||||||
|
|
||||||
|
As with all device-mapper targets, the nominal public interfaces are the
|
||||||
|
constructor (CTR) tables and the status outputs (both STATUSTYPE_INFO
|
||||||
|
and STATUSTYPE_TABLE). The CTR table looks like the following:
|
||||||
|
|
||||||
|
1: <s> <l> raid \
|
||||||
|
2: <raid_type> <#raid_params> <raid_params> \
|
||||||
|
3: <#raid_devs> <meta_dev1> <dev1> .. <meta_devN> <devN>
|
||||||
|
|
||||||
|
Line 1 contains the standard first three arguments to any device-mapper
|
||||||
|
target - the start, length, and target type fields. The target type in
|
||||||
|
this case is "raid".
|
||||||
|
|
||||||
|
Line 2 contains the arguments that define the particular raid
|
||||||
|
type/personality/level, the required arguments for that raid type, and
|
||||||
|
any optional arguments. Possible raid types include: raid4, raid5_la,
|
||||||
|
raid5_ls, raid5_rs, raid6_zr, raid6_nr, and raid6_nc. (raid1 is
|
||||||
|
planned for the future.) The list of required and optional parameters
|
||||||
|
is the same for all the current raid types. The required parameters are
|
||||||
|
positional, while the optional parameters are given as key/value pairs.
|
||||||
|
The possible parameters are as follows:
|
||||||
|
<chunk_size> Chunk size in sectors.
|
||||||
|
[[no]sync] Force/Prevent RAID initialization
|
||||||
|
[rebuild <idx>] Rebuild the drive indicated by the index
|
||||||
|
[daemon_sleep <ms>] Time between bitmap daemon work to clear bits
|
||||||
|
[min_recovery_rate <kB/sec/disk>] Throttle RAID initialization
|
||||||
|
[max_recovery_rate <kB/sec/disk>] Throttle RAID initialization
|
||||||
|
[max_write_behind <sectors>] See '-write-behind=' (man mdadm)
|
||||||
|
[stripe_cache <sectors>] Stripe cache size for higher RAIDs
|
||||||
|
|
||||||
|
Line 3 contains the list of devices that compose the array in
|
||||||
|
metadata/data device pairs. If the metadata is stored separately, a '-'
|
||||||
|
is given for the metadata device position. If a drive has failed or is
|
||||||
|
missing at creation time, a '-' can be given for both the metadata and
|
||||||
|
data drives for a given position.
|
||||||
|
|
||||||
|
NB. Currently all metadata devices must be specified as '-'.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
# RAID4 - 4 data drives, 1 parity
|
||||||
|
# No metadata devices specified to hold superblock/bitmap info
|
||||||
|
# Chunk size of 1MiB
|
||||||
|
# (Lines separated for easy reading)
|
||||||
|
0 1960893648 raid \
|
||||||
|
raid4 1 2048 \
|
||||||
|
5 - 8:17 - 8:33 - 8:49 - 8:65 - 8:81
|
||||||
|
|
||||||
|
# RAID4 - 4 data drives, 1 parity (no metadata devices)
|
||||||
|
# Chunk size of 1MiB, force RAID initialization,
|
||||||
|
# min recovery rate at 20 kiB/sec/disk
|
||||||
|
0 1960893648 raid \
|
||||||
|
raid4 4 2048 min_recovery_rate 20 sync\
|
||||||
|
5 - 8:17 - 8:33 - 8:49 - 8:65 - 8:81
|
||||||
|
|
||||||
|
Performing a 'dmsetup table' should display the CTR table used to
|
||||||
|
construct the mapping (with possible reordering of optional
|
||||||
|
parameters).
|
||||||
|
|
||||||
|
Performing a 'dmsetup status' will yield information on the state and
|
||||||
|
health of the array. The output is as follows:
|
||||||
|
1: <s> <l> raid \
|
||||||
|
2: <raid_type> <#devices> <1 health char for each dev> <resync_ratio>
|
||||||
|
|
||||||
|
Line 1 is standard DM output. Line 2 is best shown by example:
|
||||||
|
0 1960893648 raid raid4 5 AAAAA 2/490221568
|
||||||
|
Here we can see the RAID type is raid4, there are 5 devices - all of
|
||||||
|
which are 'A'live, and the array is 2/490221568 complete with recovery.
|
28
Documentation/devicetree/bindings/eeprom.txt
Normal file
28
Documentation/devicetree/bindings/eeprom.txt
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
EEPROMs (I2C)
|
||||||
|
|
||||||
|
Required properties:
|
||||||
|
|
||||||
|
- compatible : should be "<manufacturer>,<type>"
|
||||||
|
If there is no specific driver for <manufacturer>, a generic
|
||||||
|
driver based on <type> is selected. Possible types are:
|
||||||
|
24c00, 24c01, 24c02, 24c04, 24c08, 24c16, 24c32, 24c64,
|
||||||
|
24c128, 24c256, 24c512, 24c1024, spd
|
||||||
|
|
||||||
|
- reg : the I2C address of the EEPROM
|
||||||
|
|
||||||
|
Optional properties:
|
||||||
|
|
||||||
|
- pagesize : the length of the pagesize for writing. Please consult the
|
||||||
|
manual of your device, that value varies a lot. A wrong value
|
||||||
|
may result in data loss! If not specified, a safety value of
|
||||||
|
'1' is used which will be very slow.
|
||||||
|
|
||||||
|
- read-only: this parameterless property disables writes to the eeprom
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
eeprom@52 {
|
||||||
|
compatible = "atmel,24c32";
|
||||||
|
reg = <0x52>;
|
||||||
|
pagesize = <32>;
|
||||||
|
};
|
52
Documentation/devicetree/bindings/powerpc/4xx/cpm.txt
Normal file
52
Documentation/devicetree/bindings/powerpc/4xx/cpm.txt
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
PPC4xx Clock Power Management (CPM) node
|
||||||
|
|
||||||
|
Required properties:
|
||||||
|
- compatible : compatible list, currently only "ibm,cpm"
|
||||||
|
- dcr-access-method : "native"
|
||||||
|
- dcr-reg : < DCR register range >
|
||||||
|
|
||||||
|
Optional properties:
|
||||||
|
- er-offset : All 4xx SoCs with a CPM controller have
|
||||||
|
one of two different order for the CPM
|
||||||
|
registers. Some have the CPM registers
|
||||||
|
in the following order (ER,FR,SR). The
|
||||||
|
others have them in the following order
|
||||||
|
(SR,ER,FR). For the second case set
|
||||||
|
er-offset = <1>.
|
||||||
|
- unused-units : specifier consist of one cell. For each
|
||||||
|
bit in the cell, the corresponding bit
|
||||||
|
in CPM will be set to turn off unused
|
||||||
|
devices.
|
||||||
|
- idle-doze : specifier consist of one cell. For each
|
||||||
|
bit in the cell, the corresponding bit
|
||||||
|
in CPM will be set to turn off unused
|
||||||
|
devices. This is usually just CPM[CPU].
|
||||||
|
- standby : specifier consist of one cell. For each
|
||||||
|
bit in the cell, the corresponding bit
|
||||||
|
in CPM will be set on standby and
|
||||||
|
restored on resume.
|
||||||
|
- suspend : specifier consist of one cell. For each
|
||||||
|
bit in the cell, the corresponding bit
|
||||||
|
in CPM will be set on suspend (mem) and
|
||||||
|
restored on resume. Note, for standby
|
||||||
|
and suspend the corresponding bits can
|
||||||
|
be different or the same. Usually for
|
||||||
|
standby only class 2 and 3 units are set.
|
||||||
|
However, the interface does not care.
|
||||||
|
If they are the same, the additional
|
||||||
|
power saving will be seeing if support
|
||||||
|
is available to put the DDR in self
|
||||||
|
refresh mode and any additional power
|
||||||
|
saving techniques for the specific SoC.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
CPM0: cpm {
|
||||||
|
compatible = "ibm,cpm";
|
||||||
|
dcr-access-method = "native";
|
||||||
|
dcr-reg = <0x160 0x003>;
|
||||||
|
er-offset = <0>;
|
||||||
|
unused-units = <0x00000100>;
|
||||||
|
idle-doze = <0x02000000>;
|
||||||
|
standby = <0xfeff0000>;
|
||||||
|
suspend = <0xfeff791d>;
|
||||||
|
};
|
@@ -13,7 +13,6 @@ Table of Contents
|
|||||||
|
|
||||||
I - Introduction
|
I - Introduction
|
||||||
1) Entry point for arch/powerpc
|
1) Entry point for arch/powerpc
|
||||||
2) Board support
|
|
||||||
|
|
||||||
II - The DT block format
|
II - The DT block format
|
||||||
1) Header
|
1) Header
|
||||||
@@ -41,13 +40,6 @@ Table of Contents
|
|||||||
VI - System-on-a-chip devices and nodes
|
VI - System-on-a-chip devices and nodes
|
||||||
1) Defining child nodes of an SOC
|
1) Defining child nodes of an SOC
|
||||||
2) Representing devices without a current OF specification
|
2) Representing devices without a current OF specification
|
||||||
a) PHY nodes
|
|
||||||
b) Interrupt controllers
|
|
||||||
c) 4xx/Axon EMAC ethernet nodes
|
|
||||||
d) Xilinx IP cores
|
|
||||||
e) USB EHCI controllers
|
|
||||||
f) MDIO on GPIOs
|
|
||||||
g) SPI busses
|
|
||||||
|
|
||||||
VII - Specifying interrupt information for devices
|
VII - Specifying interrupt information for devices
|
||||||
1) interrupts property
|
1) interrupts property
|
||||||
@@ -123,7 +115,7 @@ Revision Information
|
|||||||
I - Introduction
|
I - Introduction
|
||||||
================
|
================
|
||||||
|
|
||||||
During the recent development of the Linux/ppc64 kernel, and more
|
During the development of the Linux/ppc64 kernel, and more
|
||||||
specifically, the addition of new platform types outside of the old
|
specifically, the addition of new platform types outside of the old
|
||||||
IBM pSeries/iSeries pair, it was decided to enforce some strict rules
|
IBM pSeries/iSeries pair, it was decided to enforce some strict rules
|
||||||
regarding the kernel entry and bootloader <-> kernel interfaces, in
|
regarding the kernel entry and bootloader <-> kernel interfaces, in
|
||||||
@@ -131,7 +123,7 @@ order to avoid the degeneration that had become the ppc32 kernel entry
|
|||||||
point and the way a new platform should be added to the kernel. The
|
point and the way a new platform should be added to the kernel. The
|
||||||
legacy iSeries platform breaks those rules as it predates this scheme,
|
legacy iSeries platform breaks those rules as it predates this scheme,
|
||||||
but no new board support will be accepted in the main tree that
|
but no new board support will be accepted in the main tree that
|
||||||
doesn't follows them properly. In addition, since the advent of the
|
doesn't follow them properly. In addition, since the advent of the
|
||||||
arch/powerpc merged architecture for ppc32 and ppc64, new 32-bit
|
arch/powerpc merged architecture for ppc32 and ppc64, new 32-bit
|
||||||
platforms and 32-bit platforms which move into arch/powerpc will be
|
platforms and 32-bit platforms which move into arch/powerpc will be
|
||||||
required to use these rules as well.
|
required to use these rules as well.
|
||||||
@@ -146,7 +138,7 @@ section III, but, for example, the kernel does not require you to
|
|||||||
create a node for every PCI device in the system. It is a requirement
|
create a node for every PCI device in the system. It is a requirement
|
||||||
to have a node for PCI host bridges in order to provide interrupt
|
to have a node for PCI host bridges in order to provide interrupt
|
||||||
routing informations and memory/IO ranges, among others. It is also
|
routing informations and memory/IO ranges, among others. It is also
|
||||||
recommended to define nodes for on chip devices and other busses that
|
recommended to define nodes for on chip devices and other buses that
|
||||||
don't specifically fit in an existing OF specification. This creates a
|
don't specifically fit in an existing OF specification. This creates a
|
||||||
great flexibility in the way the kernel can then probe those and match
|
great flexibility in the way the kernel can then probe those and match
|
||||||
drivers to device, without having to hard code all sorts of tables. It
|
drivers to device, without having to hard code all sorts of tables. It
|
||||||
@@ -158,7 +150,7 @@ it with special cases.
|
|||||||
1) Entry point for arch/powerpc
|
1) Entry point for arch/powerpc
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
There is one and one single entry point to the kernel, at the start
|
There is one single entry point to the kernel, at the start
|
||||||
of the kernel image. That entry point supports two calling
|
of the kernel image. That entry point supports two calling
|
||||||
conventions:
|
conventions:
|
||||||
|
|
||||||
@@ -210,12 +202,6 @@ it with special cases.
|
|||||||
with all CPUs. The way to do that with method b) will be
|
with all CPUs. The way to do that with method b) will be
|
||||||
described in a later revision of this document.
|
described in a later revision of this document.
|
||||||
|
|
||||||
|
|
||||||
2) Board support
|
|
||||||
----------------
|
|
||||||
|
|
||||||
64-bit kernels:
|
|
||||||
|
|
||||||
Board supports (platforms) are not exclusive config options. An
|
Board supports (platforms) are not exclusive config options. An
|
||||||
arbitrary set of board supports can be built in a single kernel
|
arbitrary set of board supports can be built in a single kernel
|
||||||
image. The kernel will "know" what set of functions to use for a
|
image. The kernel will "know" what set of functions to use for a
|
||||||
@@ -234,48 +220,11 @@ it with special cases.
|
|||||||
containing the various callbacks that the generic code will
|
containing the various callbacks that the generic code will
|
||||||
use to get to your platform specific code
|
use to get to your platform specific code
|
||||||
|
|
||||||
c) Add a reference to your "ppc_md" structure in the
|
A kernel image may support multiple platforms, but only if the
|
||||||
"machines" table in arch/powerpc/kernel/setup_64.c if you are
|
|
||||||
a 64-bit platform.
|
|
||||||
|
|
||||||
d) request and get assigned a platform number (see PLATFORM_*
|
|
||||||
constants in arch/powerpc/include/asm/processor.h
|
|
||||||
|
|
||||||
32-bit embedded kernels:
|
|
||||||
|
|
||||||
Currently, board support is essentially an exclusive config option.
|
|
||||||
The kernel is configured for a single platform. Part of the reason
|
|
||||||
for this is to keep kernels on embedded systems small and efficient;
|
|
||||||
part of this is due to the fact the code is already that way. In the
|
|
||||||
future, a kernel may support multiple platforms, but only if the
|
|
||||||
platforms feature the same core architecture. A single kernel build
|
platforms feature the same core architecture. A single kernel build
|
||||||
cannot support both configurations with Book E and configurations
|
cannot support both configurations with Book E and configurations
|
||||||
with classic Powerpc architectures.
|
with classic Powerpc architectures.
|
||||||
|
|
||||||
32-bit embedded platforms that are moved into arch/powerpc using a
|
|
||||||
flattened device tree should adopt the merged tree practice of
|
|
||||||
setting ppc_md up dynamically, even though the kernel is currently
|
|
||||||
built with support for only a single platform at a time. This allows
|
|
||||||
unification of the setup code, and will make it easier to go to a
|
|
||||||
multiple-platform-support model in the future.
|
|
||||||
|
|
||||||
NOTE: I believe the above will be true once Ben's done with the merge
|
|
||||||
of the boot sequences.... someone speak up if this is wrong!
|
|
||||||
|
|
||||||
To add a 32-bit embedded platform support, follow the instructions
|
|
||||||
for 64-bit platforms above, with the exception that the Kconfig
|
|
||||||
option should be set up such that the kernel builds exclusively for
|
|
||||||
the platform selected. The processor type for the platform should
|
|
||||||
enable another config option to select the specific board
|
|
||||||
supported.
|
|
||||||
|
|
||||||
NOTE: If Ben doesn't merge the setup files, may need to change this to
|
|
||||||
point to setup_32.c
|
|
||||||
|
|
||||||
|
|
||||||
I will describe later the boot process and various callbacks that
|
|
||||||
your platform should implement.
|
|
||||||
|
|
||||||
|
|
||||||
II - The DT block format
|
II - The DT block format
|
||||||
========================
|
========================
|
||||||
@@ -300,8 +249,8 @@ the block to RAM before passing it to the kernel.
|
|||||||
1) Header
|
1) Header
|
||||||
---------
|
---------
|
||||||
|
|
||||||
The kernel is entered with r3 pointing to an area of memory that is
|
The kernel is passed the physical address pointing to an area of memory
|
||||||
roughly described in arch/powerpc/include/asm/prom.h by the structure
|
that is roughly described in include/linux/of_fdt.h by the structure
|
||||||
boot_param_header:
|
boot_param_header:
|
||||||
|
|
||||||
struct boot_param_header {
|
struct boot_param_header {
|
||||||
@@ -339,7 +288,7 @@ struct boot_param_header {
|
|||||||
All values in this header are in big endian format, the various
|
All values in this header are in big endian format, the various
|
||||||
fields in this header are defined more precisely below. All
|
fields in this header are defined more precisely below. All
|
||||||
"offset" values are in bytes from the start of the header; that is
|
"offset" values are in bytes from the start of the header; that is
|
||||||
from the value of r3.
|
from the physical base address of the device tree block.
|
||||||
|
|
||||||
- magic
|
- magic
|
||||||
|
|
||||||
@@ -437,7 +386,7 @@ struct boot_param_header {
|
|||||||
|
|
||||||
|
|
||||||
------------------------------
|
------------------------------
|
||||||
r3 -> | struct boot_param_header |
|
base -> | struct boot_param_header |
|
||||||
------------------------------
|
------------------------------
|
||||||
| (alignment gap) (*) |
|
| (alignment gap) (*) |
|
||||||
------------------------------
|
------------------------------
|
||||||
@@ -457,7 +406,7 @@ struct boot_param_header {
|
|||||||
-----> ------------------------------
|
-----> ------------------------------
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
--- (r3 + totalsize)
|
--- (base + totalsize)
|
||||||
|
|
||||||
(*) The alignment gaps are not necessarily present; their presence
|
(*) The alignment gaps are not necessarily present; their presence
|
||||||
and size are dependent on the various alignment requirements of
|
and size are dependent on the various alignment requirements of
|
||||||
@@ -500,7 +449,7 @@ the device-tree structure. It is typically used to represent "path" in
|
|||||||
the device-tree. More details about the actual format of these will be
|
the device-tree. More details about the actual format of these will be
|
||||||
below.
|
below.
|
||||||
|
|
||||||
The kernel powerpc generic code does not make any formal use of the
|
The kernel generic code does not make any formal use of the
|
||||||
unit address (though some board support code may do) so the only real
|
unit address (though some board support code may do) so the only real
|
||||||
requirement here for the unit address is to ensure uniqueness of
|
requirement here for the unit address is to ensure uniqueness of
|
||||||
the node unit name at a given level of the tree. Nodes with no notion
|
the node unit name at a given level of the tree. Nodes with no notion
|
||||||
@@ -518,20 +467,21 @@ path to the root node is "/".
|
|||||||
|
|
||||||
Every node which actually represents an actual device (that is, a node
|
Every node which actually represents an actual device (that is, a node
|
||||||
which isn't only a virtual "container" for more nodes, like "/cpus"
|
which isn't only a virtual "container" for more nodes, like "/cpus"
|
||||||
is) is also required to have a "device_type" property indicating the
|
is) is also required to have a "compatible" property indicating the
|
||||||
type of node .
|
specific hardware and an optional list of devices it is fully
|
||||||
|
backwards compatible with.
|
||||||
|
|
||||||
Finally, every node that can be referenced from a property in another
|
Finally, every node that can be referenced from a property in another
|
||||||
node is required to have a "linux,phandle" property. Real open
|
node is required to have either a "phandle" or a "linux,phandle"
|
||||||
firmware implementations provide a unique "phandle" value for every
|
property. Real Open Firmware implementations provide a unique
|
||||||
node that the "prom_init()" trampoline code turns into
|
"phandle" value for every node that the "prom_init()" trampoline code
|
||||||
"linux,phandle" properties. However, this is made optional if the
|
turns into "linux,phandle" properties. However, this is made optional
|
||||||
flattened device tree is used directly. An example of a node
|
if the flattened device tree is used directly. An example of a node
|
||||||
referencing another node via "phandle" is when laying out the
|
referencing another node via "phandle" is when laying out the
|
||||||
interrupt tree which will be described in a further version of this
|
interrupt tree which will be described in a further version of this
|
||||||
document.
|
document.
|
||||||
|
|
||||||
This "linux, phandle" property is a 32-bit value that uniquely
|
The "phandle" property is a 32-bit value that uniquely
|
||||||
identifies a node. You are free to use whatever values or system of
|
identifies a node. You are free to use whatever values or system of
|
||||||
values, internal pointers, or whatever to generate these, the only
|
values, internal pointers, or whatever to generate these, the only
|
||||||
requirement is that every node for which you provide that property has
|
requirement is that every node for which you provide that property has
|
||||||
@@ -694,7 +644,7 @@ made of 3 cells, the bottom two containing the actual address itself
|
|||||||
while the top cell contains address space indication, flags, and pci
|
while the top cell contains address space indication, flags, and pci
|
||||||
bus & device numbers.
|
bus & device numbers.
|
||||||
|
|
||||||
For busses that support dynamic allocation, it's the accepted practice
|
For buses that support dynamic allocation, it's the accepted practice
|
||||||
to then not provide the address in "reg" (keep it 0) though while
|
to then not provide the address in "reg" (keep it 0) though while
|
||||||
providing a flag indicating the address is dynamically allocated, and
|
providing a flag indicating the address is dynamically allocated, and
|
||||||
then, to provide a separate "assigned-addresses" property that
|
then, to provide a separate "assigned-addresses" property that
|
||||||
@@ -711,7 +661,7 @@ prom_parse.c file of the recent kernels for your bus type.
|
|||||||
The "reg" property only defines addresses and sizes (if #size-cells is
|
The "reg" property only defines addresses and sizes (if #size-cells is
|
||||||
non-0) within a given bus. In order to translate addresses upward
|
non-0) within a given bus. In order to translate addresses upward
|
||||||
(that is into parent bus addresses, and possibly into CPU physical
|
(that is into parent bus addresses, and possibly into CPU physical
|
||||||
addresses), all busses must contain a "ranges" property. If the
|
addresses), all buses must contain a "ranges" property. If the
|
||||||
"ranges" property is missing at a given level, it's assumed that
|
"ranges" property is missing at a given level, it's assumed that
|
||||||
translation isn't possible, i.e., the registers are not visible on the
|
translation isn't possible, i.e., the registers are not visible on the
|
||||||
parent bus. The format of the "ranges" property for a bus is a list
|
parent bus. The format of the "ranges" property for a bus is a list
|
||||||
@@ -727,9 +677,9 @@ example, for a PCI host controller, that would be a CPU address. For a
|
|||||||
PCI<->ISA bridge, that would be a PCI address. It defines the base
|
PCI<->ISA bridge, that would be a PCI address. It defines the base
|
||||||
address in the parent bus where the beginning of that range is mapped.
|
address in the parent bus where the beginning of that range is mapped.
|
||||||
|
|
||||||
For a new 64-bit powerpc board, I recommend either the 2/2 format or
|
For new 64-bit board support, I recommend either the 2/2 format or
|
||||||
Apple's 2/1 format which is slightly more compact since sizes usually
|
Apple's 2/1 format which is slightly more compact since sizes usually
|
||||||
fit in a single 32-bit word. New 32-bit powerpc boards should use a
|
fit in a single 32-bit word. New 32-bit board support should use a
|
||||||
1/1 format, unless the processor supports physical addresses greater
|
1/1 format, unless the processor supports physical addresses greater
|
||||||
than 32-bits, in which case a 2/1 format is recommended.
|
than 32-bits, in which case a 2/1 format is recommended.
|
||||||
|
|
||||||
@@ -754,7 +704,7 @@ of their actual names.
|
|||||||
While earlier users of Open Firmware like OldWorld macintoshes tended
|
While earlier users of Open Firmware like OldWorld macintoshes tended
|
||||||
to use the actual device name for the "name" property, it's nowadays
|
to use the actual device name for the "name" property, it's nowadays
|
||||||
considered a good practice to use a name that is closer to the device
|
considered a good practice to use a name that is closer to the device
|
||||||
class (often equal to device_type). For example, nowadays, ethernet
|
class (often equal to device_type). For example, nowadays, Ethernet
|
||||||
controllers are named "ethernet", an additional "model" property
|
controllers are named "ethernet", an additional "model" property
|
||||||
defining precisely the chip type/model, and "compatible" property
|
defining precisely the chip type/model, and "compatible" property
|
||||||
defining the family in case a single driver can driver more than one
|
defining the family in case a single driver can driver more than one
|
||||||
@@ -772,7 +722,7 @@ is present).
|
|||||||
4) Note about node and property names and character set
|
4) Note about node and property names and character set
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
|
|
||||||
While open firmware provides more flexible usage of 8859-1, this
|
While Open Firmware provides more flexible usage of 8859-1, this
|
||||||
specification enforces more strict rules. Nodes and properties should
|
specification enforces more strict rules. Nodes and properties should
|
||||||
be comprised only of ASCII characters 'a' to 'z', '0' to
|
be comprised only of ASCII characters 'a' to 'z', '0' to
|
||||||
'9', ',', '.', '_', '+', '#', '?', and '-'. Node names additionally
|
'9', ',', '.', '_', '+', '#', '?', and '-'. Node names additionally
|
||||||
@@ -792,7 +742,7 @@ address which can extend beyond that limit.
|
|||||||
--------------------------------
|
--------------------------------
|
||||||
These are all that are currently required. However, it is strongly
|
These are all that are currently required. However, it is strongly
|
||||||
recommended that you expose PCI host bridges as documented in the
|
recommended that you expose PCI host bridges as documented in the
|
||||||
PCI binding to open firmware, and your interrupt tree as documented
|
PCI binding to Open Firmware, and your interrupt tree as documented
|
||||||
in OF interrupt tree specification.
|
in OF interrupt tree specification.
|
||||||
|
|
||||||
a) The root node
|
a) The root node
|
||||||
@@ -802,20 +752,12 @@ address which can extend beyond that limit.
|
|||||||
- model : this is your board name/model
|
- model : this is your board name/model
|
||||||
- #address-cells : address representation for "root" devices
|
- #address-cells : address representation for "root" devices
|
||||||
- #size-cells: the size representation for "root" devices
|
- #size-cells: the size representation for "root" devices
|
||||||
- device_type : This property shouldn't be necessary. However, if
|
|
||||||
you decide to create a device_type for your root node, make sure it
|
|
||||||
is _not_ "chrp" unless your platform is a pSeries or PAPR compliant
|
|
||||||
one for 64-bit, or a CHRP-type machine for 32-bit as this will
|
|
||||||
matched by the kernel this way.
|
|
||||||
|
|
||||||
Additionally, some recommended properties are:
|
|
||||||
|
|
||||||
- compatible : the board "family" generally finds its way here,
|
- compatible : the board "family" generally finds its way here,
|
||||||
for example, if you have 2 board models with a similar layout,
|
for example, if you have 2 board models with a similar layout,
|
||||||
that typically get driven by the same platform code in the
|
that typically get driven by the same platform code in the
|
||||||
kernel, you would use a different "model" property but put a
|
kernel, you would specify the exact board model in the
|
||||||
value in "compatible". The kernel doesn't directly use that
|
compatible property followed by an entry that represents the SoC
|
||||||
value but it is generally useful.
|
model.
|
||||||
|
|
||||||
The root node is also generally where you add additional properties
|
The root node is also generally where you add additional properties
|
||||||
specific to your board like the serial number if any, that sort of
|
specific to your board like the serial number if any, that sort of
|
||||||
@@ -841,8 +783,11 @@ address which can extend beyond that limit.
|
|||||||
|
|
||||||
So under /cpus, you are supposed to create a node for every CPU on
|
So under /cpus, you are supposed to create a node for every CPU on
|
||||||
the machine. There is no specific restriction on the name of the
|
the machine. There is no specific restriction on the name of the
|
||||||
CPU, though It's common practice to call it PowerPC,<name>. For
|
CPU, though it's common to call it <architecture>,<core>. For
|
||||||
example, Apple uses PowerPC,G5 while IBM uses PowerPC,970FX.
|
example, Apple uses PowerPC,G5 while IBM uses PowerPC,970FX.
|
||||||
|
However, the Generic Names convention suggests that it would be
|
||||||
|
better to simply use 'cpu' for each cpu node and use the compatible
|
||||||
|
property to identify the specific cpu core.
|
||||||
|
|
||||||
Required properties:
|
Required properties:
|
||||||
|
|
||||||
@@ -923,7 +868,7 @@ compatibility.
|
|||||||
|
|
||||||
e) The /chosen node
|
e) The /chosen node
|
||||||
|
|
||||||
This node is a bit "special". Normally, that's where open firmware
|
This node is a bit "special". Normally, that's where Open Firmware
|
||||||
puts some variable environment information, like the arguments, or
|
puts some variable environment information, like the arguments, or
|
||||||
the default input/output devices.
|
the default input/output devices.
|
||||||
|
|
||||||
@@ -940,11 +885,7 @@ compatibility.
|
|||||||
console device if any. Typically, if you have serial devices on
|
console device if any. Typically, if you have serial devices on
|
||||||
your board, you may want to put the full path to the one set as
|
your board, you may want to put the full path to the one set as
|
||||||
the default console in the firmware here, for the kernel to pick
|
the default console in the firmware here, for the kernel to pick
|
||||||
it up as its own default console. If you look at the function
|
it up as its own default console.
|
||||||
set_preferred_console() in arch/ppc64/kernel/setup.c, you'll see
|
|
||||||
that the kernel tries to find out the default console and has
|
|
||||||
knowledge of various types like 8250 serial ports. You may want
|
|
||||||
to extend this function to add your own.
|
|
||||||
|
|
||||||
Note that u-boot creates and fills in the chosen node for platforms
|
Note that u-boot creates and fills in the chosen node for platforms
|
||||||
that use it.
|
that use it.
|
||||||
@@ -955,23 +896,23 @@ compatibility.
|
|||||||
|
|
||||||
f) the /soc<SOCname> node
|
f) the /soc<SOCname> node
|
||||||
|
|
||||||
This node is used to represent a system-on-a-chip (SOC) and must be
|
This node is used to represent a system-on-a-chip (SoC) and must be
|
||||||
present if the processor is a SOC. The top-level soc node contains
|
present if the processor is a SoC. The top-level soc node contains
|
||||||
information that is global to all devices on the SOC. The node name
|
information that is global to all devices on the SoC. The node name
|
||||||
should contain a unit address for the SOC, which is the base address
|
should contain a unit address for the SoC, which is the base address
|
||||||
of the memory-mapped register set for the SOC. The name of an soc
|
of the memory-mapped register set for the SoC. The name of an SoC
|
||||||
node should start with "soc", and the remainder of the name should
|
node should start with "soc", and the remainder of the name should
|
||||||
represent the part number for the soc. For example, the MPC8540's
|
represent the part number for the soc. For example, the MPC8540's
|
||||||
soc node would be called "soc8540".
|
soc node would be called "soc8540".
|
||||||
|
|
||||||
Required properties:
|
Required properties:
|
||||||
|
|
||||||
- device_type : Should be "soc"
|
|
||||||
- ranges : Should be defined as specified in 1) to describe the
|
- ranges : Should be defined as specified in 1) to describe the
|
||||||
translation of SOC addresses for memory mapped SOC registers.
|
translation of SoC addresses for memory mapped SoC registers.
|
||||||
- bus-frequency: Contains the bus frequency for the SOC node.
|
- bus-frequency: Contains the bus frequency for the SoC node.
|
||||||
Typically, the value of this field is filled in by the boot
|
Typically, the value of this field is filled in by the boot
|
||||||
loader.
|
loader.
|
||||||
|
- compatible : Exact model of the SoC
|
||||||
|
|
||||||
|
|
||||||
Recommended properties:
|
Recommended properties:
|
||||||
@@ -1025,7 +966,7 @@ dtc source code can be found at
|
|||||||
|
|
||||||
WARNING: This version is still in early development stage; the
|
WARNING: This version is still in early development stage; the
|
||||||
resulting device-tree "blobs" have not yet been validated with the
|
resulting device-tree "blobs" have not yet been validated with the
|
||||||
kernel. The current generated bloc lacks a useful reserve map (it will
|
kernel. The current generated block lacks a useful reserve map (it will
|
||||||
be fixed to generate an empty one, it's up to the bootloader to fill
|
be fixed to generate an empty one, it's up to the bootloader to fill
|
||||||
it up) among others. The error handling needs work, bugs are lurking,
|
it up) among others. The error handling needs work, bugs are lurking,
|
||||||
etc...
|
etc...
|
||||||
@@ -1098,7 +1039,7 @@ supported currently at the toplevel.
|
|||||||
* an arbitrary array of bytes
|
* an arbitrary array of bytes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
childnode@addresss { /* define a child node named "childnode"
|
childnode@address { /* define a child node named "childnode"
|
||||||
* whose unit name is "childnode at
|
* whose unit name is "childnode at
|
||||||
* address"
|
* address"
|
||||||
*/
|
*/
|
||||||
@@ -1155,12 +1096,13 @@ while all this has been defined and implemented.
|
|||||||
|
|
||||||
- An example of code for iterating nodes & retrieving properties
|
- An example of code for iterating nodes & retrieving properties
|
||||||
directly from the flattened tree format can be found in the kernel
|
directly from the flattened tree format can be found in the kernel
|
||||||
file arch/ppc64/kernel/prom.c, look at scan_flat_dt() function,
|
file drivers/of/fdt.c. Look at the of_scan_flat_dt() function,
|
||||||
its usage in early_init_devtree(), and the corresponding various
|
its usage in early_init_devtree(), and the corresponding various
|
||||||
early_init_dt_scan_*() callbacks. That code can be re-used in a
|
early_init_dt_scan_*() callbacks. That code can be re-used in a
|
||||||
GPL bootloader, and as the author of that code, I would be happy
|
GPL bootloader, and as the author of that code, I would be happy
|
||||||
to discuss possible free licensing to any vendor who wishes to
|
to discuss possible free licensing to any vendor who wishes to
|
||||||
integrate all or part of this code into a non-GPL bootloader.
|
integrate all or part of this code into a non-GPL bootloader.
|
||||||
|
(reference needed; who is 'I' here? ---gcl Jan 31, 2011)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1203,18 +1145,19 @@ MPC8540.
|
|||||||
2) Representing devices without a current OF specification
|
2) Representing devices without a current OF specification
|
||||||
----------------------------------------------------------
|
----------------------------------------------------------
|
||||||
|
|
||||||
Currently, there are many devices on SOCs that do not have a standard
|
Currently, there are many devices on SoCs that do not have a standard
|
||||||
representation pre-defined as part of the open firmware
|
representation defined as part of the Open Firmware specifications,
|
||||||
specifications, mainly because the boards that contain these SOCs are
|
mainly because the boards that contain these SoCs are not currently
|
||||||
not currently booted using open firmware. This section contains
|
booted using Open Firmware. Binding documentation for new devices
|
||||||
descriptions for the SOC devices for which new nodes have been
|
should be added to the Documentation/devicetree/bindings directory.
|
||||||
defined; this list will expand as more and more SOC-containing
|
That directory will expand as device tree support is added to more and
|
||||||
platforms are moved over to use the flattened-device-tree model.
|
more SoCs.
|
||||||
|
|
||||||
|
|
||||||
VII - Specifying interrupt information for devices
|
VII - Specifying interrupt information for devices
|
||||||
===================================================
|
===================================================
|
||||||
|
|
||||||
The device tree represents the busses and devices of a hardware
|
The device tree represents the buses and devices of a hardware
|
||||||
system in a form similar to the physical bus topology of the
|
system in a form similar to the physical bus topology of the
|
||||||
hardware.
|
hardware.
|
||||||
|
|
@@ -62,6 +62,10 @@ aic7*reg_print.c*
|
|||||||
aic7*seq.h*
|
aic7*seq.h*
|
||||||
aicasm
|
aicasm
|
||||||
aicdb.h*
|
aicdb.h*
|
||||||
|
altivec1.c
|
||||||
|
altivec2.c
|
||||||
|
altivec4.c
|
||||||
|
altivec8.c
|
||||||
asm-offsets.h
|
asm-offsets.h
|
||||||
asm_offsets.h
|
asm_offsets.h
|
||||||
autoconf.h*
|
autoconf.h*
|
||||||
@@ -76,6 +80,7 @@ btfixupprep
|
|||||||
build
|
build
|
||||||
bvmlinux
|
bvmlinux
|
||||||
bzImage*
|
bzImage*
|
||||||
|
capflags.c
|
||||||
classlist.h*
|
classlist.h*
|
||||||
comp*.log
|
comp*.log
|
||||||
compile.h*
|
compile.h*
|
||||||
@@ -94,6 +99,7 @@ devlist.h*
|
|||||||
docproc
|
docproc
|
||||||
elf2ecoff
|
elf2ecoff
|
||||||
elfconfig.h*
|
elfconfig.h*
|
||||||
|
evergreen_reg_safe.h
|
||||||
fixdep
|
fixdep
|
||||||
flask.h
|
flask.h
|
||||||
fore200e_mkfirm
|
fore200e_mkfirm
|
||||||
@@ -108,9 +114,16 @@ genksyms
|
|||||||
*_gray256.c
|
*_gray256.c
|
||||||
ihex2fw
|
ihex2fw
|
||||||
ikconfig.h*
|
ikconfig.h*
|
||||||
|
inat-tables.c
|
||||||
initramfs_data.cpio
|
initramfs_data.cpio
|
||||||
initramfs_data.cpio.gz
|
initramfs_data.cpio.gz
|
||||||
initramfs_list
|
initramfs_list
|
||||||
|
int16.c
|
||||||
|
int1.c
|
||||||
|
int2.c
|
||||||
|
int32.c
|
||||||
|
int4.c
|
||||||
|
int8.c
|
||||||
kallsyms
|
kallsyms
|
||||||
kconfig
|
kconfig
|
||||||
keywords.c
|
keywords.c
|
||||||
@@ -140,6 +153,7 @@ mkprep
|
|||||||
mktables
|
mktables
|
||||||
mktree
|
mktree
|
||||||
modpost
|
modpost
|
||||||
|
modules.builtin
|
||||||
modules.order
|
modules.order
|
||||||
modversions.h*
|
modversions.h*
|
||||||
ncscope.*
|
ncscope.*
|
||||||
@@ -153,14 +167,23 @@ pca200e.bin
|
|||||||
pca200e_ecd.bin2
|
pca200e_ecd.bin2
|
||||||
piggy.gz
|
piggy.gz
|
||||||
piggyback
|
piggyback
|
||||||
|
piggy.S
|
||||||
pnmtologo
|
pnmtologo
|
||||||
ppc_defs.h*
|
ppc_defs.h*
|
||||||
pss_boot.h
|
pss_boot.h
|
||||||
qconf
|
qconf
|
||||||
|
r100_reg_safe.h
|
||||||
|
r200_reg_safe.h
|
||||||
|
r300_reg_safe.h
|
||||||
|
r420_reg_safe.h
|
||||||
|
r600_reg_safe.h
|
||||||
raid6altivec*.c
|
raid6altivec*.c
|
||||||
raid6int*.c
|
raid6int*.c
|
||||||
raid6tables.c
|
raid6tables.c
|
||||||
relocs
|
relocs
|
||||||
|
rn50_reg_safe.h
|
||||||
|
rs600_reg_safe.h
|
||||||
|
rv515_reg_safe.h
|
||||||
series
|
series
|
||||||
setup
|
setup
|
||||||
setup.bin
|
setup.bin
|
||||||
@@ -169,6 +192,7 @@ sImage
|
|||||||
sm_tbl*
|
sm_tbl*
|
||||||
split-include
|
split-include
|
||||||
syscalltab.h
|
syscalltab.h
|
||||||
|
tables.c
|
||||||
tags
|
tags
|
||||||
tftpboot.img
|
tftpboot.img
|
||||||
timeconst.h
|
timeconst.h
|
||||||
@@ -190,6 +214,7 @@ vmlinux
|
|||||||
vmlinux-*
|
vmlinux-*
|
||||||
vmlinux.aout
|
vmlinux.aout
|
||||||
vmlinux.lds
|
vmlinux.lds
|
||||||
|
voffset.h
|
||||||
vsyscall.lds
|
vsyscall.lds
|
||||||
vsyscall_32.lds
|
vsyscall_32.lds
|
||||||
wanxlfw.inc
|
wanxlfw.inc
|
||||||
@@ -200,3 +225,4 @@ wakeup.elf
|
|||||||
wakeup.lds
|
wakeup.lds
|
||||||
zImage*
|
zImage*
|
||||||
zconf.hash.c
|
zconf.hash.c
|
||||||
|
zoffset.h
|
||||||
|
@@ -46,7 +46,7 @@ and run
|
|||||||
Other LG firmware can be extracted manually from US280D.sys
|
Other LG firmware can be extracted manually from US280D.sys
|
||||||
only found in windows/system32/driver.
|
only found in windows/system32/driver.
|
||||||
|
|
||||||
dd if=US280D.sys ibs=1 skip=42616 count=3668 of=dvb-usb-lme2510-lg.fw
|
dd if=US280D.sys ibs=1 skip=42360 count=3924 of=dvb-usb-lme2510-lg.fw
|
||||||
|
|
||||||
for DM04 LME2510C (LG Tuner)
|
for DM04 LME2510C (LG Tuner)
|
||||||
---------------------------
|
---------------------------
|
||||||
|
@@ -104,6 +104,13 @@ Then from the "Message" menu item, select insert file and choose your patch.
|
|||||||
As an added bonus you can customise the message creation toolbar menu
|
As an added bonus you can customise the message creation toolbar menu
|
||||||
and put the "insert file" icon there.
|
and put the "insert file" icon there.
|
||||||
|
|
||||||
|
Make the the composer window wide enough so that no lines wrap. As of
|
||||||
|
KMail 1.13.5 (KDE 4.5.4), KMail will apply word wrapping when sending
|
||||||
|
the email if the lines wrap in the composer window. Having word wrapping
|
||||||
|
disabled in the Options menu isn't enough. Thus, if your patch has very
|
||||||
|
long lines, you must make the composer window very wide before sending
|
||||||
|
the email. See: https://bugs.kde.org/show_bug.cgi?id=174034
|
||||||
|
|
||||||
You can safely GPG sign attachments, but inlined text is preferred for
|
You can safely GPG sign attachments, but inlined text is preferred for
|
||||||
patches so do not GPG sign them. Signing patches that have been inserted
|
patches so do not GPG sign them. Signing patches that have been inserted
|
||||||
as inlined text will make them tricky to extract from their 7-bit encoding.
|
as inlined text will make them tricky to extract from their 7-bit encoding.
|
||||||
@@ -179,26 +186,8 @@ Sylpheed (GUI)
|
|||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Thunderbird (GUI)
|
Thunderbird (GUI)
|
||||||
|
|
||||||
By default, thunderbird likes to mangle text, but there are ways to
|
Thunderbird is an Outlook clone that likes to mangle text, but there are ways
|
||||||
coerce it into being nice.
|
to coerce it into behaving.
|
||||||
|
|
||||||
- Under account settings, composition and addressing, uncheck "Compose
|
|
||||||
messages in HTML format".
|
|
||||||
|
|
||||||
- Edit your Thunderbird config settings to tell it not to wrap lines:
|
|
||||||
user_pref("mailnews.wraplength", 0);
|
|
||||||
|
|
||||||
- Edit your Thunderbird config settings so that it won't use format=flowed:
|
|
||||||
user_pref("mailnews.send_plaintext_flowed", false);
|
|
||||||
|
|
||||||
- You need to get Thunderbird into preformat mode:
|
|
||||||
. If you compose HTML messages by default, it's not too hard. Just select
|
|
||||||
"Preformat" from the drop-down box just under the subject line.
|
|
||||||
. If you compose in text by default, you have to tell it to compose a new
|
|
||||||
message in HTML (just as a one-off), and then force it from there back to
|
|
||||||
text, else it will wrap lines. To do this, use shift-click on the Write
|
|
||||||
icon to compose to get HTML compose mode, then select "Preformat" from
|
|
||||||
the drop-down box just under the subject line.
|
|
||||||
|
|
||||||
- Allows use of an external editor:
|
- Allows use of an external editor:
|
||||||
The easiest thing to do with Thunderbird and patches is to use an
|
The easiest thing to do with Thunderbird and patches is to use an
|
||||||
@@ -208,6 +197,27 @@ coerce it into being nice.
|
|||||||
View->Toolbars->Customize... and finally just click on it when in the
|
View->Toolbars->Customize... and finally just click on it when in the
|
||||||
Compose dialog.
|
Compose dialog.
|
||||||
|
|
||||||
|
To beat some sense out of the internal editor, do this:
|
||||||
|
|
||||||
|
- Under account settings, composition and addressing, uncheck "Compose
|
||||||
|
messages in HTML format".
|
||||||
|
|
||||||
|
- Edit your Thunderbird config settings so that it won't use format=flowed.
|
||||||
|
Go to "edit->preferences->advanced->config editor" to bring up the
|
||||||
|
thunderbird's registry editor, and set "mailnews.send_plaintext_flowed" to
|
||||||
|
"false".
|
||||||
|
|
||||||
|
- Enable "preformat" mode: Shft-click on the Write icon to bring up the HTML
|
||||||
|
composer, select "Preformat" from the drop-down box just under the subject
|
||||||
|
line, then close the message without saving. (This setting also applies to
|
||||||
|
the text composer, but the only control for it is in the HTML composer.)
|
||||||
|
|
||||||
|
- Install the "toggle wordwrap" extension. Download the file from:
|
||||||
|
https://addons.mozilla.org/thunderbird/addon/2351/
|
||||||
|
Then go to "tools->add ons", select "install" at the bottom of the screen,
|
||||||
|
and browse to where you saved the .xul file. This adds an "Enable
|
||||||
|
Wordwrap" entry under the Options menu of the message composer.
|
||||||
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
TkRat (GUI)
|
TkRat (GUI)
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user