From 373d67702c1fd6c6258ce03d3fb4fc167ff947cb Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 10 Jun 2004 12:48:35 +0000 Subject: A few changes for recent redhat. --- linux/drm_os_linux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux/drm_os_linux.h') diff --git a/linux/drm_os_linux.h b/linux/drm_os_linux.h index c26a4108..6d2d0710 100644 --- a/linux/drm_os_linux.h +++ b/linux/drm_os_linux.h @@ -18,10 +18,14 @@ #define DRM_UDELAY(d) udelay(d) /** Read a byte from a MMIO region */ #define DRM_READ8(map, offset) readb(((unsigned long)(map)->handle) + (offset)) +/** Read a word from a MMIO region */ +#define DRM_READ16(map, offset) readw(((unsigned long)(map)->handle) + (offset)) /** Read a dword from a MMIO region */ #define DRM_READ32(map, offset) readl(((unsigned long)(map)->handle) + (offset)) /** Write a byte into a MMIO region */ #define DRM_WRITE8(map, offset, val) writeb(val, ((unsigned long)(map)->handle) + (offset)) +/** Write a word into a MMIO region */ +#define DRM_WRITE16(map, offset, val) writew(val, ((unsigned long)(map)->handle) + (offset)) /** Write a dword into a MMIO region */ #define DRM_WRITE32(map, offset, val) writel(val, ((unsigned long)(map)->handle) + (offset)) /** Read memory barrier */ -- cgit v1.2.3