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

Changeset 1382446 in mainline


Ignore:
Timestamp:
2020-12-14T19:09:05Z (13 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
d1582b50
Parents:
0350033
Message:

Display device backend for output server

This provides console on a grahpical device, similar to the old kfb
backend. It talks to the userspace kfb driver, instead of mapping
the kfb directly. You can get graphical console by configuring
CONFIG_FB=y and CONFIG_WINSYS=n

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • HelenOS.config

    r0350033 r1382446  
    608608! [(PLATFORM=ia32|PLATFORM=amd64|MACHINE=beagleboardxm)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_BFB_BPP (choice)
    609609
     610% Window system
     611! [CONFIG_FB=y] CONFIG_WINSYS (y/n)
     612
    610613% Display double buffering
    611614! [CONFIG_FB=y] CONFIG_DISP_DOUBLE_BUF (y/n)
  • uspace/app/init/init.c

    r0350033 r1382446  
    272272}
    273273
     274#ifdef CONFIG_WINSYS
     275
    274276static errno_t display_server(void)
    275277{
     
    302304        return retval;
    303305}
     306
     307#endif
    304308
    305309static void getterm(const char *svc, const char *app, bool msg)
     
    468472        init_sysvol();
    469473
     474#ifdef CONFIG_WINSYS
    470475        if (!config_key_exists("console")) {
    471476                rc = display_server();
     
    476481                }
    477482        }
    478 
     483#endif
    479484        rc = console(HID_INPUT, HID_OUTPUT);
    480485        if (rc == EOK) {
  • uspace/srv/hid/output/meson.build

    r0350033 r1382446  
    2828#
    2929
    30 deps = [ 'drv' ]
     30deps = [ 'drv', 'fbfont', 'pixconv', 'ddev' ]
    3131src = files(
    3232        'ctl/serial.c',
    3333        'port/ega.c',
    3434        'port/chardev.c',
     35        'port/ddev.c',
    3536        'proto/vt100.c',
    3637        'output.c',
  • uspace/srv/hid/output/output.c

    r0350033 r1382446  
    4141#include "port/ega.h"
    4242#include "port/chardev.h"
     43#include "port/ddev.h"
    4344#include "output.h"
    4445
     
    486487        if (!config_key_exists("console")) {
    487488                ega_init();
     489#if defined(CONFIG_FB) && !defined(CONFIG_WINSYS)
     490                /*
     491                 * NOTE: We don't have a good way of detecting the absence
     492                 * of a KFB display device at run time because of the
     493                 * asunchronous nature of device discovery
     494                 */
     495                output_ddev_init();
     496#endif
    488497        }
    489498
Note: See TracChangeset for help on using the changeset viewer.