Ignore:
Timestamp:
2020-07-03T23:41:46Z (4 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fd11144
Parents:
edb57bc6 (diff), ddb844e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
jxsvoboda <5887334+jxsvoboda@…> (2020-07-03 23:41:46)
git-committer:
GitHub <noreply@…> (2020-07-03 23:41:46)
Message:

Merge pull request #200 from jxsvoboda/gfx

Display server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/fb/amdm37x_dispc/amdm37x_dispc.h

    redb57bc6 re79a025  
    11/*
     2 * Copyright (c) 2020 Jiri Svoboda
    23 * Copyright (c) 2013 Jan Vesely
    34 * All rights reserved.
     
    3738#define AMDM37X_DISPC_H_
    3839
    39 #include <graph.h>
    4040#include <abi/fb/visuals.h>
     41#include <ddev_srv.h>
     42#include <ddf/driver.h>
     43#include <gfx/context.h>
     44#include <gfx/coord.h>
     45#include <io/pixel.h>
    4146#include <pixconv.h>
    4247#include <ddi.h>
     
    4550
    4651typedef struct {
     52        ddf_fun_t *fun;
    4753        amdm37x_dispc_regs_t *regs;
    4854
     
    5359                unsigned pitch;
    5460                unsigned bpp;
    55                 unsigned idx;
    5661        } active_fb;
    5762
     63        pixel_t color;
     64        gfx_rect_t rect;
    5865        size_t size;
    5966        void *fb_data;
    60 
    61         vslmode_list_element_t modes[1];
    6267} amdm37x_dispc_t;
    6368
    64 errno_t amdm37x_dispc_init(amdm37x_dispc_t *instance, visualizer_t *vis);
    65 errno_t amdm37x_dispc_fini(amdm37x_dispc_t *instance);
     69typedef struct {
     70        amdm37x_dispc_t *dispc;
     71        gfx_bitmap_alloc_t alloc;
     72        gfx_rect_t rect;
     73        bool myalloc;
     74} amdm37x_bitmap_t;
     75
     76extern ddev_ops_t amdm37x_ddev_ops;
     77extern gfx_context_ops_t amdm37x_gc_ops;
     78
     79extern errno_t amdm37x_dispc_init(amdm37x_dispc_t *, ddf_fun_t *);
     80extern errno_t amdm37x_dispc_fini(amdm37x_dispc_t *);
    6681
    6782#endif
Note: See TracChangeset for help on using the changeset viewer.