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
da96ec97
Commit
da96ec97
authored
Jan 13, 2003
by
Bjorn Helgaas
Committed by
Dave Jones
Jan 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGP] factor device command updates
parent
695dac8a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
15 deletions
+17
-15
drivers/char/agp/amd-k8-agp.c
drivers/char/agp/amd-k8-agp.c
+1
-5
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+15
-5
drivers/char/agp/sworks-agp.c
drivers/char/agp/sworks-agp.c
+1
-5
No files found.
drivers/char/agp/amd-k8-agp.c
View file @
da96ec97
...
@@ -435,11 +435,7 @@ static void agp_x86_64_agp_enable(u32 mode)
...
@@ -435,11 +435,7 @@ static void agp_x86_64_agp_enable(u32 mode)
* command registers.
* command registers.
*/
*/
pci_for_each_dev
(
device
)
{
agp_device_command
(
command
);
cap_ptr
=
pci_find_capability
(
device
,
PCI_CAP_ID_AGP
);
if
(
cap_ptr
!=
0x00
)
pci_write_config_dword
(
device
,
cap_ptr
+
8
,
command
);
}
}
}
...
...
drivers/char/agp/generic.c
View file @
da96ec97
...
@@ -313,6 +313,20 @@ int agp_unbind_memory(agp_memory * curr)
...
@@ -313,6 +313,20 @@ int agp_unbind_memory(agp_memory * curr)
/* Generic Agp routines - Start */
/* Generic Agp routines - Start */
void
agp_device_command
(
u32
command
)
{
struct
pci_dev
*
device
;
pci_for_each_dev
(
device
)
{
u8
agp
=
pci_find_capability
(
device
,
PCI_CAP_ID_AGP
);
if
(
!
agp
)
continue
;
pci_write_config_dword
(
device
,
agp
+
8
,
command
);
}
}
void
agp_generic_agp_enable
(
u32
mode
)
void
agp_generic_agp_enable
(
u32
mode
)
{
{
struct
pci_dev
*
device
=
NULL
;
struct
pci_dev
*
device
=
NULL
;
...
@@ -395,11 +409,7 @@ void agp_generic_agp_enable(u32 mode)
...
@@ -395,11 +409,7 @@ void agp_generic_agp_enable(u32 mode)
* command registers.
* command registers.
*/
*/
pci_for_each_dev
(
device
)
{
agp_device_command
(
command
);
cap_ptr
=
pci_find_capability
(
device
,
PCI_CAP_ID_AGP
);
if
(
cap_ptr
!=
0x00
)
pci_write_config_dword
(
device
,
cap_ptr
+
8
,
command
);
}
}
}
int
agp_generic_create_gatt_table
(
void
)
int
agp_generic_create_gatt_table
(
void
)
...
...
drivers/char/agp/sworks-agp.c
View file @
da96ec97
...
@@ -506,11 +506,7 @@ static void serverworks_agp_enable(u32 mode)
...
@@ -506,11 +506,7 @@ static void serverworks_agp_enable(u32 mode)
* command registers.
* command registers.
*/
*/
pci_for_each_dev
(
device
)
{
agp_device_command
(
command
);
cap_ptr
=
pci_find_capability
(
device
,
PCI_CAP_ID_AGP
);
if
(
cap_ptr
!=
0x00
)
pci_write_config_dword
(
device
,
cap_ptr
+
8
,
command
);
}
}
}
static
int
__init
serverworks_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
serverworks_setup
(
struct
pci_dev
*
pdev
)
...
...
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