diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2009-12-11 04:24:15 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-11 06:29:34 -0500 |
commit | 6ee738610f41b59733f63718f0bdbcba7d3a3f12 (patch) | |
tree | eccb9f07671998c50a1bc606a54cd6f82ba43e0a /include/drm/i2c | |
parent | d1ede145cea25c5b6d2ebb19b167af14e374bb45 (diff) |
drm/nouveau: Add DRM driver for NVIDIA GPUs
This adds a drm/kms staging non-API stable driver for GPUs from NVIDIA.
This driver is a KMS-based driver and requires a compatible nouveau
userspace libdrm and nouveau X.org driver.
This driver requires firmware files not available in this kernel tree,
interested parties can find them via the nouveau project git archive.
This driver is reverse engineered, and is in no way supported by nVidia.
Support for nearly the complete range of nvidia hw from nv04->g80 (nv50)
is available, and the kms driver should support driving nearly all
output types (displayport is under development still) along with supporting
suspend/resume.
This work is all from the upstream nouveau project found at
nouveau.freedesktop.org.
The original authors list from nouveau git tree is:
Anssi Hannula <anssi.hannula@iki.fi>
Ben Skeggs <bskeggs@redhat.com>
Francisco Jerez <currojerez@riseup.net>
Maarten Maathuis <madman2003@gmail.com>
Marcin KoĆcielnicki <koriakin@0x04.net>
Matthew Garrett <mjg@redhat.com>
Matt Parnell <mparnell@gmail.com>
Patrice Mandin <patmandin@gmail.com>
Pekka Paalanen <pq@iki.fi>
Xavier Chantry <shiningxc@gmail.com>
along with project founder Stephane Marchesin <marchesin@icps.u-strasbg.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/i2c')
-rw-r--r-- | include/drm/i2c/ch7006.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/include/drm/i2c/ch7006.h b/include/drm/i2c/ch7006.h new file mode 100644 index 000000000000..8390b437a1f8 --- /dev/null +++ b/include/drm/i2c/ch7006.h | |||
@@ -0,0 +1,86 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2009 Francisco Jerez. | ||
3 | * All Rights Reserved. | ||
4 | * | ||
5 | * Permission is hereby granted, free of charge, to any person obtaining | ||
6 | * a copy of this software and associated documentation files (the | ||
7 | * "Software"), to deal in the Software without restriction, including | ||
8 | * without limitation the rights to use, copy, modify, merge, publish, | ||
9 | * distribute, sublicense, and/or sell copies of the Software, and to | ||
10 | * permit persons to whom the Software is furnished to do so, subject to | ||
11 | * the following conditions: | ||
12 | * | ||
13 | * The above copyright notice and this permission notice (including the | ||
14 | * next paragraph) shall be included in all copies or substantial | ||
15 | * portions of the Software. | ||
16 | * | ||
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
20 | * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE | ||
21 | * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
22 | * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
23 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
24 | * | ||
25 | */ | ||
26 | |||
27 | #ifndef __DRM_I2C_CH7006_H__ | ||
28 | #define __DRM_I2C_CH7006_H__ | ||
29 | |||
30 | /** | ||
31 | * struct ch7006_encoder_params | ||
32 | * | ||
33 | * Describes how the ch7006 is wired up with the GPU. It should be | ||
34 | * used as the @params parameter of its @set_config method. | ||
35 | * | ||
36 | * See "http://www.chrontel.com/pdf/7006.pdf" for their precise | ||
37 | * meaning. | ||
38 | */ | ||
39 | struct ch7006_encoder_params { | ||
40 | enum { | ||
41 | CH7006_FORMAT_RGB16 = 0, | ||
42 | CH7006_FORMAT_YCrCb24m16, | ||
43 | CH7006_FORMAT_RGB24m16, | ||
44 | CH7006_FORMAT_RGB15, | ||
45 | CH7006_FORMAT_RGB24m12C, | ||
46 | CH7006_FORMAT_RGB24m12I, | ||
47 | CH7006_FORMAT_RGB24m8, | ||
48 | CH7006_FORMAT_RGB16m8, | ||
49 | CH7006_FORMAT_RGB15m8, | ||
50 | CH7006_FORMAT_YCrCb24m8, | ||
51 | } input_format; | ||
52 | |||
53 | enum { | ||
54 | CH7006_CLOCK_SLAVE = 0, | ||
55 | CH7006_CLOCK_MASTER, | ||
56 | } clock_mode; | ||
57 | |||
58 | enum { | ||
59 | CH7006_CLOCK_EDGE_NEG = 0, | ||
60 | CH7006_CLOCK_EDGE_POS, | ||
61 | } clock_edge; | ||
62 | |||
63 | int xcm, pcm; | ||
64 | |||
65 | enum { | ||
66 | CH7006_SYNC_SLAVE = 0, | ||
67 | CH7006_SYNC_MASTER, | ||
68 | } sync_direction; | ||
69 | |||
70 | enum { | ||
71 | CH7006_SYNC_SEPARATED = 0, | ||
72 | CH7006_SYNC_EMBEDDED, | ||
73 | } sync_encoding; | ||
74 | |||
75 | enum { | ||
76 | CH7006_POUT_1_8V = 0, | ||
77 | CH7006_POUT_3_3V, | ||
78 | } pout_level; | ||
79 | |||
80 | enum { | ||
81 | CH7006_ACTIVE_HSYNC = 0, | ||
82 | CH7006_ACTIVE_DSTART, | ||
83 | } active_detect; | ||
84 | }; | ||
85 | |||
86 | #endif | ||