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
e8d317e4
Commit
e8d317e4
authored
May 21, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] sanity check printk's.
parent
6c1c1a47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+10
-5
No files found.
drivers/char/agp/generic.c
View file @
e8d317e4
...
...
@@ -311,12 +311,15 @@ EXPORT_SYMBOL(agp_copy_info);
* It returns -EINVAL if the pointer == NULL.
* It returns -EBUSY if the area of the table requested is already in use.
*/
int
agp_bind_memory
(
agp_memory
*
curr
,
off_t
pg_start
)
int
agp_bind_memory
(
agp_memory
*
curr
,
off_t
pg_start
)
{
int
ret_val
;
if
((
agp_bridge
->
type
==
NOT_SUPPORTED
)
||
(
curr
==
NULL
)
||
(
curr
->
is_bound
==
TRUE
))
{
if
((
agp_bridge
->
type
==
NOT_SUPPORTED
)
||
(
curr
==
NULL
))
return
-
EINVAL
;
if
(
curr
->
is_bound
==
TRUE
)
{
printk
(
KERN_INFO
PFX
"memory %p is already bound!
\n
"
,
curr
);
return
-
EINVAL
;
}
if
(
curr
->
is_flushed
==
FALSE
)
{
...
...
@@ -343,15 +346,17 @@ EXPORT_SYMBOL(agp_bind_memory);
* It returns -EINVAL if this piece of agp_memory is not currently bound to
* the graphics aperture translation table or if the agp_memory pointer == NULL
*/
int
agp_unbind_memory
(
agp_memory
*
curr
)
int
agp_unbind_memory
(
agp_memory
*
curr
)
{
int
ret_val
;
if
((
agp_bridge
->
type
==
NOT_SUPPORTED
)
||
(
curr
==
NULL
))
return
-
EINVAL
;
if
(
curr
->
is_bound
!=
TRUE
)
if
(
curr
->
is_bound
!=
TRUE
)
{
printk
(
KERN_INFO
PFX
"memory %p was not bound!
\n
"
,
curr
);
return
-
EINVAL
;
}
ret_val
=
agp_bridge
->
driver
->
remove_memory
(
curr
,
curr
->
pg_start
,
curr
->
type
);
...
...
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