AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
fbdev.h File Reference
#include <aquila/fb.h>
#include <mm/vm.h>
#include <fs/iobuf.h>

Go to the source code of this file.

Data Structures

struct  fbdev
 A framebuffer: its driver, its screen's information, its operations. More...

Macros

#define FBDEV_TYPE_VESA   1

Functions

int fbdev_register (int, void *)
 Registers a framebuffer, which fbdev_probe() sets up with its driver.
struct fbdev * fbdev_primary (void)
 Returns the first framebuffer, once it is set up, for the virtual terminals.

Variables

struct fbdev fbdev_vesa

Macro Definition Documentation

◆ FBDEV_TYPE_VESA

#define FBDEV_TYPE_VESA   1

Definition at line 11 of file fbdev.h.

Referenced by fbdev_probe(), and process_multiboot_info().

Function Documentation

◆ fbdev_primary()

struct fbdev * fbdev_primary ( void )

Returns the first framebuffer, once it is set up, for the virtual terminals.

Returns
the framebuffer, or NULL if there is none

Definition at line 63 of file fbdev.c.

References fbdev_cnt, fbdev_primary(), fbdev::fix_screeninfo, NULL, and registered_fbs.

Referenced by fbdev_primary(), and vt_fb_probe().

◆ fbdev_register()

int fbdev_register ( int type,
void * data )

Registers a framebuffer, which fbdev_probe() sets up with its driver.

The first one registered is /dev/fb0.

Parameters
typeits driver (FBDEV_TYPE_VESA)
datawhat the driver needs to set it up (the VESA mode's description)
Returns
0, or -ENOSPC if there are MAX_FBDEV already

Definition at line 37 of file fbdev.c.

References fbdev::data, fbdev_cnt, fbdev_register(), MAX_FBDEV, registered_fbs, and fbdev::type.

Referenced by fbdev_register(), and process_multiboot_info().

Variable Documentation

◆ fbdev_vesa

struct fbdev fbdev_vesa
extern

Definition at line 141 of file vesa.c.