Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
skeletonfb.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/platform_device.h>

Go to the source code of this file.

Macros

#define CNVT_TOHW(val, width)   ((((val)<<(width))+0x7FFF-(val))>>16)
 
#define xxxfb_suspend   NULL
 
#define xxxfb_resume   NULL
 

Functions

int xxxfb_init (void)
 
void xxxfb_fillrect (struct fb_info *p, const struct fb_fillrect *region)
 
void xxxfb_copyarea (struct fb_info *p, const struct fb_copyarea *area)
 
void xxxfb_imageblit (struct fb_info *p, const struct fb_image *image)
 
int xxxfb_cursor (struct fb_info *info, struct fb_cursor *cursor)
 
void xxxfb_rotate (struct fb_info *info, int angle)
 
int xxxfb_sync (struct fb_info *info)
 
int __init xxxfb_setup (char *options)
 
 module_init (xxxfb_init)
 
 module_exit (xxxfb_exit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CNVT_TOHW (   val,
  width 
)    ((((val)<<(width))+0x7FFF-(val))>>16)
#define xxxfb_resume   NULL

Definition at line 966 of file skeletonfb.c.

#define xxxfb_suspend   NULL

Definition at line 965 of file skeletonfb.c.

Function Documentation

module_exit ( xxxfb_exit  )
module_init ( xxxfb_init  )
MODULE_LICENSE ( "GPL"  )
void xxxfb_copyarea ( struct fb_info p,
const struct fb_copyarea area 
)
xxxfb_copyarea - REQUIRED function. Can use generic routines if
                 non acclerated hardware and packed pixel based.
                 Copies one area of the screen to another area.

@info: frame buffer structure that represents a single frame buffer
@area: Structure providing the data to copy the framebuffer contents
   from one region to another.

This drawing operation copies a rectangular area from one area of the

screen to another area.

Definition at line 519 of file skeletonfb.c.

int xxxfb_cursor ( struct fb_info info,
struct fb_cursor cursor 
)

xxxfb_cursor - OPTIONAL. If your hardware lacks support for a cursor, leave this field NULL.

: frame buffer structure that represents a single frame buffer : structure defining the cursor to draw.

This operation is used to set or alter the properities of the

cursor.

Returns negative errno on error, or zero on success.

Definition at line 580 of file skeletonfb.c.

void xxxfb_fillrect ( struct fb_info p,
const struct fb_fillrect region 
)
xxxfb_fillrect - REQUIRED function. Can use generic routines if 
     non acclerated hardware and packed pixel based.
     Draws a rectangle on the screen.       

@info: frame buffer structure that represents a single frame buffer

: The structure representing the rectangular region we wish to draw to.

This drawing operation places/removes a retangle on the screen depending on the rastering operation with the value of color which is in the current color depth format.

Definition at line 493 of file skeletonfb.c.

void xxxfb_imageblit ( struct fb_info p,
const struct fb_image image 
)
xxxfb_imageblit - REQUIRED function. Can use generic routines if
                  non acclerated hardware and packed pixel based.
                  Copies a image from system memory to the screen. 

@info: frame buffer structure that represents a single frame buffer

structure defining the image.

This drawing operation draws a image on the screen. It can be a 

mono image (needed for font handling) or a color image (needed for tux).

Definition at line 544 of file skeletonfb.c.

static int __init xxxfb_init ( void  )

Definition at line 996 of file skeletonfb.c.

void xxxfb_rotate ( struct fb_info info,
int  angle 
)

xxxfb_rotate - NOT a required function. If your hardware supports rotation the whole screen then you would provide a hook for this.

: frame buffer structure that represents a single frame buffer : The angle we rotate the screen.

This operation is used to set or alter the properities of the

cursor.

Definition at line 627 of file skeletonfb.c.

int __init xxxfb_setup ( char options)

Definition at line 990 of file skeletonfb.c.

int xxxfb_sync ( struct fb_info info)

xxxfb_sync - NOT a required function. Normally the accel engine for a graphics card take a specific amount of time. Often we have to wait for the accelerator to finish its operation before we can write to the framebuffer so we can have consistent display output.

: frame buffer structure that represents a single frame buffer

If the driver has implemented its own hardware-based drawing function, implementing this function is highly recommended.

Definition at line 644 of file skeletonfb.c.