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
Kirill Smelkov
linux
Commits
4767fae8
Commit
4767fae8
authored
Nov 04, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/bios: some older boards have shorter displayport tables
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
46ea1688
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
drivers/gpu/drm/nouveau/core/subdev/bios/dp.c
drivers/gpu/drm/nouveau/core/subdev/bios/dp.c
+7
-3
No files found.
drivers/gpu/drm/nouveau/core/subdev/bios/dp.c
View file @
4767fae8
...
@@ -89,6 +89,7 @@ nvbios_dpout_parse(struct nouveau_bios *bios, u8 idx,
...
@@ -89,6 +89,7 @@ nvbios_dpout_parse(struct nouveau_bios *bios, u8 idx,
struct
nvbios_dpout
*
info
)
struct
nvbios_dpout
*
info
)
{
{
u16
data
=
nvbios_dpout_entry
(
bios
,
idx
,
ver
,
hdr
,
cnt
,
len
);
u16
data
=
nvbios_dpout_entry
(
bios
,
idx
,
ver
,
hdr
,
cnt
,
len
);
memset
(
info
,
0x00
,
sizeof
(
*
info
));
if
(
data
&&
*
ver
)
{
if
(
data
&&
*
ver
)
{
info
->
type
=
nv_ro16
(
bios
,
data
+
0x00
);
info
->
type
=
nv_ro16
(
bios
,
data
+
0x00
);
info
->
mask
=
nv_ro16
(
bios
,
data
+
0x02
);
info
->
mask
=
nv_ro16
(
bios
,
data
+
0x02
);
...
@@ -99,9 +100,12 @@ nvbios_dpout_parse(struct nouveau_bios *bios, u8 idx,
...
@@ -99,9 +100,12 @@ nvbios_dpout_parse(struct nouveau_bios *bios, u8 idx,
info
->
script
[
0
]
=
nv_ro16
(
bios
,
data
+
0x06
);
info
->
script
[
0
]
=
nv_ro16
(
bios
,
data
+
0x06
);
info
->
script
[
1
]
=
nv_ro16
(
bios
,
data
+
0x08
);
info
->
script
[
1
]
=
nv_ro16
(
bios
,
data
+
0x08
);
info
->
lnkcmp
=
nv_ro16
(
bios
,
data
+
0x0a
);
info
->
lnkcmp
=
nv_ro16
(
bios
,
data
+
0x0a
);
info
->
script
[
2
]
=
nv_ro16
(
bios
,
data
+
0x0c
);
if
(
*
len
>=
0x0f
)
{
info
->
script
[
3
]
=
nv_ro16
(
bios
,
data
+
0x0e
);
info
->
script
[
2
]
=
nv_ro16
(
bios
,
data
+
0x0c
);
info
->
script
[
4
]
=
nv_ro16
(
bios
,
data
+
0x10
);
info
->
script
[
3
]
=
nv_ro16
(
bios
,
data
+
0x0e
);
}
if
(
*
len
>=
0x11
)
info
->
script
[
4
]
=
nv_ro16
(
bios
,
data
+
0x10
);
break
;
break
;
case
0x40
:
case
0x40
:
info
->
flags
=
nv_ro08
(
bios
,
data
+
0x04
);
info
->
flags
=
nv_ro08
(
bios
,
data
+
0x04
);
...
...
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