Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mga_dma.c File Reference
#include <drm/drmP.h>
#include <drm/mga_drm.h>
#include "mga_drv.h"

Go to the source code of this file.

Macros

#define MGA_DEFAULT_USEC_TIMEOUT   10000
 
#define MGA_FREELIST_DEBUG   0
 
#define MINIMAL_CLEANUP   0
 
#define FULL_CLEANUP   1
 
#define MGA_BUFFER_USED   (~0)
 
#define MGA_BUFFER_FREE   0
 

Functions

int mga_do_wait_for_idle (drm_mga_private_t *dev_priv)
 
void mga_do_dma_flush (drm_mga_private_t *dev_priv)
 
void mga_do_dma_wrap_start (drm_mga_private_t *dev_priv)
 
void mga_do_dma_wrap_end (drm_mga_private_t *dev_priv)
 
int mga_freelist_put (struct drm_device *dev, struct drm_buf *buf)
 
int mga_driver_load (struct drm_device *dev, unsigned long flags)
 
int mga_dma_bootstrap (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int mga_dma_init (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int mga_dma_flush (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int mga_dma_reset (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int mga_dma_buffers (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int mga_driver_unload (struct drm_device *dev)
 
void mga_driver_lastclose (struct drm_device *dev)
 
int mga_driver_dma_quiescent (struct drm_device *dev)
 

Detailed Description

DMA support for MGA G200 / G400.

Author
Rickard E. (Rik) Faith faith.nosp@m.@val.nosp@m.inux..nosp@m.com
Jeff Hartmann jhart.nosp@m.mann.nosp@m.@vali.nosp@m.nux..nosp@m.com
Keith Whitwell keith.nosp@m.@tun.nosp@m.gsten.nosp@m.grap.nosp@m.hics..nosp@m.com
Gareth Hughes garet.nosp@m.h@va.nosp@m.linux.nosp@m..com

Definition in file mga_dma.c.

Macro Definition Documentation

#define FULL_CLEANUP   1

Definition at line 46 of file mga_dma.c.

#define MGA_BUFFER_FREE   0

Definition at line 220 of file mga_dma.c.

#define MGA_BUFFER_USED   (~0)

Definition at line 219 of file mga_dma.c.

#define MGA_DEFAULT_USEC_TIMEOUT   10000

Definition at line 42 of file mga_dma.c.

#define MGA_FREELIST_DEBUG   0

Definition at line 43 of file mga_dma.c.

#define MINIMAL_CLEANUP   0

Definition at line 45 of file mga_dma.c.

Function Documentation

int mga_dma_bootstrap ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Definition at line 760 of file mga_dma.c.

int mga_dma_buffers ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Definition at line 1095 of file mga_dma.c.

int mga_dma_flush ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Definition at line 1024 of file mga_dma.c.

int mga_dma_init ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Definition at line 999 of file mga_dma.c.

int mga_dma_reset ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Definition at line 1056 of file mga_dma.c.

void mga_do_dma_flush ( drm_mga_private_t dev_priv)

Definition at line 103 of file mga_dma.c.

void mga_do_dma_wrap_end ( drm_mga_private_t dev_priv)

Definition at line 198 of file mga_dma.c.

void mga_do_dma_wrap_start ( drm_mga_private_t dev_priv)

Definition at line 158 of file mga_dma.c.

int mga_do_wait_for_idle ( drm_mga_private_t dev_priv)

Definition at line 53 of file mga_dma.c.

int mga_driver_dma_quiescent ( struct drm_device dev)

Definition at line 1150 of file mga_dma.c.

void mga_driver_lastclose ( struct drm_device dev)

Called when the last opener of the device is closed.

Definition at line 1145 of file mga_dma.c.

int mga_driver_load ( struct drm_device dev,
unsigned long  flags 
)

Definition at line 390 of file mga_dma.c.

int mga_driver_unload ( struct drm_device dev)

Called just before the module is unloaded.

Definition at line 1134 of file mga_dma.c.

int mga_freelist_put ( struct drm_device dev,
struct drm_buf *  buf 
)

Definition at line 355 of file mga_dma.c.