Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
nvd0_display.c File Reference
#include <linux/dma-mapping.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nouveau_gem.h"
#include "nouveau_connector.h"
#include "nouveau_encoder.h"
#include "nouveau_crtc.h"
#include "nouveau_fence.h"
#include "nv50_display.h"
#include <core/gpuobj.h>
#include <subdev/timer.h>
#include <subdev/bar.h>
#include <subdev/fb.h>

Go to the source code of this file.

Data Structures

struct  evo
 
struct  nvd0_display
 

Macros

#define EVO_DMA_NR   9
 
#define EVO_MASTER   (0x00)
 
#define EVO_FLIP(c)   (0x01 + (c))
 
#define EVO_OVLY(c)   (0x05 + (c))
 
#define EVO_OIMM(c)   (0x09 + (c))
 
#define EVO_CURS(c)   (0x0d + (c))
 
#define EVO_SYNC(c, o)   ((c) * 0x0100 + (o))
 
#define EVO_MAST_NTFY   EVO_SYNC( 0, 0x00)
 
#define EVO_FLIP_SEM0(c)   EVO_SYNC((c), 0x00)
 
#define EVO_FLIP_SEM1(c)   EVO_SYNC((c), 0x10)
 
#define evo_mthd(p, m, s)   *((p)++) = (((s) << 18) | (m))
 
#define evo_data(p, d)   *((p)++) = (d)
 

Functions

struct nouveau_bonvd0_display_crtc_sema (struct drm_device *dev, int crtc)
 
void nvd0_display_flip_stop (struct drm_crtc *crtc)
 
int nvd0_display_flip_next (struct drm_crtc *crtc, struct drm_framebuffer *fb, struct nouveau_channel *chan, u32 swap_interval)
 
void nvd0_display_intr (struct drm_device *dev)
 
void nvd0_display_fini (struct drm_device *dev)
 
int nvd0_display_init (struct drm_device *dev)
 
void nvd0_display_destroy (struct drm_device *dev)
 
int nvd0_display_create (struct drm_device *dev)
 

Macro Definition Documentation

#define EVO_CURS (   c)    (0x0d + (c))

Definition at line 51 of file nvd0_display.c.

#define evo_data (   p,
  d 
)    *((p)++) = (d)

Definition at line 140 of file nvd0_display.c.

#define EVO_DMA_NR   9

Definition at line 45 of file nvd0_display.c.

#define EVO_FLIP (   c)    (0x01 + (c))

Definition at line 48 of file nvd0_display.c.

#define EVO_FLIP_SEM0 (   c)    EVO_SYNC((c), 0x00)

Definition at line 56 of file nvd0_display.c.

#define EVO_FLIP_SEM1 (   c)    EVO_SYNC((c), 0x10)

Definition at line 57 of file nvd0_display.c.

#define EVO_MAST_NTFY   EVO_SYNC( 0, 0x00)

Definition at line 55 of file nvd0_display.c.

#define EVO_MASTER   (0x00)

Definition at line 47 of file nvd0_display.c.

#define evo_mthd (   p,
  m,
  s 
)    *((p)++) = (((s) << 18) | (m))

Definition at line 139 of file nvd0_display.c.

#define EVO_OIMM (   c)    (0x09 + (c))

Definition at line 50 of file nvd0_display.c.

#define EVO_OVLY (   c)    (0x05 + (c))

Definition at line 49 of file nvd0_display.c.

#define EVO_SYNC (   c,
 
)    ((c) * 0x0100 + (o))

Definition at line 54 of file nvd0_display.c.

Function Documentation

int nvd0_display_create ( struct drm_device dev)

Definition at line 1988 of file nvd0_display.c.

struct nouveau_bo* nvd0_display_crtc_sema ( struct drm_device dev,
int  crtc 
)
read

Definition at line 257 of file nvd0_display.c.

void nvd0_display_destroy ( struct drm_device dev)

Definition at line 1968 of file nvd0_display.c.

void nvd0_display_fini ( struct drm_device dev)

Definition at line 1871 of file nvd0_display.c.

int nvd0_display_flip_next ( struct drm_crtc crtc,
struct drm_framebuffer fb,
struct nouveau_channel chan,
u32  swap_interval 
)

Definition at line 285 of file nvd0_display.c.

void nvd0_display_flip_stop ( struct drm_crtc crtc)

Definition at line 263 of file nvd0_display.c.

int nvd0_display_init ( struct drm_device dev)

Definition at line 1888 of file nvd0_display.c.

void nvd0_display_intr ( struct drm_device dev)

Definition at line 1812 of file nvd0_display.c.