Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mgag200_mode.c File Reference
#include <linux/delay.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include "mgag200_drv.h"

Go to the source code of this file.

Macros

#define MGAG200_LUT_SIZE   256
 

Functions

void mga_set_start_address (struct drm_crtc *crtc, unsigned offset)
 
void mga_crtc_fb_gamma_set (struct drm_crtc *crtc, u16 red, u16 green, u16 blue, int regno)
 
void mga_crtc_fb_gamma_get (struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, int regno)
 
void mga_encoder_destroy (struct drm_encoder *encoder)
 
struct drm_encodermga_connector_best_encoder (struct drm_connector *connector)
 
int mgag200_modeset_init (struct mga_device *mdev)
 
void mgag200_modeset_fini (struct mga_device *mdev)
 

Variables

struct drm_connector_helper_funcs mga_vga_connector_helper_funcs
 
struct drm_connector_funcs mga_vga_connector_funcs
 

Macro Definition Documentation

#define MGAG200_LUT_SIZE   256

Definition at line 21 of file mgag200_mode.c.

Function Documentation

struct drm_encoder* mga_connector_best_encoder ( struct drm_connector connector)
read

Definition at line 1421 of file mgag200_mode.c.

void mga_crtc_fb_gamma_get ( struct drm_crtc crtc,
u16 red,
u16 green,
u16 blue,
int  regno 
)

Gets the color ramps on behalf of fbcon

Definition at line 1303 of file mgag200_mode.c.

void mga_crtc_fb_gamma_set ( struct drm_crtc crtc,
u16  red,
u16  green,
u16  blue,
int  regno 
)

Sets the color ramps on behalf of fbcon

Definition at line 1292 of file mgag200_mode.c.

void mga_encoder_destroy ( struct drm_encoder encoder)

Definition at line 1352 of file mgag200_mode.c.

void mga_set_start_address ( struct drm_crtc crtc,
unsigned  offset 
)

Definition at line 661 of file mgag200_mode.c.

void mgag200_modeset_fini ( struct mga_device mdev)

Definition at line 1530 of file mgag200_mode.c.

int mgag200_modeset_init ( struct mga_device mdev)

Definition at line 1492 of file mgag200_mode.c.

Variable Documentation

struct drm_connector_funcs mga_vga_connector_funcs
Initial value:
= {
.detect = mga_vga_detect,
.destroy = mga_connector_destroy,
}

Definition at line 1461 of file mgag200_mode.c.

struct drm_connector_helper_funcs mga_vga_connector_helper_funcs
Initial value:
= {
.get_modes = mga_vga_get_modes,
.mode_valid = mga_vga_mode_valid,
.best_encoder = mga_connector_best_encoder,
}

Definition at line 1455 of file mgag200_mode.c.