MMSFBDev Class Reference

#include <mmsfbdev.h>

Inheritance diagram for MMSFBDev:

List of all members.


Public Member Functions

 MMSFBDev ()
virtual ~MMSFBDev ()
virtual bool openDevice (char *device_file=NULL, int console=MMSFBDEV_QUERY_CONSOLE)
virtual void closeDevice ()
bool isInitialized ()
virtual bool waitForVSync ()
virtual bool panDisplay (int buffer_id, void *framebuffer_base=NULL)
virtual bool testLayer (int layer_id)
virtual bool initLayer (int layer_id, int width, int height, MMSFBSurfacePixelFormat pixelformat, int backbuffer=0)
virtual bool releaseLayer (int layer_id)
virtual bool restoreLayer (int layer_id)
bool getPixelFormat (int layer_id, MMSFBSurfacePixelFormat *pf)
bool getPhysicalMemory (unsigned long *mem)
bool getFrameBufferBase (unsigned char **base)
bool getFrameBufferPtr (int layer_id, MMSFBSurfacePlanesBuffer buffers, int *width, int *height)
bool mapMmio (unsigned char **mmio)
bool unmapMmio (unsigned char *mmio)
bool setMode (int width, int height, MMSFBSurfacePixelFormat pixelformat, int backbuffer=0)

Public Attributes

sigc::signal< bool,
MMSFBSurfacePixelFormat,
unsigned int *, MMSFBPixelDef * >
::accumulated
< neg_bool_accumulator
onGenFBPixelFormat
sigc::signal< bool, int,
string >::accumulated
< neg_bool_accumulator
onDisable
sigc::signal< bool, int,
string, fb_var_screeninfo
*, int, int,
MMSFBSurfacePixelFormat, bool >
::accumulated
< neg_bool_accumulator
onActivate

Private Member Functions

void printFixScreenInfo ()
void printVarScreenInfo ()
bool buildPixelFormat ()
bool readModes ()
void genFBPixelFormat (MMSFBSurfacePixelFormat pf, unsigned int *nonstd_format, MMSFBPixelDef *pixeldef)
void disable (int fd, string device_file)
bool activate (int fd, string device_file, struct fb_var_screeninfo *var_screeninfo, int width, int height, MMSFBSurfacePixelFormat pixelformat, bool switch_mode=true)
bool vtOpen (int console=MMSFBDEV_QUERY_CONSOLE)
void vtClose ()
virtual bool vtGetFd (int *fd)

Private Attributes

bool isinitialized
 is initialized?
string device_file
 name of the device file
char device [8]
 device abbreviation
int fd
 file descriptor of the framebuffer
void * framebuffer_base
 virtual framebuffer address
bool reset_console_accel
 have to reset the console acceleration
struct termios saved_ts
 saved settings from general terminal interface
struct fb_fix_screeninfo fix_screeninfo
 fix screen infos
struct fb_var_screeninfo var_screeninfo
 variable screen infos
struct fb_var_screeninfo org_var_screeninfo
 original variable screen infos
struct fb_var_screeninfo modes [MMSFBDEV_MAX_MODES]
 available modes read from /etc/fb.modes
int modes_cnt
 number of loaded modes
MMSFBDEV_LAYER layers [MMSFBDEV_MAX_LAYERS]
 layer infos
int layers_cnt
 number of layers
int active_screen
 id of the active screen (this is for fbs != vesa)
VT vt

Friends

class MMSFBDevVesa
class MMSFBDevMatrox
class MMSFBDevDavinci
class MMSFBDevOmap
class MMSInputLISHandler

Classes

struct  MMSFBDEV_LAYER
struct  VT

Detailed Description

Definition at line 57 of file mmsfbdev.h.


Constructor & Destructor Documentation

MMSFBDev::MMSFBDev (  ) 

Definition at line 50 of file mmsfbdev.cpp.

MMSFBDev::~MMSFBDev (  )  [virtual]

Definition at line 70 of file mmsfbdev.cpp.


Member Function Documentation

void MMSFBDev::printFixScreenInfo (  )  [private]

Definition at line 74 of file mmsfbdev.cpp.

void MMSFBDev::printVarScreenInfo (  )  [private]

Definition at line 96 of file mmsfbdev.cpp.

bool MMSFBDev::buildPixelFormat (  )  [private]

Definition at line 130 of file mmsfbdev.cpp.

bool MMSFBDev::readModes (  )  [private]

Definition at line 193 of file mmsfbdev.cpp.

void MMSFBDev::genFBPixelFormat ( MMSFBSurfacePixelFormat  pf,
unsigned int *  nonstd_format,
MMSFBPixelDef pixeldef 
) [private]

Definition at line 613 of file mmsfbdev.cpp.

void MMSFBDev::disable ( int  fd,
string  device_file 
) [private]

Definition at line 623 of file mmsfbdev.cpp.

bool MMSFBDev::activate ( int  fd,
string  device_file,
struct fb_var_screeninfo var_screeninfo,
int  width,
int  height,
MMSFBSurfacePixelFormat  pixelformat,
bool  switch_mode = true 
) [private]

Definition at line 643 of file mmsfbdev.cpp.

bool MMSFBDev::openDevice ( char *  device_file = NULL,
int  console = MMSFBDEV_QUERY_CONSOLE 
) [virtual]

Reimplemented in MMSFBDevDavinci, MMSFBDevMatrox, and MMSFBDevOmap.

Definition at line 269 of file mmsfbdev.cpp.

void MMSFBDev::closeDevice (  )  [virtual]

Reimplemented in MMSFBDevDavinci, MMSFBDevMatrox, and MMSFBDevOmap.

Definition at line 366 of file mmsfbdev.cpp.

bool MMSFBDev::isInitialized (  ) 

Definition at line 396 of file mmsfbdev.cpp.

bool MMSFBDev::waitForVSync (  )  [virtual]

Reimplemented in MMSFBDevDavinci, MMSFBDevMatrox, and MMSFBDevOmap.

Definition at line 400 of file mmsfbdev.cpp.

bool MMSFBDev::panDisplay ( int  buffer_id,
void *  framebuffer_base = NULL 
) [virtual]

Reimplemented in MMSFBDevDavinci, and MMSFBDevOmap.

Definition at line 418 of file mmsfbdev.cpp.

bool MMSFBDev::testLayer ( int  layer_id  )  [virtual]

Reimplemented in MMSFBDevDavinci, MMSFBDevMatrox, and MMSFBDevOmap.

Definition at line 458 of file mmsfbdev.cpp.

bool MMSFBDev::initLayer ( int  layer_id,
int  width,
int  height,
MMSFBSurfacePixelFormat  pixelformat,
int  backbuffer = 0 
) [virtual]

Reimplemented in MMSFBDevDavinci, MMSFBDevMatrox, and MMSFBDevOmap.

Definition at line 471 of file mmsfbdev.cpp.

bool MMSFBDev::releaseLayer ( int  layer_id  )  [virtual]

Reimplemented in MMSFBDevDavinci, MMSFBDevMatrox, and MMSFBDevOmap.

Definition at line 526 of file mmsfbdev.cpp.

bool MMSFBDev::restoreLayer ( int  layer_id  )  [virtual]

Reimplemented in MMSFBDevDavinci, MMSFBDevMatrox, and MMSFBDevOmap.

Definition at line 531 of file mmsfbdev.cpp.

bool MMSFBDev::getPixelFormat ( int  layer_id,
MMSFBSurfacePixelFormat pf 
)

Definition at line 536 of file mmsfbdev.cpp.

bool MMSFBDev::getPhysicalMemory ( unsigned long *  mem  ) 

Definition at line 549 of file mmsfbdev.cpp.

bool MMSFBDev::getFrameBufferBase ( unsigned char **  base  ) 

Definition at line 556 of file mmsfbdev.cpp.

bool MMSFBDev::getFrameBufferPtr ( int  layer_id,
MMSFBSurfacePlanesBuffer  buffers,
int *  width,
int *  height 
)

Definition at line 563 of file mmsfbdev.cpp.

bool MMSFBDev::mapMmio ( unsigned char **  mmio  ) 

Definition at line 582 of file mmsfbdev.cpp.

bool MMSFBDev::unmapMmio ( unsigned char *  mmio  ) 

Definition at line 601 of file mmsfbdev.cpp.

bool MMSFBDev::setMode ( int  width,
int  height,
MMSFBSurfacePixelFormat  pixelformat,
int  backbuffer = 0 
)

Definition at line 677 of file mmsfbdev.cpp.

bool MMSFBDev::vtOpen ( int  console = MMSFBDEV_QUERY_CONSOLE  )  [private]

Definition at line 922 of file mmsfbdev.cpp.

void MMSFBDev::vtClose (  )  [private]

Definition at line 1062 of file mmsfbdev.cpp.

bool MMSFBDev::vtGetFd ( int *  fd  )  [private, virtual]

Reimplemented in MMSFBDevDavinci, and MMSFBDevOmap.

Definition at line 1100 of file mmsfbdev.cpp.


Friends And Related Function Documentation

friend class MMSFBDevVesa [friend]

Definition at line 183 of file mmsfbdev.h.

friend class MMSFBDevMatrox [friend]

Definition at line 184 of file mmsfbdev.h.

friend class MMSFBDevDavinci [friend]

Definition at line 185 of file mmsfbdev.h.

friend class MMSFBDevOmap [friend]

Definition at line 186 of file mmsfbdev.h.

friend class MMSInputLISHandler [friend]

Definition at line 187 of file mmsfbdev.h.


Member Data Documentation

bool MMSFBDev::isinitialized [private]

is initialized?

Definition at line 60 of file mmsfbdev.h.

string MMSFBDev::device_file [private]

name of the device file

Definition at line 63 of file mmsfbdev.h.

char MMSFBDev::device[8] [private]

device abbreviation

Definition at line 66 of file mmsfbdev.h.

int MMSFBDev::fd [private]

file descriptor of the framebuffer

Definition at line 69 of file mmsfbdev.h.

void* MMSFBDev::framebuffer_base [private]

virtual framebuffer address

Definition at line 72 of file mmsfbdev.h.

have to reset the console acceleration

Definition at line 75 of file mmsfbdev.h.

struct termios MMSFBDev::saved_ts [read, private]

saved settings from general terminal interface

Definition at line 78 of file mmsfbdev.h.

fix screen infos

Definition at line 81 of file mmsfbdev.h.

variable screen infos

Definition at line 84 of file mmsfbdev.h.

original variable screen infos

Definition at line 87 of file mmsfbdev.h.

struct fb_var_screeninfo MMSFBDev::modes[MMSFBDEV_MAX_MODES] [read, private]

available modes read from /etc/fb.modes

Definition at line 90 of file mmsfbdev.h.

int MMSFBDev::modes_cnt [private]

number of loaded modes

Definition at line 93 of file mmsfbdev.h.

MMSFBDEV_LAYER MMSFBDev::layers[MMSFBDEV_MAX_LAYERS] [private]

layer infos

Definition at line 109 of file mmsfbdev.h.

int MMSFBDev::layers_cnt [private]

number of layers

Definition at line 112 of file mmsfbdev.h.

int MMSFBDev::active_screen [private]

id of the active screen (this is for fbs != vesa)

Definition at line 115 of file mmsfbdev.h.

sigc::signal<bool, MMSFBSurfacePixelFormat, unsigned int*, MMSFBPixelDef*>::accumulated<neg_bool_accumulator> MMSFBDev::onGenFBPixelFormat

Definition at line 155 of file mmsfbdev.h.

sigc::signal<bool, int, string>::accumulated<neg_bool_accumulator> MMSFBDev::onDisable

Definition at line 156 of file mmsfbdev.h.

sigc::signal<bool, int, string, fb_var_screeninfo *, int, int, MMSFBSurfacePixelFormat, bool>::accumulated<neg_bool_accumulator> MMSFBDev::onActivate

Definition at line 157 of file mmsfbdev.h.

VT MMSFBDev::vt [private]

Definition at line 177 of file mmsfbdev.h.


The documentation for this class was generated from the following files: