RTEMS  5.1
Functions
fb_vesa.h File Reference

Headers specific for framebuffer drivers utilizing VESA VBE. More...

#include <bsp/vbe3.h>
#include <edid.h>
#include <stdint.h>

Go to the source code of this file.

Functions

uint32_t VBE_controller_information (VBE_vbe_info_block *info_block, uint16_t queried_VBE_Version)
 Returns information about graphic's controller in the info_block structure. More...
 
uint32_t VBE_mode_information (VBE_mode_info_block *info_block, uint16_t mode_number)
 Fills structure info_block with informations about selected mode in mode_number variable. More...
 
uint32_t VBE_set_mode (uint16_t mode_number, VBE_CRTC_info_block *info_block)
 Sets graphics mode selected. If mode has refreshRateCtrl bit set, than the info_block must be filled accordingly. More...
 
uint32_t VBE_current_mode (uint16_t *mode_number)
 Get currently set mode number. More...
 
uint32_t VBE_report_DDC_capabilities (uint16_t controller_unit_number, uint8_t *seconds_to_transfer_EDID_block, uint8_t *DDC_level_supported)
 Gets information about display data channel implemented in the graphic's controller. More...
 
uint32_t VBE_read_EDID (uint16_t controller_unit_number, uint16_t EDID_block_number, EDID_edid1 *buffer)
 Reads selected EDID block from display attached to controller's interface. More...
 

Detailed Description

Headers specific for framebuffer drivers utilizing VESA VBE.

Function Documentation

◆ VBE_controller_information()

uint32_t VBE_controller_information ( VBE_vbe_info_block *  info_block,
uint16_t  queried_VBE_Version 
)

Returns information about graphic's controller in the info_block structure.

Parameters
[out]info_blockpointer to the struct to be filled with controller information
[in]queried_VBE_Versionif >0x200 then video bios is asked to fill in parameters which appeared with second version of VBE.
Return values
axregister content as defined in VBE RETURN STATUS paragraph
-1error calling graphical bios

◆ VBE_current_mode()

uint32_t VBE_current_mode ( uint16_t *  mode_number)

Get currently set mode number.

Parameters
[out]mode_numbervariable to be filled with current mode number
Return values
axregister content as defined in VBE RETURN STATUS paragraph
-1error calling graphical bios

◆ VBE_mode_information()

uint32_t VBE_mode_information ( VBE_mode_info_block *  info_block,
uint16_t  mode_number 
)

Fills structure info_block with informations about selected mode in mode_number variable.

Parameters
[out]info_blockpointer to the struct to be filled with mode information
[in]mode_numberdetailes of this mode to be filled
Return values
axregister content as defined in VBE RETURN STATUS paragraph
-1error calling graphical bios

◆ VBE_read_EDID()

uint32_t VBE_read_EDID ( uint16_t  controller_unit_number,
uint16_t  EDID_block_number,
EDID_edid1 *  buffer 
)

Reads selected EDID block from display attached to controller's interface.

Parameters
[in]controller_unit_number
[in]EDID_block_numberblock no. to be read from the display
[out]bufferplace to store block fetched from the display
Return values
axregister content as defined in VBE RETURN STATUS paragraph
-1error calling graphical bios

◆ VBE_report_DDC_capabilities()

uint32_t VBE_report_DDC_capabilities ( uint16_t  controller_unit_number,
uint8_t *  seconds_to_transfer_EDID_block,
uint8_t *  DDC_level_supported 
)

Gets information about display data channel implemented in the graphic's controller.

Parameters
[in]controller_unit_number
[out]seconds_to_transfer_EDID_blockapproximate time to transfer one EDID block rounded up to seconds
[out]DDC_level_supportedcontains DDC version supported and screen blanking state during transfer
Return values
axregister content as defined in VBE RETURN STATUS paragraph
-1error calling graphical bios

◆ VBE_set_mode()

uint32_t VBE_set_mode ( uint16_t  mode_number,
VBE_CRTC_info_block *  info_block 
)

Sets graphics mode selected. If mode has refreshRateCtrl bit set, than the info_block must be filled accordingly.

Parameters
[in]mode_numbernumber of mode to be set
[in]info_blockpointer to struct containing refresh rate control info
Return values
axregister content as defined in VBE RETURN STATUS paragraph
-1error calling graphical bios