VSF Documented
xf86drmMode.h File Reference
#include <stdint.h>
#include <drm/drm_mode.h>

Go to the source code of this file.

Data Structures

struct  _drmModeRes
 
struct  _drmModeModeInfo
 
struct  _drmModeEncoder
 
struct  _drmModeConnector
 
struct  _drmModeCrtc
 
struct  _drmModeFB
 
struct  _drmModePlane
 
struct  _drmModePlaneRes
 
struct  _drmModeProperty
 
struct  _drmModeObjectProperties
 

Typedefs

typedef struct _drmModeRes drmModeRes
 
typedef struct _drmModeResdrmModeResPtr
 
typedef struct _drmModeModeInfo drmModeModeInfo
 
typedef struct _drmModeModeInfodrmModeModeInfoPtr
 
typedef struct _drmModeEncoder drmModeEncoder
 
typedef struct _drmModeEncoderdrmModeEncoderPtr
 
typedef struct _drmModeConnector drmModeConnector
 
typedef struct _drmModeConnectordrmModeConnectorPtr
 
typedef struct _drmModeCrtc drmModeCrtc
 
typedef struct _drmModeCrtcdrmModeCrtcPtr
 
typedef struct _drmModeFB drmModeFB
 
typedef struct _drmModeFBdrmModeFBPtr
 
typedef struct _drmModePlane drmModePlane
 
typedef struct _drmModePlanedrmModePlanePtr
 
typedef struct _drmModePlaneRes drmModePlaneRes
 
typedef struct _drmModePlaneResdrmModePlaneResPtr
 
typedef struct _drmModeProperty drmModeProperty
 
typedef struct _drmModePropertydrmModePropertyPtr
 
typedef struct _drmModeObjectProperties drmModeObjectProperties
 
typedef struct _drmModeObjectPropertiesdrmModeObjectPropertiesPtr
 
typedef struct _drmModeAtomicReq drmModeAtomicReq
 
typedef struct _drmModeAtomicReq * drmModeAtomicReqPtr
 

Functions

drmModeResPtr drmModeGetResources (int fd)
 
void drmModeFreeResources (drmModeResPtr ptr)
 
drmModeCrtcPtr drmModeGetCrtc (int fd, uint32_t crtcId)
 
int drmModeSetCrtc (int fd, uint32_t crtcId, uint32_t bufferId, uint32_t x, uint32_t y, uint32_t *connectors, int count, drmModeModeInfoPtr mode)
 
void drmModeFreeCrtc (drmModeCrtcPtr ptr)
 
drmModeConnectorPtr drmModeGetConnector (int fd, uint32_t connectorId)
 
void drmModeFreeConnector (drmModeConnectorPtr ptr)
 
drmModeEncoderPtr drmModeGetEncoder (int fd, uint32_t encoderId)
 
void drmModeFreeEncoder (drmModeEncoderPtr ptr)
 
drmModeFBPtr drmModeGetFB (int fd, uint32_t fbId)
 
void drmModeFreeFB (drmModeFBPtr ptr)
 
int drmModeAddFB (int fd, uint32_t width, uint32_t height, uint8_t depth, uint8_t bpp, uint32_t pitch, uint32_t bo, uint32_t *buf_id)
 
int drmModeAddFB2 (int fd, uint32_t width, uint32_t height, uint32_t pixel_format, const uint32_t bo_handles[4], const uint32_t pitches[4], const uint32_t offsets[4], uint32_t *buf_id, uint32_t flags)
 
int drmModeRmFB (int fd, uint32_t bufferId)
 
int drmModePageFlip (int fd, uint32_t crtc_id, uint32_t fb_id, uint32_t flags, void *user_data)
 
int drmModeCreateDumbBuffer (int fd, struct drm_mode_create_dumb *args)
 
int drmModeMapDumbBuffer (int fd, struct drm_mode_map_dumb *args)
 
int drmModeDestroyDumbBuffer (int fd, struct drm_mode_destroy_dumb *args)
 
drmModePlaneResPtr drmModeGetPlaneResources (int fd)
 
void drmModeFreePlaneResources (drmModePlaneResPtr ptr)
 
drmModePlanePtr drmModeGetPlane (int fd, uint32_t plane_id)
 
void drmModeFreePlane (drmModePlanePtr ptr)
 
int drmModeSetPlane (int fd, uint32_t plane_id, uint32_t crtc_id, uint32_t fb_id, uint32_t flags, int32_t crtc_x, int32_t crtc_y, uint32_t crtc_w, uint32_t crtc_h, uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h)
 
int drmModeSetCursor (int fd, uint32_t crtcId, uint32_t bo, uint32_t width, uint32_t height)
 
int drmModeMoveCursor (int fd, uint32_t crtcId, int x, int y)
 
drmModePropertyPtr drmModeGetProperty (int fd, uint32_t propertyId)
 
void drmModeFreeProperty (drmModePropertyPtr ptr)
 
int drmModeCrtcSetGamma (int fd, uint32_t crtcId, uint32_t size, uint16_t *red, uint16_t *green, uint16_t *blue)
 
int drmModeCrtcGetGamma (int fd, uint32_t crtcId, uint32_t size, uint16_t *red, uint16_t *green, uint16_t *blue)
 

Typedef Documentation

◆ drmModeRes

typedef struct _drmModeRes drmModeRes

◆ drmModeResPtr

typedef struct _drmModeRes * drmModeResPtr

◆ drmModeModeInfo

◆ drmModeModeInfoPtr

◆ drmModeEncoder

◆ drmModeEncoderPtr

◆ drmModeConnector

◆ drmModeConnectorPtr

◆ drmModeCrtc

typedef struct _drmModeCrtc drmModeCrtc

◆ drmModeCrtcPtr

typedef struct _drmModeCrtc * drmModeCrtcPtr

◆ drmModeFB

typedef struct _drmModeFB drmModeFB

◆ drmModeFBPtr

typedef struct _drmModeFB * drmModeFBPtr

◆ drmModePlane

typedef struct _drmModePlane drmModePlane

◆ drmModePlanePtr

typedef struct _drmModePlane * drmModePlanePtr

◆ drmModePlaneRes

◆ drmModePlaneResPtr

◆ drmModeProperty

◆ drmModePropertyPtr

◆ drmModeObjectProperties

◆ drmModeObjectPropertiesPtr

◆ drmModeAtomicReq

typedef struct _drmModeAtomicReq drmModeAtomicReq

◆ drmModeAtomicReqPtr

typedef struct _drmModeAtomicReq * drmModeAtomicReqPtr

Function Documentation

◆ drmModeGetResources()

drmModeResPtr drmModeGetResources ( int fd)
extern

◆ drmModeFreeResources()

void drmModeFreeResources ( drmModeResPtr ptr)
extern

◆ drmModeGetCrtc()

drmModeCrtcPtr drmModeGetCrtc ( int fd,
uint32_t crtcId )
extern

◆ drmModeSetCrtc()

int drmModeSetCrtc ( int fd,
uint32_t crtcId,
uint32_t bufferId,
uint32_t x,
uint32_t y,
uint32_t * connectors,
int count,
drmModeModeInfoPtr mode )
extern

◆ drmModeFreeCrtc()

void drmModeFreeCrtc ( drmModeCrtcPtr ptr)
extern

◆ drmModeGetConnector()

drmModeConnectorPtr drmModeGetConnector ( int fd,
uint32_t connectorId )
extern

◆ drmModeFreeConnector()

void drmModeFreeConnector ( drmModeConnectorPtr ptr)
extern

◆ drmModeGetEncoder()

drmModeEncoderPtr drmModeGetEncoder ( int fd,
uint32_t encoderId )
extern

◆ drmModeFreeEncoder()

void drmModeFreeEncoder ( drmModeEncoderPtr ptr)
extern

◆ drmModeGetFB()

drmModeFBPtr drmModeGetFB ( int fd,
uint32_t fbId )
extern

◆ drmModeFreeFB()

void drmModeFreeFB ( drmModeFBPtr ptr)
extern

◆ drmModeAddFB()

int drmModeAddFB ( int fd,
uint32_t width,
uint32_t height,
uint8_t depth,
uint8_t bpp,
uint32_t pitch,
uint32_t bo,
uint32_t * buf_id )
extern

◆ drmModeAddFB2()

int drmModeAddFB2 ( int fd,
uint32_t width,
uint32_t height,
uint32_t pixel_format,
const uint32_t bo_handles[4],
const uint32_t pitches[4],
const uint32_t offsets[4],
uint32_t * buf_id,
uint32_t flags )
extern

◆ drmModeRmFB()

int drmModeRmFB ( int fd,
uint32_t bufferId )
extern

◆ drmModePageFlip()

int drmModePageFlip ( int fd,
uint32_t crtc_id,
uint32_t fb_id,
uint32_t flags,
void * user_data )
extern

◆ drmModeCreateDumbBuffer()

int drmModeCreateDumbBuffer ( int fd,
struct drm_mode_create_dumb * args )
extern

◆ drmModeMapDumbBuffer()

int drmModeMapDumbBuffer ( int fd,
struct drm_mode_map_dumb * args )
extern

◆ drmModeDestroyDumbBuffer()

int drmModeDestroyDumbBuffer ( int fd,
struct drm_mode_destroy_dumb * args )
extern

◆ drmModeGetPlaneResources()

drmModePlaneResPtr drmModeGetPlaneResources ( int fd)
extern

◆ drmModeFreePlaneResources()

void drmModeFreePlaneResources ( drmModePlaneResPtr ptr)
extern

◆ drmModeGetPlane()

drmModePlanePtr drmModeGetPlane ( int fd,
uint32_t plane_id )
extern

◆ drmModeFreePlane()

void drmModeFreePlane ( drmModePlanePtr ptr)
extern

◆ drmModeSetPlane()

int drmModeSetPlane ( int fd,
uint32_t plane_id,
uint32_t crtc_id,
uint32_t fb_id,
uint32_t flags,
int32_t crtc_x,
int32_t crtc_y,
uint32_t crtc_w,
uint32_t crtc_h,
uint32_t src_x,
uint32_t src_y,
uint32_t src_w,
uint32_t src_h )
extern

◆ drmModeSetCursor()

int drmModeSetCursor ( int fd,
uint32_t crtcId,
uint32_t bo,
uint32_t width,
uint32_t height )
extern

◆ drmModeMoveCursor()

int drmModeMoveCursor ( int fd,
uint32_t crtcId,
int x,
int y )
extern

◆ drmModeGetProperty()

drmModePropertyPtr drmModeGetProperty ( int fd,
uint32_t propertyId )
extern

◆ drmModeFreeProperty()

void drmModeFreeProperty ( drmModePropertyPtr ptr)
extern

◆ drmModeCrtcSetGamma()

int drmModeCrtcSetGamma ( int fd,
uint32_t crtcId,
uint32_t size,
uint16_t * red,
uint16_t * green,
uint16_t * blue )
extern

◆ drmModeCrtcGetGamma()

int drmModeCrtcGetGamma ( int fd,
uint32_t crtcId,
uint32_t size,
uint16_t * red,
uint16_t * green,
uint16_t * blue )
extern
Generated from commit: vsfteam/vsf@ceb53fd