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
16469a0e
Commit
16469a0e
authored
Jan 08, 2008
by
Stuart Bennett
Committed by
Dave Airlie
Feb 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agp/sis: Suspend support for SiS AGP
Tested on M650 chipset Signed-off-by:
Dave Airlie
<
airlied@redhat.com
>
parent
b7d0640f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
drivers/char/agp/sis-agp.c
drivers/char/agp/sis-agp.c
+24
-0
No files found.
drivers/char/agp/sis-agp.c
View file @
16469a0e
...
...
@@ -214,6 +214,26 @@ static void __devexit agp_sis_remove(struct pci_dev *pdev)
agp_put_bridge
(
bridge
);
}
#ifdef CONFIG_PM
static
int
agp_sis_suspend
(
struct
pci_dev
*
pdev
,
pm_message_t
state
)
{
pci_save_state
(
pdev
);
pci_set_power_state
(
pdev
,
pci_choose_state
(
pdev
,
state
));
return
0
;
}
static
int
agp_sis_resume
(
struct
pci_dev
*
pdev
)
{
pci_set_power_state
(
pdev
,
PCI_D0
);
pci_restore_state
(
pdev
);
return
sis_driver
.
configure
();
}
#endif
/* CONFIG_PM */
static
struct
pci_device_id
agp_sis_pci_table
[]
=
{
{
.
class
=
(
PCI_CLASS_BRIDGE_HOST
<<
8
),
...
...
@@ -393,6 +413,10 @@ static struct pci_driver agp_sis_pci_driver = {
.
id_table
=
agp_sis_pci_table
,
.
probe
=
agp_sis_probe
,
.
remove
=
agp_sis_remove
,
#ifdef CONFIG_PM
.
suspend
=
agp_sis_suspend
,
.
resume
=
agp_sis_resume
,
#endif
};
static
int
__init
agp_sis_init
(
void
)
...
...
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