- prop->id = RPI_TAG_SETFBPHYS;
- prop->size = 8;
- prop->res = 0;
- prop->data[0] = fb_width;
- prop->data[1] = fb_height;
- prop = RPI_PROP_NEXT(prop);
-
- prop->id = RPI_TAG_SETFBVIRT;
- prop->size = 8;
- prop->res = 0;
- prop->data[0] = fb_width;
- prop->data[1] = fb_height;
- prop = RPI_PROP_NEXT(prop);
-
- prop->id = RPI_TAG_SETFBDEPTH;
- prop->size = 4;
- prop->res = 0;
- prop->data[0] = fb_depth;
- prop = RPI_PROP_NEXT(prop);
-
- prop->id = RPI_TAG_ALLOCFB;
- prop->size = 4;
- prop->res = 0;
- prop->data[0] = 4; /* alignment */
- prop = RPI_PROP_NEXT(prop);
-
- prop->id = 0;
- prop->size = 0;
- prop->res = 0;
- prop = RPI_PROP_NEXT(prop);
-
- printf("Requesting video mode: %dx%d (%d bpp)\n", fb_width, fb_height, fb_depth);
-
- rpi_mbox_send(RPI_MBOX_PROP, RPI_MEM_BUS_COHERENT(propbuf));
- while(rpi_mbox_recv(RPI_MBOX_PROP) != RPI_MEM_BUS_COHERENT(propbuf));
-
- hexdump(propbuf, sizeof propbuf);
-
- if(hdr->res != 0x80000000) {
- printf("Request failed, error: %x\n", hdr->res);
- return -1;
- }
+ printf("Requesting video mode: %dx%d %d bpp (fb:%dx%d)\n", scr_width, scr_height,
+ fb_depth, fb_width, fb_height);