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
39861038
Commit
39861038
authored
Sep 10, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm: annotate basic PCI memory access functions
parent
d77ee934
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/char/drm/drm_os_linux.h
drivers/char/drm/drm_os_linux.h
+6
-6
No files found.
drivers/char/drm/drm_os_linux.h
View file @
39861038
...
...
@@ -16,17 +16,17 @@
#define DRM_CURRENTPID current->pid
#define DRM_UDELAY(d) udelay(d)
/** Read a byte from a MMIO region */
#define DRM_READ8(map, offset) readb(((
unsigned long
)(map)->handle) + (offset))
#define DRM_READ8(map, offset) readb(((
void __iomem *
)(map)->handle) + (offset))
/** Read a word from a MMIO region */
#define DRM_READ16(map, offset) readw(((
unsigned long
)(map)->handle) + (offset))
#define DRM_READ16(map, offset) readw(((
void __iomem *
)(map)->handle) + (offset))
/** Read a dword from a MMIO region */
#define DRM_READ32(map, offset) readl(((
unsigned long
)(map)->handle) + (offset))
#define DRM_READ32(map, offset) readl(((
void __iomem *
)(map)->handle) + (offset))
/** Write a byte into a MMIO region */
#define DRM_WRITE8(map, offset, val) writeb(val, ((
unsigned long
)(map)->handle) + (offset))
#define DRM_WRITE8(map, offset, val) writeb(val, ((
void __iomem *
)(map)->handle) + (offset))
/** Write a word into a MMIO region */
#define DRM_WRITE16(map, offset, val) writew(val, ((
unsigned long
)(map)->handle) + (offset))
#define DRM_WRITE16(map, offset, val) writew(val, ((
void __iomem *
)(map)->handle) + (offset))
/** Write a dword into a MMIO region */
#define DRM_WRITE32(map, offset, val) writel(val, ((
unsigned long
)(map)->handle) + (offset))
#define DRM_WRITE32(map, offset, val) writel(val, ((
void __iomem *
)(map)->handle) + (offset))
/** Read memory barrier */
#define DRM_READMEMORYBARRIER() rmb()
/** Write memory barrier */
...
...
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