Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
i810_dma.c File Reference
#include <drm/drmP.h>
#include <drm/i810_drm.h>
#include "i810_drv.h"
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/pagemap.h>

Go to the source code of this file.

Macros

#define I810_BUF_FREE   2
 
#define I810_BUF_CLIENT   1
 
#define I810_BUF_HARDWARE   0
 
#define I810_BUF_UNMAPPED   0
 
#define I810_BUF_MAPPED   1
 

Functions

void i810_driver_reclaim_buffers (struct drm_device *dev, struct drm_file *file_priv)
 
int i810_driver_load (struct drm_device *dev, unsigned long flags)
 
void i810_driver_lastclose (struct drm_device *dev)
 
void i810_driver_preclose (struct drm_device *dev, struct drm_file *file_priv)
 
int i810_driver_dma_quiescent (struct drm_device *dev)
 
int i810_driver_device_is_agp (struct drm_device *dev)
 

Variables

struct drm_ioctl_desc i810_ioctls []
 
int i810_max_ioctl = DRM_ARRAY_SIZE(i810_ioctls)
 

Macro Definition Documentation

#define I810_BUF_CLIENT   1

Definition at line 42 of file i810_dma.c.

#define I810_BUF_FREE   2

Definition at line 41 of file i810_dma.c.

#define I810_BUF_HARDWARE   0

Definition at line 43 of file i810_dma.c.

#define I810_BUF_MAPPED   1

Definition at line 46 of file i810_dma.c.

#define I810_BUF_UNMAPPED   0

Definition at line 45 of file i810_dma.c.

Function Documentation

int i810_driver_device_is_agp ( struct drm_device dev)

Determine if the device really is AGP or not.

All Intel graphics chipsets are treated as AGP, even if they are really PCI-e.

Parameters
devThe device to be tested.
Returns
A value of 1 is always retured to indictate every i810 is AGP.

Definition at line 1275 of file i810_dma.c.

int i810_driver_dma_quiescent ( struct drm_device dev)

Definition at line 1238 of file i810_dma.c.

void i810_driver_lastclose ( struct drm_device dev)

Definition at line 1213 of file i810_dma.c.

int i810_driver_load ( struct drm_device dev,
unsigned long  flags 
)

Definition at line 1199 of file i810_dma.c.

void i810_driver_preclose ( struct drm_device dev,
struct drm_file *  file_priv 
)

Definition at line 1218 of file i810_dma.c.

void i810_driver_reclaim_buffers ( struct drm_device dev,
struct drm_file *  file_priv 
)

Definition at line 886 of file i810_dma.c.

Variable Documentation

struct drm_ioctl_desc i810_ioctls[]
Initial value:
= {
DRM_IOCTL_DEF_DRV(I810_INIT, i810_dma_init, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_VERTEX, i810_dma_vertex, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_CLEAR, i810_clear_bufs, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_FLUSH, i810_flush_ioctl, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_GETAGE, i810_getage, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_GETBUF, i810_getbuf, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_SWAP, i810_swap_bufs, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_COPY, i810_copybuf, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_DOCOPY, i810_docopy, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_OV0INFO, i810_ov0_info, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_FSTATUS, i810_fstatus, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_OV0FLIP, i810_ov0_flip, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_MC, i810_dma_mc, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_RSTATUS, i810_rstatus, DRM_AUTH|DRM_UNLOCKED),
DRM_IOCTL_DEF_DRV(I810_FLIP, i810_flip_bufs, DRM_AUTH|DRM_UNLOCKED),
}

Definition at line 1244 of file i810_dma.c.

int i810_max_ioctl = DRM_ARRAY_SIZE(i810_ioctls)

Definition at line 1262 of file i810_dma.c.