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
805aba53
Commit
805aba53
authored
Apr 20, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix-ups for i830 from Arjan
parent
b2520649
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
drivers/char/drm/i830_dma.c
drivers/char/drm/i830_dma.c
+3
-11
No files found.
drivers/char/drm/i830_dma.c
View file @
805aba53
...
...
@@ -52,14 +52,6 @@
#define up_write up
#endif
#ifndef LockPage
#define LockPage(page) set_bit(PG_locked, &(page)->flags)
#endif
#ifndef UnlockPage
#define UnlockPage(page) unlock_page(page)
#endif
static
inline
void
i830_print_status_page
(
drm_device_t
*
dev
)
{
drm_device_dma_t
*
dma
=
dev
->
dma
;
...
...
@@ -176,10 +168,10 @@ static int i830_map_buffer(drm_buf_t *buf, struct file *filp)
buf
->
bus_address
);
dev_priv
->
mmap_buffer
=
NULL
;
filp
->
f_op
=
old_fops
;
if
(
(
unsigned
long
)
buf_priv
->
virtual
>
-
1024UL
)
{
if
(
IS_ERR
(
buf_priv
->
virtual
)
)
{
/* Real error */
DRM_ERROR
(
"mmap error
\n
"
);
retcode
=
(
signed
int
)
buf_priv
->
virtual
;
retcode
=
PTR_ERR
(
buf_priv
->
virtual
)
;
buf_priv
->
virtual
=
0
;
}
up_write
(
&
current
->
mm
->
mmap_sem
);
...
...
@@ -454,7 +446,7 @@ static int i830_dma_initialize(drm_device_t *dev,
memset
((
void
*
)
dev_priv
->
hw_status_page
,
0
,
PAGE_SIZE
);
DRM_DEBUG
(
"hw status page @ %lx
\n
"
,
dev_priv
->
hw_status_page
);
I830_WRITE
(
0x02080
,
virt_to_bus
((
void
*
)
dev_priv
->
hw_status_page
)
);
I830_WRITE
(
0x02080
,
dev_priv
->
dma_status_page
);
DRM_DEBUG
(
"Enabled hardware status page
\n
"
);
/* Now we need to init our freelist */
...
...
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