Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2021-06-24T08:32:54Z (5 months ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
65ec18d
Parents:
a977e37 (diff), 1b7b7af (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:
Maurizio Lombardi <mlombard@…> (2021-06-24 08:32:54)
git-committer:
GitHub <noreply@…> (2021-06-24 08:32:54)
Message:

Merge pull request #214 from maurizio-lombardi/gfx_rpi3

Graphics improvements for the Raspberry PI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/genarch/drivers/bcm2835/mbox.h

    ra977e37 r37d0dd4  
    6868
    6969enum {
     70        MBOX_TAG_GET_PHYS_W_H   = 0x00040003,
     71        MBOX_TAG_SET_PHYS_W_H   = 0x00048003,
     72        MBOX_TAG_GET_VIRT_W_H   = 0x00040004,
     73        MBOX_TAG_SET_VIRT_W_G   = 0x00048004
     74};
     75
     76enum {
    7077        MBOX_PROP_CODE_REQ      = 0x00000000,
    7178        MBOX_PROP_CODE_RESP_OK  = 0x80000000,
     
    122129
    123130typedef struct {
     131        mbox_prop_buf_hdr_t     buf_hdr;
     132        mbox_tag_hdr_t          tag_hdr;
     133        struct {
     134                uint32_t        width;
     135                uint32_t        height;
     136        } body;
     137        uint32_t zero;
     138} mbox_getfbsize_buf_t;
     139
     140typedef struct {
    124141        ioport32_t width;
    125142        ioport32_t height;
     
    135152
    136153extern bool bcm2835_prop_get_memory(uint32_t *base, uint32_t *size);
    137 extern bool bcm2835_fb_init(fb_properties_t *prop);
     154extern bool bcm2835_fb_init(fb_properties_t *prop, uint32_t width, uint32_t heigth);
     155extern bool bcm2835_mbox_get_fb_size(uint32_t *h, uint32_t *w);
    138156
    139157#endif
Note: See TracChangeset for help on using the changeset viewer.