summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDanny Tholen <moondrake@gmail.com>2009-05-07 00:11:34 +0100
committerStuart Bennett <stuart@freedesktop.org>2009-05-22 15:43:26 +0100
commit85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c (patch)
tree662b41af45815f84ddc518f065515a89b8c29003 /shared-core
parentf355ad89431c49355e626613e6fc29ef2e183dab (diff)
nouveau: backlight support for ppc laptops
Patch allows the backlight to be manipulated under gnome on apple powerpc based NV30 machines. It works fine on my powerbook, and should also work for older NV17/NV18 machines. Note that older powerpc specific tools (pbbuttonsd) have some problems with this implementation (because the device is not yet there at the start time of the daemon, and the code makes incorrect assumptions about the max brightness values). However, IMHO these things can and should be addressed in the daemon. Some style/warning fixes applied by Stuart Bennett <stuart@freedesktop.org>
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_reg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared-core/nouveau_reg.h b/shared-core/nouveau_reg.h
index eade44e5..695bf5d7 100644
--- a/shared-core/nouveau_reg.h
+++ b/shared-core/nouveau_reg.h
@@ -95,6 +95,9 @@
* the card will hang early on in the X init process.
*/
# define NV_PMC_ENABLE_UNK13 (1<<13)
+
+#define NV_PBUS_DEBUG_DUALHEAD_CTL 0x000010F0
+
#define NV40_PMC_BACKLIGHT 0x000015f0
# define NV40_PMC_BACKLIGHT_MASK 0x001f0000
#define NV40_PMC_1700 0x00001700
@@ -404,6 +407,7 @@
#define NV40_PGRAPH_TSIZE1(i) (0x00406908 + (i*16))
#define NV40_PGRAPH_TSTATUS1(i) (0x0040690C + (i*16))
+#define NV_PCRTC_GPIO_EXT 0x0060081C
/* It's a guess that this works on NV03. Confirmed on NV04, though */
#define NV04_PFIFO_DELAY_0 0x00002040