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
82d3c90c
Commit
82d3c90c
authored
Feb 24, 2011
by
Chris Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/i915: Use a symbolic constant for OpRegion lid state
Signed-off-by:
Chris Wilson
<
chris@chris-wilson.co.uk
>
parent
710f9578
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
drivers/gpu/drm/i915/intel_opregion.c
drivers/gpu/drm/i915/intel_opregion.c
+3
-1
No files found.
drivers/gpu/drm/i915/intel_opregion.c
View file @
82d3c90c
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
#define OPREGION_HEADER_OFFSET 0
#define OPREGION_HEADER_OFFSET 0
#define OPREGION_ACPI_OFFSET 0x100
#define OPREGION_ACPI_OFFSET 0x100
#define ACPI_CLID 0x01ac
/* current lid state indicator */
#define ACPI_CDCK 0x01b0
/* current docking state indicator */
#define OPREGION_SWSCI_OFFSET 0x200
#define OPREGION_SWSCI_OFFSET 0x200
#define OPREGION_ASLE_OFFSET 0x300
#define OPREGION_ASLE_OFFSET 0x300
#define OPREGION_VBT_OFFSET 0x400
#define OPREGION_VBT_OFFSET 0x400
...
@@ -489,7 +491,7 @@ int intel_opregion_setup(struct drm_device *dev)
...
@@ -489,7 +491,7 @@ int intel_opregion_setup(struct drm_device *dev)
opregion
->
header
=
base
;
opregion
->
header
=
base
;
opregion
->
vbt
=
base
+
OPREGION_VBT_OFFSET
;
opregion
->
vbt
=
base
+
OPREGION_VBT_OFFSET
;
opregion
->
lid_state
=
base
+
0x01ac
;
opregion
->
lid_state
=
base
+
ACPI_CLID
;
mboxes
=
opregion
->
header
->
mboxes
;
mboxes
=
opregion
->
header
->
mboxes
;
if
(
mboxes
&
MBOX_ACPI
)
{
if
(
mboxes
&
MBOX_ACPI
)
{
...
...
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