PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
GOP Driver

GOP (Graphics Output Protocol) driver. More...

Collaboration diagram for GOP Driver:

Detailed Description

GOP (Graphics Output Protocol) driver.

This module provides a framebuffer device for the GOP framebuffer provided by the bootloader.

Functions

static uint64_t gop_info (fb_t *fb, fb_info_t *info)
 
static size_t gop_read (fb_t *fb, void *buffer, size_t count, size_t *offset)
 
static size_t gop_write (fb_t *fb, const void *buffer, size_t count, size_t *offset)
 
static void * gop_mmap (fb_t *fb, void *addr, size_t length, size_t *offset, pml_flags_t flags)
 
static uint64_t gop_init (void)
 

Variables

static boot_gop_t gop
 
static fb_tfb
 
static fb_ops_t ops
 

Function Documentation

◆ gop_info()

static uint64_t gop_info ( fb_t fb,
fb_info_t info 
)
static

Definition at line 30 of file gop.c.

Here is the call graph for this function:

◆ gop_read()

static size_t gop_read ( fb_t fb,
void *  buffer,
size_t  count,
size_t offset 
)
static

Definition at line 41 of file gop.c.

Here is the call graph for this function:

◆ gop_write()

static size_t gop_write ( fb_t fb,
const void *  buffer,
size_t  count,
size_t offset 
)
static

Definition at line 51 of file gop.c.

Here is the call graph for this function:

◆ gop_mmap()

static void * gop_mmap ( fb_t fb,
void *  addr,
size_t  length,
size_t offset,
pml_flags_t  flags 
)
static

Definition at line 61 of file gop.c.

Here is the call graph for this function:

◆ gop_init()

static uint64_t gop_init ( void  )
static

Definition at line 87 of file gop.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ gop

boot_gop_t gop
static

Definition at line 27 of file gop.c.

◆ fb

fb_t* fb
static

Definition at line 28 of file gop.c.

◆ ops

fb_ops_t ops
static
Initial value:
= {
.info = gop_info,
.read = gop_read,
.write = gop_write,
.mmap = gop_mmap,
}
static uint64_t gop_info(fb_t *fb, fb_info_t *info)
Definition gop.c:30
static void * gop_mmap(fb_t *fb, void *addr, size_t length, size_t *offset, pml_flags_t flags)
Definition gop.c:61
static size_t gop_read(fb_t *fb, void *buffer, size_t count, size_t *offset)
Definition gop.c:41
static size_t gop_write(fb_t *fb, const void *buffer, size_t count, size_t *offset)
Definition gop.c:51

Definition at line 80 of file gop.c.