Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
48800d9e
Commit
48800d9e
authored
Aug 14, 2002
by
Petr Vandrovec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support secondary head DDC on G450/G550.
Simplify i2c-matroxfb code.
parent
456f17cd
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
219 deletions
+80
-219
drivers/video/matrox/i2c-matroxfb.c
drivers/video/matrox/i2c-matroxfb.c
+63
-196
drivers/video/matrox/matroxfb_base.c
drivers/video/matrox/matroxfb_base.c
+10
-10
drivers/video/matrox/matroxfb_base.h
drivers/video/matrox/matroxfb_base.h
+1
-0
drivers/video/matrox/matroxfb_maven.c
drivers/video/matrox/matroxfb_maven.c
+1
-2
drivers/video/matrox/matroxfb_maven.h
drivers/video/matrox/matroxfb_maven.h
+5
-11
No files found.
drivers/video/matrox/i2c-matroxfb.c
View file @
48800d9e
This diff is collapsed.
Click to expand it.
drivers/video/matrox/matroxfb_base.c
View file @
48800d9e
...
...
@@ -2,11 +2,11 @@
*
* Hardware accelerated Matrox Millennium I, II, Mystique, G100, G200 and G400
*
* (c) 1998-200
1
Petr Vandrovec <vandrove@vc.cvut.cz>
* (c) 1998-200
2
Petr Vandrovec <vandrove@vc.cvut.cz>
*
* Portions Copyright (c) 2001 Matrox Graphics Inc.
*
* Version: 1.6
2 2001/11/29
* Version: 1.6
4 2002/06/10
*
* MTRR stuff: 1998 Tom Rini <trini@kernel.crashing.org>
*
...
...
@@ -1392,10 +1392,10 @@ static struct video_board vbG400 = {0x2000000, 0x1000000, FB_ACCEL_MATROX_MGAG4
#define DEVF_VIDEO64BIT 0x0001
#define DEVF_SWAPS 0x0002
#define DEVF_SRCORG 0x0004
#define DEVF_
BOTHDACS 0x0008
/* put CRTC1 on both outputs by default */
#define DEVF_
DUALHEAD 0x0008
#define DEVF_CROSS4MB 0x0010
#define DEVF_TEXT4B 0x0020
#define DEVF_DDC_8_2 0x0040
/* #define DEVF_recycled 0x0040 */
/* #define DEVF_recycled 0x0080 */
#define DEVF_SUPPORT32MB 0x0100
#define DEVF_ANY_VXRES 0x0200
...
...
@@ -1405,14 +1405,14 @@ static struct video_board vbG400 = {0x2000000, 0x1000000, FB_ACCEL_MATROX_MGAG4
#define DEVF_PANELLINK_CAPABLE 0x2000
#define DEVF_G450DAC 0x4000
#define DEVF_GCORE (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB
| DEVF_DDC_8_2
)
#define DEVF_G2CORE (DEVF_GCORE | DEVF_ANY_VXRES | DEVF_MAVEN_CAPABLE | DEVF_PANELLINK_CAPABLE | DEVF_SRCORG)
#define DEVF_GCORE (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB)
#define DEVF_G2CORE (DEVF_GCORE | DEVF_ANY_VXRES | DEVF_MAVEN_CAPABLE | DEVF_PANELLINK_CAPABLE | DEVF_SRCORG
| DEVF_DUALHEAD
)
#define DEVF_G100 (DEVF_GCORE)
/* no doc, no vxres... */
#define DEVF_G200 (DEVF_G2CORE)
#define DEVF_G400 (DEVF_G2CORE | DEVF_SUPPORT32MB | DEVF_TEXT16B | DEVF_CRTC2)
/* if you'll find how to drive DFP... */
#define DEVF_G450 (DEVF_GCORE | DEVF_ANY_VXRES | DEVF_SUPPORT32MB | DEVF_TEXT16B | DEVF_CRTC2 | DEVF_G450DAC | DEVF_SRCORG)
#define DEVF_G550 (DEVF_G450
| DEVF_BOTHDACS
)
#define DEVF_G450 (DEVF_GCORE | DEVF_ANY_VXRES | DEVF_SUPPORT32MB | DEVF_TEXT16B | DEVF_CRTC2 | DEVF_G450DAC | DEVF_SRCORG
| DEVF_DUALHEAD
)
#define DEVF_G550 (DEVF_G450)
static
struct
board
{
unsigned
short
vendor
,
device
,
rev
,
svid
,
sid
;
...
...
@@ -1611,12 +1611,12 @@ static int initMatrox2(WPMINFO struct display* d, struct board* b){
ACCESS_FBINFO
(
devflags
.
precise_width
)
=
!
(
b
->
flags
&
DEVF_ANY_VXRES
);
ACCESS_FBINFO
(
devflags
.
crtc2
)
=
b
->
flags
&
DEVF_CRTC2
;
ACCESS_FBINFO
(
devflags
.
maven_capable
)
=
b
->
flags
&
DEVF_MAVEN_CAPABLE
;
ACCESS_FBINFO
(
devflags
.
dualhead
)
=
(
b
->
flags
&
DEVF_DUALHEAD
)
!=
0
;
if
(
b
->
flags
&
DEVF_PANELLINK_CAPABLE
)
{
ACCESS_FBINFO
(
output
.
all
)
|=
MATROXFB_OUTPUT_CONN_DFP
;
if
(
dfp
)
ACCESS_FBINFO
(
output
.
ph
)
|=
MATROXFB_OUTPUT_CONN_DFP
;
}
if
(
b
->
flags
&
DEVF_BOTHDACS
)
{
}
else
if
(
b
->
flags
&
DEVF_DUALHEAD
)
{
#ifdef CONFIG_FB_MATROX_G450
ACCESS_FBINFO
(
output
.
all
)
|=
MATROXFB_OUTPUT_CONN_SECONDARY
;
ACCESS_FBINFO
(
output
.
ph
)
|=
MATROXFB_OUTPUT_CONN_SECONDARY
;
...
...
drivers/video/matrox/matroxfb_base.h
View file @
48800d9e
...
...
@@ -541,6 +541,7 @@ struct matrox_fb_info {
int
memtype
;
int
g450dac
;
int
dfp_type
;
int
dualhead
;
unsigned
int
fbResource
;
}
devflags
;
struct
display_switch
dispsw
;
...
...
drivers/video/matrox/matroxfb_maven.c
View file @
48800d9e
...
...
@@ -924,8 +924,7 @@ static struct matrox_altout maven_altout = {
static
int
maven_init_client
(
struct
i2c_client
*
clnt
)
{
struct
i2c_adapter
*
a
=
clnt
->
adapter
;
struct
maven_data
*
md
=
clnt
->
data
;
struct
matroxfb_dh_maven_info
*
m2info
__attribute__
((
unused
))
=
((
struct
i2c_bit_adapter
*
)
a
)
->
minfo
;
MINFO_FROM
(
m2info
->
primary_dev
);
MINFO_FROM
(((
struct
i2c_bit_adapter
*
)
a
)
->
minfo
);
md
->
mode
=
MODE_MONITOR
;
md
->
primary_head
=
MINFO
;
...
...
drivers/video/matrox/matroxfb_maven.h
View file @
48800d9e
...
...
@@ -6,21 +6,15 @@
#include <linux/i2c-algo-bit.h>
#include "matroxfb_base.h"
struct
matroxfb_dh_maven_info
;
struct
i2c_bit_adapter
{
struct
i2c_adapter
adapter
;
int
initialized
;
struct
i2c_algo_bit_data
bac
;
struct
matroxfb_dh_maven_info
*
minfo
;
};
struct
matroxfb_dh_maven_info
{
struct
matrox_fb_info
*
primary_dev
;
struct
i2c_bit_adapter
maven
;
struct
i2c_bit_adapter
ddc1
;
struct
i2c_bit_adapter
ddc2
;
struct
matrox_fb_info
*
minfo
;
struct
{
unsigned
int
data
;
unsigned
int
clock
;
}
mask
;
};
#endif
/* __MATROXFB_MAVEN_H__ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment