Code Search for Developers
 
 
  

fbs.h from The Open2x Project at Krugle


Show fbs.h syntax highlighted

/*              
 *  All right reserved.
 *  - godori <ghcstop>, www.aesop-embedded.org
 *             
 *    => Created. 2005.01.04
 */
#ifndef __FBS_H
#define __FBS_H

//==============================================================================

#define FBMMSP2CTRL             0x4619 

#define MMSP2_RGB0_NUM            0
#define MMSP2_RGB1_NUM            1
#define MMSP2_RGB2_NUM            2
#define MMSP2_RGB3_NUM            3
#define MMSP2_RGB4_NUM            4
#define MMSP2_OSD_NUM             5
#define MMSP2_VIDA_NUM
#define MMSP2_VIDB_NUM            6


typedef struct Ioctl_Msg_Hdr_t
{
    u_short message;
    u_short plane;   
    u_short msgleng;
} Msghdr;

typedef struct Ioctl_Dummy_t
{
    u_short message;
    u_short msgleng;
    u_char  msgdata[32];
} Msgdummy, *PMsgdummy;


#define MSG(msg) (((Msghdr *)msg)->message)
#define PLANE(msg) (((Msghdr *)msg)->plane)
#define LEN(msg) (((Msghdr *)msg)->msgleng)

#define MSGOK  1000
#define MSGERR 1001


#define MMSP2_FB_RGB_ON             1
#define MMSP2_FB_RGB_OFF            0
#define MMSP2_FB_GET_RECT_INFO      2
#define MMSP2_FB_SET_RECT_INFO      3
#define MMSP2_FB_RGB_COLOR_KEY		4

typedef struct Ioctl_GetRect_t
{
    Msghdr mhdr;
    u_short xoff;
    u_short yoff;
    u_short w;
    u_short h;
} MsgGetRect, *PMsgGetRect;
//==============================================================================


#endif





See more files for this project here

The Open2x Project

The Open2x project exists to provide an open source resource for the GP2X handheld console based on the MagicEyes MMSP2 processing platform and MP2520F SoC. The project hosts Linux kernel source for the GP2X, boot loader (U-Boot) source and more.

Project homepage: http://www.distant-earth.com/open2x
Programming language(s): Assembly,C,C++
License: other

  Makefile
  fblin16.c
  fblin24.c
  fblin32.c
  fbs.h
  fontdisp.h
  fontout.c
  gfxdev.h
  gfxfontext.c
  gfxfontload.c
  gfxfontout.c
  gfxtype.h
  gulim_96_10_eng.c
  gulim_96_10_han.c
  main.c
  scr_fb.c