src/video/kmsdrm/SDL_kmsdrmsym.h
changeset 11175 cbc6a8a5b701
child 11811 5d94cb6b24d3
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/video/kmsdrm/SDL_kmsdrmsym.h	Wed Aug 02 10:22:48 2017 -0700
     1.3 @@ -0,0 +1,99 @@
     1.4 +/*
     1.5 +  Simple DirectMedia Layer
     1.6 +  Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
     1.7 +
     1.8 +  This software is provided 'as-is', without any express or implied
     1.9 +  warranty.  In no event will the authors be held liable for any damages
    1.10 +  arising from the use of this software.
    1.11 +
    1.12 +  Permission is granted to anyone to use this software for any purpose,
    1.13 +  including commercial applications, and to alter it and redistribute it
    1.14 +  freely, subject to the following restrictions:
    1.15 +
    1.16 +  1. The origin of this software must not be misrepresented; you must not
    1.17 +     claim that you wrote the original software. If you use this software
    1.18 +     in a product, an acknowledgment in the product documentation would be
    1.19 +     appreciated but is not required.
    1.20 +  2. Altered source versions must be plainly marked as such, and must not be
    1.21 +     misrepresented as being the original software.
    1.22 +  3. This notice may not be removed or altered from any source distribution.
    1.23 +*/
    1.24 +
    1.25 +/* *INDENT-OFF* */
    1.26 +
    1.27 +#ifndef SDL_KMSDRM_MODULE
    1.28 +#define SDL_KMSDRM_MODULE(modname)
    1.29 +#endif
    1.30 +
    1.31 +#ifndef SDL_KMSDRM_SYM
    1.32 +#define SDL_KMSDRM_SYM(rc,fn,params)
    1.33 +#endif
    1.34 +
    1.35 +#ifndef SDL_KMSDRM_SYM_CONST
    1.36 +#define SDL_KMSDRM_SYM_CONST(type, name)
    1.37 +#endif
    1.38 +
    1.39 +
    1.40 +SDL_KMSDRM_MODULE(LIBDRM)
    1.41 +SDL_KMSDRM_SYM(void,drmModeFreeResources,(drmModeResPtr ptr))
    1.42 +SDL_KMSDRM_SYM(void,drmModeFreeFB,(drmModeFBPtr ptr))
    1.43 +SDL_KMSDRM_SYM(void,drmModeFreeCrtc,(drmModeCrtcPtr ptr))
    1.44 +SDL_KMSDRM_SYM(void,drmModeFreeConnector,(drmModeConnectorPtr ptr))
    1.45 +SDL_KMSDRM_SYM(void,drmModeFreeEncoder,(drmModeEncoderPtr ptr))
    1.46 +SDL_KMSDRM_SYM(drmModeResPtr,drmModeGetResources,(int fd))
    1.47 +SDL_KMSDRM_SYM(int,drmModeAddFB,(int fd, uint32_t width, uint32_t height, uint8_t depth,
    1.48 +                                 uint8_t bpp, uint32_t pitch, uint32_t bo_handle,
    1.49 +                                 uint32_t *buf_id))
    1.50 +SDL_KMSDRM_SYM(int,drmModeRmFB,(int fd, uint32_t bufferId))
    1.51 +SDL_KMSDRM_SYM(drmModeFBPtr,drmModeGetFB,(int fd, uint32_t buf))
    1.52 +SDL_KMSDRM_SYM(drmModeCrtcPtr,drmModeGetCrtc,(int fd, uint32_t crtcId))
    1.53 +SDL_KMSDRM_SYM(int,drmModeSetCrtc,(int fd, uint32_t crtcId, uint32_t bufferId,
    1.54 +                                   uint32_t x, uint32_t y, uint32_t *connectors, int count,
    1.55 +                                   drmModeModeInfoPtr mode))
    1.56 +SDL_KMSDRM_SYM(int,drmModeSetCursor,(int fd, uint32_t crtcId, uint32_t bo_handle,
    1.57 +                                     uint32_t width, uint32_t height))
    1.58 +SDL_KMSDRM_SYM(int,drmModeSetCursor2,(int fd, uint32_t crtcId, uint32_t bo_handle,
    1.59 +                                      uint32_t width, uint32_t height,
    1.60 +                                      int32_t hot_x, int32_t hot_y))
    1.61 +SDL_KMSDRM_SYM(int,drmModeMoveCursor,(int fd, uint32_t crtcId, int x, int y))
    1.62 +SDL_KMSDRM_SYM(drmModeEncoderPtr,drmModeGetEncoder,(int fd, uint32_t encoder_id))
    1.63 +SDL_KMSDRM_SYM(drmModeConnectorPtr,drmModeGetConnector,(int fd, uint32_t connector_id))
    1.64 +SDL_KMSDRM_SYM(int,drmHandleEvent,(int fd,drmEventContextPtr evctx))
    1.65 +SDL_KMSDRM_SYM(int,drmModePageFlip,(int fd, uint32_t crtc_id, uint32_t fb_id,
    1.66 +                                    uint32_t flags, void *user_data))
    1.67 +
    1.68 +
    1.69 +SDL_KMSDRM_MODULE(GBM)
    1.70 +SDL_KMSDRM_SYM(int,gbm_device_get_fd,(struct gbm_device *gbm))
    1.71 +SDL_KMSDRM_SYM(int,gbm_device_is_format_supported,(struct gbm_device *gbm,
    1.72 +                                                   uint32_t format, uint32_t usage))
    1.73 +SDL_KMSDRM_SYM(void,gbm_device_destroy,(struct gbm_device *gbm))
    1.74 +SDL_KMSDRM_SYM(struct gbm_device *,gbm_create_device,(int fd))
    1.75 +SDL_KMSDRM_SYM(unsigned int,gbm_bo_get_width,(struct gbm_bo *bo))
    1.76 +SDL_KMSDRM_SYM(unsigned int,gbm_bo_get_height,(struct gbm_bo *bo))
    1.77 +SDL_KMSDRM_SYM(uint32_t,gbm_bo_get_stride,(struct gbm_bo *bo))
    1.78 +SDL_KMSDRM_SYM(union gbm_bo_handle,gbm_bo_get_handle,(struct gbm_bo *bo))
    1.79 +SDL_KMSDRM_SYM(int,gbm_bo_write,(struct gbm_bo *bo, const void *buf, size_t count))
    1.80 +SDL_KMSDRM_SYM(struct gbm_device *,gbm_bo_get_device,(struct gbm_bo *bo))
    1.81 +SDL_KMSDRM_SYM(void,gbm_bo_set_user_data,(struct gbm_bo *bo, void *data,
    1.82 +                                          void (*destroy_user_data)(struct gbm_bo *, void *)))
    1.83 +SDL_KMSDRM_SYM(void *,gbm_bo_get_user_data,(struct gbm_bo *bo))
    1.84 +SDL_KMSDRM_SYM(void,gbm_bo_destroy,(struct gbm_bo *bo))
    1.85 +SDL_KMSDRM_SYM(struct gbm_bo *,gbm_bo_create,(struct gbm_device *gbm,
    1.86 +                                              uint32_t width, uint32_t height,
    1.87 +                                              uint32_t format, uint32_t usage))
    1.88 +SDL_KMSDRM_SYM(struct gbm_surface *,gbm_surface_create,(struct gbm_device *gbm,
    1.89 +                                                        uint32_t width, uint32_t height,
    1.90 +                                                        uint32_t format, uint32_t flags))
    1.91 +SDL_KMSDRM_SYM(void,gbm_surface_destroy,(struct gbm_surface *surf))
    1.92 +SDL_KMSDRM_SYM(struct gbm_bo *,gbm_surface_lock_front_buffer,(struct gbm_surface *surf))
    1.93 +SDL_KMSDRM_SYM(void,gbm_surface_release_buffer,(struct gbm_surface *surf, struct gbm_bo *bo))
    1.94 +
    1.95 +
    1.96 +#undef SDL_KMSDRM_MODULE
    1.97 +#undef SDL_KMSDRM_SYM
    1.98 +#undef SDL_KMSDRM_SYM_CONST
    1.99 +
   1.100 +/* *INDENT-ON* */
   1.101 +
   1.102 +/* vi: set ts=4 sw=4 expandtab: */