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
4df5ac26
Commit
4df5ac26
authored
May 14, 2013
by
Alex Deucher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/radeon: add r600_get_pcie_lane_support helper
Signed-off-by:
Alex Deucher
<
alexander.deucher@amd.com
>
parent
96d2af21
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
drivers/gpu/drm/radeon/r600_dpm.c
drivers/gpu/drm/radeon/r600_dpm.c
+23
-0
drivers/gpu/drm/radeon/r600_dpm.h
drivers/gpu/drm/radeon/r600_dpm.h
+4
-0
No files found.
drivers/gpu/drm/radeon/r600_dpm.c
View file @
4df5ac26
...
...
@@ -1223,3 +1223,26 @@ enum radeon_pcie_gen r600_get_pcie_gen_support(struct radeon_device *rdev,
}
return
RADEON_PCIE_GEN1
;
}
u16
r600_get_pcie_lane_support
(
struct
radeon_device
*
rdev
,
u16
asic_lanes
,
u16
default_lanes
)
{
switch
(
asic_lanes
)
{
case
0
:
default:
return
default_lanes
;
case
1
:
return
1
;
case
2
:
return
2
;
case
4
:
return
4
;
case
8
:
return
8
;
case
12
:
return
12
;
case
16
:
return
16
;
}
}
drivers/gpu/drm/radeon/r600_dpm.h
View file @
4df5ac26
...
...
@@ -224,4 +224,8 @@ enum radeon_pcie_gen r600_get_pcie_gen_support(struct radeon_device *rdev,
enum
radeon_pcie_gen
asic_gen
,
enum
radeon_pcie_gen
default_gen
);
u16
r600_get_pcie_lane_support
(
struct
radeon_device
*
rdev
,
u16
asic_lanes
,
u16
default_lanes
);
#endif
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