3 * Vesa frame buffer driver for x86
5 * Copyright (C) 2014 Google, Inc
7 * SPDX-License-Identifier: GPL-2.0+
13 #include "videomodes.h"
20 void *video_hw_init(void)
22 GraphicDevice *gdev = &ctfb;
26 if (vbe_get_video_info(gdev)) {
27 printf("No video mode configured\n");
31 bits_per_pixel = gdev->gdfBytesPP * 8;
32 sprintf(gdev->modeIdent, "%dx%dx%d", gdev->winSizeX, gdev->winSizeY,
34 printf("%s\n", gdev->modeIdent);