Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
via_drv.h File Reference
#include <drm/drm_mm.h>
#include "via_verifier.h"
#include "via_dmablit.h"

Go to the source code of this file.

Data Structures

struct  drm_via_ring_buffer
 
struct  drm_via_irq
 
struct  drm_via_private
 

Macros

#define DRIVER_AUTHOR   "Various"
 
#define DRIVER_NAME   "via"
 
#define DRIVER_DESC   "VIA Unichrome / Pro"
 
#define DRIVER_DATE   "20070202"
 
#define DRIVER_MAJOR   2
 
#define DRIVER_MINOR   11
 
#define DRIVER_PATCHLEVEL   1
 
#define VIA_PCI_BUF_SIZE   60000
 
#define VIA_FIRE_BUF_SIZE   1024
 
#define VIA_NUM_IRQS   4
 
#define VIA_BASE   ((dev_priv->mmio))
 
#define VIA_READ(reg)   DRM_READ32(VIA_BASE, reg)
 
#define VIA_WRITE(reg, val)   DRM_WRITE32(VIA_BASE, reg, val)
 
#define VIA_READ8(reg)   DRM_READ8(VIA_BASE, reg)
 
#define VIA_WRITE8(reg, val)   DRM_WRITE8(VIA_BASE, reg, val)
 

Typedefs

typedef struct drm_via_ring_buffer drm_via_ring_buffer_t
 
typedef uint32_t maskarray_t [5]
 
typedef struct drm_via_irq drm_via_irq_t
 
typedef struct drm_via_private drm_via_private_t
 

Enumerations

enum  via_family { VIA_OTHER = 0, VIA_PRO_GROUP_A, VIA_DX9_0 }
 

Functions

int via_fb_init (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int via_mem_alloc (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int via_mem_free (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int via_agp_init (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int via_map_init (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int via_decoder_futex (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int via_wait_irq (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int via_dma_blit_sync (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int via_dma_blit (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int via_driver_load (struct drm_device *dev, unsigned long chipset)
 
int via_driver_unload (struct drm_device *dev)
 
int via_init_context (struct drm_device *dev, int context)
 
int via_final_context (struct drm_device *dev, int context)
 
int via_do_cleanup_map (struct drm_device *dev)
 
u32 via_get_vblank_counter (struct drm_device *dev, int crtc)
 
int via_enable_vblank (struct drm_device *dev, int crtc)
 
void via_disable_vblank (struct drm_device *dev, int crtc)
 
irqreturn_t via_driver_irq_handler (DRM_IRQ_ARGS)
 
void via_driver_irq_preinstall (struct drm_device *dev)
 
int via_driver_irq_postinstall (struct drm_device *dev)
 
void via_driver_irq_uninstall (struct drm_device *dev)
 
int via_dma_cleanup (struct drm_device *dev)
 
void via_init_command_verifier (void)
 
int via_driver_dma_quiescent (struct drm_device *dev)
 
void via_init_futex (drm_via_private_t *dev_priv)
 
void via_cleanup_futex (drm_via_private_t *dev_priv)
 
void via_release_futex (drm_via_private_t *dev_priv, int context)
 
void via_reclaim_buffers_locked (struct drm_device *dev, struct drm_file *file_priv)
 
void via_lastclose (struct drm_device *dev)
 
void via_dmablit_handler (struct drm_device *dev, int engine, int from_irq)
 
void via_init_dmablit (struct drm_device *dev)
 

Variables

struct drm_ioctl_desc via_ioctls []
 
int via_max_ioctl
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "Various"

Definition at line 28 of file via_drv.h.

#define DRIVER_DATE   "20070202"

Definition at line 32 of file via_drv.h.

#define DRIVER_DESC   "VIA Unichrome / Pro"

Definition at line 31 of file via_drv.h.

#define DRIVER_MAJOR   2

Definition at line 34 of file via_drv.h.

#define DRIVER_MINOR   11

Definition at line 35 of file via_drv.h.

#define DRIVER_NAME   "via"

Definition at line 30 of file via_drv.h.

#define DRIVER_PATCHLEVEL   1

Definition at line 36 of file via_drv.h.

#define VIA_BASE   ((dev_priv->mmio))

Definition at line 110 of file via_drv.h.

#define VIA_FIRE_BUF_SIZE   1024

Definition at line 43 of file via_drv.h.

#define VIA_NUM_IRQS   4

Definition at line 44 of file via_drv.h.

#define VIA_PCI_BUF_SIZE   60000

Definition at line 42 of file via_drv.h.

#define VIA_READ (   reg)    DRM_READ32(VIA_BASE, reg)

Definition at line 112 of file via_drv.h.

#define VIA_READ8 (   reg)    DRM_READ8(VIA_BASE, reg)

Definition at line 114 of file via_drv.h.

#define VIA_WRITE (   reg,
  val 
)    DRM_WRITE32(VIA_BASE, reg, val)

Definition at line 113 of file via_drv.h.

#define VIA_WRITE8 (   reg,
  val 
)    DRM_WRITE8(VIA_BASE, reg, val)

Definition at line 115 of file via_drv.h.

Typedef Documentation

typedef uint32_t maskarray_t[5]

Definition at line 51 of file via_drv.h.

Enumeration Type Documentation

enum via_family
Enumerator:
VIA_OTHER 
VIA_PRO_GROUP_A 
VIA_DX9_0 

Definition at line 103 of file via_drv.h.

Function Documentation

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

Definition at line 40 of file via_mm.c.

void via_cleanup_futex ( drm_via_private_t dev_priv)

Definition at line 44 of file via_video.c.

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

Definition at line 68 of file via_video.c.

void via_disable_vblank ( struct drm_device dev,
int  crtc 
)

Definition at line 192 of file via_irq.c.

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

Definition at line 800 of file via_dmablit.c.

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

Definition at line 776 of file via_dmablit.c.

int via_dma_cleanup ( struct drm_device dev)

Definition at line 155 of file via_dma.c.

void via_dmablit_handler ( struct drm_device dev,
int  engine,
int  from_irq 
)

Definition at line 315 of file via_dmablit.c.

int via_do_cleanup_map ( struct drm_device dev)

Definition at line 71 of file via_map.c.

int via_driver_dma_quiescent ( struct drm_device dev)

Definition at line 311 of file via_dma.c.

irqreturn_t via_driver_irq_handler ( DRM_IRQ_ARGS  )

Definition at line 107 of file via_irq.c.

int via_driver_irq_postinstall ( struct drm_device dev)

Definition at line 310 of file via_irq.c.

void via_driver_irq_preinstall ( struct drm_device dev)

Definition at line 261 of file via_irq.c.

void via_driver_irq_uninstall ( struct drm_device dev)

Definition at line 330 of file via_irq.c.

int via_driver_load ( struct drm_device dev,
unsigned long  chipset 
)

Definition at line 94 of file via_map.c.

int via_driver_unload ( struct drm_device dev)

Definition at line 119 of file via_map.c.

int via_enable_vblank ( struct drm_device dev,
int  crtc 
)

Definition at line 173 of file via_irq.c.

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

Definition at line 56 of file via_mm.c.

int via_final_context ( struct drm_device dev,
int  context 
)

Definition at line 74 of file via_mm.c.

u32 via_get_vblank_counter ( struct drm_device dev,
int  crtc 
)

Definition at line 98 of file via_irq.c.

void via_init_command_verifier ( void  )

Definition at line 1102 of file via_verifier.c.

int via_init_context ( struct drm_device dev,
int  context 
)
void via_init_dmablit ( struct drm_device dev)

Definition at line 542 of file via_dmablit.c.

void via_init_futex ( drm_via_private_t dev_priv)

Definition at line 32 of file via_video.c.

void via_lastclose ( struct drm_device dev)

Definition at line 91 of file via_mm.c.

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

Definition at line 78 of file via_map.c.

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

Definition at line 110 of file via_mm.c.

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

Definition at line 187 of file via_mm.c.

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

Definition at line 212 of file via_mm.c.

void via_release_futex ( drm_via_private_t dev_priv,
int  context 
)

Definition at line 48 of file via_video.c.

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

Definition at line 349 of file via_irq.c.

Variable Documentation

struct drm_ioctl_desc via_ioctls[]

Definition at line 723 of file via_dma.c.

int via_max_ioctl

Definition at line 740 of file via_dma.c.