Turnstone Operating System
Loading...
Searching...
No Matches
video.h File Reference

video driver More...

#include <types.h>
#include <memory.h>
#include <list.h>

Macros

#define ___VIDEO_H   0
 
#define VIDEO_PCI_DEVICE_VENDOR_VIRTIO   0x1AF4
 
#define VIDEO_PCI_DEVICE_ID_VIRTIO_GPU   0x1050
 
#define VIDEO_PCI_DEVICE_VENDOR_VMWARE   0x15AD
 
#define VIDEO_PCI_DEVICE_ID_VMWARE_SVGA2   0x0405
 

Typedefs

typedef void(* video_graphics_print_f) (const char_t *str)
 

Functions

int8_t video_display_init (memory_heap_t *heap, list_t *display_controllers)
 video diplay pci devices init More...
 
void video_print (const char_t *string)
 prints string to console with efi system table's console output protocol. More...
 
void video_text_print (const char_t *string)
 

Variables

video_graphics_print_f VIDEO_GRAPHICS_PRINT
 

Detailed Description

video driver

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Function Documentation

◆ video_display_init()

int8_t video_display_init ( memory_heap_t heap,
list_t display_controllers 
)

video diplay pci devices init

Parameters
[in]heapheap to allocate memory
[in]display_controllerslist of display controllers
Returns
0 if success

◆ video_print()

void video_print ( const char_t string)

prints string to console with efi system table's console output protocol.

Parameters
[in]stringstring to print.