Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
nouveau_display.c File Reference
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include "nouveau_fbcon.h"
#include "nouveau_hw.h"
#include "nouveau_crtc.h"
#include "nouveau_dma.h"
#include "nouveau_gem.h"
#include "nouveau_connector.h"
#include "nv50_display.h"
#include "nouveau_fence.h"
#include <subdev/bios/gpio.h>
#include <subdev/gpio.h>
#include <engine/disp.h>

Go to the source code of this file.

Data Structures

struct  nouveau_drm_prop_enum_list
 

Macros

#define PROP_ENUM(p, gen, n, list)
 

Functions

int nouveau_framebuffer_init (struct drm_device *dev, struct nouveau_framebuffer *nv_fb, struct drm_mode_fb_cmd2 *mode_cmd, struct nouveau_bo *nvbo)
 
int nouveau_display_init (struct drm_device *dev)
 
void nouveau_display_fini (struct drm_device *dev)
 
int nouveau_display_create (struct drm_device *dev)
 
void nouveau_display_destroy (struct drm_device *dev)
 
int nouveau_display_suspend (struct drm_device *dev)
 
void nouveau_display_resume (struct drm_device *dev)
 
int nouveau_vblank_enable (struct drm_device *dev, int crtc)
 
void nouveau_vblank_disable (struct drm_device *dev, int crtc)
 
int nouveau_crtc_page_flip (struct drm_crtc *crtc, struct drm_framebuffer *fb, struct drm_pending_vblank_event *event)
 
int nouveau_finish_page_flip (struct nouveau_channel *chan, struct nouveau_page_flip_state *ps)
 
int nouveau_flip_complete (void *data)
 
int nouveau_display_dumb_create (struct drm_file *file_priv, struct drm_device *dev, struct drm_mode_create_dumb *args)
 
int nouveau_display_dumb_destroy (struct drm_file *file_priv, struct drm_device *dev, uint32_t handle)
 
int nouveau_display_dumb_map_offset (struct drm_file *file_priv, struct drm_device *dev, uint32_t handle, uint64_t *poffset)
 

Macro Definition Documentation

#define PROP_ENUM (   p,
  gen,
  n,
  list 
)
Value:
do { \
int c = 0; \
while (l->gen_mask) { \
if (l->gen_mask & (1 << (gen))) \
c++; \
l++; \
} \
if (c) { \
l = (list); \
c = 0; \
while (p && l->gen_mask) { \
if (l->gen_mask & (1 << (gen))) { \
drm_property_add_enum(p, c, l->type, l->name); \
c++; \
} \
l++; \
} \
} \
} while(0)

Definition at line 193 of file nouveau_display.c.

Function Documentation

int nouveau_crtc_page_flip ( struct drm_crtc crtc,
struct drm_framebuffer fb,
struct drm_pending_vblank_event *  event 
)

Definition at line 622 of file nouveau_display.c.

int nouveau_display_create ( struct drm_device dev)

Definition at line 288 of file nouveau_display.c.

void nouveau_display_destroy ( struct drm_device dev)

Definition at line 396 of file nouveau_display.c.

int nouveau_display_dumb_create ( struct drm_file *  file_priv,
struct drm_device dev,
struct drm_mode_create_dumb args 
)

Definition at line 750 of file nouveau_display.c.

int nouveau_display_dumb_destroy ( struct drm_file *  file_priv,
struct drm_device dev,
uint32_t  handle 
)

Definition at line 770 of file nouveau_display.c.

int nouveau_display_dumb_map_offset ( struct drm_file *  file_priv,
struct drm_device dev,
uint32_t  handle,
uint64_t poffset 
)

Definition at line 777 of file nouveau_display.c.

void nouveau_display_fini ( struct drm_device dev)

Definition at line 251 of file nouveau_display.c.

int nouveau_display_init ( struct drm_device dev)

Definition at line 216 of file nouveau_display.c.

void nouveau_display_resume ( struct drm_device dev)

Definition at line 442 of file nouveau_display.c.

int nouveau_display_suspend ( struct drm_device dev)

Definition at line 413 of file nouveau_display.c.

int nouveau_finish_page_flip ( struct nouveau_channel chan,
struct nouveau_page_flip_state ps 
)

Definition at line 692 of file nouveau_display.c.

int nouveau_flip_complete ( void data)

Definition at line 732 of file nouveau_display.c.

int nouveau_framebuffer_init ( struct drm_device dev,
struct nouveau_framebuffer nv_fb,
struct drm_mode_fb_cmd2 mode_cmd,
struct nouveau_bo nvbo 
)

Definition at line 72 of file nouveau_display.c.

void nouveau_vblank_disable ( struct drm_device dev,
int  crtc 
)

Definition at line 511 of file nouveau_display.c.

int nouveau_vblank_enable ( struct drm_device dev,
int  crtc 
)

Definition at line 493 of file nouveau_display.c.