Logo Search packages:      
Sourcecode: linux version File versions  Download package

drm_os_linux.h File Reference


Detailed Description

OS abstraction macros.

Definition in file drm_os_linux.h.

#include <linux/interrupt.h>
#include <linux/delay.h>

Go to the source code of this file.

Classes

struct  no_agp_kern

Defines

#define DRM_AGP_KERN   struct no_agp_kern
#define DRM_AGP_MEM   int
#define DRM_COPY_FROM_USER(arg1, arg2, arg3)   copy_from_user(arg1, arg2, arg3)
#define DRM_COPY_FROM_USER_UNCHECKED(arg1, arg2, arg3)   __copy_from_user(arg1, arg2, arg3)
#define DRM_COPY_TO_USER(arg1, arg2, arg3)   copy_to_user(arg1, arg2, arg3)
#define DRM_COPY_TO_USER_UNCHECKED(arg1, arg2, arg3)   __copy_to_user(arg1, arg2, arg3)
#define DRM_CURRENTPID   task_pid_nr(current)
#define DRM_GET_USER_UNCHECKED(val, uaddr)   __get_user(val, uaddr)
#define DRM_HZ   HZ
#define DRM_INIT_WAITQUEUE(queue)   init_waitqueue_head( queue )
#define DRM_IRQ_ARGS   int irq, void *arg
#define DRM_MEMORYBARRIER()   mb()
#define DRM_READ16(map, offset)   readw(((void __iomem *)(map)->handle) + (offset))
#define DRM_READ32(map, offset)   readl(((void __iomem *)(map)->handle) + (offset))
#define DRM_READ8(map, offset)   readb(((void __iomem *)(map)->handle) + (offset))
#define DRM_READMEMORYBARRIER()   rmb()
#define DRM_SUSER(p)   capable(CAP_SYS_ADMIN)
#define DRM_UDELAY(d)   udelay(d)
#define DRM_VERIFYAREA_READ(uaddr, size)   (access_ok( VERIFY_READ, uaddr, size ) ? 0 : -EFAULT)
#define DRM_WAIT_ON(ret, queue, timeout, condition)
#define DRM_WAKEUP(queue)   wake_up_interruptible( queue )
#define DRM_WRITE16(map, offset, val)   writew(val, ((void __iomem *)(map)->handle) + (offset))
#define DRM_WRITE32(map, offset, val)   writel(val, ((void __iomem *)(map)->handle) + (offset))
#define DRM_WRITE8(map, offset, val)   writeb(val, ((void __iomem *)(map)->handle) + (offset))
#define DRM_WRITEMEMORYBARRIER()   wmb()
#define MTRR_TYPE_WRCOMB   1

Functions

static __inline__ int mtrr_add (unsigned long base, unsigned long size, unsigned int type, char increment)
static __inline__ int mtrr_del (int reg, unsigned long base, unsigned long size)


Generated by  Doxygen 1.6.0   Back to index