#include <mmsfbdev.h>
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 |
Definition at line 57 of file mmsfbdev.h.
MMSFBDev::MMSFBDev | ( | ) |
Definition at line 50 of file mmsfbdev.cpp.
MMSFBDev::~MMSFBDev | ( | ) | [virtual] |
Definition at line 70 of file mmsfbdev.cpp.
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] |
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] |
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.
bool MMSFBDev::isinitialized [private] |
string MMSFBDev::device_file [private] |
char MMSFBDev::device[8] [private] |
int MMSFBDev::fd [private] |
void* MMSFBDev::framebuffer_base [private] |
bool MMSFBDev::reset_console_accel [private] |
struct termios MMSFBDev::saved_ts [read, private] |
struct fb_fix_screeninfo MMSFBDev::fix_screeninfo [read, private] |
struct fb_var_screeninfo MMSFBDev::var_screeninfo [read, private] |
struct fb_var_screeninfo MMSFBDev::org_var_screeninfo [read, private] |
struct fb_var_screeninfo MMSFBDev::modes[MMSFBDEV_MAX_MODES] [read, private] |
int MMSFBDev::modes_cnt [private] |
MMSFBDEV_LAYER MMSFBDev::layers[MMSFBDEV_MAX_LAYERS] [private] |
int MMSFBDev::layers_cnt [private] |
int MMSFBDev::active_screen [private] |
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.