RetroArch
Functions | Variables
drm_common.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <poll.h>
#include <boolean.h>
#include <retro_common_api.h>
#include <retro_inline.h>
#include "../video_driver.h"
Include dependency graph for drm_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool drm_get_encoder (int fd)
 
void drm_restore_crtc (void)
 
bool drm_get_resources (int fd)
 
void drm_setup (int fd)
 
void drm_free (void)
 
bool drm_get_connector (int fd, video_frame_info_t *video_info)
 
float drm_get_refresh_rate (void *data)
 
static INLINE bool drm_wait_flip (int timeout)
 

Variables

RETRO_BEGIN_DECLS uint32_t g_connector_id
 
int g_drm_fd
 
uint32_t g_crtc_id
 
struct pollfd g_drm_fds
 
drmModeConnector * g_drm_connector
 
drmModeModeInfo * g_drm_mode
 
drmEventContext g_drm_evctx
 

Function Documentation

◆ drm_free()

void drm_free ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drm_get_connector()

bool drm_get_connector ( int  fd,
video_frame_info_t video_info 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drm_get_encoder()

bool drm_get_encoder ( int  fd)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drm_get_refresh_rate()

float drm_get_refresh_rate ( void data)

◆ drm_get_resources()

bool drm_get_resources ( int  fd)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drm_restore_crtc()

void drm_restore_crtc ( void  )
Here is the caller graph for this function:

◆ drm_setup()

void drm_setup ( int  fd)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drm_wait_flip()

static INLINE bool drm_wait_flip ( int  timeout)
static
Here is the caller graph for this function:

Variable Documentation

◆ g_connector_id

RETRO_BEGIN_DECLS uint32_t g_connector_id

◆ g_crtc_id

uint32_t g_crtc_id

◆ g_drm_connector

drmModeConnector* g_drm_connector

◆ g_drm_evctx

drmEventContext g_drm_evctx

◆ g_drm_fd

int g_drm_fd

◆ g_drm_fds

struct pollfd g_drm_fds

◆ g_drm_mode

drmModeModeInfo* g_drm_mode