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
34a9f3ac
Commit
34a9f3ac
authored
Apr 09, 2004
by
Dave Airlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Miscellaneous changes from DRM CVS
parent
9d136148
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
15 deletions
+17
-15
drivers/char/drm/drm.h
drivers/char/drm/drm.h
+14
-2
drivers/char/drm/drmP.h
drivers/char/drm/drmP.h
+0
-12
drivers/char/drm/drm_agpsupport.h
drivers/char/drm/drm_agpsupport.h
+2
-0
drivers/char/drm/drm_bufs.h
drivers/char/drm/drm_bufs.h
+1
-1
No files found.
drivers/char/drm/drm.h
View file @
34a9f3ac
...
...
@@ -46,8 +46,8 @@
#define DRM_IOC_WRITE _IOC_WRITE
#define DRM_IOC_READWRITE _IOC_READ|_IOC_WRITE
#define DRM_IOC(dir, group, nr, size) _IOC(dir, group, nr, size)
#elif defined(__FreeBSD__) || defined(__NetBSD__)
#if defined(__FreeBSD__) && defined(
XFree86Server
)
#elif defined(__FreeBSD__) || defined(__NetBSD__)
|| defined(__OpenBSD__)
#if defined(__FreeBSD__) && defined(
IN_MODULE
)
/* Prevent name collision when including sys/ioccom.h */
#undef ioctl
#include <sys/ioccom.h>
...
...
@@ -130,6 +130,18 @@ typedef struct drm_tex_region {
unsigned
int
age
;
}
drm_tex_region_t
;
/**
* Hardware lock.
*
* The lock structure is a simple cache-line aligned integer. To avoid
* processor bus contention on a multiprocessor system, there should not be any
* other data stored in the same cache line.
*/
typedef
struct
drm_hw_lock
{
__volatile__
unsigned
int
lock
;
/**< lock variable */
char
padding
[
60
];
/**< Pad to cache line */
}
drm_hw_lock_t
;
/**
* DRM_IOCTL_VERSION ioctl argument type.
...
...
drivers/char/drm/drmP.h
View file @
34a9f3ac
...
...
@@ -467,18 +467,6 @@ typedef struct drm_buf_entry {
drm_freelist_t
freelist
;
}
drm_buf_entry_t
;
/**
* Hardware lock.
*
* The lock structure is a simple cache-line aligned integer. To avoid
* processor bus contention on a multiprocessor system, there should not be any
* other data stored in the same cache line.
*/
typedef
struct
drm_hw_lock
{
__volatile__
unsigned
int
lock
;
/**< lock variable */
char
padding
[
60
];
/**< Pad to cache line */
}
drm_hw_lock_t
;
/** File private data */
typedef
struct
drm_file
{
int
authenticated
;
...
...
drivers/char/drm/drm_agpsupport.h
View file @
34a9f3ac
...
...
@@ -109,6 +109,8 @@ int DRM(agp_acquire)(struct inode *inode, struct file *filp,
return
-
EBUSY
;
if
(
!
drm_agp
->
acquire
)
return
-
EINVAL
;
if
(
dev
->
agp
->
cant_use_aperture
)
return
-
EINVAL
;
if
((
retcode
=
drm_agp
->
acquire
()))
return
retcode
;
dev
->
agp
->
acquired
=
1
;
...
...
drivers/char/drm/drm_bufs.h
View file @
34a9f3ac
...
...
@@ -775,7 +775,7 @@ int DRM(addbufs_pci)( struct inode *inode, struct file *filp,
}
#endif
/* __HAVE_PCI_DMA */
#if
def
__HAVE_SG
#if __HAVE_SG
int
DRM
(
addbufs_sg
)(
struct
inode
*
inode
,
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
...
...
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