Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ast_main.c File Reference
#include <drm/drmP.h>
#include "ast_drv.h"
#include <drm/drm_fb_helper.h>
#include <drm/drm_crtc_helper.h>
#include "ast_dram_tables.h"

Go to the source code of this file.

Functions

void ast_set_index_reg_mask (struct ast_private *ast, uint32_t base, uint8_t index, uint8_t mask, uint8_t val)
 
uint8_t ast_get_index_reg (struct ast_private *ast, uint32_t base, uint8_t index)
 
uint8_t ast_get_index_reg_mask (struct ast_private *ast, uint32_t base, uint8_t index, uint8_t mask)
 
uint32_t ast_get_max_dclk (struct drm_device *dev, int bpp)
 
int ast_framebuffer_init (struct drm_device *dev, struct ast_framebuffer *ast_fb, struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object *obj)
 
int ast_driver_load (struct drm_device *dev, unsigned long flags)
 
int ast_driver_unload (struct drm_device *dev)
 
int ast_gem_create (struct drm_device *dev, u32 size, bool iskernel, struct drm_gem_object **obj)
 
int ast_dumb_create (struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)
 
int ast_dumb_destroy (struct drm_file *file, struct drm_device *dev, uint32_t handle)
 
int ast_gem_init_object (struct drm_gem_object *obj)
 
void ast_bo_unref (struct ast_bo **bo)
 
void ast_gem_free_object (struct drm_gem_object *obj)
 
int ast_dumb_mmap_offset (struct drm_file *file, struct drm_device *dev, uint32_t handle, uint64_t *offset)
 

Function Documentation

void ast_bo_unref ( struct ast_bo **  bo)

Definition at line 473 of file ast_main.c.

int ast_driver_load ( struct drm_device dev,
unsigned long  flags 
)

Definition at line 328 of file ast_main.c.

int ast_driver_unload ( struct drm_device dev)

Definition at line 397 of file ast_main.c.

int ast_dumb_create ( struct drm_file *  file,
struct drm_device dev,
struct drm_mode_create_dumb args 
)

Definition at line 435 of file ast_main.c.

int ast_dumb_destroy ( struct drm_file *  file,
struct drm_device dev,
uint32_t  handle 
)

Definition at line 460 of file ast_main.c.

int ast_dumb_mmap_offset ( struct drm_file *  file,
struct drm_device dev,
uint32_t  handle,
uint64_t offset 
)

Definition at line 501 of file ast_main.c.

int ast_framebuffer_init ( struct drm_device dev,
struct ast_framebuffer ast_fb,
struct drm_mode_fb_cmd2 mode_cmd,
struct drm_gem_object *  obj 
)

Definition at line 262 of file ast_main.c.

int ast_gem_create ( struct drm_device dev,
u32  size,
bool  iskernel,
struct drm_gem_object **  obj 
)

Definition at line 412 of file ast_main.c.

void ast_gem_free_object ( struct drm_gem_object *  obj)

Definition at line 486 of file ast_main.c.

int ast_gem_init_object ( struct drm_gem_object *  obj)

Definition at line 467 of file ast_main.c.

uint8_t ast_get_index_reg ( struct ast_private ast,
uint32_t  base,
uint8_t  index 
)

Definition at line 47 of file ast_main.c.

uint8_t ast_get_index_reg_mask ( struct ast_private ast,
uint32_t  base,
uint8_t  index,
uint8_t  mask 
)

Definition at line 56 of file ast_main.c.

uint32_t ast_get_max_dclk ( struct drm_device dev,
int  bpp 
)

Definition at line 192 of file ast_main.c.

void ast_set_index_reg_mask ( struct ast_private ast,
uint32_t  base,
uint8_t  index,
uint8_t  mask,
uint8_t  val 
)

Definition at line 37 of file ast_main.c.