Skip to content
Snippets Groups Projects
Select Git revision
  • 5f42aa394e50e4993ec370aca4bb36c3b6a81a60
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

amdgpu_mode.h

Blame
  • amdgpu_mode.h 17.76 KiB
    /*
     * Copyright 2000 ATI Technologies Inc., Markham, Ontario, and
     *                VA Linux Systems Inc., Fremont, California.
     * Copyright 2008 Red Hat Inc.
     *
     * Permission is hereby granted, free of charge, to any person obtaining a
     * copy of this software and associated documentation files (the "Software"),
     * to deal in the Software without restriction, including without limitation
     * the rights to use, copy, modify, merge, publish, distribute, sublicense,
     * and/or sell copies of the Software, and to permit persons to whom the
     * Software is furnished to do so, subject to the following conditions:
     *
     * The above copyright notice and this permission notice shall be included in
     * all copies or substantial portions of the Software.
     *
     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
     * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
     * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
     * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     * OTHER DEALINGS IN THE SOFTWARE.
     *
     * Original Authors:
     *   Kevin E. Martin, Rickard E. Faith, Alan Hourihane
     *
     * Kernel port Author: Dave Airlie
     */
    
    #ifndef AMDGPU_MODE_H
    #define AMDGPU_MODE_H
    
    #include <drm/drm_crtc.h>
    #include <drm/drm_edid.h>
    #include <drm/drm_encoder.h>
    #include <drm/drm_dp_helper.h>
    #include <drm/drm_fixed.h>
    #include <drm/drm_crtc_helper.h>
    #include <drm/drm_fb_helper.h>
    #include <drm/drm_plane_helper.h>
    #include <drm/drm_fb_helper.h>
    #include <linux/i2c.h>
    #include <linux/i2c-algo-bit.h>
    #include <linux/hrtimer.h>
    #include "amdgpu_irq.h"
    
    #include <drm/drm_dp_mst_helper.h>
    #include "modules/inc/mod_freesync.h"
    
    struct amdgpu_bo;
    struct amdgpu_device;
    struct amdgpu_encoder;
    struct amdgpu_router;
    struct amdgpu_hpd;
    
    #define to_amdgpu_crtc(x) container_of(x, struct amdgpu_crtc, base)
    #define to_amdgpu_connector(x) container_of(x, struct amdgpu_connector, base)
    #define to_amdgpu_encoder(x) container_of(x, struct amdgpu_encoder, base)
    #define to_amdgpu_framebuffer(x) container_of(x, struct amdgpu_framebuffer, base)
    
    #define AMDGPU_MAX_HPD_PINS 6
    #define AMDGPU_MAX_CRTCS 6
    #define AMDGPU_MAX_AFMT_BLOCKS 9
    
    enum amdgpu_rmx_type {
    	RMX_OFF,
    	RMX_FULL,
    	RMX_CENTER,
    	RMX_ASPECT
    };