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

Go to the source code of this file.

Macros

#define VIA_REG_INTERRUPT   0x200
 
#define VIA_IRQ_GLOBAL   (1 << 31)
 
#define VIA_IRQ_VBLANK_ENABLE   (1 << 19)
 
#define VIA_IRQ_VBLANK_PENDING   (1 << 3)
 
#define VIA_IRQ_HQV0_ENABLE   (1 << 11)
 
#define VIA_IRQ_HQV1_ENABLE   (1 << 25)
 
#define VIA_IRQ_HQV0_PENDING   (1 << 9)
 
#define VIA_IRQ_HQV1_PENDING   (1 << 10)
 
#define VIA_IRQ_DMA0_DD_ENABLE   (1 << 20)
 
#define VIA_IRQ_DMA0_TD_ENABLE   (1 << 21)
 
#define VIA_IRQ_DMA1_DD_ENABLE   (1 << 22)
 
#define VIA_IRQ_DMA1_TD_ENABLE   (1 << 23)
 
#define VIA_IRQ_DMA0_DD_PENDING   (1 << 4)
 
#define VIA_IRQ_DMA0_TD_PENDING   (1 << 5)
 
#define VIA_IRQ_DMA1_DD_PENDING   (1 << 6)
 
#define VIA_IRQ_DMA1_TD_PENDING   (1 << 7)
 

Functions

u32 via_get_vblank_counter (struct drm_device *dev, int crtc)
 
irqreturn_t via_driver_irq_handler (DRM_IRQ_ARGS)
 
int via_enable_vblank (struct drm_device *dev, int crtc)
 
void via_disable_vblank (struct drm_device *dev, int crtc)
 
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_wait_irq (struct drm_device *dev, void *data, struct drm_file *file_priv)
 

Macro Definition Documentation

#define VIA_IRQ_DMA0_DD_ENABLE   (1 << 20)

Definition at line 52 of file via_irq.c.

#define VIA_IRQ_DMA0_DD_PENDING   (1 << 4)

Definition at line 56 of file via_irq.c.

#define VIA_IRQ_DMA0_TD_ENABLE   (1 << 21)

Definition at line 53 of file via_irq.c.

#define VIA_IRQ_DMA0_TD_PENDING   (1 << 5)

Definition at line 57 of file via_irq.c.

#define VIA_IRQ_DMA1_DD_ENABLE   (1 << 22)

Definition at line 54 of file via_irq.c.

#define VIA_IRQ_DMA1_DD_PENDING   (1 << 6)

Definition at line 58 of file via_irq.c.

#define VIA_IRQ_DMA1_TD_ENABLE   (1 << 23)

Definition at line 55 of file via_irq.c.

#define VIA_IRQ_DMA1_TD_PENDING   (1 << 7)

Definition at line 59 of file via_irq.c.

#define VIA_IRQ_GLOBAL   (1 << 31)

Definition at line 45 of file via_irq.c.

#define VIA_IRQ_HQV0_ENABLE   (1 << 11)

Definition at line 48 of file via_irq.c.

#define VIA_IRQ_HQV0_PENDING   (1 << 9)

Definition at line 50 of file via_irq.c.

#define VIA_IRQ_HQV1_ENABLE   (1 << 25)

Definition at line 49 of file via_irq.c.

#define VIA_IRQ_HQV1_PENDING   (1 << 10)

Definition at line 51 of file via_irq.c.

#define VIA_IRQ_VBLANK_ENABLE   (1 << 19)

Definition at line 46 of file via_irq.c.

#define VIA_IRQ_VBLANK_PENDING   (1 << 3)

Definition at line 47 of file via_irq.c.

#define VIA_REG_INTERRUPT   0x200

Definition at line 42 of file via_irq.c.

Function Documentation

void via_disable_vblank ( struct drm_device dev,
int  crtc 
)

Definition at line 192 of file via_irq.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_enable_vblank ( struct drm_device dev,
int  crtc 
)

Definition at line 173 of file via_irq.c.

u32 via_get_vblank_counter ( struct drm_device dev,
int  crtc 
)

Definition at line 98 of file via_irq.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.