Changeset a71c158 in mainline for kernel/genarch/include/fb/fb.h


Ignore:
Timestamp:
2009-08-21T14:12:45Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e6dce8, b50b5af2, e5792d1
Parents:
90c8b8d
Message:

kernel output devices now suport multiple instances (except ski and sgcn, which respect the same interface, but behave as singletons)
if more than one output device gets initialized, the output is cloned to all of them
get rid of arch_grab_console() and arch_release_console() (output devices can implement a generic "redraw" method, input devices respect the "silent" global variable)
related cleanups and modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/fb/fb.h

    r90c8b8d ra71c158  
    3737
    3838#include <arch/types.h>
    39 #include <synch/spinlock.h>
     39#include <console/chardev.h>
     40#include <genarch/fb/visuals.h>
    4041
    4142/**
     
    4546        /** Physical address of the framebuffer device. */
    4647        uintptr_t addr;
    47 
     48       
    4849        /**
    4950         * Address where the first (top left) pixel is mapped,
     
    5152         */
    5253        unsigned int offset;
    53 
     54       
    5455        /** Screen width in pixels. */
    5556        unsigned int x;
    56 
     57       
    5758        /** Screen height in pixels. */
    5859        unsigned int y;
    59 
     60       
    6061        /** Bytes per one scanline. */
    6162        unsigned int scan;
    62 
     63       
    6364        /** Color model. */
    64         unsigned int visual;
     65        visual_t visual;
    6566} fb_properties_t;
    6667
    67 SPINLOCK_EXTERN(fb_lock);
    68 
    69 void fb_redraw(void);
    70 bool fb_init(fb_properties_t *props);
     68outdev_t *fb_init(fb_properties_t *props);
    7169
    7270#endif
Note: See TracChangeset for help on using the changeset viewer.