Changeset 7895090 in rtems


Ignore:
Timestamp:
Jul 29, 2009, 1:38:50 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
83987a5
Parents:
810f43e
Message:

2009-07-29 Roxana Leontie <roxana.leontie@…>

  • libmisc/mw-fb/mw_fb.h: Cleaned code and added some more structures.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r810f43e r7895090  
     12009-07-29      Roxana Leontie <roxana.leontie@gmail.com>
     2
     3        * libmisc/mw-fb/mw_fb.h: Cleaned code and added some more structures.
     4
    152009-07-28      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • cpukit/libmisc/mw-fb/mw_fb.h

    r810f43e r7895090  
    4444#define FB_ACCEL_NONE                  0    /* no hardware accelerator    */
    4545
     46struct fb_bitfield {
     47        uint32_t offset;                /* beginning of bitfield        */
     48        uint32_t length;                /* length of bitfield           */
     49        uint32_t msb_right;             /* != 0 : Most significant bit is */
     50                                        /* right */
     51};
     52
    4653struct fb_var_screeninfo {
    4754    uint32_t xres;                  /* visible resolution        */
    4855    uint32_t yres;
    4956    uint32_t bits_per_pixel;        /* guess what            */
     57    struct fb_bitfield red;         /* bitfield in fb mem if true color, */
     58    struct fb_bitfield green;       /* else only length is significant */
     59    struct fb_bitfield blue;
     60    struct fb_bitfield transp;      /* transparency                     */
    5061};
     62
    5163struct fb_fix_screeninfo {
    5264    volatile char *smem_start;  /* Start of frame buffer mem  */
     
    6779};
    6880
    69 /* type of function to be executed at the driver level */
    70 #define FB_FUNC_ENTER_GRAPHICS   0
    71 #define FB_FUNC_EXIT_GRAPHICS    1
    72 #define FB_FUNC_IS_DIRTY         2
    73 #define FB_FUNC_GET_MODE         3
    7481
    75 struct fb_exec_function
    76 {
    77     int    func_no;
    78     void  *param;
    79 };
    80 
    81 
    82 /* Micro Framebuffer API Wrapper */
    83 
    84 /*
    85  * Returns the mode of the graphics subsystem
    86  */
    87 extern int ufb_get_mode( int fd, int *mode );
    88 
    89 /*
    90  * Tell the driver that the "virtual buffer" is dirty, and an update
    91  * of it to the real device, maybe a serial/parallel LCD or whatever
    92  * is required
    93  */
    94 extern int ufb_buffer_is_dirty( int fd );
    95 
    96 /*
    97  * This function unmaps memory of the FB from the user's space
    98  */
    99  int ufb_unmmap_from_user_space( int fd, void *addr );
    10082
    10183#ifdef  __cplusplus
Note: See TracChangeset for help on using the changeset viewer.