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
6f0f072e
Commit
6f0f072e
authored
Apr 25, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] Add more defines to kill off hardcoded values
parent
46baaa69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
drivers/char/agp/agp.h
drivers/char/agp/agp.h
+6
-3
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+1
-1
No files found.
drivers/char/agp/agp.h
View file @
6f0f072e
...
...
@@ -413,10 +413,13 @@ void agp_device_command(u32 command, int agp_v3);
int
agp_3_0_node_enable
(
u32
mode
,
u32
minor
);
#define AGPSTAT_RQ_DEPTH (0xff000000)
#define AGPSTAT_AGP_ENABLE (1<<8)
#define AGPSTAT_SBA (1<<9)
#define AGPSTAT_FW (1<<4)
#define AGPSTAT2_
4X (1<<2
)
#define AGPSTAT2_
1X (1<<0
)
#define AGPSTAT2_2X (1<<1)
#define AGPSTAT2_1X (1)
#define AGPSTAT2_4X (1<<2)
#define AGPSTAT_FW (1<<4)
#endif
/* _AGP_BACKEND_PRIV_H */
drivers/char/agp/generic.c
View file @
6f0f072e
...
...
@@ -412,7 +412,7 @@ void agp_generic_enable(u32 mode)
agp_bridge
->
capndx
+
PCI_AGP_STATUS
,
&
command
);
command
=
agp_collect_device_status
(
mode
,
command
);
command
|=
0x100
;
command
|=
AGPSTAT_AGP_ENABLE
;
pci_write_config_dword
(
agp_bridge
->
dev
,
agp_bridge
->
capndx
+
PCI_AGP_COMMAND
,
command
);
...
...
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