Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
fb.h File Reference
#include <linux/kgdb.h>
#include <uapi/linux/fb.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/workqueue.h>
#include <linux/notifier.h>
#include <linux/list.h>
#include <linux/backlight.h>
#include <linux/slab.h>
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  fb_chroma
 
struct  fb_monspecs
 
struct  fb_cmap_user
 
struct  fb_image_user
 
struct  fb_cursor_user
 
struct  fb_event
 
struct  fb_blit_caps
 
struct  fb_pixmap
 
struct  fb_ops
 
struct  fb_info
 
struct  fb_info::apertures_struct
 
struct  fb_info::apertures_struct::aperture
 
struct  fb_videomode
 
struct  fb_modelist
 

Macros

#define FBIO_CURSOR   _IOWR('F', 0x08, struct fb_cursor_user)
 
#define FB_DPMS_ACTIVE_OFF   1
 
#define FB_DPMS_SUSPEND   2
 
#define FB_DPMS_STANDBY   4
 
#define FB_DISP_DDI   1
 
#define FB_DISP_ANA_700_300   2
 
#define FB_DISP_ANA_714_286   4
 
#define FB_DISP_ANA_1000_400   8
 
#define FB_DISP_ANA_700_000   16
 
#define FB_DISP_MONO   32
 
#define FB_DISP_RGB   64
 
#define FB_DISP_MULTI   128
 
#define FB_DISP_UNKNOWN   256
 
#define FB_SIGNAL_NONE   0
 
#define FB_SIGNAL_BLANK_BLANK   1
 
#define FB_SIGNAL_SEPARATE   2
 
#define FB_SIGNAL_COMPOSITE   4
 
#define FB_SIGNAL_SYNC_ON_GREEN   8
 
#define FB_SIGNAL_SERRATION_ON   16
 
#define FB_MISC_PRIM_COLOR   1
 
#define FB_MISC_1ST_DETAIL   2 /* First Detailed Timing is preferred */
 
#define FB_EVENT_MODE_CHANGE   0x01
 
#define FB_EVENT_SUSPEND   0x02
 
#define FB_EVENT_RESUME   0x03
 
#define FB_EVENT_MODE_DELETE   0x04
 
#define FB_EVENT_FB_REGISTERED   0x05
 
#define FB_EVENT_FB_UNREGISTERED   0x06
 
#define FB_EVENT_GET_CONSOLE_MAP   0x07
 
#define FB_EVENT_SET_CONSOLE_MAP   0x08
 
#define FB_EVENT_BLANK   0x09
 
#define FB_EVENT_NEW_MODELIST   0x0A
 
#define FB_EVENT_MODE_CHANGE_ALL   0x0B
 
#define FB_EVENT_CONBLANK   0x0C
 
#define FB_EVENT_GET_REQ   0x0D
 
#define FB_EVENT_FB_UNBIND   0x0E
 
#define FB_EVENT_REMAP_ALL_CONSOLE   0x0F
 
#define FB_EARLY_EVENT_BLANK   0x10
 
#define FB_R_EARLY_EVENT_BLANK   0x11
 
#define FB_PIXMAP_DEFAULT   1 /* used internally by fbcon */
 
#define FB_PIXMAP_SYSTEM   2 /* memory is in system RAM */
 
#define FB_PIXMAP_IO   4 /* memory is iomapped */
 
#define FB_PIXMAP_SYNC   256 /* set if GPU can DMA */
 
#define FBINFO_MODULE   0x0001 /* Low-level driver is a module */
 
#define FBINFO_HWACCEL_DISABLED   0x0002
 
#define FBINFO_VIRTFB   0x0004 /* FB is System RAM, not device. */
 
#define FBINFO_PARTIAL_PAN_OK   0x0040 /* otw use pan only for double-buffering */
 
#define FBINFO_READS_FAST   0x0080 /* soft-copy faster than rendering */
 
#define FBINFO_HWACCEL_NONE   0x0000
 
#define FBINFO_HWACCEL_COPYAREA   0x0100 /* required */
 
#define FBINFO_HWACCEL_FILLRECT   0x0200 /* required */
 
#define FBINFO_HWACCEL_IMAGEBLIT   0x0400 /* required */
 
#define FBINFO_HWACCEL_ROTATE   0x0800 /* optional */
 
#define FBINFO_HWACCEL_XPAN   0x1000 /* optional */
 
#define FBINFO_HWACCEL_YPAN   0x2000 /* optional */
 
#define FBINFO_HWACCEL_YWRAP   0x4000 /* optional */
 
#define FBINFO_MISC_USEREVENT
 
#define FBINFO_MISC_TILEBLITTING   0x20000 /* use tile blitting */
 
#define FBINFO_MISC_ALWAYS_SETPAR   0x40000
 
#define FBINFO_MISC_FIRMWARE   0x80000
 
#define FBINFO_FOREIGN_ENDIAN   0x100000
 
#define FBINFO_BE_MATH   0x100000
 
#define FBINFO_CAN_FORCE_OUTPUT   0x200000
 
#define FBINFO_STATE_RUNNING   0
 
#define FBINFO_STATE_SUSPENDED   1
 
#define FBINFO_DEFAULT   0
 
#define FBINFO_FLAG_MODULE   FBINFO_MODULE
 
#define FBINFO_FLAG_DEFAULT   FBINFO_DEFAULT
 
#define STUPID_ACCELF_TEXT_SHIT
 
#define fb_readb(addr)   (*(volatile u8 *) (addr))
 
#define fb_readw(addr)   (*(volatile u16 *) (addr))
 
#define fb_readl(addr)   (*(volatile u32 *) (addr))
 
#define fb_readq(addr)   (*(volatile u64 *) (addr))
 
#define fb_writeb(b, addr)   (*(volatile u8 *) (addr) = (b))
 
#define fb_writew(b, addr)   (*(volatile u16 *) (addr) = (b))
 
#define fb_writel(b, addr)   (*(volatile u32 *) (addr) = (b))
 
#define fb_writeq(b, addr)   (*(volatile u64 *) (addr) = (b))
 
#define fb_memset   memset
 
#define fb_memcpy_fromfb   memcpy
 
#define fb_memcpy_tofb   memcpy
 
#define FB_LEFT_POS(p, bpp)   (fb_be_math(p) ? (32 - (bpp)) : 0)
 
#define FB_SHIFT_HIGH(p, val, bits)
 
#define FB_SHIFT_LOW(p, val, bits)
 
#define FB_MAXTIMINGS   0
 
#define FB_VSYNCTIMINGS   1
 
#define FB_HSYNCTIMINGS   2
 
#define FB_DCLKTIMINGS   3
 
#define FB_IGNOREMON   0x100
 
#define FB_MODE_IS_UNKNOWN   0
 
#define FB_MODE_IS_DETAILED   1
 
#define FB_MODE_IS_STANDARD   2
 
#define FB_MODE_IS_VESA   4
 
#define FB_MODE_IS_CALCULATED   8
 
#define FB_MODE_IS_FIRST   16
 
#define FB_MODE_IS_FROM_VAR   32
 
#define VESA_MODEDB_SIZE   34
 

Functions

int fb_register_client (struct notifier_block *nb)
 
int fb_unregister_client (struct notifier_block *nb)
 
int fb_notifier_call_chain (unsigned long val, void *v)
 
int fb_set_var (struct fb_info *info, struct fb_var_screeninfo *var)
 
int fb_pan_display (struct fb_info *info, struct fb_var_screeninfo *var)
 
int fb_blank (struct fb_info *info, int blank)
 
void cfb_fillrect (struct fb_info *info, const struct fb_fillrect *rect)
 
void cfb_copyarea (struct fb_info *info, const struct fb_copyarea *area)
 
void cfb_imageblit (struct fb_info *info, const struct fb_image *image)
 
void sys_fillrect (struct fb_info *info, const struct fb_fillrect *rect)
 
void sys_copyarea (struct fb_info *info, const struct fb_copyarea *area)
 
void sys_imageblit (struct fb_info *info, const struct fb_image *image)
 
ssize_t fb_sys_read (struct fb_info *info, char __user *buf, size_t count, loff_t *ppos)
 
ssize_t fb_sys_write (struct fb_info *info, const char __user *buf, size_t count, loff_t *ppos)
 
int register_framebuffer (struct fb_info *fb_info)
 
int unregister_framebuffer (struct fb_info *fb_info)
 
int unlink_framebuffer (struct fb_info *fb_info)
 
void remove_conflicting_framebuffers (struct apertures_struct *a, const char *name, bool primary)
 
int fb_prepare_logo (struct fb_info *fb_info, int rotate)
 
int fb_show_logo (struct fb_info *fb_info, int rotate)
 
charfb_get_buffer_offset (struct fb_info *info, struct fb_pixmap *buf, u32 size)
 
void fb_pad_unaligned_buffer (u8 *dst, u32 d_pitch, u8 *src, u32 idx, u32 height, u32 shift_high, u32 shift_low, u32 mod)
 
void fb_pad_aligned_buffer (u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch, u32 height)
 
void fb_set_suspend (struct fb_info *info, int state)
 
int fb_get_color_depth (struct fb_var_screeninfo *var, struct fb_fix_screeninfo *fix)
 
int fb_get_options (char *name, char **option)
 
int fb_new_modelist (struct fb_info *info)
 
int lock_fb_info (struct fb_info *info)
 
void fb_deferred_io_init (struct fb_info *info)
 
void fb_deferred_io_open (struct fb_info *info, struct inode *inode, struct file *file)
 
void fb_deferred_io_cleanup (struct fb_info *info)
 
int fb_deferred_io_fsync (struct file *file, loff_t start, loff_t end, int datasync)
 
struct fb_infoframebuffer_alloc (size_t size, struct device *dev)
 
void framebuffer_release (struct fb_info *info)
 
int fb_init_device (struct fb_info *fb_info)
 
void fb_cleanup_device (struct fb_info *head)
 
void fb_bl_default_curve (struct fb_info *fb_info, u8 off, u8 min, u8 max)
 
int fbmon_dpms (const struct fb_info *fb_info)
 
int fb_get_mode (int flags, u32 val, struct fb_var_screeninfo *var, struct fb_info *info)
 
int fb_validate_mode (const struct fb_var_screeninfo *var, struct fb_info *info)
 
int fb_parse_edid (unsigned char *edid, struct fb_var_screeninfo *var)
 
const unsigned charfb_firmware_edid (struct device *device)
 
void fb_edid_to_monspecs (unsigned char *edid, struct fb_monspecs *specs)
 
void fb_edid_add_monspecs (unsigned char *edid, struct fb_monspecs *specs)
 
void fb_destroy_modedb (struct fb_videomode *modedb)
 
int fb_find_mode_cvt (struct fb_videomode *mode, int margins, int rb)
 
unsigned charfb_ddc_read (struct i2c_adapter *adapter)
 
void fb_var_to_videomode (struct fb_videomode *mode, const struct fb_var_screeninfo *var)
 
void fb_videomode_to_var (struct fb_var_screeninfo *var, const struct fb_videomode *mode)
 
int fb_mode_is_equal (const struct fb_videomode *mode1, const struct fb_videomode *mode2)
 
int fb_add_videomode (const struct fb_videomode *mode, struct list_head *head)
 
void fb_delete_videomode (const struct fb_videomode *mode, struct list_head *head)
 
struct fb_videomodefb_match_mode (const struct fb_var_screeninfo *var, struct list_head *head)
 
struct fb_videomodefb_find_best_mode (const struct fb_var_screeninfo *var, struct list_head *head)
 
struct fb_videomodefb_find_nearest_mode (const struct fb_videomode *mode, struct list_head *head)
 
void fb_destroy_modelist (struct list_head *head)
 
void fb_videomode_to_modelist (const struct fb_videomode *modedb, int num, struct list_head *head)
 
struct fb_videomodefb_find_best_display (const struct fb_monspecs *specs, struct list_head *head)
 
int fb_alloc_cmap (struct fb_cmap *cmap, int len, int transp)
 
int fb_alloc_cmap_gfp (struct fb_cmap *cmap, int len, int transp, gfp_t flags)
 
void fb_dealloc_cmap (struct fb_cmap *cmap)
 
int fb_copy_cmap (const struct fb_cmap *from, struct fb_cmap *to)
 
int fb_cmap_to_user (const struct fb_cmap *from, struct fb_cmap_user *to)
 
int fb_set_cmap (struct fb_cmap *cmap, struct fb_info *fb_info)
 
int fb_set_user_cmap (struct fb_cmap_user *cmap, struct fb_info *fb_info)
 
struct fb_cmapfb_default_cmap (int len)
 
void fb_invert_cmaps (void)
 
int fb_find_mode (struct fb_var_screeninfo *var, struct fb_info *info, const char *mode_option, const struct fb_videomode *db, unsigned int dbsize, const struct fb_videomode *default_mode, unsigned int default_bpp)
 

Variables

struct fb_inforegistered_fb [FB_MAX]
 
int num_registered_fb
 
struct classfb_class
 
const charfb_mode_option
 
struct fb_videomode vesa_modes []
 
struct fb_videomode cea_modes [64]
 

Macro Definition Documentation

#define FB_DCLKTIMINGS   3

Definition at line 690 of file fb.h.

#define FB_DISP_ANA_1000_400   8

Definition at line 31 of file fb.h.

#define FB_DISP_ANA_700_000   16

Definition at line 32 of file fb.h.

#define FB_DISP_ANA_700_300   2

Definition at line 29 of file fb.h.

#define FB_DISP_ANA_714_286   4

Definition at line 30 of file fb.h.

#define FB_DISP_DDI   1

Definition at line 28 of file fb.h.

#define FB_DISP_MONO   32

Definition at line 34 of file fb.h.

#define FB_DISP_MULTI   128

Definition at line 36 of file fb.h.

#define FB_DISP_RGB   64

Definition at line 35 of file fb.h.

#define FB_DISP_UNKNOWN   256

Definition at line 37 of file fb.h.

#define FB_DPMS_ACTIVE_OFF   1

Definition at line 24 of file fb.h.

#define FB_DPMS_STANDBY   4

Definition at line 26 of file fb.h.

#define FB_DPMS_SUSPEND   2

Definition at line 25 of file fb.h.

#define FB_EARLY_EVENT_BLANK   0x10

Definition at line 159 of file fb.h.

#define FB_EVENT_BLANK   0x09

Definition at line 144 of file fb.h.

#define FB_EVENT_CONBLANK   0x0C

Definition at line 151 of file fb.h.

#define FB_EVENT_FB_REGISTERED   0x05

Definition at line 136 of file fb.h.

#define FB_EVENT_FB_UNBIND   0x0E

Definition at line 155 of file fb.h.

#define FB_EVENT_FB_UNREGISTERED   0x06

Definition at line 138 of file fb.h.

#define FB_EVENT_GET_CONSOLE_MAP   0x07

Definition at line 140 of file fb.h.

#define FB_EVENT_GET_REQ   0x0D

Definition at line 153 of file fb.h.

#define FB_EVENT_MODE_CHANGE   0x01

Definition at line 124 of file fb.h.

#define FB_EVENT_MODE_CHANGE_ALL   0x0B

Definition at line 149 of file fb.h.

#define FB_EVENT_MODE_DELETE   0x04

Definition at line 134 of file fb.h.

#define FB_EVENT_NEW_MODELIST   0x0A

Definition at line 146 of file fb.h.

#define FB_EVENT_REMAP_ALL_CONSOLE   0x0F

Definition at line 157 of file fb.h.

#define FB_EVENT_RESUME   0x03

Definition at line 132 of file fb.h.

#define FB_EVENT_SET_CONSOLE_MAP   0x08

Definition at line 142 of file fb.h.

#define FB_EVENT_SUSPEND   0x02

Definition at line 128 of file fb.h.

#define FB_HSYNCTIMINGS   2

Definition at line 689 of file fb.h.

#define FB_IGNOREMON   0x100

Definition at line 691 of file fb.h.

#define FB_LEFT_POS (   p,
  bpp 
)    (fb_be_math(p) ? (32 - (bpp)) : 0)

Definition at line 580 of file fb.h.

#define FB_MAXTIMINGS   0

Definition at line 687 of file fb.h.

#define fb_memcpy_fromfb   memcpy

Definition at line 575 of file fb.h.

#define fb_memcpy_tofb   memcpy

Definition at line 576 of file fb.h.

#define fb_memset   memset

Definition at line 574 of file fb.h.

#define FB_MISC_1ST_DETAIL   2 /* First Detailed Timing is preferred */

Definition at line 47 of file fb.h.

#define FB_MISC_PRIM_COLOR   1

Definition at line 46 of file fb.h.

#define FB_MODE_IS_CALCULATED   8

Definition at line 697 of file fb.h.

#define FB_MODE_IS_DETAILED   1

Definition at line 694 of file fb.h.

#define FB_MODE_IS_FIRST   16

Definition at line 698 of file fb.h.

#define FB_MODE_IS_FROM_VAR   32

Definition at line 699 of file fb.h.

#define FB_MODE_IS_STANDARD   2

Definition at line 695 of file fb.h.

#define FB_MODE_IS_UNKNOWN   0

Definition at line 693 of file fb.h.

#define FB_MODE_IS_VESA   4

Definition at line 696 of file fb.h.

#define FB_PIXMAP_DEFAULT   1 /* used internally by fbcon */

Definition at line 186 of file fb.h.

#define FB_PIXMAP_IO   4 /* memory is iomapped */

Definition at line 188 of file fb.h.

#define FB_PIXMAP_SYNC   256 /* set if GPU can DMA */

Definition at line 189 of file fb.h.

#define FB_PIXMAP_SYSTEM   2 /* memory is in system RAM */

Definition at line 187 of file fb.h.

#define FB_R_EARLY_EVENT_BLANK   0x11

Definition at line 161 of file fb.h.

#define fb_readb (   addr)    (*(volatile u8 *) (addr))

Definition at line 566 of file fb.h.

#define fb_readl (   addr)    (*(volatile u32 *) (addr))

Definition at line 568 of file fb.h.

#define fb_readq (   addr)    (*(volatile u64 *) (addr))

Definition at line 569 of file fb.h.

#define fb_readw (   addr)    (*(volatile u16 *) (addr))

Definition at line 567 of file fb.h.

#define FB_SHIFT_HIGH (   p,
  val,
  bits 
)
Value:
(fb_be_math(p) ? (val) >> (bits) : \
(val) << (bits))

Definition at line 581 of file fb.h.

#define FB_SHIFT_LOW (   p,
  val,
  bits 
)
Value:
(fb_be_math(p) ? (val) << (bits) : \
(val) >> (bits))

Definition at line 583 of file fb.h.

#define FB_SIGNAL_BLANK_BLANK   1

Definition at line 40 of file fb.h.

#define FB_SIGNAL_COMPOSITE   4

Definition at line 42 of file fb.h.

#define FB_SIGNAL_NONE   0

Definition at line 39 of file fb.h.

#define FB_SIGNAL_SEPARATE   2

Definition at line 41 of file fb.h.

#define FB_SIGNAL_SERRATION_ON   16

Definition at line 44 of file fb.h.

#define FB_SIGNAL_SYNC_ON_GREEN   8

Definition at line 43 of file fb.h.

#define FB_VSYNCTIMINGS   1

Definition at line 688 of file fb.h.

#define fb_writeb (   b,
  addr 
)    (*(volatile u8 *) (addr) = (b))

Definition at line 570 of file fb.h.

#define fb_writel (   b,
  addr 
)    (*(volatile u32 *) (addr) = (b))

Definition at line 572 of file fb.h.

#define fb_writeq (   b,
  addr 
)    (*(volatile u64 *) (addr) = (b))

Definition at line 573 of file fb.h.

#define fb_writew (   b,
  addr 
)    (*(volatile u16 *) (addr) = (b))

Definition at line 571 of file fb.h.

#define FBINFO_BE_MATH   0x100000

Definition at line 438 of file fb.h.

#define FBINFO_CAN_FORCE_OUTPUT   0x200000

Definition at line 442 of file fb.h.

#define FBINFO_DEFAULT   0

Definition at line 515 of file fb.h.

#define FBINFO_FLAG_DEFAULT   FBINFO_DEFAULT

Definition at line 520 of file fb.h.

#define FBINFO_FLAG_MODULE   FBINFO_MODULE

Definition at line 519 of file fb.h.

#define FBINFO_FOREIGN_ENDIAN   0x100000

Definition at line 432 of file fb.h.

#define FBINFO_HWACCEL_COPYAREA   0x0100 /* required */

Definition at line 404 of file fb.h.

#define FBINFO_HWACCEL_DISABLED   0x0002

Definition at line 386 of file fb.h.

#define FBINFO_HWACCEL_FILLRECT   0x0200 /* required */

Definition at line 405 of file fb.h.

#define FBINFO_HWACCEL_IMAGEBLIT   0x0400 /* required */

Definition at line 406 of file fb.h.

#define FBINFO_HWACCEL_NONE   0x0000

Definition at line 403 of file fb.h.

#define FBINFO_HWACCEL_ROTATE   0x0800 /* optional */

Definition at line 407 of file fb.h.

#define FBINFO_HWACCEL_XPAN   0x1000 /* optional */

Definition at line 408 of file fb.h.

#define FBINFO_HWACCEL_YPAN   0x2000 /* optional */

Definition at line 409 of file fb.h.

#define FBINFO_HWACCEL_YWRAP   0x4000 /* optional */

Definition at line 410 of file fb.h.

#define FBINFO_MISC_ALWAYS_SETPAR   0x40000

Definition at line 425 of file fb.h.

#define FBINFO_MISC_FIRMWARE   0x80000

Definition at line 428 of file fb.h.

#define FBINFO_MISC_TILEBLITTING   0x20000 /* use tile blitting */

Definition at line 413 of file fb.h.

#define FBINFO_MISC_USEREVENT
Value:
0x10000 /* event request
from userspace */

Definition at line 412 of file fb.h.

#define FBINFO_MODULE   0x0001 /* Low-level driver is a module */

Definition at line 385 of file fb.h.

#define FBINFO_PARTIAL_PAN_OK   0x0040 /* otw use pan only for double-buffering */

Definition at line 394 of file fb.h.

#define FBINFO_READS_FAST   0x0080 /* soft-copy faster than rendering */

Definition at line 395 of file fb.h.

#define FBINFO_STATE_RUNNING   0

Definition at line 485 of file fb.h.

#define FBINFO_STATE_SUSPENDED   1

Definition at line 486 of file fb.h.

#define FBINFO_VIRTFB   0x0004 /* FB is System RAM, not device. */

Definition at line 393 of file fb.h.

#define FBIO_CURSOR   _IOWR('F', 0x08, struct fb_cursor_user)

Definition at line 7 of file fb.h.

#define STUPID_ACCELF_TEXT_SHIT

Definition at line 528 of file fb.h.

#define VESA_MODEDB_SIZE   34

Definition at line 717 of file fb.h.

Function Documentation

void cfb_copyarea ( struct fb_info info,
const struct fb_copyarea area 
)

Definition at line 369 of file cfbcopyarea.c.

void cfb_fillrect ( struct fb_info info,
const struct fb_fillrect rect 
)

Definition at line 278 of file cfbfillrect.c.

void cfb_imageblit ( struct fb_info info,
const struct fb_image image 
)

Definition at line 265 of file cfbimgblt.c.

int fb_add_videomode ( const struct fb_videomode mode,
struct list_head head 
)

fb_add_videomode - adds videomode entry to modelist : videomode to add : struct list_head of modelist

NOTES: Will only add unmatched mode entries

Definition at line 982 of file modedb.c.

int fb_alloc_cmap ( struct fb_cmap cmap,
int  len,
int  transp 
)

Definition at line 131 of file fbcmap.c.

int fb_alloc_cmap_gfp ( struct fb_cmap cmap,
int  len,
int  transp,
gfp_t  flags 
)

fb_alloc_cmap - allocate a colormap : frame buffer colormap structure : length of : boolean, 1 if there is transparency, 0 otherwise : flags for kmalloc memory allocation

Allocates memory for a colormap . is the number of entries in the palette.

Returns negative errno on error, or zero on success.

Definition at line 92 of file fbcmap.c.

void fb_bl_default_curve ( struct fb_info fb_info,
u8  off,
u8  min,
u8  max 
)
int fb_blank ( struct fb_info info,
int  blank 
)

Definition at line 1047 of file fbmem.c.

void fb_cleanup_device ( struct fb_info head)

Definition at line 539 of file fbsysfs.c.

int fb_cmap_to_user ( const struct fb_cmap from,
struct fb_cmap_user to 
)

Definition at line 188 of file fbcmap.c.

int fb_copy_cmap ( const struct fb_cmap from,
struct fb_cmap to 
)

fb_copy_cmap - copy a colormap : frame buffer colormap structure : frame buffer colormap structure

Copy contents of colormap from to .

Definition at line 164 of file fbcmap.c.

unsigned char* fb_ddc_read ( struct i2c_adapter adapter)

Definition at line 54 of file fb_ddc.c.

void fb_dealloc_cmap ( struct fb_cmap cmap)

fb_dealloc_cmap - deallocate a colormap : frame buffer colormap structure

Deallocates a colormap that was previously allocated with fb_alloc_cmap().

Definition at line 145 of file fbcmap.c.

struct fb_cmap* fb_default_cmap ( int  len)
read

fb_default_cmap - get default colormap : size of palette for a depth

Gets the default colormap for a specific screen depth. is the size of the palette for a particular screen depth.

Returns pointer to a frame buffer colormap structure.

Definition at line 312 of file fbcmap.c.

void fb_deferred_io_cleanup ( struct fb_info info)

Definition at line 225 of file fb_defio.c.

int fb_deferred_io_fsync ( struct file file,
loff_t  start,
loff_t  end,
int  datasync 
)

Definition at line 69 of file fb_defio.c.

void fb_deferred_io_init ( struct fb_info info)

Definition at line 203 of file fb_defio.c.

void fb_deferred_io_open ( struct fb_info info,
struct inode inode,
struct file file 
)

Definition at line 217 of file fb_defio.c.

void fb_delete_videomode ( const struct fb_videomode mode,
struct list_head head 
)

fb_delete_videomode - removed videomode entry from modelist : videomode to remove : struct list_head of modelist

NOTES: Will remove all matching mode entries

Definition at line 1017 of file modedb.c.

void fb_destroy_modedb ( struct fb_videomode modedb)

Definition at line 1388 of file fbmon.c.

void fb_destroy_modelist ( struct list_head head)

fb_destroy_modelist - destroy modelist : struct list_head of modelist

Definition at line 1038 of file modedb.c.

void fb_edid_add_monspecs ( unsigned char edid,
struct fb_monspecs specs 
)

Definition at line 1385 of file fbmon.c.

void fb_edid_to_monspecs ( unsigned char edid,
struct fb_monspecs specs 
)

Definition at line 1381 of file fbmon.c.

struct fb_videomode* fb_find_best_display ( const struct fb_monspecs specs,
struct list_head head 
)
read

Definition at line 1068 of file modedb.c.

struct fb_videomode* fb_find_best_mode ( const struct fb_var_screeninfo var,
struct list_head head 
)
read

Definition at line 879 of file modedb.c.

int fb_find_mode ( struct fb_var_screeninfo var,
struct fb_info info,
const char mode_option,
const struct fb_videomode db,
unsigned int  dbsize,
const struct fb_videomode default_mode,
unsigned int  default_bpp 
)

Definition at line 564 of file modedb.c.

int fb_find_mode_cvt ( struct fb_videomode mode,
int  margins,
int  rb 
)

Definition at line 305 of file fbcvt.c.

struct fb_videomode* fb_find_nearest_mode ( const struct fb_videomode mode,
struct list_head head 
)
read

fb_find_nearest_mode - find closest videomode

: pointer to struct fb_videomode : pointer to modelist

Finds best matching videomode, smaller or greater in dimension. If more than 1 videomode is found, will return the videomode with the closest refresh rate.

Definition at line 917 of file modedb.c.

const unsigned char* fb_firmware_edid ( struct device device)

Definition at line 1486 of file fbmon.c.

char* fb_get_buffer_offset ( struct fb_info info,
struct fb_pixmap buf,
u32  size 
)

Definition at line 154 of file fbmem.c.

int fb_get_color_depth ( struct fb_var_screeninfo var,
struct fb_fix_screeninfo fix 
)

Definition at line 88 of file fbmem.c.

int fb_get_mode ( int  flags,
u32  val,
struct fb_var_screeninfo var,
struct fb_info info 
)

Definition at line 1391 of file fbmon.c.

int fb_get_options ( char name,
char **  option 
)

Definition at line 1878 of file fbmem.c.

int fb_init_device ( struct fb_info fb_info)

Definition at line 515 of file fbsysfs.c.

void fb_invert_cmaps ( void  )

fb_invert_cmaps - invert all defaults colormaps

Invert all default colormaps.

Definition at line 331 of file fbcmap.c.

struct fb_videomode* fb_match_mode ( const struct fb_var_screeninfo var,
struct list_head head 
)
read

Definition at line 957 of file modedb.c.

int fb_mode_is_equal ( const struct fb_videomode mode1,
const struct fb_videomode mode2 
)

fb_mode_is_equal - compare 2 videomodes : first videomode : second videomode

RETURNS: 1 if equal, 0 if not

Definition at line 846 of file modedb.c.

int fb_new_modelist ( struct fb_info info)

Definition at line 1831 of file fbmem.c.

int fb_notifier_call_chain ( unsigned long  val,
void v 
)

fb_notifier_call_chain - notify clients of fb_events

Definition at line 43 of file fb_notify.c.

void fb_pad_aligned_buffer ( u8 dst,
u32  d_pitch,
u8 src,
u32  s_pitch,
u32  height 
)

Definition at line 114 of file fbmem.c.

void fb_pad_unaligned_buffer ( u8 dst,
u32  d_pitch,
u8 src,
u32  idx,
u32  height,
u32  shift_high,
u32  shift_low,
u32  mod 
)

Definition at line 120 of file fbmem.c.

int fb_pan_display ( struct fb_info info,
struct fb_var_screeninfo var 
)

Definition at line 877 of file fbmem.c.

int fb_parse_edid ( unsigned char edid,
struct fb_var_screeninfo var 
)

Definition at line 1377 of file fbmon.c.

int fb_prepare_logo ( struct fb_info fb_info,
int  rotate 
)

Definition at line 669 of file fbmem.c.

int fb_register_client ( struct notifier_block nb)

fb_register_client - register a client notifier : notifier block to callback on events

Definition at line 23 of file fb_notify.c.

int fb_set_cmap ( struct fb_cmap cmap,
struct fb_info info 
)

fb_set_cmap - set the colormap : frame buffer colormap structure : frame buffer info structure

Sets the colormap for a screen of device .

Returns negative errno on error, or zero on success.

Definition at line 227 of file fbcmap.c.

void fb_set_suspend ( struct fb_info info,
int  state 
)

fb_set_suspend - low level driver signals suspend : framebuffer affected : 0 = resuming, !=0 = suspending

This is meant to be used by low level drivers to signal suspend/resume to the core & clients. It must be called with the console semaphore held

Definition at line 1775 of file fbmem.c.

int fb_set_user_cmap ( struct fb_cmap_user cmap,
struct fb_info fb_info 
)

Definition at line 263 of file fbcmap.c.

int fb_set_var ( struct fb_info info,
struct fb_var_screeninfo var 
)

Definition at line 937 of file fbmem.c.

int fb_show_logo ( struct fb_info fb_info,
int  rotate 
)

Definition at line 670 of file fbmem.c.

ssize_t fb_sys_read ( struct fb_info info,
char __user buf,
size_t  count,
loff_t *  ppos 
)

Definition at line 16 of file fb_sys_fops.c.

ssize_t fb_sys_write ( struct fb_info info,
const char __user buf,
size_t  count,
loff_t *  ppos 
)

Definition at line 56 of file fb_sys_fops.c.

int fb_unregister_client ( struct notifier_block nb)

fb_unregister_client - unregister a client notifier : notifier block to callback on events

Definition at line 33 of file fb_notify.c.

int fb_validate_mode ( const struct fb_var_screeninfo var,
struct fb_info info 
)

Definition at line 1410 of file fbmon.c.

void fb_var_to_videomode ( struct fb_videomode mode,
const struct fb_var_screeninfo var 
)

Definition at line 774 of file modedb.c.

void fb_videomode_to_modelist ( const struct fb_videomode modedb,
int  num,
struct list_head head 
)

fb_videomode_to_modelist - convert mode array to mode list : array of struct fb_videomode : number of entries in array : struct list_head of modelist

Definition at line 1055 of file modedb.c.

void fb_videomode_to_var ( struct fb_var_screeninfo var,
const struct fb_videomode mode 
)

Definition at line 818 of file modedb.c.

int fbmon_dpms ( const struct fb_info fb_info)
struct fb_info* framebuffer_alloc ( size_t  size,
struct device dev 
)
read

framebuffer_alloc - creates a new frame buffer info structure

: size of driver private data, can be zero : pointer to the device for this fb, this can be NULL

Creates a new frame buffer info structure. Also reserves bytes for driver private data (info->par). info->par (if any) will be aligned to sizeof(long).

Returns the new structure, or NULL if an error occurred.

Definition at line 39 of file fbsysfs.c.

void framebuffer_release ( struct fb_info info)

framebuffer_release - marks the structure available for freeing

: frame buffer info structure

Drop the reference count of the device embedded in the framebuffer info structure.

Definition at line 81 of file fbsysfs.c.

int lock_fb_info ( struct fb_info info)

Definition at line 73 of file fbmem.c.

int register_framebuffer ( struct fb_info fb_info)

register_framebuffer - registers a frame buffer device : frame buffer info structure

Registers a frame buffer device .

Returns negative errno on error, or zero for success.

Definition at line 1727 of file fbmem.c.

void remove_conflicting_framebuffers ( struct apertures_struct *  a,
const char name,
bool  primary 
)

Definition at line 1708 of file fbmem.c.

void sys_copyarea ( struct fb_info info,
const struct fb_copyarea area 
)

Definition at line 315 of file syscopyarea.c.

void sys_fillrect ( struct fb_info info,
const struct fb_fillrect rect 
)

Definition at line 243 of file sysfillrect.c.

void sys_imageblit ( struct fb_info info,
const struct fb_image image 
)

Definition at line 240 of file sysimgblt.c.

int unlink_framebuffer ( struct fb_info fb_info)

Definition at line 1692 of file fbmem.c.

int unregister_framebuffer ( struct fb_info fb_info)

unregister_framebuffer - releases a frame buffer device : frame buffer info structure

Unregisters a frame buffer device .

Returns negative errno on error, or zero for success.

This function will also notify the framebuffer console
to release the driver.

This is meant to be called within a driver's module_exit()
function. If this is called outside module_exit(), ensure
that the driver implements fb_open() and fb_release() to
check that no processes are using the device.

Definition at line 1755 of file fbmem.c.

Variable Documentation

struct fb_videomode cea_modes[64]
struct class* fb_class

Definition at line 1499 of file fbmem.c.

const char* fb_mode_option

Definition at line 32 of file modedb.c.

int num_registered_fb
struct fb_info* registered_fb[FB_MAX]
struct fb_videomode vesa_modes[]